query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
4f7b712f12a0c823b6bda8ad9eaab07d
Get information about the category
[ { "docid": "7582e2cb4189f75187df005e29d6283e", "score": "0.0", "text": "public function getCategoryDetails($categ_id)\n {\n\n $response = $this->client->request('GET', $this->_getCategoriesUrl($categ_id));\n if ($response->getStatusCode() != 200 && $response->getStatusCode() != 304)\n return null;\n\n $data = json_decode($response->getBody(), true);\n return [\n 'name' => $data['name'],\n 'slug' => $data['slug'],\n 'description' => $data['description']\n ];\n }", "title": "" } ]
[ { "docid": "71473b8f21aef80fad5e5f00f46cbfe4", "score": "0.77899337", "text": "function category() {\n $category = $this->jsonData->entry->category[1]->{'label'};\n return $category;\n }", "title": "" }, { "docid": "9c900424e5793607de8378fb3869de74", "score": "0.76242125", "text": "public function getCategory(){\n echo $this->category;\n }", "title": "" }, { "docid": "90d4003da8f182f1dc90cad950c541ac", "score": "0.7586687", "text": "public function getCategory()\n {\n return $this->get(self::category);\n }", "title": "" }, { "docid": "bd3f9a70586294e5c9308032800e9de1", "score": "0.75139314", "text": "public function getCategory() \n {\n return $this->category;\n }", "title": "" }, { "docid": "5fb75d62e96453c8164431ffb571c86c", "score": "0.7470851", "text": "public function get_category(){\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "ec27bcd7a203f23e0123967d154419de", "score": "0.7462144", "text": "public function getCategory()\n {\n return $this->category;\n }", "title": "" }, { "docid": "4915dda2bf94468f24a6cf4db2d853a1", "score": "0.74268067", "text": "public function category();", "title": "" }, { "docid": "660a79a2178efcfbed3a66d751449202", "score": "0.7396243", "text": "public function getCategory() {\n return $this->category;\n }", "title": "" }, { "docid": "660a79a2178efcfbed3a66d751449202", "score": "0.7396243", "text": "public function getCategory() {\n return $this->category;\n }", "title": "" }, { "docid": "660a79a2178efcfbed3a66d751449202", "score": "0.7396243", "text": "public function getCategory() {\n return $this->category;\n }", "title": "" }, { "docid": "91db86a81b591b578de9ca873186144b", "score": "0.7393192", "text": "public function getCategory()\n {\n return $this->httpGet('wxaapi/newtmpl/getcategory');\n }", "title": "" }, { "docid": "0bb1916ce92419f164a41be152df56c1", "score": "0.7390107", "text": "public function getCategory()\n {\n }", "title": "" }, { "docid": "00619d776532bb140c313f289b91f710", "score": "0.73861796", "text": "public function getCategory()\n {\n return $this->_category;\n }", "title": "" }, { "docid": "00619d776532bb140c313f289b91f710", "score": "0.73861796", "text": "public function getCategory()\n {\n return $this->_category;\n }", "title": "" }, { "docid": "8056a4fd1ec6adee07e90853d97c06f5", "score": "0.73730516", "text": "public function getCategory(){ return CategoryData::getById($this->CATEGORIA_ID);}", "title": "" }, { "docid": "b55d7e37f7172c4d6c39d3d818d12bb3", "score": "0.7315482", "text": "public function getCategory(): string\n {\n return $this->category;\n }", "title": "" }, { "docid": "1d114efb0e31c1ef1106506f4e0dfdfb", "score": "0.7303249", "text": "public function getCategory() {\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "1d114efb0e31c1ef1106506f4e0dfdfb", "score": "0.7303249", "text": "public function getCategory() {\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "1d114efb0e31c1ef1106506f4e0dfdfb", "score": "0.7303249", "text": "public function getCategory() {\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "1d114efb0e31c1ef1106506f4e0dfdfb", "score": "0.7303249", "text": "public function getCategory() {\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "1d114efb0e31c1ef1106506f4e0dfdfb", "score": "0.7303249", "text": "public function getCategory() {\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "99b7d786b1cf1f5e4f85c3f4d3ecfb18", "score": "0.7224929", "text": "public function GetCategory()\n\t{\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "2c9342a6f3c2ae19d4d6a97bace5e242", "score": "0.7215762", "text": "public function getCategory(): string\n\t{\n\t\treturn $this->category;\n\t}", "title": "" }, { "docid": "a8bf278f87f1b068ff4e3f93defa7748", "score": "0.71898496", "text": "public function getCategory()\n {\n return (string)$this->_xml->attributes()->category;\n }", "title": "" }, { "docid": "49194641c179069177590053314d5b5d", "score": "0.7133267", "text": "public function getCategory()\n {\n $c = Category::All();\n return response()->json([\n 'statusCode' => $this->ok,\n 'msg' => 'ok',\n 'category' => $c,\n ], $this->ok);\n }", "title": "" }, { "docid": "32b7830d6bb3582a1f21a8cd759a153a", "score": "0.7081546", "text": "public function getCategory() {\n\t\treturn $this->channel->category;\n\t}", "title": "" }, { "docid": "1d5b8f61b8fab532790b0cfc368dc463", "score": "0.7032995", "text": "public function getCategory()\n {\n return isset($this->category) ? $this->category : null;\n }", "title": "" }, { "docid": "1d5b8f61b8fab532790b0cfc368dc463", "score": "0.7032995", "text": "public function getCategory()\n {\n return isset($this->category) ? $this->category : null;\n }", "title": "" }, { "docid": "46336daeaad08954f1f5c3a2570f82c9", "score": "0.70281094", "text": "public function getCategory() {\n return !empty($this->data->category) ? $this->data->category : null;\n }", "title": "" }, { "docid": "31cc6e19276010c0914a3721c77a269e", "score": "0.69854665", "text": "public static function show_category($id){\n\n $info = Category::find($id);\n\n return $info;\n \n }", "title": "" }, { "docid": "af64caeab99bbfc87eafaa8727bd48de", "score": "0.6972376", "text": "public static function GetCatgory(){\n\n\t\t\tglobal $config;\n\n\t\t\t$dbconn=db::singleton();\n\t\t\t\n\t\t\t$query = \" select * from category order by cid asc\";\n\t\t\t//echo $query; die;\n\t\t\t$dbconn->SetQuery($query);\n\n\t\t\treturn $dbconn->LoadObjectList();\n\n\t\t\n\n\t\t}", "title": "" }, { "docid": "e1592cfe7137fb2249aee3016cd65471", "score": "0.69541395", "text": "public function showCategory()\n\t{\n\t\techo \"男性用户偏好的分类!\\n\";\n\t}", "title": "" }, { "docid": "85688485c16c27bacb0ccedb9e0260ac", "score": "0.6906144", "text": "public function get_category()\n {\n $category = Model_Category::find('all');\n return $this->response(Arr::reindex($category));\n }", "title": "" }, { "docid": "bbf30d117352a00cd70191b838b200fd", "score": "0.69007975", "text": "public function get_Category()\n {\n if (empty($this->cat)) {\n return 2;\n }\n return $this->cat;\n }", "title": "" }, { "docid": "fbac7bd9ddcc612d39e21a9cdc821eef", "score": "0.6898562", "text": "public function getCategory() {\r\n if (!isset($this->_category)) {\r\n $this->_category = $this->_title;\r\n }\r\n return $this->_category;\r\n }", "title": "" }, { "docid": "b9ce96626196ee2518ae0cb03d465202", "score": "0.68854964", "text": "function view_category() {\n if($this->request->isApiCall()) {\n if($this->active_category->isLoaded()) {\n $this->response->respondWithData($this->active_category, array(\n 'as' => 'category', \n \t'detailed' => true, \n ));\n } else {\n $this->response->notFound();\n } // if\n } else {\n $this->response->badRequest();\n } // if\n }", "title": "" }, { "docid": "78c8dc6b0fb5a3cd8ba803b77e237ac9", "score": "0.68615633", "text": "function getCategoryList(){\n }", "title": "" }, { "docid": "b8e4ca13a9560ba457574e18775d4ada", "score": "0.68372774", "text": "public function get_category()\n {\n return C__CATG__NETWORK;\n }", "title": "" }, { "docid": "5ff93790013e19ad3061e962201062c7", "score": "0.6822799", "text": "public function getCategory()\n {\n return $this->registry->registry('kb_current_category');\n }", "title": "" }, { "docid": "eb34799d570a4775a8f62c7d35b1e32f", "score": "0.68220437", "text": "function load_category() {\n $this->category = $this->get_category();\n return $this->category;\n }", "title": "" }, { "docid": "e53934a93bc1d1218dae00ee4679afd0", "score": "0.68196815", "text": "public function _retrieve()\n {\n return $this->getCategory()->getData();\n }", "title": "" }, { "docid": "57c43026f432ee1d6e7f1ae3c8c030cb", "score": "0.67948765", "text": "public function getCategoryObject()\n {\n return $this->categoryObject;\n }", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.67816764", "text": "public function getCategories();", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.67816764", "text": "public function getCategories();", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.67816764", "text": "public function getCategories();", "title": "" }, { "docid": "0cdc43570159acbc8838266252182f16", "score": "0.6767377", "text": "function get_category() {\n $category = null;\n\n if (!empty($this->categoryid)) {\n $category = grade_category::fetch('id', $this->categoryid);\n } elseif (!empty($this->iteminstance) && $this->itemtype == 'category') {\n $category = grade_category::fetch('id', $this->iteminstance);\n }\n\n return $category;\n }", "title": "" }, { "docid": "a6661a8650062c017ccddf40681d38a0", "score": "0.6765596", "text": "public function category() {\n\t\treturn $this->get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "64e00a647fcba409c13da03ede607e36", "score": "0.675174", "text": "public function categoryList () {\n\t\t$args = array();\n\n\t\treturn $this->getData('category/list', $args);\n\t}", "title": "" }, { "docid": "69faf85a6e609f455944ad048ba9b7fe", "score": "0.67327565", "text": "public function categories()\n\t{\n\t\t$response = $this->client->sendRequest(self::ENDPOINT_PATH, 'GET');\n\t\t$dataCollector = new DataCollector($this->client, $response);\n\t\treturn $dataCollector->getData();\n\t}", "title": "" }, { "docid": "a13543967002047508875cbe07217673", "score": "0.67274725", "text": "public function getCat_name()\n {\n return $this->cat_name;\n }", "title": "" }, { "docid": "dc0c4204d3427efacbf85381093cef83", "score": "0.6706609", "text": "function getCatInformation($contentCat) {\n $description = \"\";\n\n switch ($contentCat) {\n\t case \"12\":\n\t\t $description .= \"\";\n\t break;\n\t default:\n\t\t $description .= \"\";\n }\n\n return $description;\n}", "title": "" }, { "docid": "02584b12a0ff674aeec7cd05aa4bb51b", "score": "0.67053336", "text": "public function loadCategory()\n {\n $result = Categories::getCategory();\n return response($result);\n }", "title": "" }, { "docid": "3d04de9a814101605446fdbbbe6cc312", "score": "0.6687725", "text": "public function get($category_id);", "title": "" }, { "docid": "8017c872fa2eb5776dabeb8498eb92b0", "score": "0.6664581", "text": "function tsd_json_plugin_get_category_info( $post ) {\n $primary_category_id = get_post_meta( $post->ID, '_yoast_wpseo_primary_category', true );\n $primary_category = null;\n if ( empty( $primary_category_id ) ) {\n $main_categories = [ 'featured', 'NEWS', 'SPORTS', 'opinions', 'thegrind', 'arts-life' ];\n foreach ( $main_categories as $main_category ) {\n if ( in_category( $main_category, $post ) ) {\n $primary_category = get_category_by_slug( $main_category );\n break;\n }\n }\n if ( is_null( $primary_category ) ) {\n // If the post is not in any `$main_categories`, simply get the first post category.\n $post_categories = get_the_category( $post->ID );\n if ( count( $post_categories ) > 0 ) {\n $primary_category = $post_categories[0];\n }\n }\n } else {\n $primary_category = get_category( $primary_category_id );\n }\n\n if ( ! is_null( $primary_category ) ) {\n return tsd_json_plugin_get_category( $primary_category );\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "5b50afb6d2152de49ee55a0965c9c93f", "score": "0.665589", "text": "function get_category($category_name){\n\tglobal $no, $GO_SECURITY;\n\t$category = $no->get_category_by_name($category_name);\n\tif($category)\n\t\treturn $category;\n\n\t$category['name']=$category_name;\n\t$category['user_id']=1;\n\t$category['acl_id']=$GLOBALS['GO_SECURITY']->get_new_acl('notes', $category['user_id']);\n\t$category['id']=$no->add_category($category);\n\n\treturn $category;\n}", "title": "" }, { "docid": "523ebe09a54dafce347cc03e522b9cfc", "score": "0.66473913", "text": "public function getCategorie()\n {\n return $this->categorie;\n }", "title": "" }, { "docid": "523ebe09a54dafce347cc03e522b9cfc", "score": "0.66473913", "text": "public function getCategorie()\n {\n return $this->categorie;\n }", "title": "" }, { "docid": "523ebe09a54dafce347cc03e522b9cfc", "score": "0.66473913", "text": "public function getCategorie()\n {\n return $this->categorie;\n }", "title": "" }, { "docid": "6d6320902ba2700bbff1d26a8b3515d0", "score": "0.6624542", "text": "public function getCategorie(){\n return $this->categorie;\n }", "title": "" }, { "docid": "3fd2263e0d26fbf6b7054fe7cd4ffaad", "score": "0.66238904", "text": "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "3fd2263e0d26fbf6b7054fe7cd4ffaad", "score": "0.66238904", "text": "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "ffa0466cb523808d115667373e329255", "score": "0.66178674", "text": "public function getCategory()\n {\n $category = Mage::getModel('luca_news/category')->load($this->getData('category_id'));\n\n if ($category && $category->getId()) {\n return $category;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "fc90d95a731508005bb32e8eb6e18bc4", "score": "0.66038436", "text": "public function getCategorie()\n {\n return $this->categorie;\n }", "title": "" }, { "docid": "1fb820ca6eccafb98040fba1aa0d782b", "score": "0.6598191", "text": "public function getCategory()\n {\n return \"Insecure Configuration\"; //See category.php for list of all the categories\n }", "title": "" }, { "docid": "37e1caa736a5c3adac0b6c596410ef5f", "score": "0.65974826", "text": "public function getCategoryMetadata() {\n // Allow modules and themes to provide their own icon metadata first. If\n // none are provided, use the default metadata file.\n /** @var \\Drupal\\Component\\Discovery\\YamlDiscovery $yaml_discovery */\n $yaml_discovery = new YamlDiscovery('fontawesome.categorylist', $this->themeHandler->getThemeDirectories() + $this->moduleHandler->getModuleDirectories());\n $data = $yaml_discovery->findAll();\n\n $metadata = [];\n if (!empty($data)) {\n foreach ($data as $categories) {\n $metadata = array_merge_recursive($metadata, $categories);\n }\n }\n else {\n $metadata = Yaml::parse(file_get_contents($this->getCategoryMetadataFilepath()));\n }\n\n $this->moduleHandler->alter('fontawesome_metadata_categories', $metadata);\n return $metadata;\n }", "title": "" }, { "docid": "ce9f5643852726484792ad00316e3da7", "score": "0.65921664", "text": "public function getCategoria()\r\n {\r\n return $this->categoria;\r\n }", "title": "" }, { "docid": "6aed5ea5c5aeabf76906af1b496e3510", "score": "0.6584946", "text": "public function getCategories(){\n return $this->performRequest('GET', '/categories');\n }", "title": "" }, { "docid": "e4b2a9f6c1742dfed7cecc42f6898217", "score": "0.65791434", "text": "public static function getBasicInfo($category_id = 0, $language_id = 0)\n {\n $db = DataAccess::getInstance();\n if (!$category_id) {\n //TODO: get this text from the DB somewhere...\n return array('category_name' => \"Main\");\n }\n if (!$language_id) {\n $language_id = $db->getLanguage();\n }\n if (isset(self::$_getInfoCache[$category_id][$language_id])) {\n return self::$_getInfoCache[$category_id][$language_id];\n }\n\n $sql = \"SELECT l.`category_name`,l.`seo_url_contents`,l.`category_cache`,l.`cache_expire`,l.`description`,c.`parent_id` FROM \" . geoTables::categories_languages_table . \" l, \" . geoTables::categories_table . \" c WHERE l.category_id=c.category_id AND c.enabled='yes' AND c.`category_id` = ? AND l.language_id = ? LIMIT 1\";\n $result = $db->Execute($sql, array($category_id, $language_id));\n if (!$result || $result->RecordCount() == 0) {\n trigger_error('ERROR CATEGORY SQL: Cat not found for id: ' . $category_id . ', Sql: ' . $sql . ' Error Msg: ' . $db->ErrorMsg());\n return false;\n }\n $show = $result->FetchRow();\n if ($show['parent_id'] > 0 && !geoCategory::isEnabled($show['parent_id'])) {\n //one of the parents is not enabled\n trigger_error('ERROR CATEGORY: One of the category parents is disabled');\n return false;\n }\n $show['category_name'] = geoString::fromDB($show['category_name']);\n $show['description'] = geoString::fromDB($show['description']);\n $show['seo_url_contents'] = geoString::fromDB($show['seo_url_contents']);\n //save it, so we don't query the db a bunch\n self::$_getInfoCache[$category_id][$language_id] = $show;\n return $show;\n }", "title": "" }, { "docid": "14400896e2083be667b188b8f2d8bc0f", "score": "0.6579088", "text": "function getName()\n {\n return $this->_catname;\n }", "title": "" }, { "docid": "560f251da4b621cb0523c79c91db22e5", "score": "0.6561665", "text": "public function getCategory()\n {\n $this->db->order_by('category_name', 'asc');\n return $this->db->get('tb_category');\n }", "title": "" }, { "docid": "d738178efb78343a2b3756aeb42ff6bf", "score": "0.6555633", "text": "public function getCategoria()\n {\n return $this->categoria;\n }", "title": "" }, { "docid": "09fd16e9dec799818afdbb36c306f30f", "score": "0.6554598", "text": "function osc_category() {\n if (View::newInstance()->_exists('subcategories')) {\n $category = View::newInstance()->_current('subcategories');\n } elseif (View::newInstance()->_exists('categories')) {\n $category = View::newInstance()->_current('categories');\n } elseif (View::newInstance()->_exists('category')) {\n $category = View::newInstance()->_get('category');\n } else {\n $category = null;\n }\n return($category);\n }", "title": "" }, { "docid": "395ad18ebe27e37f4808edbe10f854fd", "score": "0.6534299", "text": "function category()\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get();\n return $this->Category;\n }", "title": "" }, { "docid": "ebe283f5c3ef68f79b766385f610d9b2", "score": "0.6530089", "text": "public function getAllCat(){\n $sql = new \\Blog\\DB\\Sql();\n $resultado = $sql->select(\"SELECT * FROM categorias\");\n if(count($resultado)>0){\n return $resultado;\n }else{\n return \"Nenhum registro encontrado.\";\n }\n }", "title": "" }, { "docid": "d7547386bceaebff8eca4e84b69e5b82", "score": "0.652694", "text": "public static function get_list_category(){\n\t\t$list = Category::all();\n return $list;\n\t}", "title": "" }, { "docid": "992f9c2d20a0482634e175652324e791", "score": "0.6522257", "text": "public function get_category() {\n\t\tif($this->prdcat_id!=\"\" and $this->prd_id !=\"\")\n\t\t{\n\t\t$this->sql = \t'SELECT a.prdcat_id, b.cat_id, b.cat_desc, b.cattype_id, c.cattype_desc\n\t\t\t\t\t\tFROM product_cat a\n\t\t\t\t\t\tINNER JOIN category b ON a.cat_id = b.cat_id\n\t\t\t\t\t\tINNER JOIN category_type c ON b.cattype_id = c.cattype_id\n\t\t\t\t\t\tWHERE a.prd_id = '.$this->prd_id.' \n\t\t\t\t\t\tAND a.prdcat_id = '.$this->prdcat_id.'\n\t\t\t\t\t\tORDER BY c.cattype_desc, b.cat_desc';\t\n\t\t$this->connect->query($this->sql);\n\t\t$result = $this->connect->resultArray();\n\t\tif(!empty($result[0]))\n\t\t{\n\t\treturn $result[0];\n\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "9b2582d956d6bc1eca9f2ed51fb3e1f4", "score": "0.6520133", "text": "public function categories();", "title": "" }, { "docid": "252c214d79eec13605b00e9d43e9f959", "score": "0.65081507", "text": "public static function getCategories(){\n $url = $api_base . '/categories/';\n $result = Category::connectToServer($url, 'GET');\n return $result;\n }", "title": "" }, { "docid": "741bca07ddc2053189aa6cccf9768b4d", "score": "0.6503115", "text": "public function getCategoria() {\n return $this->categoria;\n }", "title": "" }, { "docid": "28c6cf76a7a37496a41884d69d36b0b1", "score": "0.6502819", "text": "public function getCategoryDetail() {\n\n if (func_num_args() > 0) {\n $categoryname = func_get_arg(0);\n try {\n $select = $this->select()\n ->from(array('c' => 'category'), 'category_id')\n ->setIntegrityCheck(false)\n ->join(array('tc' => 'teachingclasses'), 'c.category_id = tc.category_id', array('tc.user_id','tc.class_id','tc.class_title'))\n ->join(array('tcv'=>'teachingclassvideo'),'tc.class_id = tcv.class_id',array('tcv.video_thumb_url', 'tcv.class_video_url'))\n ->join(array('u'=>'users'),'u.user_id = tc.user_id',array('u.first_name', 'u.last_name'))\n ->join(array('um' => 'usersmeta'), 'u.user_id = um.user_id', array('um.user_profile_pic'))\n ->where('category_name = ?', $categoryname);\n\n $result = $this->getAdapter()->fetchAll($select);\n// echo \"<pre>\"; print_r($result); echo \"</pre>\"; die('123');\n } catch (Exception $e) {\n throw new Exception('Unable To Insert Exception Occured :' . $e);\n }\n\n if ($result) {\n return $result;\n }\n } else {\n throw new Exception('Argument Not Passed');\n }\n }", "title": "" }, { "docid": "78f9a9bc976637f49402848b45df4afc", "score": "0.6494881", "text": "public function getCategoryDescription() {\n return $this->getTable()->getCategoryDescription();\n }", "title": "" }, { "docid": "2e3dcf76d0c9db806d7574ed3413141b", "score": "0.6494155", "text": "static public function get_category_id()\r\n {\r\n return self::$category_id;\r\n }", "title": "" }, { "docid": "1349a7665b9e6a6ee2c56116527728f4", "score": "0.64870805", "text": "function getCategory( $id )\r\n\t\t{\r\n\t\t\techo $this->theCategory( $id );\r\n\t\t\t\r\n\t\t}", "title": "" } ]
61088460e3f4183f97507b65a541e4e1
Initialize method for model.
[ { "docid": "6dcfc39b0b76ce733a829e411bca1bc5", "score": "0.0", "text": "public function initialize()\n {\n $this->setSource(\"admin_auth_user\");\n $this->hasOne('role_id', 'DbAuthRole', 'id', ['alias' => 'role']);\n }", "title": "" } ]
[ { "docid": "1bddff8749d1475cf2de10510e1129ce", "score": "0.80905974", "text": "public function initialize()\n {\n $this->model = new \\Anax\\Weather\\WeatherModel;\n }", "title": "" }, { "docid": "b1e7f94a763395d5e16551c4dbc0a404", "score": "0.7734291", "text": "protected function _initialize()\n\t{\n\t\t// Check class of model\n\t\t$this->_check_orm();\n\n\t\tif ( ! is_object($this->_db))\n\t\t{\n\t\t\t// Get database instance\n\t\t\t$this->_db = Database::instance($this->_db_group);\n\t\t}\n\n\t\tif ($this->_on_delete_clear_pivot_tables === NULL)\n\t\t{\n\t\t\t// Set default value\n\t\t\t$this->_on_delete_clear_pivot_tables = self::$on_delete_clear_pivot_tables;\n\t\t}\n\n\t\t$this->_initialize_file_fields();\n\t\t$this->_initialize_position_fields();\n\n\t}", "title": "" }, { "docid": "44e1a0841f5793ef6ae2bdd554d6b0db", "score": "0.7637037", "text": "public function __construct() {\n $this->photo_model = new PhotoModel();\n $this->photo_model->init();\n }", "title": "" }, { "docid": "4df7dbfc6879f83827b574ebe0f1c383", "score": "0.7636668", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "f4290ea414be67d836c42959c30aa9ee", "score": "0.7618666", "text": "protected function _construct()\n {\n $this->_init(Model::class, ResourceModel::class);\n }", "title": "" }, { "docid": "ce331aca6da86ae16faff3273a38e719", "score": "0.7543257", "text": "public function __construct(){ \r\n\r\n\t\t\t// Creamos el objeto de tipo Model\r\n\t $this->model = new Model();\r\n\r\n\t }", "title": "" }, { "docid": "051c9a4562b684ac4b045657ae736442", "score": "0.7474415", "text": "public function __construct() {\n\n\t\t\t\t$this->init();\n\n\t\t\t}", "title": "" }, { "docid": "7e1989ee03e7be4dd87e766e0e329fb9", "score": "0.7451064", "text": "public function initialize() {\n // TODO: Implement initialize() method.\n }", "title": "" }, { "docid": "5e5caf44fdc4abcf70b01465deeccc25", "score": "0.7443863", "text": "public function initialize()\n {\n $this->setSchema(\"spider\");\n $this->setSource(\"book_price\");\n $this->belongsTo('book_id', '\\BookBasic', 'id', ['alias' => 'BookBasic']);\n\n $this->addBehavior(\n new \\Phalcon\\Mvc\\Model\\Behavior\\Timestampable(\n [\n 'beforeCreate' => [\n 'field' => 'created_at',\n 'format'=> 'Y-m-d H:i:s',\n ]\n ]\n )\n );\n\n }", "title": "" }, { "docid": "2c5dfe2c5a55d772de468d3ae9998b91", "score": "0.74344116", "text": "public function _initialize()\n {\n $this->initialize();\n }", "title": "" }, { "docid": "573d53b371b89ed10e5723490dae41a9", "score": "0.74179095", "text": "public function initialize()\n {\n parent::initialize();\n }", "title": "" }, { "docid": "7c027ba49e69563ac0490edf29a24c67", "score": "0.7412368", "text": "protected function initialize() { }", "title": "" }, { "docid": "552bcc8a4454a39e7bf7c88faf08711d", "score": "0.7391867", "text": "public function initialiser() {\r\n }", "title": "" }, { "docid": "66268dbc4580be937957819fd7486541", "score": "0.737325", "text": "private function __construct() {\n $this->_initData();\n }", "title": "" }, { "docid": "989108ae0a7a87afac77ee1beff4828f", "score": "0.7362589", "text": "public function __construct()\n {\n $this->Model();\n }", "title": "" }, { "docid": "0a81a2e2ae1c00d62cf8cb11c4cdcdb6", "score": "0.7339643", "text": "public function initialize(): void\n {\n $this->loadModel('Fields');\n $this->loadModel('Immobiles');\n $this->loadModel('FieldDetails');\n }", "title": "" }, { "docid": "5ae0af851ba90f59ceb13c842fdfe9b3", "score": "0.73371464", "text": "public function __construct(){\r\n\r\n $this->initialize();\r\n\r\n }", "title": "" }, { "docid": "fa4cd47e5890acf36b84b899b4886d5b", "score": "0.7325539", "text": "public function __construct()\n {\n $this->initialize();\n }", "title": "" }, { "docid": "fa4cd47e5890acf36b84b899b4886d5b", "score": "0.7325539", "text": "public function __construct()\n {\n $this->initialize();\n }", "title": "" }, { "docid": "4221266e611d2f727b0084bd4a22bc3d", "score": "0.7320705", "text": "public function __construct(){\n\t\tparent::__construct();\n\t\t//load model\n\t}", "title": "" }, { "docid": "0132a76856f4e2cd6d08dd6991c1e080", "score": "0.73186344", "text": "protected function _construct()\n {\n $this->_init(\\Loyalty\\Point\\Model\\Rule::class, \\Loyalty\\Point\\Model\\ResourceModel\\Rule::class);\n }", "title": "" }, { "docid": "a5624038dc86c28ff505b9f5edd2f22f", "score": "0.73100793", "text": "public function initialize() {\n\n\t\tparent::initialize();\n\t}", "title": "" }, { "docid": "f5f21f74c22e26dc77fc2565421ffcd7", "score": "0.7293985", "text": "protected function _init() {\n\t\tparent::_init();\n\n\t\tforeach ($this->_fields as $key => $val) {\n\t\t\tif (is_int($key)) {\n\t\t\t\tunset($this->_fields[$key]);\n\t\t\t\t$this->_fields[$val] = $val;\n\t\t\t}\n\t\t}\n\t\t$this->_fields += array(\n\t\t\t'key' => '_id', 'data' => 'data',\n\t\t\t'lock' => 'lock', 'expiry' => 'expiry');\n\n\t\tif (!$model = Libraries::locate('models', $this->_model)) {\n\t\t\tthrow new ClassNotFoundException('Model class `'.$this->_model.'` not found.');\n\t\t}\n\t\t$this->_model = $model;\n\t}", "title": "" }, { "docid": "ca4f496e213408e91d98b3287a0db8f8", "score": "0.72882164", "text": "public function initialize() {\n }", "title": "" }, { "docid": "60a287ed2f84f8d64f8567f4b67194b7", "score": "0.7252203", "text": "function __construct()\r\n {\r\n // Call the Model constructor\r\n parent::__construct();\r\n }", "title": "" }, { "docid": "f9def8497ed13a79ba4053e41ee34b24", "score": "0.72513855", "text": "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"auth\");\n }", "title": "" }, { "docid": "6212b5aae52b2dbad6690edfa796c90c", "score": "0.72409964", "text": "public function __construct(){\n\t\t\t\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "d3cf13fbfeb23d87d4c6d1ae7fb07e3e", "score": "0.72384226", "text": "public function _initialize() {\n }", "title": "" }, { "docid": "3ac356752b8e1580bff579504ebf0ea2", "score": "0.72344756", "text": "public function initialize()\n {\n parent::initialize();\n }", "title": "" }, { "docid": "3ac356752b8e1580bff579504ebf0ea2", "score": "0.72344756", "text": "public function initialize()\n {\n parent::initialize();\n }", "title": "" }, { "docid": "3b872b86f18424aaa46b1f59af31f597", "score": "0.7226483", "text": "public function initialize()\n {\n $this->useDynamicUpdate( true );\n\n $this->addBehavior( new SoftDelete( array(\n 'field' => 'delsign',\n 'value' => SystemEnums::DELSIGN_YES,\n ) ) );\n\n $this->hasMany( 'id', 'apps\\admin\\models\\PriGroupsRoles', 'roleid', array( 'alias' => 'priGroupsRoles' ) );\n $this->hasMany( 'id', 'apps\\admin\\models\\PriRolesPris', 'roleid', array( 'alias' => 'priRolesPris' ) );\n //与oa关联\n $this->hasMany( 'id', '\\apps\\oa\\models\\FlowRefer', 'userid', array( 'alias' => 'FlowRefer' ) );\n $this->setSource( $this->di[ 'config' ][ 'database' ][ 'prefix' ] . $this->getSource() );\n }", "title": "" }, { "docid": "05b135ab3f6aedf2651984ce62cbf3a2", "score": "0.7222866", "text": "public function init() { }", "title": "" }, { "docid": "05b135ab3f6aedf2651984ce62cbf3a2", "score": "0.7222866", "text": "public function init() { }", "title": "" }, { "docid": "f391c1adf8986f2c2c762ff27f04e83e", "score": "0.7222515", "text": "public function initialize()\n {\n parent::initialize();\n }", "title": "" }, { "docid": "c1221049cf885c95b60f61b8fc83d327", "score": "0.72144926", "text": "protected function _construct()\n {\n $this->_init(ContactModel::class, ContactResourceModel::class);\n }", "title": "" }, { "docid": "1e7f4c0bb9dbb6fe704515aeca051b5b", "score": "0.72127306", "text": "public function init()\n {\n \n }", "title": "" }, { "docid": "1e7f4c0bb9dbb6fe704515aeca051b5b", "score": "0.72127306", "text": "public function init()\n {\n \n }", "title": "" }, { "docid": "2141ff780e6f7326517e13d0f98a687d", "score": "0.7209467", "text": "public function init()\r\n {\r\n\t\t$this->restaurantModel = new Application_Model_Restaurant();\r\n\t\t$this->reservationModel = new Application_Model_Reservation();\r\n \t$this->cuisinetypeModel = new Application_Model_Cuisinetype();\r\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "dfbfa3b38024a46d0d88532f2e142d84", "score": "0.7207927", "text": "public function __construct()\n {\n $this->applyDefaultValues();\n }", "title": "" }, { "docid": "226e99ba07153e7f1f530eef6df06f6a", "score": "0.72075003", "text": "protected function _construct()\n {\n $this->_init('Solrbridge\\Custom\\Model\\Sample', 'Solrbridge\\Custom\\Model\\ResourceModel\\Sample');\n }", "title": "" }, { "docid": "ec1b05ce36c5622dde2f751a2432ef56", "score": "0.71919805", "text": "public function initialize ()\n {\n parent::initialize();\n }", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.71906894", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.71906894", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.71906894", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.71906894", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.71906894", "text": "public function init(){}", "title": "" }, { "docid": "6ef88de85c7de0dd4aec8a340d23a892", "score": "0.71898097", "text": "public function __construct() \n {\n parent::__construct();\n \n // call the objects initialization parameters\n self::setParams();\n }", "title": "" }, { "docid": "4af89b70f715cd0fcf8f9f81eaf74a42", "score": "0.71888673", "text": "function __construct() {\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "74b601774b4686e91e59e68cd7051e28", "score": "0.7186197", "text": "public function initialize()\r\n {\r\n }", "title": "" }, { "docid": "74b601774b4686e91e59e68cd7051e28", "score": "0.7186197", "text": "public function initialize()\r\n {\r\n }", "title": "" }, { "docid": "105ba4b4cdbe10162c72220f475575d2", "score": "0.71837336", "text": "public function initialize()\n {\n $this->setSource('custom_fields_values');\n\n $this->belongsTo(\n 'custom_fields_id',\n 'Canvas\\Models\\CustomFields',\n 'id',\n ['alias' => 'field']\n );\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "697352bae93c8132fbf39b709f7cee3c", "score": "0.717809", "text": "public function initialize()\n {\n }", "title": "" }, { "docid": "6e1f509ec28d98fd87b25b9448670032", "score": "0.71728545", "text": "public function init() {\n }", "title": "" }, { "docid": "6e1f509ec28d98fd87b25b9448670032", "score": "0.71728545", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7168888", "text": "public function init() {\n }", "title": "" }, { "docid": "06b9df18e0620ae0a915fd38813c43fa", "score": "0.7168044", "text": "public function init() {\r\n }", "title": "" }, { "docid": "d13ef4bf59c8d40794e8a18364e2404e", "score": "0.7164268", "text": "protected function initialize() \n {\n }", "title": "" }, { "docid": "5daab2772a69363f6646433fad938dc2", "score": "0.7161035", "text": "public function __construct()\n {\n $this->model = new Attributes();\n }", "title": "" }, { "docid": "80dc3f0fc6006f0fe1ce13972e95eb58", "score": "0.71514386", "text": "public function __construct()\n {\n $this->model = new AslabModel();\n }", "title": "" }, { "docid": "9587ae8c8078c3f0ec82b8b09e910321", "score": "0.7142866", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "00b2dbdbe819ffe1c1d602a75e5956e6", "score": "0.71417665", "text": "public function init()\n {\n \n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" }, { "docid": "b2ecf10d068ade0a0918f523df528bad", "score": "0.71411073", "text": "public function initialize()\n {\n\n }", "title": "" } ]
88cec764fee5a39b3dc858e002e2b010
Show for User dontpay
[ { "docid": "1cbae6d8a2c831aba136a6ca53cbde65", "score": "0.0", "text": "public function dontbuy_full()\n\t{\n\t\t$sql = $this->pdo->prepare(\"SELECT * FROM basket_tbl where status='0' \");\n\t\t$sql->execute();\n\t\t$row = $sql->fetchAll(PDO::FETCH_OBJ);\n\t\treturn $row;\n\t}", "title": "" } ]
[ { "docid": "c3e05456499b317859ea25f1dbcfd5c0", "score": "0.69277096", "text": "public function paymentUnchecked()\n {\n return view('admin.report.paymentUnchecked');\n }", "title": "" }, { "docid": "d84325c8b0a37b4ca4499c5952869090", "score": "0.62920564", "text": "function wp_ec_free_checkout_hide_payment_form(){\r\n\t\t\r\n\t\tglobal $wpsc_cart;\r\n\t\t\r\n\t\tif ($wpsc_cart->calculate_total_price() == '0') {\r\n\t\t\t\r\n\t\t\techo '<style>table.wpsc_checkout_table tr td.wpsc_gateway_container{ display: none; }</style>';\r\n\t\t\techo \"<tr><td colspan='2'><h3><strong>$free_checkout_message</strong></h3></td></tr>\";\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "309b922d8dd019ea4056c0a434f8a80a", "score": "0.6129223", "text": "public function _isTraderWithoutDeposit()\n {\n add_shortcode('ts_is_trader_without_deposit', function($data, $content = '') {\n if (!\\TSInit::$app->trader->isGuest && !\\TSInit::$app->trader->deposited) {\n return do_shortcode($content);\n } else {\n return '';\n }\n });\n }", "title": "" }, { "docid": "bc62cbaecd0958339411957a12db0a4e", "score": "0.6126807", "text": "public function nopremiumAction ()\n { \n $this->model->nopremium ($this->params ['system_id']);\n $this->model->history ();\n }", "title": "" }, { "docid": "46ecc7c200f2efce3c976071cd32b4a3", "score": "0.6118045", "text": "public function commissionUnchecked()\n {\n return view('admin.report.commissionUnchecked');\n }", "title": "" }, { "docid": "02e11cb32947326cedd484a475c9602a", "score": "0.61009556", "text": "public function userCryptoPreferenceDisabled()\n {\n $data['menu'] = '';\n return view('user_dashboard.crypto.crypto-preference-disabled', $data);\n }", "title": "" }, { "docid": "99b8f5a2ab5c14844fbb81e4eb98dc91", "score": "0.60629237", "text": "public function noAuth()\n {\n parent::view(\n 'inicio',\n 'index',\n 'Horario de formación',\n array(\n 'title' => 'Se requiere autorización',\n 'msg' => 'la solicitud requiere autenticación de usuario',\n )\n );\n }", "title": "" }, { "docid": "349d030012a893ad18f8537bd16c05e2", "score": "0.6058187", "text": "public function paymentNotClear() {\n if (!$this->session->has_userdata('customer_id')) {\n redirect('Authentication/index');\n }\n $this->load->view('authentication/paymentNotClear');\n }", "title": "" }, { "docid": "ac2ad418cde4b7a8198a0c7e39d598b3", "score": "0.60332155", "text": "public function nonloggedAction(Request $request) {\n\n $deposit_obj = new Deposit();\n $submit_to_gateway = false;\n\n $form_type = new AtmXPay2Type(array('portal_user' => null));\n $form = $this->createForm($form_type, $deposit_obj);\n\n if ($this->getRequest()->getMethod() == 'POST' &&\n $this->processForm($form, $deposit_obj) === true) {\n $gateway_values = $this->getGatewayFormData($deposit_obj, $request);\n $submit_to_gateway = true;\n }\n\n $template_params = array('trading_accounts' => true,\n 'form' => $form->createView(),\n 'submit_to_gateway' => $submit_to_gateway,\n 'gateway_values' => isset($gateway_values) ? $gateway_values : array());\n\n if ($request->isXmlHttpRequest()) {\n return $this->render('AppBundle::MemberArea/Payments/AtmXPay/form_nonlogged.html.twig', $template_params);\n }\n\n return $this->render('AppBundle::MemberArea/Payments/AtmXPay/nonlogged.html.twig', $template_params);\n }", "title": "" }, { "docid": "1ed553d264a41dc2160840bbb5a8d0a4", "score": "0.59474504", "text": "function show_unpaid_messages()\n{\n printf (\"<p><b>You are currently unpaid for %s!</b></p>\", CON_NAME);\n\n // Check for a full con\n if (attendees_at_max())\n {\n printf (\"<p>Unfortunately, %s has reached its attendance limit.\\n\",\n\t CON_NAME);\n echo \"We cannot accept any more registrations at this time.</p>\\n\";\n echo \"<p>\".NEXT_CON_INFO.\"</p>\";\n\n return false;\n }\n\n // If the website is frozen, don't display the PayPal info\n if (is_site_frozen())\n {\n printf (\"<p>We're sorry, but signups for %s are not allowed at this\\n\",\n\t CON_NAME);\n echo \"time. We can not accept payment for the convention\\n\";\n echo \"on the website.</p>\\n\";\n printf (\"<p>Please contact the <a href=%s>Con&nbsp;Chair</a> if you\\n\",\n\t mailto_url(EMAIL_CON_CHAIR, 'Registration question'));\n printf (\"still want to pay and attend %s.</p>\\n\", CON_NAME);\n return false;\n }\n\n // If we get here, the user can still pay for the con and signup for games,\n // assuming that signups have opened and games are still available\n echo \"Until you pay, you won't be able to sign up for any games. \";\n echo \"<a href=\\\"PaymentStatus.php\\\">Click here to pay!</a>\\n\";\n\n return true;\n}", "title": "" }, { "docid": "7f125080fd3a9ed02e065c7835d1c925", "score": "0.59259874", "text": "public function paymentDetailsAction() {\n $objWithdrawalModel = Admin_Model_WithdrawalRequest::getInstance();\n $withdrawalDetails = $objWithdrawalModel->getPaymentDeatils();\n if ($withdrawalDetails) :\n $this->view->withdrawal = $withdrawalDetails;\n endif;\n }", "title": "" }, { "docid": "0808fa97beee18af95a8bae08970c508", "score": "0.58827287", "text": "public function noRegistered()\n {\n parent::view(\n 'inicio',\n 'index',\n 'Horario de formación',\n array(\n 'title' => 'AVISO',\n 'msg' => 'Esta cuenta no existe o la contraseña es incorrecta. Si no recuerdas la cuenta, restablécela ahora.',\n )\n );\n }", "title": "" }, { "docid": "acc96b430c7dade0bb19d9bdc0fade07", "score": "0.58698964", "text": "public function actionDecline()\n {\n $this->render('decline');\n }", "title": "" }, { "docid": "27e91d682cddbc4578831240699f9d8f", "score": "0.58684826", "text": "function no_access(){\n \t$content_data = array();\n \t$this->template->set_theme(Settings_model::$db_config['default_theme']);\n \t$this->template->set_layout('school');\n \t$this->template->title('No Access');\n \t$this->template->set_partial('header', 'header');\n\t\t$this->template->set_partial('sidebar', 'sidebar');\n \t$this->template->set_partial('footer', 'footer');\n \t$this->template->build('no_access', $content_data);\n }", "title": "" }, { "docid": "bfed58380d5857ec297b6283ccc6b0aa", "score": "0.58626735", "text": "public function noRecord($noRecord) {\n if ($noRecord == true) {\n $html = \"<div class='info-box bg-yellow'>\";\n $html .= \"<span class='info-box-icon'><i class='fa fa-exclamation-triangle'></i></span>\";\n $html .= \"<div class='info-box-content'>\";\n $html .= \"<p> Hiện tại chưa tồn tại bản ghi nào!</p>\";\n $html .= \"</div>\";\n $html .= \"</div>\";\n return $html;\n }\n }", "title": "" }, { "docid": "dcc9673c11ea4024983cd8499ea5fff1", "score": "0.5831019", "text": "public function cancel(){\n $data['title'] = 'Payment Cancel';\n $data['topbar'] = $this->load->view('frontend/account/top_bar', '', true);\n $data['template']='frontend/paypal/cancel';\n $this->load->view('template/frontend/template',$data);\n }", "title": "" }, { "docid": "605c33fb2d1d56b8865e5adcc04bf89c", "score": "0.5820601", "text": "public function noauthAction() {\n\t\t$registry = Shineisp_Registry::getInstance ();\n\t\t$translator = $registry->Zend_Translate;\n\t\techo $translator->translate('Please check the permission and the resource in your API configuration');\n\t}", "title": "" }, { "docid": "3247d67478a48323fedf993691c35771", "score": "0.58178943", "text": "function no_rpms()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n clearos_load_language('marketplace');\n\n $this->page->set_message(lang('marketplace_purchase_complete_no_rpms'), 'info');\n redirect('/marketplace/install');\n }", "title": "" }, { "docid": "8df906e30385fd5111ff2ddfdd979b15", "score": "0.58065176", "text": "public function unpaidInvoices(){\n//\n// $userQuery =\n//\n// $userQuery = \"User_Id eq '\".Auth::user()->externalId.\"'\";\n//\n// $invoices = $cont->getRequest('Invoices?$filter=Status eq webapi.Models.InvoiceStatus\\'Sent\\' or Status eq webapi.Models.InvoiceStatus\\'Overdue\\' and '.$userQuery);\n// if($invoices instanceof View){\n// return $invoices;\n// }\n// $invoices = $invoices->value;\n\n return view('dashboard.unpaid');\n }", "title": "" }, { "docid": "45d7c27b953b99e4d5aab846dc7b65f0", "score": "0.5786447", "text": "public function readOnlyPopupAction() {\n $msg = 'Please enter Bank or Cards information to your profile and wait for account activation by Admin.';\n\n return $this->render('ErpCoreBundle:crossBlocks:general-confirmation-popup.html.twig', [\n 'askMsg' => $msg,\n 'hideActionBtn' => true,\n 'cancelBtn' => 'OK'\n ]);\n }", "title": "" }, { "docid": "117320d910620fe9a798a8d3c79a055e", "score": "0.5781564", "text": "public function print_nothing_to_display() {\n // Render button to allow user to reset table preferences.\n echo $this->render_reset_button();\n $this->print_initials_bar();\n echo get_string('nothingtodisplay', 'lifecyclestep_adminapprove');\n }", "title": "" }, { "docid": "25dad927ae14b6dfd2a81c82a5c95dea", "score": "0.57733226", "text": "public function show(Pay $pay)\n {\n //\n }", "title": "" }, { "docid": "0eda3db881a98ae16717528ca18beed3", "score": "0.57638514", "text": "public function actionPaypalCancel()\n {\n /*Do what you want*/ \n\t\t\t$this->redirect(\"index\");\n }", "title": "" }, { "docid": "332ab650a4c285d02594ee05c9f677a6", "score": "0.5752521", "text": "function Show_NoProducts()\n\t\t{\n\t\t\tglobal $Captions_arr,$db,$ecom_siteid;\n\t\t\t$Captions_arr['SHOP_DETAILS'] \t= getCaptions('SHOP_DETAILS');\n\t\t?>\n\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"shelfBtable\">\n\t\t\t<?php\n\t\t\t\tif ($Captions_arr['SHOP_DETAILS']['NO_PROD'])\n\t\t\t\t{\n\t\t\t?>\n \t<tr>\n\t \t<td colspan=\"3\" class=\"shelfBheader\"><?php echo stripslash_normal($Captions_arr['SHOP_DETAILS']['NO_PROD'])?></td>\n \t</tr>\n\t\t\t<?php\n\t\t\t}\n\t\t\t\tif ($Captions_arr['SHOP_DETAILS']['NO_PROD_MSG'])\n\t\t\t\t{\n\t\t\t?>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"left\" valign=\"middle\" class=\"shelfBtabletd\"><h2 class=\"shelfBprodname\" ><?php echo stripslash_normal($Captions_arr['SHOP_DETAILS']['NO_PROD_MSG'])?></h2>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\t\n\t\t\t<?php\n\t\t\t}\n\t\t\t?> \n\t\t\t</table>\n\t\t<?php\t\n\t\t}", "title": "" }, { "docid": "0e9b70a419158aa2070c9479cf6a4b22", "score": "0.5748652", "text": "public function nonAktifkan()\n {\n $id = $_GET['id'];\n if($this->model->prosesnonAktifkan($id)){\n header(\"location: index.php?page=praktikum&aksi=view&pesan=Berhasil non-Aktifkan Data\"); //Jangan ada spasi setelah location\n }else{\n header(\"location: index.php?page=praktikum&aksi=view&pesan=Gagal non-Aktifkan Data\"); //Jangan ada spasi setelah location\n }\n }", "title": "" }, { "docid": "5c5688a06b445f3b56c6e98e0bfc0205", "score": "0.57377285", "text": "public function no_items() {\r\n _e( 'No customers avaliable.', 'sp' );\r\n }", "title": "" }, { "docid": "5e8ec4f300b0651fdd8e96f51e09147d", "score": "0.57029283", "text": "public function declinedWithdrawal(){\n $session = session();\n $email = \\config\\Services::email();\n\t\t$data['title'] = 'Declined Withdrawal | Trademagoptions';\n\t\t$user_model = new UserModel();\n\t\t$invested_model = new InvestedModel();\n\n\t\t$data['user'] = $user_model->getOne(array('uuid' => $session->user['uuid']));\n\t\t$data['countries'] = $this->app_services->getCountries();\n\t\t$data['declinedWithdrawal'] = $invested_model->getDeclinedWithdrawal();\n\t\t// echo '<pre>'; print_r($data['countries']); '</pre>'; die;\n\t\t\n\t\techo view('admin/declinedWithdrawal', $data);\n\t}", "title": "" }, { "docid": "38f080f43e9ab34a1da5be4f7ce8984d", "score": "0.5698854", "text": "public static function wcap_display_no_button () {\n ?>\n <input type=\"submit\" name=\"submit\" id=\"wcap-import-no\" class=\"button button-primary wcap-import-no\" value=\"No\" />\n <?php\n }", "title": "" }, { "docid": "40756d851a11598435bb1c453305ebb8", "score": "0.5672354", "text": "function display($rec)\n {\n return text(\"password_hidden\");\n }", "title": "" }, { "docid": "390d467605f4d322c22be42183f24cff", "score": "0.56599826", "text": "public function get_buy_token_cancel()\n {\n return view('layouts.purchase_credits_prices')->with('tokens', $this::getTokens());\n }", "title": "" }, { "docid": "ed139512b3ac078e7189f18223a45b0e", "score": "0.5656998", "text": "public function debit(Request $request){\n $user = Accounts::find($request->session()->get('LoggedUser'));\n if($user == null){\n return redirect(route('storeAdmin.index'));\n }\n else{\n return view('store.paymentMethod.debit');\n }\n\n }", "title": "" }, { "docid": "077dd490ed40793c4313c8f22accea1b", "score": "0.5655788", "text": "public function isUnpaid()\n {\n return $this->getPayment() == null;\n }", "title": "" }, { "docid": "c1f883109a3f1009ac7ad98ff5791256", "score": "0.5655454", "text": "public function getLabelText()\n {\n return Mage::helper('shippit')->__('Authority to Leave without Signature');\n }", "title": "" }, { "docid": "066e0b0a5b3b7db890e81695da6b5f93", "score": "0.56405663", "text": "public function viewAny(User $user)\n {\n return false;\n // show all users payments(?) or all payments for monthly bill(?)\n // or all payments for bill(?) or all payments for family(?)\n }", "title": "" }, { "docid": "005e54c4cfd8873603089e018c46ce11", "score": "0.5640451", "text": "public function view_drops_payouts() {\n\t\t$SITE_TITLE = SITE_TITLE;\n\t\t$data['title'] = \"$SITE_TITLE Admin || View page\";\n $page\t=\t$this->dropspayouts_model->getdropspayouts();\n\t\t\n\t\t//$data['endusers'] = $this->enduser_model->getallUserPage();\n\t\t\n\t\tif($page) {\n\t\t\t$data['page']\t=\t$page;\n\t\t\t$this->layout('enduser/view_drops_payouts',$data);\n\t\t\t\n\t\t} else {\n\t\t\tredirect(\"admin/enduser\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "32aaa3bf1c6451f8e7598c3697871b91", "score": "0.5636188", "text": "public function discounts();", "title": "" }, { "docid": "fa4cfcf42610e1b341da2f3fe984ccf6", "score": "0.5623598", "text": "function hide_cust_detaisl_from_vendor_email($value , $id){\r\n return false;\r\n}", "title": "" }, { "docid": "e0e8c842132e420b118eaffad3030c00", "score": "0.5621033", "text": "public function no_items() {\n\t\t__( 'No users found', DLN_LIKE_SLUG );\n\t}", "title": "" }, { "docid": "8b0c959e2da2306b97acc338c6c62311", "score": "0.56169444", "text": "public function isHidden() {\n\t\tif (!Mage::getStoreConfig('creditlimit/general/enabled')) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7d8bbdb642b38edd0ed5ea90536da4e1", "score": "0.56160766", "text": "public function showNotAnswer()\n {\n $allCat = $this->obj->getAllCategory();\n $allNotA = $this->obj2->getNotAnswer();\n return view('admin.fatawi.AdvisoryNotAnswer', ['allCat' => $allCat, 'allNotA' => $allNotA]);\n }", "title": "" }, { "docid": "a0f5053cc0404c6a4c703826f618121f", "score": "0.56126285", "text": "function suppressionDuPanier () {\n $_SESSION['cart'] = [];\n echo '<div class=\"alert alert-warning\" role=\"alert\">\n Votre panier est vide\n </div>';\n}", "title": "" }, { "docid": "f3e177baaa62219865f55864dd1f373e", "score": "0.5603658", "text": "public function declinedDeposit(){\n $session = session();\n $email = \\config\\Services::email();\n\t\t$data['title'] = 'Declined Deposit | Trademagoptions';\n\t\t$user_model = new UserModel();\n\t\t$invested_model = new InvestedModel();\n\n\t\t$data['user'] = $user_model->getOne(array('uuid' => $session->user['uuid']));\n\t\t$data['countries'] = $this->app_services->getCountries();\n\t\t$data['declinedDeposit'] = $invested_model->getDeclinedDeposit();\n\t\t// echo '<pre>'; print_r($data['countries']); '</pre>'; die;\n\t\t\n\t\techo view('admin/declinedDeposit', $data);\n\t}", "title": "" }, { "docid": "22ccc213b91324e5baaa69c5110cdfaf", "score": "0.5597465", "text": "public function cancel(){\n $this->load->view('paypal/cancel');\n\t}", "title": "" }, { "docid": "62612f8a8befb0b8f6669dc6472ac046", "score": "0.5591837", "text": "public function view_exp_dispute(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin');\n\t\t}else {\n\t\t\t$this->data['heading'] = 'View Experience Cancel';\n\t\t\t$booking_no = $this->uri->segment(4,0);\n\t\t\t$this->data['expdispute_details'] = $this->experience_dispute_model->get_exp_dispute_details($booking_no);\n\t\t\tif ($this->data['expdispute_details']->num_rows() > 0){\n\t\t\t\t$this->load->view('admin/experience_dispute/view_experience_dispute',$this->data);\n\t\t\t}else {\n\t\t\t\tredirect('admin');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "105b17b7bb17487c284b0261a7ec77f1", "score": "0.55895454", "text": "public function no_soportado()\n\t{\n\t\t$this->load->view('tracking_not_supported');\n\t}", "title": "" }, { "docid": "a171412e0d0bfa22871a0f0ed0189075", "score": "0.55678356", "text": "function mr_show_payments_lists( $memberid ) {\n ?>\n <h3><?php echo __( 'Unpaid fees', 'member-register' ); ?></h3>\n <?php\n if ( mr_has_permission( MR_ACCESS_PAYMENT_MANAGE ) ) {\n echo ' <p>' . __( 'Mark as paid with the OK button.', 'member-register' ) . '</p>';\n }\n\n mr_show_payments( $memberid, true );\n ?>\n <hr/>\n <h3><?php echo __( 'Fees paid to the', 'member-register' ); ?></h3>\n <?php\n mr_show_payments( $memberid, false );\n}", "title": "" }, { "docid": "f2e35a5e5a6c938e666f603de86b350f", "score": "0.5564733", "text": "protected function hidden(){\n }", "title": "" }, { "docid": "f6e3adee8132fc494dbc0cd5d74a7adb", "score": "0.5548204", "text": "public function getUserNotHaveCreditCard(){\n //get entity manager object\n $em = $this->getDoctrine()->getManager();\n //send the cc to all the shop\n $shops = $em\n ->getRepository('StoreManagerStoreBundle:Store')\n ->getUserShopNotCc();\n if($shops){\n $msg_type = \"CC_NOT_ADDED\";\n $msg_status = \"A\";\n $is_active = 1;\n $type = \"type_a\";\n $this->sendShopNotification($shops, $msg_type, $msg_status, $is_active, $type);\n return true;\n }\n return true;\n }", "title": "" }, { "docid": "e7fd9ba347d4eefdb113622091b1620b", "score": "0.55447096", "text": "function edd_slg_facebook_admin_notices_dismissed() {\n\n if( !empty( $_GET['edd_slg_fb_sdk_notice_disable'] ) ){\n update_option('edd_slg_fb_sdk_notice_disable', '1');\n }\n}", "title": "" }, { "docid": "b5438e49b2e91f7fc8b711a20763a0de", "score": "0.5542819", "text": "protected function disableShopIdAndPass()\n {\n $this->disableShopIdAndPass = TRUE;\n }", "title": "" }, { "docid": "9f445cd052a896fae818b9a74a6db7af", "score": "0.5541991", "text": "public function purchaseProtection(){\n $cms=CMS::where('type','=','footer')->get();\n $cmspurchaseProtection=CMS::where('title','=','100% purchase protection')->first();\n return view('Eshopper.purchaseprotection',['cms'=>$cms,'cmspurchaseProtection'=>$cmspurchaseProtection]);\n }", "title": "" }, { "docid": "e8549cffdf2905b068eea132b7aebbd3", "score": "0.5527065", "text": "function denied(){// display this view (/app/views/users/denied.ctp) when the user is denied\n }", "title": "" }, { "docid": "44eaac4c0a68173ac0306091448f1f0a", "score": "0.55263525", "text": "public function pay_account()\n\t {\n\t \treturn view('pages.pay-account.pay_account');\n\t }", "title": "" }, { "docid": "d37bb33aae3c8583f4da635d9d72ff6f", "score": "0.54955465", "text": "public function unauthorized_request()\n \t{\n\t\t$data['nestedView']['heading']=\"Unauthorized Request\";\n\t\t$data['nestedView']['cur_page'] = 'unauthorized_request';\n\t\t$data['nestedView']['parent_page'] = 'unauthorized_request';\n\t\t$data['nestedView']['js_includes'] = array();\n\t\t$data['nestedView']['css_includes'] = array();\n\t\t\n\t\t$data['nestedView']['pageTitle'] = 'Smart Parking System - Unauthorized Request';\n\n\t\t# Breadcrumbs\n\t\t$data['nestedView']['breadCrumbOptions'] = array( array('label'=>'Home','class'=>'','url'=>SITE_URL));\n\t\t$data['nestedView']['breadCrumbOptions'][] = array('label' => 'Unauthorized Request', 'class' => 'active', 'url' =>'');\n\n\t\t# Additional data\n $data['portlet_title'] = 'Unauthorized Request';\n\n\t\t$this->load->view('user/unauthorized_request',$data);\n \t}", "title": "" }, { "docid": "791ae8b3553c0284b9c0d8ac487b40b3", "score": "0.548935", "text": "public function actionDenied()\n\t{\n $this->iostatus = 4;\n $this->_iov();\n\t}", "title": "" }, { "docid": "41a1b3ea9bac7e1ce6b74465fd3a24ea", "score": "0.54841834", "text": "function status_unpaid ()\n{\n // Put a red box around the unpaid message in the hopes that this will\n // get the user's attention\n\n echo \"<div style=\\\"border: 3px red solid; padding: 1ex; margin: 2ex;\\\">\";\n $result = show_unpaid_messages();\n echo \"</div>\";\n\n // Give the user the news, if any\n if ('' != $_SESSION[SESSION_CON_NEWS])\n {\n display_header (CON_NAME.' News');\n echo '<p>' . $_SESSION[SESSION_CON_NEWS] . \"</p>\\n\";\n }\n\n return $result;\n}", "title": "" }, { "docid": "7c8899cab46129e368bb44ae8c3f2476", "score": "0.5481926", "text": "public function show(Pays $pays)\n {\n //\n }", "title": "" }, { "docid": "7c8899cab46129e368bb44ae8c3f2476", "score": "0.5481926", "text": "public function show(Pays $pays)\n {\n //\n }", "title": "" }, { "docid": "34278b95bac3c1fd22cc862e95609cef", "score": "0.54757094", "text": "public function payout( );", "title": "" }, { "docid": "78c763b6cd8b33157799dbdf3ae6bf27", "score": "0.5472619", "text": "function no_clientes()\r\n\t{\r\n\t\t\r\n\t\tif('' != $this->session->userdata('id_cliente'))\r\n\t\t{\r\n\t\t\tshow_404();\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "126d30521d740a6300db9fbd80e299d4", "score": "0.54602534", "text": "public function actionPaypalCancel()\n {\n \\Yii::info('', 'paypalCancel');\n echo 'ok';exit;\n }", "title": "" }, { "docid": "c697e8f339540617adafa3a3974e775b", "score": "0.5449862", "text": "public function caripendudukandonnikahAction() {\n $this->view;\n $this->view->surat = \"Silakan cari data penduduk berdasarkan NIK\";\n $this->view->judul = \"Masukan NIK\";\n }", "title": "" }, { "docid": "e514fae1e6d77529e796ece1c8161827", "score": "0.54459023", "text": "public function show(Payement $payement)\n {\n //\n }", "title": "" }, { "docid": "ab0bf35ce5f601a2a543b34ba0e66ba0", "score": "0.54415303", "text": "public function ShowPaymentInformation()\n {\n # =================================================================\n $this->time_release_javascript = Get('time_release');\n $time_remaining = $this->GetTimeRemaining();\n \n \n \n # FIGURE OUT THE CREDITS\n # =================================================================\n $credits_user = $this->user_record['credits'];\n $credits_course_cost = $this->session_record['credits_cost'];\n $credits_remaining = ($credits_user - $credits_course_cost);\n $credits_title = ($credits_course_cost == 1) ? 'credit' : 'credits';\n $credits_remaining_title = ($credits_remaining == 1) ? 'credit' : 'credits';\n \n $purchase_credits_box = \"\n <div style='width:350px; font-size:14px;'>\n <div style='float:left; width:30px; text-align:right; font-weight:bold; border:0px solid red;'>\n 1 <br />\n 5 <br />\n 10\n </div>\n <div style='float:left; width:50px; text-align:left; font-weight:normal; border:0px solid red;'>\n &nbsp;&nbsp; for <br />\n &nbsp;&nbsp; for <br />\n &nbsp;&nbsp; for \n </div>\n <div style='float:left; width:60px; text-align:left; font-weight:bold; border:0px solid red;'>\n $19.99 <br />\n $75.00 <br />\n $120\n </div>\n <div style='float:left; width:140px; text-align:left; font-weight:bold; border:0px solid red;'>\n <br />\n &nbsp;(25% savings)<br />\n &nbsp;(50% savings)\n </div>\n <div style='float:left; width:50px; text-align:left; font-weight:normal; border:0px solid red;'>\n &nbsp;[buy]<br />\n &nbsp;[buy]<br />\n &nbsp;[buy]\n </div>\n <div style='clear:both;'></div>\n </div>\";\n \n \n \n \n \n # FORMAT THE SESSION INFO\n # =================================================================\n $btn_continue = MakeButton('positive', 'CONTINUE', \"{$this->script_location};step=payment;time_release={$this->time_release_javascript}\");\n $btn_time_expired = MakeButton('negative', 'FORCE TIME EXPIRED', \"{$this->script_location};step=timeexpire\");\n $btn_cancel = MakeButton('negative', 'CANCEL PURCHASE', \"{$this->script_location};step=cancel\");\n \n $output = \"\n <div id='shortly' style='width:240px; height:45px; display:none;'></div>\n \n <div class='sec_wrapper' style='width:200px;'>\n <div class='sec_header'>Session Cost</div>\n <div class='sec_body'>{$credits_course_cost} {$credits_title}</div>\n </div>\n \n <br /><br />\n \n <div name='use_credits_wrapper'>\n \n <div style='float:left;'>\n <div class='sec_wrapper' style='width:150px;'>\n <div class='sec_header'>Existing Credits</div>\n <div class='sec_body'>\n <center>\n <form id='testconfirmJQ' name='testconfirmJQ' method='post'>\n {$credits_user} <input id='submitJQ' name='submitJQ' type='submit' value='Use' />\n </form>\n </center>\n </div>\n </div>\n </div>\n \n <div style='float:right;'>\n <div class='sec_wrapper'>\n <div class='sec_header'>Buy Account Credits</div>\n <div class='sec_body'>{$purchase_credits_box}</div>\n </div>\n </div>\n \n <div style='clear:both;'></div>\n \n </div>\n \n <br /><br />\n {$time_remaining}\n \n <br /><br />\n \n \n <div>\n <div style='float:right;'>\n {$btn_continue}<br />\n {$btn_time_expired}\n </div>\n \n <div style='float:left;'>\n {$btn_cancel}\n </div>\n <div style='clear:both;'></div>\n </div>\n \n \n\n \n \n <div id='dialog' title='Confirm Session Purchase'>\n <br />\n Please confirm that you would like to purchase this session for <span style='font-size:14px; font-weight:bold; color:blue;'>{$credits_course_cost} {$credits_title}</span>. After this purchase you will have <span style='font-size:12px; font-weight:bold;'>{$credits_remaining} {$credits_remaining_title}</span> remaining in your account.\n <br /><br />\n To make purchase, click Submit Form.</p><p>To cancel transaction, click Cancel.\n </div>\n\n \";\n \n #$this->AddStyle();\n #$this->AddScript();\n \n return $output;\n }", "title": "" }, { "docid": "99803cda4a2eb6aad07e2aa53a78b7d1", "score": "0.54274017", "text": "function wpcf_no_reward_value(){\n\treturn 'no';\n}", "title": "" }, { "docid": "b147cf59a1e1e145a739f9fc40eed0e4", "score": "0.5423729", "text": "public function disableAction()\n {\n $object = $this->admin->getSubject();\n\n $html = $this->renderView('AdminBundle:User:index.html.twig', array(\n 'user' => $object\n ));\n\n return new Response(\n $this->get('knp_snappy.pdf')->getOutputFromHtml($html), 200, array(\n 'Content-Type' => 'application/pdf',\n 'Content-Disposition' => 'attachment; filename=\"file.pdf\"'\n )\n );\n }", "title": "" }, { "docid": "3d024dd0da4615ba77438455d039721f", "score": "0.54215986", "text": "public function blockUserDuePay()\n\t{\n\t\tif($this->input->is_ajax_request())\n\t\t{\n\t\t\t$duePayment = $this->getusers->getDuePayments();\n\n\t\t\tif($duePayment->num_rows() > 0)\n\t\t\t{\n\t\t\t\tforeach($duePayment->result() as $due)\n\t\t\t\t{\n\t\t\t\t\t$user = $this->getusers->get($due->id_user);\n\t\t\t\t\t$date_expiration = mysql_to_unix($due->payment_expiration) +24*3600;\n\t\t\t\t\t$now = now($user->user_timezone);\n\t\t\t\t\t// Actualiza la tabla de usuarios y pagos\n\t\t\t\t\tif($date_expiration < $now)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->db->trans_start();\n\t\t\t\t\t\t\t$this->db->where('id_user', $user->id_user);\n\t\t\t\t\t\t\t$data['user_active'] = 0;\n\t\t\t\t\t\t\t$this->db->update('dtr_users', $data);\n\n\t\t\t\t\t\t\t$this->db->where('id_user', $user->id_user);\n\t\t\t\t\t\t\t$dataPayment['payment_notes'] = $this->lang->line('text-user-block-by-due');\n\t\t\t\t\t\t\t$this->db->update('dtr_payments', $dataPayment);\n\t\t\t\t\t\t$this->db->trans_complete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "456b5a47a681f19100b2c3f827237b34", "score": "0.5421037", "text": "function wdm_disable_cod( $available_gateways ) {\n\n//check whether the avaiable payment gateways have Cash on delivery and user is not logged in or he is a user with role customer\n if ( get_field('user_allowed_net_terms', 'user_' . get_current_user_id()) != 'Yes' || ! is_user_logged_in() ) {\n\n //remove the cash on delivery payment gateway from the available gateways.\n \t\tunset($available_gateways['cod']);\n }\n \n return $available_gateways;\n}", "title": "" }, { "docid": "1087eb93e23d28d96f52494117e01eb5", "score": "0.54178673", "text": "public function skip_confirmation()\n {\n\t\treturn false;\n }", "title": "" }, { "docid": "10d80392c3f45d429ae9644a05d15f02", "score": "0.54175276", "text": "public function cancel()\n {\n return view ('transaction.canceled');\n }", "title": "" }, { "docid": "547dd28fc5baff2e72a35aee33172b12", "score": "0.54163843", "text": "public function notFullyPaid($id)\n {\n $this->updateLoanStatus = \"Not Fully Paid\";\n $this->changeStatus(1);\n }", "title": "" }, { "docid": "3dfd894e7e01b2b95029f0ab2337e6ee", "score": "0.54153997", "text": "public function errorPaymentAction()\n {\n return $this->render('OCCoreBundle:Paypal:errorPaypal.html.twig');\n }", "title": "" }, { "docid": "ff8012b39bb7e41d93a9fb739d586b4d", "score": "0.5412091", "text": "public function settingsNotAvailableAction() {\n\t\t// Nothing to do here but showing the template\n\t}", "title": "" }, { "docid": "78e335e9f80e7933add38e8e76f444b5", "score": "0.5409081", "text": "public function nous(){\n //$annonces = $this->Annonce->last();\n //$categories = $this->Category->allWithCountFikr();\n //$fikrs = $this->Fikr->allWithCount();\n $form = new BootstrapForm($_POST);\n /**\n * Génération des vues grace à la fonction render (Core\\Controller)\n * Contenir les variables et leurs valeurs grace à la fonction compact de php\n * @param String la vue\n * @param Array variables à contenir\n * @var Array annonces\n * @var Array categories\n * @var Array fikrs\n */ \n $this->render('contacter.nous', compact('form'));\n }", "title": "" }, { "docid": "fbc958667969296ee190c0672b53852f", "score": "0.5406124", "text": "function no_items() {\n\t\t_e( 'No visits found.', 'affiliate-wp' );\n\t}", "title": "" }, { "docid": "8de84bff5cfb749926d8a6670ee559bd", "score": "0.54036963", "text": "public function nxNotifAction(){\r\n $res = Mage::helper('payline')->initPayline('NX')->getWebPaymentDetails(array('token' => $_GET['token'], 'version' => Monext_Payline_Helper_Data::VERSION));\r\n if (isset($res['privateDataList']['privateData']['value'])) {\r\n $orderRef = $res['privateDataList']['privateData']['value'];\r\n } else {\r\n foreach ($res['privateDataList']['privateData'] as $privateDataList) {\r\n if ($privateDataList->key == 'orderRef') {\r\n $orderRef = $privateDataList->value;\r\n }\r\n }\r\n }\r\n if (! isset($orderRef)) {\r\n $msgLog = 'Référence commande introuvable dans le résultat du paiement Nx';\r\n Mage::helper('payline/logger')->log('[nxNotifAction] ' . $this->order->getIncrementId() . ' ' . $msgLog);\r\n $redirectUrl = Mage::getBaseUrl() . \"checkout/onepage/\";\r\n }\r\n $this->order = Mage::getModel('sales/order')->loadByIncrementId($orderRef);\r\n $failedOrderStatus = Mage::getStoreConfig('payment/payline_common/failed_order_status');\r\n if (isset($res['billingRecordList']['billingRecord'])) {\r\n $size = sizeof($res['billingRecordList']['billingRecord']);\r\n } else {\r\n $size = 0;\r\n }\r\n $billingRecord = false;\r\n for ($i = 0; $i < $size; $i ++) {\r\n if ($res['billingRecordList']['billingRecord'][$i]->status == 1) {\r\n $txnId = $res['billingRecordList']['billingRecord'][$i]->transaction->id;\r\n if (! $this->order->getTransaction($txnId)) {\r\n $billingRecord = $res['billingRecordList']['billingRecord'][$i];\r\n }\r\n }\r\n }\r\n if ($billingRecord && Mage::helper('payline/payment')->updateOrder($this->order, $res, $billingRecord->transaction->id, 'NX')) {\r\n $redirectUrl = Mage::getBaseUrl() . \"checkout/onepage/success/\";\r\n if ($res['result']['code'] == '04003') {\r\n $newOrderStatus = Mage::getStoreConfig('payment/payline_common/fraud_order_status');\r\n Mage::helper('payline')->setOrderStatus($this->order, $newOrderStatus);\r\n } else if( $res['result']['code'] == '02501' ) { // credit card (CC) will expire\r\n $statusScheduleAlert = Mage::getStoreConfig('payment/PaylineNX/status_when_payline_schedule_alert');\r\n Mage::helper('payline')->setOrderStatus($this->order, $statusScheduleAlert);\r\n } else {\r\n Mage::helper('payline')->setOrderStatusAccordingToPaymentMode(\r\n $this->order, $res['payment']['action'] );\r\n }\r\n if (isset($res['privateDataList']['privateData'][1]) && $res['privateDataList']['privateData'][1]->key == \"newWalletId\" && $res['privateDataList']['privateData'][1]->value != '') {\r\n $this->saveWallet($res['privateDataList']['privateData'][1]->value);\r\n }\r\n $payment = $this->order->getPayment();\r\n if ($payment->getBaseAmountPaid() != $payment->getBaseAmountOrdered()) {\r\n Mage::helper('payline')->automateCreateInvoiceAtShopReturn('NX', $this->order);\r\n }\r\n } else {\r\n if (isset($res) && is_array($res)) {\r\n $msgLog = 'PAYLINE ERROR : ' . $res['result']['code'] . ' ' . $res['result']['shortMessage'] . ' (' . $res['result']['longMessage'] . ')';\r\n } elseif (isset($res) && is_string($res)) {\r\n $msgLog = 'PAYLINE ERROR : ' . $res;\r\n } else {\r\n $msgLog = 'Error during order update (#' . $this->order->getIncrementId() . ')';\r\n }\r\n if (is_array($res) && ! ($res['result']['code'] == '02306' || $res['result']['code'] == '02533')) {\r\n if (is_array($res) && ($res['result']['code'] == '02304' || $res['result']['code'] == '02324' || $res['result']['code'] == '02534')) {\r\n $abandonedStatus = Mage::getStoreConfig('payment/payline_common/resignation_order_status');\r\n $this->order->setState(Mage_Sales_Model_Order::STATE_CANCELED, $abandonedStatus, $msgLog, false);\r\n } else {\r\n $statusScheduleAlert = Mage::getStoreConfig('payment/PaylineNX/status_when_payline_schedule_alert');\r\n if( !empty( $statusScheduleAlert ) ) { // if user conf is set\r\n $failedOrderStatus = $statusScheduleAlert;\r\n }\r\n $this->order->setState(Mage_Sales_Model_Order::STATE_CANCELED, $failedOrderStatus, $msgLog, false);\r\n }\r\n }\r\n Mage::helper('payline/logger')->log('[nxNotifAction] ' . $this->order->getIncrementId() . $msgLog);\r\n Mage::getSingleton('core/session')->addError(Mage::helper('payline')->__('Your payment is refused'));\r\n $redirectUrl = $this->_getPaymentRefusedRedirectUrl();\r\n }\r\n $this->order->save();\r\n return $redirectUrl;\r\n }", "title": "" }, { "docid": "62bf865c8088d3cf45234fdaa5cb23cc", "score": "0.53961676", "text": "public function show_notice_if_not_purchasable() {\n\n\t\t$product_id = \\get_the_id();\n\t\t$purchase_status = get_post_meta( $product_id, 'show_product_for_user', true );\n\t\t$notice = '';\n\n\t\tif ( isset( $purchase_status ) && 'yes' === $purchase_status ) {\n\n\t\t\tif ( is_user_logged_in() ) {\n\t\t\t\t$user = \\wp_get_current_user();\n\n\t\t\t\tif ( ! in_array( 'special_customer', $user->roles ) ) {\n\t\t\t\t\t$notice = apply_filters( 'wcc_hide_notice', __( 'This product is only available for special customers.', 'woocommerce-conditional-content' ) );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$notice = apply_filters( 'wcc_hide_notice', __( 'This product is only available for special customers.', 'woocommerce-conditional-content' ) );\n\t\t\t}\n\t\t}\n\t\techo '<div class=\"wcc-notice\">' . esc_html( $notice ) . '</div>';\n\t}", "title": "" }, { "docid": "fcdd7a6d48b75382168d530146cb08f0", "score": "0.5392436", "text": "function tanhit_cart_warning()\r\n{\r\n ?> <div class=\"cart-warning\"><?php\r\n pll_e( 'Внимание! Указаная стоимость семинаров - это предоплата! Подробнее в описании к семинарам.', 'tanhit' );\r\n ?> </div><?php\r\n}", "title": "" }, { "docid": "6048d0560c1c3b9a850ab5c6c8b4ebcd", "score": "0.5391103", "text": "public function show(UserPaypal $userpaypal)\n {\n //\n }", "title": "" }, { "docid": "7d0bf7460392a46d0b048e962e5c6f61", "score": "0.538782", "text": "public function get_view_disbursements()\n {\n //judul halaman\n $data['title'] = 'Disbursements';\n\n //mengembalikan ke halaman mitra/view_driver\n return view('send_payments.view_disbursements', $data);\n }", "title": "" }, { "docid": "08396ebbb121da49d685a044ceffb322", "score": "0.53850293", "text": "function no_items() {\n echo sprintf( __( 'No %s found.', 'erp' ), $this->contact_type );\n }", "title": "" }, { "docid": "dbd83cee12652a16111f37589a2e3afe", "score": "0.5384912", "text": "public function show(Pay_type $pay_type)\n {\n //\n }", "title": "" }, { "docid": "bb1ae1ef00e4d46065dca795677987b1", "score": "0.53802675", "text": "public function maybeDisplayDisclaimer()\n {\n if (!gdpr('options')->get('plugin_disclaimer_accepted') && (isset($_GET['page']) && 'privacy' === $_GET['page'])) {\n $acceptUrl = add_query_arg([\n 'gdpr_action' => 'accept_disclaimer',\n 'gdpr_nonce' => wp_create_nonce('gdpr/admin/action/accept_disclaimer'),\n ]);\n gdpr('admin-notice')->add('admin/notices/disclaimer', compact('acceptUrl'));\n }\n }", "title": "" }, { "docid": "6b584a80197468e2f87245e006385332", "score": "0.537945", "text": "function disprofil(){\n\t\t$data['content_view'] = \"v_profilAdmin.php\";\n\t\t$this->load->model('m_zakat');\n\t\t$uname = $_SESSION['username'];\n\t\t$profil = $this->m_zakat->get_profil($uname);\n\t\t$data['profil'] = $profil;\n\t\t$this->load->view('v_admin',$data);\n\t}", "title": "" }, { "docid": "ec50bc2e9bce0d81cbc7f59b5ad74360", "score": "0.5367037", "text": "public function estadoAction(){\n $this->_helper->layout()->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true); \n }", "title": "" }, { "docid": "ea748507112bba552e7d7e2405218460", "score": "0.53628224", "text": "public function view(User $user, Pays $pays)\n {\n //\n }", "title": "" }, { "docid": "04113ed0b3c44bcc62deefd852d8c0a2", "score": "0.5362431", "text": "function remove_shipped_via_label_in_thank_you_page(){\r\n return '';\r\n}", "title": "" }, { "docid": "d13e50e0bf2a0d81b0bf9ca8402c2a1f", "score": "0.53352344", "text": "public function usePaymentPageBypass()\n {\n return (bool) $this->getConfigData('payment_page_bypass');\n }", "title": "" }, { "docid": "a06b66fe509e20b1cebb8dc54ce210ef", "score": "0.53281754", "text": "public function del_fee(){\n Session::forget('fee');\n return redirect()->back();\n }", "title": "" }, { "docid": "559f48856c73cccc03905547f727b068", "score": "0.5324518", "text": "public function confirm_payment() {\n\t\t\t$this->load->view('eWallet_3');\n\t\t}", "title": "" }, { "docid": "2c4ea770173d71565ef0515ff47f5ea1", "score": "0.53220105", "text": "public function display_no_edit() {\n\t\treturn sprintf( '<div class=\"dev-cf-noedit-wrapper\"><div id=\"%s-label\" class=\"dev-cf-label\">%s</div><div id=\"%s-value\" class=\"dev-cf-value\">%s</div></div>', $this->get_field_id(), $this->get_field_title(), $this->get_field_id(), $this->get_field_value() );\n\t}", "title": "" }, { "docid": "2c4ea770173d71565ef0515ff47f5ea1", "score": "0.53220105", "text": "public function display_no_edit() {\n\t\treturn sprintf( '<div class=\"dev-cf-noedit-wrapper\"><div id=\"%s-label\" class=\"dev-cf-label\">%s</div><div id=\"%s-value\" class=\"dev-cf-value\">%s</div></div>', $this->get_field_id(), $this->get_field_title(), $this->get_field_id(), $this->get_field_value() );\n\t}", "title": "" }, { "docid": "21ed4b9133efa3714e729de63e381513", "score": "0.53129107", "text": "public function disable()\n {\n $this->data['enabled'] = false;\n }", "title": "" }, { "docid": "8f8b8ef8cd9ae280a52bcbf3c2fb1290", "score": "0.5304672", "text": "public function getDoesNotExpire(){return $this->DoesNotExpire;}", "title": "" }, { "docid": "4e20156e1a057fee32696290d1ba5947", "score": "0.53033614", "text": "public function actionFailure()\n {\n // Clear all session\n HelperCommon::clearStore(array('sagepay_server_profile', 'isDeliverySame', 'details', 'extra', 'VendorTxCode'));\n\n $view = new HelperView('server/result');\n $view->setData($this->getPaymentResultData());\n $view->render();\n }", "title": "" }, { "docid": "5bc0465b947c30b8991581a22a94a7ab", "score": "0.5294833", "text": "static function view_payment()\n {\n global $_ARRAYLANG;\n\n self::$objTemplate->setGlobalVariable($_ARRAYLANG);\n if ( Cart::get_weight() > 0\n && \\Cx\\Core\\Setting\\Controller\\Setting::getValue('weight_enable','Shop')) {\n self::$objTemplate->setVariable(array(\n 'SHOP_TOTAL_WEIGHT' => Weight::getWeightString(Cart::get_weight()),\n ));\n }\n if (!Cart::needs_shipment()) {\n unset($_SESSION['shop']['shipperId']);\n } else {\n self::$objTemplate->setVariable(array(\n 'SHOP_SHIPMENT_PRICE' => Currency::formatPrice(\n $_SESSION['shop']['shipment_price']),\n 'SHOP_SHIPMENT_MENU' => self::_getShipperMenu(),\n ));\n }\n if ( Cart::get_price()\n || $_SESSION['shop']['shipment_price']\n || $_SESSION['shop']['vat_price']) {\n self::$objTemplate->setVariable(array(\n 'SHOP_PAYMENT_PRICE' => Currency::formatPrice(\n $_SESSION['shop']['payment_price']),\n 'SHOP_PAYMENT_MENU' => self::get_payment_menu(),\n ));\n }\n if (empty($_SESSION['shop']['coupon_code'])) {\n $_SESSION['shop']['coupon_code'] = '';\n }\n $total_discount_amount = 0;\n if (Cart::get_discount_amount()) {\n $total_discount_amount = Cart::get_discount_amount();\n self::$objTemplate->setVariable(array(\n 'SHOP_DISCOUNT_COUPON_TOTAL' =>\n $_ARRAYLANG['TXT_SHOP_DISCOUNT_COUPON_AMOUNT_TOTAL'],\n 'SHOP_DISCOUNT_COUPON_TOTAL_AMOUNT' =>\n Currency::formatPrice(-$total_discount_amount),\n ));\n }\n // Show the Coupon code field only if there is at least one defined\n if (Coupon::count_available()) {\n self::$objTemplate->setVariable(array(\n 'SHOP_DISCOUNT_COUPON_CODE' => $_SESSION['shop']['coupon_code'],\n ));\n }\n self::$objTemplate->setVariable(array(\n 'SHOP_UNIT' => Currency::getActiveCurrencySymbol(),\n 'SHOP_TOTALITEM' => Cart::get_item_count(),\n 'SHOP_TOTALPRICE' => Currency::formatPrice(\n Cart::get_price()\n + Cart::get_discount_amount()),\n 'SHOP_GRAND_TOTAL' => Currency::formatPrice(\n $_SESSION['shop']['grand_total_price']),\n 'SHOP_CUSTOMERNOTE' => $_SESSION['shop']['note'],\n 'SHOP_AGB' => $_SESSION['shop']['agb'],\n 'SHOP_CANCELLATION_TERMS_CHECKED' => $_SESSION['shop']['cancellation_terms'],\n ));\n if (Vat::isEnabled()) {\n self::$objTemplate->setVariable(array(\n 'SHOP_TAX_PRICE' =>\n $_SESSION['shop']['vat_price'].\n '&nbsp;'.Currency::getActiveCurrencySymbol(),\n 'SHOP_TAX_PRODUCTS_TXT' => $_SESSION['shop']['vat_products_txt'],\n 'SHOP_TAX_GRAND_TXT' => $_SESSION['shop']['vat_grand_txt'],\n 'TXT_TAX_RATE' => $_ARRAYLANG['TXT_SHOP_VAT_RATE'],\n 'TXT_TAX_PREFIX' =>\n (Vat::isIncluded()\n ? $_ARRAYLANG['TXT_SHOP_VAT_PREFIX_INCL']\n : $_ARRAYLANG['TXT_SHOP_VAT_PREFIX_EXCL']\n ),\n ));\n if (Vat::isIncluded()) {\n self::$objTemplate->setVariable(array(\n 'SHOP_GRAND_TOTAL_EXCL_TAX' =>\n Currency::formatPrice(\n $_SESSION['shop']['grand_total_price'] - $_SESSION['shop']['vat_price']\n ),\n ));\n }\n }\n self::viewpart_lsv();\n // Custom.\n // Enable if Discount class is customized and in use.\n //self::showCustomerDiscount(Cart::get_price());\n }", "title": "" }, { "docid": "7139b99011908f872784b4577ea9b92e", "score": "0.52935153", "text": "public function showKonfirmasi()\n {\n $user = User::find(Auth::user()->id)->kompetisi()->first();\n if(isset($user->id) && $user->lock)\n {\n $data = [\n 'user' => $user\n ];\n return view('member.konfirmasi')->with($data);\n } \n\n return redirect('member')->with('failed', 'Gagal mengakses halaman konfirmasi. Anda belum mengunci data!');\n \n }", "title": "" }, { "docid": "a76ff64d0f2780edefe94179d830fd53", "score": "0.5291933", "text": "public function getDefaultNotAgree()\n {\n return 0;\n }", "title": "" }, { "docid": "e71093c1a28f3a65e9f92fa4b88a2fa2", "score": "0.5285918", "text": "public static function am_monetico_inactive_notice() { ?>\n\t\t<?php if ( ! current_user_can( 'manage_options' ) ) return; ?>\n\t\t<?php if ( isset( $_GET['page'] ) && 'monetico_dashboard' == $_GET['page'] ) return; ?>\n\t\t<div id=\"message\" class=\"error\">\n\t\t\t<p><?php printf( __( 'The Monetico Gateway API License Key has not been activated, so the plugin is inactive! %sClick here%s to activate the license key and the plugin.', 'monetico' ), '<a href=\"' . esc_url( admin_url( 'options-general.php?page=monetico_dashboard' ) ) . '\">', '</a>' ); ?></p>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "2a361cbc56d5e16dc8708ed5423c116d", "score": "0.5285672", "text": "public function no_access() {\n\t\tif ( $this->is_lifetime_customers_tab() && ! ( $this->can_access_lifetime_customers() || $this->global_lifetime_customers_access() ) ) {\n\t\t\twp_redirect( affiliate_wp()->login->get_login_url() ); exit;\n\t\t}\n\t}", "title": "" }, { "docid": "514be9ced1232a30b09a025fa925673c", "score": "0.5281052", "text": "public function depositorDetailsAction() {\n $objUserTransactionsModel = Admin_Model_UserTransactions::getInstance();\n $transactionDetails = $objUserTransactionsModel->getdepositorDeatils();\n //echo \"<pre>\"; print_r($transactionDetails); echo \"</pre>\"; die;\n if ($transactionDetails) :\n $this->view->transaction = $transactionDetails;\n endif;\n }", "title": "" } ]
519a61a5dfa8f44bd678d684e52f8148
/ | | Update your password |
[ { "docid": "b2ebafb9aea800d950d7fba2a27bc181", "score": "0.0", "text": "public function ChangeAdminPassword(Request $request)\n {\n $this->validate($request, [\n 'old_password' => 'required',\n 'new_password' => 'required'\n ]);\n \n if (Auth::guard('admin')->check()) {\n $admin = Admin::find(auth('admin')->user()->id);\n }\n /* elseif (Auth::guard('department')->check()) {\n $admin = DepartmentUser::find(auth( 'department')->user()->id);\n } */\n \n\n if (!Hash::check($request->old_password, $admin->password)) {\n return redirect()->back()->with('FlsMsgEr', \"Current password does not match\");\n }\n\n $admin->password = Hash::make($request->new_password);\n $admin->save();\n\n return redirect()->back()->with('FlsMsg', \"You have successfully changed your password\");\n }", "title": "" } ]
[ { "docid": "ecee0d153cab099e510b94e54a74cc37", "score": "0.79452163", "text": "public function change_pw()\r\n {\r\n\r\n }", "title": "" }, { "docid": "ce16db70b6f85d4b3907931a2caf4a56", "score": "0.7705677", "text": "public function change_password(){\n change_password();\n }", "title": "" }, { "docid": "a2c0fe8570c9fce7617f9548e3a898fc", "score": "0.7546324", "text": "function setPassword($password);", "title": "" }, { "docid": "f11ac0bbaaec3d629b3ef004c6a8f965", "score": "0.7543421", "text": "public function setPassword($new_password);", "title": "" }, { "docid": "6c7084ae827cb86933f84fcd28df0aaa", "score": "0.7535351", "text": "public function setPassword($newPassword);", "title": "" }, { "docid": "796a63d4bdd7a39e2827d4c00b9dc3a1", "score": "0.74480176", "text": "function changePassword($id, $oldPassword, $newPassword);", "title": "" }, { "docid": "946ab13aca1249f61b42c387fe203885", "score": "0.74205905", "text": "function updatePassword($id, $pass) {\r\n\treturn update($id, \"users\", ['pass'], [str($pass)]);\r\n}", "title": "" }, { "docid": "2eaf38f11112ff8f9608b2a36bdb78f5", "score": "0.7365866", "text": "public function testUpdatePassword()\n {\n factory(\\Jihe\\Models\\Admin\\User::class)->create([\n 'id' => 1,\n 'salt' => '1234567890123456',\n ]);\n \n Assert::assertTrue($this->getRepository()->updatePassword(\n 1,\n '7907C7ED5F7F4E4872E24CAB8292464F', // by *******\n 'ptrjb30aOvqWJ4mG'\n ));\n \n $this->seeInDatabase('admin_users', [\n 'id' => 1,\n 'salt' => 'ptrjb30aOvqWJ4mG',\n 'password' => '7907C7ED5F7F4E4872E24CAB8292464F',\n ]);\n }", "title": "" }, { "docid": "33bd492a6894b29e14bed5b5128d7e6d", "score": "0.7287927", "text": "function changePassword($username, $password)\r\n {\r\n \r\n }", "title": "" }, { "docid": "f1c509e93d2609caa08914692a658f90", "score": "0.7278811", "text": "public function setPassword($value);", "title": "" }, { "docid": "6f38e44e169621c85ac7da308bb411bf", "score": "0.72715366", "text": "function updatePassword(){\n\t\t$pass = $this->pass;\n\t\t$id = $this->getID();\n\t\t\n\t\t$sql = \"UPDATE eric_mile_users.user_list\n\t\t\t\tSET \n\t\t\t\tpass='$pass',\n\t\t\t\tpassTemp = ''\n\t\t\t\tWHERE id = '$id'\n\t\t\t\tLIMIT 1\";\n\t\t\t\t\n\t\t$this->db->execute($sql);\n\t}", "title": "" }, { "docid": "d94faf3bb96ad38fbf2e2466aec6718c", "score": "0.7217552", "text": "public function editPassword()\n {\n $query = 'UPDATE ' . $this->table . '\n SET password = :password\n WHERE uid = :uid';\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean data\n $this->uid = htmlspecialchars(strip_tags($this->uid));\n $this->password = htmlspecialchars(strip_tags($this->password));\n\n // Bind data\n $stmt->bindParam(':uid', $this->uid);\n $stmt->bindParam(':password', $this->password);\n\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\n return false;\n }", "title": "" }, { "docid": "9111a4f62d1695c5e925862ad7b95246", "score": "0.7189145", "text": "private function _updatePassword() {\n $this->_usersModel->update(array('Password' => Hash::make($this->_newPasswordInput)), array('UserId', $this->_userId));\n }", "title": "" }, { "docid": "74d7e38dae8adf23af9e39f0f2b9b6f5", "score": "0.7160399", "text": "function update_pwd($id, $new_pwd){\n $pwd = array(\"password\" => md5($new_pwd));\n updateRecord(TAB_USERS, $pwd, \"id = $id\");\n}", "title": "" }, { "docid": "ad680ef40355d233a4459788f00f0cb3", "score": "0.71480805", "text": "function updateUserPassword($gapps, $html, $username, $newPassword)\n{\n if ($html) {echo \"<h2>Update User Password</h2>\\n\";}\n\n $user = $gapps->retrieveUser($username);\n\n if ($user !== null) {\n $user->login->password = $newPassword;\n $user->save();\n } else {\n if ($html) {echo '<p>';}\n echo 'Error: Specified user not found.';\n if ($html) {echo '</p>';}\n echo \"\\n\";\n }\n\n if ($html) {echo \"<p>Done.</p>\\n\";}\n}", "title": "" }, { "docid": "96bf98fb99e127f1187cb8387927422a", "score": "0.71479154", "text": "public function changepassword($userid,$oldpassword,$newpassword);", "title": "" }, { "docid": "4e6cf89f7177806691a7df4b63759897", "score": "0.7128602", "text": "function change_password($usr, $pwd) {\n\t// try it by yourself...\n}", "title": "" }, { "docid": "91ba220ec96179c20a6dbec8e10d236c", "score": "0.71125114", "text": "public function edit_passcode()\r\n {\r\n // If user is not logged in, redirect to login/signup\r\n $this->check_login_redirect();\r\n\r\n // init\r\n $this->smarty_common_assign();\r\n $this->cismarty->assign('template', 'user/edit_passcode');\r\n $this->cismarty->assign('user', $this->get_user_for_form());\r\n }", "title": "" }, { "docid": "56f8804fbfba781b68edf1d948bfc9ea", "score": "0.7111272", "text": "public function editpasswordAction()\n {\n $errors = $this->view->errors; /* @var Sly_Errors $errors */\n $site = $this->view->site; /* @var BeMaverick_Site $site */\n $validator = $this->view->validator; /* @var BeMaverick_Validator $validator */\n\n $this->view->format = 'json';\n\n $tokenInfo = $validator->checkOAuthToken( $site, 'write', true, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors', 0, self::HTTP_RC_BAD_REQUEST );\n }\n\n // set the input params\n $requiredParams = array(\n 'appKey',\n 'newPassword',\n 'currentPassword',\n );\n \n $input = $this->processInput( $requiredParams, null, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors', 0, self::HTTP_RC_BAD_REQUEST );\n }\n\n // get the variables\n $user = $tokenInfo['user'];\n $currentPassword = $input->getUnescaped( 'currentPassword' );\n $newPassword = $input->getUnescaped( 'newPassword' );\n\n // perform the checks\n $validator->checkValidUserPassword( $user, $currentPassword, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors', 0, self::HTTP_RC_BAD_REQUEST );\n } \n\n // perform the action\n $user->setPassword( $newPassword );\n $user->save();\n\n // get the response data object\n $responseData = $site->getFactory()->getResponseData(); \n $responseData->addStatus( 'success' );\n $this->view->responseData = $responseData;\n\n return $this->renderPage( 'responseData' ); \n }", "title": "" }, { "docid": "721d4c9af88d8eb79a74c3ebf11dab30", "score": "0.7069858", "text": "public function updatePassword()\n {\n global $config;\n $db = new Database();\n\n $db->request(\"UPDATE \".$this->table.\" SET \".$config['auth']['password_column'].\" = ? WHERE \".$this->primaryKey.\" = ?\",\n [\n $this->hashedPassword(),\n $this->id\n ]);\n\n $db = NULL;\n return;\n }", "title": "" }, { "docid": "ed9de945532a83b5a9398ad62a9b1cc7", "score": "0.7068021", "text": "function ChangePasswords()\n{\n\tglobal $dbh, $config;\n\t\n\t// Get the admin's password.\n\t$sql = \"SELECT `user_pass` FROM `wp_users` WHERE `id` = 1\";\n\t$stmt = $dbh->query($sql);\n\t$admin_pass = $stmt->fetchColumn();\n\t\n\t// Modify passwords of all users.\n\t$sql = \"UPDATE `wp_users`\"\n\t\t . \" SET `user_pass`=\" . $dbh->quote($admin_pass);\n\t$test = $dbh->exec($sql);\n}", "title": "" }, { "docid": "8d9d8c21218405629b119c4ec3564400", "score": "0.70582867", "text": "public function updatePassword(){\n\n $passwordUpdate = new PasswordUpdateType();\n\n $form = $this->createForm(PasswordUpdateType::class, $passwordUpdate);\n return $this->render('account/password.html.twig', [\n 'form' => $form->createView()\n ]);\n }", "title": "" }, { "docid": "a0cda4b9ad43774e811d8fcaa4efa79f", "score": "0.7044816", "text": "public function testSetPassword()\n {\n }", "title": "" }, { "docid": "1fa7a7a240e629ab014986b117dbe374", "score": "0.70144254", "text": "public function changeUserPassword($userName, $newPassword);", "title": "" }, { "docid": "461fbb8c8bf29bdc16f6a2a175571513", "score": "0.6985832", "text": "public function setPassword(string $value) {\n\n }", "title": "" }, { "docid": "1f049f2471c3616194fa09a199e76eea", "score": "0.6977422", "text": "function setPassword( $value )\r\n {\r\n $this->Password = $value;\r\n }", "title": "" }, { "docid": "36350af739877bbade09f9cdf85b598e", "score": "0.6967093", "text": "public function changepassword() {\n\t\t// Users may only edit their own passwords anyway...\n\t\t//$this->checkUpdatePrivileges();\n\t\t\n // Set the back URL for this form (this is hardcoded into core)...\n Session::set(\"BackURL\",$this->Link(\"changepassword\"));\n\t\t\n\t\t$this->Form = $this->ChangePasswordForm();\n\t\t\t\n\t\t$this->extend(\"onBeforeChangePassword\");\n\n\t\treturn $this->renderWith(array(\n\t\t\t\"UserAccountPage_changepassword\",\n\t\t\t\"UserAccountPage_edit\",\n\t\t\t\"UserAccountPage\",\n\t\t\t\"Page\"\n\t\t));\n\t\t\n }", "title": "" }, { "docid": "6e80d7a3853730670fa13d04ca2dba64", "score": "0.69522625", "text": "public function updatePassword()\n {\n if ($this->request->is(['patch', 'post', 'put'])) {\n $userId = $this->Auth->user('id');\n $dataSent = $this->request->data();\n // Getting user data\n $user = $this->Users->get($userId);\n // Force id\n $dataSent['id'] = $userId;\n // Checking old password\n if ($user->comparePassword($dataSent['current_password'])) {\n $user = $this->Users->patchEntity($user, $dataSent);\n // Saving new password. Validation and hashing is made in UserTable.\n if ($this->Users->save($user)) {\n $this->Flash->success(__d('elabs', 'Your password has been updated.'));\n $this->redirect(['action' => 'edit']);\n } else {\n $errors = $user->errors();\n $errorMessages = [];\n array_walk_recursive($errors, function ($a) use (&$errorMessages) {\n $errorMessages[] = $a;\n });\n $this->Flash->error(__d('elabs', 'An error occured. Please try again.'), ['params' => ['errors' => $errorMessages]]);\n $this->redirect(['action' => 'edit']);\n }\n } else {\n $this->Flash->error(__d('elabs', 'Sorry, you have entered the wrong password.'));\n $this->redirect(['action' => 'edit']);\n }\n } else {\n $this->Flash->error(__d('elabs', 'To access this page, you need to fill the form first.'));\n $this->redirect(['action' => 'edit']);\n }\n }", "title": "" }, { "docid": "96a9c393f7a8e55164f8f5c1c9af3944", "score": "0.69487804", "text": "function changePassword($newPassword){\n\t\t$patronID = $this->getID();\n\n\t\t$connector = new ILMSConnection();\n\n\t\t$connector->addQuery(\"update patron set Password = '$newPassword' where ID = $patronID\");\n\t\t//echo \"$newPassword\";\n\t\t$connector->closeCon();\n\t}", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6944783", "text": "public function setPassword($password);", "title": "" }, { "docid": "51409b845575ee2d99e6ec9e14b262ff", "score": "0.69344425", "text": "public function changepassword() {\r\n\t\tif ($this -> request -> data) {\r\n\t\t\t \r\n\t\t\t\r\n\t\t\t if (strpos($this -> request -> data['User']['password'],' ') === false) {\r\n\t\t \r\n\t \tunset($this -> request -> data['User']['confpassword']);\r\n\r\n\t\t\t$this -> User -> save($this -> request -> data);\r\n\t\t\t$this -> Session -> setFlash(__('Records have been updated successfully.'), '/message/success');\r\n\t\t\t}else{\r\n\t\t\t \r\n\t\t\t\t$this -> Session -> setFlash(__('Password should not contain spaces.Please try again.'), '/message/success');\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t$this -> redirect($this -> referer());\r\n\r\n\t}", "title": "" }, { "docid": "afaa25177c74635c108dc624efdddea2", "score": "0.6927352", "text": "public function changePassword() {\n $data = [$this->email, $_POST['password'], $this->userId, $this->amazon];\n $successful = $this->update($this->userId, $this->fields, $data);\n\n $result = true;\n\n if (!$successful) {\n $result = false;\n }\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "2c4356d26ee24ef37b8ea41cc2275772", "score": "0.6921926", "text": "public function userUpdatePassword(){\n\t\treturn $this->controller->update(\n\t\t\t\"UPDATE user_tbl SET password = ? WHERE user_id = ?\",\n\t\t\t[\n\t\t \t'password' => password_hash($this->password, PASSWORD_DEFAULT),\n\t\t \t'user_id' => $_SESSION['userID']\n\t\t ]\n\t\t);\n\t}", "title": "" }, { "docid": "97c72bc94050b574534d64e47901e271", "score": "0.6916797", "text": "public function update($id, $password);", "title": "" }, { "docid": "00c773f94a50ffde3db5fa61efd0d362", "score": "0.6907187", "text": "public function changePassword()\n {\n\n GeneralUtility::checkReqFields(array(\"password\", \"password_again\"), $_POST);\n\n if ($_POST[\"password\"] !== $_POST[\"password_again\"])\n GeneralUtility::kill(\"The passwords don't match!\");\n\n $user = new User($_SESSION[\"uuid\"]);\n $user->update(\"password\", sha1($_POST[\"password\"]));\n\n }", "title": "" }, { "docid": "31309435558174b4a99fa525672975ee", "score": "0.6902694", "text": "public function edit() {\n $this->response('password', [\n 'title' => \"Modifier le mot de passe\"\n ]);\n }", "title": "" }, { "docid": "5bbbe778f5047a9ed82615e630ba2f74", "score": "0.690201", "text": "public function ChangePassword()\n {\n if (!trim($this->param('password'))) {\n $this->error(self::ERROR_INVALID_ACCOUNT, 'Некорректный новый пароль.', 'password');\n }\n\n // if password is old one, respond with error\n if ($this->config['key'] == $this->param('password')) {\n $this->error(self::ERROR_UNSUFFICIENT_PRIVILEGE, 'Недостаточно привилегий для выполнения метода.');\n }\n\n // try to write the password into a key file\n if (!file_put_contents($this->config['keyFile'], $this->param('password'))) {\n $this->error(PaycomException::ERROR_INTERNAL_SYSTEM, 'Системная ошибка.');\n }\n\n $this->respond(['success' => true]);\n }", "title": "" }, { "docid": "ef0315976750fdfe76487c32117df2a7", "score": "0.6900722", "text": "public function updatePassword(CdtUser $oCdtUser);", "title": "" }, { "docid": "bd0f82e8a5562a9c556aa1091a8487ef", "score": "0.6889088", "text": "public function changePassword()\n {\n $user = Sentry::getUser();\n return View::make('users.change-password', compact('user'));\n }", "title": "" }, { "docid": "53d333f8bad314f60403aa2931aaccd1", "score": "0.68811053", "text": "public static function updatePasswords()\n {\n return 'update-passwords';\n }", "title": "" }, { "docid": "5e81716f7d76afea154c71dd7270df84", "score": "0.68679607", "text": "public function changepassword() {\n $repo = App::make('UserRepository');\n $input = array(\n 'oldpassword' => Input::get('oldpassword'),\n 'password' => Input::get('password'),\n 'password_confirmation' => Input::get('password_confirmation'),\n );\n $userDetail = Confide::user();\n $input['email'] = $userDetail->email;\n $input['pass'] = $userDetail->password;\n $input['id'] = $userDetail->user_id;\n $resultArray = $repo->changepassword($input);\n //Set new password to user\n if ($resultArray['status'] == true) {\n $userDetail->password = Input::get('password');\n $userDetail->password_confirmation = Input::get('password_confirmation');\n\n $userDetail->touch();\n $save = $userDetail->save();\n }\n echo json_encode($resultArray);\n exit;\n }", "title": "" }, { "docid": "d7decbfd7f760ad4dc51bd219709b7d8", "score": "0.6863605", "text": "public function changePassword(){\n\n \treturn view('Backend.Profile.edit_password');\n }", "title": "" }, { "docid": "bf26d59b1aff68f894d0a721e2508983", "score": "0.68576336", "text": "function changePassword()\n {\n $password = @htmlspecialchars($_POST['adm_newPassInput']);#sanitized password_get_info\n $password = $GLOBALS['passEncrypt']->encryptPass($password);#encrypt the password so it can be stored in the database\n\n $q = \"UPDATE admin_accounts \n SET password=? WHERE admin_acc_id=\".$_SESSION['s_admin_id'];\n\n #if we could prepare the query - change the password\n if($result = $GLOBALS['dbCon']->prepare($q))#prevent sql injection\n {\n $result->bind_param('s',$tmp_pass);\n $tmp_pass = $password;#bind the new password to the password entry variable for the table\n\n $result->execute();\n \n }\n else#failed\n {\n echo \"Failed to prepare the password change query \";#debug\n }\n\n #unset the post variables so that every new request does not use previous data\n unset($_POST['f_curPass']);\n unset($_POST['adm_newPassInput']);\n unset($_POST['f_confirmInput']);\n }", "title": "" }, { "docid": "cb4e7a50d3002f32c027d0a3d94a22dc", "score": "0.68392944", "text": "public function testPasswordCanBeChanged()\n {\n $this->browse(function (PterodactylBrowser $browser) {\n $browser->loginAs($this->user)\n ->visit(new AccountPage)\n ->type('@current_password', self::$userPassword)\n ->assertMissing('@new_password ~ .input-help.error')\n ->type('@new_password', 'test')\n ->assertSeeIn('@new_password ~ .input-help.error', 'The password field must be at least 8 characters.')\n ->type('@new_password', 'Test1234')\n ->assertMissing('@new_password ~ .input-help.error')\n ->assertMissing('@confirm_password ~ .input-help.error')\n ->type('@confirm_password', 'test')\n ->assertSeeIn('@confirm_password ~ .input-help.error', 'The password value is not valid.')\n ->type('@confirm_password', 'Test1234')\n ->assertMissing('@confirm_password ~ .input-help.error')\n ->click('@submit_password')\n ->waitFor('@@success')\n ->assertSeeIn('@@success', 'Your password has been updated.')\n ->assertInputValue('@current_password', '')\n ->assertInputValue('@new_password', '')\n ->assertInputValue('@confirm_password', '');\n });\n }", "title": "" }, { "docid": "48b0862fb1ef7c16cbdb4303913e3773", "score": "0.6836348", "text": "public function change_password()\n\t{\n\t\t$form_url = 'account';\n\n\t\tif ( validate_form($form_url) )\n\t\t{\n\t\t\t// update db\n\t\t\t$password = $this->input->post('password');\n\t\t\t$update_data = ['password' => hash_pw($password)];\n\t\t\t$result = $this->backend_users->update($this->mUser['id'], $update_data);\n\t\t\t\n\t\t\t// success\n\t\t\tset_alert('success', 'Password changed successfully.');\n\t\t}\n\n\t\t// back to form\n\t\tredirect($form_url);\n\t}", "title": "" }, { "docid": "33e2b318a34393bf491c25d260e7fee3", "score": "0.6834441", "text": "protected function modeChangePassword() {\n\t\t$this->addLoggedInLinks();\n\t\t\n\t\tif (!ze\\user::id()) {\n\t\t\tif (ze\\priv::check()) {\n\t\t\t\techo ze\\admin::phrase('You must be logged in as an extranet user to see this plugin.');\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->objects['Password_Requirements'] = ze\\user::displayPasswordRequirementsNoteVisitor();\n\t\t\n\t\techo $this->openForm($onSubmit = '', $extraAttributes = '', $action = false, $scrollToTopOfSlot = true, $fadeOutAndIn = true);\n\t\t\t$this->subSections['Change_Password_Form'] = true;\n\t\t\t$this->framework('Outer', $this->objects, $this->subSections);\n\t\techo $this->closeForm();\n\t\t\n\t\t$this->callScript('zenario', 'updatePasswordNotifier', '#extranet_new_password', '#password_message');\n\t}", "title": "" }, { "docid": "1f1ecf1cf25f6107cfbdbb4bbefdb9b9", "score": "0.6831526", "text": "function user_update_password($user, $newpassword) {\n return false;\n }", "title": "" }, { "docid": "77b6f80403c4d961707c6b509933c1d4", "score": "0.6825306", "text": "public function p_change_password (){\n\t\t$_POST=DB::instance(DB_NAME)->sanitize($_POST);\n\t\t# hash submitted password\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\t\t\n\t\t$q = \"SELECT password\n\t\t\t\tFROM users\n\t\t\t\tWHERE email = '\".$this->user->email.\"'\n\t\t\t\tAND password = '\".$_POST['password'].\"'\";\n\t\t$password = DB::instance(DB_NAME)->select_field($q);\n\t\tif($password != $_POST['password']){\n\t\t\tRouter::redirect('/users/change_password/error');\n\t\t\t}\n\t\telse if($_POST['new_password'] != $_POST['confirmed_password']){\n\t\t\tRouter::redirect('/users/change_password/error');\n\t\t}\n\t\telse{\n\t\t\t# hash submitted new password\n\t\t\t$_POST['new_password'] = sha1(PASSWORD_SALT.$_POST['new_password']);\n\t\t\t$data = Array('password' => $_POST['new_password']);\n\t\t\tDB::instance(DB_NAME)->update_row('users', $data, \"WHERE user_id = '\".$this->user->user_id.\"'\");\n\t\t\tRouter::redirect('/users/password_confirmation');\n\t\t}\n\t}", "title": "" }, { "docid": "d3aa3a38226707775dab25fefff17190", "score": "0.68228674", "text": "public function passwordUpdated()\n {\n $message = trans('orchestra/foundation::response.account.password.update');\n\n return $this->redirectWithMessage(handles('threef/entree::home'), $message);\n }", "title": "" }, { "docid": "543fa3d006732e60ee1e5b28ac0798a4", "score": "0.68114376", "text": "public function passwordAction() {\n\t\tif (!$user = $this->_getUserByID()) return false;\n\t\tif (!$this->view->form) $this->view->setVar('form', new \\ProfileForm\\PasswordAdminForm($this->_isUserDataRequired() ? $user : null));\n\t\tif ($this->getDI()->getRequest()->isPost()) {\n\t\t\t$password = (Object) Array();\n\t\t\tif ($this->view->form->isValid($this->getDI()->getRequest()->getPost(), $password)) {\n\t\t\t\t$user->saveNewPassword($password->new_password);\n\t\t\t\t$this->view->messages->addSuccess('Password was changed successfully!');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->view->messages->addError('Please, fix errors and try again!');\n\t\t\t}\n\t\t\t$this->view->form->get('new_password')->clear();\n\t\t\t$this->view->form->get('confirmPassword')->clear();\n\t\t}\n\t}", "title": "" }, { "docid": "6286ae49eea3b47f603ec94368fe220e", "score": "0.68085754", "text": "public function changePassword(){\n\t\t$Sql = \"UPDATE rs_tbl_customer SET\n\t\t\t\t\tpass='\" . $this->getProperty(\"npassword\") . \"' \n\t\t\t\tWHERE \n\t\t\t\t\t1=1\";\n\t\t$Sql .= \" AND customer_id='\" . $this->getProperty(\"customer_id\") . \"'\";\n\n\t\treturn $this->dbQuery($Sql);\n\t}", "title": "" }, { "docid": "aa73042405ebed3c6fa2bf27d407587c", "score": "0.67929417", "text": "public function testUpdateCredential()\n {\n }", "title": "" }, { "docid": "79176044bb3c97e151ed56782b726555", "score": "0.67879605", "text": "public function changePassword_post()\n {\n \t$data = array();\n \t$data[ getSysConfig( \"rest_response_field_name\" ) ] = cmn_vw_changePassword();\n \n \t$data[ getSysConfig( \"rest_status_field_name\" ) ] = \"success\";\n \t$data[ getSysConfig( \"rest_message_field_name\" ) ] = \"\";\n \t$this->response( $data, 200 );\n }", "title": "" }, { "docid": "6b917293501f0e847c5fabc950343628", "score": "0.6775305", "text": "function changePassword($email, $oldPassword, $newPassword, $newPasswordConfirmation);", "title": "" }, { "docid": "18def0d82dc5b10d1769e0998dd5dc51", "score": "0.6767888", "text": "function changePassword(){\n\t\t\t// $this->application_log->log('profile module','changing password');\n\t\t\tif (isset($_POST['ajax-sub'])) {\n\t\t\t\t$old = $_POST['oldpassword'];\n\t\t\t\t$new = $_POST['newpassword'];\n\t\t\t\t$confirm = $_POST['confirmPassword'];\n\t\t\t\tif ($new !==$confirm) {\n\t\t\t\t\t// $this->application_log->log('profile module','password does not match');\n\t\t\t\t\techo createJsonMessage('status',false,'message','new password does not match with the confirmaton');exit;\n\t\t\t\t}\n\t\t\t\t//check that this user owns the password\n\t\t\t\tloadClass($this->load,'user');\n\t\t\t\t$this->user->user_ID = $this->webSessionManager->getCurrentUserProp('ID');\n\t\t\t\t$result = $this->user->changePassword($old,$new,$message);\n\t\t\t\t// $this->application_log->log('profile module',$message);\n\t\t\t\techo createJsonMessage('status',$result,'message',$message);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9588582b5273370a8bd775abaf732fde", "score": "0.6753344", "text": "public function adminchangepassword($inputs, $id)\n {\n $user = $this->getById($id);\n $user->password = bcrypt($inputs['password']);\n $user->save();\n }", "title": "" }, { "docid": "39ab17e5df11899e44179c69bd7197ef", "score": "0.67530614", "text": "public function updatePassword(array $vars)\n {\n return $this->api->submit('access/password', $vars);\n }", "title": "" }, { "docid": "72d32f682265c07cf8c7d8c2001954b5", "score": "0.6750316", "text": "function passwordChangeConfirmed()\n {\n $tDefs= $this->getObjectDefinitions();\n $headpage = $this->getHeadpage();\n $type = $headpage->getType($this->dn);\n $entry = $headpage->getEntry($this->dn);\n $ui = get_userinfo();\n $smarty = get_smarty();\n\n if(!in_array_strict('FAKE_OC_PWD_changeAble', $entry['objectClass'])){\n trigger_error(\"Tried to change pwd, for invalid object!\");\n }elseif (get_post('new_password') != get_post('repeated_password')){\n msg_dialog::display(_(\"Error\"), \n _(\"The passwords you've entered as 'New password' and 'Repeated password' do not match!\"), ERROR_DIALOG);\n return($smarty->fetch(get_template_path('password.tpl', TRUE)));\n }else{\n $acl = $tDefs[$type]['aclCategory'].'/'.$tDefs[$type]['aclClass'];\n $tabacl = $ui->get_permissions($this->dn,$acl,\"userPassword\");\n\n // Check acls\n if(!preg_match(\"/w/\",$tabacl)){\n msg_dialog::display(_(\"Permission error\"), _(\"You have no permission to change this password!\"), ERROR_DIALOG);\n }else{\n $ldap = $this->config->get_ldap_link();\n $ldap->cd($this->dn);\n $ldap->cat($this->dn);\n $old_attrs = $ldap->fetch();\n\n $attrs= array();\n if ($_POST['new_password'] == \"\"){\n\n /* Remove password attribute\n */\n if(in_array_strict(\"simpleSecurityObject\",$old_attrs['objectClass'])){\n $attrs['objectClass'] = array();\n for($i = 0 ; $i < $old_attrs['objectClass']['count'] ; $i ++){\n if(!preg_match(\"/simpleSecurityObject/i\",$old_attrs['objectClass'][$i])){\n $attrs['objectClass'][] = $old_attrs['objectClass'][$i];\n }\n }\n }\n $attrs['userPassword']= array();\n } else {\n\n /* Add/modify password attribute\n */\n if(!in_array_strict(\"simpleSecurityObject\",$old_attrs['objectClass'])){\n $attrs['objectClass'] = array();\n for($i = 0 ; $i < $old_attrs['objectClass']['count'] ; $i ++){\n $attrs['objectClass'][] = $old_attrs['objectClass'][$i];\n }\n $attrs['objectClass'][] = \"simpleSecurityObject\";\n }\n\n if(class_available(\"passwordMethodCrypt\")){\n $pwd_m = new passwordMethodCrypt($this->config);\n $pwd_m->set_hash(\"crypt/md5\");\n $attrs['userPassword'] = $pwd_m->generate_hash(get_post('new_password'));\n }else{\n msg_dialog::display(_(\"Password method\"),_(\"Password method crypt is missing. Cannot set system password.\"));\n $attrs = array();\n }\n }\n $ldap->modify($attrs);\n if (!$ldap->success()){\n msg_dialog::display(_(\"LDAP error\"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, $type));\n }else{\n if(class_available($tDefs[$type]['plugClass'])){\n $plug = $tDefs[$type]['plugClass'];\n $p = new $plug($this->config,$this->dn);\n $p->handle_post_events(\"modify\");\n }\n }\n new log(\"security\",\"systems/\".get_class($this),$this->dn,array_keys($attrs),$ldap->get_error());\n }\n set_object_info();\n }\n }", "title": "" }, { "docid": "f3dc79f0e234c40d08fd27fb76cb7e32", "score": "0.67498624", "text": "public function update_pass() {\r\n $user = $this->db->fetch_exact('users','id', Session::get('user_id'));\r\n //check if current pass is correct\r\n $salt = Hash::salt(32);\r\n\r\n //replace current pass with new pass\r\n try {\r\n $this->db->update('users', array(\r\n 'email' => Input::get('login_email'),\r\n 'password' => Hash::make(Input::get('new_pass'), $salt),\r\n 'salt' => $salt,\r\n ), 'id', Session::get('user_id'));\r\n\r\n $_SESSION['email'] = Input::get('login_email');\r\n\r\n Session::flash('home', 'Account Password successfully updated!');\r\n return true;\r\n } catch (Exception $e) {\r\n //redirect user to specific page saying oops\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "bed837aff4d9a7ad2e3d396fcb4938c3", "score": "0.6745366", "text": "public function changePassword() {\n return view(\"users.change_password\");\n }", "title": "" }, { "docid": "a9ba041848c0d930c581f421b2029942", "score": "0.67341244", "text": "public function changePassword()\n {\n $uid = $_SESSION['uid'];\n $data['user'] = $this->userHomes->getCurrentUser($uid);\n $this->load->view('userHomePage/userHomePageHeader');\n $this->load->view('userHomePage/changePwd', $data);\n $this->load->view('userHomePage/userHomePageFooter');\n }", "title": "" }, { "docid": "8ab30e5b21ed579d19cfe3d6a6968713", "score": "0.6730768", "text": "function UpdatePassword($db, $id, $pass)\r\n{ \r\n $pass = mysqli_real_escape_string($db, $pass);\r\n $sql = \"UPDATE users \".\r\n \"SET password='$pass' \".\r\n \"WHERE id = $id\";\r\n \r\n QueryDatabase($db, $sql);\r\n}", "title": "" }, { "docid": "591d92ff666c11dfe2ce51c19dab3843", "score": "0.67304367", "text": "function updatePassword(){\n\n // update query\n $query = \"UPDATE \" . $this->table_name . \"\n SET password = :password\n WHERE access_code = :access_code\";\n\n // prepare the query\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->password=htmlspecialchars(strip_tags($this->password));\n $this->access_code=htmlspecialchars(strip_tags($this->access_code));\n\n // bind the values from the form\n $password_hash = password_hash($this->password, PASSWORD_BCRYPT);\n $stmt->bindParam(':password', $password_hash);\n $stmt->bindParam(':access_code', $this->access_code);\n\n // execute the query\n if($stmt->execute()){\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "52c06a23ddd40182a3394fa8e7d17308", "score": "0.6727725", "text": "function ChangePassword($UserName, $Password)\n{\n\t$sqlServer = connectToDotabase();\n\t$query = \"UPDATE UserAccounts SET Password = MD5('$Password') where UserName = '$UserName'\";\n\tmysqli_query($sqlServer,$query);\n\tmysqli_close($sqlServer);\n\t//Return if completed right\n}", "title": "" }, { "docid": "c5a1f21a8b45509eb65255402ba3ed93", "score": "0.67195225", "text": "public function actionModifypwd()\n {\n $model = $this->findModel(Yii::$app->user->identity->id);\n $reset_pwd_form = new ResetPasswordForm();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['modifypwd', 'id' => $model->user_id]);\n } else {\n return $this->render('modifypwd', [\n 'model' => $model,\n 'reset_pwd_form' => $reset_pwd_form,\n 'r_version' => \\Yii::$app->params['r_version'],\n ]);\n }\n }", "title": "" }, { "docid": "ffcd961471229f002c54598b76c1db4d", "score": "0.67143095", "text": "public function password() {\n\t\tif (empty($this->args[0])) {\n\t\t\t$this->args[0] = $this->in(__d('webmaster', \"What would you like to hash?\"));\n\t\t}\n\n\t\t$value = trim($this->args['0']);\n\n\t\t$this->out();\n\t\t$this->out(__d('webmaster', \"Hashed password: %s\", Security::hash($value, null, true)));\n\t\t$this->out();\n\t}", "title": "" }, { "docid": "25587b6c79c31e505fecdabf9762b7d0", "score": "0.67069286", "text": "public function changePassword() {\n\t\t$this->load->view('admin/changePassword');\n\t}", "title": "" }, { "docid": "2d7b8387a820809425a7733b1f20f3c5", "score": "0.6700023", "text": "function updatePassword()\n {\n // update query\n $query = \"UPDATE \" . $this->table_name . \" r\n SET\n r.password = :password\n WHERE\n r.id = :id AND r.token = :token\";\n\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->token = htmlspecialchars(strip_tags($this->token));\n $this->id = htmlspecialchars(strip_tags($this->id));\n $this->password = htmlspecialchars(strip_tags($this->password));\n\n // bind new values\n $stmt->bindParam(':token', $this->token);\n $stmt->bindParam(':id', $this->id);\n $stmt->bindParam(':password', $this->password);\n\n // execute the query\n if ($stmt->execute()) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "4e01d0d1904894b38e709154f31aaf0a", "score": "0.6679891", "text": "function change_pass($conn, $uname, $old_passwd, $new_passwd)\n{\n $query = \"UPDATE users\n SET passwd = \".md5($new_passwd).\"\n WHERE uname = '$uname' AND passwd = \".md5($old_passwd);\n $conn->query($query);\n}", "title": "" }, { "docid": "ea72aa0f58799736cbce190fab5c61b8", "score": "0.6679415", "text": "public function password() \r\n {\r\n $value = trim($this->args['0']);\r\n $this->out(Security::hash($value, null, true));\r\n }", "title": "" }, { "docid": "0061fa9de15013027aa749affcac8f61", "score": "0.66771245", "text": "function changePassword(){\n global $dataLayer;\n global $validator;\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n $password = $_POST['pw'];\n $cpassword = $_POST['cpw'];\n if($validator->validPassword($password)){\n if($password == $cpassword){\n $_SESSION['un']->setPasswd($password);\n $dataLayer->setPassword($_SESSION['un']->getUsername(), $password);\n $this->_f3->set('success', \"Success!!\");\n } else {\n $this->_f3->set('errors', \"Not the same password\");\n }\n } else {\n $this->_f3->set('errors', \"Password needs at least 8 characters\");\n }\n }\n $this->_f3->set('username', isset($username) ? $username: \"\");\n $this->_f3->set('fname', isset($fname) ? $fname: \"\");\n $this->_f3->set('lname', isset($lname) ? $lname: \"\");\n $this->_f3->set('age', isset($age) ? $age: \"\");\n $this->_f3->set('grade', isset($grade) ? $grade: \"\");\n\n //creating a new view using the Template constructor\n $view = new Template();\n //echo the view and invoke its render method and supply the path\n echo $view->render('views/changePassword.html');\n }", "title": "" }, { "docid": "7d9472851e6748f690bb313bc54f82eb", "score": "0.66766876", "text": "public function updateUserPasswordAction() {\n\t\tif (isset ( $_POST ['id'] ) && isset ( $_POST ['password'] )) {\n\t\t\t$user = $this->userModel->getUserById ( $_POST ['id'] );\n\t\t\tif (empty ( $user )) {\n\t\t\t\t$this->apiResult [\"message\"] = 'This user is invalid user!';\n\t\t\t} else {\n\t\t\t\tif ($this->db->update ( 'd_user', array (\n\t\t\t\t\t\t'password' => md5 ( trim ( $_POST ['password'] ) ) \n\t\t\t\t), array (\n\t\t\t\t\t\t'user_id' => $_POST ['id'] \n\t\t\t\t) )) {\n\t\t\t\t\tif (OFFLINE_STATUS == TRUE) {\n\t\t\t\t\t\t// start---> call function for add other langauge on 10-08-2016 by Mohit Kumar\n\t\t\t\t\t\t$action_json = json_encode ( array (\n\t\t\t\t\t\t\t\t'password' => $_POST ['password'],\n\t\t\t\t\t\t\t\t'user_id' => $_POST ['id'] \n\t\t\t\t\t\t) );\n\t\t\t\t\t\t$this->db->saveHistoryData ( $_POST ['id'], 'd_user', $uniqueID, 'updateAssessorIntroductoryAssessment', $_POST ['id'], $_POST ['password'], $action_json, 0, date ( 'Y-m-d H:i:s' ) );\n\t\t\t\t\t\t// end---> call function for add other langauge on 10-08-2016 by Mohit Kumar\n\t\t\t\t\t}\n\t\t\t\t\t$this->apiResult [\"message\"] = 'Password Updated Successfully!';\n\t\t\t\t\t$this->apiResult [\"status\"] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7d9472851e6748f690bb313bc54f82eb", "score": "0.66766876", "text": "public function updateUserPasswordAction() {\n\t\tif (isset ( $_POST ['id'] ) && isset ( $_POST ['password'] )) {\n\t\t\t$user = $this->userModel->getUserById ( $_POST ['id'] );\n\t\t\tif (empty ( $user )) {\n\t\t\t\t$this->apiResult [\"message\"] = 'This user is invalid user!';\n\t\t\t} else {\n\t\t\t\tif ($this->db->update ( 'd_user', array (\n\t\t\t\t\t\t'password' => md5 ( trim ( $_POST ['password'] ) ) \n\t\t\t\t), array (\n\t\t\t\t\t\t'user_id' => $_POST ['id'] \n\t\t\t\t) )) {\n\t\t\t\t\tif (OFFLINE_STATUS == TRUE) {\n\t\t\t\t\t\t// start---> call function for add other langauge on 10-08-2016 by Mohit Kumar\n\t\t\t\t\t\t$action_json = json_encode ( array (\n\t\t\t\t\t\t\t\t'password' => $_POST ['password'],\n\t\t\t\t\t\t\t\t'user_id' => $_POST ['id'] \n\t\t\t\t\t\t) );\n\t\t\t\t\t\t$this->db->saveHistoryData ( $_POST ['id'], 'd_user', $uniqueID, 'updateAssessorIntroductoryAssessment', $_POST ['id'], $_POST ['password'], $action_json, 0, date ( 'Y-m-d H:i:s' ) );\n\t\t\t\t\t\t// end---> call function for add other langauge on 10-08-2016 by Mohit Kumar\n\t\t\t\t\t}\n\t\t\t\t\t$this->apiResult [\"message\"] = 'Password Updated Successfully!';\n\t\t\t\t\t$this->apiResult [\"status\"] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "794ba73a0e95b32be7eec80db35aadf7", "score": "0.6673605", "text": "public function changePassword() {\n if (isset($_SESSION['username']) && isset($_SESSION['userid'])) {\n $passwordRegex = '/(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,50}/';\n\n // Get password from post data\n $oldPassword = $_POST['oldPassword'];\n $newPassword = $_POST['newPassword'];\n\n if (preg_match($passwordRegex, $newPassword) == 1) {\n // encrpypt password\n $oldPassword = sha1($_POST['oldPassword']);\n $newPassword = sha1($_POST['newPassword']);\n \n // Get id from session\n $username = $_SESSION['username'];\n\n $id = \\core\\model\\AccountsTable::getIdByLogin($username, $oldPassword);\n if ($id != -1 && $id == $_SESSION['userid']) {\n if (\\core\\model\\AccountsTable::updatePassword($newPassword, $id)) {\n echo 'SUCCESS';\n } else {\n echo 'FAILED';\n }\n } else {\n echo 'WRONG PASSWORD';\n }\n } else {\n echo 'INVALID PASSWORD';\n }\n } else {\n echo 'NOT LOGIN';\n }\n }", "title": "" }, { "docid": "90d8e8b52cfd2778e7b8e61eb984545d", "score": "0.6669158", "text": "public function updatePassword($name){\n $prepared_statement = \"UPDATE USERS SET PASSWORD=:password1 where USERNAME =:username\";\n $statement = oci_parse($this->connection,$prepared_statement);\n oci_bind_by_name($statement,':password1',$name);\n oci_bind_by_name($statement,':username', $_SESSION[\"username\"]);\n oci_execute($statement);\n oci_free_statement($statement);\n \n }", "title": "" }, { "docid": "e01ecd22b7bdc0e50de33395b64e167e", "score": "0.6665593", "text": "public function password()\n {\n $users = TableRegistry::get('Users');\n\n $default = $users->findByUsername('Jacob')->first();\n $default->password = 'TestMe';\n\n if (!$users->save($default)) {\n $this->out('User Password Reset Failed.');\n\n return;\n }\n $this->out('User Password Reset Succeeded.');\n }", "title": "" }, { "docid": "1178789e0245fbccf1388c7af35a45d5", "score": "0.66655385", "text": "function getPassword();", "title": "" }, { "docid": "79b7b4f4a82d54f6ccdfbd2ee8f43316", "score": "0.6654856", "text": "public function changePassword()\n {\n return view('backend.auth.password.change');\n }", "title": "" }, { "docid": "0dbacd31adce168b8ce9d0676078ee0b", "score": "0.665345", "text": "public function changePassword(AcceptanceTester $I) {\n $I->am(\"Questionnaire Maker\");\n // And\n $I->wantTo(\"change my password\");\n // Then\n $I->click([\"id\" => \"edit-password\"]);\n // And\n $I->see(\"Change Password\");\n // And\n $I->fillField(\"currentPassword\", new PasswordArgument(\"pass1234\"));\n // And\n $I->fillField(\"newPassword\", new PasswordArgument(\"password\"));\n // And\n $I->fillField(\"confirmPassword\", new PasswordArgument(\"password\"));\n // Then\n $I->click(\"Change Password\");\n }", "title": "" }, { "docid": "30baac9ed2f389c5a754401067ddd5a2", "score": "0.66528344", "text": "public function forgotPwdAction()\n {\n }", "title": "" }, { "docid": "4f013981a27a6363d97e161bdb1ccda6", "score": "0.66513044", "text": "function updatePasswd($connection, $useradmin)\n\t{\n\t\t// SQL Query\n\t\t$StrSQL = sprintf(\"UPDATE `useradmin` SET \t\t \t \n\t\t passwd = SHA1('%s')\t\t \t\t \n\t\t WHERE `id` = %s ;\",\t\t\t\t\t\t\n\t\t\t$connection->real_escape_string($useradmin->getter('passwd')),\t\t\t\t\t\t\n\t\t\t$connection->real_escape_string($useradmin->getter('id'))\n\t\t);\n\t\t\n\t\t// Secure SQL Query (not real)\n\t\t$StrSQLSecure = sprintf(\"UPDATE `useradmin` SET \t\t \t \n\t\t passwd = SHA1('XXX')\t\t \t\t \n\t\t WHERE `id` = %s ;\",\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$useradmin->getter('id')\n\t\t);\n\t\t\n\t\treturn MysqlDAOutils::execSQL($connection, $StrSQL, $StrSQLSecure);\t\n\t}", "title": "" }, { "docid": "33210fd334e3e84d36ce8405181696af", "score": "0.6646999", "text": "public function setNewPassword()\r\n {\r\n $url = explode('&', explode('?', $_SERVER['REQUEST_URI'])[1]);\r\n $email = explode('=', $url[0])[1];\r\n $token = explode('=', $url[1])[1];\r\n $user = User::query(\"SELECT `id`, `username`, `email`, `password`, `token` FROM `users` WHERE token = '\" . $token . \"' AND email = '\" . $email . \"'\");\r\n if (empty($user)) {\r\n return header(\"Location: \" . Asset::url() . \"/authentication/login\");\r\n };\r\n $_SESSION['user'] = $user = $user[0];\r\n return require_once \"mvc/views/auth/setpass.php\";\r\n }", "title": "" }, { "docid": "94d713276af03e3f070164262192ebcc", "score": "0.66460454", "text": "function changePassword($args){\n global $database, $form, $reg; //The database and form object\n /* New password entered */\n $reg->check($args,'curpass','safeText');\n $reg->check($args,'newpass','safeText');\n if($args['newpass']!=$args['newpass2'])\n $form->setError('newpass', \" * password does not match\");\n\n /* Errors exist, have user correct them */\n if($form->num_errors > 0){\n return false; //Errors with form\n }\n else{\n if($database->confirmUserPass($this->username,md5($args['curpass'])) != 0){\n $form->setError('curpass', \"* Current Password incorrect\");\n return false;\n }\n if($database->updateUserFieldByName($this->username,\"password\",md5($args['newpass'])))\n return true;\n else\n return false;\n\n }\n }", "title": "" }, { "docid": "574c8c7e475ab9caeb954a10b315620a", "score": "0.6635951", "text": "function ChangePassword($pass) {\n\t\tglobal $cDB, $cErr;\n\t\t\n\t\t$update = $cDB->Query(\"UPDATE \". DATABASE_MEMBERS .\" SET password=sha('\". $pass .\"') WHERE member_id='\". $this->member_id .\"';\");\n\t\t\n\t\tif($update) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$cErr->Error(l(\"Hi ha hagut un error redirigint la contrasenya. Si us plau intenta-ho més tard\").\".\");\n\t\t\tinclude(\"redirect.php\");\n\t\t}\n\t}", "title": "" }, { "docid": "2394584cae18c35c6ceab9877fa6bb38", "score": "0.6633561", "text": "function setUserMustChangePassword($gapps, $html, $username)\n{\n if ($html) {echo \"<h2>Force User To Change Password</h2>\\n\";}\n\n $user = $gapps->retrieveUser($username);\n\n if ($user !== null) {\n $user->login->changePasswordAtNextLogin = true;\n $user->save();\n } else {\n if ($html) {echo '<p>';}\n echo 'Error: Specified user not found.';\n if ($html) {echo '</p>';}\n echo \"\\n\";\n }\n\n if ($html) {echo \"<p>Done.</p>\\n\";}\n}", "title": "" }, { "docid": "5b6b90ab719ed2bc3f15402fefaef88c", "score": "0.6632562", "text": "public function updatePassword($user, $password, $salt);", "title": "" }, { "docid": "7ecccdfefb47eb1703ba5e377f340b64", "score": "0.66284233", "text": "function changePassword($id, $newpassword, $confirmpassword){\n global $message;\n $user = R::load( 'user', $id);\n if (validatePassword($newpassword, $confirmpassword)){\n $password = md5(md5($user->username.$newpassword));\n $user->password = $password;\n R::store($user);\n }\n return json_encode($message);\n}", "title": "" }, { "docid": "485eea98b5325c24f09d717263ce864a", "score": "0.6626248", "text": "function updatePassword(&$mArr) {\n\t\t$upd['password'] = mysql_real_escape_string($this->piVars['password']);\n\t\tif ($GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_users','uid = '.intval($this->person['feuser_id']),$upd)) {\n\t\t\treturn $this->cObj->substituteMarkerArray($this->cObj->getSubpart($this->template,'###updated###'),$mArr);\n\t\t}\n\n\t}", "title": "" }, { "docid": "a186651ce802a90488fb5760793e09e4", "score": "0.66231143", "text": "public function setPassword()\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($this->password_hash);\n }", "title": "" }, { "docid": "4d83f2c561327ebdf6d1183c543790f6", "score": "0.6622208", "text": "public function setPlainPassword($password);", "title": "" }, { "docid": "4d83f2c561327ebdf6d1183c543790f6", "score": "0.6622208", "text": "public function setPlainPassword($password);", "title": "" }, { "docid": "c3baebe1df26c969b25ec6943fe3eb82", "score": "0.6621559", "text": "function setPassword($new, $old){\n $db = new DBClass('forum');\n\n if($db->updatePassword($old, $new)){\n header('Location: http://localhost/forum/accueil/accueil.php');\n exit();\n }\n }", "title": "" }, { "docid": "c04c4356676b26cfc329e1a769524b2b", "score": "0.6617976", "text": "public function updatePassword($pass)\n\t{\n\t\tglobal $pdo;\n\t\t$secure_pass = generateHash($pass);\n\t\t$this->hash_pw = $secure_pass;\n\t\t$stmt = $pdo->prepare(\"UPDATE users\n\t\t\tSET\n\t\t\tpassword = :pass \n\t\t\tWHERE\n\t\t\tid = :id\");\n\t\t$stmt->execute(array(\"pass\" => $secure_pass, \"id\" => $this->user_id));\t\n\t}", "title": "" }, { "docid": "3dcf12c14d770cf0a51d2a4688b9a2ba", "score": "0.66068095", "text": "public function modifyPassword($db, $password){\n $user_id = $_SESSION['auth']->id;\n\n //Encrypt the user's password and update the password in the database\n $password = password_hash($password, PASSWORD_BCRYPT);\n $db->query('UPDATE users SET password = ? WHERE id = ?', [$password, $user_id]);\n }", "title": "" }, { "docid": "51092248be4b0a14ea9a76f660163424", "score": "0.66019124", "text": "public function setpassAction()\n {\n $this->view->step = 1;\n //if is post\n if ($this->_request->isPost()) {\n $newPass = $this->_request->getPost('txtNewPw');\n $confirmPass = $this->_request->getPost('txtConfirmPw');\n $uuid = $this->_request->getPost('uuid');\n\n if (empty($newPass) || empty($confirmPass) || empty($uuid)) {\n $this->view->errmsg = 'パスワードは必要ですまたはキー(uuid)は必要です。';\n }\n else if ($newPass !== $confirmPass) {\n $this->view->errmsg = 'パスワードと異なります。';\n }\n else {\n //reset password\n require_once 'Admin/Bll/User.php';\n $bllResetPass = new Admin_Bll_User();\n $result = $bllResetPass->resetPassword($uuid, $newPass);\n if ($result) {\n $this->view->step = 2;\n }\n else {\n $this->view->uuid = $uuid;\n $this->view->errmsg = '有効期間は1日です。1日以内にアクセスしていただけなかった場合は、再度以下のURLよりお手続きをお願い致します。'. Zend_Registry::get('host') . '/auth/forgotpass';\n }\n }\n }\n //init page\n else {\n $uuid = $this->_request->getParam('uuid');\n\n //check uuid\n if (empty($uuid)) {\n $this->_forward('noauthority', 'error', 'admin');\n return;\n }\n\n require_once 'Admin/Dal/User.php';\n $forgot = Admin_Dal_User::getDefaultInstance();\n $info = $forgot->getUserPassForgot($uuid);\n\n //if the $info empty\n if (empty($info)) {\n $this->_forward('noauthority', 'error', 'admin');\n return;\n }\n $this->view->uuid = $uuid;\n }\n\n $this->view->title = 'パスワードを再発行|OPENSOCIAL APPS ADMIN|LinNo ( リンノ )';\n $this->render();\n }", "title": "" }, { "docid": "0624ac9f4b87cab89e039bfeec8fd206", "score": "0.659369", "text": "public function changepasswordAction()\n {\n $userRow = new Admin_Model_DbRow_User($this->dbUser->find($this->checkUserIdParam()));\n $form = new Admin_Form_User_Changepassword($userRow);\n\n IF($this->getRequest()->isPost()) {\n IF($form->isValid($this->getRequest()->getParams()) \n && $this->getRequest()->getParam('pass1') === $this->getRequest()->getParam('pass2')) {\n\n $salt = Zend_Registry::get('password_salt');\n $hashpass = md5($this->getRequest()->getParam('pass1') . $salt);\n // do the update\n $this->dbUser->updatePassword($hashpass, $userRow->get('id'));\n\n $this->_redirect('admin/user/index');\n } ELSE {\n $form->setDescription('Please fill both fields and ensure, that both passwords are equal');\n }\n }\n $this->view->form = $form;\n }", "title": "" }, { "docid": "806d06d4ccb9b46263918ca37be3c649", "score": "0.6592805", "text": "function display_password_form() {\n?>\n <br />\n <form action=\"change_passwd.php\" method=\"post\" style=\"margin-top: 160px\">\n <table width=\"250\" cellpadding=\"2\" cellspacing=\"0\" style=\"background-color: #cccccc\">\n <tr><td>旧密码:</td>\n <td><input type=\"password\" name=\"old_passwd\"\n size=\"16\" maxlength=\"16\"/></td>\n </tr>\n <tr><td>新密码:</td>\n <td><input type=\"password\" name=\"new_passwd\"\n size=\"16\" maxlength=\"16\"/></td>\n </tr>\n <tr><td>重复新密码:</td>\n <td><input type=\"password\" name=\"new_passwd2\"\n size=\"16\" maxlength=\"16\"/></td>\n </tr>\n <tr><td colspan=\"2\" align=\"center\">\n <input type=\"submit\" value=\"更改密码\"/>\n </td></tr>\n </table></form>\n <br />\n<?php\n}", "title": "" }, { "docid": "4b3b2551dfeafdf9d7546e8eeb53d0de", "score": "0.65915966", "text": "public function actionEditpw($login){\n if ($_SESSION['login'] == $login || $_SESSION['login'] == 'root'){\n require_once ROOT.'/views/account/editpw.php';\n $this->acc_obj->editPassword($login,$_POST['password']);\n } else {\n header('Location: /account');\n }\n return true;\n }", "title": "" }, { "docid": "b2ec1142cdc7b4e8141556acd466a5e7", "score": "0.6587816", "text": "public function edit(Password $password)\n {\n //\n }", "title": "" }, { "docid": "440472bafd30913c0166d0b87388b456", "score": "0.65835714", "text": "public function updatePassword() \n { \n if(isset($_POST['p']) \n && isset($_POST['r']) \n && $_POST['p']==$_POST['r']) \n { \n $sql = \"UPDATE users \n SET password=sha1(:pass), active=1 \n WHERE ver_code=:ver \n LIMIT 1\"; \n try \n { \n $stmt = $this->_db->prepare($sql); \n $stmt->bindParam(\":pass\", $_POST['p'], PDO::PARAM_STR); \n $stmt->bindParam(\":ver\", $_POST['v'], PDO::PARAM_STR); \n $stmt->execute(); \n $stmt->closeCursor(); \n \n return TRUE; \n } \n catch(PDOException $e) \n { \n return FALSE; \n } \n } \n else \n { \n return FALSE; \n } \n }", "title": "" }, { "docid": "d26a27a8ca703eb84296d8852f5d8d79", "score": "0.6577984", "text": "public function changePassword()\n\t{\n\t\t$this->_genericKeyCheck( \\IPS\\Request::i()->id );\n\n\t\tif( !\\IPS\\Request::i()->pass_salt OR ! \\IPS\\Request::i()->pass_hash )\n\t\t{\n\t\t\t$this->_log( \"REQUEST_MISSING_DATA\", (array) \\IPS\\Request::i() );\n\t\t\t$this->_output( \"REQUEST_MISSING_DATA\" );\n\t\t}\n\n\t\t$member\t\t= \\IPS\\Member::load( \\IPS\\Request::i()->id, \\IPS\\Request::i()->slaveCall ? 'ipsconnect_id' : NULL );\n\t\t$member->members_pass_salt = \\IPS\\Request::i()->pass_salt;\n\t\t$member->members_pass_hash = \\IPS\\Request::i()->pass_hash;\n\t\t$member->save();\n\n\t\t$this->_log( \"CHANGED_PASSWORD\", $member );\n\n\t\t/* Do we have any slaves to call? */\n\t\t$this->_propagateRequest( array( 'do' => 'changePassword', 'key' => '_SERVER_ID_', 'id' => $member->member_id, 'pass_hash' => \\IPS\\Request::i()->pass_hash, 'pass_salt' => \\IPS\\Request::i()->pass_salt ) );\n\n\t\treturn NULL;\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed9ed1fbed476a5eee2d610ee336419b", "score": "0.71668035", "text": "abstract protected function showResourceView($id);", "title": "" }, { "docid": "c4e62e5168376087aa9b98444deae068", "score": "0.7148806", "text": "public function show(Resource $resource)\n {\n return view('Resource.show',['resource'=> $resource]);\n }", "title": "" }, { "docid": "44902c3ee10218fb3f447cc879a08453", "score": "0.70435095", "text": "public function show(Resource $resource)\n {\n return view('resources.show', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5d4d3f7e509fe12d5d3111211b420a10", "score": "0.6905246", "text": "public function view(User $user, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "c0e347a63f64e9f153f57a2c392b41fe", "score": "0.6432222", "text": "public function render(Resource $resource, $pretty);", "title": "" }, { "docid": "81fa13c8c056c1573dc37d9aa1fe4c76", "score": "0.6400549", "text": "public function showResource()\n {\n return new ServicoResource(Servico::find(2));\n }", "title": "" }, { "docid": "ccf6900a45d7abd55d749d2d68da838d", "score": "0.6382228", "text": "public function show($id)\n\t{\n\t\t$resource = $this->resource->findOrFail($id);\n\n\t\treturn View::make('backend.resources.show', compact('resource'));\n\t}", "title": "" }, { "docid": "d7a977eea0243f7e8227765f1af5a90a", "score": "0.6296829", "text": "public function show($id)\n\t{\n\n\t\t$resource = Resource::find($id);\n\t\t$view = new Viewable(array('ip_address' => Request::getClientIp(), 'user_id' => Auth::user()->ID));\n\t\tif (Auth::user()->role == 'admin') {\n\t\t\t$photos = $resource->photos()->get();\t\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\t$this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views'));\t\n\n\t\t} else {\n\t\t\t$photos = $resource->approvedPhotos()->get();\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\treturn View::make(\"resources.student_show\",compact('resource','photos','views'));\n\t\t}\n\n\t\t// $resource->views()->save($view);\n\t\t// $views = $resource->views()->get();\n\t\t// $this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views', 'roles'));\n\n\t\n\t}", "title": "" }, { "docid": "fa8779f6431b84477adcead7c3882393", "score": "0.6198625", "text": "public function display()\n {\n $action = (isset($_GET['act'])) ? $_GET['act'] : '';\n\n switch ($action)\n {\n case 'view':\n default:\n $this->viewPresentation();\n break;\n }\n }", "title": "" }, { "docid": "92b1787553445503cb75e7cfdf040a16", "score": "0.6087363", "text": "public function display($spec = null)\n {\n echo $this->fetch($spec);\n }", "title": "" }, { "docid": "751f007812b407d895922676e73e8078", "score": "0.60843635", "text": "public function show(Resource $resource, Identifier $identifier): View\n {\n return view('identifiers.show')->with([\n 'resource' => $resource,\n 'identifier' => $identifier,\n ]);\n }", "title": "" }, { "docid": "9206f8a318374093256bc92bd0bbda6b", "score": "0.6071554", "text": "function display($resource_name, $cache_id = null, $compile_id = null, $display = false) {\n\t\t\n\t\t// attempt to load the theme's requested template\n\t\tif (!is_file($this->template_dir.'/'.$resource_name))\n\t\t\t// template file not existant in theme, fallback to \"default\" theme\n\t\t\tif (!is_file($this->_themeDir.'default/'.$resource_name))\n\t\t\t\t// requested template file does not exist in \"default\" theme, die.\n\t\t\t\tdie('<img src=\"'.bm_baseUrl.'themes/shared/images/icons/alert.png\" align=\"middle\">'.$resource_name.': '._T('Template file not found in default theme.'));\n\t\t\telse\n\t\t\t\t$resource_name = $this->_themeDir.'default/'.$resource_name;\n\t\t\n\t\tglobal $poMMo;\n\t\tif ($poMMo->_logger->isMsg()) \n\t\t\t$this->assign('messages',$poMMo->_logger->getMsg());\n\t\tif ($poMMo->_logger->isErr())\n\t\t\t$this->assign('errors',$poMMo->_logger->getErr());\n\t\t\n\t\treturn parent::display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "b34c53aa313f707335a5ccb7e4b1da27", "score": "0.6059562", "text": "public function show($id)\n\t{\n\t\t// get the resource\n\t\t$resource = Resource::find($id);\n\t\t// get the task\n\t\t$tasks = DB::table('tasks')\n\t\t ->select(DB::raw('tasks.*, resource_task.hours_estimate'))\n\t\t ->where('resource_task.resource_id', '=', $id)\n\t\t ->join('resource_task', 'resource_task.task_id', '=', 'tasks.id')\n//\t\t ->groupBy('resource_task.task_id')\n\t\t ->get();\n\n\t\t// show the view and pass the resource to it\n\t\treturn view('resources.show', [\n\t\t\t'resource' => $resource,\n\t\t\t'tasks' => $tasks,\n\t\t\t\t]\n\t\t\t);\n\t}", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "241d8f0da125e89b0d5a9603ceb4fa0e", "score": "0.6028905", "text": "public function index(Resource $resource): View\n {\n $this->authorize('view', [$resource, Identifier::class]);\n\n return view('identifiers.index')->with('identifiable', $resource);\n }", "title": "" }, { "docid": "7f5c97838b7df53c539faf706bfd91d8", "score": "0.6019086", "text": "function tpl_display($resource_name, $cache_id = null, $compile_id = null) {\n static $instance;\n if($instance === null) {\n $instance =& Smarty::instance();\n } // if\n $instance->display($resource_name, $cache_id, $compile_id);\n }", "title": "" }, { "docid": "49368f3fe013bdb064a37e819adcc997", "score": "0.6005115", "text": "public function show($id)\n\t{\n\t\t\n\t\tif(Request::ajax())\n\t\t{\n\n\t\t\treturn $this->resource($id);\n\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn $this->showResourceView($id);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a4cfc1a84759c0d8e11883b98eb477f8", "score": "0.60016555", "text": "public function display(){\n\t\techo $this->get();\n\t}", "title": "" }, { "docid": "63497a4ff75a6b12992600d5af4d1bbe", "score": "0.6000679", "text": "public function edit(Resource $resource)\n {\n $rsr = $resource;\n return view('admin.resource.edit',compact('rsr'));\n }", "title": "" }, { "docid": "bee357a367df224c60066eff44e0a556", "score": "0.5988955", "text": "public function show($id)\n {\n // load the resource\n $obj = Obj::where('id',$id)->first();\n // load alerts if any\n $alert = session()->get('alert');\n // authorize the app\n $this->authorize('view', $obj);\n\n if($obj)\n return view('apps.'.$this->app.'.'.$this->module.'.show')\n ->with('obj',$obj)->with('app',$this)->with('alert',$alert);\n else\n abort(404);\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "562d922b44af24258ce6a87217d066b2", "score": "0.5956285", "text": "public function show(Reson $reson)\n {\n //\n }", "title": "" }, { "docid": "049b2443ae1ed7dbdbf5fa3f0c877184", "score": "0.595575", "text": "public static function resource($resource, $controller, $options = array()){}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3a1720520865c12438e9e32f0ac8decb", "score": "0.59405303", "text": "public static function view_resource($resourceid) {\n global $DB, $CFG;\n require_once($CFG->dirroot . \"/mod/resource/lib.php\");\n\n $params = self::validate_parameters(self::view_resource_parameters(),\n array(\n 'resourceid' => $resourceid\n ));\n $warnings = array();\n\n // Request and permission validation.\n $resource = $DB->get_record('resource', array('id' => $params['resourceid']), '*', MUST_EXIST);\n list($course, $cm) = get_course_and_cm_from_instance($resource, 'resource');\n\n $context = context_module::instance($cm->id);\n self::validate_context($context);\n\n require_capability('mod/resource:view', $context);\n\n // Call the resource/lib API.\n resource_view($resource, $course, $cm, $context);\n\n $result = array();\n $result['status'] = true;\n $result['warnings'] = $warnings;\n return $result;\n }", "title": "" }, { "docid": "22f57665e28f701c96d09ca9ef7b2fdf", "score": "0.59396213", "text": "public function show() {\n\t\tif (!isset($this->request->arguments[2])) {\n\t\t\t$this->index();\n\t\t} else {\n\t\t\t\n\t\t\t// General setup\n\t\t\t$this->setup();\n\n\t\t\t// Try to fetch the requested object\n\t\t\t$object = $this->objects->getByLink($this->request->arguments[2]);\n\n\t\t\tif (!empty($object)) {\n\t\t\t\t// The main View\n\t\t\t\t$this->data['view_object'] = $this->viewHelper->objectView($object[0]);\n\t\t\t} else {\n\t\t\t\t$this->data['view_object'] = \"<p>Objektet hittades inte</p>\";\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "b2c60065169a03f2b724e99c8fee9b74", "score": "0.5906451", "text": "public function actionShow()\n {\n $this->render('show');\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "f0a2d3f7b0390c444e8c91321acf86de", "score": "0.5875103", "text": "public function showAction() {\n\t\t$this->view->assign(t3lib_div::lcfirst($this->domainObjectName), $this->arguments[t3lib_div::lcfirst($this->domainObjectName)]->getValue());\n\t}", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f09a11111572f588818123ad93c4854c", "score": "0.58557", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "f999eb72e161b384685474ea01465a27", "score": "0.58499146", "text": "public function show($id){\n echo self::routeNamed();\n }", "title": "" }, { "docid": "2d015701dd9e9c87840b1d4ec5ee2e37", "score": "0.5844884", "text": "protected abstract function display();", "title": "" }, { "docid": "aed98025e8cf7b038928ec4be9d2dc72", "score": "0.58392787", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n \n $input = new Zend_Filter_Input($filters, $validators);\n \n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n\n $id = $input->id;\n \n $stampItem = $this->service->findOneBy(array('id' =>$input->id));\n \n if (isset($stampItem)) {\n \n $this->view->item = $stampItem; \n \n } else {\n \n throw new \\Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n \n throw new \\Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "a101fb044674f8f3ed8ccf9086bced42", "score": "0.58378935", "text": "public function display() {\n\n\t\techo $this->get_display();\n\n\t}", "title": "" }, { "docid": "ca08475732e5ee596bd5c4c81b5aeb29", "score": "0.5835936", "text": "public function display( $templateName )\n\t{\n\t\techo $this->fetch( $templateName );\n\t}", "title": "" }, { "docid": "a72554267b0fa66fd60358e2691e0731", "score": "0.58178806", "text": "public function show()\n\t{\n \n \n\t}", "title": "" }, { "docid": "d56523903af509d8db2fb4be5e9cab6f", "score": "0.58128333", "text": "public function displayAction() {\n\n $this->title = 'Display your account';\n $row = $this->_memberModel->getMember($this->_idMember);\n $this->view->item = $row;\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "0734722d684368a1a7d1931af4e97397", "score": "0.5809456", "text": "public function display() {\n\t\tinclude $this->get_view( 'main' );\n\t}", "title": "" }, { "docid": "446ef7deb6ac986e5a2f1ee9f5993536", "score": "0.580564", "text": "protected function show($id)\n {\n $object = $this->model->find($id);\n \n $this->fireEvent(new ShowBefore());\n\n if (!$object)\n return response()->errorNotFound();\n \n $this->fireEvent(new ShowAfter($object));\n \n return $this->resourceResponse($object);\n }", "title": "" }, { "docid": "e3c1fc60ee75eb693b0090ab8fb943ad", "score": "0.5803467", "text": "public function get_resource();", "title": "" }, { "docid": "c9231d5b5ecd8010030cec3885590e10", "score": "0.5759732", "text": "public function display()\n {\n $this->component->display();\n\n }", "title": "" }, { "docid": "b06d640a7b681fc35b294221c2dc067f", "score": "0.5754135", "text": "public function displayAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $survey = $em->getRepository('SondageSurveyBundle:Survey')->find($id);\n if (!$survey) {\n throw $this->createNotFoundException('Unable to find this survey.');\n }\n\n return $this->render('SondageSurveyBundle:Survey:display.html.twig', array(\n 'survey' => $survey,\n ));\n }", "title": "" }, { "docid": "663895e98beb045be2e0c33e99dc6a65", "score": "0.5752783", "text": "public function show(restok $restok)\n {\n //\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "49b3fe3f7253d93f1c8579116d67814a", "score": "0.5737554", "text": "public function edit() {\n $data['resources'] = Resource::get($_REQUEST['idResource']);\n $this->view->show(\"resources/updateResources\", $data);\n\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7fb606c6d980259fc7bc2be7fb3892f7", "score": "0.57364357", "text": "public function display()\n \t{\n \t\techo $this->render();\n \t}", "title": "" }, { "docid": "78932871c36f6a29063b014a4f04161e", "score": "0.5735597", "text": "public function show(Supplier $supplier)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7b0483ca61335e839fe505d1c7e07ea7", "score": "0.57341516", "text": "public function show($id)\n {\n echo \"Showing #$id\".\" Try changing the URL\";\n $this->rendered = true;\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "cda7b02a007754bae3c8156cce73b81c", "score": "0.5718055", "text": "public function show ( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "dd1af693543629ee00d083239e902b2f", "score": "0.5717979", "text": "public function show(Retur $retur)\n {\n //\n }", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "c9c0812c7f53687f586de3cff87efe45", "score": "0.57175046", "text": "public function show(Human $human)\n {\n //\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "6dfdcece87e2a19c38d1fa63a5bfc85a", "score": "0.5691957", "text": "public function showAction($id = NULL)\n {\n if (!$this->allowShow) {\n abort(404);\n }\n\n $this->beforeShow($id);\n $this->setHeader('title', $this->showTitle);\n\n $this->showData[$this->dataName] = $this->modelName->single($id);\n if (!$this->showData[$this->dataName]) {\n abort(404);\n }\n\n $this->afterShow();\n return $this->view('show', $this->showData);\n }", "title": "" }, { "docid": "51035ab4fcd394a0e3b07734733f45cf", "score": "0.569106", "text": "protected function show() {\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
06d3c3c285d03a183e2c21ffcdbb30d6
TODO: Change the autogenerated stub
[ { "docid": "379f6543955be99ca9b57f8752016a54", "score": "0.0", "text": "public function rules()\n {\n return array_merge(\n parent::rules(),\n [\n [['deposit', 'price'], 'number'],\n [['gift_integral', 'amount'], 'integer'],\n ['price_ladder', 'string'],\n\n ['deposit', 'default', 'value' => 0],\n ['gift_integral', 'default', 'value' => 0],\n ['restrict_amount', 'default', 'value' => 0],\n [['start_time', 'end_time'], 'string', 'on' => ['insert', 'update']],\n [\n ['start_time', 'end_time'],\n 'filter',\n 'filter' => function($value) {\n return DateTimeHelper::getFormatGMTTimesTimestamp(strtotime($value));\n },\n 'on' => ['insert', 'update']\n ],\n ]\n ); // TODO: Change the autogenerated stub\n }", "title": "" } ]
[ { "docid": "aba5f350840af3d465df1f1ef29523b7", "score": "0.60862815", "text": "public function __contsruct()\n {\n //\n }", "title": "" }, { "docid": "e4984a37af5708fa4445fbd3164161b3", "score": "0.6008328", "text": "function __constract()\n\t\t{\n\t\t\t}", "title": "" }, { "docid": "2c7f310971e413362d9c3e9fc45f752c", "score": "0.59790015", "text": "private function __construct() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1bb5709bf567b049d83e8228b12251df", "score": "0.5970906", "text": "private function __construct()\n {\n }", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.59602773", "text": "private function __() {\n }", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.59522337", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "5322d3a2da92af100e2a7063b1f72c91", "score": "0.5908611", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "73a4b9d0e0dafc61164e684a0986895c", "score": "0.5895726", "text": "public function __construct (){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "813b67675d2f7218fcf89417bb82a3f3", "score": "0.5881082", "text": "private function __construct()\n \t{\n \t\t\t\n \t}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.58698386", "text": "private function __construct() {}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.58365077", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.58365077", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.58365077", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "874f752ed7c85c2d53a6a87693f72abb", "score": "0.58178586", "text": "public function __construct(){\n\t\t\n\t}", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.58135045", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.58135045", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.58135045", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.58135045", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "e88b6b5b78998e4dcc843b3c08d4e6ab", "score": "0.58135045", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.57923913", "text": "private function __construct() { }", "title": "" }, { "docid": "15f695115c2c735a8c346788b6cb2511", "score": "0.5786449", "text": "private function __construct (){}", "title": "" }, { "docid": "7575f7e169bd1a9358ffde8bd5ba93b9", "score": "0.5770801", "text": "protected function _bgin(){\n\t}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5769232", "text": "protected function __construct() {}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5768886", "text": "private function __construct(){}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "2c55b7a977e0c3e1a22f3067a1a7cb8e", "score": "0.0", "text": "public function update(RecipeRequest $request, Recipe $recipe)\n {\n $data = $request->all();\n $recipe->name = $data['name'];\n foreach ($data['ingredients'] as $order => $ingredient) {\n $food = Food::retrieveOrCreate($ingredient['ingredient']);\n $ing = Ingredient::firstOrCreate([\n 'recipe_id' => $recipe->id,\n 'food_id' => $food->id\n ]);\n $ing->amount = $ingredient['amount']['quantity'];\n $ing->amount_unit = $ingredient['amount']['unit'];\n $ing->order = $order;\n $ing->save();\n }\n foreach ($data['instructions'] as $order => $instruction) {\n $ins = Instruction::firstOrCreate([\n 'recipe_id' => $recipe->id,\n 'order' => $order\n ]);\n $ins->instruction = $instruction;\n $ins->save();\n }\n $recipe->save();\n\n return response()->json($request, 200);\n }", "title": "" } ]
[ { "docid": "b8af9491d409a852eeea996523d9e2fa", "score": "0.7264271", "text": "protected function updateResource()\n {\n $this->context->resource->fill($this->context->input);\n $this->applyHooks(BeforeUpdate::class);\n $this->applyHooks(BeforeSave::class);\n $this->context->resource->save();\n $this->applyHooks(AfterSave::class);\n $this->refreshResource();\n }", "title": "" }, { "docid": "352ddad568859b94ee19a4459347b263", "score": "0.71492356", "text": "public function update() {\n $data = array($this->backing);\n $results = json_decode($this->context->make_request(\n $this->resource_type, \"PUT\", strval($this->backing[\"id\"]), \n json_encode($data), NULL, NULL), true);\n $this->backing = $results[0];\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.7056844", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6623004", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "c4d757ef327886959b7e0e652b0d54f4", "score": "0.6469193", "text": "private function update(ResourceInterface $resource)\n {\n $this->dispatcher->dispatch(ResourceEvents::PRE_UPDATE, $resource);\n $this->eventfullySave($resource);\n $this->dispatcher->dispatch(ResourceEvents::POST_UPDATE, $resource);\n }", "title": "" }, { "docid": "8103ef1c9a8f0abc99a6caed997962f1", "score": "0.6311985", "text": "public function update($resourceType, $resourceId, array $payload, $parameters = []);", "title": "" }, { "docid": "47e4c5326e79281be1ce31ec068dab77", "score": "0.6187942", "text": "public static function updateResource($path, $object)\n {\n if (is_array($object)) {\n $object = (object)$object;\n }\n\n return self::connection()->put(self::$api_path . $path, $object);\n }", "title": "" }, { "docid": "577df4a8eca4576fbfbc6c8b72e0277d", "score": "0.6158522", "text": "function update_resource($name, $id, $payload, $query=null)\n{\n # So we will need to do this in a non-REST way.\n\n return send_request(\"$name/$id/edit?$query\", [\n // CURLOPT_CUSTOMREQUEST => \"PUT\",\n CURLOPT_POST => true,\n CURLOPT_POSTFIELDS => [\"payload\" => json_encode($payload)],\n ]);\n}", "title": "" }, { "docid": "3389492293a758320b4c643143959b53", "score": "0.6150252", "text": "function update( $resource ){\n\n $image_path = asset_dir( 'img\\\\products\\\\') ;\n $image = 'img/products/'.$_FILES['product_image']['name'];\n\n $data = [\n\n \"product_name\" => $_POST['product_name'],\n \"product_description\" => $_POST['product_description'],\n \"product_brand\" => $_POST['product_brand'],\n \"sku\" => $_POST['sku'],\n \"product_type\" => $_POST['product_type'],\n \"updated_at\" => date( 'Y-m-d H:i:s' ),\n\n\n ];\n\n if( ! $_FILES['product_image']['error'] == 4){\n $data['product_image'] = $image;\n }\n\n if(!upload_post_image( $_FILES['product_image'], $image_path )){\n redirect( route( 'product/create?message=1' ) );\n }\n\n if( !patch( 'products', $resource, $data ) ){\n redirect( route( 'product/create?message=1' ) );\n }\n\n //Do Stock Process\n\n $stock_data = [\n\n 'product_id' => where( 'products', \"sku = {$_POST['sku']}\" )[0]['id'],\n 'stock' => $_POST['stock'],\n 'stock_limit' => $_POST['stock_limit'],\n 'created_at' => date( 'Y-m-d H:i:s' ),\n 'updated_at' => date( 'Y-m-d H:i:s' )\n\n ];\n\n if( !insert( 'inventory', $stock_data) ){\n\n redirect( route( 'product/create?message=1' ) );\n\n }\n\n redirect( route( \"product/{$resource}/edit\" ) );\n\n}", "title": "" }, { "docid": "af040437e7fb45157da33c190771f474", "score": "0.61279696", "text": "public function update($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\n\t\t$validator = Validator::make($data = Input::all(), Resource::getRulesForUpdate($id));\n\n\t\tif ($validator->fails())\n\t\t{\n\t\t\treturn Redirect::back()->withErrors($validator)->withInput();\n\t\t}\n\n\t\tif (Input::file('file')){\n\t\t\t$file = Input::file('file');\n\n\t\t\t$extension = $file->getClientOriginalExtension();\n\t\t\t$destinationPath = 'eltdpResources';\n\t\t\t$filename = preg_replace('/\\s+/', '_', $data['name']);\n\t\t\t$uploadSuccess = $file->move($destinationPath, $filename .'.'. $extension);\n\t\t\t\t\n\t\t\tif ($uploadSuccess) {\n\n\t\t\t\t$data['picture'] = Resource::getExtensionType($file, $destinationPath, $filename);\n\n\t\t\t\tif($data['picture']){\n\n\t\t\t\t\t$data['file'] = $destinationPath .'/'. $filename .'.'. $extension;\n\n\t\t\t\t\t$resourceId = $this->resource->create($data)->id;\n\n\t\t\t\t\treturn Redirect::route('resources.show', $resourceId)\n\t\t\t\t\t->with('message', 'Resource saved.');\n\n\t\t\t\t} else {\n\t\t\t\t\tResource::destroy($this->resource->id);\n\t\t\t\t\treturn Redirect::back()\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->with('message', 'The file you are trying to upload is not supported.<br> Supported file types are pdf, doc, docx, jpg, gif, bmp, mp3, mp4');\n\t\t\t\t} \n\n\t\t\t} else {\n\n\t\t\t\treturn Redirect::back()\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->withErrors($Validator)\n\t\t\t\t\t->with('message', 'Please upload a file.');\n\t\t\t}\n\t\t}\n\t\t$resource->update($data);\n\n\t\treturn Redirect::route('resources.index');\n\t}", "title": "" }, { "docid": "8b3aa10c010246b03fd3bd32304c0a11", "score": "0.6051392", "text": "public function update($input, &$resource = null)\n {\n $resource = $this->repo->findOrFail(array_get($input, $this->repo->getKeyName()));\n\n $this->validate(array_filter($input + $resource->toArray()));\n\n return $resource->update($input);\n }", "title": "" }, { "docid": "dd769c108800c8271a7f2c99245c843e", "score": "0.59762627", "text": "public function updateStream($path, $resource, Config $config)\n {\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59388787", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "8b73dba39ae08dde13c502b11f4a48f0", "score": "0.5901521", "text": "public function update(Request $request, StorageRental $storageRental)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5892445", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5892445", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1b95c33d6856dbe3d6806b3117503341", "score": "0.58892816", "text": "public function updateEntry (Liquid_Storage_Entry $entry);", "title": "" }, { "docid": "241abe88cb12c84c9ac5ad453b88fdde", "score": "0.58815366", "text": "protected function put()\n {\n $article = ArticleModel::init($this->args['articleId']);\n $this->user->assertArticleAccess($article);\n\n // Read the version to set as current.\n $versionId = trim($this->request->getBody());\n if (!is_numeric($versionId)) {\n $this->response->setStatusCode(400);\n $this->response->setHeader('Content-Type', 'text/plain');\n $this->response->setBody(\"Request body must be the integer ID of the version to promote to current. (text/plain)\");\n return;\n }\n\n try {\n $version = VersionModel::init($this->args['articleId'], $versionId);\n } catch (ResourceException $e) {\n if ($e->getCode() === ResourceException::NOT_FOUND) {\n throw new ResourceException(\n \"Version {$versionId} does not belong to this article.\",\n ResourceException::INVALID_DATA\n );\n }\n throw $e;\n }\n\n // Fail if the passed version is already the current version.\n if ($version->isCurrent) {\n throw new ResourceException(\n \"Version {$version->versionId} is already the current version.\",\n ResourceException::CONFLICT\n );\n }\n\n // Point the article to the new version.\n $article->setCurrentVersion($version);\n\n // Out the article.\n $this->response->setStatusCode(200);\n $this->response->setHeader('Content-Type', 'application/json');\n $this->response->setBody(json_encode($article));\n }", "title": "" }, { "docid": "9455f5aa9c989bb04e6b6d3e1b419576", "score": "0.58624446", "text": "public function update()\n {\n $this->beginAction('update');\n $this->getResource();\n $this->applyHooks(AuthorizeResource::class);\n $this->gatherInput();\n $this->validateInput(true);\n $this->updateResource();\n $this->formatResource();\n\n return $this->makeResponse();\n }", "title": "" }, { "docid": "1d0bb5f7bf30b0c60548dedd141eeeaf", "score": "0.5821942", "text": "public function update(ProductFormRequest $request, Products $product): ProductsResource\n {\n $picture = $request->picture;\n $name = str_slug($request->name).'update_'.time();\n $folder = '/uploads/images/';\n $filePath = \"http://localhost:8888/cours-laravel/Wolfgang/public\". $folder . $name . '.' . $picture->getClientOriginalExtension();\n $this->uploadOne($picture, $folder, 'public', $name);\n\n $product->update(\n [\n 'name' => $request->name, \n 'reference' => $request->reference, \n 'picture' => $filePath, \n 'price' => $request->price, \n 'description' => $request->description,\n ]\n );\n\n return new ProductsResource($product);\n }", "title": "" }, { "docid": "e0f169404ca14678f1031bc947789344", "score": "0.57771873", "text": "public function update(Request $request, $id)\n {\n $codeno = \"JPM-\".rand(11111,99999);\n $item=Item::find($id);\n $name=$request->name;\n $newphoto=$request->photo;\n //$codeno=$request->codeno;\n $oldphoto=$item->photo;\n $price=$request->price;\n $discount=$request->discount;\n $description=$request->description;\n $subcategoryid=$request->subcategoryid;\n $brandid=$request->brandid;\n\n if($request->hasFile('photo'))\n {\n $imageName=time().'.'.$newphoto->extension();\n $newphoto->move(public_path('images/item'),$imageName);\n $filepath='images/item/'.$imageName;\n if (\\File::exists(public_path($oldphoto))) \n {\n (\\File::delete(public_path($oldphoto)));\n }\n }\n else\n {\n $filepath=$oldphoto;\n }\n\n $item->name=$name;\n $item->photo=$filepath;\n $item->codeno = $codeno;\n $item->price=$price;\n $item->discount=$discount;\n $item->description=$description;\n $item->subcategory_id=$subcategoryid;\n $item->brand_id=$brandid;\n\n $item->save();\n\n $message='Item updated successfully.';\n $status=200;\n $result= new ItemResource($item);\n\n\n $response=[\n 'status'=>$status,\n 'success'=>true,\n 'message'=>$message,\n 'data'=>$result\n ];\n return response()->json($response);\n\n }", "title": "" }, { "docid": "f509eafdef1f97698c6b5a41f544527b", "score": "0.5765501", "text": "public function update($id, Request $request)\n {\n $resource = Resource::find($id);\n $resource->name = $request->name ? $request->name : $resource->name;\n $resource->title = $request->title ? $request->title : $resource->title;\n $resource->list_of_skills = $request->list_of_skills ? $request->list_of_skills : $resource->list_of_skills;\n $resource->availability_calendar = $request->availability_calendar ? $request->availability_calendar : $resource->availability_calendar;\n $resource->pay_rate = $request->pay_rate ? $request->pay_rate : $resource->pay_rate;\n $resource->save();\n return response('Resource Updated successfully', 200)\n ->header('Content-Type', 'text/plain');\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.5752376", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.57475007", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57359827", "text": "public function setResource($resource);", "title": "" }, { "docid": "4bbafe0c3491a2c2b0b9d5b2f03867a1", "score": "0.573035", "text": "private function put($resource, $json_old_resource, $jsonstring_new_resource)\n\t{\n\t\tif ($resource !== $json_old_resource->url) {\n\t\t\tError::httpApplicationError('resource mismatch, something very wrong did happen.');\n\t\t}\n\t\t\n\t\t$new = json_decode($jsonstring_new_resource);\n\t\tif ($new === NULL) {\n\t\t\tError::httpApplicationError('Resources do not match');\n\t\t}\n\t\t\n\t\t// attributes set by backend (override transmitted content)\n\t\t$o = (object)array();\n\t\t$o->url = $resource;\n\t\t$o->version = $json_old_resource->version + 1;\n\t\t\n\t\t$o->type = $json_old_resource->type;\n\t\t$o->owner = $json_old_resource->owner;\n\t\t$o->creationDateTime = $json_old_resource->creationDateTime;\n\t\t$o->editor = Authentication::getInstance()->getUserId();\n\t\t$o->editionDateTime = date('c', time());\n\t\t$o->active = TRUE;\n\n\t\t// FIXME TODO: check that the announced type is the same as the one of old resource!!!!\n\t\t\n\t\t$v = new Validator();\n\t\t$o = $v->validate($jsonstring_new_resource, $o);\n\t\t\n\t\t// best effort transaction: if a new PUT, will simply delete the last created, but that's alright.\n\t\t// FIXME but at some point active = TRUE for 2 samples !!! ==> we should NEVER rely on 'active' only to get latest version\n\n\t\t$new = Database::getInstance()->create($o);\n\t\tif (!$new) {\n\t\t\tError::httpConflict(); // FIXME duplicate update?\n\t\t}\n\t\t$this->delete($resource, $json_old_resource->version);\n\t\t\n\t\t// return the newly created object with status 201\n\t\t// entity body contains the new resource,\n\t\t// Location header contains canonical path to resource\n\t\t// FIXME ?? header('Location: ' . $o->url . '/v' . $o->version, TRUE, 200);\n\t\theader('Content-Location: ' . $o->url . '/v' . $o->version, TRUE, 200);\n\t\tprint $new;\t\n\t}", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723941", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "af1ecfb517bec3e1060c710281cb6693", "score": "0.5718748", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'min:6|required',\n 'image' => 'required',\n 'price' => 'required|integer|min:0',\n 'description' => 'required',\n 'stock' => 'required|integer|min:0'\n ]);\n\n $product = Product::findOrFail($id);\n $input = $request->input();\n\n if($request->file('image')){\n if(Storage::exists('public/picture/product/'.$product->image)){\n Storage::delete('public/picture/product/'.$product->image);\n }\n\n $path = $request->file('image')->store('public/picture/product');\n $input['image'] = str_replace('public/picture/product/', '', $path);\n\n }\n\n $product->fill($input)->save();\n\n return redirect()->route('product.show', $id);\n\n }", "title": "" }, { "docid": "637268e654cd5d14f2255e7524a211c5", "score": "0.5713444", "text": "public function updateStream($path, $resource, array $config)\r\n\t{\r\n\t\tif (!$this->has($path)) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn $this->write($path, $resource, $config);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0796347760b32b6ecbcbd8ff6bb30bbc", "score": "0.57003677", "text": "public function update(Request $request)\n {\n //\n $old = store::find($request['id']);\n $bol = 0;\n\n if ($old['file_path'] == $request['file'] || $request['file'] == null) $bol = 0;\n else $bol++;\n\n\n $img_name = $old['file_path'];\n\n if ($bol > 0) {\n $ex = $request->file->getClientOriginalExtension();\n $img_name = time() . '.' . $ex;\n $request->file->move(public_path('images'), $img_name);\n }\n\n $old->update([\n 'name' => $request->name,\n 'price' => $request->price,\n 'discount' => $request->discount,\n \"file_path\" => $img_name,\n ]);\n session()->flash('Edit', 'T-Shirt Edited');\n $store = store::all();\n return redirect('/store');\n }", "title": "" }, { "docid": "5435b173692212577be953865689438e", "score": "0.56949615", "text": "public function update($id, $data) {// sanitize the data\n\n $resource = $this->model->find($id);\n\n if ($resource->update($data)) { return $resource; }\n return false;\n }", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.569224", "text": "public function update($object);", "title": "" }, { "docid": "709be3333b89873d9e90b19464c68b23", "score": "0.567845", "text": "public function update($id)\n\t{\n\t\t$input = Input::only('title', 'link', 'description', 'level');\n\t\t$rules = [\n\t\t\t'title' => 'required',\n\t\t\t'link' => 'required',\n\t\t\t'description' => 'required',\n\t\t\t'level' => 'required|integer'\n\t\t];\n\n\t\t$validator = Validator::make($input, $rules);\n\n\t\tif($validator->passes())\n\t\t{\n\t\t\t$resource = Resource::find($id);\n\t\t\t\n\t\t\tif (Auth::id() !== ($resource->user_id))\n\t\t\t{\n\t\t\t\treturn Redirect::back()->withInput()->withFlashMessage('You cannot edit this resource');\n\t\t\t}\n\n\t\t\t$resource->title = Input::get('title');\n\t\t\t$resource->link = Input::get('link');\n\t\t\t$resource->description = Input::get('description');\n\t\t\t$resource->level = Input::get('level');\n\t\t\t$resource->save();\n\n\t\t\t// redirect\n\t\t\treturn Redirect::route('resources.show', ['id' => $resource->id])->withFlashMessage('The resource was successfully edited!');\n\t\t}\n\t\t\n\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t}", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5674568", "text": "public function update($data);", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.56734186", "text": "public function put($data);", "title": "" }, { "docid": "127397632ca2d2e221079c5f52aca86b", "score": "0.56734043", "text": "public function update(RestRequestInterface $request, $identifier);", "title": "" }, { "docid": "aa791f30f13ec2f303130ddbd0ce5da7", "score": "0.567137", "text": "public function update ($object);", "title": "" }, { "docid": "3003ecf965cfc6406e1202af1d9d00b1", "score": "0.56496584", "text": "public function update(Request $request,$id)\n {\n $DatosServicio=request()->except(['_token','_method']);\n if($request->hasFile('foto'))\n {\n $servicios = servicio::findOrFail($id); //verifica que id exista\n Storage::delete('public/'.$servicios->foto); //borra la foto que esta en storage\n $DatosServicio['foto']=$request->File('foto')->store('uplouds','public');\n }\n\n\n servicio::where('id','=',$id)->update($DatosServicio);\n\n $servicios = servicio::findOrFail($id);\n return view('Servicios.editar',compact('servicios'));\n }", "title": "" }, { "docid": "a348f53b5017f28ba6a056a9e2e947dd", "score": "0.5641076", "text": "public function update($id, EditResourceRequest $request)\n {\n $slug = str_slug($request->get('name'), \"-\");\n $rc_item = Rc_item::findOrFail($id);\n\n $rc_item ->update([\n 'name'=> $request->get('name'),\n 'slug' =>$slug,\n 'cat_id'=>$request->get('cat_id'),\n 'img_name'=> $request->get('image_name'),\n 'img_ext'=> $request->file('image')->getClientOriginalExtension(),\n 'download_link'=>$request->get('download_link')\n ]);\n\n $file = $request->image;\n\n if(!empty($file)){\n $rc_item->img_name = $request->get('image_name');\n $rc_item->img_ext = $request->file('image')->getClientOriginalExtension();\n\n $image = $rc_item->img_name . '.' . $rc_item->img_ext;\n $rc_item->save();\n }\n\n if(!empty($file)){\n\n File::delete(public_path($this->imagePath) .$image);\n File::delete(public_path($this->thumbnailPath) . $image);\n $this->saveImage($file, $image);\n }\n\n return redirect()->back()->with('success', 'Successfully Updated!');\n }", "title": "" }, { "docid": "880715ba5af0affb767965ac42e71574", "score": "0.5640309", "text": "public function update()\n {\n // Temporary cheaty way, should see if a more effictient way is\n // available\n $this->storage->deleteLink($this->id); // Cannot have removeAllNodes called\n $this->save();\n }", "title": "" }, { "docid": "e49cdd26e7843d77b4d5140e3330abc9", "score": "0.5636103", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n\n $currentPhoto = $product->image;\n\n if($request->image != $currentPhoto){ // if there is different image\n\n $extension = explode('/', mime_content_type($request->image))[1];\n $name = time().rand().'.'.$extension;\n\n // image intervention package\n // instead of import Image we use \\\n \\Image::make($request->image)->save(public_path('img/products/').$name);\n\n $request->merge(['image' => $name]);\n\n $productImage = public_path('img/products/'.$currentPhoto); //Replace the old photo with the new\n if(file_exists($productImage)){\n @unlink($productImage); //unlink delete the photo\n }\n }\n\n $product->update($request->all());\n }", "title": "" }, { "docid": "b580434b2e577708f365194b901193c3", "score": "0.5620627", "text": "public function update() {\n\t\tif ($this->get('id') !== null) {\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "c4427773d8f9c02f5ada5a766d802347", "score": "0.5619474", "text": "function sharedresource_update_instance($sharedresource) {\n global $CFG;\n\n $sharedresource->type = 'file'; // Just to be safe\n $res = new sharedresource_base();\n\n return $res->update_instance($sharedresource);\n}", "title": "" }, { "docid": "881827b74625a92ff5b0b94e03819446", "score": "0.56118387", "text": "public function update(Request $request, $id)\n {\n \n $requestData = $request->all();\n if ($request->hasFile('photo')) {\n $requestData['photo'] = $request->file('photo')\n ->store('uploads', 'public');\n }\n\n $product = Product::findOrFail($id);\n $product->update($requestData);\n\n return redirect('products')->with('flash_message', 'Product updated!');\n }", "title": "" }, { "docid": "707dd142800f64b09c09c11325fccd78", "score": "0.5604524", "text": "abstract function update($identifier);", "title": "" }, { "docid": "7b0c8cb2764c13fdb98933dbc69be738", "score": "0.55975235", "text": "public function update(Request $request, $id)\n {\n $newResource = resources::find($id);\n if($request->input('name')){\n $newResource->name = $request->input('name'); \n }\n if($request->input('description')){\n $newResource->description = $request->input('description'); \n }\n if($request->input('status')){\n $newResource->status = $request->input('status'); \n }\n if($request->input('exp_date')){\n $newResource->exp_date = $request->input('exp_date');\n }\n if($request->input('price')){\n $newResource->price = $request->input('price');\n }\n if($request->input('status')){\n $newResource->status = $request->input('status');\n }\n \n $newResource->save();\n\n return back()->with('success','Machinery Successfully Updated!');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55672973", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55602384", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55602384", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55602384", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55602384", "text": "public function update($id, $data);", "title": "" }, { "docid": "359d84c7d511ae4b3f898ca4163e1aaf", "score": "0.554972", "text": "public function update(Request $request, $id)\n {\n $this->validateData();\n// Update plan\n $article = Article::findOrFail($id);\n $article -> name = $request -> input('name');\n $article -> intro = $request -> input('intro');\n $article -> text = $request -> input('text');\n\n\n if ($request->hasFile('image')) {\n\n// Get file name with extention\n $fileExtention = $request -> file('image') -> getClientOriginalName();\n// Get just file name\n $filename =pathinfo($fileExtention,PATHINFO_FILENAME);\n// Get just ext\n $extention = $request -> file('image') -> getClientOriginalExtension();\n $filenameToStore = $filename.'_'.time().'.'.$extention;\n $path = $request -> file('image') -> storeAs('public/img/articles',$filenameToStore);\n\n Storage::delete('public/img/articles/' . $article->image);\n\n $article -> image = $filenameToStore;\n }\n\n $article -> save();\n\n if($request -> input('partner-name') != ''){\n\n $partner = Partner::where('name',$request -> input('partner-name')) -> get();\n\n if($partner != null){\n $article -> partners() -> attach($partner[0]->id);\n }\n }\n\n\n\n return redirect('/articles/'.$article->id)->with('success','ArticleResource is updated');\n }", "title": "" }, { "docid": "9c815957f561d5473f845dd4d5b8d599", "score": "0.5549346", "text": "public function update(Request $request, $id)\n {\n $slider = \\App\\Slider::where('id',$id)->first();\n $slider->firstline = $request->firstline; \n $slider->secondline = $request->secondline; \n $slider->thirdline = $request->thirdline; \n $slider->status = $request->status; \n $slider->row_order = $request->row_order;\n if($request->hasFile('photo')) {\n $slider->photo = $request->file('photo')->store('uploads'.date('Y-m-d')); \n }\n $slider->save();\n return redirect('admin/slider');\n }", "title": "" }, { "docid": "d9b6fe99056043df5723394c78be7f97", "score": "0.55424654", "text": "public function update(Request $request, $id)\n {\n //\n $slider = Slider::find($id);\n //$this->authorize('pass', $pagina);\n\n $slider->fill($request->all())->save();\n $path = Storage::disk('public')->put('img-sliders', $request->file('img'));\n $slider->fill(['img' => asset($path)])->save();\n\n return redirect()->route('adminsliders.edit', $slider->id)\n ->with('info', 'Slider actualizado con éxito');\n }", "title": "" }, { "docid": "8ec34e0e6c475b60660d5237f61fb967", "score": "0.5542162", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $data = $request->all();\n\n $data['slug'] = \\Str::slug($data['name']);\n $data['user_id'] = auth()->user()->id;\n\n if(isset($data['foto'])){\n $data['foto'] = Storage::disk('public')->putFile('media', $data['foto']);\n }\n\n $product->update($data);\n\n return redirect()->route('design.index')->with('success','Berhasil !');\n }", "title": "" }, { "docid": "ff8620d972e560c355108f1adf752347", "score": "0.5534797", "text": "public function update(Request $request, $id)\n {\n\n $validator = Validator::make( $request->all(), [\n 'name' => 'required|max:100|string',\n 'description' => 'required|max:100|string',\n 'selectedfield' => ['required', Rule::in(['field1', 'field2'])],\n 'availability' => ['required', Rule::in(['0', '1'])],\n ]);\n\n if ( $validator->fails() ) {\n return response()->json([\n 'data' => [\n 'success' => FALSE,\n 'errors' => $validator->errors(),\n ]\n ]);\n }\n\n $device = Device::find($id);\n $device->name = $request->name;\n $device->description = $request->description;\n $device->field = $request->selectedfield;\n $device->availability = $request->availability;\n\n if(isset($request->dev_image)){\n unlink(public_path('storage/'.$device->id.'/'.$device->image));\n $image = $request->get('dev_image');\n $image_name = time().'.'.$request->dev_image->extension();\n $request->dev_image->move(public_path('/storage/'.$device->id), $image_name);\n $device->image = $image_name;\n }\n \n $device->save();\n\n $device->image = '/public/storage/'.$device->id.'/'.$device->image;\n\n return response()->json([\n 'success' => TRUE,\n 'data' => $device,\n 'message' => \"Device Updated\"\n ]);\n }", "title": "" }, { "docid": "0b66ea137462c4641492a24a6cd276fe", "score": "0.5534167", "text": "public function update(Request $request, $id)\n {\n try {\n DB::beginTransaction();\n\n $product = $this->queryProduct($id);\n\n $product->name = $request->name;\n $product->description = $request->description != null ? $request->description : null;\n $product->is_prescription = $request->is_prescription;\n $product->image_path = null; // for now\n $product->price = $request->price;\n\n $product->save();\n\n ProductPriceHistory::create(array(\n 'product_id_fk' => $product->product_id,\n 'price' => $request->price\n ));\n\n\n if($request->quantity != null) {\n $productInventory = ProductInventory::where('product_id_fk', '=', $product->product_id)\n ->first();\n\n $productInventory->previous_value = $productInventory->current_value;\n $productInventory->current_value += (int) $request->quantity;\n\n $productInventory->save();\n }\n\n\n DB::commit();\n\n return response()->json(array(\n 'message' => 'Product successfully updated!'\n ));\n } catch(QueryException $ex) {\n DB::rollBack();\n\n return response()->json(array(\n 'message' => 'Product update failed!'\n )); \n }\n }", "title": "" }, { "docid": "66139d48c34ab92a5f49f5d92e5064cc", "score": "0.55317247", "text": "public function put_products($productName)\n{\n $raw = file_get_contents('php://input');\n $newProduct = Product::fromJson($raw);\n\n $db = new DataStore();\n $db->beginTransaction();\n $oldProduct = Product::productByName($db, $productName);\n if (is_null($oldProduct))\n throw new RESTException('Product not found.', 404);\n\n $oldProduct->update($db, $newProduct);\n $db->commit();\n echo('Product ' . $productName . ' updated.');\n}", "title": "" }, { "docid": "a60f40542a713142fac35050b8cc0c57", "score": "0.55292946", "text": "public function update(Request $request, $id)\n {\n $photo = Photo::find($id);\n $photo->album_id = $request->get(Photo::ALBUM_ID);\n $photo->title = $request->get(Photo::TITLE);\n $photo->url = $request->get(Photo::URL);\n $photo->thumbnail_url = $request->get(Photo::THUMBNAIL_URL);\n $photo->save();\n return new PhotoResource($photo);\n }", "title": "" }, { "docid": "6635eff0e783df96c39328a1351c17ab", "score": "0.5515015", "text": "public function update( $object );", "title": "" }, { "docid": "89c360360421e2cdcc1017ccb99a7828", "score": "0.5511103", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::find($id);\n\n if ( ! $product)\n {\n return $this->recordNotFound();\n }\n\n $validator = Validator::make($request->all(), array_merge(\n [\n 'sku' => 'string|between:8,14|unique:products,sku,'.$product->id.',id'\n ],\n Product::$update_rules\n ));\n\n if($validator->fails()){\n return response()->json($validator->errors(), 400);\n }\n\n $input = $request->all();\n $image_url = $product->image;\n $product->fill($input);\n\n if($request->has('image')){\n Storage::disk('public')->delete('products/'. basename($image_url));\n $uploadFolder = 'products';\n $image = $request->file('image');\n $image_uploaded_path = $image->store($uploadFolder, 'public');\n $product->image = Storage::disk('public')->url($image_uploaded_path);\n }\n\n $product->save();\n\n return response()->json([\n 'message' => 'Product successfully updated',\n 'product' => $product\n ]);\n }", "title": "" }, { "docid": "7614f731038f3fe7cc7be19a770b8134", "score": "0.551081", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required|string|max:100',\n 'description' => 'required|string',\n 'categorie_id' => 'integer',\n 'sizes.*' =>'integer',\n 'url_image' => 'image|max:3000',\n 'code' => 'in:standard,solde',\n 'price' => 'required|numeric',\n 'reference' => 'required|alpha_num',\n \n ]);\n\n\n $product = Product::find($id);\n $product->update($request->all());\n $product->size()->sync($request->sizes);\n\n $im = $request->file('picture');\n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n }\n\n return redirect()->route('product.index')->with('message', 'Succès de la mise à jour');\n }", "title": "" }, { "docid": "66d083bb11d3019d16e02973863d6967", "score": "0.5505304", "text": "public function update(Request $request, Asset $asset)\n {\n }", "title": "" }, { "docid": "08757cc2c81b23ca63469f255efa2060", "score": "0.5501635", "text": "protected function update() {\n $this->client->sendRequest('POST', $this->name . ($this->key ? : (string) $this->id), $this->prepareRequestData());\n }", "title": "" }, { "docid": "0a5b062a5dceb2e06835dd93b36cb7c2", "score": "0.5501436", "text": "public function update(Request $request, $id)\n { \n if($request->image){\n $imageName = basename($request->image->store(\"public\"));\n $request['image'] = $imageName;\n }\n Product::find($id)->update($request->all());\n session()->flash('msg', \"s: Product Updatedd successfully \");\n return redirect(route(\"products.index\"));\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54958415", "text": "public function update($id);", "title": "" }, { "docid": "cd61f7dfb166b27b13e2e27a951d1df3", "score": "0.5494775", "text": "public function updateObject($objectPath,$content);", "title": "" }, { "docid": "87241a0a9cce48b64ec4be8df8b5485b", "score": "0.5493521", "text": "public function update(Request $request, Product $product) {\n $product->isOwner();\n\n $request->validate([\n 'name' => 'required|max:255',\n 'description' => 'required',\n 'price' => 'required',\n 'stock' => 'required',\n 'discount' => 'required|max:2',\n ]);\n\n $product->name = $request->name;\n $product->detail = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n $product->discount = $request->discount;\n $product->save();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "4c918686af4f25ca69e952e282b47c7c", "score": "0.54928464", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => '',\n 'description' => '',\n 'price' => '',\n 'stock' => '',\n 'picture' => ''\n ]);\n\n // Membuat object dari Model Post\n $store = Store::find($id); \n $store->title = $request->input('title');\n $store->desc = $request->input('description');\n $store->price = $request->input('price');\n $store->stock = $request->input('stock');\n $path = 'storage/store_image/'.$store->pic;\n if($request->hasFile('picture')){\n unlink($path);\n $fileNameWithExt = $request->file('picture')->getClientOriginalName();\n $filename = pathinfo($fileNameWithExt, PATHINFO_FILENAME);\n $extension = $request->file('picture')->getClientOriginalExtension();\n $filenameSimpan = $filename.'_'.time().'.'.$extension;\n $path = $request->file('picture')->storeAs('public/store_image', $filenameSimpan);\n $store->pic = $request->input('picture');\n }else{\n $filenameSimpan = $store->pic;\n }\n $store->pic = $filenameSimpan;\n\n\n $store->save();\n\n return redirect('/adminstore')->with('success', 'Data telah diubah.');\n }", "title": "" }, { "docid": "944220b7d8dc3f2475ecc0d6f47331b7", "score": "0.548675", "text": "public function update($id, $data){\n $image = $this->findById($id);\n $this->validation($data);\n $image->fill($data);\n $image->save();\n return $image;\n }", "title": "" }, { "docid": "81ffa33c6a97b616b60b1d4825f6ed56", "score": "0.5473982", "text": "abstract public function update($object);", "title": "" }, { "docid": "3ccd617169cd697bcf05ee458b57ebd6", "score": "0.5472773", "text": "public function update(Request $request, $id)\n {\n\n\n $products = new products;\n $send = $request->all();\n if($request->hasFile('file')){\n $filename = $request->file->getClientOriginalName();\n $path = $request->file->store('storage/uploads','public');\n $send['img'] = $path;\n }\n \n\n \n $p = $products::find($id);\n $p->update($send);\n \n \n \n }", "title": "" }, { "docid": "4febf037679dde1b9296a47a3c708516", "score": "0.54617953", "text": "public function update(Request $request, $id)\n {\n $product = Product::where('id', $id)->first();\n\n if(!$product){\n return response()->json([\n 'status' => 'false',\n 'message' => 'Product not found'\n ])->setStatusCode(400, \"Product not found\");\n }\n\n $validation = Validator::make($request->all(), [\n 'title' => 'unique:products,title,' . $product->id,\n 'firm' => 'string',\n 'text' => 'string',\n 'image' => 'file|image|mimes:jpg,png|max:3072'\n ]);\n\n if($validation->fails()){\n return response()->json([\n 'status' => 'false',\n 'message' => $validation->errors()\n ])->setStatusCode(400, \"Editing error\");\n }\n\n $image = null;\n if($request->image){\n $image = $request->image->store('transport_images', 'api');\n }\n\n $product->update([\n 'title' => $request->title ? $request->title : $product->title,\n 'firm' => $request->firm ? $request->firm : $product->firm,\n 'text' => $request->text ? $request->text : $product->text,\n 'image' => $image ? 'storage/api/' . $image : $product->image\n ]);\n\n return response()->json([\n 'status' => true,\n 'post' => [\n 'title' => $product->title,\n 'datetime' => $product->updated_at->format('H:i d.m.Y'),\n 'firm' => $product->firm,\n 'text' => $product->text,\n 'tags' => $product->tags,\n 'image' => $product->image\n ]\n ])->setStatusCode(201, 'Successful creation');\n }", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.54612887", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "0c9339d032215169c3edaade53ef1825", "score": "0.5454451", "text": "public function update(Request $request, $id)\n {\n $vData = $request->validate([\n 'category_id' => 'required',\n 'title' => 'required',\n 'slug' => 'required',\n 'specs' => 'max:16300',\n 'details' => 'max:16300'\n ]);\n\n $product = Product::whereId($id)->update($vData);\n if($request->hasFile('file')){\n\n $cur_image = Image::where('product_id', $id)->first();\n @unlink($_SERVER['DOCUMENT_ROOT'] . '/'.$cur_image->path);\n\n\n $imageName = time().'.'.request()->file->getClientOriginalExtension();\n request()->file->move(public_path('storage/img/products/'), $imageName);\n $path = 'storage/img/products/'.$imageName;\n \n $image = Image::where('product_id', $id)->first();\n $image->path = $path;\n $image->update();\n\n\n }\n\n return back()->with('success', 'Product updated.');\n }", "title": "" }, { "docid": "53acca1ee81047a19045a47e38ed715c", "score": "0.54539895", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "2744fd02d7abb711d53573d70c4d3888", "score": "0.54534996", "text": "public function update($id)\n {\n $id = $this->filter->sanitize($id, 'int');\n\n try {\n\n $request = $this->request;\n\n $product = Product::findFirstOrFail(\n [\n 'id = ?0', 'bind' => [$id]\n ]\n );\n\n $product->assign(\n [\n 'id' => $id,\n 'name' => $request->getPut('name', 'string', $product->name),\n 'icon' => $request->getPut('name', 'string', $product->icon),\n ]\n );\n\n return $this->response($request, $product, true);\n\n } catch (ResourceNotFoundException $e) {\n return $e->returnResponse();\n }\n }", "title": "" }, { "docid": "24aefd649a6f08879c0683232037d759", "score": "0.54491186", "text": "public function update(Request $request, $id)\n {\n //Handle file upload\n if ($request->hasFile('prod_image')) {\n $filenameWithExt = $request->file('prod_image')->getClientOriginalName();\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);\n $extention = $request->file('prod_image')->getClientOriginalExtension();\n $fileNameToStore = $filename. '_' .time(). '.' .$extention;\n $path = $request->file('prod_image')->storeAs('public/prod_images', $fileNameToStore);\n \n } else {\n $fileNameToStore = 'noimage.jpg';\n }\n\n //Update products\n $product = Product::find($id);\n $product->title = $request->input('title');\n $product->description = $request->input('description');\n $product->notetocustomer = $request->input('notetocustomer');\n $product->prod_image = $fileNameToStore;\n $product->save();\n\n return redirect('products/'. $id);\n }", "title": "" }, { "docid": "c47170ee30d6553b2ef17d9464e431bf", "score": "0.5446732", "text": "public function update(Request $request, $id)\n {\n $file=file_get_contents(public_path().'\\products.json');\n $data=(array)json_decode($file);\n unset($file);\n $filePath=public_path().'\\products.json';\n $found_key = array_search($id, array_column($data, 'id'));\n $data[$found_key]->type=$_REQUEST['type'];\n $data[$found_key]->title=$_REQUEST['title'];\n $data[$found_key]->firstname=$_REQUEST['firstname'];\n $data[$found_key]->mainname=$_REQUEST['mainname'];\n $data[$found_key]->price=$_REQUEST['price'];\n $data[$found_key]->numpages=$_REQUEST['numpages'];\n file_put_contents($filePath, json_encode($data));\n return redirect('product');\n }", "title": "" }, { "docid": "dd047a60f5212296d1890ab530ebee18", "score": "0.5445555", "text": "public function update($id)\n {\n\n \n $validation = $this->runValidation();\n\n if (request()->ajax()) {\n\n if ($validation->getData()->status == 0) {\n return $validation;\n }\n\n }\n \n $data = $this->request->all();\n \n $resource = $this->model::findOrFail($id);\n if ($this->request->hasFile('url')) {\n\n $data['url'] = Helper::saveImage($this->request->url,\"/$this->basicRoute\");\n }\n\n if ($this->request->hasFile('image')) {\n \n $data['image'] = Helper::saveImage($this->request->image,\"/$this->basicRoute\");\n \n }\n\n $resource->update($data);\n\n toastr()->success(trans('main.saved_successfully'));\n\n if (request()->ajax()) {\n return responseJson(1,trans('main.saved_successfully'),['url'=>route($this->basicRoute . '.index')]);\n }\n\n return redirect()->route($this->basicRoute . '.index');\n }", "title": "" }, { "docid": "e0201570e4544fdade8ae1ce85d31d37", "score": "0.54445004", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'numeric|required',\n 'reference' =>'string|required'\n \n ]);\n\n $product = Product::find($id); // on recupere dans la BDD le produit correspondant a $id\n\n\n $product->update($request->all()); // mon produit est mis a jour avec toutes les infos recues\n\n $im = $request->file('picture'); // on va chercher la la photo picture\n\n if (!empty($im)) { // si ce dossier n'est pas vide \n\n $link = $request->file('picture')->store('images'); // on enregistre la photo dans le dossier image ( store =secur)\n\n\n $product->update([\n 'url_image' => $link, // je preprend mon produt et le champs url image, j'y assicie le lien link crée = $link = le nom de l'image\n ]);\n }\n \n // on utilisera la méthode sync pour mettre à jour les auteurs dans la table de liaison\n \n\n return redirect()->route('admin.index')->with('message', 'article modifié');\n \n }", "title": "" }, { "docid": "ccfb3d35b44456a2ee9c7ae900beffc7", "score": "0.5438265", "text": "function update( $resource ){\n\n $data = [\n\n 'receipt_number' => $_POST[ 'receipt_number' ],\n 'product_id' => $_POST[ 'product_id' ],\n 'quantity' => $_POST[ 'quantity' ],\n 'unit_price' => $_POST[ 'unit_price' ],\n 'receivable_image' => $_POST[ 'receivable_image' ],\n 'date_received' => $_POST[ 'receipt_number' ],\n\n ];\n\n $result = patch( 'receivables', $resource, $data );\n\n if( !$result ){\n return false;\n }\n\n return true;\n\n}", "title": "" }, { "docid": "6b0d98cb805b9bcb66defa2a25539d3b", "score": "0.5435179", "text": "public function update(Request $request, $id)\n\t{\n\t\t$this->validate($request, [\n\t\t\t'name' => 'required|string|max:30',\n\t\t\t'price' => 'required|string|max:5',\n\t\t\t'release_date' => 'required|date',\n\t\t\t'auther' => 'required|string',\n\t\t\t'retailer' => 'required|string',\n\t\t\t'desc' => 'required|string',\n\t\t\t'ISBN' => 'required|numeric',\n\t\t\t'file' => 'file|image',\n\n\t\t]);\n\n\t\t$getOne = Product::findOrFail($id);\n\n\t\t$getOne->name = $request->input('name');\n\t\t$getOne->price = $request->input('price');\n\t\t$getOne->release_date = $request->input('release_date');\n\t\t$getOne->auther = $request->input('auther');\n\t\t$getOne->retailer = $request->input('retailer');\n\t\t$getOne->desc = $request->input('desc');\n\t\t$getOne->ISBN = $request->input('ISBN');\n\t\tif ($request->hasFile('file') && isset($getOne->pic_index)) {\n\t\t\tStorage::delete('public/books/'.$getOne->pic_index);\n\t\t\t$uploadHelper = $request->file('file');\n\t\t\t$path = $uploadHelper->storeAs('public/books', $uploadHelper->hashName());\n\t\t\t$getOne->pic_path = $path;\n\t\t}\n\t\t$getOne->save();\n\t\treturn redirect()->route('product.index');\n\t}", "title": "" }, { "docid": "d761b550e7c8e095517fead3d3ebe9c1", "score": "0.543504", "text": "public function update(Request $request, $id)\n {\n $file = File::findOrFail($request->file_id);\n\n $file->id = $request->input('file_id');\n $file->name = $request->input('name');\n\n if ($file->save()) {\n return new FileResource($file);\n }\n }", "title": "" }, { "docid": "a96003ebfe5bb93afff05477cd90b813", "score": "0.54315424", "text": "public function update(Request $request, $id)\n {\n //\n \n $homeItem = HomeItem::find($id);\n \n // dd($request->path); \n // $tempPath = $request->file('path');\n // $tempPath = ;\n // die();\n\n $photoName = \"homePhoto_\" . $homeItem->id;\n if($request->file('path') != null)\n $request->file('path')->storeAs('storage/home/',$photoName);\n\n $path = \"storage/home/\" . $photoName;\n \n \n $data = [\n 'title' => $request->title,\n 'description' => $request->description,\n 'path' => $path\n ];\n\n $homeItem->update($data);\n \n return redirect()-> route('admin.home.index');\n \n //\n // HomePhoto homePhoto;\n }", "title": "" }, { "docid": "8286c17eacfe236df6038d5372070538", "score": "0.5431287", "text": "public function update(Request $request, $id)\n { $file=Request()->file('picture');\n //validate\n $this->validate($request,[\n 'name'=>'required|max:100',\n //unique:products no me deja regrabar\n 'description'=>'required|max:500',\n 'price'=>'required|numeric',\n 'category_id'=>'required|integer',\n 'stock'=>'required|integer',\n 'purchable'=>'required|boolean'\n ]);\n //recuperar el producto de la DB\n $prod= Product::find($id); \n //save\n $prod->name = $request->name;\n $prod->description = $request->description;\n $prod->price = $request->price;\n $prod->category_id = $request->category_id;\n $prod->stock = $request->stock;\n $prod->purchable = $request->purchable;\n //guardar la imagen\n if($request->hasFile('picture')){\n $nombre= str_slug($prod->name) . '.' .request()->file('picture')->extension();\n $file->storeAs('/public/products/', $nombre);\n //asociar la imagen con el prod\n $prod->picture = $nombre; \n } \n $prod->save();\n //redirect\n return redirect('/admin/products/');\n }", "title": "" }, { "docid": "fa0ae59c9ed5781e236a66291f8f7f6f", "score": "0.5429399", "text": "public function update(StoreProductRequest $request, $id)\n {\n \n }", "title": "" }, { "docid": "e9317165d16f63837cf4020ead9f5bc5", "score": "0.5425013", "text": "public function update(Request $request, $id)\n {\n $validated = $request->validate([\n 'name' => 'required|min:3|max:50',\n 'slug' =>'unique:App\\Models\\Product,slug,'.$id.'|required',\n 'category_id' => 'required',\n 'description' => 'required|min:3',\n 'price' => 'required|numeric',\n 'img' => 'required',\n ]);\n\n $product = Product::findOrFail($id);\n $product->name = $request->name;\n $product->slug = $request->slug;\n $product->category_id = $request->category_id;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->action_price = $request->action_price;\n if($request->recomended == null){\n $request->recomended = false;\n $product->recomended = $request->recomended;\n }\n $product->recomended = $request->recomended;\n\n $product->img = $request->img;\n $product->save();\n\n $product->productRecommended()->sync($request->productRecommended);\n\n\n\n\n return redirect('/admin/product')->with('success', 'Product was Updated!');\n }", "title": "" }, { "docid": "c620c32a9166a55ea3c61d3b0b4a0d35", "score": "0.54230255", "text": "public function update(Request $request, $id)\n {\n \n $validator = Validator::make($request->all(), [\n 'nama_product' => 'max:255',\n 'harga' => 'max:10',\n \n ]);\n if ($validator -> fails()) {\n return response([\n 'error' => $validator->errors(),\n 'status' => 'Validation Error'\n ]);\n }\n $product = product::find($id);\n if ($product != null){\n $product->update($request->all());\n return response([\n 'data' => new ProductResource($product),\n 'message' => 'Adidas has been updated!'], 202);\n } else {\n return response([\n 'message'=>'No data found!',], 403);\n }\n }", "title": "" }, { "docid": "0a57d4518594a9989e97cec12943deca", "score": "0.54215497", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'storage' => ['required', 'max:255'],\n 'name' => ['required', 'string',]\n ]);\n\n $data['storage'] = $request->input('storage');\n $data['name'] = $request->input('name');\n\n SiloName::where('id', $id)->update($data);\n try {\n CloudSiloName::where('id', $id)->update($data);\n } catch (\\Throwable $th) {\n return redirect('setting/silo-setting')->with(['update' => 'Data updated successfully!']);\n }\n return redirect('setting/silo-setting')->with(['update' => 'Data updated successfully!']);\n }", "title": "" }, { "docid": "a44308ca5a380cae7b7e813b2c9f1a54", "score": "0.5416881", "text": "public function update(ProductRequest $request, $id)\n {\n\n $validatedData = $request->validated();\n $product = Product::find($id);\n if (file_exists($product->image) && $request['image']) {\n unlink($product->image);\n $validatedData['image'] = $this->uploadFile($request, $this->productsPath, 'image');\n }\n $product->update($validatedData);\n return redirect()->back()->with([\"heading\" => stringCutter(20, $request->name), \"message\" => \"Has Been Updated Successfully !\"]);\n }", "title": "" }, { "docid": "b0703c31ae5e60c6f79145b52c055770", "score": "0.5416872", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n\t\t\t'slider_large_title' => 'required',\n 'slider_small_title' => 'required',\n\t\t]);\n $requestData = $request->all();\n $slider = Slider::findOrFail($id);\n\n if ($request->hasFile('image')) {\n if (!$request->old_image='') {\n Storage::delete('public/' . $slider->image);\n }\n }\n if ($request->hasFile('image')) {\n $requestData['image'] = $request->file('image')->store('uploads', 'public');\n $setImage = 'storage/'.$requestData['image'];\n $img = Image::make($setImage)->resize(1920, 1000)->save($setImage);\n }else{\n $requestData['image'] = $request->old_image;\n }\n $slider->update($requestData);\n\n Toastr::success('Class updated!', 'Done', [\"positionClass\" => \"toast-top-right\"]);\n return redirect('admin/slider');\n }", "title": "" }, { "docid": "dae8a6503505f86c42e3ac3dd124b03f", "score": "0.541588", "text": "public function update(Request $request, $id)\n {\n $book = Book::findorFail($id);\n $book->book_name=$request->input('book_name'); \n $book->author_name=$request->input('author_name');\n $book->shelf_no=$request->input('shelf_no');\n $book->shelf_image=\"\";\n $book->row_no=$request->input('row_no');\n $book->column_no=$request->input('column_no');\n $book->book_image=\"\";\n $book->book_quantity=$request->input('book_quantity');\n if($book->save()){\n $shelf_image = $request->file('shelf_image');\n if($shelf_image != null){\n $ext = $shelf_image->getClientOriginalExtension();\n $fileName = rand(10000, 50000) . '.' . $ext;\n if($ext == 'jpg' || $ext == 'png' || $ext == 'jpeg'){\n if($shelf_image->move(public_path(), $fileName)){\n $book = Book::find($book->id);\n $book->icon = url('/') . '/' . $fileName;\n $book->save();\n }\n }\n\n }\n $book_image = $request->file('book_image');\n if($book_image != null){\n $ext = $book_image->getClientOriginalExtension();\n $fileName = rand(10000, 50000) . '.' . $ext;\n if($ext == 'jpg' || $ext == 'png' || $ext == 'jpeg'){\n if($book_image->move(public_path(), $fileName)){\n $book = Book::find($book->id);\n $book->icon = url('/') . '/' . $fileName;\n $book->save();\n }\n }\n\n }\n \n return new BookResource($book);\n \n } \n }", "title": "" }, { "docid": "7ad1378cea665d5004a8344ebd4b6866", "score": "0.5415091", "text": "public function update(Request $request, $id)\n {\n $file = $request->file('image');\n\n $product = Product::where('id',$id)->first();\n if($file == NULL)\n {\n Product::where('id',$id)->update(['name'=>$request->name,'amount'=>$request->amount]);\n }\n else {\n $file_name = uniqid().'_'.$request->image->getClientOriginalName();\n\n $file->move(public_path().'/image/author/',$file_name);\n\n Product::where('id',$id)->update(['image'=>$file_name,'name'=>$request->name,'amount'=>$request->amount]);\n }\n\n History::create(['description'=> Auth::user()->name,\" edited \",\" product \",$product->name],\" as \",$request->name);\n\n return redirect()->route('products.index',['product'=>$id]);\n }", "title": "" }, { "docid": "ee6e8f1b9c68eb99ac3960c72ccc4b79", "score": "0.5413189", "text": "public function update(Request $request, $id)\n {\n \n $slider = Slider::find($id);\n $slider->title = $request->title;\n $slider->description = $request->description;\n $slider->slider_type = $request->slider_type;\n if ($request->file)\n {\n $file_name = $request->file -> getClientOriginalName();\n $file_name = uniqid().$file_name;\n $file_name = preg_replace('/\\s+/', '', $file_name);\n $file_type = $request->file->getClientOriginalExtension();\n $request->file-> move(public_path().'/admin/upload/sliders',$file_name);\n $file_size = $request->file->getClientSize();\n $file_size = $file_size/1000;\n $file_size = $file_size.' '.'kb';\n $new_path = url('/').'/public/admin/ecommerce/upload/sliders'.$file_name;\n $slider->image_name = $file_name;\n $slider->image_size = $file_size;\n $slider->image_extension = $file_type;\n $slider->image_url = $new_path; \n }\n $slider->update();\n return Redirect()->back()->with('status', 'Slider updated successfully!');\n }", "title": "" }, { "docid": "0e451bd98e5957fbd83c888a6f6c1040", "score": "0.5412081", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::findOrFail($id);\n if($resource->update($request->all()))\n {\n if ($request->hasFile('document')) {\n if(!empty($resource->document))\n {\n Storage::delete($resource->file);\n }\n $file = $request->document;\n $path = Storage::putFile('files/board', $file);\n $resource->file = $path;\n $resource->save();\n }\n Alert::success('Document updated successfully', 'Document Updated');\n }\n else\n {\n Alert::error('Document was not updated. Please correct your errors.', 'Oops!');\n return back();\n }\n return redirect('admin/portal');\n }", "title": "" }, { "docid": "80fe54605f41c0621ee8786a51d07268", "score": "0.54105407", "text": "public function update(Request $request, $id)\n {\n $supplier = Supplier::find($id);\n $supplier->supplier_code = $request->supplier_code;\n $supplier->supplier_name = $request->supplier_name;\n $supplier->description = $request->description;\n $supplier->image = $request->image;\n \n\n if($request->hasFile('image'))\n {\n $file = $request->image;\n // Lưu tên hình vào column sp_hinh\n $supplier->image = $file->getClientOriginalName();\n \n // Chép file vào thư mục \"photos\"\n $fileSaved = $file->storeAs('public/uploads', $supplier->image);\n }\n\n $supplier->save();\n\n return redirect()->route('backend.supplier.index');\n }", "title": "" }, { "docid": "9c20822df745e41d8d41c20390064ae1", "score": "0.54097664", "text": "public function update(Request $request, $id)\n {\n $found = Supply::findOrfail($request->get('supply_id'));\n $photo=\"\"; \n if($found){\n\n if($request->hasFile('Photo')){\n Storage::delete('public/'.$found->photo);\n $photo = $request->file('Photo')->store('suppliesUploads','public'); \n }\n\n $supplies = [\n 'user_id' => auth()->id(),\n 'name' => $request->get('Name'),\n 'price' => $request->get('Price'), \n 'stock' => $request->get('Stock'), \n 'offer' => $request->get('Offer'),\n 'photo' => $photo \n ];\n\n if(Supply::where('id','=',$found->id)->update($supplies))\n return redirect('supplies')->with('success','Supply updated successfuly');\n else \n return redirect('supplies')->with('error','Something is wrong, try later');\n }\n return redirect('supplies')->with('error','Supply not found, try again'); \n \n }", "title": "" }, { "docid": "13d50b8ba5ae96627a4f7af44881f80e", "score": "0.5409047", "text": "abstract public function updateAction($id, Request $request);", "title": "" }, { "docid": "21e1460ae7fcbf94fd77a17a41f5c7af", "score": "0.54049957", "text": "public function update(Request $request, Product $product)\n {\n\n $business = $product->business_id;\n\n $this->isValid($request);\n\n if ($request->hasFile('img')) {\n $path = $request->file('img')->store('stored-imgs');\n $product->img = $path;\n }\n\n $data = $request->all();\n $product->update($data);\n\n return redirect()->route('business.show', compact('business'));\n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.540396", "text": "public function update($id)\n {\n \n }", "title": "" } ]
8aa330dec7345b20babfcc3a7211438d
Move service up or down
[ { "docid": "0b28168ea360dbf050305718b1b0fe19", "score": "0.6164995", "text": "protected function _moveByDirection( $dir )\r\n\t{\r\n\t\t$response = Art_Ajax::newResponse();\r\n\r\n\t\t//Load service\r\n\t\t$service_1 = new Service(Art_Router::getId());\r\n\r\n\t\tif( $service_1->isLoaded() && $service_1->isPrivileged() )\r\n\t\t{\r\n\t\t\tswitch( strtolower($dir) )\r\n\t\t\t{\r\n\t\t\t\tcase 'up':\r\n\t\t\t\t\t$service_2 = $service_1->getUpper();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'down':\r\n\t\t\t\t\t$service_2 = $service_1->getDowner();\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif( $service_2->isLoaded() && $service_2->isPrivileged() )\r\n\t\t\t{\r\n\t\t\t\tService::swapPositions($service_1, $service_2);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$response->addVariable('content', Art_Module::createAndRenderModule('service'));\r\n\t\t$response->execute();\r\n\t}", "title": "" } ]
[ { "docid": "ffa1f27cd1e73b0e51a315b22cda1d53", "score": "0.6089054", "text": "public function moveUp()\n {\n // check passanger in queue where destination UP\n }", "title": "" }, { "docid": "841d947aba7c43906f546722ae313c59", "score": "0.599618", "text": "public function moveDown()\n {\n // check passanger in queue where destination DOWN\n }", "title": "" }, { "docid": "c253a6f857f2b128fc7ddfe412611de5", "score": "0.56723756", "text": "public function orderUp()\n {\n $this->_moveTeam(-1);\n }", "title": "" }, { "docid": "5a0a4726a4dc25c496a3a52d0a641161", "score": "0.56246555", "text": "public function testMoveDown() {\r\n\t\t$result = $this->UsersAddon->moveDown('useraddon-2');\r\n\t\t$this->assertTrue(!empty($result));\r\n\r\n\t\t$result = $this->UsersAddon->moveDown('non-existing-uuid');\r\n\t\t$this->assertFalse($result);\r\n\t}", "title": "" }, { "docid": "317ff621787807470f903272901b4b0a", "score": "0.55658644", "text": "public function testMoveUp() {\r\n\t\t$result = $this->UsersAddon->moveUp('useraddon-2');\r\n\t\t$this->assertTrue(!empty($result));\r\n\r\n\t\t$result = $this->UsersAddon->moveUp('non-existing-uuid');\r\n\t\t$this->assertFalse($result);\r\n\t}", "title": "" }, { "docid": "04c003344df4195cf1715a2d212c3964", "score": "0.55621535", "text": "public function decrement($service)\n {\n }", "title": "" }, { "docid": "4285df1ea07c828d196548e1eac3548b", "score": "0.5560616", "text": "public function orderDown()\n {\n $this->_moveTeam(1);\n }", "title": "" }, { "docid": "915a7a4ffbbed71d99b639949bd9d316", "score": "0.551759", "text": "public function moveForward();", "title": "" }, { "docid": "d7c890041768e6a8d67630a87f41d400", "score": "0.5495696", "text": "public function movePositionUp()\n {\n $this->movePositionUpOrDown(true);\n }", "title": "" }, { "docid": "7915325b7d62e0e698dd04fc9a871b80", "score": "0.5440577", "text": "public function moveFw()\n {\n $indexCurrent = array_search($this->getCurrentPage(), $this->getPages());\n $this->setCurrentPage($this->getPages()[$indexCurrent + 1]);\n }", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.53423977", "text": "abstract public function down();", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.53423977", "text": "abstract public function down();", "title": "" }, { "docid": "2196d2ed15cff82982ad1b3bfd26d3a9", "score": "0.53423977", "text": "abstract public function down();", "title": "" }, { "docid": "d2554aff7aac7a2e75f165d6f0d4957c", "score": "0.5241181", "text": "public function move_item_up_down($direction, $id) {\n $peers = $this->get_items_peers($id);\n $itemkey = array_search($id, $peers);\n switch ($direction) {\n case 'down' :\n if (isset($peers[$itemkey+1])) {\n $olditem = $peers[$itemkey+1];\n $peers[$itemkey+1] = $id;\n $peers[$itemkey] = $olditem;\n } else {\n print_error('listcantmoveup');\n }\n break;\n\n case 'up' :\n if (isset($peers[$itemkey-1])) {\n $olditem = $peers[$itemkey-1];\n $peers[$itemkey-1] = $id;\n $peers[$itemkey] = $olditem;\n } else {\n print_error('listcantmovedown');\n }\n break;\n }\n $this->reorder_peers($peers);\n }", "title": "" }, { "docid": "ea2045e2b4bb45a37ce21f94d0dbe0c7", "score": "0.5239797", "text": "public function move_up($id = 0) {\n $this->_changeOrdering($id, 1);\n }", "title": "" }, { "docid": "c1f8841955e81928c91db21fc663d882", "score": "0.51848596", "text": "protected function beforeDown()\n {\n }", "title": "" }, { "docid": "b870ea4ac957ec53033eb8b287e2f843", "score": "0.51702505", "text": "public function deactivateService() {}", "title": "" }, { "docid": "4d9c7fcf99d14232f66ffac08c74e6c5", "score": "0.5169292", "text": "function doDown()\n {\n }", "title": "" }, { "docid": "4d9c7fcf99d14232f66ffac08c74e6c5", "score": "0.5169292", "text": "function doDown()\n {\n }", "title": "" }, { "docid": "2a86e2f230a6139643b1f97948d4ba5c", "score": "0.51565677", "text": "function moveUp()\n {\n $db =& eZDB::globalDatabase();\n $db->begin();\n $db->query_single( $qry, \"SELECT ID, Placement FROM eZUser_Additional\n WHERE Placement<'$this->Placement' ORDER BY Placement DESC\", array( \"Limit\" => 1, \"Offset\" => 0 ) );\n $listorder = $qry[$db->fieldName( \"Placement\" )];\n $listid = $qry[$db->fieldName( \"ID\" )];\n $res[] = $db->query( \"UPDATE eZUser_Additional SET Placement='$listorder' WHERE ID='$this->ID'\" );\n $res[] = $db->query( \"UPDATE eZUser_Additional SET Placement='$this->Placement' WHERE ID='$listid'\" );\n\n eZDB::finish( $res, $db );\n }", "title": "" }, { "docid": "23babe85994dc6d9258652fbf9eaf465", "score": "0.51475185", "text": "public function up_status()\n {\n }", "title": "" }, { "docid": "bfec16caba57d4f144f540c55af472cc", "score": "0.5145524", "text": "public function move(){\n echo 'I move on all fours';\n }", "title": "" }, { "docid": "b8bab1b9d58225511a22ac74cd7bc022", "score": "0.5133372", "text": "public function move($from, $to);", "title": "" }, { "docid": "e87a089580a333043c5946e6065d30ea", "score": "0.512898", "text": "public function preDown()\n {\n }", "title": "" }, { "docid": "7cdfffaa71b0d7f4f324ad331d1571ec", "score": "0.5124008", "text": "protected function movePositionUpOrDown($up = true)\n {\n // The current position of the object\n $my_position = $this->getPosition();\n $template_id = $this->getTemplateId();\n\n // Find object to exchange position with\n $search = $this->createQuery();\n\n $this->addCriteriaToPositionQuery($search);\n\n // Up or down ?\n if ($up === true) {\n // Find the object immediately before me\n $search->filterByPosition(array('max' => $my_position-1))->orderByPosition(Criteria::DESC)->filterByTemplateId($template_id);\n } else {\n // Find the object immediately after me\n $search->filterByPosition(array('min' => $my_position+1))->orderByPosition(Criteria::ASC)->filterByTemplateId($template_id);\n }\n\n $result = $search->findOne();\n\n // If we found the proper object, exchange their positions\n if ($result) {\n $cnx = Propel::getWriteConnection($this->getDatabaseName());\n\n $cnx->beginTransaction();\n\n try {\n $this\n ->setPosition($result->getPosition())\n ->save($cnx)\n ;\n\n $result->setDispatcher($this->getDispatcher())->setPosition($my_position)->save($cnx);\n\n $cnx->commit();\n } catch (\\Exception $e) {\n $cnx->rollback();\n }\n }\n }", "title": "" }, { "docid": "e88801f2877c30afd4270c3751ea182b", "score": "0.5119072", "text": "public abstract function down();", "title": "" }, { "docid": "4d1116515dd93c9684a8d01ecb8ec4cd", "score": "0.51189446", "text": "function down()\n\t{\n\t}", "title": "" }, { "docid": "d9dd62e3313522d90b21c3321ebaf542", "score": "0.5105225", "text": "public function move(){\n echo \"I'm bipedal! Haha!\";\n }", "title": "" }, { "docid": "da78a2cac1ba543ddf77be53ab6fdb91", "score": "0.50951546", "text": "public function upMenu( ) {\n\n $comando=$this->comandos1[DaoControl::$UP];\n $this->setEstado(self::$UP);\n $this->enviarComando($comando);\n $this->guardarEstado();\n\n }", "title": "" }, { "docid": "404cc4f1cb11e5517670d848ed3d8a61", "score": "0.5083233", "text": "protected function runservice() {\n $this->state = self::STA_STARTED;\n // We break this loop manually\n $flags = $this->getFlags();\n if (is_callable([$this,\"serviceinit\"])) {\n $this->debug(\"Calling serviceinit()\");\n $this->serviceinit();\n }\n while(true) {\n $this->servicemain();\n pcntl_signal_dispatch();\n if ($this->state == self::STA_STOPPING) break;\n if (!($flags & self::SVC_RESTART)) break;\n if (!($flags & self::SVC_NO_DELAY)) sleep(1);\n }\n $this->state = self::STA_STOPPED;\n }", "title": "" }, { "docid": "aa333d7a184be7ddb51a9e29e2286049", "score": "0.507309", "text": "public function move()\r\n {\r\n }", "title": "" }, { "docid": "5ab4d353d07d96a0b75d467778c9cc53", "score": "0.5072364", "text": "private function moveBackUp() {\n\t\t$tooFar = $this->path . '/' . $this->name;\n\t\tif (is_dir($tooFar)) {\n\t\t\texec(\"mv {$tooFar}/* {$this->path}\");\n\t\t\texec(\"rm {$tooFar}/*\");\n\t\t\texec(\"rm {$tooFar}\");\n\t\t}\n\t}", "title": "" }, { "docid": "1e9a717d9e4dc69f905d24ee2db46325", "score": "0.50702226", "text": "public function run()\n {\n $this->down();\n $this->up();\n }", "title": "" }, { "docid": "e538be96ef426d9bfe47625ae658e4dd", "score": "0.50551283", "text": "function down();", "title": "" }, { "docid": "9b5ede51abc3a6c5308708ee62a69f0e", "score": "0.50549316", "text": "public function movePositionDown()\n {\n $this->movePositionUpOrDown(false);\n }", "title": "" }, { "docid": "4de0d51df270fbd1aefcdeaaadf45c5c", "score": "0.5045408", "text": "public function giveUp() {\n $this->hasGivenUp = true;\n }", "title": "" }, { "docid": "f59fc159cac51761aade83f9459b3d7c", "score": "0.50449866", "text": "public function moveUp($id)\n {\n $output = $this->querySabnzbd('mode=queue&output=json');\n $response = json_decode($output, true);\n\n $status = $response['queue'];\n $slots = $status['slots'];\n\n $totaldownloads = count($slots);\n $position = -1;\n for ($i = 0; $i < $totaldownloads; $i++) {\n if ($slots[$i]['nzo_id'] == $id) {\n $index = $slots[$i]['index'];\n if ($index >= 0) { // we can't go beyond the top of the queue\n $output = $this->querySabnzbd('mode=switch&value='.$id.'&value2='.($index - 1).'&output=json');\n\n $response = json_decode($output, true);\n $position = $response['result']['position'];\n }\n break; // we're done, exit loop\n }\n }\n\n return $position != -1;\n }", "title": "" }, { "docid": "61c0f755d9be5cf8e752621717661af0", "score": "0.5041566", "text": "public function actionService() {\n\t\t$this->onlyForAdmins();\n\t\t$mode = 'service';\n\t\t$this->iqrfAppManager->changeOperationMode($mode);\n\t\t$this->flashMessage('gateway.mode.modes.' . $mode . '.message', 'info');\n\t\t$this->redirect('ChangeMode:default');\n\t\t$this->setView('default');\n\t}", "title": "" }, { "docid": "6159097f53414d268595cbf6bd8070d4", "score": "0.5019186", "text": "public function move()\n {\n }", "title": "" }, { "docid": "f4543c3b3615a62c99e766dc89b211e4", "score": "0.4999109", "text": "public function moveUp(Request $req, $id) {\n\n $task = Task::find($id);\n \n if (!$task) {\n return redirect()->back()->withErrors('This item does not exist!'); \n }\n\n if ($task->grouping->user != Auth::user()) {\n return redirect()->back()->withErrors('You don\\'t own this task!');\n }\n\n // Get who is right above us\n if ($task->isCompleted()) {\n $toSwitch = $task->grouping->completeTasks();\n } else {\n $toSwitch = $task->grouping->incompleteTasks();\n }\n $toSwitch = $toSwitch->where('index', '<', $task->index)->last();\n\n // If we have not found someone to switch positions,\n // we are already the first one\n if (!$toSwitch) {\n return redirect()->back()->withErrors('Invalid operation!');\n }\n\n // Switch places\n $tmp = $task->index;\n $task->index = $toSwitch->index;\n $toSwitch->index = $tmp;\n\n $toSwitch->save();\n $task->save();\n\n return redirect()->back();\n }", "title": "" }, { "docid": "959fde1fb5c85a1861fd3fd7d31be7ec", "score": "0.49898735", "text": "public function stopService() {\n\t\t$this->execTasks(\"delete\");\n\t}", "title": "" }, { "docid": "959fde1fb5c85a1861fd3fd7d31be7ec", "score": "0.49898735", "text": "public function stopService() {\n\t\t$this->execTasks(\"delete\");\n\t}", "title": "" }, { "docid": "959fde1fb5c85a1861fd3fd7d31be7ec", "score": "0.49898735", "text": "public function stopService() {\n\t\t$this->execTasks(\"delete\");\n\t}", "title": "" }, { "docid": "a102c349995045f1369f3bba7de27b2e", "score": "0.49864414", "text": "public function preUp($manager)\n\t{\n\t}", "title": "" }, { "docid": "a102c349995045f1369f3bba7de27b2e", "score": "0.49864414", "text": "public function preUp($manager)\n\t{\n\t}", "title": "" }, { "docid": "ab28e215b46b11ece0f503a49c15f107", "score": "0.4973378", "text": "protected function moveUp() {\n $query = $this->getQuery();\n $this->addReferenceCriteria($query);\n $query->andWhere(['>=', $this->orderAttribute, $this->getColValue()]);\n $class = get_class($this->getOwner());\n $class::updateAllCounters([$this->orderAttribute => 1], $query->where);\n }", "title": "" }, { "docid": "ae602f1fb946f17172b8b62086f6e54d", "score": "0.49723047", "text": "function MENU_moveElement( $menu_id, $mid, $direction ) {\n global $_CONF, $_TABLES, $_MENU_CONF, $Menus;\n\n switch ( $direction ) {\n case 'up' :\n $neworder = $Menus[$menu_id]['elements'][$mid]->order - 11;\n DB_query(\"UPDATE {$_TABLES['menu_elements']} SET element_order=\" . $neworder . \" WHERE menu_id=\".$menu_id.\" AND id=\" . $mid);\n break;\n case 'down' :\n $neworder = $Menus[$menu_id]['elements'][$mid]->order + 11;\n DB_query(\"UPDATE {$_TABLES['menu_elements']} SET element_order=\" . $neworder . \" WHERE menu_id=\".$menu_id.\" AND id=\" . $mid);\n break;\n }\n $pid = $Menus[$menu_id]['elements'][$mid]->pid;\n\n $Menus[$menu_id]['elements'][$pid]->reorderMenu();\n MENU_CACHE_remove_instance('menu');\n\n return;\n}", "title": "" }, { "docid": "366cf61a12a2d07cfc7f4de238a7676c", "score": "0.49690452", "text": "public function preUp()\n {\n }", "title": "" }, { "docid": "366cf61a12a2d07cfc7f4de238a7676c", "score": "0.49690452", "text": "public function preUp()\n {\n }", "title": "" }, { "docid": "251a23a5fbc95351e89de7113b56d7eb", "score": "0.4959971", "text": "public function restored(Service $services)\n {\n //\n }", "title": "" }, { "docid": "f254592038456d8ec771f6490851e990", "score": "0.49541292", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "f254592038456d8ec771f6490851e990", "score": "0.49541292", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "f254592038456d8ec771f6490851e990", "score": "0.49541292", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "f254592038456d8ec771f6490851e990", "score": "0.49541292", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "c4a549bf5c031f4583f6362e139bfcde", "score": "0.4948052", "text": "public function startService() {\n\t\t$db = \\OMV\\Config\\Database::getInstance();\n\t\t$objects = $db->get(\"conf.service.staticroutes.route\");\n\t\tforeach ($objects as $objectk => $objectv) {\n\t\t\t$cmdArgs = [];\n\t\t\t$cmdArgs[] = \"route\";\n\t\t\t$cmdArgs[] = sprintf(\"replace %s\", escapeshellarg(\n\t\t\t\t$objectv->get(\"network\")));\n\t\t\t$cmdArgs[] = sprintf(\"via %s\", escapeshellarg(\n\t\t\t\t$objectv->get(\"gateway\")));\n\t\t\t$cmd = new \\OMV\\System\\Process(\"ip\", $cmdArgs);\n\t\t\t$cmd->setRedirect2to1();\n\t\t\t$cmd->execute();\n\t\t}\n\t}", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "b7c190bf80ce0f240807ce740f1e66a3", "score": "0.4947242", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "5f3652cd0b4ef0a3ee1125609dd7aba8", "score": "0.49439076", "text": "public function preDown($manager)\n {\n }", "title": "" }, { "docid": "e27e68630d36d063e8a5611db8fa90ff", "score": "0.4939742", "text": "function down() {\n\n\t}", "title": "" }, { "docid": "6f9bb633d5ea530c6ce772a4c2da577d", "score": "0.49391866", "text": "function move_up()\n\t{\n\t\t$qid = (int)$this->uri->segment(3);\n\t\t$nwc_id = (int)$this->uri->segment(4);\n\t\tif(is_numeric($nwc_id)){\n\t\t\t$this->load->model($this->mod.'_model', 'pmod');\n\t\t\tif($this->pmod->move_up($nwc_id)) $this->pre_message = 'Đã chuyển lên!';\n\t\t}\n\t\t$this->add($qid);\n\t}", "title": "" }, { "docid": "525a23bb0fcd059855ad2d7d1548cc80", "score": "0.49303073", "text": "function orderup( ) {\r\n\tCLMControllerMTurniere::order( -1 );\r\n}", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "ebd829707411495f8eb6020bdecc02f6", "score": "0.49241176", "text": "public function preUp($manager)\n {\n }", "title": "" }, { "docid": "a4245a3ccb68ca818254748e623c468d", "score": "0.4914496", "text": "public function setDown()\n {\n }", "title": "" }, { "docid": "a6cadadda52230d123c84941ecd91f5d", "score": "0.49132574", "text": "abstract public function move();", "title": "" }, { "docid": "5d41f24ed8cb4567f00c20d8dee1aa6d", "score": "0.49098656", "text": "public function move_down($id = 0) {\n $this->_changeOrdering($id, -1);\n }", "title": "" }, { "docid": "4f9a22666a68b04887ddae84926dea42", "score": "0.49068928", "text": "public function preDown($manager)\n\t{\n\t}", "title": "" }, { "docid": "4f9a22666a68b04887ddae84926dea42", "score": "0.49068928", "text": "public function preDown($manager)\n\t{\n\t}", "title": "" }, { "docid": "4f9a22666a68b04887ddae84926dea42", "score": "0.49068928", "text": "public function preDown($manager)\n\t{\n\t}", "title": "" }, { "docid": "2be9ba22327440a3932268e76e8e6d9c", "score": "0.4900918", "text": "public function moveFinger()\r\n {\r\n }", "title": "" }, { "docid": "15c6c6ef16dfa5464f220d3b4b208c06", "score": "0.48994014", "text": "public function down();", "title": "" }, { "docid": "15c6c6ef16dfa5464f220d3b4b208c06", "score": "0.48994014", "text": "public function down();", "title": "" }, { "docid": "aa79afe52cd86247f5fd13832624544b", "score": "0.48968008", "text": "public function move($amount);", "title": "" }, { "docid": "e86a4b681ed44600360df3aed389d753", "score": "0.48745623", "text": "function move_down()\n\t{\n\t\t$qid = (int)$this->uri->segment(3);\n\t\t$id = (int)$this->uri->segment(4);\n\t\tif(is_numeric($id)){\n\t\t\t$this->load->model($this->mod.'_model', 'pmod');\n\t\t\tif($this->pmod->move_down($id)) $this->pre_message = 'Đã chuyển xuống!';\n\t\t}\n\t\t$this->add($qid);\n\t}", "title": "" }, { "docid": "21ba4e58f8816d8dcdf5c2e9f951975e", "score": "0.48717067", "text": "function down() {\n\t\n\t}", "title": "" }, { "docid": "352e7eb162b41ff13c6b3f3e07ffb798", "score": "0.48702508", "text": "protected function moveDown() {\n $query = $this->getQuery();\n $this->addReferenceCriteria($query);\n $query->andWhere(['>', $this->orderAttribute, $this->getOldOrder()]);\n $class = get_class($this->getOwner());\n $class::updateAllCounters([$this->orderAttribute => -1], $query->where);\n }", "title": "" }, { "docid": "45e3a820eff5d2ef627f94701568299f", "score": "0.48668385", "text": "function after($direction='up'){\n \n }", "title": "" }, { "docid": "694ab2ac69bbd72bfdbfe0e4ea73e936", "score": "0.48664618", "text": "function moveDown()\n {\n $db =& eZDB::globalDatabase();\n $db->begin();\n \n $db->query_single( $qry, \"SELECT ID, Placement FROM eZUser_Additional\n WHERE Placement>'$this->Placement' ORDER BY Placement ASC\", array( \"Limit\" => 1, \"Offset\" => 0 ) );\n $listorder = $qry[$db->fieldName( \"Placement\" )];\n $listid = $qry[$db->fieldName( \"ID\" )];\n $res[] = $db->query( \"UPDATE eZUser_Additional SET Placement='$listorder' WHERE ID='$this->ID'\" );\n $res[] = $db->query( \"UPDATE eZUser_Additional SET Placement='$this->Placement' WHERE ID='$listid'\" );\n\n eZDB::finish( $res, $db );\n }", "title": "" }, { "docid": "5c67267dca377e0a93bc277a75b60833", "score": "0.48663294", "text": "protected function afterDown()\n {\n }", "title": "" } ]
007791f2b98e8779e07448a95a046bb5
/ GetFriendlyName() This can return any string, preferably a localized name of the module. This is the name that"s shown in the Admin Menus and section pages (if the module has an admin component). See the note on localization at the top of this file.
[ { "docid": "644c0a5d28ab1c3c33ea9e8a18cda46e", "score": "0.7436825", "text": "function GetFriendlyName()\r\n\t{\r\n\t\treturn $this->Lang(\"friendlyname\");\r\n\t}", "title": "" } ]
[ { "docid": "f13a9fdf1201a3e3a180743bf8b7cc47", "score": "0.7401829", "text": "protected function getModuleName()\n {\n return strtolower(str_replace('Admin', '', get_class($this)));\n }", "title": "" }, { "docid": "dc5decf787dc36cfae59cc3bc5ed2b75", "score": "0.72146183", "text": "public function get_module_title();", "title": "" }, { "docid": "f97672a5d657606b3b258a189a08eeae", "score": "0.7167886", "text": "public final function GetFriendlyName() {\n\t\treturn $this->Lang('friendlyname');\n\t}", "title": "" }, { "docid": "f9f54fc7468f4005df62a4c646df3165", "score": "0.71009624", "text": "protected function get_module_name() {\n if (isset(self::$modulename)) {\n return self::$modulename;\n }\n self::$modulename = get_string('modulename', 'ableplayer');\n return self::$modulename;\n }", "title": "" }, { "docid": "121e3a5d05fc1e0920a74644df79ab60", "score": "0.7092216", "text": "public function getModuleName()\n\t{\n\t\t$name = $this->_getModuleName();\n\t\tlist($company, $module) = explode('_', $name);\n\t\treturn strtolower(implode('_', array($module)));\n\t}", "title": "" }, { "docid": "8073d393d75cf2c23e18560694b0fc06", "score": "0.700862", "text": "public function getFriendlyName();", "title": "" }, { "docid": "2358acc942d96adba66e6ef0d5190205", "score": "0.7004608", "text": "function get_module_name( $module ) {\n\t\t$module_names = array(\n\t\t\t'none' => esc_html__( 'no specific module needed', 'textdomain' ),\n\t\t\t'custom-content-types' => esc_html__( 'Custom Content Types module', 'textdomain' ),\n\t\t);\n\t\treturn $module_names[ $module ];\n\t}", "title": "" }, { "docid": "22a5ee02f29ef2ca14547005f006e752", "score": "0.69428897", "text": "public function getName() { return $this->moduleName; }", "title": "" }, { "docid": "dbd6f4cc4c4dc16f7b6ff937d658683c", "score": "0.68895894", "text": "function getDisplayName() {\n\t\treturn __('plugins.theme.custom.name');\n\t}", "title": "" }, { "docid": "8927f50c7c2253ab8c0e63bdc317beaf", "score": "0.6856797", "text": "function getDisplayName() {\n\t\treturn Locale::translate('plugins.generic.referral.name');\n\t}", "title": "" }, { "docid": "ead3ef5abf560a3622f877ec26cd3d81", "score": "0.6811753", "text": "public function getName()\n {\n return \\Lang::trans($this->type . '.' . $this->slug . '::addon.name');\n }", "title": "" }, { "docid": "c95945c1fff755ed64f1c96f31833b1c", "score": "0.6809401", "text": "public function getModuleName()\n {\n return (string)self::MODULE_NAME;\n }", "title": "" }, { "docid": "05d653ea67e79b1393f73e9c167b6ee1", "score": "0.6793256", "text": "protected function get_module_name_plural() {\n if (isset(self::$modulenameplural)) {\n return self::$modulenameplural;\n }\n self::$modulenameplural = get_string('modulenameplural', 'ableplayer');\n return self::$modulenameplural;\n }", "title": "" }, { "docid": "21747118d1b24a23f8b1d2022b7c8960", "score": "0.67610455", "text": "function getDisplayName() {\r\n\t\treturn __('plugins.themes.mjlis.name');\r\n\t}", "title": "" }, { "docid": "dff59389769970e1f9219a3832927e19", "score": "0.67555803", "text": "public function get_title( )\n {\n return 'Admin page';\n }", "title": "" }, { "docid": "dff59389769970e1f9219a3832927e19", "score": "0.67555803", "text": "public function get_title( )\n {\n return 'Admin page';\n }", "title": "" }, { "docid": "97ced33407a933d9c8cb275833c92a05", "score": "0.6748488", "text": "public function getModuleName(){\r\n\t\treturn 'mod_archiver : Pixmicat! Archiver 靜態庫存頁面(精華區)生成';\r\n\t}", "title": "" }, { "docid": "1678bdf3c374f6760be6fc9c491b64c6", "score": "0.6743051", "text": "public function getModuleName()\n\t{\n\t\treturn $this->_module;\n\t}", "title": "" }, { "docid": "5c1b48ac785cb745e433cc0de8060fee", "score": "0.6742334", "text": "public function getModuleName()\n {\n return self::MODULE_NAME;\n }", "title": "" }, { "docid": "b10ecbf11fd96c4c59f52d2689b4286b", "score": "0.67422885", "text": "public function get_name() {\n // Shown in admin screens.\n return get_string('recompletiontask', 'local_recompletion');\n }", "title": "" }, { "docid": "8df8b7b2561d1324c205b1003024930d", "score": "0.6741827", "text": "public function getModuleName()\n {\n return $this->_module;\n }", "title": "" }, { "docid": "4622060c9627ceed5e5e69036dc014ce", "score": "0.67324096", "text": "function getDisplayName() {\n\t\treturn __('plugins.generic.htmlArticleGalley.displayName');\n\t}", "title": "" }, { "docid": "54f418ec90008312caa186540c0b533e", "score": "0.66917074", "text": "public function getModuleName()\n {\n return $this->module_identifier;\n }", "title": "" }, { "docid": "1569a63f9c2b81f63ba20d8b8ce074f4", "score": "0.66861004", "text": "public function getModuleName()\n {\n return $this->moduleName;\n }", "title": "" }, { "docid": "b2cf658f5e84bbbef3682dc21316f4bd", "score": "0.66622734", "text": "function getDisplayName() {\n\t\treturn __('plugins.themes.cdfu.name');\n\t}", "title": "" }, { "docid": "b38fcf7d90963b57982c760f2ed94084", "score": "0.66434693", "text": "public function getModuleName() {\n return $this->moduleName;\n }", "title": "" }, { "docid": "adb74c77902371f349c266031a8bca0b", "score": "0.6639696", "text": "public function getName()\n\t{\n\t\treturn Craft::t('Sprout Forms Entries');\n\t}", "title": "" }, { "docid": "1b567b02a6d49a1c6b348626a11f2c9c", "score": "0.6626439", "text": "public function showDisplayName()\n {\n $display_name = \"\";\n if (method_exists($this, 'getName'))\n {\n $display_name = $this->getName();\n }\n elseif(method_exists($this, 'getLabel'))\n {\n $display_name = $this->getLable();\n }\n\n return $display_name;\n }", "title": "" }, { "docid": "9cac10b3e10c316709763ec7d7ae7d99", "score": "0.66223145", "text": "public function getDisplayName(){\r\n\t\treturn lang('TasksTabMod - FRosso per reMedia');\r\n\t}", "title": "" }, { "docid": "08a2f51d1972c3a63bf8747282dabe97", "score": "0.6617404", "text": "public function getModuleName()\n {\n return isset($this->ModuleName) ? $this->ModuleName : null;\n }", "title": "" }, { "docid": "2378a9911df04e860e0b71d9ef383804", "score": "0.6594188", "text": "public static function admin() \n\t{ \n\t\treturn (string)self::adminLetter().self::pname(); \n\t}", "title": "" }, { "docid": "bad4d80d862414279e750f2219ac7eca", "score": "0.65889025", "text": "function getDisplayName() {\n\t\treturn __('plugins.importexport.sirenexpo.displayName');\n\t}", "title": "" }, { "docid": "78eba86c9bc28b943ea2bb3560fd3849", "score": "0.6585151", "text": "public final function GetAdminDescription() {\n\t\treturn $this->Lang('moddescription');\n\t}", "title": "" }, { "docid": "7a375ee4ff9c1ee99d606a0e1b1c9e0a", "score": "0.65617275", "text": "public function course_modules_title( ) {\n\n if( sensei_module_has_lessons() ){\n\n echo '<header><h2>' . __('Modules', 'woothemes-sensei') . '</h2></header>';\n\n }\n\n }", "title": "" }, { "docid": "bc19d26e21755df27c16f863ea756eee", "score": "0.65541655", "text": "public function getAdminTemplateName() {\n return VOTE_MODULE_ADMIN_TEMPLATE_NAME;\n }", "title": "" }, { "docid": "c60ca24bc9a9404516f5db9faa964b34", "score": "0.6553765", "text": "public function getModuleName();", "title": "" }, { "docid": "4fc41d0cf4d71115b6f8b5b7113e37e9", "score": "0.6553268", "text": "public function getName() {\r\n \t//This is a language tag, defined in the file lang-<your language>.php\r\n return _MODULE_PSILO_MODULEPSILO;\r\n }", "title": "" }, { "docid": "cabb02632f6bfa239d30a45259f38a14", "score": "0.6544815", "text": "function getDisplayName() {\n\t\treturn 'Tema Univalle';\n\t}", "title": "" }, { "docid": "9ac8418793b7444c82d2032fa834f0bf", "score": "0.6528661", "text": "protected function name() {\n return __( 'No name found.', 'clanpress' );\n }", "title": "" }, { "docid": "e206fe5e7c1721e397d3d182e7f48b98", "score": "0.6515241", "text": "function getDisplayName() {\n\t\treturn __('plugins.generic.mysqlIndex.blockDisplayName');\n\t}", "title": "" }, { "docid": "f596bb7781c6d24e3487357ced07dd3d", "score": "0.6497352", "text": "public function get_name() {\n return get_string('pluginname', constants::M_COMPONENT);\n }", "title": "" }, { "docid": "7d828137f5dac9d311cff9722d0e2b13", "score": "0.64944977", "text": "public function getDisplayName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "8584d10e16ccab81732c5ac9567be4f7", "score": "0.6493191", "text": "public function getName() {\n\t\treturn $this->helpLink;\n\t}", "title": "" }, { "docid": "b140fe80b438f089049682373e859754", "score": "0.649067", "text": "function getDisplayName() {\n return __('plugins.themes.ojns.name');\n }", "title": "" }, { "docid": "29baea4f3d002059d2d4972ecb575204", "score": "0.6489286", "text": "private function getModuleName() {\n switch($this->type) {\n case self::LLIST:\n return 'llist';\n case self::LMAP:\n return 'lmap';\n case self::LSET:\n return 'lset';\n case self::LSTACK:\n return 'lstack';\n default:\n return '';\n }\n }", "title": "" }, { "docid": "bd223bb39d199629679b9a7c7357f5fb", "score": "0.64796966", "text": "public static function getModuleName()\n {\n return self::$_moduleName;\n }", "title": "" }, { "docid": "ee90f46c07105c5537252a1ef2d69d5b", "score": "0.6476761", "text": "public function get_name() {\n\t\treturn esc_html__( 'Content', 'dashwp' );\n\t}", "title": "" }, { "docid": "00f558197136d0f33de046e5d473d70d", "score": "0.6470483", "text": "public static function getFriendlyName(){\n $c = get_called_class();\n return $c::friendlyName;\n }", "title": "" }, { "docid": "bafc1c5af1aa1536e92722a8f7de8ef1", "score": "0.64676464", "text": "public function GetName() {\n\t\treturn __( 'Settings', 'wp-security-audit-log' );\n\t}", "title": "" }, { "docid": "1139ec9a714ad2acf2fe1cc35595db14", "score": "0.6465301", "text": "public function getModuleName(): string;", "title": "" }, { "docid": "9fbbe4cce8aafb9f7d8598d36a459cc0", "score": "0.6460813", "text": "public function getModuleName() {}", "title": "" }, { "docid": "9fbbe4cce8aafb9f7d8598d36a459cc0", "score": "0.6460813", "text": "public function getModuleName() {}", "title": "" }, { "docid": "ea4e349311554445b8ac1d4fabdc0ddc", "score": "0.6447144", "text": "function GetAdminTitle()\n\t{\tif ($this->id)\n\t\t{\tif (!$this->admintitle = $this->details[\"headline\"])\n\t\t\t{\tif ($details = $this->GetDefaultDetails())\n\t\t\t\t{\t$this->admintitle = $details[\"headline\"] . \" [{$this->language}]\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "40f7cec0992cdfaf23709eeaba69be50", "score": "0.6434809", "text": "public function getDisplayName();", "title": "" }, { "docid": "40f7cec0992cdfaf23709eeaba69be50", "score": "0.6434809", "text": "public function getDisplayName();", "title": "" }, { "docid": "40f7cec0992cdfaf23709eeaba69be50", "score": "0.6434809", "text": "public function getDisplayName();", "title": "" }, { "docid": "40f7cec0992cdfaf23709eeaba69be50", "score": "0.6434809", "text": "public function getDisplayName();", "title": "" }, { "docid": "40f7cec0992cdfaf23709eeaba69be50", "score": "0.6434809", "text": "public function getDisplayName();", "title": "" }, { "docid": "c6dd116a2ff6aab95ac44c8f9f21c4a8", "score": "0.6425426", "text": "public function get_name() {\n return get_string('pluginname', 'local_cohortmembers');\n }", "title": "" }, { "docid": "8c883ad6a6157e5ea762ec6831603214", "score": "0.6420413", "text": "public static function mainTitle()\n {\n return Config::get('laradmin::config.name', 'Laradmin');\n }", "title": "" }, { "docid": "b195070d8e314c54c0a9bcd3063b270c", "score": "0.6407677", "text": "function getDisplayName()\n {\n return lang('Billys');\n }", "title": "" }, { "docid": "865cb3f2c6140814ccc5fc54ef3f5448", "score": "0.64007384", "text": "public function renderThemeName() {\n if($this->wire('adminTheme')->modestaThemeName == 1) {\n $info = AdminThemeModesta::getModuleInfo();\n\t\t return ' / ' . $info['title'];\n }\n }", "title": "" }, { "docid": "b18982314dce2b0f236fe36c2e17a0a3", "score": "0.63951653", "text": "public function public_label() {\n\t\tif ( $this->front_end_label ) {\n\t\t\treturn $this->front_end_label;\n\t\t} else {\n\t\t\treturn $this->post_type_label('plural');\n\t\t}\n\t}", "title": "" }, { "docid": "5cd1312038010fd3da90b6f92dd05721", "score": "0.63937694", "text": "abstract protected function _getModuleName();", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "919d0d1e08fd0fa31f730b2b4353f2a1", "score": "0.6391333", "text": "public function getDisplayName()\n {\n return $this->display_name;\n }", "title": "" }, { "docid": "4d0796450b6fd1ed235f92a725541fe9", "score": "0.6366716", "text": "public function getTabLabel()\r\n {\r\n return __('General');\r\n }", "title": "" }, { "docid": "94c824409e7c79adbc961848a3291c9b", "score": "0.6365176", "text": "function getModuleName()\n {\n return 'listing';\n }", "title": "" }, { "docid": "3dacb17d9f6295f052702f271c24aaeb", "score": "0.6339776", "text": "public function get_displayname() {\n return get_string('block_named', 'tool_usertours', $this->get_block_name());\n }", "title": "" }, { "docid": "f5a308f0426ea49c4726bc8fee8d8a55", "score": "0.6327326", "text": "function getDisplayName() {\n return __('plugins.themes.jair-theme.name');\n }", "title": "" }, { "docid": "a4d48c9553ee658840701d2140febe39", "score": "0.6323904", "text": "public function get_module_title($name)\n\t{\n\t\treturn $this->_moduletitles[$name];\n\t}", "title": "" }, { "docid": "bd10187363fa5ea3502bcfb9fc0c53a0", "score": "0.63220024", "text": "public function getModuleName(): string\n {\n if (null === $this->moduleName) {\n $parts = explode('\\\\', get_class($this));\n $this->moduleName = array_shift($parts);\n }\n\n return $this->moduleName;\n }", "title": "" }, { "docid": "7a8969fb544d65eebacca39cacd92cbd", "score": "0.62924045", "text": "public function renderSitename() {\n return $this->wire('adminTheme')->modestaSitename;\n\t}", "title": "" }, { "docid": "d488d09371f23e81a52f86656586d152", "score": "0.6288711", "text": "public function getName()\n {\n return Craft::t('Location');\n }", "title": "" }, { "docid": "47fb8aedfd1569a1e0a350d5c126370c", "score": "0.6282859", "text": "public function getModuleName()\n {\n if(!isset($this->moduleName)) {\n $calledClass = get_called_class();\n\n if(!isset(modulePartsStorage::$moduleNames[$calledClass])) {\n $pattern = '/^\\\\\\\\?mpcmf\\\\\\\\modules\\\\\\\\([^\\\\\\\\]+).*$/u';\n modulePartsStorage::$moduleNames[$calledClass] = preg_replace($pattern, '$1', $calledClass);\n }\n\n $this->moduleName = modulePartsStorage::$moduleNames[$calledClass];\n }\n\n return $this->moduleName;\n }", "title": "" }, { "docid": "db525a58193254ece6613620f07827c7", "score": "0.6281246", "text": "function get_name() {\n return $this->fullname;\n }", "title": "" }, { "docid": "b89b5b71e140a90376e25ee09cf8f322", "score": "0.6272048", "text": "function getDisplayName() {\n\t\treturn Locale::translate('plugins.block.selectRole.displayName');\n\t}", "title": "" }, { "docid": "6135f5d51266ffaa9863def44907b4e1", "score": "0.6250828", "text": "function getName()\n {\n return $this->getLabel();\n }", "title": "" }, { "docid": "b2874aeaa802a099cf8db5e0e2485b3d", "score": "0.6237387", "text": "public function getDisplayName(): string\n {\n return self::DISPLAY_NAME;\n }", "title": "" }, { "docid": "3a4e7da3a638c251ea6695e0976bcc8c", "score": "0.6232266", "text": "public function getTabLabel()\n {\n return __('General Information');\n }", "title": "" }, { "docid": "6eaf3af8ebf2895d498945931d64f180", "score": "0.62248564", "text": "public function adminLabel();", "title": "" }, { "docid": "be9faf087e23790c9df640da095d96da", "score": "0.622082", "text": "public function get_name() {\n return get_string('taskgradecron', 'admin');\n }", "title": "" }, { "docid": "8b8ef1e83b22ad2877098dd27615d287", "score": "0.62207186", "text": "public function getName()\n\t{\n\t\treturn $this->getSlug();\n\t}", "title": "" }, { "docid": "5afd4aab73b4bcf087085dade759b633", "score": "0.6213703", "text": "public function getDisplayName(): string;", "title": "" }, { "docid": "07d497ca23265bceb99dd9a0959bec61", "score": "0.6206254", "text": "public static function displayName(): string\n {\n return Craft::t('elasticraft', 'Elasticraft');\n }", "title": "" }, { "docid": "55df46010d215a5363a1d6caf73886b5", "score": "0.61938804", "text": "public function getDisplayName() {\n if ($this->_ls_description == null) {\n return \"\";\n }\n return $this->_ls_description->get();\n }", "title": "" }, { "docid": "ea18dc2164f120a64301b16064f1c3ea", "score": "0.61910665", "text": "public function getName()\n {\n return Craft::t('Applications');\n }", "title": "" }, { "docid": "df84879da7617df77263cfbf147f5e4b", "score": "0.6182165", "text": "function the_site_name()\r\n\t\t{\r\n\t\t\tglobal $DBH;\r\n\t\t\t# Set new Page object\r\n\t\t\t$c = new Admin( $DBH );\r\n\t\t\t\r\n\t\t\t# Call setPage() method\r\n\t\t\treturn $c->theSiteName();\r\n\t\t\t \r\n\t\t}", "title": "" }, { "docid": "4c763880fee4ca4ae35c6b1ff8d141cb", "score": "0.6181827", "text": "public function getName()\n {\n $account = $this->_getAccount();\n\n return $account->getDisplayName();\n }", "title": "" }, { "docid": "bc21d6a2de7dbd6d6395d540b70f6b64", "score": "0.61636853", "text": "public function getName()\n {\n return Craft::t('Freeform Event Tracking');\n }", "title": "" } ]
cd74707003d64695476f1b731ccc548e
Add content in form setting tab panel
[ { "docid": "4b357e10e4e36880c40e6ca25d9add63", "score": "0.749108", "text": "function add_from_tab_content () {\n require_once dirname(__FILE__).'/templates/form-tab-content.php';\n }", "title": "" } ]
[ { "docid": "986f75f516c150dba110b9fb8274f907", "score": "0.7276013", "text": "public function optionsdemo_settings_content() { ?>\n <div class=\"wrap\">\n <div id=\"icon-themes\" class=\"icon32\"><br/></div>\n <h1>Options Demo</h1>\n <form action=\"options.php\" method=\"POST\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\tsettings_fields( \"optionsdemo_general\" );\n\t\t\t\t\t\tdo_settings_sections( \"optionsdemo_general\" );\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsubmit_button( esc_html__( 'Save Setting', 'optionsdemo' ) )\n\t\t\t\t\t?>\n </form>\n </div>\n\t\t<?php }", "title": "" }, { "docid": "75c2b1578dd2f2010b949d867bcad1ad", "score": "0.725829", "text": "public function optionsdemo_settings_content() { ?>\n\t\t\t<div class=\"wrap\">\t\t\t\t\n\t\t\t\t<form method=\"POST\" action=\"options.php\">\n\t\t\t\t\t<?php\n\t\t\t\t\tsettings_fields( 'optionsdemo' );\n\t\t\t\t\tdo_settings_sections( 'optionsdemo' );\n\t\t\t\t\tsubmit_button();\n\t\t\t\t\t?>\n\t\t\t\t</form>\n\t\t\t</div> <?php\n\t\t}", "title": "" }, { "docid": "2ea2e9948639687d200d7a5d6c5b7336", "score": "0.7095064", "text": "public function panel_content()\n {\n\n // Check if there is a form created\n if (!$this->form) {\n echo '<div class=\"wpforms-alert wpforms-alert-info\">';\n _e('You need to <a href=\"#\" class=\"wpforms-panel-switch\" data-panel=\"setup\">setup your form</a> before you can manage the settings.', 'wpforms');\n echo '</div>';\n return;\n }\n\n\n\n\n // --------------------------------------------------------------------//\n // Notifications\n // --------------------------------------------------------------------//\n echo '<div class=\"wpforms-panel-content-section wpforms-panel-content-section-custom_content\">';\n echo '<div class=\"wpforms-panel-content-section-title\">';\n _e('Custom content', 'wpforms');\n echo '</div>';\n wpforms_panel_field(\n 'tinymce',\n 'settings',\n 'custom_content_editor',\n $this->form_data,\n __('', 'wpforms'),\n array(\n 'default' => __('', 'wpforms'),\n 'tinymce' => array(\n 'editor_height' => '400',\n 'media_buttons' => true\n ),\n )\n );\n echo '</div>';\n\n // --------------------------------------------------------------------//\n // General\n // --------------------------------------------------------------------//\n echo '<div class=\"wpforms-panel-content-section wpforms-panel-content-section-general\">';\n echo '<div class=\"wpforms-panel-content-section-title\">';\n _e('General', 'wpforms');\n echo '</div>';\n wpforms_panel_field(\n 'select',\n 'settings',\n 'enable_archive',\n $this->form_data,\n __('Enable archives', 'wpforms'),\n array(\n 'default' => '1',\n 'options' => array(\n '1' => __('On', 'wpforms'),\n '0' => __('Off', 'wpforms'),\n ),\n 'tooltip' => __('This options to allow all data of form can be stored in Archives ', 'wpforms'),\n )\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'form_title',\n $this->form_data,\n __('Form Name', 'wpforms'),\n array(\n 'default' => $this->form->post_title,\n )\n );\n wpforms_panel_field(\n 'textarea',\n 'settings',\n 'form_desc',\n $this->form_data,\n __('Form Description', 'wpforms')\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'form_class',\n $this->form_data,\n __('Form CSS Class', 'wpforms'),\n array(\n 'tooltip' => __('Enter CSS class names for the form wrapper. Multiple class names should be separated with spaces.', 'wpforms'),\n )\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'submit_text',\n $this->form_data,\n __('Submit Button Text', 'wpforms'),\n array(\n 'default' => __('Submit', 'wpforms'),\n )\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'submit_text_processing',\n $this->form_data,\n __('Submit Button Processing Text', 'wpforms'),\n array(\n 'tooltip' => __('Enter the submit button text you would like the button display while the form submit is processing.', 'wpforms'),\n )\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'submit_class',\n $this->form_data,\n __('Submit Button CSS Class', 'wpforms'),\n array(\n 'tooltip' => __('Enter CSS class names for the form submit button. Multiple names should be separated with spaces.', 'wpforms'),\n )\n );\n wpforms_panel_field(\n 'checkbox',\n 'settings',\n 'honeypot',\n $this->form_data,\n __('Enable anti-spam honeypot', 'wpforms')\n );\n $recaptcha_key = wpforms_setting('recaptcha-site-key');\n $recaptcha_secret = wpforms_setting('recaptcha-secret-key');\n $recaptcha_type = wpforms_setting('recaptcha-type');\n if (!empty($recaptcha_key) && !empty($recaptcha_secret)) {\n wpforms_panel_field(\n 'checkbox',\n 'settings',\n 'recaptcha',\n $this->form_data,\n 'invisible' === $recaptcha_type ? __('Enable Google invisible reCAPTCHA', 'wpforms') : __('Enable Google reCAPTCHA (v2)', 'wpforms')\n );\n }\n do_action('wpforms_form_settings_general', $this);\n echo '</div>';\n\n // --------------------------------------------------------------------//\n // Notifications\n // --------------------------------------------------------------------//\n echo '<div class=\"wpforms-panel-content-section wpforms-panel-content-section-notifications\">';\n do_action('wpforms_form_settings_notifications', $this);\n echo '</div>';\n\n // --------------------------------------------------------------------//\n // Confirmation\n // --------------------------------------------------------------------//\n echo '<div class=\"wpforms-panel-content-section wpforms-panel-content-section-confirmation\">';\n echo '<div class=\"wpforms-panel-content-section-title\">';\n _e('Confirmation', 'wpforms');\n echo '</div>';\n wpforms_panel_field(\n 'select',\n 'settings',\n 'confirmation_type',\n $this->form_data,\n __('Confirmation Type', 'wpforms'),\n array(\n 'default' => 'message',\n 'options' => array(\n 'message' => __('Message', 'wpforms'),\n 'page' => __('Show Page', 'wpforms'),\n 'redirect' => __('Go to URL (Redirect)', 'wpforms'),\n ),\n )\n );\n wpforms_panel_field(\n 'tinymce',\n 'settings',\n 'confirmation_message',\n $this->form_data,\n __('Confirmation Message', 'wpforms'),\n array(\n 'default' => __('Thanks for contacting us! We will be in touch with you shortly.', 'wpforms'),\n 'tinymce' => array(\n 'editor_height' => '200',\n ),\n )\n );\n wpforms_panel_field(\n 'checkbox',\n 'settings',\n 'confirmation_message_scroll',\n $this->form_data,\n __('Automatically scroll to the confirmation message', 'wpforms')\n );\n $p = array();\n $pages = get_pages();\n foreach ($pages as $page) {\n $depth = count($page->ancestors);\n $p[$page->ID] = str_repeat('-', $depth) . ' ' . $page->post_title;\n }\n wpforms_panel_field(\n 'select',\n 'settings',\n 'confirmation_page',\n $this->form_data,\n __('Confirmation Page', 'wpforms'),\n array(\n 'options' => $p,\n )\n );\n wpforms_panel_field(\n 'text',\n 'settings',\n 'confirmation_redirect',\n $this->form_data,\n __('Confirmation Redirect URL', 'wpforms')\n );\n do_action('wpforms_form_settings_confirmation', $this);\n echo '</div>';\n\n do_action('wpforms_form_settings_panel_content', $this);\n }", "title": "" }, { "docid": "029c7b9372aa28a82ffb126dd60c11bb", "score": "0.69884264", "text": "function cmc_framework_markets_landing_settings_tab_section(&$form, $i) {\n \n $fieldset_key = 'tab' . $i;\n $title_key = 'cmc_framework_markets_tab' . $i;\n $content_key = 'cmc_framework_markets_tab' . $i . '_content';\n $pricing_key = 'cmc_framework_markets_tab' . $i . '_pricing';\n $image_key = 'cmc_framework_markets_tab' . $i . '_image';\n $image_key_delete = 'cmc_framework_markets_tab' . $i . '_image_delete';\n \n $form[$fieldset_key] = array(\n '#type' => 'fieldset',\n '#title' => t('Tab') . $i,\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n \n $form[$fieldset_key][$title_key] = array(\n '#type' => 'textfield',\n '#title' => t('Title'),\n '#default_value' => variable_get($title_key, 'Tab title'),\n );\n \n\n $textarea_defaults = variable_get($content_key, 'Content');\n $form[$fieldset_key][$content_key] = array(\n '#type' => 'text_format',\n '#title' => t('Content'),\n \t'#default_value' => $textarea_defaults['value'],\n '#format' => $textarea_defaults['format'],\n '#description' => 'Please do not put in images in textarea',\n );\n \n// http://stackoverflow.com/questions/7690295/drupal-module-configuration-process-uploaded-file\n $form[$fieldset_key][$image_key] = array(\n '#type' => 'managed_file',\n '#title' => t('Content Image'),\n '#description' => t('Uploading a file will replace the content image. This should be a generic image so it can be used for multiple languages. E.g. Don\\'t put text into it'),\n '#upload_location' => 'public://cmc_framework/markets-landing'\n );\n \n $image_fid = variable_get($image_key, '');\n $image = file_load($image_fid);\n \n if (!empty($image->fid)) {\n $data = array(\n 'path' => file_create_url($image->uri),\n );\n $form[$fieldset_key][$image_key]['#description'] .= '<br />' . theme('image', $data);\n \n }\n \n $form[$fieldset_key][$image_key_delete] = array(\n '#type' => 'checkbox',\n '#title' => t('Delete Image'),\n );\n \n \n \n // pricing, only do this if module is on\n if (module_exists('cmc_pricing')) {\n \n $view = views_get_view('cmc_pricing');\n $content = $view->preview('pricing_panel_list');\n \n $options = array('' => 'None');\n foreach ($view->result as $res) {\n $options[$res->nid] = $res->node_title;\n }\n \n $form[$fieldset_key][$pricing_key] = array(\n '#type' => 'select',\n '#options' => $options,\n '#title' => t('Tab Pricing panel'),\n //'#description' => t('Time in seconds, should be < 30. Feed returns last 30 movements and we might have more than 1 movement per second'),\n '#default_value' => variable_get($pricing_key, ''),\n );\n }\n}", "title": "" }, { "docid": "e388206b9d0d7e6ce3f89bb11af97895", "score": "0.69344854", "text": "public function settings_page_init() {\n global $WCPc;\n \n $settings_tab_options = array(\"tab\" => \"{$this->tab}\", \"ref\" => &$this,\n \"sections\" => array(\n // Section one\n \"default_settings_section\" => array(\n \"title\" => __('Default Settings', $WCPc->text_domain), \n \"fields\" => array( /* Hidden */\n \"id\" => array('title' => '', \n 'type' => 'hidden', \n 'id' => 'id', \n 'name' => 'id', \n 'value' => 999\n ),\n /* Text */ \n \"id_number\" => array('title' => __('ID Number', $WCPc->text_domain), \n 'type' => 'text', \n 'id' => 'id_number', \n 'label_for' => 'id_number', \n 'name' => 'id_number', \n 'hints' => __('Enter your ID Number here.', $WCPc->text_domain), \n 'desc' => __('It will represent your identification.', $WCPc->text_domain)\n ), \n /* Textarea */\n \"about\" => array('title' => __('About', $WCPc->text_domain) , \n 'type' => 'textarea', \n 'id' => 'about', \n 'label_for' => 'about', \n 'name' => 'about', \n 'rows' => 5, \n 'placeholder' => __('About you', $WCPc->text_domain), \n 'desc' => __('It will represent your significant.', $WCPc->text_domain)\n ), \n /* Text */\n \"demo_test\" => array('title' => __('Demo Test', $WCPc->text_domain),\n 'type' => 'text',\n 'id' => 'demo_test',\n 'label_for' => 'demo_test',\n 'name' => 'demo_test',\n 'placeholder' => __('Demo Test', $WCPc->text_domain)\n ),\n /* Wp Eeditor */\n \"bio\" => array('title' => __('Bio', $WCPc->text_domain), \n 'type' => 'wpeditor', \n 'id' => 'bio', \n 'label_for' => 'bio', \n 'name' => 'bio'\n ), \n /* Checkbox */\n \"is_enable\" => array('title' => __('Enable', $WCPc->text_domain), \n 'type' => 'checkbox', \n 'id' => 'is_enable', \n 'label_for' => 'is_enable', \n 'name' => 'is_enable', \n 'value' => 'Enable'\n ), \n /* Radio */\n \"offday\" => array('title' => __('Off Day', $WCPc->text_domain), \n 'type' => 'radio', \n 'id' => 'offday', \n 'label_for' => 'offday', \n 'name' => 'offday', \n 'dfvalue' => 'wednesday', \n 'options' => array('sunday' => 'Sunday', \n 'monday' => 'Monday', \n 'tuesday' => 'Tuesday', \n 'wednesday' => 'Wednesday', \n 'thrusday' => 'Thrusday'\n ), \n 'hints' => __('Choose your preferred week offday.', $WCPc->text_domain), \n 'desc' => __('By default Saterday will be offday.', $WCPc->text_domain)\n ), \n /* Select */\n \"preference\" => array('title' => __('Preference', $WCPc->text_domain), \n 'type' => 'select', \n 'id' => 'preference', \n 'label_for' => 'preference', \n 'name' => 'preference', \n 'options' => array('one' => 'One Time', \n 'two' => 'Two Time', \n 'three' => 'Three Time'\n ), \n 'hints' => __('Choose your preferred occurence count.', $WCPc->text_domain)\n ), \n /* Upload */\n \"logo\" => array('title' => __('Logo', $WCPc->text_domain), \n 'type' => 'upload', \n 'id' => 'logo', \n 'label_for' => 'logo', \n 'name' => 'logo', \n 'prwidth' => 125, \n 'hints' => __('Your presentation.', $WCPc->text_domain), \n 'desc' => __('Represent your graphical signature.', $WCPc->text_domain)\n ), \n /* Colorpicker */\n \"dc_colorpicker\" => array('title' => __('Choose Color', $WCPc->text_domain), \n 'type' => 'colorpicker', \n 'id' => 'dc_colorpicker', \n 'label_for' => 'dc_colorpicker', \n 'name' => 'dc_colorpicker', \n 'default' => '000000', \n 'hints' => __('Choose your color here.', $WCPc->text_domain),\n 'desc' => __('This lets you choose your desired color.', $WCPc->text_domain)\n ), \n /* Datepicker */\n \"dc_datepicker\" => array('title' => __('Choose DOB', $WCPc->text_domain),\n 'type' => 'datepicker', \n 'id' => 'dc_datepicker', \n 'label_for' => 'dc_datepicker', \n 'name' => 'dc_datepicker', \n 'hints' => __('Choose your DOB here', $WCPc->text_domain), \n 'desc' => __('This lets you choose your date of birth.', $WCPc->text_domain), \n 'custom_attributes' => array('date_format' => 'dd-mm-yy')\n ), \n /* Multiinput */\n \"slider\" => array('title' => __('Slider', $WCPc->text_domain) , \n 'type' => 'multiinput', \n 'id' => 'slider', \n 'label_for' => 'slider', \n 'name' => 'slider', \n 'options' => array(\n \"title\" => array('label' => __('Title', $WCPc->text_domain) , \n 'type' => 'text', \n 'label_for' => 'title', \n 'name' => 'title', \n 'class' => 'regular-text'\n ),\n \"content\" => array('label' => __('Content', $WCPc->text_domain), \n 'type' => 'textarea', \n 'label_for' => 'content', \n 'name' => 'content', \n 'cols' => 40\n ),\n \"image\" => array('label' => __('Image', $WCPc->text_domain), \n 'type' => 'upload', \n 'label_for' => 'image', \n 'name' => 'image', \n 'prwidth' => 125\n ),\n \"url\" => array('label' => __('URL', $WCPc->text_domain) , \n 'type' => 'url', \n 'label_for' => 'url', \n 'name' => 'url', \n 'class' => 'regular-text'\n ),\n \"published\" => array('label' => __('Published ON', $WCPc->text_domain), \n 'type' => 'datepicker', \n 'id' => 'published', \n 'label_for' => 'published', \n 'name' => 'published', \n 'hints' => __('Published Date', $WCPc->text_domain), \n 'custom_attributes' => array('date_format' => 'dd th M, yy')\n )\n )\n )\n )\n ), \n \"custom_settings_section\" => array(\n \"title\" => \"Demo Custom Settings\", // Another section\n \"fields\" => array(\n \"location\" => array('title' => __('Location', $WCPc->text_domain), \n 'type' => 'text', \n 'id' => 'location', \n 'name' => 'location', \n 'hints' => __('Location', $WCPc->text_domain)\n ),\n \"role\" => array('title' => __('Role', $WCPc->text_domain), \n 'type' => 'text', \n 'id' => 'role', \n 'name' => 'role', \n 'hints' => __('Role', $WCPc->text_domain)\n )\n )\n )\n )\n );\n \n $WCPc->admin->settings->wcpc_settings_field_init(apply_filters(\"wcpc_settings_{$this->tab}_tab_options\", $settings_tab_options));\n }", "title": "" }, { "docid": "43ab077a4233a80151cf82190f972d37", "score": "0.6854855", "text": "function show_settings_tab(){\n woocommerce_admin_fields($this->get_settings());\n }", "title": "" }, { "docid": "ca35a7245847812c767aad18cff6ec78", "score": "0.67671597", "text": "public function add_settings_tabs() {\n\t\t$install_tabs = [ 'git_updater_addons' => esc_html__( 'API Add-Ons', 'git-updater' ) ];\n\t\tadd_filter(\n\t\t\t'gu_add_settings_tabs',\n\t\t\tfunction ( $tabs ) use ( $install_tabs ) {\n\t\t\t\treturn array_merge( $tabs, $install_tabs );\n\t\t\t}\n\t\t);\n\t\tadd_filter(\n\t\t\t'gu_add_admin_page',\n\t\t\tfunction ( $tab, $action ) {\n\t\t\t\t$this->add_admin_page( $tab, $action );\n\t\t\t},\n\t\t\t10,\n\t\t\t2\n\t\t);\n\t}", "title": "" }, { "docid": "5905d257dc14dcebd1f2191c94ad5915", "score": "0.66931564", "text": "protected function _registerSettingsPage()\n {\n // Add action to register field sections to tab\n $this->on('!wprss_add_settings_fields_sections',\n array($this, '_renderSettingsPage'), 10, 1);\n }", "title": "" }, { "docid": "058121eca2a94c93914e787824b95585", "score": "0.6659097", "text": "function bg_AddSettingsSectionHtml() { }", "title": "" }, { "docid": "829855ded3472fbbd8a11c6488d52ab6", "score": "0.66199905", "text": "public static function hookData() {\n return array_merge_recursive( array (\n 'settings' => \n array (\n 0 => \n array (\n 'selector' => '#elSettingsTabs > div.ipsColumns.ipsColumns_collapsePhone.ipsColumns_bothSpacing > div.ipsColumn.ipsColumn_wide > div.ipsSideMenu > ul.ipsSideMenu_list',\n 'type' => 'add_inside_end',\n 'content' => '{template=\"accountSettingsTab\" group=\"settings\" location=\"front\" app=\"teamspeak\" params=\"$tab\"}',\n ),\n ),\n), parent::hookData() );\n}", "title": "" }, { "docid": "d18242d10204278622bb860db546b891", "score": "0.6617744", "text": "public function settings_page() {\n do_action( 'rewardpoint_settings_start' );\n $current_tab = empty( $_GET['tab'] ) ? 'behavior' : sanitize_title( $_GET['tab'] );\n $current_section = empty( $_REQUEST['section'] ) ? '' : sanitize_title( $_REQUEST['section'] );\n $tabs = apply_filters( 'woocommerce_settings_tabs_array', array(\n 'behavior' => 'Behaviors',\n 'purchase' => 'Purchases',\n 'referral' => 'Referrals',\n 'invite' => 'Invite and Share',\n 'user-point' => 'Use Reward Points',\n ) );\n include 'views/html-admin-page.php';\n\t}", "title": "" }, { "docid": "9fe397de8f83e142ed43bdf35c581519", "score": "0.65847754", "text": "public function maz_hspm_settings_content() {\n ?>\n <div class=\"wrap\">\n <h2>Halve Spacers On Mobile Settings</h2>\n <form method=\"post\" action=\"options.php\">\n <br>\n <hr>\n <br>Breakpoint configures the screen width in pixels when the spacers change size.\n <br>Ratio defines the amount of change. For example, 0.5 will halve the size, 2 will double it.\n <br>\n\n <?php\n # Places all the fields defined above and the submit button in the markup\n settings_fields( 'maz_hspm_fields' );\n do_settings_sections( 'maz_hspm_fields' );\n submit_button();\n ?>\n </form>\n <div class=\"\">\n A Plugin by Moritz Zimmer, 2020\n </div>\n </div>\n <?php\n }", "title": "" }, { "docid": "457d0c7f00fbff00cc50fe6e941cfc9e", "score": "0.65732473", "text": "public function settings_page () {\n\n // Build page HTML\n $html = '<div class=\"wrap\" id=\"' . $this->_token . '_settings\">' . \"\\n\";\n $html .= '<h2>' . __( 'Plugin Settings' , 'listeo_core' ) . '</h2>' . \"\\n\";\n\n $tab = '';\n if ( isset( $_GET['tab'] ) && $_GET['tab'] ) {\n $tab .= $_GET['tab'];\n }\n\n // Show page tabs\n if ( is_array( $this->settings ) && 1 < count( $this->settings ) ) {\n\n $html .= '<h2 class=\"nav-tab-wrapper\">' . \"\\n\";\n\n $c = 0;\n foreach ( $this->settings as $section => $data ) {\n\n // Set tab class\n $class = 'nav-tab';\n if ( ! isset( $_GET['tab'] ) ) {\n if ( 0 == $c ) {\n $class .= ' nav-tab-active';\n }\n } else {\n if ( isset( $_GET['tab'] ) && $section == $_GET['tab'] ) {\n $class .= ' nav-tab-active';\n }\n }\n\n // Set tab link\n $tab_link = add_query_arg( array( 'tab' => $section ) );\n if ( isset( $_GET['settings-updated'] ) ) {\n $tab_link = remove_query_arg( 'settings-updated', $tab_link );\n }\n\n // Output tab\n $html .= '<a href=\"' . $tab_link . '\" class=\"' . esc_attr( $class ) . '\">' . esc_html( $data['title'] ) . '</a>' . \"\\n\";\n\n ++$c;\n }\n\n $html .= '</h2>' . \"\\n\";\n }\n\n $html .= '<form method=\"post\" action=\"options.php\" enctype=\"multipart/form-data\">' . \"\\n\";\n\n // Get settings fields\n ob_start();\n settings_fields( $this->_token . '_settings' );\n do_settings_sections( $this->_token . '_settings' );\n $html .= ob_get_clean();\n\n $html .= '<p class=\"submit\">' . \"\\n\";\n $html .= '<input type=\"hidden\" name=\"tab\" value=\"' . esc_attr( $tab ) . '\" />' . \"\\n\";\n $html .= '<input name=\"Submit\" type=\"submit\" class=\"button-primary\" value=\"' . esc_attr( __( 'Save Settings' , 'listeo_core' ) ) . '\" />' . \"\\n\";\n $html .= '</p>' . \"\\n\";\n $html .= '</form>' . \"\\n\";\n $html .= '</div>' . \"\\n\";\n\n echo $html;\n }", "title": "" }, { "docid": "a9cb6228d9ae4ef36324c559f032a548", "score": "0.6571271", "text": "public function bp_settingssubnav_tab_action() {\n\t\techo \\do_shortcode( '[wcfm endpoint=\"wcfm-settings\"]' );\n\t}", "title": "" }, { "docid": "d624f32110d8f4db9a938cae1433963c", "score": "0.65669185", "text": "public function settings_page()\n {\n\n // Build page HTML\n $html = '<div class=\"wrap\" id=\"' . $this->parent->_token . '_settings\">' . \"\\n\";\n $html .= '<h2>' . __('SUAPI Settings', 'wp-suapi') . '</h2>' . \"\\n\";\n\n $tab = '';\n if (isset($_GET['tab']) && $_GET['tab']) {\n $tab .= $_GET['tab'];\n }\n\n // Show page tabs\n if (is_array($this->settings) && 1 < count($this->settings)) {\n\n $html .= '<h2 class=\"nav-tab-wrapper\">' . \"\\n\";\n\n $c = 0;\n foreach ($this->settings as $section => $data) {\n\n // Set tab class\n $class = 'nav-tab';\n if (!isset($_GET['tab'])) {\n if (0 == $c) {\n $class .= ' nav-tab-active';\n }\n } else {\n if (isset($_GET['tab']) && $section == $_GET['tab']) {\n $class .= ' nav-tab-active';\n }\n }\n\n // Set tab link\n $tab_link = add_query_arg(array('tab' => $section));\n if (isset($_GET['settings-updated'])) {\n $tab_link = remove_query_arg('settings-updated', $tab_link);\n }\n\n // Output tab\n $html .= '<a href=\"' . $tab_link . '\" class=\"' . esc_attr($class) . '\">' . esc_html($data['title']) . '</a>' . \"\\n\";\n\n ++$c;\n }\n\n $html .= '</h2>' . \"\\n\";\n }\n\n $html .= '<form method=\"post\" action=\"options.php\" enctype=\"multipart/form-data\">' . \"\\n\";\n\n // Get settings fields\n ob_start();\n settings_fields($this->parent->_token . '_settings');\n do_settings_sections($this->parent->_token . '_settings');\n $html .= ob_get_clean();\n\n $html .= '<p class=\"submit\">' . \"\\n\";\n $html .= '<input type=\"hidden\" name=\"tab\" value=\"' . esc_attr($tab) . '\" />' . \"\\n\";\n $html .= '<input name=\"Submit\" type=\"submit\" class=\"button-primary\" value=\"' . esc_attr(__('Save Settings', 'wp-suapi')) . '\" />' . \"\\n\";\n $html .= '</p>' . \"\\n\";\n $html .= '</form>' . \"\\n\";\n $html .= '</div>' . \"\\n\";\n\n echo $html;\n }", "title": "" }, { "docid": "5bc8eb301b77956d1a17ab4974470e08", "score": "0.6560784", "text": "public function panel_content() {\n\n\t\t$core_templates = apply_filters( 'wpforms_form_templates_core', array() );\n\t\t$additional_templates = apply_filters( 'wpforms_form_templates', array() );\n\t\t$additional_count = count( $additional_templates );\n\t\t?>\n\t\t<div id=\"wpforms-setup-form-name\">\n\t\t\t<span><?php esc_html_e( 'Form Name', 'wpforms-lite' ); ?></span>\n\t\t\t<input type=\"text\" id=\"wpforms-setup-name\" placeholder=\"<?php esc_attr_e( 'Enter your form name here&hellip;', 'wpforms-lite' ); ?>\">\n\t\t</div>\n\n\t\t<div class=\"wpforms-setup-title core\">\n\t\t\t<?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?>\n\t\t</div>\n\n\t\t<p class=\"wpforms-setup-desc core\">\n\t\t\t<?php\n\t\t\techo wp_kses(\n\t\t\t\t__( 'To speed up the process, you can select from one of our pre-made templates or start with a <strong><a href=\"#\" class=\"wpforms-trigger-blank\">blank form.</a></strong>', 'wpforms-lite' ),\n\t\t\t\tarray(\n\t\t\t\t\t'strong' => array(),\n\t\t\t\t\t'a' => array(\n\t\t\t\t\t\t'href' => array(),\n\t\t\t\t\t\t'class' => array(),\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t);\n\t\t\t?>\n\t\t</p>\n\n\t\t<?php $this->template_select_options( $core_templates, 'core' ); ?>\n\n\t\t<div class=\"wpforms-setup-title additional\">\n\t\t\t<?php esc_html_e( 'Additional Templates', 'wpforms-lite' ); ?>\n\t\t\t<?php echo ! empty( $additional_count ) ? '<span class=\"count\">(' . $additional_count . ')</span>' : ''; ?>\n\t\t</div>\n\n\t\t<?php if ( ! empty( $additional_count ) ) : ?>\n\n\t\t\t<p class=\"wpforms-setup-desc additional\">\n\t\t\t\t<?php\n\t\t\t\tprintf(\n\t\t\t\t\twp_kses(\n\t\t\t\t\t\t/* translators: %1$s - WPForms.com URL to a template suggestion, %2$s - WPForms.com URL to a doc about custom templates. */\n\t\t\t\t\t\t__( 'Have a suggestion for a new template? <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">We\\'d love to hear it</a>. Also, you can <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">create your own templates</a>!', 'wpforms-lite' ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'a' => array(\n\t\t\t\t\t\t\t\t'href' => array(),\n\t\t\t\t\t\t\t\t'target' => array(),\n\t\t\t\t\t\t\t\t'rel' => array(),\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'https://wpforms.com/form-template-suggestion/',\n\t\t\t\t\t'https://wpforms.com/docs/how-to-create-a-custom-form-template/'\n\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</p>\n\n\t\t\t<div class=\"wpforms-setup-template-search-wrap\">\n\t\t\t\t<i class=\"fa fa-search\" aria-hidden=\"true\"></i>\n\t\t\t\t<input type=\"text\" id=\"wpforms-setup-template-search\" value=\"\" placeholder=\"<?php esc_attr_e( 'Search additional templates...', 'wpforms-lite' ); ?>\">\n\t\t\t</div>\n\n\t\t\t<?php $this->template_select_options( $additional_templates, 'additional' ); ?>\n\n\t\t<?php else : ?>\n\n\t\t\t<p class=\"wpforms-setup-desc additional\">\n\t\t\t\t<?php\n\t\t\t\tprintf(\n\t\t\t\t\twp_kses(\n\t\t\t\t\t\t/* translators: %1$s - WPForms.com URL to an addon page, %2$s - WPForms.com URL to a docs article. */\n\t\t\t\t\t\t__( 'More are available in the <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Form Templates Pack addon</a> or by <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">creating your own</a>.', 'wpforms-lite' ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'a' => array(\n\t\t\t\t\t\t\t\t'href' => array(),\n\t\t\t\t\t\t\t\t'target' => array(),\n\t\t\t\t\t\t\t\t'rel' => array(),\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'https://wpforms.com/addons/form-templates-pack-addon/',\n\t\t\t\t\t'https://wpforms.com/docs/how-to-create-a-custom-form-template/'\n\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</p>\n\n\t\t<?php\n\t\tendif;\n\t\tdo_action( 'wpforms_setup_panel_after' );\n\t}", "title": "" }, { "docid": "8f3ca29859d01f76846eebdbfea63d7a", "score": "0.65228695", "text": "function add_staff_tab() {\n\n\t\t\t$count = isset($_POST['count']) ? absint($_POST['count']) : false;\n\t\t\t$this->block_id = isset($_POST['block_id']) ? $_POST['block_id'] : 'mtheme-block-9999';\n\n\t\t\t//default key/value for the tab\n\t\t\t$tab = array(\n\t\t\t\t'social_text' => __('Social Site Name','mthemelocal'),\n\t\t\t\t'social_icon' => '',\n\t\t\t\t'social_link' => ''\n\t\t\t);\n\n\t\t\tif($count) {\n\t\t\t\t$this->tab($tab, $count);\n\t\t\t} else {\n\t\t\t\tdie(-1);\n\t\t\t}\n\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "074bdf2bd93f2b0ee8c85e15c024719d", "score": "0.65106696", "text": "public function settings_admin_page()\n {\n add_action('wp_cspa_before_closing_header', [$this, 'back_to_optin_overview']);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_filter('wp_cspa_main_content_area', [$this, 'optin_form_list']);\n\n $instance = Custom_Settings_Page_Api::instance();\n $instance->page_header(__('Add New', 'mailoptin'));\n $this->register_core_settings($instance);\n $instance->build(true, true);\n }", "title": "" }, { "docid": "72635a82bfff2fb008ccc9fc0727a15d", "score": "0.6506066", "text": "public function settings_page() {\n\t\t// Current tab.\n\t\t$tab = Template::current_tab();\n\n\t\t// Render settings header.\n\t\t$this->view( 'settings/common/header' );\n\n\t\t// Render settings page.\n\t\t$this->view( 'settings/settings', [\n\t\t\t'title' => Template::tabs()[ $tab ],\n\t\t\t'tab' => $tab,\n\t\t\t'form_url' => Template::settings_page(\n\t\t\t\t$tab,\n\t\t\t\t$this->is_network()\n\t\t\t),\n\t\t] );\n\n\t\t// Render settings footer.\n\t\t$this->view( 'settings/common/footer' );\n\t}", "title": "" }, { "docid": "4cb4ad0461c5fa9197b2fd395892666c", "score": "0.6504297", "text": "function ch_widget_tabcontent($args, $number = 1) {\n\textract($args);\n\t$options = get_option('widget_tabcontent');\n\t\n\tinclude(TEMPLATEPATH . '/tabcontent.php');\n\t\n}", "title": "" }, { "docid": "dacd14ad5d487bfef0ca55212811fc40", "score": "0.64985263", "text": "function mda_settings_form() {\n\t$form['mda_resources_access'] = array(\n\t\t\t'#type' => 'fieldset',\n\t\t\t'#title' => 'Page d\\'infos sur l\\'accès aux ressources MDA',\n\t\t\t'#description' => 'Information affichée à un utilisateur non connecté essayant de voir une ressource dont la visibilité est \"professionnels\".',\n\t);\n\t\n\t$default_text = \"<p>L'accès à cette ressource est réservée aux professionnels possédant un compte sur ce site.</p>\\n\";\n\t$default_text .= \"<p><a href=\" . \"/user\" . \">Accès au formulaire de connexion</a>.</p>\\n\";\n\t$default_text .= '<p>Si vous êtes un professionnel et que vous ne possédez pas de compte,';\n\t$default_text .= ' rendez-vous sur la page de création d\\'un <a href=\"/user/register\">nouveau compte</a>.';\n\n\t$form['mda_resources_access']['mda_restricted_access_text'] = array(\n\t\t\t'#type' => 'text_format',\n\t\t\t'#title' => 'Texte d\\'information',\n\t\t\t'#size' => 100,\n\t\t\t'#default_value' => variable_get('mda_restricted_access_text', $default_text),\n\t\t\t'#format'=> 'full_html',\n\t);\n\n\treturn system_settings_form($form);\n}", "title": "" }, { "docid": "248310271b935df0fa671af11e3e2bb7", "score": "0.6488738", "text": "public function bp_settings_tab_action() {\n\t\techo $this->get_instance( \\MyVideoRoomExtrasParking\\Library\\SectionTemplates::class )->account_centre_landing();\n\t}", "title": "" }, { "docid": "a1eeed8806b50cc2bc5c737c2e04e38a", "score": "0.6473307", "text": "function addPageEditorSettingsSubtabs()\n\t{\n\t\tglobal $ilCtrl, $ilTabs;\n\n\t\t$ilTabs->addSubTabTarget(\"adve_pe_general\",\n\t\t\t $ilCtrl->getLinkTarget($this, \"showGeneralPageEditorSettings\"),\n\t\t\t array(\"showGeneralPageEditorSettings\", \"\", \"view\")); \n\t\t\n\t\tinclude_once(\"./Services/COPage/classes/class.ilPageEditorSettings.php\");\n\t\t$grps = ilPageEditorSettings::getGroups();\n\t\t\n\t\tforeach ($grps as $g => $types)\n\t\t{\n\t\t\t$ilCtrl->setParameter($this, \"grp\", $g);\n\t\t\t$ilTabs->addSubTabTarget(\"adve_grp_\".$g,\n\t\t\t\t $ilCtrl->getLinkTarget($this, \"showPageEditorSettings\"),\n\t\t\t\t array(\"showPageEditorSettings\")); \n\t\t}\n\t\t$ilCtrl->setParameter($this, \"grp\", $_GET[\"grp\"]);\n\t}", "title": "" }, { "docid": "66155102c01b5e685bf01ae4fed85719", "score": "0.6470506", "text": "function siteorigin_panels_add_help_tab_content(){\n\tinclude 'tpl/help.php';\n}", "title": "" }, { "docid": "b3ca8fd83139369afbc561e41d170b12", "score": "0.6455108", "text": "protected function setFormContent()\n {\n\t\t$content = $this->getTitle();\n\t\t\n\t\t$content .= '<p>Your meditation time on <b>';\n\t\t$content .= $this->data['long_date'];\n\t\t$content .= '</b> has been deleted. Would you like to restore it?</p>';\n\t\t\n\t\t$this->Form = new Form;\n\t\t$this->buildForm();\n\t\t$content .= $this->Form->getHtml();\n\t\t\n\t\t// Add the cancel link\n\t\t$content .= $this->cancelLink();\n\t\t\n\t\t$this->content = $content;\n }", "title": "" }, { "docid": "341b2f0c6f4bedc0f25a4b7ca7982db9", "score": "0.6451424", "text": "public function add_settings_tab($settings_tabs) {\r\n $settings_tabs[$this->id] = __('SMS-EI', 'woocommerce-twilio-estatic');\r\n return $settings_tabs;\r\n }", "title": "" }, { "docid": "c2972b25ab759e85ac465abecab4279e", "score": "0.6431818", "text": "public function show_forms() {\n ?>\n <div class=\"metabox-holder\">\n <?php foreach ( $this->settings_tabs as $tab ) { ?>\n <div id=\"<?php echo $tab['id']; ?>\" class=\"group\" style=\"display: none;\">\n <form method=\"post\" action=\"options.php\">\n <?php\n do_action( $this->settings_prefix . '_settings_form_top_' . $tab['id'], $tab );\n settings_fields( $tab['id'] );\n\n $this->do_settings_sections( $tab['id'] );\n\n do_action( $this->settings_prefix . '_settings_form_bottom_' . $tab['id'], $tab );\n ?>\n <div>\n <?php submit_button(); ?>\n </div>\n </form>\n </div>\n <?php } ?>\n </div>\n <?php\n $this->script();\n }", "title": "" }, { "docid": "aa5a82a6891014ce99ea06c0a9ade4fb", "score": "0.63991183", "text": "protected function _register_controls() {\n /*-----------------------------------------------------------------------------------*/\n /* Content TAB\n /*-----------------------------------------------------------------------------------*/\n $this->start_controls_section(\n 'title_section',\n array(\n 'label' => __('APR Heading', 'apr-core' ),\n )\n );\n /* Heading 1*/\n $this->add_control(\n 'title',\n array(\n 'label' => __( 'Title', 'apr-core' ),\n 'type' => Controls_Manager::TEXTAREA,\n 'dynamic' => array(\n 'active' => true\n ),\n 'placeholder' => __( 'Enter your title', 'apr-core' ),\n 'default' => __( 'Enter your title', 'apr-core' ),\n 'label_block' => true,\n )\n );\n $this->add_control(\n 'heading_size',\n array(\n 'label' => __( 'HTML Tag', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => array(\n 'h1' => __( 'H1', 'apr-core' ),\n 'h2' => __( 'H2', 'apr-core' ),\n 'h3' => __( 'H3', 'apr-core' ),\n 'h4' => __( 'H4', 'apr-core' ),\n 'h5' => __( 'H5', 'apr-core' ),\n 'p' => __( 'p', 'apr-core' ),\n ),\n 'default' => 'h3',\n )\n );\n $this->add_control(\n 'link',\n [\n 'label' => __( 'Link', 'elementor' ),\n 'type' => Controls_Manager::URL,\n 'dynamic' => [\n 'active' => true,\n ],\n 'default' => [\n 'url' => '',\n ],\n 'separator' => 'before',\n ]\n );\n $this->add_responsive_control(\n 'alignment',\n array(\n 'label' => __('Alignment', 'apr-core'),\n 'type' => Controls_Manager::CHOOSE,\n 'default' => 'left',\n 'options' => array(\n 'left' => array(\n 'title' => __( 'Left', 'apr-core' ),\n 'icon' => 'fa fa-align-left',\n ),\n 'center' => array(\n 'title' => __( 'Center', 'apr-core' ),\n 'icon' => 'fa fa-align-center',\n ),\n 'right' => array(\n 'title' => __( 'Right', 'apr-core' ),\n 'icon' => 'fa fa-align-right',\n )\n ),\n )\n );\n $this->add_control(\n 'description',\n array(\n 'label' => __( 'Description', 'apr-core' ),\n 'type' => Controls_Manager::TEXTAREA,\n 'dynamic' => array(\n 'active' \t=> true\n ),\n )\n );\n $this->add_control(\n 'description_position',\n [\n 'label' => __( 'Description Position', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'default' => 'bottom',\n 'options' => [\n 'aside' => __( 'Aside', 'apr-core' ),\n 'bottom' => __( 'Bottom', 'apr-core' ),\n ],\n ]\n );\n $this->add_control(\n 'list_divider',\n [\n 'label' => __( 'Divider', 'apr-core' ),\n 'type' => Controls_Manager::SWITCHER,\n 'default' => 'no',\n 'separator' => 'before',\n ]\n );\n\n $this->add_control(\n 'divider_position',\n [\n 'label' => __( 'Position', 'apr-core' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n 'top' => __( 'Top', 'apr-core' ),\n 'bottom' => __( 'Bottom', 'apr-core' )\n ],\n 'default' => 'bottom',\n 'condition' => [\n 'list_divider' => 'yes',\n ]\n ]\n );\n\n $this->add_control(\n 'divider_color',\n [\n 'label' => __( 'Color', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'default' => '',\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_3,\n ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'background-color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'divider_color_hover',\n [\n 'label' => __( 'Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'default' => '',\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_3,\n ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:hover:before' => 'background-color: {{VALUE}};',\n ],\n ]\n );\n $this->add_responsive_control(\n 'divider_top',\n [\n 'label' => __( 'Top Space', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n ],\n 'size_units' => [ 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'top: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_left',\n [\n 'label' => __( 'Left Space', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => '',\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n ],\n 'size_units' => [ 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'left: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_weight',\n [\n 'label' => __( 'Height', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'default' => [\n 'size' => 1,\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n '%' => [\n 'min' => 0,\n 'max' => 100,\n ],\n ],\n 'size_units' => [ '%', 'px' ],\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'height: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n\n $this->add_responsive_control(\n 'divider_width',\n [\n 'label' => __( 'Width', 'apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'condition' => [\n 'list_divider' => 'yes',\n ],\n 'default' => [\n 'size' => 100,\n 'unit' => 'px',\n ],\n 'range' => [\n 'px' => [\n 'min' => 0,\n 'max' => 1000,\n ],\n '%' => [\n 'min' => 0,\n 'max' => 100,\n ],\n ],\n 'size_units' => [ '%', 'px' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-title:before' => 'width: {{SIZE}}{{UNIT}};',\n ],\n ]\n );\n \n $this->end_controls_section();\n /*-----------------------------------------------------------------------------------*/\n /* Style TAB\n /*-----------------------------------------------------------------------------------*/\n $this->start_controls_section(\n 'title_style_section',\n array(\n 'label' => __( 'Color', 'apr-core' ),\n 'tab' => Controls_Manager::TAB_STYLE,\n )\n );\n $this->add_control(\n 'title_color',\n [\n 'label' => __( 'Title Color', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .heading-title,\n {{WRAPPER}} .heading-modern .heading-title a' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'desc_color',\n [\n 'label' \t=> __( 'Description color', 'apr-core' ),\n 'type' \t\t=> Controls_Manager::COLOR,\n 'scheme' \t=> [\n 'type' \t\t=> Scheme_Color::get_type(),\n 'value' \t=> Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->end_controls_section();\n $this->start_controls_section(\n 'desc_style',\n array(\n 'label' => __( 'Typography', 'apr-core' ),\n 'tab' => Controls_Manager::TAB_STYLE,\n )\n );\n\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' \t\t=> 'title_typo',\n 'label' \t=> __( 'Title', 'apr-core' ),\n 'selector' => '{{WRAPPER}} .heading-modern .heading-title',\n ]\n );\n $this->add_responsive_control(\n 'title_width',\n array(\n 'label' => __('Max width Title','apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'size_units' => array('px','%'),\n 'range' => array(\n '%' => array(\n 'min' => 1,\n 'max' => 100,\n ),\n 'px' => array(\n 'min' => 1,\n 'max' => 1600,\n 'step' => 5\n )\n ),\n 'selectors' => array(\n '{{WRAPPER}} .heading-modern .heading-title' => 'max-width:{{SIZE}}{{UNIT}};'\n ),\n )\n );\n $this->add_group_control(\n Group_Control_Typography::get_type(),\n [\n 'name' \t\t=> 'desc_typo',\n 'label' \t=> __( 'Description', 'apr-core' ),\n 'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n 'selector' \t=> '{{WRAPPER}} .heading-modern .description',\n ]\n );\n $this->add_responsive_control(\n 'desc_width',\n array(\n 'label' => __('Max width Description','apr-core' ),\n 'type' => Controls_Manager::SLIDER,\n 'size_units' => array('px','%'),\n 'range' => array(\n '%' => array(\n 'min' => 1,\n 'max' => 100,\n ),\n 'px' => array(\n 'min' => 1,\n 'max' => 1600,\n 'step' => 5\n )\n ),\n 'selectors' => array(\n '{{WRAPPER}} .heading-modern .description' => 'max-width:{{SIZE}}{{UNIT}};'\n ),\n )\n );\n $this->add_responsive_control(\n 'title_margin',\n array(\n 'label' => __( 'Margin Title', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', '%' ],\n 'allowed_dimensions' => 'vertical',\n 'placeholder' => [\n 'top' => '',\n 'right' => 'auto',\n 'bottom' => '',\n 'left' => 'auto',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .heading-title' => 'margin-top: {{TOP}}{{UNIT}}; margin-bottom: {{BOTTOM}}{{UNIT}};',\n ],\n )\n );\n\n $this->add_responsive_control(\n 'title_padding',\n [\n 'label' => __( 'Padding Title', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', 'em', '%' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .heading-title' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'\n ],\n ]\n );\n $this->add_responsive_control(\n 'desc_margin',\n array(\n 'label' => __( 'Margin Description', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', '%' ],\n 'allowed_dimensions' => 'vertical',\n 'placeholder' => [\n 'top' => '',\n 'right' => 'auto',\n 'bottom' => '',\n 'left' => 'auto',\n ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'margin-top: {{TOP}}{{UNIT}}; margin-bottom: {{BOTTOM}}{{UNIT}};',\n ],\n )\n );\n $this->add_responsive_control(\n 'description_padding',\n [\n 'label' => __( 'Padding Description', 'apr-core' ),\n 'type' => Controls_Manager::DIMENSIONS,\n 'size_units' => [ 'px', 'em', '%' ],\n 'selectors' => [\n '{{WRAPPER}} .heading-modern .description' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'\n ],\n ]\n );\n $this->add_control(\n 'title_color_hover',\n [\n 'label' => __( 'Title Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .heading-title:hover,\n {{WRAPPER}} .heading-modern .heading-title a:hover' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->add_control(\n 'desc_color_hover',\n [\n 'label' => __( 'Description Color Hover', 'apr-core' ),\n 'type' => Controls_Manager::COLOR,\n 'scheme' => [\n 'type' => Scheme_Color::get_type(),\n 'value' => Scheme_Color::COLOR_1,\n ],\n 'selectors' => [\n // Stronger selector to avoid section style from overwriting\n '{{WRAPPER}} .heading-modern .description:hover' => 'color: {{VALUE}};',\n ],\n ]\n );\n $this->end_controls_section();\n }", "title": "" }, { "docid": "862796cc830cd30a4a31ef8c6c3e7e48", "score": "0.6398326", "text": "function rnd15_site_tabs_style_render_region_settings_form($style_settings, $panel_display) {\n \n // View Modes of Fieldable Panel Pane - add a select field\n $entity_info = entity_get_info('fieldable_panels_pane');\n foreach ($entity_info['view modes'] as $id => $config) {\n // push label value back to array key, so it displays label on dropdown options \n $entity_info['view modes'][$id] = $entity_info['view modes'][$id]['label'];\n }\n\n $view_mode_default_value = isset($style_settings['view_mode']) ? $style_settings['view_mode'] : '';\n \n $form['view_mode'] = array(\n '#type' => 'select',\n '#title' => t('View Modes of Panes'),\n '#multiple' => FALSE,\n '#options' => $entity_info['view modes'],\n '#default_value' => $view_mode_default_value,\n '#description' => t('Set view modes of all fieldable panes'),\n );\n\n $tabs_heading_default_value = isset($style_settings['tabsHeading']) ? $style_settings['tabsHeading'] : '';\n\n $form['tabsHeading'] = array(\n '#title' => t('Tabs Heading'),\n '#description' => t('H3 rendered above the tabs'),\n '#type' => 'textfield',\n '#default_value' => $tabs_heading_default_value,\n );\n\n /** \n * Array of non-empty regions in the minipanel, allowing dev to choose\n * which region/tab the page defaults to upon page open\n */\n $regionList = array_keys($panel_display->panels);\n\n // Set array to use 1-index rather than 0-index, to match region naming/numbering convention (as used in js)\n foreach ( $regionList as $key => $val ) {\n $regionList[ $key+1 ] = $val;\n }\n \n unset($regionList[0]);\n\n // Defaults to using tab/region #1 as default tab when user lands on page\n $default_tab_default_value = isset($style_settings['defaultTab']) ? $style_settings['defaultTab'] : '1';\n\n $form['defaultTab'] = array(\n '#title' => t('Default Tab'),\n '#description' => t('Sets the default tab for the page (if no tabname is stipulated in the URL)'),\n '#type' => 'select',\n '#multiple' => FALSE,\n '#options' => $regionList,\n '#default_value' => $default_tab_default_value,\n );\n\n // Extra classes - this output same level of tab wrapper\n $extra_classes_default_value = isset($style_settings['extraClasses']) ? $style_settings['extraClasses'] : '';\n $form['extraClasses'] = array(\n '#title' => t('Extra Classes'),\n '#description' => t('Drop any classes you want in here, this class applies to the same level of tab wrapper'),\n '#type' => 'textfield',\n '#default_value' => $extra_classes_default_value,\n );\n \n return $form;\n}", "title": "" }, { "docid": "6f948347c2c16b02e9e3f49dbbaca7ba", "score": "0.63910186", "text": "function buildSettingsForm() {}", "title": "" }, { "docid": "15d6dadc0178f225f1e46d70ecb92089", "score": "0.6376142", "text": "public function settings_page() { ?>\n\n <div class=\"wrap\">\n <?php $this->settings_api->settings_html(); ?>\n </div><?php\n }", "title": "" }, { "docid": "77956afec84fc1b12ea9fb091abf5451", "score": "0.63694406", "text": "public function add_page_fields()\r\n {\r\n // /**\r\n // * theme_option\r\n // * Option\r\n // */\r\n // register_setting(\r\n // 'theme_option', // Option group\r\n // 'theme_option', // Option name\r\n // array($this, 'sanitize_save') // Sanitize\r\n // );\r\n\r\n // /**\r\n // * theme_section_tab1\r\n // * Section\r\n // * Option > Section\r\n // */\r\n // add_settings_section(\r\n // 'theme_section_tab1', // ID\r\n // 'Tab Settings 1', // Title\r\n // array($this, 'print_section_html'), // Callback\r\n // 'theme_sections' // Page (sections)\r\n // );\r\n\r\n // /**\r\n // * theme_section_tab2\r\n // * Section\r\n // * Option > Section\r\n // */\r\n // add_settings_section(\r\n // 'theme_section_tab2', // ID\r\n // 'Tab Settings 2', // Title\r\n // array($this, 'print_section_html'), // Callback\r\n // 'theme_sections' // Page (sections)\r\n // );\r\n\r\n // /**\r\n // * Field\r\n // * Option > Section > Field\r\n // */\r\n // add_settings_field(\r\n // 'id_number', // ID\r\n // 'ID Number', // Title\r\n // array($this, 'id_number_callback'), // Callback\r\n // 'theme_sections', // Page (sections)\r\n // 'theme_section_tab1' // Section\r\n // );\r\n\r\n // /**\r\n // * Field\r\n // * Option > Section > Field\r\n // */\r\n // add_settings_field(\r\n // 'title',\r\n // 'Title',\r\n // array($this, 'title_callback'),\r\n // 'theme_sections', // Page (sections)\r\n // 'theme_section_tab1'\r\n // );\r\n\r\n // /**\r\n // * Field\r\n // * Option > Section > Field\r\n // */\r\n // add_settings_field(\r\n // 'theme_field_slug',\r\n // 'Text',\r\n // array($this, 'text_callback'),\r\n // 'theme_sections', // Page (sections)\r\n // 'theme_section_tab2',\r\n // array(\r\n // 'label_for' => 'theme_field_slug',\r\n // 'class' => 'theme_field_slug',\r\n // 'field_name' => 'theme_field_slug',\r\n // 'option_name' => 'theme_option',\r\n // )\r\n // );\r\n\r\n foreach ($this->conf as $s_key => $section) {\r\n add_settings_section(\r\n $section['name'], // Section ID\r\n $section['label'], // Section Title\r\n // array($this, $section['html']), // Callback (String)\r\n array($this, function($section){\r\n echo $section['html'];\r\n }), // Callback (String)\r\n $section['name'] // Page (sections)\r\n );\r\n foreach ($section['fields'] as $f_key => $field) {\r\n register_setting(\r\n $field['name'], // Option group\r\n $field['name'], // Option name\r\n array($this, $field['option_sanitize']) // Sanitize\r\n );\r\n add_settings_field(\r\n $field['name'], // Field ID\r\n $field['label'], // Field Title\r\n array($this, $field['html'] . '_callback'), // Callback (Type)\r\n $section['name'], // Page (sections)\r\n $section['name'], // Section ID\r\n array(\r\n 'label_for' => $field['name'],\r\n 'class' => $field['name'],\r\n 'field_name' => $field['name'],\r\n 'option_name' => $field['name'],\r\n )\r\n );\r\n }\r\n }\r\n }", "title": "" }, { "docid": "00da81542646b0c01a6b16fbf400c6af", "score": "0.63498724", "text": "public function add_options_html() {\n\n $has_nav = ( count( $this->pre_tabs ) > 1 ) ? true : false;\n $show_all = ( ! $has_nav ) ? ' csf-show-all' : '';\n $ajax_class = ( $this->args['ajax_save'] ) ? ' csf-save-ajax' : '';\n $sticky_class = ( $this->args['sticky_header'] ) ? ' csf-sticky-header' : '';\n $wrapper_class = ( $this->args['framework_class'] ) ? ' '. $this->args['framework_class'] : '';\n\n echo '<div class=\"csf csf-theme-'. $this->args['theme'] .' csf-options'. $wrapper_class .'\" data-slug=\"'. $this->args['menu_slug'] .'\" data-unique=\"'. $this->unique .'\">';\n\n $notice_class = ( ! empty( $this->notice ) ) ? ' csf-form-show' : '';\n $notice_text = ( ! empty( $this->notice ) ) ? $this->notice : '';\n\n echo '<div class=\"csf-form-result csf-form-success'. $notice_class .'\">'. $notice_text .'</div>';\n\n $error_class = ( ! empty( $this->errors ) ) ? ' csf-form-show' : '';\n\n echo '<div class=\"csf-form-result csf-form-error'. $error_class .'\">';\n if( ! empty( $this->errors ) ) {\n foreach ( $this->errors as $error ) {\n echo '<i class=\"csf-label-error\">!</i> '. $error .'<br />';\n }\n }\n echo '</div>';\n\n echo '<div class=\"csf-container\">';\n\n echo '<form method=\"post\" action=\"\" enctype=\"multipart/form-data\" id=\"csf-form\">';\n\n echo '<input type=\"hidden\" class=\"csf-section-id\" name=\"csf_transient[section]\" value=\"1\">';\n wp_nonce_field( 'csf_options_nonce', 'csf_options_nonce' );\n\n echo '<div class=\"csf-header'. esc_attr( $sticky_class ) .'\">';\n echo '<div class=\"csf-header-inner\">';\n\n echo '<div class=\"csf-header-left\">';\n echo '<h1>'. $this->args['framework_title'] .'</h1>';\n echo '</div>';\n\n echo '<div class=\"csf-header-right\">';\n\n echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class=\"csf-expand-all\" title=\"'. esc_html__( 'show all options', 'csf' ) .'\"><i class=\"fa fa-outdent\"></i></div>' : '';\n\n echo ( $this->args['show_search'] ) ? '<div class=\"csf-search\"><input type=\"text\" placeholder=\"'. esc_html__( 'Search option(s)', 'csf' ) .'\" /></div>' : '';\n\n echo '<div class=\"csf-buttons\">';\n echo '<input type=\"submit\" name=\"'. $this->unique .'[_nonce][save]\" class=\"button button-primary csf-save'. $ajax_class .'\" value=\"'. esc_html__( 'Save', 'csf' ) .'\" data-save=\"'. esc_html__( 'Saving...', 'csf' ) .'\">';\n echo ( $this->args['show_reset_section'] ) ? '<input type=\"submit\" name=\"csf_transient[reset_section]\" class=\"button button-secondary csf-reset-section csf-confirm\" value=\"'. esc_html__( 'Reset Section', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'\">' : '';\n echo ( $this->args['show_reset_all'] ) ? '<input type=\"submit\" name=\"csf_transient[reset]\" class=\"button button-secondary csf-warning-primary csf-reset-all csf-confirm\" value=\"'. esc_html__( 'Reset All', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset all options?', 'csf' ) .'\">' : '';\n echo '</div>';\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n echo '</div>';\n echo '</div>';\n\n echo '<div class=\"csf-wrapper'. $show_all .'\">';\n\n if( $has_nav ) {\n echo '<div class=\"csf-nav csf-nav-options\">';\n\n echo '<ul>';\n\n $tab_key = 1;\n\n foreach( $this->pre_tabs as $tab ) {\n\n $tab_error = $this->error_check( $tab );\n $tab_icon = ( ! empty( $tab['icon'] ) ) ? '<i class=\"'. $tab['icon'] .'\"></i>' : '';\n\n if( ! empty( $tab['subs'] ) ) {\n\n echo '<li class=\"csf-tab-depth-0\">';\n\n echo '<a href=\"#tab='. $tab_key .'\" class=\"csf-arrow\">'. $tab_icon . $tab['title'] . $tab_error .'</a>';\n\n echo '<ul>';\n\n foreach ( $tab['subs'] as $sub ) {\n\n $sub_error = $this->error_check( $sub );\n $sub_icon = ( ! empty( $sub['icon'] ) ) ? '<i class=\"'. $sub['icon'] .'\"></i>' : '';\n\n echo '<li class=\"csf-tab-depth-1\"><a id=\"csf-tab-link-'. $tab_key .'\" href=\"#tab='. $tab_key .'\">'. $sub_icon . $sub['title'] . $sub_error .'</a></li>';\n\n $tab_key++;\n }\n\n echo '</ul>';\n\n echo '</li>';\n\n } else {\n\n echo '<li class=\"csf-tab-depth-0\"><a id=\"csf-tab-link-'. $tab_key .'\" href=\"#tab='. $tab_key .'\">'. $tab_icon . $tab['title'] . $tab_error .'</a></li>';\n\n $tab_key++;\n }\n\n }\n\n echo '</ul>';\n\n echo '</div>';\n\n }\n\n echo '<div class=\"csf-content\">';\n\n echo '<div class=\"csf-sections\">';\n\n $section_key = 1;\n\n foreach( $this->pre_sections as $section ) {\n\n $onload = ( ! $has_nav ) ? ' csf-onload' : '';\n $section_icon = ( ! empty( $section['icon'] ) ) ? '<i class=\"csf-icon '. $section['icon'] .'\"></i>' : '';\n\n echo '<div id=\"csf-section-'. $section_key .'\" class=\"csf-section'. $onload .'\">';\n echo ( $has_nav ) ? '<div class=\"csf-section-title\"><h3>'. $section_icon . $section['title'] .'</h3></div>' : '';\n echo ( ! empty( $section['description'] ) ) ? '<div class=\"csf-field csf-section-description\">'. $section['description'] .'</div>' : '';\n\n if( ! empty( $section['fields'] ) ) {\n\n foreach( $section['fields'] as $field ) {\n\n $is_field_error = $this->error_check( $field );\n\n if( ! empty( $is_field_error ) ) {\n $field['_error'] = $is_field_error;\n }\n\n $value = ( ! empty( $field['id'] ) && isset( $this->options[$field['id']] ) ) ? $this->options[$field['id']] : '';\n\n CSF::field( $field, $value, $this->unique, 'options' );\n\n }\n\n } else {\n\n echo '<div class=\"csf-no-option csf-text-muted\">'. esc_html__( 'No option provided by developer.', 'csf' ) .'</div>';\n\n }\n\n echo '</div>';\n\n $section_key++;\n }\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n\n echo '</div>';\n\n echo '<div class=\"csf-nav-background\"></div>';\n\n echo '</div>';\n\n if( ! empty( $this->args['show_footer'] ) ) {\n\n echo '<div class=\"csf-footer\">';\n\n echo '<div class=\"csf-buttons\">';\n echo '<input type=\"submit\" name=\"csf_transient[save]\" class=\"button button-primary csf-save'. $ajax_class .'\" value=\"'. esc_html__( 'Save', 'csf' ) .'\" data-save=\"'. esc_html__( 'Saving...', 'csf' ) .'\">';\n echo ( $this->args['show_reset_section'] ) ? '<input type=\"submit\" name=\"csf_transient[reset_section]\" class=\"button button-secondary csf-reset-section csf-confirm\" value=\"'. esc_html__( 'Reset Section', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset this section options?', 'csf' ) .'\">' : '';\n echo ( $this->args['show_reset_all'] ) ? '<input type=\"submit\" name=\"csf_transient[reset]\" class=\"button button-secondary csf-warning-primary csf-reset-all csf-confirm\" value=\"'. esc_html__( 'Reset All', 'csf' ) .'\" data-confirm=\"'. esc_html__( 'Are you sure to reset all options?', 'csf' ) .'\">' : '';\n echo '</div>';\n\n echo ( ! empty( $this->args['footer_text'] ) ) ? '<div class=\"csf-copyright\">'. $this->args['footer_text'] .'</div>' : '';\n\n echo '<div class=\"clear\"></div>';\n echo '</div>';\n\n }\n\n echo '</form>';\n\n echo '</div>';\n\n echo '<div class=\"clear\"></div>';\n\n echo ( ! empty( $this->args['footer_after'] ) ) ? $this->args['footer_after'] : '';\n\n echo '</div>';\n\n }", "title": "" }, { "docid": "3570d232f99d1be790b65ac09200e92a", "score": "0.63465893", "text": "function __construct()\n {\n\t $this->tabs = array( \n//\t array ( 'tab_id' => 'properties',\t\t'tab_op' => 'administration.customization_properties.edit', \t'tab_name' => 'Application properties'),\n\t array ( 'tab_id' => 'fields',\t\t\t'tab_op' => 'administration.customization_fields.edit', \t\t'tab_name' => 'Field properties'),\n\t array ( 'tab_id' => 'searches', \t\t'tab_op' => 'administration.customization_searches.edit',\t\t'tab_name' => 'Search filters'),\n\t array ( 'tab_id' => 'results', \t\t\t'tab_op' => 'administration.customization_results.edit',\t\t'tab_name' => 'Search results'),\n\t array ( 'tab_id' => 'bulk',\t\t\t\t'tab_op' => 'administration.customization_bulk.edit', \t\t\t'tab_name' => 'Bulk form'),\t \n\t array ( 'tab_id' => 'view', \t\t\t'tab_op' => 'administration.customization_view.edit',\t\t\t'tab_name' => 'View form'),\n\t array ( 'tab_id' => 'edit', \t\t\t'tab_op' => 'administration.customization_edit.edit',\t\t\t'tab_name' => 'Edit form'),\n\t array ( 'tab_id' => 'linked', \t\t\t'tab_op' => 'administration.customization_linked.edit',\t\t\t'tab_name' => 'Linked applications'),\n\t array ( 'tab_id' => 'linked_view', \t\t'tab_op' => 'administration.customization_linked_view.edit',\t'tab_name' => 'Linked view form'),\n\t array ( 'tab_id' => 'popup_searches', \t'tab_op' => 'administration.customization_popup_searches.edit',\t'tab_name' => 'Popup search filters'),\n\t array ( 'tab_id' => 'popup_results', \t'tab_op' => 'administration.customization_popup_results.edit',\t'tab_name' => 'Popup search results'),\n\t array ( 'tab_id' => 'popup_view', \t\t'tab_op' => 'administration.customization_popup_view.edit',\t\t'tab_name' => 'Popup view form'),\n\t array ( 'tab_id' => 'popup_edit', \t\t'tab_op' => 'administration.customization_popup_edit.edit',\t\t'tab_name' => 'Popup edit form')\n\t ); \n\n\t\tparent::__construct();\n }", "title": "" }, { "docid": "c660efc73c60576d03ed13b22f2197e2", "score": "0.6343489", "text": "public function settings_admin_page()\n {\n add_action('wp_cspa_before_closing_header', [$this, 'back_to_optin_overview']);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_filter('wp_cspa_main_content_area', [$this, 'optin_form_list']);\n\n $instance = Custom_Settings_Page_Api::instance();\n $instance->page_header(__('Add New Optin', 'mailoptin'));\n $this->register_core_settings($instance, true);\n $instance->build(true);\n }", "title": "" }, { "docid": "565c2157a2ecc07a2e6f918c95adb6da", "score": "0.63339496", "text": "public function settingsPage()\n\t{\n\t\t$this->setForms();\n\t\tinclude( \\GFormProtected\\Helpers::view('settings/settings') );\n\t}", "title": "" }, { "docid": "4c5585c85e64dcb67e188facf77b3d5b", "score": "0.6333919", "text": "public function add_product_tab_content() {\n global $product_object;\n include MVR_TEMPLATES_DIR . 'woocommerce/dm_settings.php';\n }", "title": "" }, { "docid": "b4595fd31877a5d6b885fb1de605face", "score": "0.6329804", "text": "public function onRsformBackendAfterShowFormEditTabs(): void\n\t{\n\t\t$formId = $this->app->input->getInt('formId');\n\t\t$tables = $this->db->getTableList();\n\t\t$table = $this->db->getPrefix() . 'rsform_jdideal';\n\n\t\tif (!in_array($table, $tables, true))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Load the settings\n\t\t$settings = $this->loadFormSettings($formId);\n\n\t\t$form = new Form('ropayments');\n\t\t$form->loadFile(__DIR__ . '/configuration.xml');\n\t\t$form->bind(['roPaymentsParams' => $settings->toArray()]);\n\n\t\tHTMLHelper::_('formbehavior.chosen');\n\n\t\t?>\n\t\t<div id=\"ropayments\" class=\"form-horizontal <?php\n\t\techo Version::MAJOR_VERSION === 3 ? 'ropayments3' : ''; ?>\">\n\t\t\t<?php\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'bootstrap.startTabSet', 'ropayments-config',\n\t\t\t\t['active' => 'ropayments-general']\n\t\t\t);\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'bootstrap.addTab',\n\t\t\t\t'ropayments-config',\n\t\t\t\t'ropayments-general',\n\t\t\t\tText::_('PLG_RSFP_JDIDEAL_CONFIG_GENERAL')\n\t\t\t);\n\t\t\techo $form->renderField('profileAlias', 'roPaymentsParams');\n\t\t\techo $form->renderField('currency', 'roPaymentsParams');\n\t\t\techo $form->renderField('allowEmpty', 'roPaymentsParams');\n\t\t\techo $form->renderField('showMessage', 'roPaymentsParams');\n\t\t\techo HTMLHelper::_('bootstrap.endTab');\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'bootstrap.addTab',\n\t\t\t\t'ropayments-config',\n\t\t\t\t'ropayments-currency',\n\t\t\t\tText::_('PLG_RSFP_JDIDEAL_CONFIG_PRICE')\n\t\t\t);\n\t\t\techo $form->renderField('thousands', 'roPaymentsParams');\n\t\t\techo $form->renderField('decimal', 'roPaymentsParams');\n\t\t\techo $form->renderField('numberDecimals', 'roPaymentsParams');\n\t\t\techo $form->renderField('priceMask', 'roPaymentsParams');\n\t\t\techo $form->renderField('amountMask', 'roPaymentsParams');\n\t\t\techo '<div class=\"totalPriceMask\">';\n\t\t\techo $form->renderField('totalMask', 'roPaymentsParams');\n\t\t\techo '</div>';\n\t\t\techo $form->renderField('taxType', 'roPaymentsParams');\n\t\t\techo $form->renderField('taxValue', 'roPaymentsParams');\n\t\t\techo HTMLHelper::_('bootstrap.endTab');\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'bootstrap.addTab',\n\t\t\t\t'ropayments-config',\n\t\t\t\t'ropayments-fields',\n\t\t\t\tText::_('PLG_RSFP_JDIDEAL_CONFIG_FIELDS')\n\t\t\t);\n\t\t\techo $form->renderField('fieldOrderNumber', 'roPaymentsParams');\n\t\t\techo $form->renderField('fieldName', 'roPaymentsParams');\n\t\t\techo $form->renderField('fieldEmail', 'roPaymentsParams');\n\t\t\techo HTMLHelper::_('bootstrap.endTab');\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'bootstrap.addTab',\n\t\t\t\t'ropayments-config',\n\t\t\t\t'ropayments-emails',\n\t\t\t\tText::_('PLG_RSFP_JDIDEAL_CONFIG_MAIL')\n\t\t\t);\n\t\t\techo $form->renderField('userEmail', 'roPaymentsParams');\n\t\t\techo $form->renderField('adminEmail', 'roPaymentsParams');\n\t\t\techo $form->renderField('additionalEmails', 'roPaymentsParams');\n\t\t\techo $form->renderField(\n\t\t\t\t'sendEmailOnFailedPayment', 'roPaymentsParams'\n\t\t\t);\n\t\t\techo $form->renderField('confirmationEmail', 'roPaymentsParams');\n\t\t\techo '<div class=\"control-group ro-confirmation-info\" data-showon=\\'[{\"field\":\"roPaymentsParams[confirmationEmail]\",\"values\":[\"1\"],\"sign\":\"=\",\"op\":\"\"}]\\' style=\"display: none;\">';\n\t\t\techo '<div class=\"text-info\">' . Text::_(\n\t\t\t\t\t'PLG_RSFP_JDIDEAL_CONFIRMATIONHELP'\n\t\t\t\t) . '</div>';\n\t\t\techo '</div>';\n\t\t\techo $form->renderField(\n\t\t\t\t'confirmationRecipient', 'roPaymentsParams'\n\t\t\t);\n\t\t\techo $form->renderField('confirmationSubject', 'roPaymentsParams');\n\t\t\techo $form->renderField('confirmationMessage', 'roPaymentsParams');\n\t\t\techo $form->renderField('includeNonSelected', 'roPaymentsParams');\n\t\t\techo HTMLHelper::_('bootstrap.endTab');\n\t\t\techo HTMLHelper::_('bootstrap.endTabSet');\n\t\t\t?>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "91dc852c01609f19d373f63a55fbd86f", "score": "0.6326659", "text": "function options_panel() {\r\n // Include options panel\r\n include($this->pluginPath . \"/includes/settings.php\");\r\n }", "title": "" }, { "docid": "f1f056367100650e5b0cdcb23991da66", "score": "0.6322228", "text": "public function onRsformBackendAfterShowFormEditTabsTab(): void\n\t{\n\t\t?>\n\t\t<li>\n\t\t\t<?php\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'link',\n\t\t\t\t'javascript: void(0);',\n\t\t\t\t'<span class=\"rsficon jdicon-jdideal\"></span><span class=\"inner-text\">'\n\t\t\t\t. Text::_(\n\t\t\t\t\t'PLG_RSFP_JDIDEAL_LABEL'\n\t\t\t\t) . '</span>'\n\t\t\t);\n\t\t\t?>\n\t\t</li>\n\t\t<?php\n\t}", "title": "" }, { "docid": "01d3b7744ed92d60317c625fb3d86bde", "score": "0.6318577", "text": "function plugin_options_form() {\n?>\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"save_metaboxes_general\" />\n<?php\n\t\t settings_fields( 'subpages_as_tabs_options' );\n\t\t do_settings_sections( 'subpage_tabs_plugin' );\n?>\n\n\t\t <input name=\"Submit\" type=\"submit\" value=\"<?php esc_attr_e( 'Save Changes' ); ?>\" />\n<?php\n\t\t}", "title": "" }, { "docid": "d0e15e3d548deac6050eee832dfa5fd7", "score": "0.63174695", "text": "public function settings_view()\n {\n $this->register_handler('plugin.settingsform', array($this, 'settings_form'));\n $this->register_handler('plugin.settingslist', array($this, 'settings_list'));\n $this->register_handler('plugin.factoradder', array($this, 'settings_factoradder'));\n $this->register_handler('plugin.highsecuritydialog', array($this, 'settings_highsecuritydialog'));\n\n $this->include_script('kolab2fa.js');\n $this->include_stylesheet($this->local_skin_path() . '/kolab2fa.css');\n\n if ($this->check_secure_mode()) {\n $this->api->output->set_env('session_secured', $_SESSION['kolab_2fa_secure_mode']);\n }\n\n $this->api->output->add_label('save','cancel');\n $this->api->output->set_pagetitle($this->gettext('settingstitle'));\n $this->api->output->send('kolab_2fa.config');\n }", "title": "" }, { "docid": "c984ae3cec0d51680dad686b7ef9ed7e", "score": "0.6303494", "text": "function rental_options_product_tab_content() {\n\tglobal $post;\n\t?><div id='rental_options' class='panel woocommerce_options_panel'><?php\n\t\t?><div class='options_group'><?php\n\t\t\twoocommerce_wp_checkbox( array(\n\t\t\t\t'id' \t\t=> '_enable_option',\n\t\t\t\t'label' \t=> __( 'Enable rental option X', 'woocommerce' ),\n\t\t\t) );\n\t\t\twoocommerce_wp_text_input( array(\n\t\t\t\t'id'\t\t\t=> '_text_input_y',\n\t\t\t\t'label'\t\t\t=> __( 'What is the value of Y', 'woocommerce' ),\n\t\t\t\t'desc_tip'\t\t=> 'true',\n\t\t\t\t'description'\t=> __( 'A handy description field', 'woocommerce' ),\n\t\t\t\t'type' \t\t\t=> 'text',\n\t\t\t) );\n\t\t?></div>\n\n\t</div><?php\n}", "title": "" }, { "docid": "8559b63f8065aa9d0b8fd10c34420ed1", "score": "0.6299093", "text": "function isms_component_messages_addtab($cbtype, &$cbdata)\n{\n $settings_raw = get_option(\"isms_component_options\");\n if ($settings_raw == \"\")\n $settings = array();\n else\n $settings = unserialize($settings_raw);\n $enabled = grab_array_var($settings, \"enabled\", 0);\n if ($enabled != 1)\n return;\n\n $newtab = array(\n \"id\" => \"isms\",\n \"title\" => \"iSMS\",\n );\n\n $cbdata[\"tabs\"][] = $newtab;\n}", "title": "" }, { "docid": "782b764f163d6386516fe845045640f2", "score": "0.62931603", "text": "public function setting_page() {\n\n\t\techo '<div class=\"wrap\">';\n\t\tsettings_errors();\n\n\t\t$this->setting->show_navigation();\n\t\t$this->setting->show_forms();\n\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "a7f625608ffeed2c3bfbcfe3b5378e32", "score": "0.6273482", "text": "function showGeneralPageEditorSettingsObject()\n\t{\n\t\tglobal $tpl, $ilTabs;\n\n\t\t$this->addPageEditorSettingsSubTabs();\n\t\t$ilTabs->activateTab(\"adve_page_editor_settings\");\n\t\t\n\t\t$form = $this->initGeneralPageSettingsForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "title": "" }, { "docid": "5ed9148420713419c1c6eb264500f5ca", "score": "0.62665904", "text": "function admin_section_builder($data,$args) {echo '<div class=\"options-description\" style=\"padding:10px; line-height: 1.6;\">' . $args['args']['description'] . '</div><table class=\"form-table\">'; do_settings_fields( $this->page, $args['args']['section'] ); echo '</table>';}", "title": "" }, { "docid": "68ffbaf4dc5d0e64c83eb1862eb6d51e", "score": "0.6253526", "text": "function advsettings($tab = 0) {\n $this->auth(WL_ADM_LEVEL);\n $data['title'] = 'advanced settings';\n $data['tab'] = $tab;\n $wl_id = $this->session->userdata('wl_id');\n $data['wl'] = $this->m_white_label->getById($wl_id);\n $this->load->view('include/v_header', $data);\n $this->load->view('admin/adv_settings/v_main');\n $this->load->view('include/v_footer');\n }", "title": "" }, { "docid": "ecd6d2568193b59838c31e30cf4a5dce", "score": "0.6249266", "text": "public function form(){\n \t \tif($this->layoutWidgetInfo){\n \t\t$setting = json_decode($this->layoutWidgetInfo->setting, true);\n \t}\n\n \t//default option(type[text], cols[3-9], rows[1], label[$key], name[$key], value[$setting[$k]])\n \t//add option(class, id, stype, styleRow, required, placeholder, attr, [options, code])\n \t$settingForm = array(\n \t\t'layout_widget_id' \t=> array('type' => 'hidden', 'value' => $this->layoutWidgetInfo->layoutWidgetId),\n \t\t'widget_controller' => array('type' => 'hidden', 'value' => $this->widgetController),\n \t\t'header' \t=> array('type' => 'custom', 'value' => \"<h4 class='widget_header col-md-12'>{$this->widgetController}</h4>\", 'label' => ''),\n\n \t\t'title' => array(),\n \t\t'class'\t=> array(),\n 'bg_color'\t=> array('label' => 'Màu nền', 'class' => 'ColorPickerSliders',\n 'addElement' => '<a href=\"index.php?r=admin/help/view&helpId=4\" target=\"_blank\">Xem thêm</a>'),\n \t\t'category_id'\t=> array('type' => 'select_category', 'label' => 'Category', 'required' => true,\n \t\t\t\t'options' => CategoryExt::getCategoryList()),\n \t\t'style'\t=> array('type' => 'select', 'options' => $this->settingDefault['style']),\n \t\t'order_by' => array('type' => 'select', 'options' => $this->settingDefault['order_by']),\n \t\t'order_direction' => array('type' => 'select', 'options' => $this->settingDefault['order_direction']),\n \t);\n\n \t$settingAll = array(\n \t\t'cols' => '3-9'\n \t);\n\n \t//render setting from\n \tTemplateHelper::renderForm($settingForm, $setting, $settingAll);\n TemplateHelper::getTemplate('layout/_extra/add_setting.php', $setting);\n TemplateHelper::getTemplate('layout/_extra/color_picker.php');\n \t}", "title": "" }, { "docid": "8541ba49e4c4489fea4dbf1ebfa056c9", "score": "0.6245047", "text": "public function add_settings_fields()\n\t{\n\t\t$this->add_field(\n\t\t\t'section-info',\n\t\t\t'name',\n\t\t\t'Name',\n\t\t\t'print_field_name',\n\t\t\tarray()\n\t\t);\n\t}", "title": "" }, { "docid": "7165ba379fe9cdce969ac4f0e9bf228c", "score": "0.62232715", "text": "function show_panel()\n\t{\n\t\tglobal $template, $errors, $Cl_root_path;\n\t\t\n\t\t$template->assign_files( array(\n\t\t\t'ACP_MoreContent' => 'ACP/MoreContent' . tplEx\n\t\t) );\n\t\t\n\t\t// get the subsubmode\n\t\t$sub = ( isset( $_GET[ 's' ] ) ) ? strval( $_GET[ 's' ] ) : 'add';\n\t\t\n\t\t\t\n\t\tswitch( $sub )\n\t\t{\n\t\t\tcase 'manage':\n\t\t\t\t$this->manage();\n\t\t\t\tbreak;\n\t\t\tcase 'manage2':\n\t\t\t\t$this->manage2();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$errors->report_error( $this->lang[ 'Wrong_mode' ], CRITICAL_ERROR );\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "9631ff6aff49b53d1ae8d30d792c2f4e", "score": "0.62182945", "text": "public function settings_screen() {\n\t\tglobal ${class_name};\n\t\tdo_action( ${class_name}->token . '_before_settings' );\n\t\tdo_action( $this->token . '_before_settings' );\n\t\tsettings_fields( $this->token );\n\t\tdo_settings_sections( $this->token );\n\t\tdo_action( $this->token . '_after_settings' );\n\t\tdo_action( ${class_name}->token . '_after_settings' );\n\t\tsubmit_button();\n\t}", "title": "" }, { "docid": "0890def7450c4134b8d60df09055872c", "score": "0.6218167", "text": "function settings_section() {\n\t\t}", "title": "" }, { "docid": "201a813401bbd6185fc207ae0742732c", "score": "0.62133837", "text": "function wlms_member_issues_settings_content()\n{\n global $wpdb;\n if( isset($_GET['manage']) && ($_GET['manage'] == 'add-member-issues') )\n {\n wlms_member_issues_settings_content_html();\n }\n else\n {\n wlms_member_issues_settings_list();\n }\n}", "title": "" }, { "docid": "cbbc7f77b66216dbe44acb0bb291fe2c", "score": "0.6197841", "text": "function settings_gui(){\n\t$tabs = new tabs('system_settings');\n\t$tabs->add('capabilities','Brukerroller');\n\t\n\t$tabs->draw();\n\tglobal $hd_active_tab;\n\tswitch($hd_active_tab) {\n\t\tcase 'capabilities':\n\t\t\trequire_once('gui.capabilites.settings.php');\n\t\t\tgui_capas();\n\t\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "da8f56e79626a33b7476d842a7521ed2", "score": "0.6194113", "text": "function pafd_action_settings_page() {\n\n\tglobal $pafd_textdomain;\n\t\n\tregister_setting( 'pafd_options_group', 'pafd_options' );\n\n\tpafd_add_settings_field( 'columns', __( 'Visible columns', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'download_link', __( 'Download link', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'hide_table_header', __( 'Hide table header', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'show_all_revisions', __( 'Show all file revisions', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'show_file_status', __( 'Show file status', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'show_icons', __( 'Show mime-type icons', $pafd_textdomain ) );\n\tpafd_add_settings_field( 'order_by', __( 'Order files by' ), $pafd_textdomain );\n\tpafd_add_settings_field( 'custom_css_code', __( 'Custom CSS code' ), $pafd_textdomain );\n}", "title": "" }, { "docid": "78a4524ebcb52b1f23f21812ea1aadba", "score": "0.6192253", "text": "public function addForm()\n {\n $this->getState()->template = 'displaygroup-form-add';\n $this->getState()->setData([\n 'help' => $this->getHelp()->link('DisplayGroup', 'Add')\n ]);\n }", "title": "" }, { "docid": "4ca1d1d795476761837b102e8acf2178", "score": "0.61829376", "text": "public function bp_advancedsubnav_tab_action() {\n\t\techo $this->get_instance( \\MyVideoRoomExtrasParking\\Library\\SectionTemplates::class )->control_panel_store_advanced();\n\t}", "title": "" }, { "docid": "dc6f6973e30a1a08fe2ac0ac2beedddf", "score": "0.61711764", "text": "public function admin_page() {\n\t\t$transient = get_transient( 'pm-framework-transient' );\n\t\t$has_nav = ( count( $this->options ) <= 1 ) ? ' pm-show-all' : '';\n\t\t$section_id = ( ! empty( $transient['section_id'] ) ) ? $transient['section_id'] : $this->sections[0]['name'];\n\t\t$section_id = wppml_get_var( 'pm-section', $section_id );\n\n\t\techo '<div class=\"pm-framework pm-option-framework\">';\n\n\t\techo '<form method=\"post\" action=\"options.php\" enctype=\"multipart/form-data\" id=\"pmframework_form\">';\n\t\techo '<input type=\"hidden\" class=\"pm-reset\" name=\"wppml_section_id\" value=\"' . $section_id . '\" />';\n\n\t\tif ( $this->settings['ajax_save'] !== true && ! empty( $transient['errors'] ) ) {\n\t\t\tglobal $wppml_errors;\n\n\t\t\t$wppml_errors = $transient['errors'];\n\n\t\t\tif ( ! empty( $wppml_errors ) ) {\n\t\t\t\tforeach ( $wppml_errors as $error ) {\n\t\t\t\t\tif ( in_array( $error['setting'], array( 'general', 'pm-errors' ) ) ) {\n\t\t\t\t\t\techo '<div class=\"pm-settings-error ' . $error['type'] . '\">';\n\t\t\t\t\t\techo '<p><strong>' . $error['message'] . '</strong></p>';\n\t\t\t\t\t\techo '</div>';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsettings_fields( $this->unique );\n\n\t\techo '<header class=\"pm-header\">';\n\t\techo '<h1>' . $this->settings['framework_title'] . '</h1>';\n\t\techo '<fieldset>';\n\n\t\techo ( $this->settings['ajax_save'] ) ? '<span id=\"pm-save-ajax\">' . esc_html__( 'Settings saved.', 'pin-master' ) . '</span>' : '';\n\n\t\tsubmit_button( esc_html__( 'Save', 'pin-master' ), 'primary pm-save', 'save', false, array( 'data-save' => esc_html__( 'Saving...', 'pin-master' ) ) );\n\t\tsubmit_button( esc_html__( 'Restore', 'pin-master' ), 'secondary pm-restore pm-reset-confirm', $this->unique . '[reset]', false );\n\n\t\tif ( $this->settings['show_reset_all'] ) {\n\t\t\tsubmit_button( esc_html__( 'Reset All Options', 'pin-master' ), 'secondary pm-restore pm-warning-primary pm-reset-confirm', $this->unique . '[resetall]', false );\n\t\t}\n\n\t\techo '</fieldset>';\n\t\techo ( empty( $has_nav ) ) ? '<a href=\"#\" class=\"pm-expand-all\"><i class=\"fa fa-eye-slash\"></i> ' . esc_html__( 'show all options', 'pin-master' ) . '</a>' : '';\n\t\techo '<div class=\"clear\"></div>';\n\t\techo '</header>'; // end .pm-header\n\n\t\techo '<div class=\"pm-body' . $has_nav . '\">';\n\n\t\techo '<div class=\"pm-nav\">';\n\n\t\t echo '<ul>';\n\t\tforeach ( $this->options as $key => $tab ) {\n\t\t\tif ( ( isset( $tab['sections'] ) ) ) {\n\t\t\t\t$tab_active = wppml_array_search( $tab['sections'], 'name', $section_id );\n\t\t\t\t$active_style = ( ! empty( $tab_active ) ) ? ' style=\"display: block;\"' : '';\n\t\t\t\t$active_list = ( ! empty( $tab_active ) ) ? ' pm-tab-active' : '';\n\t\t\t\t$tab_icon = ( ! empty( $tab['icon'] ) ) ? '<i class=\"pm-icon ' . $tab['icon'] . '\"></i>' : '';\n\n\t\t\t\techo '<li class=\"pm-sub' . $active_list . '\">';\n\n\t\t\t\techo '<a href=\"#\" class=\"pm-arrow\">' . $tab_icon . $tab['title'] . '</a>';\n\n\t\t\t\techo '<ul' . $active_style . '>';\n\t\t\t\tforeach ( $tab['sections'] as $tab_section ) {\n\t\t\t\t\t$active_tab = ( $section_id == $tab_section['name'] ) ? ' class=\"pm-section-active\"' : '';\n\t\t\t\t\t$icon = ( ! empty( $tab_section['icon'] ) ) ? '<i class=\"pm-icon ' . $tab_section['icon'] . '\"></i>' : '';\n\n\t\t\t\t\techo '<li><a href=\"#\"' . $active_tab . ' data-section=\"' . $tab_section['name'] . '\">' . $icon . $tab_section['title'] . '</a></li>';\n\t\t\t\t}\n\t\t\t\techo '</ul>';\n\n\t\t\t\techo '</li>';\n\t\t\t} else {\n\t\t\t\t$icon = ( ! empty( $tab['icon'] ) ) ? '<i class=\"pm-icon ' . $tab['icon'] . '\"></i>' : '';\n\n\t\t\t\tif ( isset( $tab['fields'] ) ) {\n\t\t\t\t\t$active_list = ( $section_id == $tab['name'] ) ? ' class=\"pm-section-active\"' : '';\n\t\t\t\t\techo '<li><a href=\"#\"' . $active_list . ' data-section=\"' . $tab['name'] . '\">' . $icon . $tab['title'] . '</a></li>';\n\t\t\t\t} else {\n\t\t\t\t\techo '<li><div class=\"pm-seperator\">' . $icon . $tab['title'] . '</div></li>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t echo '</ul>';\n\n\t\techo '</div>'; // end .pm-nav\n\n\t\techo '<div class=\"pm-content\">';\n\n\t\t echo '<div class=\"pm-sections\">';\n\n\t\tforeach ( $this->sections as $section ) {\n\t\t\tif ( isset( $section['fields'] ) ) {\n\t\t\t\t$active_content = ( $section_id == $section['name'] ) ? ' style=\"display: block;\"' : '';\n\t\t\t\techo '<div id=\"pm-tab-' . $section['name'] . '\" class=\"pm-section\"' . $active_content . '>';\n\t\t\t\techo ( isset( $section['title'] ) && empty( $has_nav ) ) ? '<div class=\"pm-section-title\"><h3>' . $section['title'] . '</h3></div>' : '';\n\n\t\t\t\tforeach ( $section['fields'] as $field ) {\n\t\t\t\t\t$this->field_callback( $field );\n\t\t\t\t}\n\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t}\n\n\t\t echo '</div>'; // end .pm-sections\n\n\t\t echo '<div class=\"clear\"></div>';\n\n\t\techo '</div>'; // end .pm-content\n\n\t\techo '<div class=\"pm-nav-background\"></div>';\n\n\t\techo '</div>'; // end .pm-body\n\n\t\techo '<footer class=\"pm-footer\">';\n\t\techo '<div class=\"pm-block-left\">Powered by <a href=\"https://www.codenod.com\">Codenod</a></div>';\n\t\techo '<div class=\"pm-block-right\">Version ' . WPPML_VERSION . '</div>';\n\t\techo '<div class=\"clear\"></div>';\n\t\techo '</footer>'; // end .pm-footer\n\n\t\techo '</form>'; // end form\n\n\t\techo '<div class=\"clear\"></div>';\n\n\t\techo '</div>'; // end .pm-framework\n\t}", "title": "" }, { "docid": "82397dbbfcf020a04ef26dd6bf919f23", "score": "0.61553025", "text": "public function add_settings_tab($settings_tabs){\n $settings_tabs['opening-hours'] = __('Opening Hours', 'woocommerce-opening-hours');\n return $settings_tabs;\n }", "title": "" }, { "docid": "d01a4ab4e60934b4eb07278010de066e", "score": "0.6154787", "text": "function showPageEditorSettingsObject()\n\t{\n\t\tglobal $tpl, $ilTabs, $ilCtrl;\n\t\t\n\t\t$this->addPageEditorSettingsSubTabs();\n\t\t\n\t\tinclude_once(\"./Services/COPage/classes/class.ilPageEditorSettings.php\");\n\t\t$grps = ilPageEditorSettings::getGroups();\n\t\t\n\t\t$this->cgrp = $_GET[\"grp\"];\n\t\tif ($this->cgrp == \"\")\n\t\t{\n\t\t\t$this->cgrp = key($grps);\n\t\t}\n\n\t\t$ilCtrl->setParameter($this, \"grp\", $this->cgrp);\n\t\t$ilTabs->setSubTabActive(\"adve_grp_\".$this->cgrp);\n\t\t\n\t\t$this->initPageEditorForm();\n\t\t$tpl->setContent($this->form->getHtml());\n\t}", "title": "" }, { "docid": "94785b2b0663f325fb54d3d3e722f760", "score": "0.6142548", "text": "public function add_field_settings_js() {\n\n\t\t?>\n\n\t\t<script type=\"text/javascript\">\n\t\t\tjQuery( document ).bind( 'gform_load_field_settings', function ( e, field, form ) {\n\t\t\t\tjQuery( '#field_link_type_preview' ).attr( 'checked', 'preview' === field[ 'linkType' ] );\n\t\t\t\tjQuery( '#field_link_type_direct' ).attr( 'checked', 'direct' === field[ 'linkType' ] );\n\t\t\t\tjQuery( '#field_multiselect' ).attr( 'checked', true === field[ 'multiselect' ] );\n\t\t\t} );\n\t\t</script>\n\n\t\t<?php\n\n\t}", "title": "" }, { "docid": "8ef05e54ff585f8aa075631c1ce2747f", "score": "0.61333966", "text": "public function plugin_page() {\n\t\t$this->setting_api->show_forms();\n\t}", "title": "" }, { "docid": "626aa54984bb26b109a597333f74e2be", "score": "0.6123417", "text": "function cmc_framework_markets_landing_settings() {\n \n $form = array();\n \n for ($i=1; $i<=5; $i++) {\n cmc_framework_markets_landing_settings_tab_section($form, $i);\n }\n \n $form['#submit'][] = 'cmc_framework_markets_landing_process_uploaded_file';\n $form['#validate'][] = 'cmc_framework_markets_landing_validate_uploaded_file';\n \n return system_settings_form($form);\n}", "title": "" }, { "docid": "26e3d0950faf23bc7f90d796c594286d", "score": "0.6120991", "text": "private function add_page_settings_controls() {\n\t\trequire_once( __DIR__ . '/page-settings/manager.php' );\n\t\tnew Page_Settings();\n\t}", "title": "" }, { "docid": "26e3d0950faf23bc7f90d796c594286d", "score": "0.6120991", "text": "private function add_page_settings_controls() {\n\t\trequire_once( __DIR__ . '/page-settings/manager.php' );\n\t\tnew Page_Settings();\n\t}", "title": "" }, { "docid": "4145b7845d004e1ac8582ed20c119bfc", "score": "0.61173284", "text": "public function add_settings_tab($settings_tabs){\n $settings_tabs['opening_hours'] = __('Opening Hours', 'woocommerce-opening-hours');\n return $settings_tabs;\n }", "title": "" }, { "docid": "a00c67f264c77dfb4d9d56448c4ce5f7", "score": "0.6114834", "text": "function admin_init() {\n\t\t\twp_enqueue_script('common');\n\t\t\twp_enqueue_script('wp-lists');\n\t\t\twp_enqueue_script('postbox');\n\n\t\t\t// Group = setings_fields, name of options, validation callback\n\t\t\tregister_setting( 'subpages_as_tabs_options', 'subpages_as_tabs_options', array( $this, 'options_validate' ) );\n\t\t\t// Unique ID, section title displayed, section callback, page name = do_settings_section\n\t\t\tadd_settings_section( 'subpages_tabs_section', '', array( $this, 'main_section' ), 'subpage_tabs_plugin' );\n\t\t\t// Unique ID, Title, function callback, page name = do_settings_section, section name\n\t\t\tadd_settings_field( 'spat_active_tab_background', __( 'Active Tab Background' ), array( $this, 'active_tab_background'), 'subpage_tabs_plugin', 'subpages_tabs_section');\n\t\t\t/**/\n\t\t\tadd_settings_field( 'spat_active_tab_foreground', __('Active Tab Text' ), array( $this, 'active_tab_foreground'), 'subpage_tabs_plugin', 'subpages_tabs_section');\n\t\t\tadd_settings_field( 'spat_inactive_tab_background', __( 'Inactive Tab Background' ), array( $this, 'inactive_tab_background'), 'subpage_tabs_plugin', 'subpages_tabs_section');\n\t\t\tadd_settings_field( 'spat_inactive_tab_foreground', __('Inactive Tab Text' ), array( $this, 'inactive_tab_foreground'), 'subpage_tabs_plugin', 'subpages_tabs_section');\n\n\t\t\tadd_settings_field( 'border', __('Border' ), array( $this, 'border'), 'subpage_tabs_plugin', 'subpages_tabs_section');\n\t\t\t//*/\n\t\t}", "title": "" }, { "docid": "cb1e273e7f243f7f557af41e1dcac920", "score": "0.61035144", "text": "private function createFormsTab()\n {\n $tab = $this->createTab(\n 'forms_tab',\n '__responsive_tab_forms__',\n [\n 'attributes' => [\n 'autoScroll' => true,\n ],\n ]\n );\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 90]);\n $fieldSetLabels = $this->createFieldSet(\n 'labels_fieldset',\n '__responsive_tab_forms_fieldset_labels__',\n ['attributes' => $attributes]\n );\n\n $fieldSetLabels->addElement(\n $this->createTextField(\n 'label-font-size',\n '@label-font-size',\n $this->themeFontDefaults['label-font-size']\n )\n );\n $fieldSetLabels->addElement(\n $this->createColorPickerField(\n 'label-color',\n '@label-color',\n $this->themeColorDefaults['label-color']\n )\n );\n\n $tab->addElement($fieldSetLabels);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 160]);\n $fieldSetFormBase = $this->createFieldSet(\n 'form_base_fieldset',\n '__responsive_tab_forms_fieldset_global__',\n ['attributes' => $attributes]\n );\n\n $fieldSetFormBase->addElement(\n $this->createTextField(\n 'input-font-size',\n '@input-font-size',\n $this->themeFontDefaults['input-font-size']\n )\n );\n $fieldSetFormBase->addElement(\n $this->createColorPickerField(\n 'input-bg',\n '@input-bg',\n $this->themeColorDefaults['input-bg']\n )\n );\n $fieldSetFormBase->addElement(\n $this->createColorPickerField(\n 'input-color',\n '@input-color',\n $this->themeColorDefaults['input-color']\n )\n );\n $fieldSetFormBase->addElement(\n $this->createColorPickerField(\n 'input-placeholder-color',\n '@input-placeholder-color',\n $this->themeColorDefaults['input-placeholder-color']\n )\n );\n $fieldSetFormBase->addElement(\n $this->createColorPickerField(\n 'input-border',\n '@input-border',\n $this->themeColorDefaults['input-border']\n )\n );\n\n $tab->addElement($fieldSetFormBase);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 240]);\n $fieldSetFormStates = $this->createFieldSet(\n 'form_states_fieldset',\n '__responsive_tab_forms_fieldset_states__',\n ['attributes' => $attributes]\n );\n\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-focus-bg',\n '@input-focus-bg',\n $this->themeColorDefaults['input-focus-bg']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-focus-border',\n '@input-focus-border',\n $this->themeColorDefaults['input-focus-border']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-focus-color',\n '@input-focus-color',\n $this->themeColorDefaults['input-focus-color']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-error-bg',\n '@input-error-bg',\n $this->themeColorDefaults['input-error-bg']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-error-border',\n '@input-error-border',\n $this->themeColorDefaults['input-error-border']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-error-color',\n '@input-error-color',\n $this->themeColorDefaults['input-error-color']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-success-bg',\n '@input-success-bg',\n $this->themeColorDefaults['input-success-bg']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-success-border',\n '@input-success-border',\n $this->themeColorDefaults['input-success-border']\n )\n );\n $fieldSetFormStates->addElement(\n $this->createColorPickerField(\n 'input-success-color',\n '@input-success-color',\n $this->themeColorDefaults['input-success-color']\n )\n );\n\n $tab->addElement($fieldSetFormStates);\n\n return $tab;\n }", "title": "" }, { "docid": "19e648431e73d28b3aa50950f3cfa152", "score": "0.6095345", "text": "function settings_form($current)\n\t{\n\t\tglobal $DB, $DSP, $LANG, $IN, $PREFS, $SESS;\n\n\t\t// create a local variable for the site settings\n\t\t$settings = $this->_get_settings();\n\n\t\t$lgau_query = $DB->query(\"SELECT class FROM exp_extensions WHERE class = 'Lg_addon_updater_ext' AND enabled = 'y' LIMIT 1\");\n\t\t$lgau_enabled = $lgau_query->num_rows ? TRUE : FALSE;\n\n\t\t$DSP->title = $LANG->line('extension_settings');\n\n\t\t$DSP->crumbline = TRUE;\n\t\t$DSP->crumb = $DSP->anchor(BASE.AMP.'C=admin'.AMP.'area=utilities', $LANG->line('utilities')).\n\t\t$DSP->crumb_item($DSP->anchor(BASE.AMP.'C=admin'.AMP.'M=utilities'.AMP.'P=extensions_manager', $LANG->line('extensions_manager')));\n\t\t$DSP->crumb .= $DSP->crumb_item(\"{$this->name} {$this->version}\");\n\n\t\t$DSP->right_crumb($LANG->line('disable_extension'), BASE.AMP.'C=admin'.AMP.'M=utilities'.AMP.'P=toggle_extension_confirm'.AMP.'which=disable'.AMP.'name='.$IN->GBL('name'));\n\n\t\t$DSP->body = \"<div class='mor settings-form'>\";\n\t\t$DSP->body .= \"<p class='donate paypal'>\n\t\t\t\t\t\t\t<a rel='external'\"\n\t\t\t\t\t\t\t\t. \"href='https://www.paypal.com/cgi-bin/webscr?\"\n\t\t\t\t\t\t\t\t\t. \"cmd=_donations&amp;\"\n\t\t\t\t\t\t\t\t\t. \"business=\".rawurlencode($this->paypal[\"account\"]).\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"item_name=\".rawurlencode($this->name . \" Development: Donation\").\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"amount=\".rawurlencode($this->paypal[\"donation_amount\"]).\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"no_shipping=1&amp;return=\".rawurlencode($this->paypal[\"return_url\"]).\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"cancel_return=\".rawurlencode($this->paypal[\"cancel_url\"]).\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"no_note=1&amp;\"\n\t\t\t\t\t\t\t\t\t. \"tax=0&amp;\"\n\t\t\t\t\t\t\t\t\t. \"currency_code=\".$this->paypal[\"currency_code\"].\"&amp;\"\n\t\t\t\t\t\t\t\t\t. \"lc=US&amp;\"\n\t\t\t\t\t\t\t\t\t. \"bn=PP%2dDonationsBF&amp;\"\n\t\t\t\t\t\t\t\t\t. \"charset=UTF%2d8'\"\n\t\t\t\t\t\t\t\t.\"class='button'\n\t\t\t\t\t\t\t\ttarget='_blank'>\n\t\t\t\t\t\t\t\tSupport this addon by donating via PayPal.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</p>\";\n\t\t$DSP->body .= $DSP->heading($this->name . \" <small>{$this->version}</small>\");\n\t\tob_start(); include(PATH_LIB.'lg_add_sitename/views/lg_add_sitename/form_settings.php'); $DSP->body .= ob_get_clean();\n\t\t$DSP->body .= \"</div>\";\n\t}", "title": "" }, { "docid": "0776d7315b176f3080152b92e9b97bee", "score": "0.60924405", "text": "function ms_settings_section() {\n?>\n<h3><?php _e( 'Post Revision Workflow', $this->text_domain ) ?></h3>\n<table class=\"form-table\">\n\t<tbody>\n \t<tr valign=\"top\">\n \t<th scope=\"row\">\n \t<label for=\"dpn_reviewers\"><?php _e( 'Default email address for post revision workflow notification:', $this->text_domain ) ?></label>\n </th>\n <td>\n \t<?php $this->settings_field() ?>\n </td>\n </tr>\n </tbody>\n</table>\n<?php\n\t\t}", "title": "" }, { "docid": "f674abaf5473b2786196326af676e6a2", "score": "0.6089206", "text": "public function managesettingsview() {\r\n $this->logger->info(\"Action Manage Settings View \");\r\n $this->template->display('displaylistsettings', $this->combovalue, 'settings', '', '');\r\n }", "title": "" }, { "docid": "5cf79f45dd1444eab8d2dad1e3d8bb0d", "score": "0.6086283", "text": "function settings_page() {\n\t\textract( $this->group, EXTR_OVERWRITE ); ?>\n\n\t<div class=\"wrap\">\n\t\t<?php screen_icon(); ?>\n\t\t<h2><?php echo esc_html( $page_title ) ?></h2>\n\t\t<?php do_action( \"{$prefix}_kc_settings_page_before\", $this->group ) ?>\n\t\t<form action=\"options.php\" method=\"post\" id=\"kc-settings-form\">\n\t\t\t<?php\n\t\t\t\t# The hidden fields\n\t\t\t\tsettings_fields( \"{$prefix}_settings\" );\n\n\t\t\t\tswitch ( $this->group['display'] ) {\n\t\t\t\t\tcase 'metabox' :\n\t\t\t\t\t\t$this->metabox->display();\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'plain' :\n\t\t\t\t\t\tforeach ( $this->group['options'] as $section ) :\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<h3><?php echo esc_html( $section['title'] ) ?></h3>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t$this->settings_section( $section );\n\t\t\t\t\t\tendforeach;\n\t\t\t\t\t\tsubmit_button( __( 'Save Changes' ) );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t?>\n\t\t</form>\n\t\t<?php do_action( \"{$prefix}_kc_settings_page_after\", $this->group ) ?>\n\t</div>\n\t<?php }", "title": "" }, { "docid": "642bb291a25e2163e97f78c0b50d0cf8", "score": "0.60860384", "text": "function settingsForm($field, $instance, $view_mode, $form, &$form_state);", "title": "" }, { "docid": "6fb6092be9b0fc92301dded1e481ed39", "score": "0.6082181", "text": "function setTabs(){\n global $ilTabs, $ilCtrl, $ilAccess, $ilLocator;\n\n // show current quiz round inlcuding link and QR code (deadline)\n if ($ilAccess->checkAccess(\"read\", \"\", $this->object->getRefId())){\n $ilTabs->addTab(\"showCurrentRound\", $this->txt(\"tabmenu_showCurrentRound\"), $ilCtrl->getLinkTarget($this, \"showCurrentRound\"));\n }\n\n // tab for the \"edit quiz\" command\n if ($ilAccess->checkAccess(\"write\", \"\", $this->object->getRefId())){\n $ilTabs->addTab(\"editQuiz\", $this->txt(\"tabmenu_edit_quiz\"), $ilCtrl->getLinkTarget($this, \"editQuiz\"));\n }\n\n // show round results\n if ($ilAccess->checkAccess(\"write\", \"\", $this->object->getRefId())){\n $ilTabs->addTab(\"showResults\", $this->txt(\"tabmenu_show_result\"), $ilCtrl->getLinkTarget($this, \"showResults\"));\n }\n\n // a \"properties\" tab\n if ($ilAccess->checkAccess(\"write\", \"\", $this->object->getRefId())){\n $ilTabs->addTab(\"properties\", $this->txt(\"tabmenu_properties\"), $ilCtrl->getLinkTarget($this, \"editProperties\"));\n $this->addPermissionTab();\n }\n\n // information Tab\n if ($ilAccess->checkAccess(\"write\", \"\", $this->object->getRefId())){\n $ilTabs->addTab(\"info\", $this->txt(\"tabmenu_info\"), $ilCtrl->getLinkTarget($this, \"info\"));\n }\n\n }", "title": "" }, { "docid": "ab77dea46e2299b96b2bbab79d6b284f", "score": "0.60790277", "text": "public function drawSettings (\n\t)\t\t\t\t\t// RETURNS <void>\n\t\n\t// $contentForm->drawSettings();\n\t{\n\t\techo '\n\t\t<input type=\"text\" name=\"title\" style=\"width:97%; height:38px; font-size:32px; font-weight:bold; margin-bottom:10px;\" placeholder=\"Article Title . . .\" value=\"' . $this->contentData['title'] . '\" maxlength=\"72\" />\n\t\t\n\t\t<div style=\"border:solid 1px #bbbbbb; font-size:18px; margin-bottom:10px; width:97%; padding-left:14px;\">';\n\t\t\n\t\tif($this->urlUpdate)\n\t\t{\n\t\t\techo SITE_URL . '/' . ($this->urlPrefix ? trim($this->urlPrefix, \"/\") . '/' : \"\") . '\n\t\t\t<input type=\"text\" name=\"url_slug\" style=\"border:none; color:#5abcde; height:26px; font-size:18px; font-weight:bold; padding-left:0px; min-width:280px;\" value=\"' . str_replace($this->urlPrefix, \"\", $this->contentData['url_slug']) . '\" maxlength=\"72\" placeholder=\"enter-desired-url-here...\" maxlength=\"' . $this->urlLength . '\" />';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo '<a href=\"/' . $this->contentData['url_slug'] . '\">' . SITE_URL . '/' . $this->contentData['url_slug'] . '</a>';\n\t\t}\n\t\t\n\t\techo '\n\t\t</div>';\n\t\t\n\t\t// Display the Metadata Block\n\t\techo '\n\t\t<div id=\"setting-box\" style=\"margin-top:22px;\"><fieldset style=\"border:solid 1px #bbbbbb; overflow:hidden;\"><legend style=\"font-size:1.2em;\">Article Settings</legend>';\n\t\t\n\t\t// Show the Thumbnail, if applicable\n\t\techo '\n\t\t<span style=\"font-weight:bold;\">Current Thumbnail:</span>\n\t\t<div style=\"position:relative; height:200px;\">';\n\t\t\n\t\tif($this->contentData['thumbnail'])\n\t\t{\n\t\t\techo '\n\t\t\t<img src=\"' . $this->contentData['thumbnail'] . '?cache=' . time() . '\" style=\"position:absolute; left:0px; top:0px;\" />';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo '\n\t\t\t<div style=\"position:absolute; left:0px; top:0px; width:320px; height:180px; background-color:#ddffff; border:solid 1px #cccccc;\"></div>';\n\t\t}\n\t\t\n\t\techo '\n\t\t\t<img src=\"' . CDN . '/images/upload-thumb.png\" style=\"position:absolute; left:0px; top:0px;\" />\n\t\t\t<div style=\"position:absolute; left:0px; top:0px; height:60px; width:100px;\">\n\t\t\t\t<input type=\"file\" name=\"thumb_image\" value=\"\" style=\"height:60px; width:100px; overflow:hidden; opacity:0; cursor:pointer;\" />\n\t\t\t</div>\n\t\t</div>';\n\t\t\n\t\t// Update the Description\n\t\techo '\n\t\t<div>\n\t\t\t<strong>Description:</strong><br />\n\t\t\t<textarea name=\"description\" style=\"width:95%;\" maxlength=\"255\">' . $this->contentData['description'] . '</textarea>\n\t\t</div>';\n\t\t\n\t\t// Update the Author\n\t\tif(Me::$clearance >= 6)\n\t\t{\n\t\t\t$authorData = User::get($this->contentData['uni_id'], \"handle\");\n\t\t\t\n\t\t\techo '\n\t\t\t<div style=\"margin-top:12px;\">\n\t\t\t\t<strong>Author:</strong><br />\n\t\t\t\t<input type=\"text\" name=\"author\" maxlength=\"22\" value=\"' . $authorData['handle'] . '\" />\n\t\t\t</div>';\n\t\t\t\n\t\t\t// Update the Timestamp\n\t\t\techo '\n\t\t\t<div style=\"margin-top:12px;\">\n\t\t\t\t<strong>Date Posted:</strong><br />\n\t\t\t\t<input type=\"text\" name=\"date_posted\" value=\"' . $this->contentData['date_posted'] . '\" />\n\t\t\t</div>';\n\t\t}\n\t\t\n\t\t// Display the hashtag dropdown\n\t\tif(Me::$clearance >= 6 or $this->openPost)\n\t\t{\n\t\t\tif($dropHTML = ContentHashtags::hashtagFormDropdown($this->contentData['id'], $this->contentData['primary_hashtag']))\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t<div style=\"margin-top:12px;\">\n\t\t\t\t<strong>Primary Hashtag:</strong><br />\n\t\t\t\t<select name=\"primary_hashtag\">\n\t\t\t\t\t<option value=\"\">-- Select Primary Hashtag --</option>\n\t\t\t\t\t' . $dropHTML . '\n\t\t\t\t</select>\n\t\t\t\t</div>';\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Show several options that only editors are allowed to use\n\t\tif(Me::$clearance >= 6)\n\t\t{\n\t\t\t// Show the comment dropdown, if allowed\n\t\t\tif($this->comments > 0)\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t<div style=\"margin-top:12px;\">\n\t\t\t\t\t<strong>Comments:</strong><br />\n\t\t\t\t\t<select name=\"comments\">' . str_replace('value=\"' . $this->contentData['comments'] . '\"', 'value=\"' . $this->contentData['comments'] . '\" selected', '\n\t\t\t\t\t\t<option value=\"' . Content::COMMENTS_STANDARD . '\">Standard Comments</option>\n\t\t\t\t\t\t<option value=\"' . Content::COMMENTS_MODERATE . '\">Comments Need Approval</option>\n\t\t\t\t\t\t<option value=\"' . Content::COMMENTS_NO_POSTING . '\">Freeze Comments</option>\n\t\t\t\t\t\t<option value=\"' . Content::COMMENTS_DISABLED . '\">Don\\'t Show Comments</option>\n\t\t\t\t\t</select>') . '\n\t\t\t\t</div>';\n\t\t\t}\n\t\t\t\n\t\t\t// Show the voting dropdown, if allowed\n\t\t\tif($this->voting > 0)\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t<div style=\"margin-top:12px;\">\n\t\t\t\t\t<strong>Voting:</strong><br />\n\t\t\t\t\t<select name=\"voting\">' . str_replace('value=\"' . $this->contentData['voting'] . '\"', 'value=\"' . $this->contentData['voting'] . '\" selected', '\n\t\t\t\t\t\t<option value=\"' . Content::VOTING_STANDARD . '\">Standard Voting</option>\n\t\t\t\t\t\t<option value=\"' . Content::VOTING_FREEZE . '\">Freeze Voting</option>\n\t\t\t\t\t\t<option value=\"' . Content::VOTING_DISABLED . '\">No Voting</option>\n\t\t\t\t\t</select>') . '\n\t\t\t\t</div>';\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Show the setting modules\n\t\tforeach($this->settings as $module => $bool)\n\t\t{\n\t\t\tif(method_exists(\"Module\" . $module, \"draw\"))\n\t\t\t{\n\t\t\t\tcall_user_func(array(\"Module\" . $module, \"draw\"), $this);\n\t\t\t}\n\t\t}\n\t\t\n\t\techo '\n\t\t</div>\n\t\t\n\t\t<script>\n\t\t\tvar setbox = document.getElementById(\"setting-box\");\n\t\t\t\n\t\t\tsetbox.insertAdjacentHTML(\"beforebegin\", \"<div><a href=\\'javascript:void(0)\\' onclick=\\'showSettingBox();\\' style=\\'border:solid 1px #bbbbbb; border-radius:5px; padding:8px; margin-top:2px; margin-bottom:8px; display:inline-block;\\'><span class=\\'icon-settings\\'></span> Article Settings</a></div>\");\n\t\t\t\n\t\t\tfunction showSettingBox()\n\t\t\t{\n\t\t\t\tif(setbox.style.display == \"none\")\n\t\t\t\t{\n\t\t\t\t\tsetbox.style.display = \"inline\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetbox.style.display = \"none\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tshowSettingBox();\n\t\t</script>';\n\t}", "title": "" }, { "docid": "76fbf097343b5d6164cabf12caa64c50", "score": "0.607791", "text": "public function page_init()\n {\n register_setting(\n 'mj_groups_fields', // group name\n 'mj_option_theme',\n array($this, 'sanitize') // sanitize\n );\n\n add_settings_section(\n 'section_default',\n '',\n '',\n 'config-theme-options'\n );\n\n foreach ($this->formRenderInputs as $key => $value) {\n add_settings_field(\n $value['args']['atributos']['name'],\n $value['titulo'],\n array($this, 'render_field_input'),\n 'config-theme-options',\n 'section_default',\n array('valores' => $value)\n );\n }\n }", "title": "" }, { "docid": "9f835d5c519485507766e7ac50f22f36", "score": "0.60737085", "text": "function settings_page() { include($this->plugin_basename . '/core/admin/settings.php'); }", "title": "" }, { "docid": "534aae2a2ac49786c8d12489eddd7dec", "score": "0.6071209", "text": "function jb_register_settings() {\n\tregister_setting( JB_SETTINGS_FIELD, JB_SETTINGS_FIELD );\n\tadd_option( JB_SETTINGS_FIELD , jb_option_defaults() );\n\tadd_settings_section('jb_main','Main Settings', 'jb_main_section_text', JB_SETTINGS_FIELD );\n\tadd_settings_field('jb_featured_cat', 'Featured Category', 'jb_featured_cat_slug_setting', JB_SETTINGS_FIELD , 'jb_main');\n\tadd_settings_field('jb_featured_content_limit', 'Homepage Featured Post Word Count Limit', 'jb_featured_content_limit_setting', JB_SETTINGS_FIELD , 'jb_main');\n\tadd_settings_field('jb_post_content_limit', 'Post Word Count Limit', 'jb_post_content_limit_setting', JB_SETTINGS_FIELD , 'jb_main');\n}", "title": "" }, { "docid": "9aac01cbc6e0f2a22a1ba9571484dfb8", "score": "0.6066815", "text": "public function form()\n {\n $this->switch('footer_remove', Support::trans('main.footer_remove'))\n ->default(admin_setting('footer_remove'));\n $defaultColors = [\n 'default' => '墨蓝',\n 'blue' => '蓝',\n 'blue-light' => '亮蓝',\n 'green' => '墨绿',\n ];\n foreach (explode(\",\", ServiceProvider::setting('additional_theme_colors')) as $value) {\n if (!empty($value)) {\n [$k, $v] = explode(\":\", $value);\n $defaultColors[$k] = $v;\n }\n }\n\n $this->radio('theme_color', Support::trans('main.theme_color'))\n ->options($defaultColors)\n ->default(admin_setting('theme_color'));\n $this->radio('sidebar_style', Support::trans('main.sidebar_style'))\n ->options([\n 'default' => '默认',\n 'sidebar-separate' => '菜单分离',\n 'horizontal_menu' => '水平菜单'\n ])\n ->default(admin_setting('sidebar_style'));\n $this->switch('grid_row_actions_right', Support::trans('main.grid_row_actions_right'))\n ->help('启用后表格行操作按钮将永远贴着最右侧。')\n ->default(admin_setting('grid_row_actions_right'));\n }", "title": "" }, { "docid": "aadb757f379941d4e84d1342d4aa8a7c", "score": "0.60624146", "text": "private function createMainConfigTab()\n {\n $tab = $this->createTab(\n 'responsiveMain',\n '__responsive_tab_header__',\n [\n 'attributes' => [\n 'layout' => 'anchor',\n 'autoScroll' => true,\n 'padding' => '0',\n 'defaults' => ['anchor' => '100%'],\n ],\n ]\n );\n\n $fieldSet = $this->createFieldSet(\n 'bareGlobal',\n '__global_configuration__',\n [\n 'attributes' => [\n 'padding' => '10',\n 'margin' => '5',\n 'layout' => 'anchor',\n 'defaults' => ['labelWidth' => 155, 'anchor' => '100%'],\n ],\n ]\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'offcanvasCart',\n '__offcanvas_cart__',\n true,\n $this->getLabelAttribute(\n 'offcanvas_cart_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'offcanvasOverlayPage',\n '__offcanvas_move_method__',\n true,\n $this->getLabelAttribute(\n 'offcanvas_move_method_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'focusSearch',\n '__focus_search__',\n false,\n $this->getLabelAttribute(\n 'focus_search_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'displaySidebar',\n '__display_sidebar__',\n true,\n $this->getLabelAttribute(\n 'display_sidebar_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'sidebarFilter',\n '__show_filter_in_sidebar__',\n false,\n $this->getLabelAttribute(\n 'show_filter_in_sidebar_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'checkoutHeader',\n '__checkout_header__',\n true,\n $this->getLabelAttribute(\n 'checkout_header_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'checkoutFooter',\n '__checkout_footer__',\n true,\n $this->getLabelAttribute(\n 'checkout_footer_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'infiniteScrolling',\n '__enable_infinite_scrolling__',\n true,\n $this->getLabelAttribute(\n 'enable_infinite_scrolling_description'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createNumberField(\n 'infiniteThreshold',\n '__infinite_threshold__',\n 4,\n $this->getLabelAttribute(\n 'infinite_threshold_description',\n 'supportText'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createSelectField(\n 'lightboxZoomFactor',\n '__lightbox_zoom_factor__',\n 0,\n [\n ['value' => 0, 'text' => '__lightbox_zoom_factor_auto__'],\n ['value' => 1, 'text' => '__lightbox_zoom_factor_none__'],\n ['value' => 2, 'text' => '__lightbox_zoom_factor_2x__'],\n ['value' => 3, 'text' => '__lightbox_zoom_factor_3x__'],\n ['value' => 5, 'text' => '__lightbox_zoom_factor_5x__'],\n ],\n $this->getLabelAttribute(\n 'lightbox_zoom_factor_description',\n 'supportText'\n )\n )\n );\n\n $fieldSet->addElement(\n $this->createTextField(\n 'appleWebAppTitle',\n '__apple_web_app_title__',\n '',\n ['attributes' => ['lessCompatible' => false]]\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'ajaxVariantSwitch',\n '__ajax_variant_switch__',\n true,\n ['attributes' => [\n 'lessCompatible' => false,\n 'boxLabel' => Shopware()->Snippets()->getNamespace('themes/bare/backend/config')->get('ajax_variant_switch_description'),\n ]]\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'asyncJavascriptLoading',\n '__async_javascript_loading__',\n true,\n ['attributes' => [\n 'lessCompatible' => false,\n 'boxLabel' => Shopware()->Snippets()->getNamespace('themes/bare/backend/config')->get('async_javascript_loading_description'),\n ]]\n )\n );\n\n $fieldSet->addElement(\n $this->createCheckboxField(\n 'ajaxEmotionLoading',\n '__ajax_emotion_loading__',\n true,\n ['attributes' => [\n 'lessCompatible' => false,\n 'boxLabel' => Shopware()->Snippets()->getNamespace('themes/bare/backend/config')->get('ajax_emotion_loading_description'),\n ]]\n )\n );\n\n $tab->addElement($fieldSet);\n\n $fieldSet = $this->createFieldSet(\n 'responsiveGlobal',\n '__advanced_settings__',\n [\n 'attributes' => [\n 'padding' => '10',\n 'margin' => '5',\n 'layout' => 'anchor',\n 'defaults' => ['anchor' => '100%', 'labelWidth' => 155],\n ],\n ]\n );\n\n $fieldSet->addElement(\n $this->createTextAreaField(\n 'additionalCssData',\n '__additional_css_data__',\n '',\n ['attributes' => ['xtype' => 'textarea', 'lessCompatible' => false], 'help' => '__additional_css_data_description__']\n )\n );\n\n $fieldSet->addElement(\n $this->createTextAreaField(\n 'additionalJsLibraries',\n '__additional_js_libraries__',\n '',\n ['attributes' => ['xtype' => 'textarea', 'lessCompatible' => false], 'help' => '__additional_js_libraries_description__']\n )\n );\n\n $tab->addElement($fieldSet);\n\n return $tab;\n }", "title": "" }, { "docid": "c9ee22c145bde111835a7e6480e0c585", "score": "0.6059215", "text": "public function settingsPage() {\n require_once 'form.phtml';\n }", "title": "" }, { "docid": "ff50b28e0613b6c15fb93582baf3c7f1", "score": "0.60591346", "text": "private function loadForm()\n {\n // init settings form\n $this->frm = new Form('settings');\n\n // add festival year\n $this->frm->addText('year', $this->get('fork.settings')->get($this->URL->getModule(), 'year'));\n\n // add fields for pagination\n $this->frm->addDropdown(\n 'overview_num_items',\n array_combine(range(1, 30), range(1, 30)),\n $this->get('fork.settings')->get($this->URL->getModule(), 'overview_num_items', 10)\n );\n $this->frm->addDropdown(\n 'recent_festival_list_num_items',\n array_combine(range(1, 30), range(1, 30)),\n $this->get('fork.settings')->get($this->URL->getModule(), 'recent_festival_list_num_items', 5)\n );\n\n // add functions fields\n $this->frm->addCheckbox('cover_image_enabled', $this->get('fork.settings')->get($this->URL->getModule(), 'cover_image_enabled', false));\n $this->frm->addCheckbox('cover_image_required', $this->get('fork.settings')->get($this->URL->getModule(), 'cover_image_required', false));\n $this->frm->addCheckbox('multi_images_enabled', $this->get('fork.settings')->get($this->URL->getModule(), 'multi_images_enabled', false));\n\n // add god user only fields\n if ($this->godUser) {\n $this->frm->addText('image_size_limit', (float) $this->get('fork.settings')->get($this->URL->getModule(), 'image_size_limit', 10));\n }\n }", "title": "" }, { "docid": "1aad636c433408f349260d119efa56a2", "score": "0.6050087", "text": "function commerce_oz_eway_3p_settings_form($settings = NULL) {\n\n $form = array();\n \n\n\t$logopath = '/' . drupal_get_path('module', 'commerce_oz') . '/image/eway_68.png';\n\t\n\t$descText = '<a href=\"http://www.eway.com.au\"><img src=\"' . $logopath . '\" align =\"left\" /></a>Payment Method for the <a href=\"http://www.eway.com.au/how-it-works/what-products-are-included-\">eWay Shared</a> (3 party) provided by <a href=\"http://www.eway.com.au/company\">eWay Payment Service</a> (Australia).<br />No settings are provided here.';\n\n $form['commerce_oz_intro_settings'] = array(\n '#type' => 'fieldset',\n '#title' => t('eWay Shared'),\n '#collapsible' => FALSE, \n \t'#collapsed' => FALSE,\n '#description' => t($descText),\n );\n\n return $form;\n}", "title": "" }, { "docid": "1b060b7bc5a5e0cad6ae58ea06b2fd7a", "score": "0.6046356", "text": "public static function admin_init() {\n\n register_setting(\n 'fau_cris_options', // Option group\n self::option_name, // Option name\n array(__CLASS__, 'sanitize') // Sanitize Callback\n );\n\n if (isset($_GET))\n $tab = self::current_tab($_GET);\n switch($tab) {\n case 'general' :\n default:\n // Form Settings 1\n add_settings_section(\n 'cris_section', // ID\n '', // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_org_nr', // ID\n __('CRIS-OrgNr.', 'fau-cris'), // Title\n array(__CLASS__, 'cris_textbox_callback'), // Callback\n 'fau_cris_options', // Page\n 'cris_section', // Section\n array(\n 'name' => 'cris_org_nr',\n 'description' => __('Sie können auch mehrere Organisationsnummern &ndash; durch Komma getrennt &ndash; eingeben.', 'fau-cris')\n )\n );\n break;\n case 'layout' :\n add_settings_section(\n 'cris_publications_section', // ID\n __('Publikationen', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_pub_order', __('Reihenfolge der Publikationen', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_pub_order',\n 'description' => __('Wenn Sie die Publikationsliste nach Publikationstypen geordnet ausgeben, können Sie hier angeben, in welcher Reihenfolge die Typen aufgelistet werden. Eine Liste aller Typen finden Sie im Hilfemenü unter \"Shortcode Publikationen\". Ein Eintrag pro Zeile. ', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_pub_subtypes_order', __('Reihenfolge der Publikationen-Subtypen unter \"Andere\"', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_pub_subtypes_order',\n //'description' => __('Wenn Sie die Publikationsliste nach Publikationstypen geordnet ausgeben, können Sie hier angeben, in welcher Reihenfolge die Typen aufgelistet werden. Eine Liste aller Typen finden Sie im Hilfemenü unter \"Shortcode Publikationen\". Ein Eintrag pro Zeile. ', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_doi', __('DOI-Link', 'fau-cris'), array(__CLASS__, 'cris_check_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_doi',\n 'description' => __('Soll auch im APA- und MLA-Zitierstil (wenn vorhanden) für jede Publikation ein DOI-Link angezeigt werden?', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_url', __('URL', 'fau-cris'), array(__CLASS__, 'cris_check_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_url',\n 'description' => __('Soll auch im APA- und MLA-Zitierstil (wenn vorhanden) ein Link zu einer Website angezeigt werden?', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_oa', __('OA-Icon', 'fau-cris'), array(__CLASS__, 'cris_check_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_oa',\n 'description' => __('Sollen Publikationen auch im APA- und MLA-Zitierstil als Open Access gekennzeichnet werden?', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_bibtex', __('BibTeX-Link', 'fau-cris'), array(__CLASS__, 'cris_check_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_bibtex',\n 'description' => __('Soll für jede Publikation ein Link zum BibTeX-Export angezeigt werden?', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_univis', __('Autoren verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_publications_section', array(\n 'name' => 'cris_univis',\n 'options' => array(\n 'person' => __('Autoren mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Autoren mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n add_settings_field (\n 'cris_name_order_plugin',\n __('Namen im FAU-Person-Plugin', 'fau-cris'),\n array(__CLASS__, 'cris_select_callback'),\n 'fau_cris_options',\n 'cris_publications_section',\n array(\n 'name' => 'cris_name_order_plugin',\n 'description' => __('In welcher Reihenfolge sind die Namen im FAU-Person-Plugin angelegt?', 'fau-cris'),\n 'options' => array(\n 'firstname-lastname' => __('Vorname Nachname', 'fau-cris'),\n 'lastname-firstname' => __('Nachname, Vorname','fau-cris'))\n )\n );\n add_settings_section(\n 'cris_awards_section', // ID\n __('Auszeichnungen', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_award_order', __('Reihenfolge der Auszeichnungen', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_awards_section', array(\n 'name' => 'cris_award_order',\n 'description' => __('Siehe Reihenfolge der Publikationen. Nur eben für die Auszeichnungen.', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_award_link', __('Preisträger verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_awards_section', array(\n 'name' => 'cris_award_link',\n 'options' => array(\n 'person' => __('Preisträger mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Preisträger mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n add_settings_section(\n 'cris_fields_section', // ID\n __('Forschungsbereiche', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_fields_num_pub', // ID\n __('Anzahl Publikationen', 'fau-cris'), // Title\n array(__CLASS__, 'cris_textbox_callback'), // Callback\n 'fau_cris_options', // Page\n 'cris_fields_section', // Section\n array(\n 'name' => 'cris_fields_num_pub',\n 'description' => __('Maximale Anzahl der Publikationen, die in der Detailansicht eines Forschungsbereichs angezeigt werden.', 'fau-cris')\n )\n );\n\t add_settings_field(\n\t\t 'cris_field_link', __('Kontaktpersonen verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_fields_section', array(\n\t\t\t 'name' => 'cris_field_link',\n\t\t\t 'options' => array(\n\t\t\t\t 'person' => __('Kontaktpersonen mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n\t\t\t\t 'cris' => __('Kontaktpersonen mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n\t\t\t\t 'none' => __('keinen Link setzen', 'fau-cris'))\n\t\t )\n\t );\n\t add_settings_section(\n 'cris_projects_section', // ID\n __('Forschungsprojekte', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_project_order', __('Reihenfolge der Forschungsprojekte', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_projects_section', array(\n 'name' => 'cris_project_order',\n 'description' => __('Siehe Reihenfolge der Publikationen. Nur eben für die Forschungsprojekte.', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_project_link', __('Projektbeteiligte verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_projects_section', array(\n 'name' => 'cris_project_link',\n 'options' => array(\n 'person' => __('Projektleiter und -beteiligte mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Projektleiter und -beteiligte mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n add_settings_section(\n 'cris_patents_section', // ID\n __('Patente', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_patent_order', __('Reihenfolge der Patente', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_patents_section', array(\n 'name' => 'cris_patent_order',\n 'description' => __('Siehe Reihenfolge der Publikationen. Nur eben für die Patente.', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_patent_link', __('Patentinhaber verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_patents_section', array(\n 'name' => 'cris_patent_link',\n 'options' => array(\n 'person' => __('Patentinhaber mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Patentinhaber mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n add_settings_section(\n 'cris_activities_section', // ID\n __('Aktivitäten', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_activities_order', __('Reihenfolge der Aktivitäten', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_activities_section', array(\n 'name' => 'cris_activities_order',\n 'description' => __('Siehe Reihenfolge der Publikationen. Nur eben für die Aktivitäten.', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_activities_link', __('Personen verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_activities_section', array(\n 'name' => 'cris_activities_link',\n 'options' => array(\n 'person' => __('Personen mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Personen mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n add_settings_section(\n 'cris_standardizations_section', // ID\n __('Standardisierungen', 'fau-cris'), // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_standardizations_order', __('Reihenfolge der Standardisierungen', 'fau-cris'), array(__CLASS__, 'cris_textarea_callback'), 'fau_cris_options', 'cris_standardizations_section', array(\n 'name' => 'cris_standardizations_order',\n 'description' => __('Siehe Reihenfolge der Publikationen. Nur eben für die Standardisierungen.', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_standardizations_link', __('Personen verlinken', 'fau-cris'), array(__CLASS__, 'cris_radio_callback'), 'fau_cris_options', 'cris_standardizations_section', array(\n 'name' => 'cris_standardizations_link',\n 'options' => array(\n 'person' => __('Personen mit ihrer Personen-Detailansicht im FAU-Person-Plugin verlinken', 'fau-cris'),\n 'cris' => __('Personen mit ihrer Profilseite auf cris.fau.de verlinken','fau-cris'),\n 'none' => __('keinen Link setzen', 'fau-cris'))\n )\n );\n break;\n case 'sync':\n add_settings_section(\n 'cris_sync_section', // ID\n '', // Title\n '__return_false', // Callback\n 'fau_cris_options' // Page\n );\n add_settings_field(\n 'cris_sync_check',\n __('Automatische Synchronisierung', 'fau-cris'),\n array(__CLASS__, 'cris_check_callback'),\n 'fau_cris_options',\n 'cris_sync_section',\n array(\n 'name' => 'cris_sync_check',\n 'description' => __('Sollen für neue Projekte und Forschungsbereiche automatisch Seiten und Menüeinträge generiert werden?', 'fau-cris')\n )\n );\n add_settings_field(\n 'cris_sync_shortcode_format',\n __('Shortcode-Format', 'fau-cris'),\n array(__CLASS__, 'cris_check_callback'),\n 'fau_cris_options',\n 'cris_sync_section',\n array(\n 'name' => 'cris_sync_shortcode_format',\n 'description' => __('Soll für die Shortcodes auf den automatisch erstellten Seiten das konfigurierbare Format \"[cris-custom]\" verwendet werden?', 'fau-cris'),\n 'options' => array(\n 'research' => __('Custom-Shortcode für Seite Forschung', 'fau-cris'),\n 'fields' => __('Custom-Shortcode für Forschungsbereiche','fau-cris'),\n 'projects' => __('Custom-Shortcode für Forschungsprojekte', 'fau-cris'))\n )\n );\n break;\n }\n }", "title": "" }, { "docid": "ea73d7fb661b22018704edb4ac8eb011", "score": "0.6044201", "text": "function hook_plugin_in_panel(){\n add_menu_page( 'Formularze zamówień', 'Formularze zamówień', 'manage_options', 'Formularze zamówień', 'load_plugin_backend' ); #settings for menu acces\n}", "title": "" }, { "docid": "844b781f0d3231be35c28b82ccb09880", "score": "0.60356724", "text": "function cmc_framework_markets_landing_tab_section_content($i) {\n \n $fieldset_key = 'tab' . $i;\n $title_key = 'cmc_framework_markets_tab' . $i;\n $content_key = 'cmc_framework_markets_tab' . $i . '_content';\n $pricing_key = 'cmc_framework_markets_tab' . $i . '_pricing';\n $image_key = 'cmc_framework_markets_tab' . $i . '_image';\n \n \n $content = variable_get($content_key, t('Content'));\n \n $edit_link = '';\n if (user_access('administer cmc_markets_landing')) {\n $edit_link = l('Edit Content', 'admin/config/cmc/markets_landing');\n }\n \n $pricing = '';\n $pricing_nid = variable_get($pricing_key, '');\n if ($pricing_nid) {\n \n $pricing_node = node_load($pricing_nid);\n $instruments = cmc_pricing_node_get_instruments($pricing_node);\n\n $data = array(\n 'node' => $pricing_node,\n 'instruments' => $instruments,\n 'i' => $i,\n 'edit_link' => '',\n );\n \n if (user_access('administer cmc_pricing')) {\n $options = array(\n 'attributes' => array(\n 'class' => 'pricing-edit',\n ),\n 'query' => array('destination' => $_GET['q']),\n );\n $data['edit_link'] = l('Edit Pricing Panel', 'node/' . $pricing_node->nid . '/edit', $options);\n }\n \n $pricing = theme('cmc_pricing_panel', $data);\n }\n \n \n $tab = array(\n 'title' => variable_get($title_key, t('Title')),\n 'content' => check_markup($content['value'], $content['format']),\n 'pricing' => $pricing,\n 'edit_link' => $edit_link,\n );\n \n // add in the image if one is uploaded\n $image_fid = variable_get($image_key, '');\n $image = file_load($image_fid);\n \n if (!empty($image->fid)) {\n $imagedata = array(\n 'path' => file_create_url($image->uri),\n );\n $tab['image'] = theme('image', $imagedata);\n }\n \n return $tab;\n}", "title": "" }, { "docid": "4740dbdfbf4031d1b22d18fd89b90b7c", "score": "0.6029139", "text": "function panels_accordion_style_render_region_settings_form($style_settings) {\n // Content.\n $style_default_value = isset($style_settings['style']) ? $style_settings['style'] : 'basic';\n $form['style'] = array(\n '#title' => t('Style'),\n '#type' => 'select',\n '#options' => array(\n 'basic' => t('Basic accordion'),\n 'color' => t('Colour'),\n ),\n '#default_value' => $style_default_value,\n '#description' => t('The visual style of the accordion.'),\n );\n // @TODO Actually check how many panes there are.\n $open_accordion_default_value = isset($style_settings['open_accordion']) ? $style_settings['open_accordion'] : 0;\n $form['open_accordion'] = array(\n '#title' => t('Default open pane'),\n '#type' => 'select',\n '#options' => array(\n 0 => t('First'),\n 1 => t('Second'),\n 2 => t('Third'),\n 3 => t('Fourth'),\n ),\n '#default_value' => $open_accordion_default_value,\n '#description' => t('The default open accordion.'),\n );\n $desktop_state_default_value = isset($style_settings['desktop_state_default_value']) ? $style_settings['desktop_state_default_value'] : '';\n $form['desktop_state'] = array(\n '#title' => t('When I grow up I want to be...'),\n '#type' => 'select',\n '#options' => array(\n // The values must match the theme function name exactly\n '' => t('Accordion'),\n 'panels_tabs_style_render_region' => t('Tabs'),\n 'panels_list_style_render_region' => t('Basic List'),\n ),\n '#default_value' => $desktop_state_default_value,\n );\n\n // Implement the tabs settings form here.\n module_load_include('inc', 'cr_panels_tabs', 'plugins/styles/tabs');\n $panels_tabs_style_render_region_form = panels_tabs_style_render_region_settings_form($style_settings['panels_tabs_style_render_region_form']);\n $form['panels_tabs_style_render_region_form'] = $panels_tabs_style_render_region_form;\n $form['panels_tabs_style_render_region_form']['#type'] = 'fieldset';\n $form['panels_tabs_style_render_region_form']['#states'] = array(\n // Only show this fieldset when the 'desktop_state' selectbox is 'tabs'.\n 'visible' => array(\n ':input[name=\"settings[desktop_state]\"]' => array('value' => 'panels_tabs_style_render_region'),\n ),\n );\n module_load_include('inc', 'panels', 'plugins/styles/list');\n $panels_list_style_render_region_form = panels_list_style_settings_form($style_settings['panels_list_style_render_region_form']);\n $form['panels_list_style_render_region_form'] = $panels_list_style_render_region_form;\n $form['panels_list_style_render_region_form']['#type'] = 'fieldset';\n $form['panels_list_style_render_region_form']['#states'] = array(\n // Only show this fieldset when the 'desktop_state' selectbox is 'base_list'.\n 'visible' => array(\n ':input[name=\"settings[desktop_state]\"]' => array('value' => 'panels_list_style_render_region'),\n ),\n );\n\n return $form;\n}", "title": "" }, { "docid": "7e47c4ba4855169d1b46516d40ff1ffd", "score": "0.60283756", "text": "function set_sections() {\n\t\t\n\t\t$this->sections[] = '<script type=\"text/javascript\" charset=\"utf-8\">$(\"#accessoryTabs a.'.$this->id.'\").parent().remove();</script>';\n\n\t\tif($this->EE->input->get('C') == 'admin_content' && $this->EE->input->get('M') == 'category_edit' ) {\n\n\t\t\t// help!\n\t\t\trequire_once(PATH_THIRD.'dm_eeck/includes/eeck_helper.php');\n\t\t\t$this->helper = new eeck_helper();\n\n\t\t\t// we'll need the settings from the Editor field type\n\t\t\t$this->eeck_settings = $this->helper->load_editor_settings();\n\n\t\t\t$this->helper->include_editor_js($this->eeck_settings['eeck_ckepath'], $this->eeck_settings['eeck_ckfpath']);\n\t\t\t\n\t\t\t// get our settings for this field\n\t\t\t$myConf = $this->eeck_settings['eeck_config_settings'];\n\t\t\t\n\t\t\t// load out config file\n\t\t\t$conf = $this->load_config_file($myConf);\n\t\t\tif($conf != '') $conf .= ',';\n\n\t\t\t// add on integration for CK finder\n\t\t\t$conf .= $this->integrate_ckfinder($this->eeck_settings['eeck_ckfpath'],'Images','Files','Flash');\n\n\t\t\t$str = 'CKEDITOR.replace( \"cat_description\",{'.$conf.'});';\n\t\t\t$this->sections[] = '<script type=\"text/javascript\" charset=\"utf-8\">'.$str.'</script>';\n\t\t}\n\t}", "title": "" }, { "docid": "f02d80f54b3f1e5bf1d6a1703395bc62", "score": "0.6027832", "text": "public function add_settings_sections()\n\t{\n\t\t$this->add_section( 'section-info', 'Section Info', 'print_section_info' );\n\t}", "title": "" }, { "docid": "b7dc124659f49a1ec84aa6d11ac1b086", "score": "0.6024982", "text": "protected function _register_controls() {\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => esc_html__( 'Content', 'Alita-extensions' ),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'title',\n [\n 'label' => esc_html__( 'Title', 'Alita-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'default' => '',\n 'placeholder' => esc_html__( 'Enter title', 'Alita-extensions' ),\n ]\n );\n\n $this->add_control(\n 'show_savings',\n [\n 'label' => esc_html__( 'Show Savings Details', 'Alita-extensions' ),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => esc_html__( 'Enable', 'Alita-extensions' ),\n 'label_off' => esc_html__( 'Disable', 'Alita-extensions' ),\n 'return_value' => true,\n 'default' => false,\n ]\n );\n\n $this->add_control(\n 'savings_in',\n [\n 'label' => esc_html__( 'Savings in', 'Alita-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'amount' => esc_html__( 'Amount', 'Alita-extensions' ),\n 'percentage' => esc_html__( 'Percentage', 'Alita-extensions' ),\n ],\n 'default'=> 'amount',\n ]\n );\n\n $this->add_control(\n 'savings_text',\n [\n 'label' => esc_html__('Savings Text', 'Alita-extensions'),\n 'type' => Controls_Manager::TEXT,\n ]\n );\n\n $this->add_control(\n 'limit',\n [\n 'label' => esc_html__( 'Number of Products to display', 'Alita-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the number of products to display', 'Alita-extensions'),\n ]\n );\n\n $this->add_control(\n 'product_choice',\n [\n 'label' => esc_html__( 'Product Choice', 'Alita-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'recent' =>esc_html__( 'Recent', 'Alita-extensions' ),\n 'random' =>esc_html__( 'Random', 'Alita-extensions' ),\n 'specific' =>esc_html__( 'Specific', 'Alita-extensions' ),\n ],\n 'default'=> 'recent',\n ]\n );\n\n\n $this->add_control(\n 'product_id',\n [\n 'label' => esc_html__('Product ID', 'Alita-extensions'),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the product id seperate by comma(,).', 'Alita-extensions'),\n ]\n );\n\n $this->end_controls_section();\n\n }", "title": "" }, { "docid": "e5cf044f95397489c3c67508db9f0c8f", "score": "0.60244304", "text": "public function addMetaFieldsToAddForm()\n\t{\n\t\t$interval = $this->getMetaFields('interval');\n\t\t$animation = $this->getMetaFields('animation');\n\n\t\t?>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"interval\">Tijd tussen slides</label>\n\t\t\t\t<input name=\"interval\" id=\"interval\" type=\"text\" value=\"<?php echo $interval;?>\" size=\"40\">\n\t\t\t\t<p class=\"description\">De tijd tussen slides in milliseconden (1000ms = 1s).</p>\n\t\t\t</div>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"animation\">Animatie</label>\n\t\t\t\t<select name=\"animation\" id=\"animation\">\n\t\t\t\t\t<option <?php selected($animation, 'slide'); ?> value=\"slide\">Slide</option>\n\t\t\t\t\t<option <?php selected($animation, 'fade'); ?> value=\"fade\">Fade</option>\n\t\t\t\t</select>\n\t\t\t\t<p class=\"description\">Selecteer de animatie die gebruikt wordt door de slideshow.</p>\n\t\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "a8e5801b3f9b8f81ffdb29be66abab62", "score": "0.60235095", "text": "function custom_settings_page() { ?>\n\t<div class=\"wrap\">\n\t\t<h1>Custom Settings</h1>\n\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t<?php\n settings_fields('section');\n do_settings_sections('theme-options'); \n submit_button(); \n ?>\n\t\t</form>\n\t</div>\n\t<?php }", "title": "" }, { "docid": "bfbada29614c294417bf6e4d8c4e817e", "score": "0.6022074", "text": "public function settings_page() {\n\n\t\t?>\n\n\t\t<div class=\"wrap schedule-a-visit-to-sherpa-settings\">\n\t\t\t\n\t\t\t<form id=\"schedule-a-visit-to-sherpa-form\" method=\"post\" action=\"options.php\">\n\t\t\t\t\n\t\t\t\t<?php echo wp_nonce_field( 'schedule_a_visit_to_sherpa_data', 'schedule_a_visit_to_sherpa_nonce' ); ?>\n\n\t\t\t\t<?php settings_fields( 'schedule_a_visit_to_sherpa_settings_section' ); ?>\n\n\t\t\t\t<?php do_settings_sections( 'schedule-a-visit-to-sherpa' ); ?>\n\t\t\t\t\n\t\t\t\t<?php submit_button(); ?>\n\n\t\t\t</form>\n\n </div>\n\n\t\t<?php\n\n\t}", "title": "" }, { "docid": "e45dd0bb4b7c7b30b510a87433241d43", "score": "0.6020921", "text": "function tsz_reservation_page_init()\n{ \n\n $settings = array(\n 'spaces_limit' => 'Spaces per Listing',\n 'past_months_limit' => 'Limit reservations to ? months in the past',\n 'future_months_limit' => 'Limit reservations to ? months in the future'\n );\n\n foreach($settings as $id => $label) {\n register_setting(\n 'tsz_listing_options', // Option group\n $id\n );\n\n add_settings_field(\n $id, // ID\n $label, // Title \n 'render_input_field', // Callback\n 'tsz_listing_options_page', // Page\n 'setting_section_id', // Section \n array(\"id\" => $id) \n ); \n }\n\n}", "title": "" }, { "docid": "c6425b81ae48de46a6587aee5a9c1e1f", "score": "0.6014669", "text": "public function addMetaFieldsToEditForm()\n\t{\n\t\t$interval = $this->getMetaFields('interval');\n\t\t$animation = $this->getMetaFields('animation');\n\n\t\t?>\n\t\t\t<tr class=\"form-field\">\n\t\t\t\t<th scope=\"row\">\n\t\t\t\t\t<label for=\"interval\">Tijd tussen slides</label>\n\t\t\t\t</th>\n\t\t\t\t<td>\n\t\t\t\t\t<input name=\"interval\" id=\"interval\" type=\"text\" value=\"<?php echo $interval;?>\" size=\"40\">\n\t\t\t\t\t<p class=\"description\">De tijd tussen slides in milliseconden (1000ms = 1s).</p>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr class=\"form-field\">\n\t\t\t\t<th scope=\"row\">\n\t\t\t\t\t<label for=\"animation\">Animatie</label>\n\t\t\t\t</th>\n\t\t\t\t<td>\n\t\t\t\t\t<select name=\"animation\" id=\"animation\">\n\t\t\t\t\t\t<option <?php selected($animation, 'slide'); ?> value=\"slide\">Slide</option>\n\t\t\t\t\t\t<option <?php selected($animation, 'fade'); ?> value=\"fade\">Fade</option>\n\t\t\t\t\t</select>\n\t\t\t\t\t<p class=\"description\">Selecteer de animatie die gebruikt wordt door de slideshow.</p>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t<?php\n\t}", "title": "" }, { "docid": "4d2c8ca7c422e45a83f226ac7ade06bf", "score": "0.6013322", "text": "public function render_settings_page()\n {\n }", "title": "" }, { "docid": "fbd633eccb367f02612a21b63e1deaf8", "score": "0.6008646", "text": "function deposit_tab_options_tab() \n {\n ?> <li class=\"deposit_tab\"><a href=\"#deposit_tab_data\"><?php _e('Deposit Options', 'woothemes'); ?></a></li> <?php\n }", "title": "" }, { "docid": "b97b2950ed63410cf4b605bd615a5428", "score": "0.59896326", "text": "public function page_init()\n {\n register_setting(\n 'cementlap_option_group', // Option group\n 'cementlap_option_name', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n 'Cementlap Custom Settings', // Title\n array( $this, 'print_section_info' ), // Callback\n 'cementlap-setting-admin' // Page\n );\n\n\n\n /***** Konténer vége ******/\n\n add_settings_field(\n 'ntd',\n 'Gyártandó termékek ekkor érkezhetnek legkorábban',\n array( $this, 'ntd_callback' ),\n 'cementlap-setting-admin',\n 'setting_section_id'\n );\n add_settings_field(\n 'subtitle',\n 'Advert Sub Title',\n array( $this, 'subtitle_callback' ),\n 'cementlap-setting-admin',\n 'setting_section_id'\n );\n\n add_settings_field(\n 'button_text', // ID\n 'Advert button text', // Title\n array( $this, 'button_text_callback' ), // Callback\n 'cementlap-setting-admin', // Page\n 'setting_section_id' // Section\n );\n\n add_settings_field(\n 'button_url', // ID\n 'Button url', // Title\n array( $this, 'button_url_callback' ), // Callback\n 'cementlap-setting-admin', // Page\n 'setting_section_id' // Section\n );\n\n add_settings_field(\n 'change', // ID\n 'Euro arfolyam', // Title\n array( $this, 'change_callback' ), // Callback\n 'cementlap-setting-admin', // Page\n 'setting_section_id' // Section\n );\n\n add_settings_field(\n 'vat', // ID\n 'ÁFA', // Title\n array( $this, 'vat_callback' ), // Callback\n 'cementlap-setting-admin', // Page\n 'setting_section_id' // Section\n );\n\n\n }", "title": "" }, { "docid": "f5ed594f33f13ced43cd04eb0253b50e", "score": "0.59891826", "text": "public function admin_form(&$qa_content)\n\t{\n\t\t$ok = null;\n\t\tif (qa_clicked('qa-popup-ad-save')) {\n\t\t\tqa_opt('qa_popup_ad_only_first_access', (bool)qa_post_text('qa_popup_ad_only_first_access'));\n\t\t\tqa_opt('qa_popup_ad_show_logged_in', (bool)qa_post_text('qa_popup_ad_show_logged_in'));\n\t\t\tqa_opt('qa_popup_ad_scroll_percentage', qa_post_text('qa_popup_ad_scroll_percentage'));\n\t\t\tqa_opt('qa_popup_ad_show_mobile', (bool)qa_post_text('qa_popup_ad_show_mobile'));\n\t\t\tqa_opt('qa_popup_ad_image_url', qa_post_text('qa_popup_ad_image_url'));\n\t\t\tqa_opt('qa_popup_ad_title', qa_post_text('qa_popup_ad_title'));\n\t\t\tqa_opt('qa_popup_ad_content', qa_post_text('qa_popup_ad_content'));\n\t\t\tqa_opt('qa_popup_ad_btn_label', qa_post_text('qa_popup_ad_btn_label'));\n\t\t\tqa_opt('qa_popup_ad_btn_link', qa_post_text('qa_popup_ad_btn_link'));\n\t\t\t$ok = qa_lang('admin/options_saved');\n\t\t}\n\n\t\t// form fields to display frontend for admin\n\t\t$fields = array();\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/show_only_first'),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => qa_opt('qa_popup_ad_only_first_access'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_only_first_access\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/show_logged_in'),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => qa_opt('qa_popup_ad_show_logged_in'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_show_logged_in\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/show_mobile'),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => qa_opt('qa_popup_ad_show_mobile'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_show_mobile\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/scroll'),\n\t\t\t'type' => 'number',\n\t\t\t'suffix' => '%(0-100)',\n\t\t\t'value' => qa_opt('qa_popup_ad_scroll_percentage'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_scroll_percentage\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'type' => 'blank',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/image_url'),\n\t\t\t'type' => 'text',\n\t\t\t'value' => qa_opt('qa_popup_ad_image_url'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_image_url\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/opt_title'),\n\t\t\t'type' => 'text',\n\t\t\t'value' => qa_opt('qa_popup_ad_title'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_title\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/opt_content'),\n\t\t\t'type' => 'textarea',\n\t\t\t'rows' => 3,\n\t\t\t'value' => qa_opt('qa_popup_ad_content'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_content\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/btn_label'),\n\t\t\t'type' => 'text',\n\t\t\t'value' => qa_opt('qa_popup_ad_btn_label'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_btn_label\"',\n\t\t);\n\n\t\t$fields[] = array(\n\t\t\t'label' => qa_lang('qa_popup_ad_lang/btn_link'),\n\t\t\t'type' => 'text',\n\t\t\t'value' => qa_opt('qa_popup_ad_btn_link'),\n\t\t\t'tags' => 'name=\"qa_popup_ad_btn_link\"',\n\t\t);\n\n\t\treturn array(\n\t\t\t'ok' => ($ok && !isset($error)) ? $ok : null,\n\t\t\t'fields' => $fields,\n\t\t\t'buttons' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'label' => qa_lang_html('main/save_button'),\n\t\t\t\t\t'tags' => 'name=\"qa-popup-ad-save\"',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t}", "title": "" } ]
b9547493cb6b8d7a77a940e458fc5387
/ Check first the Redmine database for more dependencies! DELETE FROM groups_users WHERE group_id = (SELECT id FROM users WHERE lastname = :gid AND type = \'Group\') DELETE FROM users WHERE lastname = :gid AND type = \'Group\'
[ { "docid": "2d9da152a679904dfb1162b3fd05dd45", "score": "0.0", "text": "public function addToGroup($uid, $gid) {\n if(!$this->rm_db_connected) {\n return false;\n }\n \n return false;\n }", "title": "" } ]
[ { "docid": "a59e5cb051b5489e730dc2119f8f97a6", "score": "0.72558415", "text": "function delete(){\n $status = false;\n if(cb_connect()){\n $query = \"UPDATE users SET user_group = (SELECT id FROM user_group ORDER BY id ASC LIMIT 0,1) WHERE user_group = \" . $this->getId();\n $result = mysql_query(\"DELETE FROM user_groups WHERE id = \" . $this->getId());\n $status = true;\n }\n return $status;\n }", "title": "" }, { "docid": "97f6b146f0616e18cd07239b695e950d", "score": "0.7044482", "text": "function deleteugper($ugid){\n\nglobal $user, $conn, $dbtables, $logged_in, $globals, $l, $AEF_SESS, $theme;\n\n\t//Delete the permission mask\n\t$qresult = makequery(\"DELETE FROM \".$dbtables['permissions'].\" \n\t\t\t\t\tWHERE member_group_id = '$ugid'\", false);\n\t\t\t\n\t//Free the resources\n\t@mysql_free_result($qresult);\n\t\n\t\n\t//UPDATE the users in that group\n\t$qresult = makequery(\"UPDATE \".$dbtables['users'].\" \n\t\t\t\t\t\tSET u_member_group = '0'\n\t\t\t\t\t\tWHERE u_member_group = '$ugid'\", false);\n\n\t\t\n\t//Free the resources\n\t@mysql_free_result($qresult);\n\n}", "title": "" }, { "docid": "0a8fdf0b4293a6864394e8d5832dc740", "score": "0.70225686", "text": "function delete_group($gid,$gname,$del_content)\n{\n//\topen_database();\n\t//toroljuk ki a group listabol\n\t$sql_query=\"DELETE FROM groups WHERE gid=$gid\";\n\t$result = search_database($sql_query,\"delete_group : delete the group from the group list : $query\");\n\t//in order to delte a group from the sistem it must not contain any user\n $sql_query=\"select uid from `\".$gname.\"`\";\n\t$result=search_database($sql_query,\"delete_group : remove every user from the group in system: $query\");\n\twhile ( $line = mysql_fetch_array($result, MYSQL_ASSOC))\n\t{\n\t\t$paramv[uid]=$line[uid];\n\t\t$paramv[gname]=$gname;\n\t\t$paramv[gid]=$gid;\n\t\t/////////////////////////////////////////////// SYSTEM CALLL////////////////////////\n\t\t//remove a user from a group\n\t\t system_remfrom_group($paramv);\n\t}\n\t//ha a benne levo osszes usert ki kell torolni\n\tif(isset($del_content))\n\t{\n\t $sql_query=\"select uid from `\".$gname.\"`\";\n\t $result=search_database($sql_query,\"delete_group : delete every user from the group : $query\");\n\t while ( $line = mysql_fetch_array($result, MYSQL_ASSOC))\n\t\t delete_user($line[uid]);\n\t}\n\t//toroljuk ki a tablazatot is\n\t$sql_query=\"DROP TABLE `\".$gname.\"`\";\n\t$result = search_database($sql_query,\"delete_group : delete the table with the group name : $query\");\n//\tclose_database();\t\n\t/////////////////////////////////////////////// SYSTEM CALLL////////////////////////\n\t//toroljuk ki aredszerbol is\n\t$paramv[gid]=$gid;\n\t$paramv[gname]=$gname;\n\tsystem_delete_group($paramv);\n}", "title": "" }, { "docid": "cbc5e1506c7c67984c9e8d0d47f7aa97", "score": "0.6970437", "text": "function delete_user_from_group($record_id, $genid)\n{\n\t$db = cmsms()->GetDb();\n\t$query = \"DELETE FROM \".cms_db_prefix().\"module_adherents_groupes_belongs WHERE id_group = ? AND genid = ?\";\n\t$dbresult = $db->Execute($query, array($record_id,$genid));\n\tif($dbresult)\n\t{\n\t\treturn TRUE;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n\t\n}", "title": "" }, { "docid": "ffe9d697533dd497c4b97a901a523350", "score": "0.6924181", "text": "function so_forms_delete_group($id) {\r\n\r\n db_query(\"DELETE FROM {so_forms_fields} WHERE id=?\", array($id));\r\n db_query(\"DELETE FROM {so_forms_fields_displays} WHERE fid=?\", array($id));\r\n db_query(\"UPDATE {so_forms_fields_displays} SET gid='' WHERE gid=?\", array($id));\r\n\r\n drupal_set_message('Group has been deleted');\r\n drupal_goto($_GET['destination']);\r\n}", "title": "" }, { "docid": "c47d24cdd422ec6d33d435f9420e30f3", "score": "0.67174953", "text": "function RemoveAllUsersFromGroup($record_id)\n\t{\n\t\t$db = cmsms()->GetDb();\n\t\t$query = \"DELETE FROM \".cms_db_prefix().\"module_feusers_belongs WHERE groupid = ?\";\n\t\t$dbresult = $db->Execute($query, array($record_id));\n\t\t\n\t}", "title": "" }, { "docid": "1562e8a8bb8ca5a6a70eebc64933c266", "score": "0.6673975", "text": "function delete()\r\n\t{\r\n\t\tglobal $sql;\r\n\t\t//don't delete if this is the default user group\r\n\t\t$defaultGroup = $sql->QueryItem(\"SELECT id FROM $this->tablename WHERE defaultuser=1\");\r\n\t\tif($this->id == $defaultGroup) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$this->loadFromDatabase($this->id);\r\n\r\n\t\tif( $this->system == 1 ||\r\n\t\t\t$this->default == 1 ||\r\n\t\t\t$this->visitor == 1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//delete the current group\r\n\t\t$sql->Query(\"DELETE FROM $this->tablename WHERE id = '$this->id'\");\r\n\r\n\t\t//shift all users to the new group\r\n\t\t$usertable = user::tablename;\r\n\t\t$sql->Query(\"UPDATE $usertable SET usergroup='$defaultGroup' WHERE usergroup='$this->id'\");\r\n\t}", "title": "" }, { "docid": "895bf0cf974ab9feff6952570df9e8bc", "score": "0.656011", "text": "function deleteGroup( $groupId, $step=1 )\n\t{\n\t\t\t\n\t\t//get the group data\n\t\t$group = $this->getGroup($groupId);\n\t\t$membersCount\t= $this->getMembersCount($groupId);\t\n\t\t\n\n\t\tCFactory::load( 'libraries' , 'activities' );\n\n\t\t$my\t\t\t\t= CFactory::getUser();\n\n\t\t$isMine\t\t\t= ($my->id == $group->ownerid);\t\t\n\n\t\t// Delete all group bulletins\n\t\tif($this->deleteGroupBulletins($groupId)){echo 'done';}else{echo 'not done';}\n\t\t\n\t\t// Delete all group members\n\t\tif($this->deleteGroupMembers($groupId)){echo 'done';}else{echo 'not done';}\n\t\n\t\t// Delete all group wall\n\t\tif($this->deleteGroupWall($groupId)){echo 'done';}else{echo 'not done';}\n\t\t\n\t\t// Delete all group discussions\n\t\tif($this->deleteGroupDiscussions($groupId)){echo 'done';}else{echo 'not done';}\n\t\t\n\t\t// Delete all group's media files\n\t\tif($this->deleteGroupMedia($groupId)){echo 'done';}else{echo 'not done';}\n\t\t\n\t\t// Delete group\n\t\t$group\t=& JTable::getInstance( 'Group' , 'CTable' );\n\t\t$group->load( $groupId );\n\t\t$groupData = $group;\n\t\t\t\t\t\n\t\tif( $group->delete( $groupId ) )\n\t\t{\n\n\t\t\tCFactory::load( 'libraries' , 'featured' );\n\t\t\t$featured\t= new CFeatured('groups');\n\t\t\t$featured->delete($groupId);\n\t\t\tjimport( 'joomla.filesystem.file' );\n\t\t\t//@rule: Delete only thumbnail and avatars that exists for the specific group\n\n\t\t\tif($groupData->avatar != \"components/com_community/assets/group.jpg\" && !empty($groupData->avatar))\n\t\t\t{\n\n\t\t\t\t$path = explode('/', $groupData->avatar);\n\n\t\t\t\t$file = JPATH_ROOT . DS . $path[0] . DS . $path[1] . DS . $path[2] .DS . $path[3];\n\n\t\t\t\tif(JFile::exists($file))\n\n\t\t\t\t{\n\n\t\t\t\t\tJFile::delete($file);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif($groupData->thumb != \"components/com_community/assets/group_thumb.jpg\" && !empty($groupData->thumb))\n\n\t\t\t{\n\n\t\t\t\t$path = explode('/', $groupData->thumb);\n\n\t\t\t\t$file = JPATH_ROOT . DS . $path[0] . DS . $path[1] . DS . $path[2] .DS . $path[3];\n\n\t\t\t\tif(JFile::exists($file))\n\n\t\t\t\t{\n\n\t\t\t\t\tJFile::delete($file);\n\n\t\t\t\t}\n\n\t\t\t}\t\t\t\t\t\t\n\n\t\t\t// Remove from activity stream\n\n\t\t\tCActivityStream::remove('groups', $groupId);\n\n\t\t}\n\n\t\telse\n\n\t\t{\n\n\t\t\techo JText::_('CC ERROR WHILE DELETING GROUP');\n\n\t\t}\n\t\n\n\t\treturn true;\n\t\n\t}", "title": "" }, { "docid": "d37b8122de286c7df7b2bdc0007c0a1f", "score": "0.65305746", "text": "function testRemoveUserFromGroup()\n {\n \t$this->assertFalse(XiptLibJomsocial:: _removeUserFromGroup(82, ''));\n\t\n \t//don't remove user when user is owner of group\n \tif(XIPT_JOOMLA_15)\n \t$this->assertTrue(XiptLibJomsocial:: _removeUserFromGroup(62, 1));\n \telse \n \t$this->assertTrue(XiptLibJomsocial:: _removeUserFromGroup(42, 1));\n \t\n \t\n \t//do nothing when user is not member of group\n \t$this->assertTrue(XiptLibJomsocial:: _removeUserFromGroup(84, 1));\n \t\n \t//remove user from group\n \t$this->assertTrue(XiptLibJomsocial:: _removeUserFromGroup(83, 2));\n \t\n \t//remove user from group where user exists\n \t$this->assertTrue(XiptLibJomsocial:: _removeUserFromGroup(83, '2,3'));\n \t$this->_DBO->addTable('#__community_groups_members');\n }", "title": "" }, { "docid": "199c049d2c481175386da7d5c26d8254", "score": "0.6519509", "text": "function delete_group_members($gid)\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$group = $this->get_group_details($gid);\r\n\t\t\r\n\t\tif(!$group)\r\n\t\t\te(lang(\"grp_exist_error\"));\r\n\t\telseif(userid()!=$group['userid'] && !has_access('admin_access',true))\r\n\t\t\te(lang(\"you_cant_del_grp_mems\"));\r\n\t\telse\r\n\t\t{\r\n\t\t\t$db->delete(tbl($this->gp_mem_tbl),array(\"group_id\"),array($gid));\r\n\t\t\te(lang(\"mems_deleted\"),\"m\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1dbdef65e188757e0623b7404f0b2232", "score": "0.65046245", "text": "private function deleteGroups()\n {\n $fieldsService = Craft::app()->fields;\n foreach ($this->groups as $group) {\n $fieldsService->deleteGroupById($group->id);\n }\n }", "title": "" }, { "docid": "0e6e57987599298fc4fac336c2198298", "score": "0.64744467", "text": "public function delete()\n {\n /**\n * Check if the group has related users\n */\n $group_id = !empty( $_POST['id'] ) ? $_POST['id'] : \"\";\n $groups = $this->get_all_groups();\n foreach( $groups as $group ){\n if( $group->id === (int) $group_id ){\n if( !$group->users->isEmpty() ){\n $string = \"Group is in use\";\n /** Respond with json object */\n if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {\n echo json_encode($string);\n exit;\n /** Respond with html message */\n } else {\n echo 'Form validation failed.';\n echo '<br>' . $string;\n }\n } else {\n $this->base_repo->delete( 'groups', ['id' => $group_id] );\n echo json_encode( true );\n }\n }\n }\n }", "title": "" }, { "docid": "dc88ec047f52f8d91a241084f8b86b13", "score": "0.640987", "text": "public function testUpdateGroup() : void\n {\n //CASE 1, REMOVE groups, user, AND category_privs:\n //insert new group with no corresponding group in nexus\n self::$db->query(\"INSERT INTO groups (`groupID`, `parentGroupID`, `name`, `groupDescription`)\n VALUES ('20', NULL, 'faker', 'faker')\");\n //add employee to group\n self::$db->query(\"INSERT INTO users (`userID`, `groupID`)\n VALUES ('tester', '20')\");\n //add group to category_privs\n self::$db->query(\"INSERT INTO category_privs (`categoryID`, `groupID`, `readable`, `writable`)\n VALUES ('form_f4687', '20', '1', '1')\");\n //assert they are inserted\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($groups) > 0);\n $this->assertTrue(count($users) > 0);\n $this->assertTrue(count($category_privs) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($groups) == 0);\n $this->assertTrue(count($users) == 0);\n $this->assertTrue(count($category_privs) == 0);\n\n //CASE 2, REMOVE groups and users, no category_privs:\n //insert new group with no corresponding group in nexus\n self::$db->query(\"INSERT INTO groups (`groupID`, `parentGroupID`, `name`, `groupDescription`)\n VALUES ('20', NULL, 'faker', 'faker')\");\n //add employee to group\n self::$db->query(\"INSERT INTO users (`userID`, `groupID`)\n VALUES ('tester', '20')\");\n //assert they are inserted\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $this->assertTrue(count($groups) > 0);\n $this->assertTrue(count($users) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $this->assertTrue(count($groups) == 0);\n $this->assertTrue(count($users) == 0);\n\n //CASE 3, REMOVE groups and category_privs, no user:\n //insert new group with no corresponding group in nexus\n self::$db->query(\"INSERT INTO groups (`groupID`, `parentGroupID`, `name`, `groupDescription`)\n VALUES ('20', NULL, 'faker', 'faker')\");\n //add group to category_privs\n self::$db->query(\"INSERT INTO category_privs (`categoryID`, `groupID`, `readable`, `writable`)\n VALUES ('form_f4687', '20', '1', '1')\");\n //assert they are inserted\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($groups) > 0);\n $this->assertTrue(count($category_privs) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($groups) == 0);\n $this->assertTrue(count($category_privs) == 0);\n\n //CASE 4, REMOVE user AND category_privs, no groups:\n //add employee to group\n self::$db->query(\"INSERT INTO users (`userID`, `groupID`)\n VALUES ('tester', '20')\");\n //add group to category_privs\n self::$db->query(\"INSERT INTO category_privs (`categoryID`, `groupID`, `readable`, `writable`)\n VALUES ('form_f4687', '20', '1', '1')\");\n //assert they are inserted\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($users) > 0);\n $this->assertTrue(count($category_privs) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($users) == 0);\n $this->assertTrue(count($category_privs) == 0);\n\n //CASE 5, REMOVE groups only:\n //insert new group with no corresponding group in nexus\n self::$db->query(\"INSERT INTO groups (`groupID`, `parentGroupID`, `name`, `groupDescription`)\n VALUES ('20', NULL, 'faker', 'faker')\");\n //assert they are inserted\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $this->assertTrue(count($groups) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $groups = self::$db->query(\"SELECT * FROM `groups` WHERE groupID = '20'\");\n $this->assertTrue(count($groups) == 0);\n\n //CASE 6, REMOVE users only:\n //add employee to group\n self::$db->query(\"INSERT INTO users (`userID`, `groupID`)\n VALUES ('tester', '20')\");\n //assert they are inserted\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $this->assertTrue(count($users) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $users = self::$db->query(\"SELECT * FROM users WHERE groupID = '20'\");\n $this->assertTrue(count($users) == 0);\n\n //CASE 7, REMOVE category_privs only:\n //add group to category_privs\n self::$db->query(\"INSERT INTO category_privs (`categoryID`, `groupID`, `readable`, `writable`)\n VALUES ('form_f4687', '20', '1', '1')\");\n //assert they are inserted\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($category_privs) > 0);\n\n //call update, this should remove all since the group isn't in nexus\n self::$reqClient->get(array('a' => 'system/updateGroup/20'));\n\n //assert they are gone\n $category_privs = self::$db->query(\"SELECT * FROM category_privs WHERE groupID = '20'\");\n $this->assertTrue(count($category_privs) == 0);\n\n }", "title": "" }, { "docid": "1147bdf6593cde602b9048108e6bd737", "score": "0.63959527", "text": "function deleteGroupBulletins($gid)\n\t{\n\t\t$db =& JFactory::getDBO();\n\t\t\t\t\n\t\t$sql = \"DELETE \n\t\t\t\t\n\t\t\t\tFROM \n\t\t\t\t\t\t\".$db->nameQuote(\"#__community_groups_bulletins\").\" \n\t\t\t\tWHERE \n\t\t\t\t\t\t\".$db->nameQuote(\"groupid\").\" = \".$db->quote($gid);\n\t\t\t\t\t\t\n\t\t$db->setQuery($sql);\n\t\t$db->Query();\n\t\tif($db->getErrorNum()){\n\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "65977adc0a76e1f8e77fd7f639b4585a", "score": "0.6394481", "text": "function deleteGroupMembers($gid)\n\t{\n\t\t$db =& JFactory::getDBO();\n\t\t\t\t\n\t\t$sql = \"DELETE \n\t\t\t\t\n\t\t\t\tFROM \n\t\t\t\t\t\t\".$db->nameQuote(\"#__community_groups_members\").\" \n\t\t\t\tWHERE \n\t\t\t\t\t\t\".$db->nameQuote(\"groupid\").\"=\".$db->quote($gid);\t\t\t\t\t\t\n\t\t$db->setQuery($sql);\n\t\t$db->Query();\n\t\tif($db->getErrorNum()){\n\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8d525526bf6c136a96d4541ce7414931", "score": "0.6386356", "text": "public function remove_member_from_group($group_id, $member_id, $conn){\n $query = \"SELECT * FROM group_master WHERE id='$group_id'\";\n $result = $this->retrive_data($query,$conn);\n $row_count = mysqli_num_rows($result);\n if($row_count>0){\n $query = \"SELECT * FROM user_master WHERE id='$member_id'\";\n $result = $this->retrive_data($query,$conn);\n $row_count = mysqli_num_rows($result);\n if($row_count>0){\n $query_check = \"SELECT * FROM group_member_mapping WHERE group_id='$group_id' AND member_id='$member_id'\";\n $result_check = $this->retrive_data($query_check,$conn);\n $row_count_check = mysqli_num_rows($result_check);\n if($row_count_check==1){\n $data = mysqli_fetch_assoc($result_check);\n $status = $data['status'];\n if($status==1){\n $query_insert = \"UPDATE group_member_mapping SET status=0 WHERE group_id='$group_id' AND member_id='$member_id'\";\n $result_insert = $this->retrive_data($query_insert,$conn);\n $affected_rows=mysqli_affected_rows($conn);\n if($affected_rows>0){\n $message = array('status'=> \"1\",\"msg\"=>\"User deleted from this group\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($message), 200):$this->response($this->publicjson($message), 200);\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"User not deleted\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"User already deleted from this group\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"User not a member of this group\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"User Not Exist\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"Group Not Exist\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }", "title": "" }, { "docid": "1ceba7f42a2a3151884c03153a9d1db3", "score": "0.6385223", "text": "public function deleteAllGroups()\n\t{\n\t\t$user_groups = new USVN_Db_Table_UsersToGroups();\n\t\t$where = $user_groups->getAdapter()->quoteInto('users_id = ?', $this->id);\n\t\t$user_groups->delete($where);\n\t}", "title": "" }, { "docid": "8a7cd5025f6ee543776ac7e6345d5c46", "score": "0.6376454", "text": "public function deleteGroup($id){\n if ($this->conn->connect_error){\n //check the connection\n return \"Failed to get databse connection!\";\n }else{\n //running the statement\n $sql_statement = \"DELETE FROM `groups` WHERE `groupId` = '$id'\";\n $result = mysqli_query($this->conn, $sql_statement);//running the statement\n $sql_statement2 = \"DELETE FROM `groupmembers` WHERE `groupId` = '$id'\";\n $result2 = mysqli_query($this->conn, $sql_statement2);\n if($result && $result2){\n //returning if the user was deleted\n return true;\n } \n }\n \n }", "title": "" }, { "docid": "9916037f54897a4bfc121714b08c06f5", "score": "0.6368671", "text": "Function removeGroup($id)\n {\n if (is_array($id))\n {\n for ($i = 0; $i < count($id); $i++ )\n {\n $condition[] = \"ID = \".$id[$i].\" \";\n $delgroups[] = $id[$i];\n }\n $conditions = implode(\" OR \", $condition);\n }\n else\n {\n $conditions = \"ID = $id \";\n $delgroups[] = $id;\n }\n \n // Remove boards from this group before you delete the group\n foreach ($delgroups as $key => $value)\n {\n $boardids = fetchIDs($value, \"group\");\n removeBoard($boardids);\n }\n \n $sql = \"DELETE FROM \".TABLE_GROUPS.\" WHERE \".$conditions;\n if ($exe = runQuery($sql))\n {\n return 1;\n }\n else\n {\n return 0;\n }\n }", "title": "" }, { "docid": "074414363b5b90217feeccc277184122", "score": "0.6318538", "text": "function remove( $userid, $groupid )\r\n {\r\n $success = false;\r\n $database = JFactory::getDBO();\r\n \r\n $database->setQuery(\"\r\n DELETE FROM \r\n #__juga_u2g\r\n WHERE\r\n `user_id` = '{$userid}'\r\n AND\r\n `group_id` = '{$groupid}'\r\n \");\r\n \r\n if ($database->query()) {\r\n $success = true; \r\n }\r\n \r\n return $success;\r\n }", "title": "" }, { "docid": "8390c320841786349e290ed9077b290d", "score": "0.63128865", "text": "function run()\r\n {\r\n $user = $this->get_user();\r\n\r\n if (! GroupRights :: is_allowed_in_groups_subtree(GroupRights :: RIGHT_UNSUBSCRIBE, GroupRights :: get_location_by_identifier_from_groups_subtree(Request :: get(GroupManager :: PARAM_GROUP_ID))))\r\n {\r\n $this->display_header();\r\n Display :: error_message(Translation :: get('NotAllowed', null, Utilities :: COMMON_LIBRARIES));\r\n $this->display_footer();\r\n exit();\r\n }\r\n\r\n $ids = Request :: get(GroupManager :: PARAM_GROUP_REL_USER_ID);\r\n $failures = 0;\r\n\r\n if (! empty($ids))\r\n {\r\n if (! is_array($ids))\r\n {\r\n $ids = array($ids);\r\n }\r\n\r\n foreach ($ids as $id)\r\n {\r\n $groupreluser_ids = explode('|', $id);\r\n $groupreluser = $this->retrieve_group_rel_user($groupreluser_ids[1], $groupreluser_ids[0]);\r\n\r\n if (! $groupreluser)\r\n continue;\r\n\r\n if ($groupreluser_ids[0] == $groupreluser->get_group_id())\r\n {\r\n if (! $groupreluser->delete())\r\n {\r\n $failures ++;\r\n }\r\n else\r\n {\r\n require_once dirname(__FILE__) . '/../../../trackers/group_changes_tracker.class.php';\r\n\r\n Event :: trigger('unsubscribe_user', GroupManager :: APPLICATION_NAME, array(\r\n GroupChangesTracker :: PROPERTY_REFERENCE_ID => $groupreluser->get_group_id(),\r\n GroupChangesTracker :: PROPERTY_TARGET_USER_ID => $groupreluser->get_user_id(),\r\n GroupChangesTracker :: PROPERTY_USER_ID => $user->get_id()));\r\n }\r\n }\r\n else\r\n {\r\n $failures ++;\r\n }\r\n }\r\n\r\n if ($failures)\r\n {\r\n if (count($ids) == 1)\r\n {\r\n $message = 'SelectedGroupRelUserNotDeleted';\r\n }\r\n else\r\n {\r\n $message = 'SelectedGroupRelUsersNotDeleted';\r\n }\r\n }\r\n else\r\n {\r\n if (count($ids) == 1)\r\n {\r\n $message = 'SelectedGroupRelUserDeleted';\r\n }\r\n else\r\n {\r\n $message = 'SelectedGroupRelUsersDeleted';\r\n }\r\n }\r\n\r\n $this->redirect(Translation :: get($message), ($failures ? true : false), array(\r\n Application :: PARAM_ACTION => GroupManager :: ACTION_VIEW_GROUP,\r\n GroupManager :: PARAM_GROUP_ID => $groupreluser_ids[0]));\r\n }\r\n else\r\n {\r\n $this->display_error_page(htmlentities(Translation :: get('NoObjectSelected', null, Utilities :: COMMON_LIBRARIES)));\r\n }\r\n }", "title": "" }, { "docid": "75798e6cb5a3c6dd2ff641a12757e208", "score": "0.6284083", "text": "function r_delete($r_resource_cmd, $r_resource_vars, $r_resource_filters)\n{\n global $r_debug, $db_lnk, $authUser, $_server_domain_url, $jabberHost, $thumbsizes;\n $sql = false;\n $pg_params = $diff = $response = $conditions = $foreign_ids = $foreign_id = $revisions_del = array();\n $activity_type = '';\n switch ($r_resource_cmd) {\n case '/users/?': // delete users\n $qry_val_arr = array(\n $r_resource_vars['users']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT username, role_id FROM users WHERE id = $1', $qry_val_arr);\n $username = pg_fetch_assoc($s_result);\n if ($username['role_id'] == 1) {\n $response['error'] = 'Admin users can\\'t be deleted';\n } else {\n $foreign_id['user_id'] = $r_resource_vars['users'];\n $comment = '##USER_NAME## deleted \"' . $username['username'] . '\"';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_user', $foreign_id);\n $sql = 'DELETE FROM users WHERE id= $1';\n array_push($pg_params, $r_resource_vars['users']);\n if (is_plugin_enabled('r_chat') && $jabberHost) {\n xmppDeleteSingleUser($username);\n }\n }\n break;\n\n case '/organizations/?/organizations_users/?': // delete organization user\n $qry_val_arr = array(\n $r_resource_vars['organizations_users']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT username, organization_id, name, full_name FROM organizations_users_listing WHERE id = $1', $qry_val_arr);\n $previous_value = pg_fetch_assoc($s_result);\n $foreign_ids['organization_id'] = $previous_value['organization_id'];\n $comment = '##USER_NAME## removed member \"' . $previous_value['full_name'] . '\" from organization';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_organization_user', $foreign_ids, '', $r_resource_vars['organizations_users']);\n $sql = 'DELETE FROM organizations_users WHERE id= $1';\n array_push($pg_params, $r_resource_vars['organizations_users']);\n $qry_val_arr = array(\n $r_resource_vars['organizations_users']\n );\n $organizations_users_result = pg_query_params($db_lnk, 'SELECT user_id FROM organizations_users_listing WHERE id = $1', $qry_val_arr);\n $organizations_users = pg_fetch_assoc($organizations_users_result);\n $conditions = array(\n $previous_value['organization_id'],\n $organizations_users['user_id']\n );\n pg_query_params($db_lnk, 'DELETE FROM boards_users WHERE board_id IN (SELECT id FROM boards WHERE organization_id = $1) AND user_id = $2', $conditions);\n break;\n\n case '/boards/?/boards_users/?': // delete board user\n $qry_val_arr = array(\n $r_resource_vars['boards_users']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT username, full_name, board_id, user_id, board_name FROM boards_users_listing WHERE id = $1', $qry_val_arr);\n $previous_value = pg_fetch_assoc($s_result);\n $foreign_ids['board_id'] = $previous_value['board_id'];\n $comment = '##USER_NAME## removed member \"' . $previous_value['username'] . '\" from board';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_board_user', $foreign_ids, '', $r_resource_vars['boards_users']);\n $sql = 'DELETE FROM boards_users WHERE id= $1';\n $conditions = array(\n $previous_value['board_id']\n );\n $cards = pg_query_params($db_lnk, 'SELECT id FROM cards WHERE board_id = $1', $conditions);\n while ($row = pg_fetch_assoc($cards)) {\n $conditions = array(\n $row['id'],\n $previous_value['user_id']\n );\n pg_query_params($db_lnk, 'DELETE FROM cards_users WHERE card_id = $1 AND user_id = $2', $conditions);\n pg_query_params($db_lnk, 'DELETE FROM card_subscribers WHERE card_id = $1 AND user_id = $2', $conditions);\n }\n $board_user = executeQuery('SELECT * FROM boards_users WHERE id = $1', $qry_val_arr);\n if (!empty($board_user)) {\n $conditions = array(\n $board_user['board_id'],\n $board_user['user_id']\n );\n pg_query_params($db_lnk, 'DELETE FROM board_stars WHERE board_id = $1 AND user_id = $2', $conditions);\n pg_query_params($db_lnk, 'DELETE FROM board_subscribers WHERE board_id = $1 AND user_id = $2', $conditions);\n }\n array_push($pg_params, $r_resource_vars['boards_users']);\n if (is_plugin_enabled('r_chat') && $jabberHost) {\n xmppRevokeMember($previous_value);\n }\n break;\n\n case '/boards/?': // delete boards\n if (is_plugin_enabled('r_chat') && $jabberHost) {\n $xmpp = xmppObj();\n xmppDestroyRoom($r_resource_vars['boards'], $xmpp);\n }\n $sql = 'DELETE FROM boards WHERE id = $1';\n array_push($pg_params, $r_resource_vars['boards']);\n break;\n\n case '/boards/?/lists/?': // delete lists\n $qry_val_arr = array(\n $r_resource_vars['lists']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT name, board_id, position FROM lists WHERE id = $1', $qry_val_arr);\n $previous_value = pg_fetch_assoc($s_result);\n $foreign_id['board_id'] = $r_resource_vars['boards'];\n $foreign_id['list_id'] = $r_resource_vars['lists'];\n $comment = '##USER_NAME## deleted list \"' . $previous_value['name'] . '\"';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_list', $foreign_id);\n $sql = 'DELETE FROM lists WHERE id= $1';\n array_push($pg_params, $r_resource_vars['lists']);\n break;\n\n case '/boards/?/lists': // delete Archived lists\n $sql = 'DELETE FROM lists WHERE board_id = $1 AND is_archived = true';\n $foreign_id['board_id'] = $r_resource_vars['boards'];\n $comment = '##USER_NAME## deleted all archived list(s) on ##BOARD_NAME##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_archived_list', $foreign_id);\n array_push($pg_params, $r_resource_vars['boards']);\n break;\n\n case '/boards/?/cards': // delete Archived cards\n $sql = 'DELETE FROM cards WHERE board_id = $1 AND is_archived = true';\n $foreign_id['board_id'] = $r_resource_vars['boards'];\n $comment = '##USER_NAME## deleted all archived card(s) on ##BOARD_NAME##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_archived_card', $foreign_id);\n array_push($pg_params, $r_resource_vars['boards']);\n break;\n\n case '/organizations/?': // delete organization\n $foreign_id['organization_id'] = $r_resource_vars['organizations'];\n $comment = '##USER_NAME## deleted organization';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_organization', $foreign_id);\n $data = array(\n 0,\n 2,\n $foreign_id['organization_id']\n );\n pg_query_params($db_lnk, 'UPDATE boards SET organization_id = $1, board_visibility = $2 WHERE organization_id = $3', $data);\n $conditions = array(\n $foreign_id['organization_id']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT user_id FROM organizations WHERE id = $1', $conditions);\n $organization = pg_fetch_assoc($s_result);\n $conditions = array(\n $organization['user_id'],\n $foreign_id['organization_id']\n );\n pg_query_params($db_lnk, 'DELETE FROM organizations_users WHERE user_id = $1 AND organization_id = $2', $conditions);\n $sql = 'DELETE FROM organizations WHERE id= $1';\n array_push($pg_params, $r_resource_vars['organizations']);\n break;\n\n case '/boards/?/labels/?': // delete Labels in Filter\n $sql = 'DELETE FROM cards_labels WHERE board_id = $1 AND label_id = $2';\n array_push($pg_params, $r_resource_vars['boards'], $r_resource_vars['labels']);\n $comment = __l('##USER_NAME## removed label ##LABEL_NAME## on ##BOARD_NAME##');\n $type = 'delete_label';\n $label_id['id'] = $r_resource_vars['labels'];\n $revision = json_encode($label_id);\n $qry_val_arr = array(\n $r_resource_vars['boards'],\n $authUser['id'],\n $type,\n $comment,\n $_GET['token'],\n $revision\n );\n $activity = pg_fetch_assoc(pg_query_params($db_lnk, 'INSERT INTO activities (created, modified, board_id, user_id, type, comment, token, revisions) VALUES (now(), now(),$1, $2, $3, $4, $5, $6) RETURNING id', $qry_val_arr));\n break;\n\n case '/boards/?/lists/?/cards/?': // delete card\n $qry_val_arr = array(\n $r_resource_vars['cards']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT name, board_id, position FROM cards WHERE id = $1', $qry_val_arr);\n $previous_value = pg_fetch_assoc($s_result);\n $foreign_id['board_id'] = $r_resource_vars['boards'];\n $foreign_id['list_id'] = $r_resource_vars['lists'];\n $foreign_id['card_id'] = $r_resource_vars['cards'];\n $comment = '##USER_NAME## deleted card ' . $previous_value['name'];\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_card', $foreign_id);\n $sql = 'DELETE FROM cards WHERE id = $1';\n array_push($pg_params, $r_resource_vars['cards']);\n if (is_plugin_enabled('r_elasticsearch')) {\n require_once PLUGIN_PATH . DS . 'ElasticSearch' . DS . 'functions.php';\n deleteCardFromElastica($r_resource_vars['cards']);\n }\n break;\n\n case '/boards/?/lists/?/cards/?/card_voters/?': // delete card voters\n $sql = 'DELETE FROM card_voters WHERE id = $1';\n array_push($pg_params, $r_resource_vars['card_voters']);\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $comment = '##USER_NAME## unvoted the card ##CARD_LINK##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'unvote_card', $foreign_ids, null, $r_resource_vars['card_voters']);\n break;\n\n case '/boards/?/lists/?/cards/?/comments/?': // comment DELETE\n $qry_val_arr = array(\n $r_resource_vars['comments']\n );\n $revisions = executeQuery('SELECT comment, revisions FROM activities WHERE id = $1 OR foreign_id = $1 ORDER BY id desc limit 1', $qry_val_arr);\n $comment = '##USER_NAME## deleted comment in card ##CARD_LINK##';\n if (!empty($revisions['revisions'])) {\n $revision = unserialize($revisions['revisions']);\n $revisions_del['comment'] = $comment;\n if (isset($revision['new_value']['comment'])) {\n $revisions_del['old_value'] = $revision['new_value']['comment'];\n } else {\n $revisions_del['old_value'] = '';\n }\n $revisions_del['new_value'] = '';\n $revisions_del = serialize($revisions_del);\n } else {\n $revisions_del['comment'] = $comment;\n $revisions_del['old_value'] = $revisions['comment'];\n $revisions_del['new_value'] = '';\n $revisions_del = serialize($revisions_del);\n }\n $sql = 'DELETE FROM activities WHERE id = $1';\n array_push($pg_params, $r_resource_vars['comments']);\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_card_comment', $foreign_ids, $revisions_del, $r_resource_vars['comments']);\n if (!empty($response['activity']['revisions']) && trim($response['activity']['revisions']) != '') {\n $revisions = unserialize($response['activity']['revisions']);\n }\n if (!empty($revisions) && $response['activity']['type'] != 'moved_card_checklist_item') {\n if (!empty($revisions['new_value'])) {\n foreach ($revisions['new_value'] as $key => $value) {\n if ($key != 'is_archived' && $key != 'is_deleted' && $key != 'created' && $key != 'modified' && $key != 'is_offline' && $key != 'uuid' && $key != 'to_date' && $key != 'temp_id' && $activity_type != 'moved_card_checklist_item' && $activity_type != 'add_card_desc' && $activity_type != 'add_card_duedate' && $activity_type != 'delete_card_duedate' && $activity_type != 'add_background' && $activity_type != 'change_background' && $activity_type != 'change_visibility') {\n $old_val = (isset($revisions['old_value'][$key])) ? $revisions['old_value'][$key] : '';\n $new_val = (isset($revisions['new_value'][$key])) ? $revisions['new_value'][$key] : '';\n $diff[] = nl2br(getRevisiondifference($old_val, $new_val));\n }\n if ($activity_type == 'add_card_desc' || $activity_type == 'edit_card_duedate' || $activity_type == 'add_background' || $activity_type == 'change_background' || $activity_type == 'change_visibility') {\n $diff[] = $revisions['new_value'][$key];\n }\n }\n } else if (!empty($revisions['old_value']) && isset($response['activity']['type']) && $response['activity']['type'] == 'delete_card_comment') {\n $diff[] = nl2br(getRevisiondifference($revisions['old_value'], ''));\n }\n }\n if (isset($diff)) {\n $response['activity']['difference'] = $diff;\n }\n $result = pg_query_params($db_lnk, $sql, $pg_params);\n if ($result) {\n $conditions = array(\n $r_resource_vars['comments']\n );\n pg_query_params($db_lnk, \"DELETE FROM activities WHERE path like '%P\" . $r_resource_vars['comments'] . \"%'\", array());\n }\n $conditions = array(\n $r_resource_vars['cards']\n );\n $activity_count = executeQuery(\"SELECT COUNT(id) as total_count FROM activities WHERE type = 'add_comment' AND card_id = $1\", $conditions);\n $activity_count = (!empty($activity_count)) ? $activity_count['total_count'] : 0;\n $qry_val_arr = array(\n $activity_count,\n $r_resource_vars['cards']\n );\n pg_query_params($db_lnk, 'UPDATE cards SET comment_count = $1 WHERE id = $2', $qry_val_arr);\n $response['activity']['comment_count'] = $activity_count;\n $response['error'] = array(\n 'code' => (!$result) ? 1 : 0\n );\n $sql = false;\n break;\n\n case '/boards/?/lists/?/cards/?/attachments/?': //delete card attachment\n $sql = 'DELETE FROM card_attachments WHERE id = $1';\n array_push($pg_params, $r_resource_vars['attachments']);\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $comment = '##USER_NAME## deleted attachment from the card ##CARD_LINK##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_card_attachment', $foreign_ids, null, $r_resource_vars['attachments']);\n $mediadir = MEDIA_PATH . DS . 'Card' . DS . $r_resource_vars['cards'];\n $qry_val_arr = array(\n $r_resource_vars['attachments']\n );\n $attachment = executeQuery('SELECT name, path FROM card_attachments WHERE id = $1', $qry_val_arr);\n if (!empty($attachment)) {\n $file = APP_PATH . DS . $attachment['path'];\n if (file_exists($file)) {\n unlink($file);\n }\n foreach ($thumbsizes['CardAttachment'] as $key => $value) {\n $file_ext = explode('.', $attachment['name']);\n $hash = md5(SECURITYSALT . 'CardAttachment' . $r_resource_vars['attachments'] . $file_ext[1] . $key);\n $thumb_file = IMG_PATH . DS . $key . DS . 'Organization' . DS . $r_resource_vars['attachments'] . '.' . $hash . '.' . $file_ext[1];\n if (file_exists($thumb_file)) {\n unlink($thumb_file);\n }\n }\n }\n break;\n\n case '/boards/?/lists/?/cards/?/checklists/?': // delete checklist\n $qry_val_arr = array(\n $r_resource_vars['checklists']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT name FROM checklists WHERE id = $1', $qry_val_arr);\n $checklist = pg_fetch_assoc($s_result);\n pg_query_params($db_lnk, 'DELETE FROM checklist_items WHERE checklist_id = $1', $qry_val_arr);\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $comment = '##USER_NAME## deleted checklist ' . $checklist['name'] . ' from the card ##CARD_LINK##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_checklist', $foreign_ids, null, $r_resource_vars['checklists']);\n $sql = 'DELETE FROM checklists WHERE id = $1';\n array_push($pg_params, $r_resource_vars['checklists']);\n break;\n\n case '/boards/?/lists/?/cards/?/checklists/?/items/?': // delete items\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $qry_val_arr = array(\n $r_resource_vars['items']\n );\n $s_result = pg_query_params($db_lnk, 'SELECT name FROM checklist_items WHERE id = $1', $qry_val_arr);\n $checklist_item = pg_fetch_assoc($s_result);\n $comment = '##USER_NAME## deleted checklist ' . $checklist_item['name'] . ' item from the card ##CARD_LINK##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_checklist_item', $foreign_ids, null, $r_resource_vars['items']);\n $sql = 'DELETE FROM checklist_items WHERE id = $1';\n array_push($pg_params, $r_resource_vars['items']);\n break;\n\n case '/boards/?/lists/?/cards/?/cards_users/?': // delete card_user\n $foreign_ids['board_id'] = $r_resource_vars['boards'];\n $foreign_ids['list_id'] = $r_resource_vars['lists'];\n $foreign_ids['card_id'] = $r_resource_vars['cards'];\n $comment = '##USER_NAME## deleted member from the card ##CARD_LINK##';\n $response['activity'] = insertActivity($authUser['id'], $comment, 'delete_card_users', $foreign_ids, null, $r_resource_vars['cards_users']);\n $sql = 'DELETE FROM cards_users WHERE id = $1';\n $qry_val_arr = array(\n $r_resource_vars['cards_users']\n );\n $card_user = executeQuery('SELECT * FROM cards_users WHERE id = $1', $qry_val_arr);\n if (!empty($card_user)) {\n $conditions = array(\n $card_user['card_id'],\n $card_user['user_id']\n );\n pg_query_params($db_lnk, 'DELETE FROM card_subscribers WHERE card_id = $1 AND user_id = $2', $conditions);\n }\n array_push($pg_params, $r_resource_vars['cards_users']);\n break;\n\n case '/oauth/clients/?':\n $sql = 'DELETE FROM oauth_clients WHERE id= $1';\n array_push($pg_params, $r_resource_vars['clients']);\n break;\n\n case '/oauth/applications/?':\n $conditions = array(\n $r_resource_vars['applications']\n );\n pg_query_params($db_lnk, 'DELETE FROM oauth_access_tokens WHERE client_id = $1', $conditions);\n pg_query_params($db_lnk, 'DELETE FROM oauth_refresh_tokens WHERE client_id = $1', $conditions);\n $sql = false;\n break;\n\n case '/webhooks/?':\n $sql = 'DELETE FROM webhooks WHERE id= $1';\n array_push($pg_params, $r_resource_vars['webhooks']);\n break;\n\n case '/roles/?':\n $sql = 'DELETE FROM roles WHERE id= $1';\n $d_sql = 'UPDATE users SET role_id = 2 WHERE role_id = $1';\n array_push($pg_params, $r_resource_vars['roles']);\n break;\n\n case '/board_user_roles/?':\n $sql = 'DELETE FROM board_user_roles WHERE id= $1';\n $d_sql = 'UPDATE boards_users SET board_user_role_id = 3 WHERE board_user_role_id = $1';\n array_push($pg_params, $r_resource_vars['board_user_roles']);\n break;\n\n case '/organization_user_roles/?':\n $sql = 'DELETE FROM organization_user_roles WHERE id= $1';\n $d_sql = 'UPDATE organizations_users SET organization_user_role_id = 3 WHERE organization_user_role_id = $1';\n array_push($pg_params, $r_resource_vars['organization_user_roles']);\n break;\n\n default:\n $plugin_url['CustomFields'] = array(\n '/custom_fields/?',\n '/boards/?/custom_fields/?'\n );\n $plugin_url['CardTemplate'] = array(\n '/boards/?/card_templates/?'\n );\n $plugin_url['Gantt'] = array(\n '/boards/?/card_dependencies/?'\n );\n $plugin_url['Broadcast'] = array(\n '/broadcasts/?'\n );\n $plugin_url['Group'] = array(\n '/groups/?',\n '/groups/?/users/?'\n );\n $plugin_url['DrawIO'] = array(\n '/card_diagrams/?'\n );\n $plugin_url['Wiki'] = array(\n '/pages/?'\n );\n $plugin_url['CRM'] = array(\n '/contacts/?'\n );\n $plugin_url['Salesforce'] = array(\n '/salesforce/?'\n );\n $plugin_url['SupportApp'] = array(\n '/card_support_users'\n );\n foreach ($plugin_url as $plugin_key => $plugin_values) {\n if (in_array($r_resource_cmd, $plugin_values)) {\n $pluginToBePassed = $plugin_key;\n break;\n }\n }\n if (!empty($pluginToBePassed)) {\n require_once PLUGIN_PATH . DS . $pluginToBePassed . DS . 'R' . DS . 'r.php';\n $passed_values = array();\n $passed_values['sql'] = $sql;\n $passed_values['r_resource_cmd'] = $r_resource_cmd;\n $passed_values['r_resource_vars'] = $r_resource_vars;\n $passed_values['r_resource_filters'] = $r_resource_filters;\n $passed_values['authUser'] = $authUser;\n if (!empty($table_name)) {\n $passed_values['table_name'] = $table_name;\n }\n if (!empty($siteCurrencyCode)) {\n $passed_values['siteCurrencyCode'] = $siteCurrencyCode;\n }\n if (!empty($enabledPlugins)) {\n $passed_values['enabledPlugins'] = $enabledPlugins;\n }\n $plugin_return = call_user_func($plugin_key . '_r_delete', $passed_values);\n echo json_encode($plugin_return);\n exit;\n break;\n }\n header($_SERVER['SERVER_PROTOCOL'] . ' 501 Not Implemented', true, 501);\n break;\n }\n if (!empty($sql)) {\n $result = pg_query_params($db_lnk, $sql, $pg_params);\n if ($result && !empty($d_sql)) {\n pg_query_params($db_lnk, $d_sql, $pg_params);\n }\n $response['error'] = array(\n 'code' => (!$result) ? 1 : 0\n );\n }\n echo json_encode($response);\n}", "title": "" }, { "docid": "ee1d80cc6431372c7af0e6e51d60362f", "score": "0.6251274", "text": "function delete_group($record_id)\n{\n\tglobal $gCms;\n\t$db = cmsms()->GetDb();\n\t$query = \"DELETE FROM \".cms_db_prefix().\"module_adherents_groupes WHERE id = ?\";\n\t$dbresult = $db->Execute($query,array($record_id));\n\t\n\tif($dbresult)\n\t{\n\t\treturn TRUE;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n\t\n\t\n}", "title": "" }, { "docid": "8c8d3f6eadd62151d69d70c6d49c002d", "score": "0.61978245", "text": "function feed_group_users_remove_primary($uids, DatabaseTransaction $transaction = NULL) {\r\n if (!$transaction) {\r\n $transaction = db_transaction();\r\n }\r\n\r\n try {\r\n if (!is_array($uids)) {\r\n $uids = array($uids);\r\n }\r\n \r\n if (!empty($uids)) {\r\n db_delete('feed_user_group')\r\n ->condition('uid', $uids)\r\n ->condition('primary_group', 1)\r\n ->execute();\r\n }\r\n \r\n return TRUE;\r\n }\r\n catch (Exception $e) {\r\n $transaction->rollback();\r\n watchdog_exception('feed', $e);\r\n return FALSE;\r\n }\r\n}", "title": "" }, { "docid": "5ce880b1db9e34ba289e436131eaa4cf", "score": "0.61967593", "text": "function purgeMembers($type, $groups, $time_limit)\n{\n\t$db = database();\n\n\t$where_vars = array(\n\t\t'time_limit' => $time_limit,\n\t);\n\tif ($type === 'activated')\n\t{\n\t\t$where = 'mem.date_registered < {int:time_limit} AND mem.is_activated = {int:is_activated}';\n\t\t$where_vars['is_activated'] = 0;\n\t}\n\telse\n\t{\n\t\t$where = 'mem.last_login < {int:time_limit} AND (mem.last_login != 0 OR mem.date_registered < {int:time_limit})';\n\t}\n\n\t// Need to get *all* groups then work out which (if any) we avoid.\n\t$db->fetchQuery('\n\t\tSELECT \n\t\t\tid_group, group_name, min_posts\n\t\tFROM {db_prefix}membergroups',\n\t\tarray()\n\t)->fetch_callback(\n\t\tfunction ($row) use (&$where, &$where_vars, $groups) {\n\t\t\t// Avoid this one?\n\t\t\tif (!in_array($row['id_group'], $groups))\n\t\t\t{\n\t\t\t\t// Post group?\n\t\t\t\tif ($row['min_posts'] != -1)\n\t\t\t\t{\n\t\t\t\t\t$where .= ' AND mem.id_post_group != {int:id_post_group_' . $row['id_group'] . '}';\n\t\t\t\t\t$where_vars['id_post_group_' . $row['id_group']] = $row['id_group'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$where .= ' AND mem.id_group != {int:id_group_' . $row['id_group'] . '} AND FIND_IN_SET({int:id_group_' . $row['id_group'] . '}, mem.additional_groups) = 0';\n\t\t\t\t\t$where_vars['id_group_' . $row['id_group']] = $row['id_group'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t);\n\n\t// If we have ungrouped unselected we need to avoid those guys.\n\tif (!in_array(0, $groups))\n\t{\n\t\t$where .= ' AND (mem.id_group != 0 OR mem.additional_groups != {string:blank_add_groups})';\n\t\t$where_vars['blank_add_groups'] = '';\n\t}\n\n\t// Select all the members we're about to remove...\n\t$members = array();\n\t$db->fetchQuery('\n\t\tSELECT \n\t\t\tmem.id_member, COALESCE(m.id_member, 0) AS is_mod\n\t\tFROM {db_prefix}members AS mem\n\t\t\tLEFT JOIN {db_prefix}moderators AS m ON (m.id_member = mem.id_member)\n\t\tWHERE ' . $where,\n\t\t$where_vars\n\t)->fetch_callback(\n\t\tfunction ($row) use (&$members, $groups) {\n\t\t\tif (!$row['is_mod'] || !in_array(3, $groups))\n\t\t\t{\n\t\t\t\t$members[] = $row['id_member'];\n\t\t\t}\n\t\t}\n\t);\n\n\treturn $members;\n}", "title": "" }, { "docid": "f956bc4016d0aa43528cfbcc39e22fdc", "score": "0.6145802", "text": "function group_user_rem($group_id, $user_id, $clear_cache = false)\n{\n\tglobal $db, $cache, $config, $lang;\n\n\t$this_userdata = get_userdata($user_id);\n\n\t$sql = \"DELETE FROM \" . USER_GROUP_TABLE . \"\n\t\tWHERE user_id = \" . (int) $user_id . \"\n\t\t\tAND group_id = '\" . (int) $group_id . \"'\n\t\t\tAND group_leader = 0\";\n\t$result = $db->sql_query($sql);\n\n\tif (($this_userdata['user_level'] != ADMIN) && ($this_userdata['user_level'] == MOD))\n\t{\n\t\t$sql = \"SELECT COUNT(auth_mod) AS is_auth_mod\n\t\t\tFROM \" . AUTH_ACCESS_TABLE . \" aa, \" . USER_GROUP_TABLE . \" ug\n\t\t\tWHERE ug.user_id = \" . $user_id . \"\n\t\t\t\tAND aa.group_id = ug.group_id\n\t\t\t\tAND aa.auth_mod = 1\";\n\t\t$result = $db->sql_query($sql);\n\n\t\tif (!($row = $db->sql_fetchrow($result)) || ($row['is_auth_mod'] == 0))\n\t\t{\n\t\t\t$sql_u = \"UPDATE \" . USERS_TABLE . \"\n\t\t\t\tSET user_level = \" . USER . \"\n\t\t\t\tWHERE user_id = \" . $user_id;\n\t\t\t$result_u = $db->sql_query($sql_u);\n\t\t}\n\t\t$db->sql_freeresult($result);\n\t}\n\n\tif ($clear_cache)\n\t{\n\t\t$db->clear_cache();\n\t}\n\n\treturn 1;\n}", "title": "" }, { "docid": "22b253ded63223abad3c9a1ace8c5f34", "score": "0.6134683", "text": "public function disband() {\n //remove forums\n $this->remove_forums();\n\n //Move all members to default group (demote if leader)\n foreach($this->get_members() as $member) {\n $meminfo = $member->get_info();\n if($meminfo['isleader']) {\n $this->demote_member($meminfo['uid']);\n }\n $this->remove_member($meminfo['uid']);\n }\n\n //Delete usergroup (icgroup and groupfield also)\n $this->db->query('DELETE FROM '.TABLE_PREFIX.'usergroups WHERE gid = '.$this->info['gid']);\n $this->db->query('DELETE FROM '.TABLE_PREFIX.'groupfield_values WHERE gid = '.$this->info['gid']);\n $this->db->query('DELETE FROM '.TABLE_PREFIX.'icgroups WHERE gid = '.$this->info['gid']);\n\n //Delete any custom ranks\n $ranktable = $this->get_ranks(1);\n foreach($ranktable->get_tiers() as $tier) {\n $tierstring .= $tier['id'].',';\n }\n $ranktable->delete_tiers(trim($tierstring,','));\n\n $this->cache->update_usergroups();\n }", "title": "" }, { "docid": "301d9b2e00fd3f13d22ffad2e692fbcb", "score": "0.61120623", "text": "private static function deleteCustomUsers()\n\t{\n\t\t$db = \\JFactory::getDbo();\n\n\t\t$query = $db->getQuery(true)\n\t\t\t->delete($db->qn('#__users'))\n\t\t\t->where($db->qn('id') . ' >= ' . $db->q(1000));\n\t\t$db->setQuery($query);\n\t\t$db->execute();\n\n\t\t$query = $db->getQuery(true)\n\t\t\t->delete($db->qn('#__user_usergroup_map'))\n\t\t\t->where($db->qn('user_id') . ' >= ' . $db->q(1000));\n\t\t$db->setQuery($query)->execute();\n\n\t\tunset($query, $db);\n\t}", "title": "" }, { "docid": "ae20195424ec829f30baee5e54fb1a73", "score": "0.61085415", "text": "function remove_site2user($siteid,$userid)\n{\n pdo_query(\"DELETE FROM site2user WHERE siteid='$siteid' AND userid='$userid'\");\n add_last_sql_error(\"remove_site2user\");\n}", "title": "" }, { "docid": "ea96c039cae547b7c4062fb65fb42bf3", "score": "0.60971475", "text": "public function uip_delete_user_group()\n {\n if (defined(\"DOING_AJAX\") && DOING_AJAX && check_ajax_referer(\"uip-user-app-security-nonce\", \"security\") > 0) {\n $utils = new uipress_util();\n $folderID = $utils->clean_ajax_input($_POST[\"activeFolder\"]);\n\n if (!is_numeric($folderID) && !$folderID > 0) {\n $returndata[\"error\"] = __(\"No group to delete\", \"uipress\");\n echo json_encode($returndata);\n die();\n }\n\n $currentParent = get_post_meta($folderID, \"parent_folder\", true);\n\n $status = wp_delete_post($folderID);\n\n if (!$status) {\n $returndata[\"error\"] = __(\"Unable to delete the group\", \"uipress\");\n echo json_encode($returndata);\n die();\n }\n\n $args = [\n \"numberposts\" => -1,\n \"post_type\" => \"uip_user_group\",\n \"orderby\" => \"title\",\n \"order\" => \"ASC\",\n \"meta_query\" => [\n [\n \"key\" => \"parent_folder\",\n \"value\" => $folderID,\n \"compare\" => \"=\",\n ],\n ],\n ];\n\n $folders = get_posts($args);\n\n foreach ($folders as $folder) {\n if ($currentParent) {\n update_post_meta($folder->ID, \"parent_folder\", $currentParent);\n } else {\n delete_post_meta($folder->ID, \"parent_folder\");\n }\n }\n ///QUERY USERS\n $args = [\n \"number\" => -1,\n \"fields\" => \"ids\",\n \"meta_query\" => [\n [\n \"key\" => \"uip_user_group\",\n \"value\" => '\"' . $folderID . '\"',\n \"compare\" => \"LIKE\",\n ],\n ],\n ];\n\n $user_query = new WP_User_Query($args);\n $all_users = $user_query->get_results();\n\n foreach ($all_users as $item) {\n $current = get_user_meta($item, \"uip_user_group\", true);\n if (!is_array($current)) {\n $current = [];\n }\n\n if (in_array($folderID, $current)) {\n $pos = array_search($folderID, $current);\n unset($current[$pos]);\n update_user_meta($item, \"uip_user_group\", $current);\n }\n }\n\n $returndata[\"message\"] = __(\"Group deleted\", \"uipress\");\n echo json_encode($returndata);\n die();\n }\n die();\n }", "title": "" }, { "docid": "54c27970e73cff48554975475b112dd0", "score": "0.60664713", "text": "public function remove_group($group_id, $conn){\n $query = \"SELECT * FROM group_master WHERE id='$group_id'\";\n $result = $this->retrive_data($query,$conn);\n $row_count = mysqli_num_rows($result);\n if($row_count>0){\n $data = mysqli_fetch_assoc($result);\n $status = $data['status'];\n if($status==1){\n $query = \"UPDATE group_master SET status=0 WHERE id='$group_id'\";\n $result = $this->retrive_data($query,$conn);\n $affected_rows=mysqli_affected_rows($conn);\n if($affected_rows>0){\n $message = array('status'=> \"1\",\"msg\"=>\"Group Removed\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($message), 200):$this->response($this->publicjson($message), 200);\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"Group Not Removed\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"Group already removed\");\n ($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }\n else{\n $error = array('status' => \"0\", \"msg\" => \"Group Not Exist\");\n\t\t($_REQUEST['format']=='xml')?$this->response($this->publicxml($error), 200):$this->response($this->publicjson($error), 200);\n }\n }", "title": "" }, { "docid": "f9c76d966aa6abae6e88a538f5ec3955", "score": "0.60655123", "text": "function delete_staff_group()\n\t{\n\t\taccess_control($this);\n\t\t\n\t\t# Get the passed details into the url data array if any\n\t\t$urldata = $this->uri->uri_to_assoc(3, array('m', 'i', 't'));\n\t\t\n\t\t# Pick all assigned data\n\t\t$data = assign_to_data($urldata);\n\t\t\n\t\tif(!empty($data['i']))\n\t\t\t$result = delete_row($this, 'usergroups', decryptValue($data['i']));\n\t\t\n\t\t\n\t\tif(!empty($result) && $result){\n\t\t\t$this->session->set_userdata('dsg', \"The staff group has been deleted.\");\n\t\t\t\n\t\t\t#Delete the staff group's permissions as well\n\t\t\t$this->db->query($this->Query_reader->get_query_by_code('delete_group_permissions', array('groupid' => decryptValue($data['i']))));\n\t\t}\n\t\telse if(empty($data['msg']))\n\t\t{\n\t\t\t#$this->session->set_userdata('dsg', \"ERROR: The staff group could not be deleted or was not deleted correctly.\");\n\t\t}\n\t\t\n\t\tif(!empty($data['t']) && $data['t'] == 'super'){\n\t\t\t$tstr = \"/t/super\";\n\t\t}else{\n\t\t\t$tstr = \"\";\n\t\t}\n\t\t#redirect(\"user/manage_staff_groups/m/dsg\".$tstr);\n\t}", "title": "" }, { "docid": "22c1c525799fdf1415980080805e7842", "score": "0.6059272", "text": "function deleteGroup($group_id) {\r\n $this->db->delete('groups', array('group_pk' => $group_id));\r\n $this->db->delete('group_members', array('group_id' => $group_id));\r\n $this->db->delete('file_group_accesses', array('group_id' => $group_id));\r\n }", "title": "" }, { "docid": "8a28d9bacdaa01d890f7a0426574084f", "score": "0.6050442", "text": "function feed_group_delete($feed_group, DatabaseTransaction $transaction = NULL) {\r\n if (!$transaction) {\r\n $transaction = db_transaction();\r\n }\r\n\r\n try {\r\n if (isset($feed_group->fgid)) {\r\n db_delete('feed_user_group')\r\n ->condition('fgid', $feed_group->fgid)\r\n ->execute();\r\n \r\n db_delete('feed_group')\r\n ->condition('fgid', $feed_group->fgid)\r\n ->execute();\r\n }\r\n return TRUE;\r\n }\r\n catch (Exception $e) {\r\n $transaction->rollback();\r\n watchdog_exception('feed', $e);\r\n return FALSE;\r\n }\r\n}", "title": "" }, { "docid": "e433e8e0b614991b3f12fbbd61f11185", "score": "0.6047171", "text": "function learndash_delete_group( $pid = 0 ) {\n\tglobal $wpdb;\n\n\t$pid = absint( $pid );\n\tif ( ! empty( $pid ) && is_numeric( $pid ) ) {\n\t\t$wpdb->delete(\n\t\t\t$wpdb->usermeta,\n\t\t\tarray(\n\t\t\t\t'meta_key' => 'learndash_group_users_' . $pid,\n\t\t\t\t'meta_value' => $pid,\n\t\t\t)\n\t\t);\n\t\t$wpdb->delete(\n\t\t\t$wpdb->usermeta,\n\t\t\tarray(\n\t\t\t\t'meta_key' => 'learndash_group_leaders_' . $pid,\n\t\t\t\t'meta_value' => $pid,\n\t\t\t)\n\t\t);\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "6956d1d618f2de2f77305edb3a7dfbaf", "score": "0.60325927", "text": "function delug(){\n\nglobal $user, $conn, $dbtables, $logged_in, $globals, $l, $AEF_SESS, $theme;\t\n\t\t\n\t\n\tif(isset($_GET['ugid']) && trim($_GET['ugid']) != '' && is_numeric(trim($_GET['ugid']))){\n\t\n\t\t$member_group = (int) inputsec(htmlizer(trim($_GET['ugid'])));\n\t\t\n\t}else{\n\t\n\t\t//Redirect\n\t\tredirect('act=admin&adact=ug&seadact=manug');\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\t\n\t//Get the user group\n\t$qresult = makequery(\"SELECT * FROM \".$dbtables['user_groups'].\"\n\t\t\t\t\t\tWHERE member_group = '$member_group'\");\n\t\t\t\t\t\t\n\tif(mysql_num_rows($qresult) < 1){\n\t\n\t\t//Redirect\n\t\tredirect('act=admin&adact=ug&seadact=manug');\n\t\t\n\t\treturn false;\n\t\n\t}else{\n\t\n\t\t$user_group = mysql_fetch_assoc($qresult);\n\t\n\t}\n\t\n\t//Now you cant delete certain groups\n\tif(!in_array($user_group['member_group'], array(-3,-1,0,1,3))){\n\t\t\n\t\t/////////////////////////\n\t\t// DELETE the User Group\n\t\t/////////////////////////\n\t\t\n\t\t$qresult = makequery(\"DELETE FROM \".$dbtables['user_groups'].\"\n\t\t\t\t\t\tWHERE member_group = '$member_group'\", false);\n\t\n\t\t\n\t\t//Free the resources\n\t\t@mysql_free_result($qresult);\n\t\t\n\t\t//Does it have any permissions\n\t\tif($user_group['post_count'] == -1){\n\t\t\n\t\t\tdeleteugper($member_group);\n\t\t\n\t\t}\n\t\n\t}else{\n\t\n\t\t//Show a major error and return\n\t\treporterror($l['ugr_error'], $l['ugr_no_del_perm']);\n\t\t\t\n\t\treturn false;\n\t\n\t}\n\t\n\t//Redirect\n\tredirect('act=admin&adact=ug&seadact=manug');\n\t\n\treturn true;\n\t\n}", "title": "" }, { "docid": "a07c97fe7364cefcab7792ec5ecf60f0", "score": "0.60160583", "text": "function remove()\r\n\t{\r\n /**\r\n * Check For Request Forgeries\r\n */\r\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\r\n\r\n\t\t$option = JRequest::getCmd( 'option' );\r\n\r\n\t\t$db \t\t\t=& JFactory::getDBO();\r\n\t\t$currentUser =& JFactory::getUser();\r\n\t\t$acl\t\t\t=& JFactory::getACL();\r\n\t\t$cid \t\t\t= JRequest::getVar( 'cid', array(), '', 'array' );\r\n\r\n\t\tJArrayHelper::toInteger( $cid );\r\n\r\n\t\tif( count( $cid ) < 1 ){\r\n\t\t\tJError::raiseError(500, JText::_( 'NOIXACL_USERS_SELECT_GROUP_DELETE', true ) );\r\n\t\t}\r\n\t\t\r\n\t\tforeach($cid as $id){\r\n\t\t\t$groupID = intval( $id );\r\n\r\n\t\t\tif( $groupID > 30 ){\t\t\t\t\r\n\t\t\t\tif( $this->del_group($groupID,$reparentChildren) ){\r\n\t\t\t\t\t$msg = JText::_(\"NOIXACL_GROUPS_GROUP_REMOVED_SUCESSFULL\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t$msg = JText::_(\"NOIXACL_GROUPS_GROUP_REMOVE_ERROR\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\r\n\t\t$this->setRedirect( \"index.php?option={$option}\", $msg);\r\n\t}", "title": "" }, { "docid": "8f5bd94ac44c3b0035987b2b62768b77", "score": "0.60148", "text": "function purge_user()\n\t{\n\t\tlog_message('debug', 'User/shopper_dashboard');\n\t\t$data = filter_forwarded_data($this);\n\t\t$response = $this->_api->post('account/purge_user', array('purgeUsers'=>explode('--', $data['list']) ));\n\t\tlog_message('debug', 'User/change_group:: [1] response='.json_encode($response));\n\t\t\n\t\t$data['msg'] = (!empty($response['result']) && $response['result'] == 'SUCCESS')? \"The user data has been purged from the system.\": \"ERROR: All the user data could not be removed. \".(!empty($response['msg'])? \"<br>DETAILS:<BR>\".$response['msg']: '');\n\t\t\n\t\t$data['area'] = 'refresh_list_msg';\n\t\t\n\t\tlog_message('debug', 'User/change_group:: [2] data='.json_encode($data));\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "title": "" }, { "docid": "5c1eee0fec5fafb6c6281275604e39c3", "score": "0.601431", "text": "function remover_grupo($dbconn, $id_grupo) {\n\n $sql = \"DELETE FROM grupos WHERE ID = ?\";\n \n $stmt = $dbconn->prepare($sql);\n\n if (!$stmt = $dbconn->prepare($sql)) {\n $_SESSION['danger'] = \"Ocorreu um erro ao remover o grupo.\";\n header(\"Location: ../perfil-usuario.php\");\n die();\n } else {\n $stmt->bindParam(1, $id_grupo);\n $stmt->execute();\n }\n}", "title": "" }, { "docid": "e586498b1825c5b8ce2467d4157256ee", "score": "0.6006196", "text": "public function delete_group($user_groups_id) {\r\n if($user_groups_id != 1 && $user_groups_id != 2 && $user_groups_id != 3 && $user_groups_id != 4){\r\n $this->Csz_admin_model->removeData('user_to_group', 'user_groups_id', $user_groups_id);\r\n $this->Csz_admin_model->removeData('user_perm_to_group', 'user_groups_id', $user_groups_id);\r\n $this->Csz_admin_model->removeData('user_groups', 'user_groups_id', $user_groups_id);\r\n }\r\n }", "title": "" }, { "docid": "433d66e24f93bb2c2160e0a42167589d", "score": "0.60017323", "text": "function deleteGroup($groupid)\n{\n GLOBAL $dbObject;\n GLOBAL $toJsonString; \n\n $dbObject->queryDelete(\"delete from sample_group where id='$groupid'\");\n if($dbObject->isDberror())\n {\n return '{\"status\":\"error\",\"results\":\"'.$dbObject->getDberror().'\"}';\n }\n else\n {\n if($dbObject->get_affected_rows() > 0)\n {\n return '{\"status\":\"good\",\"results\":\"The group was deleted!\"}';\n }\n else\n {\n //user does not exisist\n return '{\"status\":\"error\",\"results\":\"No records to delete.\"}';\n }\n } \n}", "title": "" }, { "docid": "acbeeb53e25d39ac4009a3811c6bc5a0", "score": "0.5999303", "text": "function deleteGroupFunction($param2){\n $this->db->where('group_id', $param2);\n $this->db->delete('group');\n }", "title": "" }, { "docid": "ce4fe5ef2820801599b799313e647fd2", "score": "0.59943897", "text": "function deleteGroupWall($gid)\n\t{\n\t\t$db =& JFactory::getDBO();\n\t\t\t\t\n\t\t$sql = \"DELETE \n\t\t\t\t\n\t\t\t\tFROM \n\t\t\t\t\t\t\".$db->nameQuote(\"#__community_wall\").\" \n\t\t\t\tWHERE \n\t\t\t\t\t\t\".$db->nameQuote(\"contentid\").\" = \".$db->quote($gid).\" AND\n\t\t\t\t\t\t\".$db->nameQuote(\"type\").\" = \".$db->quote('groups');\t\t\t\t\t\t\n\t\t$db->setQuery($sql);\n\t\t$db->Query();\n\t\tif($db->getErrorNum()){\n\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "da6e554b93472a13c03c22fa8fbc76cb", "score": "0.59886235", "text": "public function deleteQuestsOfGroupsgroup($groupsgroupId)\n {\n $this->db->query('DELETE FROM charactergroupsquests WHERE charactergroupsgroup_id = ?', 'i', $groupsgroupId);\n }", "title": "" }, { "docid": "74af7cf709612da07a4c1b08410ddb0e", "score": "0.5976343", "text": "function delete_group($gid)\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$group = $this->get_group_details($gid);\r\n\t\tif(!$group)\r\n\t\t\te(lang(\"grp_exist_error\"));\r\n\t\telseif(userid()!=$group['userid'] && !has_access('admin_access',true))\r\n\t\t\te(lang(\"you_cant_delete_this_grp\"));\r\n\t\telse\r\n\t\t{\r\n\t\t\t//Deleting Everything Related To This Group\r\n\t\t\t$this->delete_group_topics($gid);\r\n\t\t\t$this->delete_group_videos($gid);\r\n\t\t\t$this->delete_group_members($gid);\r\n\t\t\t$db->delete(tbl($this->gp_tbl),array(\"group_id\"),array($gid));\r\n\t\t\t$this->update_user_total_groups($group['userid']);\r\n\t\t\te(lang(\"grp_deleted\"),\"m\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2e6d14a1c2cec15a271a7d0bc7704263", "score": "0.596933", "text": "function deleteGroupDiscussions($gid)\n\t{\n\t\t$db =& JFactory::getDBO();\n\t\n\t\t$sql = \"SELECT \n\t\t\t\t\t\t\".$db->nameQuote(\"id\").\" \t\t\t\t\t\t\n\t\t\t\tFROM \n\t\t\t\t\t\t\".$db->nameQuote(\"#__community_groups_discuss\").\" \n\t\t\t\tWHERE \n\t\t\t\t\t\t\".$db->nameQuote(\"groupid\").\" = \".$gid;\t\t\t\t\t\t\n\t\t$db->setQuery($sql);\n\t\t$row = $db->loadobjectList();\n\t\tif($db->getErrorNum())\n\t\t{\n\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t}\n\t\t\n\t\tif(!empty($row))\n\t\t{\n\t\t\t$ids_array = array();\t\n\t\t\tforeach($row as $tempid)\n\t\t\t{\n\t\t\t\tarray_push($ids_array, $tempid->id);\n\t\t\t}\n\t\t\t$ids = implode(',', $ids_array);\n\t\t}\t\t\t\n\t\t\t\t\t\n\t\t$sql = \"DELETE \n\t\t\t\t\n\t\t\t\tFROM \n\t\t\t\t\t\t\".$db->nameQuote(\"#__community_groups_discuss\").\" \n\t\t\t\tWHERE \n\t\t\t\t\t\t\".$db->nameQuote(\"groupid\").\" = \".$gid;\t\t\t\t\n\t\t$db->setQuery($sql);\n\t\t$db->Query();\n\t\tif($db->getErrorNum())\n\t\t{\n\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t}\n\t\t\n\t\tif(!empty($ids))\n\t\t{\t\t\t\t\n\t\t\t$sql = \"DELETE \n\t\t\t\t\t\n\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\".$db->nameQuote(\"#__community_wall\").\" \n\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t\".$db->nameQuote(\"contentid\").\" IN (\".$ids.\") AND \n\t\t\t\t\t\t\t\".$db->nameQuote(\"type\").\" = \".$db->quote('discussions');\t\t\t\t\n\t\t\t$db->setQuery($sql);\n\t\t\t$db->Query();\n\t\t\tif($db->getErrorNum())\n\t\t\t{\n\t\t\t\tJError::raiseError( 500, $db->stderr());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "85761b1ec25ad0aa020f661fe8b9105d", "score": "0.59671175", "text": "function hapus_group($group_id)\r\n\t{\r\n\t\tif ($this->ion_auth->is_admin())\r\n\t\t{\r\n\t\t\t$group_d = $this->ion_auth->delete_group($group_id);\r\n\r\n\t\t\tif (!$group_d)\r\n\t\t\t{\r\n\t\t\t\t$errors = $this->ion_auth->messages();\r\n\t\t\t}else{\r\n\t\t\t\tredirect ('group','refresh');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ee4ac7bced894cb1d768f19fd671a7c2", "score": "0.59626985", "text": "function rebuild_members()\n{\n\tglobal $globalDb;\n\n\tdo_log(\"Rebuilding 'validated members' group membership\",1);\n\n\t$validated_members_groupid=1; // validated member group\n\n\t$groups = get_all_auto_group_names();\n\t// add group 1 to its\n\t$groups[] = $validated_members_groupid;\n\n\t// compile auto_generated group IDs as a string\n\t$auto_group_ids = implode(\",\", $groups);\n\n\tdo_log(\"Auto_group_ids=$auto_group_ids\", 1);\n\n\t// set group membership previous state to state, and then state to 1, indicating we are working in this groups right now\n\t$globalDb->query(\"update group_membership set previous_state=state WHERE\n\t\tgroup_id IN ($auto_group_ids)\");\n\t$globalDb->query(\"update group_membership set state=1 where group_id IN ($auto_group_ids) \");\n\n\t// update group membership for all auto generated groups\n\n\n\t// query all characters with api state = 0, only these must be reactivated\n\t$sth = $globalDb->query(\"SELECT a.user_id, a.user_name, b.corp_id, c.corp_name, d.alliance_name,\nc.is_allowed_to_reg as corp_allowed_reg, c.is_allied as corp_allied,\nd.is_allowed_to_reg as alliance_allowed_reg, d.is_allied as alliance_allied,\np.is_allied as key_allied\nFROM auth_users a, api_characters b, corporations c, alliances d, player_api_keys p\nWHERE b.state <=2\nAND a.user_id = b.user_id AND p.user_id = a.user_id\nAND (d.alliance_id = c.alliance_id)\nAND c.corp_id = b.corp_id\nAND (c.is_allowed_to_reg = 1 OR d.is_allowed_to_reg = 1 or c.is_allied = 1 or d.is_allied=1)\n\");\n echo \"We have \" . $sth->num_rows . \" rows to process for membership...\\n\";\n\n\twhile($result=$sth->fetch_array())\n {\n\t\t$user_id=$result['user_id'];\n $key_allied = $result['key_allied']; // is this a key of an ally?\n $corp_allied = $result['corp_allied']; // is this corp allied?\n $alliance_allied = $result['alliance_allied']; // is this alliance allied\n\n $sql = \"insert into group_membership (`group_id`,`user_id`,`state`) values \" .\n \"('$validated_members_groupid','$user_id',0) on duplicate key update state='0'\";\n\n\t\t// valid member, so insert into group_membership or update and set state to 0\n\t\tif (!$globalDb->query($sql))\n {\n echo \"SQL='$sql' failed ...\\n\" . $globalDb->error . \"\\n\";\n }\n\n\t\t// check if there is a group with the corp_name\n\t\t$corp_name = $globalDb->real_escape_string($result['corp_name']);\n\n // if it is an allied key, it must match corp_allied\n if ($corp_allied == 1 || $key_allied == $corp_allied)\n {\n if (array_key_exists($corp_name, $groups)) {\n $corp_group_id = $groups[$corp_name];\n $globalDb->query(\"insert into group_membership (`group_id`,`user_id`,`state`) values \" .\n \"('$corp_group_id','$user_id',0) on duplicate key update state='0'\");\n } else {\n\t\t\t\t// there is no auto-generated corp, this is probably a corp of an allied alliance, so we dont bother\n //echo \"Warning: Corp_allied == key_allied, but could not find corp_name '$corp_name' in groups\\n\";\n //print_r($groups);\n }\n }\n\n\n if ($alliance_allied == 1 || $key_allied == $alliance_allied)\n {\n // check if there is a group with the alliance_name\n $alliance_name = \"Alliance \" . $globalDb->real_escape_string($result['alliance_name']);\n\n if (array_key_exists($alliance_name, $groups)) {\n $alliance_group_id = $groups[$alliance_name];\n $globalDb->query(\"insert into group_membership (`group_id`,`user_id`,`state`) values \" .\n \"('$alliance_group_id','$user_id',0) on duplicate key update state='0'\");\n }\n }\n\n\n\t}\n\n\t// get all users with validated member group not working anymore, they need to be removed from any group\n\t$sql = \"SELECT user_id FROM group_membership WHERE state=1 and group_id='$validated_members_groupid' \";\n\t$res = $globalDb->query($sql);\n\n\twhile ($row = $res->fetch_array())\n\t{\n\t\t// set state to 99\n\t\t$userid = $row['user_id'];\n\t\techo \"Removing user $userid from all groups, as no longer a valid member...\\n\";\n\t\tdo_log(\"Removing user $userid from all groups because he is no longer a valid member \",1);\n\n\t\t$globalDb->query(\"update group_membership set state=99 where user_id = $userid\");\n\t}\n\n\t// get all users that we set to state=1, they need to be removed from that group\n\t$sql = \"SELECT user_id, group_id FROM group_membership WHERE state=1 \";\n\t$res = $globalDb->query($sql);\n\n\twhile ($row = $res->fetch_array())\n\t{\n\t\t// set state to 99\n\t\t$userid = $row['user_id'];\n\t\t$group_id = $row['group_id'];\n\t\tdo_log(\"Removing user $userid from group $group_id because he is no longer valid.\",1);\n\n\t\tadd_user_notification($userid, \"You have been automatically removed from group $group_id.\", 0);\n\n\n\t\t$globalDb->query(\"update group_membership set state=99 where\n\t\t\t\t\tgroup_id = $group_id AND user_id = $userid\");\n\t}\n}", "title": "" }, { "docid": "0919eb11bda23d4b305969e02dd3ead8", "score": "0.5959309", "text": "function delete_group_belongs ($record_id)\n{\n\tglobal $gCms;\n\t$db = cmsms()->GetDb();\n\t$query = \"DELETE FROM \".cms_db_prefix().\"module_adherents_groupes_belongs WHERE id_group = ?\";\n\t$dbresult = $db->Execute($query, array($record_id));\n\t\n\tif($dbresult)\n\t{\n\t\treturn TRUE;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n}", "title": "" }, { "docid": "04f6c4bb5a8105b31e69422291f3c3b1", "score": "0.59575176", "text": "private function deleteUser() {\n\t\t$dbw = wfGetDB( DB_MASTER );\n\n\t\t/**\n\t\t * Format is: table => user_id column\n\t\t *\n\t\t * If you want it to use a different db object:\n\t\t * table => array( user_id colum, 'db' => DatabaseBase );\n\t\t */\n\t\t$tablesToDelete = [\n\t\t\t'user_groups' => 'ug_user',\n\t\t\t'user_properties' => 'up_user',\n\t\t\t'user_former_groups' => 'ufg_user',\n\t\t];\n\n\t\tHooks::run( 'UserMergeAccountDeleteTables', [ &$tablesToDelete ] );\n\n\t\t$tablesToDelete['user'] = 'user_id'; // Make sure this always set and last\n\n\t\tforeach ( $tablesToDelete as $table => $field ) {\n\t\t\t// Check if a different database object was passed (Echo or Flow)\n\t\t\tif ( is_array( $field ) ) {\n\t\t\t\t$db = isset( $field['db'] ) ? $field['db'] : $dbw;\n\t\t\t\t$field = $field[0];\n\t\t\t} else {\n\t\t\t\t$db = $dbw;\n\t\t\t}\n\t\t\t$db->delete(\n\t\t\t\t$table,\n\t\t\t\t[ $field => $this->oldUser->getId() ]\n\t\t\t);\n\t\t}\n\n\t\tHooks::run( 'DeleteAccount', [ &$this->oldUser ] );\n\n\t\tDeferredUpdates::addUpdate( SiteStatsUpdate::factory( [ 'users' => -1 ] ) );\n\t}", "title": "" }, { "docid": "ae370450d3fbc9fded977580a4173ae0", "score": "0.5933871", "text": "function action_removeFromGroup() {\n $this->auto_render = false;\n\n $user = Helper_User::getUser();\n $article = Doctrine::instance()->getRepository('Model_Article')->findOneBy(array('id' => $_POST['article']));\n $favorite = Doctrine::instance()->getRepository('Model_Favorite')->findOneByArticle($article);\n $group = Doctrine::instance()->getRepository('Model_Favoritegroup')->findOneBy(array('user' => $user->id, 'id' => $_POST['group']));\n\n if($user && $group && $favorite) {\n if($group->favorites->contains($favorite)) {\n $group->favorites->removeElement($favorite);\n $favorite->favoriteGroups->removeElement($group);\n Doctrine::instance()->persist($favorite);\n Doctrine::instance()->persist($group);\n Doctrine::instance()->flush();\n }\n }\n }", "title": "" }, { "docid": "83cb5bfa7db74737b6f8d46b530623a5", "score": "0.5932768", "text": "Function removeIconGroup($groupid)\n {\n $sql = \"DELETE FROM \".TABLE_ICON_GROUPS.\" WHERE ID = \".intval($groupid);\n if ($exe = runQuery($sql))\n {\n return 1;\n }\n else\n {\n return 0;\n }\n }", "title": "" }, { "docid": "7aa0ca888c63d323fb8d0fb58267033d", "score": "0.59286624", "text": "function supprimer_groupe($id_groupe) {\n\n\tglobal $pdo;\n\t$stmt = $pdo->prepare('DELETE dm, dr, gm, g FROM dates_membres dm INNER JOIN dates_rencontres dr ON dm.id_date = dr.id\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN groupes_membres gm ON gm.id_groupe = :id_groupe\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN groupes g ON g.id = :id_groupe\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE dr.id_groupe = :id_groupe');\n\t$stmt->bindValue('id_groupe', $id_groupe, PDO::PARAM_INT);\n\tif($stmt->execute())\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "13306b80205ebf63788091a4be2ce35c", "score": "0.5926803", "text": "function dbGroupDelete(& $dbo, $groupId) {\n\n\t// return false if a bad group was passed.\n\tif (!dbGroupCheck($dbo, $groupId))\n\t\treturn false;\n\n\t// delete criteria related to this group...\n\t$sql = 'DELETE FROM '.$dbo->table['groups_criteria'].' WHERE group_id=\\''.$groupId.'\\'';\n\t$dbo->query($sql);\n\t$sql = 'DELETE FROM '.$dbo->table['groups_criteria'].' WHERE logic=\\'is_in\\' OR logic=\\'not_in\\' AND value=\\''.$groupId.'\\'';\n\t$dbo->query($sql);\n\n\t// delete group\n\t$sql = 'DELETE FROM '.$dbo->table['groups'].' WHERE group_id=\\''.$groupId.'\\'';\n\treturn $dbo->affected($sql);\n}", "title": "" }, { "docid": "7893bfc784d3f86a6f13844a9b92617f", "score": "0.5917968", "text": "function delete_user($uid)\n{\n\t//toroljuk ki a rendszerbol\n\t//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11system call!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\tsystem_delete_user($uid);\n\t//toroljuk ki az sql adatbazisbol mint user\n\topen_database();\n\t$query=\"DELETE FROM users WHERE uid=$uid\";\n\t$rez=search_database($query,\"delete_user : remove user from user list\");\n\t//toroljuk ki minden group-bol\n\t$t=searchgroup($uid,\"uid\");\n\tfor($i=1;$i<$t[0];$i++)\n\t{\n\t\t$query=\"DELETE FROM `$t[$i]` WHERE uid=$uid\";\n\t\t$rez=search_database($query,\"delete_user : remove user from groups $t[$i]\");\n\t\t//toroljuk le a user info-jat is\n\t\t$query=\"DELETE FROM user_info WHERE uid=$uid\";\n\t\t$rez=search_database($query,\"delete_user : delete userinfo : $query\");\n\t\t//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11system call!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tsystem_remfrom_group($user,$t[$i]);\n\t}\n//\tclose_database();\n}", "title": "" }, { "docid": "bac945ba75adfc3d84e26fd4971f0c41", "score": "0.59139335", "text": "public function remove()\n {\n global $DB;\n\n $ret = '';\n $sql = array();\n $GLOBALS['txp_err_count'] = 0;\n\n if ($this->table_exist(1)) {\n\n $sql[] = \"DROP TABLE IF EXISTS \" .PFX.SMD_UM_PRIVS. \"; \";\n $sql[] = \"DROP TABLE IF EXISTS \" .PFX.SMD_UM_GROUPS. \"; \";\n\n if (gps('debug')) {\n dmp($sql);\n }\n\n foreach ($sql as $qry) {\n $ret = safe_query($qry);\n\n if ($ret === false) {\n $GLOBALS['txp_err_count']++;\n echo \"<b>\".$GLOBALS['txp_err_count'].\".</b> \".mysqli_error($DB->link).\"<br />\\n\";\n echo \"<!--\\n $qry \\n-->\\n\";\n }\n }\n }\n\n if ($GLOBALS['txp_err_count'] == 0) {\n $msg = gTxt('smd_um_tbl_removed');\n } else {\n $msg = gTxt('smd_um_tbl_not_removed');\n $this->smd_um($msg);\n }\n\n safe_delete(\n 'txp_prefs',\n \"name like 'smd\\_um\\_%' OR name like 'smd\\_user\\_manager\\_%'\"\n );\n\n // @todo delete Textpack.\n }", "title": "" }, { "docid": "a9d6528d8dcf8260bec5fde7e1d91910", "score": "0.59107035", "text": "function phpbb_update_groups($user_id, $phpbb_groups)\n{\n\tglobal $db, $phpbb_db, $settings;\n\t\n\t// delete not-exsisting groups\n\t$res = $phpbb_db->get_results($sql = \"SELECT group_id FROM {$settings['db']}user_group WHERE user_id = '$user_id'\");\n\t$existing = array();\n \tif ($res)\n\t foreach ($res as $q)\n\t\t$existing[] = $q->group_id;\n\tforeach (array_diff($existing, $phpbb_groups) as $i)\n\t\t$q = $phpbb_db->query(\"DELETE FROM {$settings['db']}user_group WHERE group_id = '$i' AND user_id = '$user_id'\");\n\n\t// insert new groups\n\tif (!$phpbb_groups) return;\n\tforeach (array_diff($phpbb_groups, $existing) as $i)\n\t\tif ($i)\n\t\t\t$phpbb_db->query($sql = \"INSERT INTO {$settings['db']}user_group (group_id, user_id, user_pending) VALUES ($i, $user_id, 0)\");\n}", "title": "" }, { "docid": "885c87064fd096c264bf8182f74ecad9", "score": "0.5890851", "text": "public function testGroupsCanBeDeleted()\n {\n $group = factory(Group::class)->create();\n\n $this->actingAs(factory(User::class)->states('admin')->create())\n ->deleteJson('api/groups/'.$group->id)\n ->assertStatus(204);\n\n $this->assertDatabaseMissing('groups', [\n 'id' => $group->id,\n ]);\n }", "title": "" }, { "docid": "a5a1a3b71404c3c09ae6b27399df0635", "score": "0.5880221", "text": "function _group_delete( $group_ids = array() )\r\n\t{\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGroup id set?\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$group_ids\t= $this->_only_numeric( $group_ids );\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGroup id set?\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( empty( $group_ids ) )\r\n\t\t{\r\n\t\t\t$this->message[]\t= lang('group_id_required');\r\n\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGet group info\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$sql\t= \"SELECT \tmember_id, title, private\r\n\t\t\t\t FROM \texp_friends_groups\r\n\t\t\t\t WHERE \tmember_id = \" . ee()->db->escape_str( ee()->session->userdata( 'member_id' ) ) . \"\r\n\t\t\t\t AND \t\tgroup_id\r\n\t\t\t\t IN \t\t(\" . implode( \",\", $group_ids ) . \")\";\r\n\r\n\t\t$query\t= ee()->db->query( $sql );\r\n\r\n\t\tif ( $query->num_rows() == 0 )\r\n\t\t{\r\n\t\t\t$this->message[]\t= lang('group_not_found');\r\n\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDelete group\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tee()->db->query(\r\n\t\t\t\"DELETE FROM \texp_friends_groups\r\n\t\t\t WHERE \t\t\tgroup_id\r\n\t\t\t IN \t\t\t(\" . implode( \",\", $group_ids ) . \")\" );\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tRemove friends\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tee()->db->query(\r\n\t\t\t\"DELETE FROM \texp_friends_group_posts\r\n\t\t\t WHERE \t\t\tgroup_id\r\n\t\t\t IN \t\t\t(\" . implode( \",\", $group_ids ) . \")\"\r\n\t\t);\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tUpdate member count\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$titles\t\t= array();\r\n\r\n\t\tforeach ( $query->result_array() as $row )\r\n\t\t{\r\n\t\t\t$titles[]\t= $row['title'];\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tUpdate owned group stats\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$this->_update_owned_group_stats( ee()->session->userdata('member_id') );\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tReturn\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( count( $titles ) > 1 )\r\n\t\t{\r\n\t\t\t$this->message[]\t= str_replace(\r\n\t\t\t\t\"%group_title%\",\r\n\t\t\t\timplode( \", \", $titles ),\r\n\t\t\t\tlang( 'groups_title_deleted' )\r\n\t\t\t);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->message[]\t= str_replace(\r\n\t\t\t\t\"%group_title%\",\r\n\t\t\t\timplode( \", \", $titles ),\r\n\t\t\t\tlang( 'group_title_deleted' )\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn TRUE;\r\n\t}", "title": "" }, { "docid": "62d6114d1a0234aa63907f1158525788", "score": "0.5868852", "text": "function gallery2_delete()\n{\n\t\n // Remove all hooks\n \n // search hook\n /*\n if (!xarModUnregisterHook('item', 'search', 'GUI', 'gallery2', 'user', 'search')) {\n return false;\n }\n */ \n // \"delete / purge user / group (roles)\" hook\n if (!xarModUnregisterHook('item', 'delete', 'API', 'gallery2', 'admin', 'deletehook')) {\n return false;\n }\n // \"add member\" hook, userapi\n // \"create user / group (roles)\" hook\n if (!xarModUnregisterHook('item', 'create', 'API', 'gallery2', 'admin', 'createhook')) {\n return false;\n }\n // \"update user / group (roles)\" hook\n if (!xarModUnregisterHook('item', 'update', 'API', 'gallery2', 'admin', 'updatehook')) {\n return false;\n }\n // unregister the base updateconfig hook\n // Register a hook that listens to base module config changes (site wide language code)\n if (!xarModUnregisterHook('module', 'updateconfig', 'API', 'gallery2', 'admin', 'updateconfighook')) {\n return false;\n }\n\t\n // Remove module variables\t\n xarModDelVar('gallery2','g2.includepath');\n xarModDelVar('gallery2','g2Uri');\n xarModDelVar('gallery2','embedUri');\n xarModDelVar('gallery2','g2.loginredirect');\n xarModDelVar('gallery2','configured');\n xarModDelVar('gallery2','SupportShortURLs');\n xarModDelVar('gallery2', 'coreApiVersion');\n xarmodDelVar('gallery2', 'xar.minCoreVersion');\n xarModDelVar('gallery2','g2.sidebarInside');\n // Remove Masks and Instances\n xarRemoveMasks('gallery2');\n \n return true;\n}", "title": "" }, { "docid": "58d67f5646398554e171db1fb867522c", "score": "0.58592695", "text": "private function deleteFieldsAndGroups()\n {\n $this->deleteFields();\n $this->deleteGroups();\n }", "title": "" }, { "docid": "791e41bab4754dd1d163b8d148c21c50", "score": "0.5859232", "text": "public function uip_remove_from_group()\n {\n if (defined(\"DOING_AJAX\") && DOING_AJAX && check_ajax_referer(\"uip-user-app-security-nonce\", \"security\") > 0) {\n $utils = new uipress_util();\n $contentIds = $utils->clean_ajax_input($_POST[\"items\"]);\n $type = $utils->clean_ajax_input($_POST[\"itemtype\"]);\n\n if (!is_array($contentIds)) {\n $returndata[\"error\"] = __(\"No item to move\", \"uipress\");\n echo json_encode($returndata);\n die();\n }\n\n foreach ($contentIds as $contentId) {\n if ($type == \"content\") {\n $status = delete_post_meta($contentId, \"uip_user_group\");\n }\n if ($type == \"folder\") {\n $status = delete_post_meta($contentId, \"parent_folder\");\n }\n }\n\n $returndata[\"message\"] = __(\"Item moved\", \"uipress\");\n echo json_encode($returndata);\n die();\n }\n die();\n }", "title": "" }, { "docid": "24da6a50c71cd57ee001c0c0c571c806", "score": "0.58579916", "text": "function deleteForums(){\n\t\t$res = db_query_params('SELECT group_forum_id FROM forum_group_list\n\t\t\t\t\tWHERE group_id=$1',\n\t\t\t\t\tarray ($this->group_id));\n\t\twhile($row=db_fetch_array($res)){\n\t\t\t$f = new Forum($this->group, $row['group_forum_id']);\n\t\t\t$f->delete(true,true);\n\t\t}\n\t}", "title": "" }, { "docid": "d5af6e21783670d6c532db300f1e2ce2", "score": "0.5854139", "text": "function clearGroupMember($user_ids, $site_id)\n {\n //get group data from db\n list($flag, $project_group_data, $chat_group_data) = $this->CI->group_model->getGroups($user_ids, $site_id);\n if (!$flag){\n log_message('error', \"get group by reuqest user ids ->\".var_export($user_ids,true).\" error.\");\n return false;\n }\n //update chat group group logo, group name and group pinyin\n if (!empty($chat_group_data)){\n $group_change_info = $this->deleteChatGrupMember($chat_group_data);\n }\n //send msg to client nofity the users is quit\n $send_data = $this->CI->msglib->createGrpMsg($project_group_data, $chat_group_data, $group_change_info);\n $flag = false;\n if (!empty($send_data)){\n list($flag, $results) = $this->CI->msglib->sendGrpMsg($send_data);\n }\n //clear project group and chat group data from db\n if(!empty($user_ids) && $flag){\n $this->CI->group_model->deleteGroupMember($user_ids);\n }\n //return \n return true;\n }", "title": "" }, { "docid": "0148a1c5e9ec23c85b973c5099a40533", "score": "0.585056", "text": "function updateCRMGroupsDetails($refId,$groupNewIds,$groupType=NULL){\n\t\n\tglobal $maildb,$db;\n\t\n\t$groupIdsArr = $groupNewIds;\n\t$groupIdsCount = count($groupIdsArr);\n\t\n\t//$query = \"DELETE FROM crmgroup_details WHERE refId = '\".$refId.\"'\";\n\t $query = \"DELETE gd \n\t\t\tFROM crmgroup_details AS gd \n\t\t\tINNER JOIN crmgroups AS grp ON gd.groupId = grp.sno \n\t\t\tWHERE grp.grouptype = '\".$groupType.\"' and gd.refId = '\".$refId.\"'\"; \n\t\t\n\tmysql_query($query, $db);\n\t\n\n\tfor($grpCount = 0; $grpCount < $groupIdsCount; $grpCount++)\n\t{\n\t\tif($groupIdsArr[$grpCount] != 0)\n\t\t{\n\t\t \n\t\t\t$crmGroupDetailSql=\"INSERT INTO crmgroup_details (groupId ,refId) VALUES ('\".$groupIdsArr[$grpCount].\"','\".$refId.\"')\";\n\t\t\tmysql_query($crmGroupDetailSql,$db);\n\t\t}\t\t\n\t} \n\t\n}", "title": "" }, { "docid": "c9a3a0d14754245ada25dba53574249c", "score": "0.5848682", "text": "function bug_enableDisableDeleteData($action) {\n if ($action != 1) {\n $enableDisableDeleteData = CRM_BUGP_BAO_Bugp::checkRelatedExtensions();\n if ($enableDisableDeleteData) {\n return FALSE;\n }\n elseif($enableDisableDeleteData == 0) {\n $action = 0;\n } \n }\n\n if ($action < 2) { \n CRM_Core_DAO::executeQuery(\n \"UPDATE civicrm_uf_group SET is_active = %1 WHERE group_type LIKE '%Grant%'\", \n array(\n 1 => array($action, 'Integer'),\n )\n ); \n \n }\n else {\n CRM_Core_DAO::executeQuery(\n \"DELETE uj.*, uf.*, g.* FROM civicrm_uf_group g\n LEFT JOIN civicrm_uf_join uj ON uj.uf_group_id = g.id\n LEFT JOIN civicrm_uf_field uf ON uf.uf_group_id = g.id\n WHERE g.group_type LIKE '%Grant%';\"\n );\n } \n \n bugp_addRemoveMenu($action);\n \n}", "title": "" }, { "docid": "20459f07882299a57da41135b73ea322", "score": "0.5837647", "text": "function dbGroupFilterDel(& $dbo, $criteria_id) {\n\t// verify criteria is_numeric\n\tif (!is_numeric($criteria_id))\n\t\treturn false;\n\t$sql = 'DELETE FROM '.$dbo->table['groups_criteria'].' WHERE criteria_id=\\''.$criteria_id.'\\' LIMIT 1';\n\treturn $dbo->affected($sql);\n}", "title": "" }, { "docid": "52b559e39c171fc9e419ddc0576f2fd7", "score": "0.5831319", "text": "function remove(){\n //this primarily means remove links for this Resource\n\n //delete all user's references\n //delete all user's reference's documents\n //delete all user's resources\n //delete user from all groups\n\n// DB::db_query(\"delete_user_links\", \"DELETE FROM links WHERE from_id='\".$_SESSION[\"object_id\"].\"' AND (type = '7' \n// OR type='11');\");\n// if(DB::db_check_result(\"delete_user_links\") > 0){\n// //success\n// }\n\n DB::db_query(\"delete_user\", \"DELETE FROM \\\"user\\\" WHERE id='\".$_SESSION[\"object_id\"].\"'\");\n if(DB::db_check_result(\"delete_user\") > 0){\n include($GLOBALS[\"draw_includes_path\"].\"/User/.UserDeleted.html\");\n }\n }", "title": "" }, { "docid": "20028dcd813c5dafd57f4b72a218d8b5", "score": "0.58267796", "text": "function delete_usergroup_dash_tile($tile,$group)\n\t{\n\tif(!is_numeric($tile) || !is_numeric($group)){return false;}\t\n sql_query(\"DELETE FROM usergroup_dash_tile WHERE usergroup = '{$group}' AND dash_tile = '{$tile}'\");\t\t\t\t\t\n\tsql_query(\"DELETE ud.* FROM user_dash_tile ud LEFT JOIN user u ON ud.user=u.ref LEFT JOIN usergroup ug ON ug.ref=u.usergroup WHERE ud.dash_tile='\" . $tile . \"' and ug.ref='\" . $group . \"'\");\n\t}", "title": "" }, { "docid": "cea0eacd346bcdd64e94dab9676025e1", "score": "0.58148164", "text": "function rebuild_groups()\n{\n\tdo_log(\"rebuilding auto-assigned groups\",1);\n\n\trebuild_members();\n\trebuild_directors();\n\trebuild_ceo();\n\trebuild_titans();\n\trebuild_supercarriers();\n}", "title": "" }, { "docid": "bd9d18e7f4fe1abd2f2dc7fcffec2056", "score": "0.5813067", "text": "function _recount_groups()\r\n\t{\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGroup id?\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( $this->group_id == '' ) return FALSE;\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGet DB count\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$query\t= ee()->db->query(\r\n\t\t\t\"SELECT COUNT(*) AS count\r\n\t\t\t FROM \texp_friends_group_posts\r\n\t\t\t WHERE \tgroup_id = '\" . $this->group_id . \"'\"\r\n\t\t);\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tUpdate\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tee()->db->query(\r\n\t\t\tee()->db->update_string(\r\n\t\t\t\t'exp_friends_groups',\r\n\t\t\t\tarray( 'total_members' => $query->row('count') ),\r\n\t\t\t\tarray( 'group_id' => $this->group_id )\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tReturn\r\n\t\t//\t----------------------------------------\r\n\r\n\t\treturn $query->row('count');\r\n\t}", "title": "" }, { "docid": "80d7473893bd70f1b4784a6e7a5bb19e", "score": "0.58059144", "text": "protected function add_remove_user($user_id, $action){\n\n\t\tif(!$this->id)\n\t\t\tthrow new Psa_Group_Exception(\"Group ID not set.\", 305);\n\n\n\t\tif(!$user_id)\n\t\t\tthrow new Psa_Group_Exception('Invalid $user_id method parameter.', 306);\n\n\n\t\t// if $user_id is not array make it array for foreach loop\n\t\tif(!is_array($user_id))\n\t\t\t$user_id = array($user_id);\n\n\t\t// flag if some query failed in the foreach loop\n\t\t$success = $failed = 0;\n\n\t\t// add one or more users to the group or remove from group\n\t\tforeach ($user_id as $user_id_key => $user_id_value){\n\n\t\t\t$user_id_value = (int) $user_id_value;\n\n\t\t\t// add to group\n\t\t\tif($action == 1){\n\t\t\t\t$sql = \"INSERT INTO {$this->psa_registry->PSA_CFG['database']['table']['user_in_group']} (group_id, user_id) VALUES (?, ?)\";\n\t\t\t\t$q_params = array($this->id, $user_id_value);\n\t\t\t}\n\t\t\t// remove from group\n\t\t\telse if($action == 0){\n\n\t\t\t\t// remove all users from the group\n\t\t\t\tif($user_id_value == 'all'){\n\t\t\t\t\t$sql = \"DELETE FROM {$this->psa_registry->PSA_CFG['database']['table']['user_in_group']} WHERE group_id=?\";\n\t\t\t\t\t$q_params = array($this->id);\n\t\t\t\t}\n\t\t\t\t// remove specific user from the group\n\t\t\t\telse{\n\t\t\t\t\t$sql = \"DELETE FROM {$this->psa_registry->PSA_CFG['database']['table']['user_in_group']} WHERE group_id=? AND user_id =?\";\n\t\t\t\t\t$q_params = array($this->id, $user_id_value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttry{\n\t\t\t\t// run query against the database\n\t\t\t\t$this->psa_database->execute($q_params, $sql);\n\t\t\t}\n\t\t\tcatch(Psa_Db_Exception $e){\n\t\t\t\t$failed = 1;\n\t\t\t}\n\n\t\t\t// if no rows affected user already wasn't or was in the group depending on $action\n\t\t\tif($this->psa_database->affected_rows() <= 0)\n\t\t\t\t$failed = 1;\n\t\t\telse\n\t\t\t\t$success = 1;\n\t\t}\n\n\t\tif($success){\n\n\t\t\t// write log\n\t\t\tif($this->psa_registry->PSA_CFG['logging']['max_log_level'] >= 2)\n\t\t\t\t$this->log(\"Members of group changed: \" . implode(',', $user_id) . \" action=\" . ($action ? 'add' : 'remove'), __METHOD__, 2);\n\n\t\t\tif(!$failed)\n\t\t\t\treturn 1;\n\t\t}\n\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "e19b0c3e3bd864980c528b6973f44172", "score": "0.5803307", "text": "public function delete(){ \n // Can only delete an object where `id` is set\n if (!$this->_id) {\n return false;\n }\n \n $result = parent::delete();\n \n // Get connection\n $db = static::connection();\n $link_table = static::$tables['group_user']->name;\n $auth_table = static::$tables['authorize_user']->name;\n \n $sqlVars[\":id\"] = $this->_id;\n \n $query = \"\n DELETE FROM `$link_table`\n WHERE user_id = :id\";\n \n $stmt = $db->prepare($query);\n $stmt->execute($sqlVars);\n \n $query = \"\n DELETE FROM `$auth_table`\n WHERE user_id = :id\";\n \n $stmt = $db->prepare($query);\n $stmt->execute($sqlVars); \n\n return $result;\n }", "title": "" }, { "docid": "12c3a8d0ce4556b91fbd6dea9360de06", "score": "0.5803005", "text": "function rebuild_ceo()\n{\n\tglobal $globalDb;\n\n\tdo_log(\"Rebuilding 'ceo' group membership\",1);\n\t$group=50;\n\n\t// first of all, reset all is_ceo fields\n\t$globalDb->query(\"update api_characters set is_ceo='0' \");\n\t// now query corporations table for all ceos\n\t$globalDb->query(\" UPDATE api_characters a, corporations c set a.is_ceo='1' WHERE a.character_id = c.ceo AND a.corp_id = c.corp_id \");\n\n // set group membership previous state to state, and then state to 1, indicating we are working in this groups right now\n\t$globalDb->query(\"update group_membership set previous_state=state where group_id='$group'\");\n\t$globalDb->query(\"update group_membership set state=1 where group_id='$group'\");\n\n\n\t// now check all active apis and directors\n\t// ONLY select characters from corporations that are allowed to reg\n\t// else we will have foreign directors being able to register and getting director roles automatically *facepalm*\n\t$sth=$globalDb->query(\"SELECT a.user_id, b.corp_id, b.corp_name, d.alliance_name\nFROM auth_users a, api_characters b, corporations c, alliances d\nWHERE b.state <=2 AND b.is_ceo = 1\nAND a.user_id = b.user_id\nAND (d.alliance_id = c.alliance_id)\nAND c.corp_id = b.corp_id\nAND (c.is_allowed_to_reg = 1 OR d.is_allowed_to_reg = 1)\n\");\n\n\n\twhile($result=$sth->fetch_array()) {\n\t\t$user_id=$result['user_id'];\n\t\tdo_log(\"Starting group chain investigation for user id $user_id against group $group\",9);\n\t\t// check group chain\n\t\t$chain=check_group_chain($group,$user_id);\n\t\tif($chain==0) {\n\t\t\t$globalDb->query(\"insert into group_membership (`group_id`,`user_id`,`state`) values \" .\n\t\t\t\t\"('$group','$user_id',0) on duplicate key update state='0'\");\n\n\t\t\t// check if toon is CEO\n\n\t\t}\n\t}\n\n\t// if they were not confirmed, they need to set to state=99\n\t$globalDb->query(\"update group_membership set state=99 where state='1' and group_id='$group'\");\n}", "title": "" }, { "docid": "4b9067ba56fbb48dbbec57d8d60f4459", "score": "0.5800158", "text": "function deleteMenugroup($group_id){\r\n\t\t//echo $objMenugroup->delete(\"id=\".(int)$group_id);die();\r\n\t}", "title": "" }, { "docid": "7a6456963158a6866f7797e0ab316427", "score": "0.57971025", "text": "function delete_all_auth($group_id, $not_mod = false)\n{\n\tglobal $db;\n\n\t$sql = \"DELETE FROM \" . AUTH_ACCESS_TABLE . \"\n\t\tWHERE group_id = \" . $group_id .\n\t\t($not_mod ? \" AND auth_mod = 0\" : \"\") ;\n\t$result = $db->sql_query($sql);\n\n\treturn true;\n}", "title": "" }, { "docid": "499623f4d4478fffeaaf2086348a48b9", "score": "0.5795016", "text": "public function deleteData() {\n\t\t$db = $this->a->db();\n\t\t$db->exec(\"SET FOREIGN_KEY_CHECKS=0\");\n\t\t$tables = $db->query(\"SHOW TABLES\")->fetchAll(PDO::FETCH_COLUMN);\n\t\tforeach ($tables as $table) {\n\t\t\tif ($table !== 'users' && $table !== 'users_groups' && $table !== 'groups') {\n\t\t\t\t$db->exec(\"TRUNCATE $table\");\n\t\t\t}\n\t\t}\n\t\t$db->exec(\"SET FOREIGN_KEY_CHECKS=1\");\n\t}", "title": "" }, { "docid": "dac3d40d33cfcab5d1e1c55f9e77c3f8", "score": "0.578083", "text": "function del_group($groupID, $reparentChildren=TRUE, $groupType='ARO') {\r\n\t\t$acl = JFactory::getACL();\r\n\t\t\r\n\t\tswitch( strtolower( trim($groupType) ) ) {\r\n\t\t\tcase 'axo':\r\n\t\t\t\t$groupType = 'axo';\r\n\t\t\t\t$table = $acl->_db_table_prefix .'axo_groups';\r\n\t\t\t\t$groupsMapTable = $acl->_db_table_prefix .'axo_groups_map';\r\n\t\t\t\t$groupsObjectMapTable = $acl->_db_table_prefix .'groups_axo_map';\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$groupType = 'aro';\r\n\t\t\t\t$table = $acl->_db_table_prefix .'aro_groups';\r\n\t\t\t\t$groupsMapTable = $acl->_db_table_prefix .'aro_groups_map';\r\n\t\t\t\t$groupsObjectMapTable = $acl->_db_table_prefix .'groups_aro_map';\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\r\n\t\t$acl->debug_text(\"del_group(): ID: $groupID Reparent Children: $reparentChildren Group Type: $groupType\");\r\n\t\r\n\t\tif( empty($groupID) ){\r\n\t\t\t$acl->debug_text(\"del_group(): Group ID ($groupID) is empty, this is required\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n /**\r\n * Get Details of This Group\r\n */\r\n\t\t$query = 'SELECT id, parent_id, name, lft, rgt FROM '. $table .' WHERE id='. (int) $groupID;\r\n\t\t$groupDetails = $acl->db->GetRow($query);\r\n\t\r\n\t\tif( !is_array($groupDetails) ){\r\n\t\t\t$acl->debug_db('del_group');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\t$parentID = $groupDetails[1];\r\n\t\r\n\t\t$left = $groupDetails[3];\r\n\t\t$right = $groupDetails[4];\r\n\t\r\n\t\t$acl->db->BeginTrans();\r\n\t\r\n /**\r\n * Grab List of All Children\r\n */\r\n\t\t$childrenIDs = $acl->get_group_children($groupID, $groupType, 'RECURSE');\r\n\t\r\n /**\r\n * Prevent Deletion of Root Group & Reparent of Children if it Has More Than One Immediate Child\r\n */\r\n\t\tif( $parentID == 0 ){\r\n\t\t\t$query = 'SELECT count(*) FROM '. $table .' WHERE parent_id='. (int) $groupID;\r\n\t\t\t$childCount = $acl->db->GetOne($query);\r\n\t\r\n\t\t\tif ( ($childCount > 1) AND $reparentChildren ) {\r\n\t\t\t\t$acl->debug_text ('del_group (): You cannot delete the root group and reparent children, this would create multiple root groups.');\r\n\t\t\t\t$acl->db->RollbackTrans();\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t$success = FALSE;\r\n\t\r\n\t\t/*\r\n\t\t * Handle children here.\r\n\t\t */\r\n\t\tswitch (TRUE) {\r\n /**\r\n * There are no child groups, just delete group\r\n */\r\n\t\t\tcase !is_array($childrenIDs):\r\n\t\t\tcase count($childrenIDs) == 0:\r\n /**\r\n * Remove group object maps\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $groupsObjectMapTable .' WHERE group_id='. (int) $groupID;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * Remove group\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $table .' WHERE id='. (int) $groupID;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * Move all groups right of deleted group left by width of deleted group\r\n */\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET lft=lft-'. (int)($right-$left+1) .' WHERE lft>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET rgt=rgt-'. (int)($right-$left+1) .' WHERE rgt>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$success = TRUE;\r\n\t\t\t\tbreak;\r\n \t\t\tcase $reparentChildren == TRUE:\r\n /**\r\n * Remove group object maps\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $groupsObjectMapTable .' WHERE group_id='. (int) $groupID;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * Remove group\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $table .' WHERE id='. (int) $groupID;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * Set parent of immediate children to parent group\r\n */\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET parent_id='. (int) $parentID .' WHERE parent_id='. (int) $groupID;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * move all children left by 1\r\n */\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET lft=lft-1, rgt=rgt-1 WHERE lft>'. (int) $left .' AND rgt<'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * move all groups right of deleted group left by 2\r\n */\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET lft=lft-2 WHERE lft>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET rgt=rgt-2 WHERE rgt>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$success = TRUE;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n /**\r\n * make list of groups and all children\r\n */\r\n\t\t\t\t$groupIDs = $childrenIDs;\r\n\t\t\t\t$groupIDs[] = (int) $groupID;\r\n /**\r\n * remove group object maps\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $groupsObjectMapTable .' WHERE group_id IN ('. implode (',', $groupIDs) .')';\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * remove groups\r\n */\r\n\t\t\t\t$query = 'DELETE FROM '. $table .' WHERE id IN ('. implode (',', $groupIDs) .')';\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n /**\r\n * move all groups right of deleted group left by width of deleted group\r\n */\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET lft=lft-'. ($right - $left + 1) .' WHERE lft>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$query = 'UPDATE '. $table .' SET rgt=rgt-'. ($right - $left + 1) .' WHERE rgt>'. (int) $right;\r\n\t\t\t\t$rs = $acl->db->Execute($query);\r\n\t\r\n\t\t\t\tif (!is_object($rs)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$success = TRUE;\r\n\t\t}\r\n\t\r\n /**\r\n * if delete failed , rollback the trans and return false\r\n */\r\n\t\tif (!$success) {\r\n\t\r\n\t\t\t$acl->debug_db('del_group');\r\n\t\t\t$acl->db->RollBackTrans();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\t$acl->debug_text(\"del_group(): deleted group ID: $groupID\");\r\n\t\t$acl->db->CommitTrans();\r\n\t\r\n\t\tif ($acl->_caching == TRUE AND$acl->_force_cache_expire == TRUE) {\r\n /**\r\n * Expire all cache\r\n */\r\n\t\t\t$acl->Cache_Lite->clean('default');\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t\r\n\t}", "title": "" }, { "docid": "920c735e363d2ad373003b289904c149", "score": "0.57765347", "text": "public abstract /*void*/ function delete(/*Group_Provider*/$group);", "title": "" }, { "docid": "65c283ff9980cf10a01e6f561b1ce534", "score": "0.5771783", "text": "function supprimer_membre_groupe($id_groupe, $id_membre) {\n\n\tglobal $pdo;\n\t$stmt = $pdo->prepare('DELETE FROM groupes_membres WHERE id_groupe = :id_groupe AND id_membre = :id_membre');\n\t$stmt->bindValue('id_groupe', $id_groupe, PDO::PARAM_INT);\n\t$stmt->bindValue('id_membre', $id_membre, PDO::PARAM_INT);\n\tif($stmt->execute())\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "ab00c29552a6a7e848f31e5dc711bf3a", "score": "0.5770102", "text": "public function delete($id)\n {\n $sql = \"DELETE from groups WHERE id=$id; \";\n $sql .= \"DELETE from group_inherit WHERE group_id=$id OR parent_id=$id; \";\n $sql .= \"DELETE from contact WHERE group_id=$id; \";\n if ($this->conn->multi_query($sql)) {\n $call = true;\n do {\n if (!$this->conn->more_results()) {\n $call = false;\n }\n } while ($call && $this->conn->next_result());\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "208b8bbe19b2f03c879d4adb17376f2f", "score": "0.5767325", "text": "protected function avantSuppression() {\n $userGroups = $this->getListeUserGroup();\n foreach ($userGroups as $userGroup) {\n $userGroup->supprimer();\n }\n }", "title": "" }, { "docid": "cf6729dd62c9847d145aa924cfd9c423", "score": "0.5759298", "text": "function MY_submDel($id) {\n\t$query = \"DELETE FROM `submissions` WHERE `id` = '\" . $id . \"' LIMIT 1\";\n\tMY_dbQueryUser($query);\n}", "title": "" }, { "docid": "2ed8ec40838984869e7bde35ae291c52", "score": "0.5757339", "text": "public function deleteGroup(){\n\t\t$data = Input::all();\n\t\t//Se obtienen los datos del grupo a eliminar.\n\t\t$toDelete = Plantilla::select('plantillas.id')\n\t\t\t\t->join('subjects as s', 'plantillas.id_subject', '=', 's.id')\n\t\t\t\t->join('plans as p', 'p.id', '=', 's.id_plan')\n\t\t\t\t->where('plantillas.grupo', '=', $data['g'])\n\t\t\t\t->where('s.semestre', '=', $data['s'])\n\t\t\t\t->where('p.nombre', '=', $data['pl'])\n\t\t\t\t->get();\n\t\t//Se eliminan todos sus registros\n\t\tforeach ($toDelete as $dato) {\n\t\t\t$grupo = Plantilla::find($dato->id);\n\t\t\t$grupo->delete();\n\t\t}\n\t\treturn Redirect::to('proyectos/editar-proyecto?p='.$data['pid']);\n\t}", "title": "" }, { "docid": "ae2283c0a1e51262ce29d80d9280f505", "score": "0.5753166", "text": "protected function setUpUserGroups()\n {\n $userGroupObjectToBeDeleted = $this->getUsergroup(array(\n 'name' => 'To be deleted usergroup',\n ));\n $userGroupToBeDeleted = static::$userGroupManager->createOrUpdate($userGroupObjectToBeDeleted);\n $this->_to_be_deleted_usergroup_id = $userGroupToBeDeleted->getProperty('id');\n }", "title": "" }, { "docid": "6e3c138cca710aa0a9e5873e9f35c6d4", "score": "0.57524043", "text": "function removeUserFromGroup($user,$group) {\n\t\ttry {\n\t\t\t$cond = new Criteria();\n\t\t\t$cond->add(UserGroupPeer::USERID, $user);\n\t\t\t$cond->add(UserGroupPeer::GROUPID, $group);\n\t\t\t$userGroup = UserGroupPeer::doSelectOne($cond);\n\t\t\t$userGroup->delete();\n\t\t\treturn true;\n\t\t}\n\t\tcatch (PropelException $exp) {\n\t\t\tif (ConfigModule::get(\"global\",\"showPropelExceptions\"))\n\t\t\t\tprint_r($exp->getMessage());\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "c02c57afbad6dfb8206bb8318e749e34", "score": "0.5748003", "text": "function remove_build($buildid)\n{\n if(!is_numeric($buildid))\n {\n return;\n }\n\n pdo_query(\"DELETE FROM build2group WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM builderror WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM buildemail WHERE buildid='$buildid'\");\n \n pdo_query(\"DELETE FROM buildinformation WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM builderrordiff WHERE buildid='$buildid'\"); \n pdo_query(\"DELETE FROM buildupdate WHERE buildid='$buildid'\");\n \n pdo_query(\"DELETE FROM configure WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM configureerror WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM configureerrordiff WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM coveragesummarydiff WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM testdiff WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM buildtesttime WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM summaryemail WHERE buildid='$buildid'\");\n \n // Remove the buildfailureargument\n $buildfailure = pdo_query(\"SELECT id FROM buildfailure WHERE buildid='$buildid'\");\n while($buildfailure_array = pdo_fetch_array($buildfailure))\n {\n $buildfailureid = $buildfailure_array['id'];\n pdo_query(\"DELETE FROM buildfailure2argument WHERE buildfailureid='$buildfailureid'\");\n pdo_query(\"DELETE FROM label2buildfailure WHERE buildfailureid='$buildfailureid'\");\n // Don't delete the arguments for now...\n }\n \n pdo_query(\"DELETE FROM buildfailure WHERE buildid='$buildid'\"); \n \n // coverage file are kept unless they are shared\n $coverage = pdo_query(\"SELECT fileid FROM coverage WHERE buildid='$buildid'\");\n while($coverage_array = pdo_fetch_array($coverage))\n {\n $fileid = $coverage_array[\"fileid\"];\n // Make sur the file is not shared\n $numfiles = pdo_query(\"SELECT count(*) FROM coveragefile WHERE id='$fileid'\");\n if($numfiles[0]==1)\n {\n pdo_query(\"DELETE FROM coveragefile WHERE id='$fileid'\"); \n pdo_query(\"DELETE FROM label2coveragefile WHERE id='$coveragefileid' AND buildid=\".qnum($buildid)); \n }\n }\n \n pdo_query(\"DELETE FROM coverage WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM coveragefilelog WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM coveragesummary WHERE buildid='$buildid'\");\n\n // dynamicanalysisdefect\n $dynamicanalysis = pdo_query(\"SELECT id FROM dynamicanalysis WHERE buildid='$buildid'\");\n while($dynamicanalysis_array = pdo_fetch_array($dynamicanalysis))\n {\n $dynid = $dynamicanalysis_array[\"id\"];\n pdo_query(\"DELETE FROM dynamicanalysisdefect WHERE dynamicanalysisid='$dynid'\"); \n pdo_query(\"DELETE FROM label2dynamicanalysis WHERE dynamicanalysisid='$dynid'\"); \n }\n \n pdo_query(\"DELETE FROM dynamicanalysis WHERE buildid='$buildid'\");\n pdo_query(\"DELETE FROM updatefile WHERE buildid='$buildid'\"); \n \n // Delete the note if not shared\n $build2note = pdo_query(\"SELECT * FROM build2note WHERE buildid='$buildid'\");\n while($build2note_array = pdo_fetch_array($build2note))\n {\n $noteid = $build2note_array[\"noteid\"];\n if(pdo_num_rows(pdo_query(\"SELECT * FROM build2note WHERE noteid='$noteid'\"))==1)\n {\n // Note is not shared we delete\n pdo_query(\"DELETE FROM note WHERE id='$noteid'\");\n }\n }\n pdo_query(\"DELETE FROM build2note WHERE buildid='$buildid'\"); \n \n // Delete the test if not shared\n $build2test = pdo_query(\"SELECT * FROM build2test WHERE buildid='$buildid'\");\n while($build2test_array = pdo_fetch_array($build2test))\n {\n $testid = $build2test_array[\"testid\"];\n if(pdo_num_rows(pdo_query(\"SELECT * FROM build2test WHERE testid='$testid'\"))==1)\n {\n // Check if the images for the test are not shared\n $test2image = pdo_query(\"SELECT imgid FROM test2image WHERE testid='$testid'\");\n while($test2image_array = pdo_fetch_array($test2image))\n {\n $imgid = $test2image_array[\"imgid\"];\n // Check if the test images are shared\n if(pdo_num_rows(pdo_query(\"SELECT * FROM test2image WHERE imgid='$imgid'\"))==1)\n {\n pdo_query(\"DELETE FROM image WHERE id='$imgid'\");\n }\n }\n // Tests are not shared we delete\n pdo_query(\"DELETE FROM testmeasurement WHERE testid='$testid'\");\n pdo_query(\"DELETE FROM test WHERE id='$testid'\");\n pdo_query(\"DELETE FROM test2image WHERE testid='$testid'\");\n pdo_query(\"DELETE FROM label2test WHERE testid='$testid' AND buildid='$buildid'\");\n }\n }\n pdo_query(\"DELETE FROM build2test WHERE buildid='$buildid'\"); \n \n // Delete the subproject\n pdo_query(\"DELETE FROM subproject2build WHERE buildid='$buildid'\"); \n\n // Delete the labels\n pdo_query(\"DELETE FROM label2build WHERE buildid='$buildid'\");\n \n // Only delete the buildid at the end so that no other build can get it in the meantime\n pdo_query(\"DELETE FROM build WHERE id='$buildid'\");\n\n}", "title": "" }, { "docid": "bc5654e34150b80fec09e8738cd9889f", "score": "0.5747742", "text": "function delete_group($id)\n {\n return $this->db->delete('tbl_group',array('id'=>$id));\n }", "title": "" }, { "docid": "176f020326b406aefc2fc8aaf0407f16", "score": "0.5742513", "text": "private function delete_user_data( $user_id ) {\n\n\t\tglobal $wpdb;\n\n\t\t/* bp_groups table */\n\n\t\t$result = $wpdb->delete(\n\t\t\t\"{$wpdb->base_prefix}bp_groups\",\n\t\t\tarray( 'creator_id' => $user_id )\n\t\t);\n\n\t\tif ( false === $result ) {\n\t\t\tthrow new Exception( sprintf( esc_html__( \"Could not reassign user data for user: %s\", 'ct-ultimate-gdpr' ), $this->user->get_email() ) );\n\t\t}\n\n\t\t/* bp_groups_members table */\n\n\t\t$result = $wpdb->delete(\n\t\t\t\"{$wpdb->base_prefix}bp_groups_members\",\n\t\t\tarray( 'user_id' => $user_id )\n\t\t);\n\n\t\tif ( false === $result ) {\n\t\t\tthrow new Exception( sprintf( esc_html__( \"Could not reassign user data for user: %s\", 'ct-ultimate-gdpr' ), $this->user->get_email() ) );\n\t\t}\n\n\t\t/* bp_xprofile_data table */\n\n\t\t$result = $wpdb->delete(\n\t\t\t\"{$wpdb->base_prefix}bp_xprofile_data\",\n\t\t\tarray( 'user_id' => $user_id )\n\t\t);\n\n\t\tif ( false === $result ) {\n\t\t\tthrow new Exception( sprintf( esc_html__( \"Could not reassign user data for user: %s\", 'ct-ultimate-gdpr' ), $this->user->get_email() ) );\n\t\t}\n\n\t\t/* bp_messages_messages table */\n\n\t\t$result = $wpdb->delete(\n\t\t\t\"{$wpdb->base_prefix}bp_messages_recipients\",\n\t\t\tarray( 'user_id' => $user_id )\n\t\t);\n\n\t\tif ( false === $result ) {\n\t\t\tthrow new Exception( sprintf( esc_html__( \"Could not reassign user data for user: %s\", 'ct-ultimate-gdpr' ), $this->user->get_email() ) );\n\t\t}\n\n\t\t/* bp_messages_recipients table */\n\n\t\t$result = $wpdb->delete(\n\t\t\t\"{$wpdb->base_prefix}bp_messages_messages\",\n\t\t\tarray( 'sender_id' => $user_id )\n\t\t);\n\n\t\tif ( false === $result ) {\n\t\t\tthrow new Exception( sprintf( esc_html__( \"Could not reassign user data for user: %s\", 'ct-ultimate-gdpr' ), $this->user->get_email() ) );\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "6d9feed144a8be340345e96dd3fc4342", "score": "0.5738405", "text": "function project_remove_all_users( $p_project_id ) {\r\n\t\t$t_project_user_list_table = config_get( 'mantis_project_user_list_table' );\r\n\r\n\t\t$c_project_id\t= db_prepare_int( $p_project_id );\r\n\r\n\t\t$query = \"DELETE FROM $t_project_user_list_table\r\n\t\t\t\tWHERE project_id='$c_project_id'\";\r\n\r\n\t\tdb_query( $query );\r\n\r\n\t\t# db_query errors on failure so:\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "80e2ef067ce6e2554b60192466ac4b5b", "score": "0.5736825", "text": "function testGroupDelete()\r\n {\r\n // instantiate notes controller\r\n $notesController = new NotesController($this->ant, $this->user);\r\n $notesController->debug = true;\r\n \r\n $params['name'] = \"UnitTest GroupName\";\r\n $params['color'] = \"eeeeee\"; \r\n \r\n // create group data\r\n $gid = $notesController->groupAdd($params);\r\n $this->assertTrue($gid > 0);\r\n \r\n // test group delete\r\n $params['gid'] = $gid;\r\n $ret = $notesController->groupDelete($params);\r\n $this->assertTrue($ret > 0);\r\n $this->assertEquals($ret, $gid);\r\n }", "title": "" }, { "docid": "2de9af29d625584f2c677b2046d12819", "score": "0.5736805", "text": "function group_tools_version_1_3() {\n\t$dbprefix = elgg_get_config(\"dbprefix\");\n\n\t$query = \"SELECT ac.id AS acl_id, ac.owner_guid AS group_guid, er.guid_one AS user_guid\n\t\tFROM {$dbprefix}access_collections ac\n\t\tJOIN {$dbprefix}entities e ON e.guid = ac.owner_guid\n\t\tJOIN {$dbprefix}entity_relationships er ON ac.owner_guid = er.guid_two\n\t\tWHERE e.type = 'group'\n\t\tAND er.relationship = 'member'\n\t\tAND er.guid_one NOT IN (\n\t\t\tSELECT acm.user_guid\n\t\t\tFROM {$dbprefix}access_collections ac2\n\t\t\tJOIN {$dbprefix}access_collection_membership acm ON ac2.id = acm.access_collection_id\n\t\t\tWHERE ac2.owner_guid = ac.owner_guid\n\t\t)\";\n\n\t$data = get_data($query);\n\tif (!empty($data)) {\n\t\tforeach ($data as $row) {\n\t\t\tadd_user_to_access_collection($row->user_guid, $row->acl_id);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "a1aeb53dc0c5e00307c7a9f268e3402a", "score": "0.573175", "text": "function reportpm_delete()\r\n{\r\n\tglobal $db, $mybb, $user;\r\n\t$db->delete_query(\"reportedpms\", \"uid='{$user['uid']}'\");\r\n}", "title": "" }, { "docid": "df2c4bbf126fdad7e0cfae6958ebc7ce", "score": "0.5725018", "text": "public function deleteGrants();", "title": "" }, { "docid": "3d711942afea55991d72823711e422a1", "score": "0.57187915", "text": "public function forceDeleted(GroupUser $groupUser)\n {\n //\n }", "title": "" }, { "docid": "5853d5fa5f6e28f932b6f40baa46336a", "score": "0.57158774", "text": "function find_group_by_admin_id($id) {\n global $db;\n return find_by_sql(\"SELECT * FROM user_groups WHERE group_level != 0 AND admin_id='{$id}'\");\n}", "title": "" }, { "docid": "74000144d9c5fa170ffa00ea2f75bd02", "score": "0.5715118", "text": "public function testRemoveUserGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "7e6777604dba68b4b8d8aaf8d5edd6a8", "score": "0.5714377", "text": "function rebuild_supercarriers()\n{\n\tglobal $globalDb;\n\n\tdo_log(\"Rebuilding 'supercarriers' group membership\",1);\n\t$group=4;\n\t$globalDb->query(\"update group_membership set previous_state=state where group_id='$group'\");\n\t$globalDb->query(\"update group_membership set state=1 where group_id='$group'\");\n\n\t$sth=$globalDb->query(\"SELECT a.user_id, b.corp_id, b.corp_name, d.alliance_name\nFROM auth_users a, api_characters b, corporations c, alliances d\nWHERE b.state <=2 AND b.character_last_ship in ('Aeon','Hel','Nyx','Wyvern','Revenant', 'Vendetta')\nAND a.user_id = b.user_id\nAND (d.alliance_id = c.alliance_id)\nAND c.corp_id = b.corp_id\nAND (c.is_allowed_to_reg = 1 OR d.is_allowed_to_reg = 1)\n\");\n\n\n\twhile($result=$sth->fetch_array()) {\n\t\t$user_id=$result['user_id'];\n\t\tdo_log(\"Starting group chain investigation for user id $user_id against group $group\",9);\n\t\t$chain=check_group_chain($group,$user_id);\n\t\tif($chain==0) {\n\t\t\t$globalDb->query(\"insert into group_membership (`group_id`,`user_id`,`state`) values \" .\n\t\t\t\t\"('$group','$user_id',0) on duplicate key update state='0'\");\n\t\t}\n\t}\n\t$globalDb->query(\"update group_membership set state=99 where state=1 and group_id='$group'\");\n}", "title": "" }, { "docid": "7f6729ee84993044e2bed564d06fe969", "score": "0.5708916", "text": "public function deleteGroup($gid) {\n if(!$this->rm_db_connected) {\n return false;\n }\n \n return false;\n }", "title": "" }, { "docid": "4ba942689951a648b07118e07ac0fd4a", "score": "0.57059205", "text": "function delete_group_topics($gid)\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$group = $this->get_group_details($gid);\r\n\t\t\r\n\t\tif(!$group)\r\n\t\t\te(lang(\"grp_exist_error\"));\r\n\t\telseif(userid()!=$group['userid'] && !has_access('admin_access',true))\r\n\t\t\te(lang(\"you_cant_delete_grp_topics\"));\r\n\t\telse\r\n\t\t{\r\n\t\t\t$topics = $this->get_topics(array('group'=>$gid));\r\n\t\t\tif(is_array($topics))\r\n\t\t\tforeach($topics as $topic)\r\n\t\t\t\t$this->delete_topic($topic['topic_id']);\r\n\t\t\te(lang(\"deleted\"),\"m\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "27cfc6668578754ea56510ecb87b97e5", "score": "0.5703557", "text": "function _remove_self_from_group( $prefs = array() )\r\n\t{\r\n\t\t//\t----------------------------------------\r\n\t\t//\tGroup id valid?\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( $this->group_id == 0 OR\r\n\t\t\t ( $group_data = $this->data->get_group_data_from_group_id(\r\n\t\t\t\tee()->config->item('site_id'), $this->group_id ) ) === FALSE )\r\n\t\t{\r\n\t\t\t$this->message[]\t= lang('group_id_required');\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tOwners can't delete themselves\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( $group_data['member_id'] == ee()->session->userdata('member_id') )\r\n\t\t{\r\n\t\t\t$this->message[]\t= lang('cant_delete_self');\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tDelete\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$sql\t= \"DELETE FROM \texp_friends_group_posts\r\n\t\t\t\t WHERE \t\tgroup_id = '\" . ee()->db->escape_str( $this->group_id ) . \"'\r\n\t\t\t\t AND \t\t\tmember_id = \" . ee()->db->escape_str( ee()->session->userdata('member_id') );\r\n\r\n\t\tee()->db->query( $sql );\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tNotify\r\n\t\t//\t----------------------------------------\r\n\r\n\t\tif ( $this->notify === TRUE AND\r\n\t\t\t ee()->db->affected_rows() > 0 AND\r\n\t\t\t ! empty( $prefs['notification_leave'] ) AND\r\n\t\t\t $prefs['notification_leave'] != '' )\r\n\t\t{\r\n\t\t\t$email['notification_template']\t\t\t\t\t= $prefs['notification_leave'];\r\n\t\t\t$email['email']\t\t\t\t\t\t\t\t\t= $group_data['owner_email'];\r\n\t\t\t$email['member_id']\t\t\t\t\t\t\t\t= $group_data['member_id'];\r\n\t\t\t$email['from_email']\t\t\t\t\t\t\t= ee()->session->userdata['email'];\r\n\t\t\t$email['from_name']\t\t\t\t\t\t\t\t= ee()->session->userdata['screen_name'];\r\n\t\t\t$email['subject']\t\t\t\t\t\t\t\t= ( ! empty( $prefs['subject_leave'] ) ) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$prefs['subject_leave'] :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlang('subject_leave_email');\r\n\t\t\t$email['extra']['friends_group_id']\t\t\t\t= $this->group_id;\r\n\t\t\t$email['extra']['friends_screen_name']\t\t\t= ee()->session->userdata['screen_name'];\r\n\t\t\t$email['extra']['friends_group_name']\t\t\t= $group_data['name'];\r\n\t\t\t$email['extra']['friends_group_title']\t\t\t= $group_data['title'];\r\n\t\t\t$email['extra']['friends_group_description']\t= $group_data['description'];\r\n\t\t\t$email['extra']['friends_owner_screen_name']\t= $group_data['owner_screen_name'];\r\n\t\t\t$email['extra']['friends_owner_username']\t\t= $group_data['owner_username'];\r\n\t\t\t$email['extra']['friends_owner_member_id']\t\t= $group_data['owner_member_id'];\r\n\t\t\t$email['extra']['friends_user_screen_name']\t\t= ee()->session->userdata['screen_name'];\r\n\t\t\t$email['extra']['friends_user_username']\t\t= ee()->session->userdata['username'];\r\n\t\t\t$email['extra']['friends_user_member_id']\t\t= ee()->session->userdata['member_id'];\r\n\r\n\t\t\t// ----------------------------------------\r\n\t\t\t// Let's quickly parse some vars just for sanity\r\n\t\t\t// ----------------------------------------\r\n\r\n\t\t\tforeach ( $email['extra'] as $key => $val )\r\n\t\t\t{\r\n\t\t\t\t$email['subject']\t= str_replace(\r\n\t\t\t\t\tarray( '%'.$key.'%', LD.$key.RD ),\r\n\t\t\t\t\tarray( $val, $val ),\r\n\t\t\t\t\t$email['subject']\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\t$this->_notify( $email );\r\n\t\t}\r\n\r\n\t\t//\t----------------------------------------\r\n\t\t//\tReturn\r\n\t\t//\t----------------------------------------\r\n\r\n\t\t$this->message[]\t= str_replace(\r\n\t\t\t\"%friends_group_title%\",\r\n\t\t\t$group_data['title'],\r\n\t\t\tlang( 'self_removed' )\r\n\t\t);\r\n\r\n\t\treturn TRUE;\r\n\t}", "title": "" } ]
00d2a5a88997dddb122568701e15b557
Destroys the class when no longer needed.
[ { "docid": "7bbf70f1e66857fd10372efb57c086a5", "score": "0.0", "text": "public function __destruct()\n {\n $this->url = '';\n $this->method = 'GET';\n $this->postData = array();\n $this->headers = array();\n $this->options = array();\n }", "title": "" } ]
[ { "docid": "d999715c5841dcdc2475bdd228db4893", "score": "0.7627372", "text": "public function destroy($class)\n\t{\n\t\tif (isset($this->reflections[$class]))\n\t\t\t$this->reflections[$class] = null;\n\t}", "title": "" }, { "docid": "3e622a61d332e50d1134f66a56046dfe", "score": "0.75393313", "text": "public static function destroy()\r\n {\r\n self::$instance = null;\r\n }", "title": "" }, { "docid": "92f88a7c46a31b4a01bd5613eae85bff", "score": "0.7189726", "text": "protected function __del__() { }", "title": "" }, { "docid": "d1fa130e09f65b3b213e7f9f0e60499e", "score": "0.70942706", "text": "public static function destroy()\n {\n }", "title": "" }, { "docid": "ebc79a91879b1741098af91303fbb578", "score": "0.7059481", "text": "public function destroy();", "title": "" }, { "docid": "ebc79a91879b1741098af91303fbb578", "score": "0.7059481", "text": "public function destroy();", "title": "" }, { "docid": "ebc79a91879b1741098af91303fbb578", "score": "0.7059481", "text": "public function destroy();", "title": "" }, { "docid": "ebc79a91879b1741098af91303fbb578", "score": "0.7059481", "text": "public function destroy();", "title": "" }, { "docid": "a78c397fac1f0995e9e175992e668bab", "score": "0.7016543", "text": "public function __destruct()\n {\n $this->destroy();\n }", "title": "" }, { "docid": "5d9665fa13083d5a14bd4cc37c788a0a", "score": "0.70044464", "text": "public function destroy() { }", "title": "" }, { "docid": "89d1995d2b70b287ff4a40f54b972101", "score": "0.6998118", "text": "public abstract function destroy();", "title": "" }, { "docid": "516b7c6b13b7ba4c77ef1042fdb9fb03", "score": "0.6997037", "text": "public function __destruct() {\n\t\t$this->destroy();\n\t}", "title": "" }, { "docid": "d6a7bf4b162ec7b4adbef82a9a163478", "score": "0.69759476", "text": "public function __destruct()\n {\n $this->destroy();\n }", "title": "" }, { "docid": "ff1587ef150c614c90938270678eed0a", "score": "0.6975747", "text": "abstract public function destroy();", "title": "" }, { "docid": "ee109f08aa9a710ecb0cc662e47ffd09", "score": "0.69633716", "text": "public function destroy() {\n // TODO: Implement destroy() method.\n }", "title": "" }, { "docid": "e19e53084fa97bc9a8c5c5959d67f780", "score": "0.6946892", "text": "public static function destroyInstance() {\n if (isset(self::$instance)) {\n self::$instance = null;\n }\n }", "title": "" }, { "docid": "8f123b2a958950f0931dd0fbc366fcae", "score": "0.6919626", "text": "public function __destruct()\n {\n $this->cleanUp();\n }", "title": "" }, { "docid": "a3d42e249b6055d52bd6bd0d43656362", "score": "0.687391", "text": "public function __destroy()\n {\n Registry::destroy($this);\n }", "title": "" }, { "docid": "e762297c06ccde9165f839f5bf9b7472", "score": "0.6848936", "text": "public function __destruct()\n {\n $this->removeOnDestruct && $this->destroy();\n }", "title": "" }, { "docid": "92bb98583bcf2666fde6997963340526", "score": "0.68434924", "text": "public function destroy()\n {\n // TODO: Implement destroy() method.\n }", "title": "" }, { "docid": "326b1ab5d217e605c165dc307b66aa1c", "score": "0.6835452", "text": "public function __destruct()\n {\n $this->delete();\n }", "title": "" }, { "docid": "da7b8306ee5265a0939ecbd8761e65ff", "score": "0.68240905", "text": "public function __destruct() {\n\t\tunset($this);\n\t}", "title": "" }, { "docid": "a38db51b200d63ee237ff31489695596", "score": "0.68222666", "text": "public function __destruct()\n {\n Registry::destroy($this);\n }", "title": "" }, { "docid": "6d57f427285f129f001ad571921481e5", "score": "0.67900777", "text": "public function __destruct()\n\t{\n\t\tif ( !empty( self::$instances[$this->key] ) )\n\t\t{\n\t\t\t$this->release();\n\t\t}\n\t}", "title": "" }, { "docid": "fc85ab6d308b3b66c216bbcc4ec6e966", "score": "0.6790063", "text": "public function __destruct() {\n unset($this);\n }", "title": "" }, { "docid": "8c211c889815415bf80e43860e39df8b", "score": "0.67615145", "text": "function __destruct() {\n //Unset from memory.\n unset($this);\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "e4a54a30e406a86fbfdb33fedc0f2b45", "score": "0.6735184", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "6f97f6e0005102d1008c4d6ed4a1ce53", "score": "0.6713898", "text": "public function __destruct()\n {\n if (!empty($this->_id)) {\n self::destructExistInstance($this->getTable(), $this->_id);\n }\n }", "title": "" }, { "docid": "9235f1b784b055a02cec419c73a2896e", "score": "0.6703912", "text": "public function destroy() {\n\n\t}", "title": "" }, { "docid": "ff1b7942d4c0da63c5cbd062f30c7ad4", "score": "0.66874737", "text": "public function destroy() {\n\n\t\t// Reinicia un error previo seleccionado\n\t\t$this->error->release();\n\n\t\t// Libera la imagen de la memoria\n\t\tif ($this->_gd !== null) {\n\t\t\timagedestroy($this->_gd);\n\t\t}\n\n\t\t// Reinicia las propiedades\n\t\t$this->_path = null;\n\t\t$this->_gd = null;\n\t\t$this->_format = null;\n\t\t$this->_mime = null;\n\t}", "title": "" }, { "docid": "9b96f71bf4216e5ddda4a6d8bfe16cea", "score": "0.66823745", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "9b96f71bf4216e5ddda4a6d8bfe16cea", "score": "0.66823745", "text": "public function destroy()\n {\n }", "title": "" }, { "docid": "9806796c72a3e44fae35d23979c7d20f", "score": "0.66804314", "text": "public function destroy(): void\n {\n }", "title": "" }, { "docid": "c8154cfa526e91eb5af85d8d9972c5c2", "score": "0.667397", "text": "public function destroy()\n {\n \n }", "title": "" }, { "docid": "c8154cfa526e91eb5af85d8d9972c5c2", "score": "0.667397", "text": "public function destroy()\n {\n \n }", "title": "" }, { "docid": "c8154cfa526e91eb5af85d8d9972c5c2", "score": "0.667397", "text": "public function destroy()\n {\n \n }", "title": "" }, { "docid": "960f46b2ad0431c9d7e0d3a7d2ec0f4e", "score": "0.666712", "text": "public function __destruct() {\n unset($this);\n }", "title": "" }, { "docid": "960f46b2ad0431c9d7e0d3a7d2ec0f4e", "score": "0.666712", "text": "public function __destruct() {\n unset($this);\n }", "title": "" }, { "docid": "33a595002ddbd3a27a2b69f2f425f147", "score": "0.6663388", "text": "public function destroy(Classs $classs)\n {\n //\n }", "title": "" }, { "docid": "648d6d7d32feeab3ce33b9aa1a96bdfb", "score": "0.66512", "text": "public function destroy()\n {\n //\n }", "title": "" }, { "docid": "648d6d7d32feeab3ce33b9aa1a96bdfb", "score": "0.66512", "text": "public function destroy()\n {\n //\n }", "title": "" }, { "docid": "648d6d7d32feeab3ce33b9aa1a96bdfb", "score": "0.66512", "text": "public function destroy()\n {\n //\n }", "title": "" }, { "docid": "a03ffa54c18aeab0608415b714dcfd44", "score": "0.6643219", "text": "public function destroy()\n {\n \n }", "title": "" }, { "docid": "f00ed406394df4778e8e1d177ed8f48c", "score": "0.6640272", "text": "public function destroy()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f2785a8449480c4b7e7a7464ff6191ab", "score": "0.66369367", "text": "public function __destruct()\n {\n if ($this->tmp && file_exists($this->tmp)) {\n unlink($this->tmp);\n }\n }", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.66362303", "text": "public function __destruct() {}", "title": "" }, { "docid": "3fb20852cc908ea2d76efc53edb4110c", "score": "0.66231495", "text": "function __destruct(){\tunset($this); }", "title": "" }, { "docid": "0bae25491e1b1922cb00140c3e52c5b7", "score": "0.6620471", "text": "public function __destroy()\n\t{\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "baf90367cbfa14e06c2c75c9bfdd55d4", "score": "0.66069615", "text": "public static function unsetInstance()\n {\n $class = get_called_class();\n unset(self::$instances[$class]);\n }", "title": "" }, { "docid": "2f57d8c862686b771854d2c091ee02f3", "score": "0.6602272", "text": "public static function tearDown() {\n self::$instance = null;\n }", "title": "" }, { "docid": "0ebe10f4183f35dfb9e84b8b0789597c", "score": "0.6593608", "text": "public function __destruct() {\n }", "title": "" }, { "docid": "0ebe10f4183f35dfb9e84b8b0789597c", "score": "0.6593608", "text": "public function __destruct() {\n }", "title": "" }, { "docid": "0bc71a279cf72914e46ac0fd0e76d274", "score": "0.6586529", "text": "public function tearDown() {\n $this->instance = null;\n }", "title": "" }, { "docid": "ea620fb3f682d7720338f3161652f99a", "score": "0.6586059", "text": "public function __destruct()\n {\n //nothing to do\n }", "title": "" }, { "docid": "24582f83ca6ebd4ca187c2f64f604a18", "score": "0.6585666", "text": "public function __destruct()\n {\n $this->free();\n }", "title": "" }, { "docid": "24582f83ca6ebd4ca187c2f64f604a18", "score": "0.6585666", "text": "public function __destruct()\n {\n $this->free();\n }", "title": "" }, { "docid": "295ba8effa0bf8c8ff0ad433c7208a03", "score": "0.6581825", "text": "public function __destructor()\n {\n foreach ($this->types as $name => $type)\n {\n $this->__unset($name);\n }\n }", "title": "" }, { "docid": "b5103d2d713278ad71e4b434bb4a26e9", "score": "0.65742916", "text": "public function __destruct()\n {\n $this->driver->free();\n }", "title": "" }, { "docid": "cee1550e30de5cae39d159dba917da46", "score": "0.65712595", "text": "public function __destruct()\n {\n }", "title": "" }, { "docid": "cee1550e30de5cae39d159dba917da46", "score": "0.65712595", "text": "public function __destruct()\n {\n }", "title": "" }, { "docid": "cee1550e30de5cae39d159dba917da46", "score": "0.65712595", "text": "public function __destruct()\n {\n }", "title": "" }, { "docid": "773320029fadd9314e31907303342a0a", "score": "0.6571254", "text": "public function __destruct()\n\t{\n\t\t$this->close();\n\t\t\n\t\tif( static::$instance == $this )\n\t\t\tstatic::$instance = null;\n\t}", "title": "" }, { "docid": "154cedf4902d9a6791830d791ac8c0c4", "score": "0.6566385", "text": "public function __destruct(){}", "title": "" }, { "docid": "154cedf4902d9a6791830d791ac8c0c4", "score": "0.6566385", "text": "public function __destruct(){}", "title": "" }, { "docid": "154cedf4902d9a6791830d791ac8c0c4", "score": "0.6566385", "text": "public function __destruct(){}", "title": "" }, { "docid": "2482b105617827d4381db7922b637972", "score": "0.6551089", "text": "public function __destruct()\n\t{\n\t\t$this->tear_down();\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "3d89e1ab9749103d9e20588193df1959", "score": "0.0", "text": "public function show($id)\n {\n $helper = DataHelpers::getInstance();\n $buku = Buku::find($id);\n $ulasan = $helper->ulasanObject();\n $favorit = FavoritBuku::where([\n ['user_id',Auth::user()->id],\n ['buku_id',$buku->id]\n ])->first();\n\n // dd($favorit);\n\n return view('dashboard.detail', compact('buku', 'ulasan', 'favorit'));\n }", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233183", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81894475", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed2d107c1c9ce4912402cbef90125ac4", "score": "0.7609591", "text": "public function show(Resource $resource)\n\t{\n\t\treturn $resource;\n\t}", "title": "" }, { "docid": "364c14abc03f539e9a17828c2c3c5094", "score": "0.71428", "text": "protected function makeDisplayFromResource()\n\t{\n\t\treturn $this->activeResource->makeDisplay();\n\t}", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.66831124", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "e21cb6c5a585a50a5b1a659e50a3576d", "score": "0.64457613", "text": "function show()\n\t{\n\t\techo '<pre>';\n\t\tprint_r($this);\n\t\techo '</pre>';\n\n//\t\tforeach ($this->resources as $id => $resources)\n//\t\t{\n//\t\t\tforeach ($resources as $type => $resource)\n//\t\t\t{\n//\t\t\t\t$resource->show();\n//\t\t\t}\n//\t\t}\n\t}", "title": "" }, { "docid": "2e3da5773c9c5d59c21b1af4e1ac8cd8", "score": "0.6235311", "text": "public function show($id)\n {\n if(Module::hasAccess(\"Resources\", \"view\")) {\n \n $resource = Resource::find($id);\n if(isset($resource->id)) {\n $module = Module::get('Resources');\n $module->row = $resource;\n $group_lists = array();\n $user_lists = array();\n\n if(!$resource->is_public){\n $group_lists = DB::table('resource_groups')\n ->select('groups.id', 'groups.name')\n ->join('groups','groups.id','=','resource_groups.group_id')\n ->where('resource_groups.resource_id', $id)->whereNull('groups.deleted_at')->whereNull('resource_groups.deleted_at')->get();\n\n $user_lists = DB::table('resource_users')\n ->select('users.id', 'users.name')\n ->join('users','users.id','=','resource_users.user_id')\n ->where('resource_users.resource_id', $id)->whereNull('users.deleted_at')->whereNull('resource_users.deleted_at')->get();\n }\n \n return view('la.resources.show', [\n 'module' => $module,\n 'view_col' => $module->view_col,\n 'no_header' => true,\n 'no_padding' => \"no-padding\",\n 'user_lists' => $user_lists,\n 'group_lists' => $group_lists\n ])->with('resource', $resource);\n } else {\n return view('errors.404', [\n 'record_id' => $id,\n 'record_name' => ucfirst(\"resource\"),\n ]);\n }\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "596a976868e24408f49b224b715ef1dd", "score": "0.6226839", "text": "function display() {\n global $CFG, $THEME, $USER;\n\n /// Set up generic stuff first, including checking for access\n parent::display();\n\n /// Set up some shorthand variables\n $cm = $this->cm;\n $course = $this->course;\n $resource = $this->resource;\n\n\n $this->set_parameters(); // set the parameters array\n\n ///////////////////////////////////////////////\n\n /// Possible display modes are:\n /// File displayed embedded in a normal page\n /// File displayed in a popup window\n /// File displayed embedded in a popup window\n /// File not displayed at all, but downloaded\n\n\n /// First, find out what sort of file we are dealing with.\n require_once($CFG->libdir.'/filelib.php');\n\n $querystring = '';\n $resourcetype = '';\n $embedded = false;\n $mimetype = mimeinfo(\"type\", $resource->reference);\n $pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));\n\n $formatoptions = new object();\n $formatoptions->noclean = true;\n\n if ($resource->options != \"forcedownload\") { // TODO nicolasconnault 14-03-07: This option should be renamed \"embed\"\n if (in_array($mimetype, array('image/gif','image/jpeg','image/png'))) { // It's an image\n $resourcetype = \"image\";\n $embedded = true;\n\n } else if ($mimetype == \"audio/mp3\") { // It's an MP3 audio file\n $resourcetype = \"mp3\";\n $embedded = true;\n\n } else if ($mimetype == \"video/x-flv\") { // It's a Flash video file\n $resourcetype = \"flv\";\n $embedded = true;\n\n } else if (substr($mimetype, 0, 10) == \"video/x-ms\") { // It's a Media Player file\n $resourcetype = \"mediaplayer\";\n $embedded = true;\n\n } else if ($mimetype == \"video/quicktime\") { // It's a Quicktime file\n $resourcetype = \"quicktime\";\n $embedded = true;\n\n } else if ($mimetype == \"application/x-shockwave-flash\") { // It's a Flash file\n $resourcetype = \"flash\";\n $embedded = true;\n\n } else if ($mimetype == \"video/mpeg\") { // It's a Mpeg file\n $resourcetype = \"mpeg\";\n $embedded = true;\n\n } else if ($mimetype == \"text/html\") { // It's a web page\n $resourcetype = \"html\";\n\n } else if ($mimetype == \"application/zip\") { // It's a zip archive\n $resourcetype = \"zip\";\n $embedded = true;\n\n } else if ($mimetype == 'application/pdf' || $mimetype == 'application/x-pdf') {\n $resourcetype = \"pdf\";\n $embedded = true;\n } else if ($mimetype == \"audio/x-pn-realaudio\") { // It's a realmedia file\n $resourcetype = \"rm\";\n $embedded = true;\n } \n }\n\n $isteamspeak = (stripos($resource->reference, 'teamspeak://') === 0);\n\n /// Form the parse string\n $querys = array();\n if (!empty($resource->alltext)) {\n $parray = explode(',', $resource->alltext);\n foreach ($parray as $fieldstring) {\n list($moodleparam, $urlname) = explode('=', $fieldstring);\n $value = urlencode($this->parameters[$moodleparam]['value']);\n $querys[urlencode($urlname)] = $value;\n $querysbits[] = urlencode($urlname) . '=' . $value;\n }\n if ($isteamspeak) {\n $querystring = implode('?', $querysbits);\n } else {\n $querystring = implode('&amp;', $querysbits);\n }\n }\n\n\n /// Set up some variables\n\n $inpopup = optional_param('inpopup', 0, PARAM_BOOL);\n\n if (resource_is_url($resource->reference)) {\n $fullurl = $resource->reference;\n if (!empty($querystring)) {\n $urlpieces = parse_url($resource->reference);\n if (empty($urlpieces['query']) or $isteamspeak) {\n $fullurl .= '?'.$querystring;\n } else {\n $fullurl .= '&amp;'.$querystring;\n }\n }\n\n } else if ($CFG->resource_allowlocalfiles and (strpos($resource->reference, RESOURCE_LOCALPATH) === 0)) { // Localpath\n $localpath = get_user_preferences('resource_localpath', 'D:');\n $relativeurl = str_replace(RESOURCE_LOCALPATH, $localpath, $resource->reference);\n\n if ($querystring) {\n $relativeurl .= '?'.$querystring;\n }\n\n $relativeurl = str_replace('\\\\', '/', $relativeurl);\n $relativeurl = str_replace(' ', '%20', $relativeurl);\n $fullurl = 'file:///'.htmlentities($relativeurl);\n $localpath = true;\n\n } else { // Normal uploaded file\n $forcedownloadsep = '?';\n if ($resource->options == 'forcedownload') {\n $querys['forcedownload'] = '1';\n }\n $fullurl = get_file_url($course->id.'/'.$resource->reference, $querys);\n }\n\n /// Print a notice and redirect if we are trying to access a file on a local file system\n /// and the config setting has been disabled\n if (!$CFG->resource_allowlocalfiles and (strpos($resource->reference, RESOURCE_LOCALPATH) === 0)) {\n if ($inpopup) {\n print_header($pagetitle, $course->fullname);\n } else {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n }\n notify(get_string('notallowedlocalfileaccess', 'resource', ''));\n if ($inpopup) {\n close_window_button();\n }\n print_footer('none');\n die;\n }\n\n\n /// Check whether this is supposed to be a popup, but was called directly\n if ($resource->popup and !$inpopup) { /// Make a page and a pop-up window\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n\n echo \"\\n<script type=\\\"text/javascript\\\">\";\n echo \"\\n<!--\\n\";\n echo \"openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}','resource{$resource->id}','{$resource->popup}');\\n\";\n echo \"\\n-->\\n\";\n echo '</script>';\n\n if (trim(strip_tags($resource->summary))) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions), \"center\");\n }\n\n $link = \"<a href=\\\"$CFG->wwwroot/mod/resource/view.php?inpopup=true&amp;id={$cm->id}\\\" \"\n . \"onclick=\\\"this.target='resource{$resource->id}'; return openpopup('/mod/resource/view.php?inpopup=true&amp;id={$cm->id}', \"\n . \"'resource{$resource->id}','{$resource->popup}');\\\">\".format_string($resource->name,true).\"</a>\";\n\n echo '<div class=\"popupnotice\">';\n print_string('popupresource', 'resource');\n echo '<br />';\n print_string('popupresourcelink', 'resource', $link);\n echo '</div>';\n print_footer($course);\n exit;\n }\n\n\n /// Now check whether we need to display a frameset\n\n $frameset = optional_param('frameset', '', PARAM_ALPHA);\n if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == \"frame\" || $resource->options == \"objectframe\") and empty($USER->screenreader)) {\n /// display the resource into a object tag\n if ($resource->options == \"objectframe\") {\n /// Yahoo javascript libaries for updating embedded object size\n require_js(array('yui_utilities'));\n require_js(array('yui_container'));\n require_js(array('yui_dom-event'));\n require_js(array('yui_dom'));\n\n\n /// Moodle Header and navigation bar\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation, \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"parent\"));\n $options = new object();\n $options->para = false;\n if (!empty($localpath)) { // Show some help\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'), get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n }\n echo '</div></div>';\n\n /// embedded file into iframe if the resource is on another domain\n ///\n /// This case is not XHTML strict but there is no alternative\n /// The object tag alternative is XHTML strict, however IE6-7 displays a blank object on accross domain by default,\n /// so we decided to use iframe for accross domain MDL-10021\n if (!stristr($fullurl,$CFG->wwwroot)) {\n echo '<p><iframe id=\"embeddedhtml\" src =\"'.$fullurl.'\" width=\"100%\" height=\"600\"></iframe></p>';\n }\n else {\n /// embedded HTML file into an object tag\n echo '<p><object id=\"embeddedhtml\" data=\"' . $fullurl . '\" type=\"'.$mimetype.'\" width=\"800\" height=\"600\">\n alt : <a href=\"' . $fullurl . '\">' . $fullurl . '</a>\n </object></p>';\n }\n /// add some javascript in order to fit this object tag into the browser window\n echo '<script type=\"text/javascript\">\n //<![CDATA[\n function resizeEmbeddedHtml() {\n //calculate new embedded html height size\n ';\n if (!empty($resource->summary)) {\n echo' objectheight = YAHOO.util.Dom.getViewportHeight() - 230;\n ';\n }\n else {\n echo' objectheight = YAHOO.util.Dom.getViewportHeight() - 120;\n ';\n }\n echo ' //the object tag cannot be smaller than a human readable size\n if (objectheight < 200) {\n objectheight = 200;\n }\n //resize the embedded html object\n YAHOO.util.Dom.setStyle(\"embeddedhtml\", \"height\", objectheight+\"px\");\n YAHOO.util.Dom.setStyle(\"embeddedhtml\", \"width\", \"100%\");\n }\n resizeEmbeddedHtml();\n YAHOO.widget.Overlay.windowResizeEvent.subscribe(resizeEmbeddedHtml);\n //]]>\n </script>\n ';\n\n /// print the summary\n if (!empty($resource->summary)) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), \"center\");\n }\n echo \"</body></html>\";\n exit;\n }\n /// display the resource into a frame tag\n else {\n @header('Content-Type: text/html; charset=utf-8');\n echo \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Frameset//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\\\">\\n\";\n echo \"<html dir=\\\"ltr\\\">\\n\";\n echo '<head>';\n echo '<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />';\n echo \"<title>\" . format_string($course->shortname) . \": \".strip_tags(format_string($resource->name,true)).\"</title></head>\\n\";\n echo \"<frameset rows=\\\"$CFG->resource_framesize,*\\\">\";\n echo \"<frame src=\\\"view.php?id={$cm->id}&amp;type={$resource->type}&amp;frameset=top\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n if (!empty($localpath)) { // Show it like this so we interpose some HTML\n echo \"<frame src=\\\"view.php?id={$cm->id}&amp;type={$resource->type}&amp;inpopup=true\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n } else {\n echo \"<frame src=\\\"$fullurl\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n }\n echo \"</frameset>\";\n echo \"</html>\";\n exit;\n }\n }\n\n\n /// We can only get here once per resource, so add an entry to the log\n\n add_to_log($course->id, \"resource\", \"view\", \"view.php?id={$cm->id}\", $resource->id, $cm->id);\n\n\n /// If we are in a frameset, just print the top of it\n\n if (!empty( $frameset ) and ($frameset == \"top\") ) {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"parent\"));\n\n $options = new object();\n $options->para = false;\n echo '<div class=\"summary\">'.format_text($resource->summary, FORMAT_HTML, $options).'</div>';\n if (!empty($localpath)) { // Show some help\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),\n get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n }\n print_footer('empty');\n exit;\n }\n\n\n /// Display the actual resource\n if ($embedded) { // Display resource embedded in page\n $strdirectlink = get_string(\"directlink\", \"resource\");\n\n if ($inpopup) {\n print_header($pagetitle);\n } else {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header_simple($pagetitle, '', $navigation, \"\", \"\", true,\n update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"self\"));\n\n }\n\n if ($resourcetype == \"image\") {\n echo '<div class=\"resourcecontent resourceimg\">';\n echo \"<img title=\\\"\".strip_tags(format_string($resource->name,true)).\"\\\" class=\\\"resourceimage\\\" src=\\\"$fullurl\\\" alt=\\\"\\\" />\";\n echo '</div>';\n\n } else if ($resourcetype == \"mp3\") {\n if (!empty($THEME->resource_mp3player_colors)) {\n $c = $THEME->resource_mp3player_colors; // You can set this up in your theme/xxx/config.php\n } else {\n $c = 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.\n 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.\n 'font=Arial&fontColour=FF33FF&buffer=10&waitForPlay=no&autoPlay=yes';\n }\n $c .= '&volText='.get_string('vol', 'resource').'&panText='.get_string('pan','resource');\n $c = htmlentities($c);\n $id = 'filter_mp3_'.time(); //we need something unique because it might be stored in text cache\n $cleanurl = addslashes_js($fullurl);\n\n\n // If we have Javascript, use UFO to embed the MP3 player, otherwise depend on plugins\n\n echo '<div class=\"resourcecontent resourcemp3\">';\n\n echo '<span class=\"mediaplugin mediaplugin_mp3\" id=\"'.$id.'\"></span>'.\n '<script type=\"text/javascript\">'.\"\\n\".\n '//<![CDATA['.\"\\n\".\n 'var FO = { movie:\"'.$CFG->wwwroot.'/lib/mp3player/mp3player.swf?src='.$cleanurl.'\",'.\"\\n\".\n 'width:\"600\", height:\"70\", majorversion:\"6\", build:\"40\", flashvars:\"'.$c.'\", quality: \"high\" };'.\"\\n\".\n 'UFO.create(FO, \"'.$id.'\");'.\"\\n\".\n '//]]>'.\"\\n\".\n '</script>'.\"\\n\";\n\n echo '<noscript>';\n\n echo \"<object type=\\\"audio/mpeg\\\" data=\\\"$fullurl\\\" width=\\\"600\\\" height=\\\"70\\\">\";\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"quality\" value=\"high\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo '</object>';\n echo '<p><a href=\"' . $fullurl . '\">' . $fullurl . '</a></p>';\n\n echo '</noscript>';\n echo '</div>';\n\n } else if ($resourcetype == \"flv\") {\n $id = 'filter_flv_'.time(); //we need something unique because it might be stored in text cache\n $cleanurl = addslashes_js($fullurl);\n\n\n // If we have Javascript, use UFO to embed the FLV player, otherwise depend on plugins\n\n echo '<div class=\"resourcecontent resourceflv\">';\n\n echo '<span class=\"mediaplugin mediaplugin_flv\" id=\"'.$id.'\"></span>'.\n '<script type=\"text/javascript\">'.\"\\n\".\n '//<![CDATA['.\"\\n\".\n 'var FO = { movie:\"'.$CFG->wwwroot.'/filter/mediaplugin/flvplayer.swf?file='.$cleanurl.'\",'.\"\\n\".\n 'width:\"600\", height:\"400\", majorversion:\"6\", build:\"40\", allowscriptaccess:\"never\", quality: \"high\" };'.\"\\n\".\n 'UFO.create(FO, \"'.$id.'\");'.\"\\n\".\n '//]]>'.\"\\n\".\n '</script>'.\"\\n\";\n\n echo '<noscript>';\n\n echo \"<object type=\\\"video/x-flv\\\" data=\\\"$fullurl\\\" width=\\\"600\\\" height=\\\"400\\\">\";\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"quality\" value=\"high\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo '</object>';\n echo '<p><a href=\"' . $fullurl . '\">' . $fullurl . '</a></p>';\n\n echo '</noscript>';\n echo '</div>';\n\n } else if ($resourcetype == \"mediaplayer\") {\n echo '<div class=\"resourcecontent resourcewmv\">';\n echo '<object type=\"video/x-ms-wmv\" data=\"' . $fullurl . '\">';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"scale\" value=\"noScale\" />';\n echo \"<a href=\\\"$fullurl\\\">$fullurl</a>\";\n echo '</object>';\n echo '</div>';\n\n } else if ($resourcetype == \"mpeg\") {\n echo '<div class=\"resourcecontent resourcempeg\">';\n echo '<object classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"\n codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701\"\n type=\"application/x-oleobject\">';\n echo \"<param name=\\\"fileName\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoStart\" value=\"true\" />';\n echo '<param name=\"animationatStart\" value=\"true\" />';\n echo '<param name=\"transparentatStart\" value=\"true\" />';\n echo '<param name=\"showControls\" value=\"true\" />';\n echo '<param name=\"Volume\" value=\"-450\" />';\n echo '<!--[if !IE]>-->';\n echo '<object type=\"video/mpeg\" data=\"' . $fullurl . '\">';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo \"<a href=\\\"$fullurl\\\">$fullurl</a>\";\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n } else if ($resourcetype == \"rm\") {\n\n echo '<div class=\"resourcecontent resourcerm\">'; \n echo '<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"320\" height=\"240\">';\n echo '<param name=\"src\" value=\"' . $fullurl . '\" />';\n echo '<param name=\"controls\" value=\"All\" />';\n echo '<!--[if !IE]>-->';\n echo '<object type=\"audio/x-pn-realaudio-plugin\" data=\"' . $fullurl . '\" width=\"320\" height=\"240\">';\n echo '<param name=\"controls\" value=\"All\" />';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl .'</a>';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>'; \n\n } else if ($resourcetype == \"quicktime\") {\n echo '<div class=\"resourcecontent resourceqt\">';\n\n echo '<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"';\n echo ' codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n\n echo '<!--[if !IE]>-->';\n echo \"<object type=\\\"video/quicktime\\\" data=\\\"$fullurl\\\">\";\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n } else if ($resourcetype == \"flash\") {\n echo '<div class=\"resourcecontent resourceswf\">';\n echo '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">';\n echo \"<param name=\\\"movie\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<param name=\"base\" value=\".\" />';\n echo '<!--[if !IE]>-->';\n echo \"<object type=\\\"application/x-shockwave-flash\\\" data=\\\"$fullurl\\\">\";\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<param name=\"base\" value=\".\" />';\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n\n } elseif ($resourcetype == 'zip') {\n echo '<div class=\"resourcepdf\">';\n echo get_string('clicktoopen', 'resource') . '<a href=\"' . $fullurl . '\">' . format_string($resource->name) . '</a>';\n echo '</div>';\n\n } elseif ($resourcetype == 'pdf') {\n echo '<div class=\"resourcepdf\">';\n echo '<object data=\"' . $fullurl . '\" type=\"application/pdf\">';\n echo '<param name=\"src\" value=\"' . $fullurl . '\" />';\n echo get_string('clicktoopen', 'resource') . '<a href=\"' . $fullurl . '\">' . format_string($resource->name) . '</a>';\n echo '</object>';\n echo '</div>';\n }\n\n if (trim($resource->summary)) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), \"center\");\n }\n\n if ($inpopup) {\n echo \"<div class=\\\"popupnotice\\\">(<a href=\\\"$fullurl\\\">$strdirectlink</a>)</div>\";\n echo \"</div>\"; // MDL-12098\n print_footer($course); // MDL-12098\n } else {\n print_spacer(20,20);\n print_footer($course);\n }\n\n } else { // Display the resource on it's own\n if (!empty($localpath)) { // Show a link to help work around browser security\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),\n get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n echo \"<div class=\\\"popupnotice\\\">(<a href=\\\"$fullurl\\\">$fullurl</a>)</div>\";\n }\n redirect($fullurl);\n }\n\n }", "title": "" }, { "docid": "14ed889b850393fe8b1f3290fc49740e", "score": "0.61915004", "text": "public function show(Dispenser $dispenser)\n {\n //\n }", "title": "" }, { "docid": "990c774538153829a382b969fb274ad6", "score": "0.617914", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "title": "" }, { "docid": "0180fbb47af0be5e609b81a6e3465c37", "score": "0.6172935", "text": "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}", "title": "" }, { "docid": "428541aff5a20db0753edebab2c7fb73", "score": "0.60798067", "text": "public function get(Resource $resource);", "title": "" }, { "docid": "1a2ff798e7b52737e1e6ae5b0d854f6a", "score": "0.60512996", "text": "public function show($id)\n\t{\n\t\t// display *some* of the resource...\n\t\treturn Post::find($id);\n\t}", "title": "" }, { "docid": "8cb2cf294db063cb41e20820f36641f0", "score": "0.60386544", "text": "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "title": "" }, { "docid": "586d0347683cd6c5e16251dd1e1a0a98", "score": "0.6036201", "text": "public function show($id)\n {\n $data = Resource::findOrFail($id);\n return view('Resource/view', compact('data'));\n }", "title": "" }, { "docid": "da456d60e11065d629261fc79e691a95", "score": "0.6008594", "text": "public function displayAction()\n {\n $id = $this->params['_param_1'];\n $this->flash['message'] = \"Arriba loco, este es el mensaje del flash!\";\n return $this->render( $id );\n }", "title": "" }, { "docid": "7fdf71b227abd04e4de9889539cd1698", "score": "0.59945756", "text": "public function displayAction()\n {\n \n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/profile.css');\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n\n if ($input->isValid()) {\n\n $user_info = new Tripjacks_Model_Venue;\n\n $result = $user_info->getVenue($input->id);\n\n if (count($result) == 1) {\n $this->view->user_info = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "6791390f58188104a1f11120602bda6c", "score": "0.5973403", "text": "public function show($id)\n {\n // Get the resource using the parent API\n $object = $this->api()->retrieve($id);\n\n // Render show view\n $data = [Str::camel($this->package) => $object];\n return $this->content('show', $data);\n }", "title": "" }, { "docid": "dbf7cb71fa21dced48bad29b90c7f51e", "score": "0.5963477", "text": "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 }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5952755", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59065384", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59065384", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d2bd10ab674d0671bf2851850995cea8", "score": "0.58923435", "text": "public function show(Resena $resena)\n {\n }", "title": "" }, { "docid": "f02f37fffab992508c7d7d6f7ae94f94", "score": "0.58700746", "text": "public function showAction() {\n\n // validate contact id is int\n $id = $this->route_params[\"id\"];\n // if id is invalid redirect to 404 page\n if (filter_var($id, FILTER_VALIDATE_INT) === false) {\n $this->show404();\n return;\n }\n\n $contact_obj = new Contact();\n $contact = $contact_obj->findById($id);\n // if no contact returned then display error message\n if ($contact == false) {\n //set error message\n $_SESSION[\"error_message\"] = \"Contact not found or deleted\";\n // redirect to show all contacts if contacts not found\n header(\"Location: /contacts\");\n return;\n }\n // render the view if all everything is Ok\n View::renderTemplate(\"contacts/show.twig.php\", [\"contact\" => $contact]);\n }", "title": "" }, { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.5868533", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "4aec6f94d5731faefe27bdf32f7cbd44", "score": "0.5851443", "text": "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 }", "title": "" }, { "docid": "2771b374a21e331a50c3ffd5b3e431ca", "score": "0.5815833", "text": "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.580419", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "41e5ee3783ca0e67337c6b41b7d0ca62", "score": "0.5795106", "text": "public function display()\n {\n echo $this->fetch();\n }", "title": "" }, { "docid": "fd37d1765d15b4bc18c928879eeab887", "score": "0.5793256", "text": "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}", "title": "" }, { "docid": "5b7cde41d4a1270d31720878d4a50b19", "score": "0.57929426", "text": "public function show($id)\n\t{\n\t\treturn $this->success($this->resource->getById($id));\n\t}", "title": "" }, { "docid": "8e4604d345a4a1aa92109fa7c7b9b1e1", "score": "0.57844466", "text": "public function showAction(I18NResource $i18NResource)\n {\n $use_translations = $this->get('Services')->get('use_translations');\n\n if(!$use_translations){\n throw $this->createNotFoundException('Not a valid request');\n }\n\n $this->get('Services')->setMenuItem('I18NResource');\n $changes = $this->get('Services')->getLogsByEntity($i18NResource);\n\n return $this->render('i18nresource/show.html.twig', array(\n 'i18NResource' => $i18NResource,\n 'changes' => $changes,\n ));\n }", "title": "" }, { "docid": "e918056f269cc66c35d0c9d5ae72cf98", "score": "0.57829785", "text": "protected function addResourceShow($name, $base, $controller, $options)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}.{format?}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show', $options));\n\t}", "title": "" }, { "docid": "dfcf7f89daddfb442f3e0ba6b417b34a", "score": "0.57822853", "text": "public function specialdisplayAction()\n {\n \n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/profile.css');\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n\n if ($input->isValid()) {\n\n $user_info = new Tripjacks_Model_Venue;\n\n $result = $user_info->getVenue($input->id);\n\n if (count($result) == 1) {\n $this->view->user_info = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "496570de6c493cd9fe30f7c52ceb87d1", "score": "0.5770989", "text": "public function show($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5759738", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "fcef539023519ca355832da7d8f035c5", "score": "0.5758838", "text": "public function displayTask($id=null)\n\t{\n\t\t// Incoming\n\t\tif (!$id)\n\t\t{\n\t\t\t$id = Request::getInt('id', 0);\n\t\t}\n\n\t\t// Ensure we have an ID to work with\n\t\tif (!$id)\n\t\t{\n\t\t\tApp::abort(404, Lang::txt('CONTRIBUTE_NO_ID'));\n\t\t}\n\n\t\t// Get all contributors of this resource\n\t\t$resource = Entry::oneOrFail($id);\n\n\t\t$authors = $resource->authors()\n\t\t\t->ordered()\n\t\t\t->rows();\n\n\t\t// Get all roles for this resoruce type\n\t\t$roles = $resource->type->roles()->rows();\n\n\t\t// Output view\n\t\t$this->view\n\t\t\t->set('config', $this->config)\n\t\t\t->set('id', $id)\n\t\t\t->set('contributors', $authors)\n\t\t\t->set('roles', $roles)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('display')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "69113639710554fd174b3aaec6536b9c", "score": "0.5757928", "text": "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}", "title": "" }, { "docid": "1e8ae24781dac20c4f5e103867a805e0", "score": "0.57578564", "text": "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5751031", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "1eedca4ba72a90a807a2f92511283570", "score": "0.574881", "text": "public function show()\n\t{\n\n\n\t}", "title": "" }, { "docid": "5e79caa6f512ec951cafbf72e8caa6f2", "score": "0.5741311", "text": "#[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}", "title": "" }, { "docid": "e68751480fa47a0b2d2bc46570e3a883", "score": "0.57376534", "text": "public function display($id = null) {\n \n }", "title": "" }, { "docid": "ca0564d197f7b97c9c7bb3bf9ec0d891", "score": "0.57360727", "text": "public function display($id = null) {\n\t\t$page = $this->SimplePage->findById($id);\n\t\tif(!$page){\n\t\t\t$this->Session->setFlash(__('Page not found'),'error');\n\t\t\t$this->redirect($this->referer());\n\t\t}\n\t\t\n\t\t//If the page was requested using requestAction, return the page object. Can be handy for integration of content in custom pages.\n\t\tif (! empty($this->request->params['requested']) ) {\n\t\t\treturn $page;\n\t\t}\n\t\t\n\t\t$this->set('page',$page);\n\t}", "title": "" }, { "docid": "cd5d84906dc48426110533ed06d6910f", "score": "0.5731491", "text": "public function show()\n {\n $data = $this->m->getOne('main', Validate::sanitize($_GET['id']));\n \n //sending data to the view\n $this->view->assign('id', $_GET['id']);\n $this->view->assign('data', $data);\n $this->view->assign('title', 'Page title');\n $this->view->display('main/show.tpl');\n \n }", "title": "" }, { "docid": "7684a3ad9102aa78b598eb1a828f68c5", "score": "0.5727921", "text": "public function show($id)\n {\n //\n $this->_show($id);\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5727622", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5724217", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5720258", "text": "public function show($id) {}", "title": "" }, { "docid": "e3c948157c6e692386196d78f9677b46", "score": "0.5714068", "text": "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}", "title": "" }, { "docid": "a494be3f6d40a2f537ff292b7a0ccaae", "score": "0.571107", "text": "public function item($id=0)\n {\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n \n $resource = $this->member_resource_model->find($id);\n if(empty($resource))\n {\n $this->session->action_success_message = 'Invalid item selection.';\n redirect(base_url().'member_resources/');\n }\n \n\t\t$data = array(\n 'page_title' => 'Resource detail',\n 'resource' => $resource\n );\n\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/item_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "b791634a3b29fe8adff71b755317e88e", "score": "0.57058644", "text": "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 }", "title": "" }, { "docid": "5766cf8c652099e6e707b39bd867a1c0", "score": "0.57057875", "text": "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5704414", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.57011694", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9032057600ac1cb05d858c6264b8aed1", "score": "0.5692151", "text": "public function show()\n {\n return auth()->user()->getResource();\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5686576", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
d94152aa9f56252c472bb34664bd00dc
set request component name
[ { "docid": "2aedfa8cfaf933ada559e67b7cfe4347", "score": "0.0", "text": "public function setRequestServise(string $serviceName)\n {\n $request = \\app\\App\\Base::getService($serviceName);\n $this->setRequest($request);\n }", "title": "" } ]
[ { "docid": "7af9ebaa79601d3cd03632b61fe48d14", "score": "0.6577966", "text": "public function setName()\n {\n $post = $this->postParams();\n\n $this->name = @$post['name'];\n }", "title": "" }, { "docid": "0c2d7cb63723632a4f38833eae3919c5", "score": "0.61636174", "text": "public function getRequesterName();", "title": "" }, { "docid": "e09698c16ce4c197678bc12550c85d70", "score": "0.615884", "text": "public function setName() {\n\t\t$this->name = self::$factory->getResourceName($this->id);\n\t}", "title": "" }, { "docid": "595421dda9d27dc28c9d12db5c2d96bc", "score": "0.6157898", "text": "public function setName($name) {\n\n\t\tself::setAttribute(\"/name\", $name);\n\t}", "title": "" }, { "docid": "ee31f59696284d8c56b182dc78d810b2", "score": "0.6061302", "text": "function setName($par){\n $this->name = $par;\n }", "title": "" }, { "docid": "c123232016eabe92597499f2ad80c602", "score": "0.60558057", "text": "public function setName($_name)\n {\n $this->name = $_name;\n }", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.6037915", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "62ae4d7aa127519e37760bba66bbaac3", "score": "0.59915996", "text": "public function setName($value)\n {\n $this->_name = $value;\n }", "title": "" }, { "docid": "2822ea124978a6f719ac4d0617d68309", "score": "0.59333575", "text": "final protected function setName($n){\n\t\t$this->_name = $n;\n\t}", "title": "" }, { "docid": "295b966d6a74f31d6558491e6171e58e", "score": "0.59293664", "text": "private function setName( $value ) {\n\n $this -> name = $value;\n\n }", "title": "" }, { "docid": "e467a8d4d867f42aaf589bbd8081af5d", "score": "0.59242755", "text": "function setName($name) {\n\t\t$this->_name = $name;\n\t}", "title": "" }, { "docid": "034431b7cedd7801d69cefb0959d2d4d", "score": "0.5921725", "text": "public function getRequestName()\n {\n return $this->requestName;\n }", "title": "" }, { "docid": "034431b7cedd7801d69cefb0959d2d4d", "score": "0.5921725", "text": "public function getRequestName()\n {\n return $this->requestName;\n }", "title": "" }, { "docid": "a5ebc4c52dd68ba8589cdb47875d8044", "score": "0.59204096", "text": "public function setName($name = ''){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "d18fa6dec2e4cc79f9a3f179dfcb30db", "score": "0.5908999", "text": "public function setName($name){\n\t\t\t$this->name = $name;\n\t\t}", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5907552", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5907552", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5907552", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5907552", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "a4b29c7c5cc22debbef6f455d95dd169", "score": "0.58903897", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "e372de738b4f84818c772dd36580f964", "score": "0.58900124", "text": "private function set_name($name, $action){\n if(!empty($name)) $this->name = ucfirst($name);\n elseif( function_exists('is_admin') && is_admin()){\n $this->name = ucfirst(str_replace('wppb-manage-', '', $_GET['page']));\n } \n elseif(current_user_can('manage_options') && !empty($_POST)){\n $this->name = ucfirst( $_POST['wppb_model_name']); \n }\n }", "title": "" }, { "docid": "df43ddac72fd3573048af243910077b2", "score": "0.58868974", "text": "public function setName($name) {\n $this->_name = $name;;\n }", "title": "" }, { "docid": "21100dd8ae8c0a41312d34c2fda2d7d4", "score": "0.588028", "text": "function setName( $value )\n {\n $this->Name = $value;\n }", "title": "" }, { "docid": "21100dd8ae8c0a41312d34c2fda2d7d4", "score": "0.588028", "text": "function setName( $value )\n {\n $this->Name = $value;\n }", "title": "" }, { "docid": "9a287149eb399284e85e886f0bacfea1", "score": "0.58785653", "text": "public function setName($name){\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "c64e6aae601eb93fec2600773dbb5fe8", "score": "0.58723754", "text": "public function setName($name){\n $this->auth_name = $name;\n }", "title": "" }, { "docid": "439ff0e0ebcb76cffab252055a389182", "score": "0.58704257", "text": "public function setRequestName($requestName)\n {\n $this->requestName = $requestName;\n }", "title": "" }, { "docid": "439ff0e0ebcb76cffab252055a389182", "score": "0.58704257", "text": "public function setRequestName($requestName)\n {\n $this->requestName = $requestName;\n }", "title": "" }, { "docid": "180dd7a1cea8a5c75e4be27e6758e65d", "score": "0.5857194", "text": "private function _setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "180dd7a1cea8a5c75e4be27e6758e65d", "score": "0.5857194", "text": "private function _setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "282bb05e32715b8ddd06d8036621c147", "score": "0.5852079", "text": "function _set_request($seg = array()) {\n // and replaces the hyphens with underscores making it\n // possible to use hyphens in controllers, folder names and\n // function names\n parent::_set_request(str_replace('-', '_', $seg));\n }", "title": "" }, { "docid": "92aea320ca2e8696a4ab547c8ae4c1d3", "score": "0.5840707", "text": "public function setName($name=''){ $this->name=$name; }", "title": "" }, { "docid": "0721082f122d613863e8b517880c8afe", "score": "0.5838131", "text": "public function setName($name){\n\t\t$this->name=$name;\n\t}", "title": "" }, { "docid": "50a08d8ee37df4b3da985534b0be6ee0", "score": "0.58265316", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "50a08d8ee37df4b3da985534b0be6ee0", "score": "0.58265316", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "b2061424c20d56260ff190c1df6374e9", "score": "0.5820452", "text": "public function setName(string $name){\n\t\t$this->name=$name;\n\t}", "title": "" }, { "docid": "b842e3106a95f9cad51b4f4578b7a333", "score": "0.58096385", "text": "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "title": "" }, { "docid": "56092704992f2b1421e52f0a79dcae3c", "score": "0.578653", "text": "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "86bc3f1d6c10ff5c421d4e5f82814d7c", "score": "0.57822555", "text": "public function setName($name)\n {\n $this->setAttribute('name', $name);\n }", "title": "" }, { "docid": "bca492b010d3278a7905cb3cfdb8a1a1", "score": "0.5770148", "text": "function setName( &$value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5769778", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5769778", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5769778", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.5769778", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "668d51dd7e90b6a05d688bf58413d3bf", "score": "0.57675326", "text": "public function setRequest();", "title": "" }, { "docid": "05c392aed2ad6f0103e8d9fce0105657", "score": "0.57642454", "text": "public function setName( $name ) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.5748382", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "30d06ad0faebc46460dc25bbe8417bb3", "score": "0.5747387", "text": "public function setName($name)\n\t{\n\t\t$this->_name = TPropertyValue::ensureString($name);\n\t}", "title": "" }, { "docid": "cf94e129c02f242e8924a1007bbc8e75", "score": "0.5742347", "text": "public function setName($name) {\r\n $this->name = (string) $name;\r\n }", "title": "" }, { "docid": "b55379886603b00db963aa49bb1fd203", "score": "0.57388294", "text": "function set_name($n) {\n $this->name = $n;\n }", "title": "" }, { "docid": "ef243135831f443b9e6cb467ba3fbe48", "score": "0.572996", "text": "public function setName ($name) {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "9cc15f4b373442b2de5d208d3599681c", "score": "0.5721525", "text": "public function setName($name) {\n $this->_name = $name;\n }", "title": "" }, { "docid": "e792f8994cd189de74a13dbebce46a45", "score": "0.5720226", "text": "public function setFormName($name) {\n\t\t$this->formName = $name;\n\t}", "title": "" }, { "docid": "5a86cc7c81353d7204359e37ed132ddb", "score": "0.57166946", "text": "public function setName($name) {\n\t\t$this->setAsString('name', $name);\n\t}", "title": "" }, { "docid": "565800a2d1d655bd0ce6bcd8cbaacab7", "score": "0.57163346", "text": "protected function setModuleName($module) {\n\t\tif($module == '')\n\t\t\t$module = $this->defaultModule;\n\t\t\t\n\t\t$this->request->setModuleName($module);\n\t}", "title": "" }, { "docid": "8fdbd2073d5bcbbf56c21a3f463444af", "score": "0.5711612", "text": "public function setName($value);", "title": "" }, { "docid": "a82a901a74a2d5bc58ce09c7c0634782", "score": "0.5711067", "text": "protected function setActionName($action) {\n\t\tif($action == '')\n\t\t\t$action = $this->defaultAction;\n\t\t\t\n\t\t$this->request->setActionName($action);\n\t}", "title": "" }, { "docid": "4d558627281e8d0403f00e15bd7f88bc", "score": "0.57048434", "text": "public function setName()\n {\n }", "title": "" }, { "docid": "e18d55dadfa75c16e646b231661cd7a5", "score": "0.5683688", "text": "public function setName($name) \n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "cce23eccb1b31739a155e5e5d626b693", "score": "0.5682851", "text": "public static function setRequest() {\n \n }", "title": "" }, { "docid": "dc749692126cbf19cbd5dcf7bca32bf2", "score": "0.5677526", "text": "function setName($name) {\n\t\t$this->setData('name', $name);\n\t}", "title": "" }, { "docid": "d6c5bac15447c3e2cafd0391205b582a", "score": "0.5671202", "text": "public function setName( $name ) {\n $this->name = $name;\n }", "title": "" }, { "docid": "5ac06a95e0e56536790e02cb0d7dcfcd", "score": "0.56704944", "text": "abstract protected function setName();", "title": "" }, { "docid": "304d91cf547e375a4a94ed3bb7553f04", "score": "0.56502414", "text": "function setName($name)\n{\n\t $this->name = $name;\n}", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.56442577", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "61426b383e4fd4663da0836202556050", "score": "0.5633893", "text": "public function set_name($name);", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.5627788", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.5627788", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.5627788", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.5622867", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.5622867", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "d0e91c30700baacb6dd789b90618819a", "score": "0.56133085", "text": "public static function setRequest($request) {\n \n }", "title": "" }, { "docid": "d0e91c30700baacb6dd789b90618819a", "score": "0.56133085", "text": "public static function setRequest($request) {\n \n }", "title": "" }, { "docid": "412f0f9ddac2f1820b5d977d6cae08df", "score": "0.5612629", "text": "function setName($new_name)\n {\n $this->name = (string) $new_name;\n }", "title": "" }, { "docid": "412f0f9ddac2f1820b5d977d6cae08df", "score": "0.5612629", "text": "function setName($new_name)\n {\n $this->name = (string) $new_name;\n }", "title": "" }, { "docid": "d8d81bae2e97dc93efec8bec5a5636eb", "score": "0.5611503", "text": "public function setName ($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "0af7006581751f10a400933ae133abb1", "score": "0.56048906", "text": "public function setName($str) {\n $this->name = $str;\n }", "title": "" }, { "docid": "a591dd4bc433b4db45f314355920cd3d", "score": "0.55963504", "text": "function setName($name);", "title": "" }, { "docid": "a591dd4bc433b4db45f314355920cd3d", "score": "0.55963504", "text": "function setName($name);", "title": "" }, { "docid": "96194d8994b19c78015d99e337ec7f1e", "score": "0.557964", "text": "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "title": "" }, { "docid": "cd2b7e3ff7a0054fbc4dac1c804a55d9", "score": "0.55767155", "text": "public function setName(string $value);", "title": "" }, { "docid": "8a52c5288731c97663396256f9481245", "score": "0.55752456", "text": "public function setName(string $name) :void\n {\n parent::setName($name.'_test');\n $this->setAttribute('methodName', studly_case($name));\n }", "title": "" }, { "docid": "18f3f626f17123e07ef76d00b1c20f5a", "score": "0.5562986", "text": "protected function setName($name)\n\t{\n\t\t$this->__name = $name;\n\t}", "title": "" }, { "docid": "bbd01d800082dffefdcf4490ccb20a18", "score": "0.55628353", "text": "private function setName()\n {\n $name = str_replace(\n 'App', '', str_replace(\n '\\\\', '', str_replace('Controller', '', get_class($this))\n )\n );\n\n return $name;\n }", "title": "" }, { "docid": "592b9cfaeb512c21060e99373e71479e", "score": "0.5560534", "text": "public function setName($name) {\n $this->_sectionName = $name;\n }", "title": "" }, { "docid": "6419e96014300b7a6857e39b1c5b9d07", "score": "0.5558274", "text": "public function setName( $name );", "title": "" }, { "docid": "6419e96014300b7a6857e39b1c5b9d07", "score": "0.5558274", "text": "public function setName( $name );", "title": "" }, { "docid": "6419e96014300b7a6857e39b1c5b9d07", "score": "0.5558274", "text": "public function setName( $name );", "title": "" }, { "docid": "e56a78c92f56b4906d39a19ccaa7034f", "score": "0.5538868", "text": "public function setName($name)\n {\n $this->name = (string) $name;\n }", "title": "" }, { "docid": "b26a4eecd08a01cd92fade782c76d67d", "score": "0.5536188", "text": "function setName($pName) {\n\t\t\t$this->name = $pName;\n\t\t}", "title": "" }, { "docid": "f71a99116d0725ab8316864222217338", "score": "0.55307204", "text": "public function setName( $name )\n {\n $this->name = (string)$name;\n }", "title": "" }, { "docid": "62cece4be7b6be076d3802389214fa10", "score": "0.55282176", "text": "public function set_name($name)\n {\n $this->_name = $_name;\n }", "title": "" }, { "docid": "b0e9e29205061470d9645e59adcc278f", "score": "0.5524843", "text": "protected function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.5522139", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.5522139", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" } ]
be06258d9249abbc2747a4e65bb75164
END ==> script_MB_twelve_service Construct Metabox
[ { "docid": "151ca430a5c82dcb3ea6a85f4f29a43a", "score": "0.0", "text": "function MB_twelve_service($POST){\n\n\t$titre_twelve_service = get_post_meta($POST->ID, 'titre_twelve_service', true);\n\t$display_twelve_service = get_post_meta($POST->ID, 'display_twelve_service', true);\n\t$repeat_twelve_services = get_post_meta($POST->ID, 'repeat_twelve_services', true);\n\n\twp_nonce_field( 'MB_twelve_service_nonce', 'MB_twelve_service_nonce' );\n ?>\n\n\t\t<div class=\"head-metabox\" style=\"border-bottom: 1px solid #ddd; margin-bottom: 1.5rem;\">\n\t\t <div style=\"line-height: 5;\">\n\t\t <label for=\"display_twelve_service\" style=\"margin-right: 15px; font-weight: bold;\">Afficher le service : </label>\n\t\t <span style=\"margin-right: 15px;\"><input type=\"radio\" <?php checked($display_twelve_service, 'oui'); ?> name=\"display_twelve_service\" value=\"oui\"/>Oui</span>\n\t\t <span style=\"margin-right: 15px;\"><input type=\"radio\" <?php checked($display_twelve_service, 'non'); ?> name=\"display_twelve_service\" value=\"non\"/>Non</span>\n\t\t </div>\n\n\t\t <div style=\"margin-bottom: 2rem;\">\n\t\t <label for=\"titre_twelve_service\" style=\"margin-right: 1rem; font-weight: bold;\">Titre </label>\n\t\t <input type=\"text\" id=\"titre_twelve_service\" name=\"titre_twelve_service\" value=\"<?php echo $titre_twelve_service ?>\" style=\"width: 90%;\" />\n\t\t </div>\n\t\t</div>\n\n\t\t<!-- START : table -->\n\t\t<table id=\"table-twelve-service\" width=\"100%\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width=\"5%\"></th>\n\t\t\t\t\t<th width=\"15%\">Numéro</th>\n\t\t\t\t\t<th width=\"60%\">Nom</th>\n\t\t\t\t\t<th width=\"15%\">Prix</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t<?php\n\t\t\t\tif ( $repeat_twelve_services ) :\n\t\t\t\t\tforeach ( $repeat_twelve_services as $field ) {\n\t\t\t\t?>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><a class=\"button delete-twelve-service remove-row\" href=\"#\">-</a></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"numb_twelve_service[]\" value=\"<?php if($field['numb_twelve_service'] != '') echo esc_attr( $field['numb_twelve_service'] ); ?>\" /></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"name_twelve_service[]\" value=\"<?php if ($field['name_twelve_service'] != '') echo esc_attr( $field['name_twelve_service'] ); ?>\" /></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"price_twelve_service[]\" value=\"<?php if ($field['price_twelve_service'] != '') echo esc_attr( $field['price_twelve_service'] ); ?>\" /></td>\n\t\t\t\t\t\t\t<!-- <td><a class=\"sort\">|||</a></td> -->\n\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse :\n\t\t\t\t\t\t\t\t// show a blank twelve\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><a class=\"button delete-twelve-service remove-row\" href=\"#\">-</a></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"numb_twelve_service[]\" /></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"name_twelve_service[]\" value=\"\" /></td>\n\t\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"price_twelve_service[]\" value=\"\" /></td>\n\t\t\t\t\t\t\t<!-- <td><a class=\"sort\">|||</a></td> -->\n\t\t\t\t\t\t</tr>\n\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t<!-- empty hidden twelve for jQuery -->\n\t\t\t\t\t<tr class=\"empty-row empty-twelve-service screen-reader-text\">\n\t\t\t\t\t\t<td><a class=\"button delete-twelve-service remove-row\" href=\"#\">-</a></td>\n\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"numb_twelve_service[]\" /></td>\n\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"name_twelve_service[]\" value=\"\" /></td>\n\t\t\t\t\t\t<td><input type=\"text\" class=\"widefat\" name=\"price_twelve_service[]\" value=\"\" /></td>\n\t\t\t\t\t\t<!-- <td><a class=\"sort\">|||</a></td> -->\n\n\t\t\t\t\t</tr><!-- / .empty-row empty-twelve-service .screen-reader-text-->\n\t\t\t</tbody><!-- / -->\n\t\t</table><!-- / #table-twelve-service -->\n\n\t\t<!-- START : bouton -->\n\t\t<p>\n\t\t\t<a id=\"add-twelve-service\" class=\"button add-row button-large\" href=\"#\">Ajouter</a>\n\t\t\t<input type=\"submit\" class=\"button save-twelve-service btn-save button-large\" value=\"Sauvegarder\" />\n\t\t</p><!-- / bouton -->\n\n <?php\n}", "title": "" } ]
[ { "docid": "4018dd4d608ef1282b75a7d56bf00ead", "score": "0.6002713", "text": "function di_business_post_meta_box_first_func() {\n new Di_Business_Post_Meta_Box_Main_Class();\n}", "title": "" }, { "docid": "8bd38fb16eeab0764d923ccd69c24d50", "score": "0.599661", "text": "function DreamCommerce_management($params) {\r\n $module = basename(dirname(__FILE__));\r\n try {\r\n if ($module::$run) return false;\r\n $clientArea = new DreamCommerce($params['serviceid']);\r\n $clientArea->init($params);\r\n $act = $_GET['act']? $_GET['act']: 'domainsManagement';\r\n return $clientArea->run( $act, $params);\r\n } catch (Exception $ex) {\r\n return array(\"vars\" => array(\"modulecustombuttonresult\" => $ex->getMessage()));\r\n }\r\n}", "title": "" }, { "docid": "2f42f3839271c3b96925d388bd48fe4d", "score": "0.59777063", "text": "function __construct(){\r\n \t$this->name = 'ServiceName';\r\n \t$this->config_file = ''; // $GLOBALS['config']['root'].'_services/Gallery/config.Gallery.php';\r\n \t\t\t$this->ini_file = '';//$GLOBALS['to_root'].'_services/Admincenter/Admincenter.ini'; \r\n \t\t\tparent::__construct();\r\n // if(isset($this->config['loc_file'])) $this->sp->run('Localization', array('load'=>$this->config['loc_file'])); -> will be executed by Service::__construct()\r\n }", "title": "" }, { "docid": "ba2750e07b76ffaeec4f4ac5dde8c5ca", "score": "0.58924127", "text": "function __construct() {\n\t\t\t$block_options = array(\n\t\t\t\t'pb_block_icon' => 'simpleicon-note',\n\t\t\t\t'pb_block_icon_color' => '#F49AC2',\n\t\t\t\t'name' => __('Services','mthemelocal'),\n\t\t\t\t'size' => 'span3',\n\t\t\t\t'tab' => __('Elements','mthemelocal'),\n\t\t\t\t'desc' => __('Add Service Boxes','mthemelocal')\n\t\t\t);\n\n\t\t\t/*-----------------------------------------------------------------------------------*/\n\t\t\t/*\tService Boxes\n\t\t\t/*-----------------------------------------------------------------------------------*/\n\n\t\t\t$mtheme_shortcodes['serviceboxes'] = array(\n\t\t\t 'params' => array(),\n\t\t\t 'no_preview' => true,\n\t\t\t 'shortcode_desc' => __('Add Service columns. You can add multiple service items from this generator as well as sort them before adding to contents editor.', 'mthemelocal'),\n\t\t\t 'shortcode' => '[servicebox animated=\"{{animated}}\" column=\"1\" iconborder=\"{{iconborder}}\" iconbackground=\"{{iconbackground}}\" iconplace=\"{{iconplace}}\" boxplace=\"horizontal\" iconcolor=\"{{iconcolor}}\"] [servicebox_item icon=\"{{icon}}\" title=\"{{title}}\" link=\"{{link}}\" linktext=\"{{linktext}}\" last_item=\"no\"] {{content}} [/servicebox_item] [/servicebox]',\n\t\t\t 'popup_title' => __('Generate Services', 'mthemelocal'),\n\t\t\t \t'params' => array(\n\t\t\t\t\t'animated' => array(\n\t\t\t\t\t\t'type' => 'animated',\n\t\t\t\t\t\t'label' => __('Animation type', 'mthemelocal'),\n\t\t\t\t\t\t'desc' => __('Animation type', 'mthemelocal')\n\t\t\t\t\t),\n\t\t\t\t\t'iconplace' => array(\n\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t'label' => __('Icon Placement', 'mthemelocal'),\n\t\t\t\t\t\t'desc' => __('Placement of icon', 'mthemelocal'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'top' => __('top','mthemelocal'),\n\t\t\t\t\t\t\t'left' => __('left','mthemelocal')\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'iconborder' => array(\n\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t'label' => __('iCon Border', 'mthemelocal'),\n\t\t\t\t\t\t'desc' => __('Placement of service boxes', 'mthemelocal'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'false' => __('Disable','mthemelocal'),\n\t\t\t\t\t\t\t'true' => __('Enable','mthemelocal')\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'iconcolor' => array(\n\t\t\t\t\t\t'std' => '',\n\t\t\t\t\t\t'type' => 'color',\n\t\t\t\t\t\t'label' => __('Icon color', 'mthemelocal'),\n\t\t\t\t\t\t'desc' => __('Color of icon in hex', 'mthemelocal'),\n\t\t\t\t\t),\n\t\t\t\t\t'iconbackground' => array(\n\t\t\t\t\t\t'std' => '',\n\t\t\t\t\t\t'type' => 'color',\n\t\t\t\t\t\t'label' => __('Icon background color', 'mthemelocal'),\n\t\t\t\t\t\t'desc' => __('Background color of icon', 'mthemelocal'),\n\t\t\t\t\t),\n\t\t 'icon' => array(\n\t\t 'std' => 'et-icon-strategy',\n\t\t\t 'type' => 'fontawesome-iconpicker',\n\t\t\t 'label' => __('Choose a Fontawesome icon', 'mthemelocal'),\n\t\t\t 'desc' => __('Pick a fontawesome icon', 'mthemelocal'),\n\t\t\t 'options' => ''\n\t\t ),\n\t\t 'title' => array(\n\t\t 'std' => 'Fusce Magna Elit',\n\t\t 'type' => 'text',\n\t\t 'label' => __('Service Title', 'mthemelocal'),\n\t\t 'desc' => __('Title of the service', 'mthemelocal'),\n\t\t ),\n\t\t 'link' => array(\n\t\t 'std' => '',\n\t\t 'type' => 'text',\n\t\t 'label' => __('Link', 'mthemelocal'),\n\t\t 'desc' => __('Link to title', 'mthemelocal'),\n\t\t ),\n\t\t 'linktext' => array(\n\t\t 'std' => '',\n\t\t 'type' => 'text',\n\t\t 'label' => __('Text for link', 'mthemelocal'),\n\t\t 'desc' => __('Text for link', 'mthemelocal'),\n\t\t ),\n\t\t 'content' => array(\n\t\t 'std' => __('Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Cras mattis consectetur purus sit amet fermentum.','mthemelocal'),\n\t\t 'type' => 'editor',\n\t\t 'label' => __('Service Content', 'mthemelocal'),\n\t\t 'desc' => __('Add the service content', 'mthemelocal')\n\t\t )\n\t\t\t\t),\n\t\t\t);\n\n\n\t\t\t$this->the_options = $mtheme_shortcodes['serviceboxes'];\n\n\t\t\t//create the block\n\t\t\tparent::__construct('em_serviceboxes', $block_options);\n\t\t}", "title": "" }, { "docid": "8bdec6468caf746ae8cf16194b854a55", "score": "0.58887666", "text": "function trx_addons_cpt_services_init() {\n\t\ttrx_addons_meta_box_register(TRX_ADDONS_CPT_SERVICES_PT, array(\n\t\t\t\"price\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Price\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"The price of the item\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"type\" => \"text\"\n\t\t\t),\n\t\t\t\"product\" => array(\n\t\t\t\t\"title\" => __('Select linked product', 'trx_addons'),\n\t\t\t\t\"desc\" => __(\"Product linked with this service item\", 'trx_addons'),\n\t\t\t\t\"std\" => '',\n\t\t\t\t\"options\" => is_admin() ? trx_addons_get_list_posts(false, 'product') : array(),\n\t\t\t\t\"type\" => \"select2\"\n\t\t\t),\n\t\t\t\"icon\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Item's icon\", 'trx_addons'),\n\t\t\t\t\"desc\" => '',\n\t\t\t\t\"std\" => '',\n\t\t\t\t\"options\" => array(),\n\t\t\t\t\"style\" => trx_addons_get_setting('icons_type'),\n\t\t\t\t\"type\" => \"icons\"\n\t\t\t),\n\t\t\t\"icon_color\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Icon's color\", 'trx_addons'),\n\t\t\t\t\"desc\" => '',\n\t\t\t\t\"std\" => '',\n\t\t\t\t\"type\" => \"color\"\n\t\t\t),\n\t\t\t\"image\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Item's pictogram\", 'trx_addons'),\n\t\t\t\t\"desc\" => '',\n\t\t\t\t\"std\" => '',\n\t\t\t\t\"button_caption\" => esc_html__('Choose', 'trx_addons'),\n\t\t\t\t\"type\" => \"image\"\n\t\t\t)\n\t\t));\n\t\t\n\t\t// Register post type and taxonomy\n\t\tregister_post_type( TRX_ADDONS_CPT_SERVICES_PT, array(\n\t\t\t'label' => esc_html__( 'Services', 'trx_addons' ),\n\t\t\t'description' => esc_html__( 'Service Description', 'trx_addons' ),\n\t\t\t'labels' => array(\n\t\t\t\t'name' => esc_html__( 'Services', 'trx_addons' ),\n\t\t\t\t'singular_name' => esc_html__( 'Service', 'trx_addons' ),\n\t\t\t\t'menu_name' => esc_html__( 'Services', 'trx_addons' ),\n\t\t\t\t'parent_item_colon' => esc_html__( 'Parent Item:', 'trx_addons' ),\n\t\t\t\t'all_items' => esc_html__( 'All Services', 'trx_addons' ),\n\t\t\t\t'view_item' => esc_html__( 'View Service', 'trx_addons' ),\n\t\t\t\t'add_new_item' => esc_html__( 'Add New Service', 'trx_addons' ),\n\t\t\t\t'add_new' => esc_html__( 'Add New', 'trx_addons' ),\n\t\t\t\t'edit_item' => esc_html__( 'Edit Service', 'trx_addons' ),\n\t\t\t\t'update_item' => esc_html__( 'Update Service', 'trx_addons' ),\n\t\t\t\t'search_items' => esc_html__( 'Search Service', 'trx_addons' ),\n\t\t\t\t'not_found' => esc_html__( 'Not found', 'trx_addons' ),\n\t\t\t\t'not_found_in_trash' => esc_html__( 'Not found in Trash', 'trx_addons' ),\n\t\t\t),\n\t\t\t'taxonomies' => array(TRX_ADDONS_CPT_SERVICES_TAXONOMY),\n\t\t\t'supports' => trx_addons_cpt_param('services', 'supports'),\n\t\t\t'public' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'has_archive' => true,\n\t\t\t'can_export' => true,\n\t\t\t'show_in_admin_bar' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'menu_position' => '53.6',\n\t\t\t'menu_icon'\t\t\t => 'dashicons-hammer',\n\t\t\t'capability_type' => 'post',\n\t\t\t'rewrite' => array( 'slug' => trx_addons_cpt_param('services', 'post_type_slug') )\n\t\t\t)\n\t\t);\n\n\t\tregister_taxonomy( TRX_ADDONS_CPT_SERVICES_TAXONOMY, TRX_ADDONS_CPT_SERVICES_PT, array(\n\t\t\t'post_type' \t\t=> TRX_ADDONS_CPT_SERVICES_PT,\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => array(\n\t\t\t\t'name' => esc_html__( 'Services Group', 'trx_addons' ),\n\t\t\t\t'singular_name' => esc_html__( 'Group', 'trx_addons' ),\n\t\t\t\t'search_items' => esc_html__( 'Search Groups', 'trx_addons' ),\n\t\t\t\t'all_items' => esc_html__( 'All Groups', 'trx_addons' ),\n\t\t\t\t'parent_item' => esc_html__( 'Parent Group', 'trx_addons' ),\n\t\t\t\t'parent_item_colon' => esc_html__( 'Parent Group:', 'trx_addons' ),\n\t\t\t\t'edit_item' => esc_html__( 'Edit Group', 'trx_addons' ),\n\t\t\t\t'update_item' => esc_html__( 'Update Group', 'trx_addons' ),\n\t\t\t\t'add_new_item' => esc_html__( 'Add New Group', 'trx_addons' ),\n\t\t\t\t'new_item_name' => esc_html__( 'New Group Name', 'trx_addons' ),\n\t\t\t\t'menu_name' => esc_html__( 'Services Groups', 'trx_addons' ),\n\t\t\t),\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => trx_addons_cpt_param('services', 'taxonomy_slug') )\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "1dcfee8fdc485d1292faeeb6deaf51e5", "score": "0.5774979", "text": "function eshopmgpage($thist){\n\tadd_meta_box('eshop-m-bank10', __('bank10','eshop'), 'bank10_box', $thist->pagehook, 'normal', 'core');\n}", "title": "" }, { "docid": "429a719f4654f170b28351cdb3d1d65a", "score": "0.5750083", "text": "public function Create()\r\n\t\t{\r\n\t\t\tparent::Create();\r\n\t\t\t\r\n\t\t\t$this->RegisterPropertyString(\"url\", \"http://pvserver:pvwr@192.168.180.60\");\r\n\t\t\t$this->RegisterPropertyInteger(\"Intervall\", 10);\r\n $this->RegisterPropertyBoolean(\"IsDay\", true);\r\n $this->RegisterPropertyInteger(\"startzeith\", 05);\r\n $this->RegisterPropertyInteger(\"startzeitm\", 00);\r\n $this->RegisterPropertyInteger(\"stopzeith\", 22);\r\n $this->RegisterPropertyInteger(\"stopzeitm\", 30); \r\n $this->RegisterTimer(\"ReadKostalPiko\", 0, 'KP_RequestInfo($_IPS[\\'TARGET\\']);');\r\n \t\t\t\r\n\t\t}", "title": "" }, { "docid": "4eee7b152ba2e821fb70f61dfa2e0058", "score": "0.5718888", "text": "function test(){\n\n// BehaviorBuilderService::createBehavior('UserFuck', '用户XX');\n\n// ModelBuilderService::createModel(1001,'', '', true);\n// $res = BaseService::find('Shop/Apply', ['id' => 1]);\n\n// $res = ServiceBuilerService::createService('申请', 'Apply', true);\n\n// var_dump($res);\n//\n// $res = ModelBuilderService::fixTablename('apply_user_ruby_on');\n// var_dump($res);\n\n// $file = __DIR__ . '/BehaviorController.class.php';\n//\n// $res = ServicePreviewService::parserClassFile($file);\n// dump($res);\n\n $res = ServicePreviewService::getSystemService();\n dump($res);\n\n\n }", "title": "" }, { "docid": "92f14250eabac1c70a5fee7d064c7bdb", "score": "0.5624222", "text": "public function __construct()//constructor\n\t{\n\t\t$this->name = 'ejemplo';\n\t\t$this->tab = 'payments_gateways';\n\t\t$this->version = '0.0.1';\n\t\t$this->author = 'nsiksnys';\n\t\t$this->need_instance = 0;\n\n\t\t$this->bootstrap = true;//para que use bootstrap\n\n\t\tparent::__construct();\n\n\t\t//lo que se muestra en el listado de modulos en el backoffice\n\t\t$this->displayName = $this->l('Ejemplo');//nombre\n\t\t$this->description = $this->l('Modulo de ejemplo para prestashop 1.6');//descripcion\n\n\t\t$this->confirmUninstall = $this->l('Est&aacute; seguro de desinstalar este modulo?');//mensaje que aparece al momento de desinstalar el modulo\n\t}", "title": "" }, { "docid": "7d5ef71fdaa825aaf845d673c361875e", "score": "0.56163085", "text": "function jobboard_cp_person_metabox(){\n $mb_path = get_stylesheet_directory() . '/metaboxes/metabox-cp-person.php';\n // Initialize the Metabox's object\n // We can use array or file path to the array specification file.\n $mb = new VP_Metabox(array(\n 'id' => 'jobboard_cp_person_mb',\n 'types' => array('company'),\n 'title' => __('Contact Person Details', 'jobboard'),\n 'priority' => 'high',\n 'is_dev_mode' => false,\n 'template' => $mb_path,\n 'mode' => WPALCHEMY_MODE_EXTRACT\n\n ));\n}", "title": "" }, { "docid": "fd80853e6882aed52c9d9ec2dc3049b5", "score": "0.56109554", "text": "public function initJBpriceAdvance()\r\n {\r\n $this->tools();\r\n }", "title": "" }, { "docid": "fcbda89bfa9133f0daab6a5652fe69a0", "score": "0.55965096", "text": "function Service(){\n\t\t$widget_ops = array('description' => 'Services widget for the Services page.' );\n\t\t$this->WP_Widget('Service','Service', $widget_ops);\n\t\t$this->widget_count = 1;\n\t\t$this->number_of_list_items = 3;\n\t}", "title": "" }, { "docid": "d08f65776c1bcdf1f5cf9421f37c7df5", "score": "0.5592955", "text": "public function serviceTank()\n {\n }", "title": "" }, { "docid": "8c4e20b31d263bb75085afdd6d01238e", "score": "0.5578463", "text": "public function run()\n {\n \t$service_types = [\n \t\t[\n \t\t\t'name' => 'Errand',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'eg. Buying essential goods, transfer money, etc.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Household services',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'eg. Carpentry, plumbing, etc.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Home health care',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'eg. Nursing, physical therapy, companionship, etc.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Transportation',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'Ask someone with a private vehicle to transport you from one place to another'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Accommodation',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'Ask for accommodation.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Personal grooming',\n \t\t\t'bid_limit' => 5,\n \t\t\t'description' => 'eg. Haircut, manicure, etc.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Donation and relief goods',\n \t\t\t'bid_limit' => 0, // no limit on how many people can bid\n \t\t\t'description' => 'Ask for donations or relief goods for you or on behalf of someone else.'\n \t\t],\n \t\t[\n \t\t\t'name' => 'Others',\n \t\t\t'bid_limit' => 0,\n \t\t\t'description' => 'Other services not classified above.'\n \t\t]\n \t];\n\n \tforeach ($service_types as $service) {\n \t\tfactory(ServiceType::class)->create([\n \t\t\t'name' => $service['name'],\n \t\t\t'bid_limit' => $service['bid_limit'],\n \t\t\t'description' => $service['description']\n \t\t]);\n \t}\n }", "title": "" }, { "docid": "c0ff9a8c3e65e98f37c17a92c13f51c2", "score": "0.55715966", "text": "function proc($args)\n\t{\n\t\t$args->service_count = (int)$args->service_count;\n\t\tif(!$args->service_count) $args->service_count = 6;\n\t\tif(!$args->service_sub1_icon) $args->service_sub1_icon = 'fa fa-book';\n\t\tif(!$args->service_sub1_icon_color) $args->service_sub1_icon_color = '#fff';\n\t\tif(!$args->service_sub1_icon_bgcolor) $args->service_sub1_icon_bgcolor = '#2aaf67';\n\t\tif(!$args->service_sub1_title) $args->service_sub1_title = '서브 1 내용';\n\t\tif(!$args->service_sub1_content) $args->service_sub1_content = '서브 1 내용 입력';\n\n\t\tif(!$args->service_sub2_icon) $args->service_sub2_icon = 'fa fa-sitemap';\n\t\tif(!$args->service_sub2_icon_color) $args->service_sub2_icon_color = '#fff';\n\t\tif(!$args->service_sub2_icon_bgcolor) $args->service_sub2_icon_bgcolor = '#00bff3';\n\t\tif(!$args->service_sub2_title) $args->service_sub2_title = '서브 2 내용';\n\t\tif(!$args->service_sub2_content) $args->service_sub2_content = '서브 2 내용 입력';\n\n\t\tif(!$args->service_sub3_icon) $args->service_sub3_icon = 'fa fa-cloud';\n\t\tif(!$args->service_sub3_icon_color) $args->service_sub3_icon_color = '#fff';\n\t\tif(!$args->service_sub3_icon_bgcolor) $args->service_sub3_icon_bgcolor = '#f26522';\n\t\tif(!$args->service_sub3_title) $args->service_sub3_title = '서브 3 내용';\n\t\tif(!$args->service_sub3_content) $args->service_sub3_content = '서브 3 내용 입력';\n\n\t\tif(!$args->service_sub4_icon) $args->service_sub4_icon = 'fa fa-bolt';\n\t\tif(!$args->service_sub4_icon_color) $args->service_sub4_icon_color = '#fff';\n\t\tif(!$args->service_sub4_icon_bgcolor) $args->service_sub4_icon_bgcolor = '#e52b50';\n\t\tif(!$args->service_sub4_title) $args->service_sub4_title = '서브 4 내용';\n\t\tif(!$args->service_sub4_content) $args->service_sub4_content = '서브 4 내용 입력';\n\n\t\tif(!$args->service_sub5_icon) $args->service_sub5_icon = 'xi-paper';\n\t\tif(!$args->service_sub5_icon_color) $args->service_sub5_icon_color = '#fff';\n\t\tif(!$args->service_sub5_icon_bgcolor) $args->service_sub5_icon_bgcolor = '#2fc5cc';\n\t\tif(!$args->service_sub5_title) $args->service_sub5_title = '서브 5 내용';\n\t\tif(!$args->service_sub5_content) $args->service_sub5_content = '서브 5 내용 입력';\n\n\t\tif(!$args->service_sub6_icon) $args->service_sub6_icon = 'fa fa-magnet';\n\t\tif(!$args->service_sub6_icon_color) $args->service_sub6_icon_color = '#fff';\n\t\tif(!$args->service_sub6_icon_bgcolor) $args->service_sub6_icon_bgcolor = '#6173f4';\n\t\tif(!$args->service_sub6_title) $args->service_sub6_title = '서브 6 내용';\n\t\tif(!$args->service_sub6_content) $args->service_sub6_content = '서브 6 내용 입력';\n\n\t\t$output = $this->_compile($args);\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "f7dd5537bfb90d00d6763ac69590b6a5", "score": "0.55133885", "text": "function create_service_cpt() {\n\n\t$labels = array(\n\t\t'name' => __( 'Services', 'Post Type General Name', 'spx' ),\n\t\t'singular_name' => __( 'Service', 'Post Type Singular Name', 'spx' ),\n\t\t'menu_name' => __( 'Services', 'spx' ),\n\t\t'name_admin_bar' => __( 'Service', 'spx' ),\n\t\t'archives' => __( 'Service Archives', 'spx' ),\n\t\t'attributes' => __( 'Service Attributes', 'spx' ),\n\t\t'parent_item_colon' => __( 'Parent Service:', 'spx' ),\n\t\t'all_items' => __( 'All Services', 'spx' ),\n\t\t'add_new_item' => __( 'Add New Service', 'spx' ),\n\t\t'add_new' => __( 'Add New', 'spx' ),\n\t\t'new_item' => __( 'New Service', 'spx' ),\n\t\t'edit_item' => __( 'Edit Service', 'spx' ),\n\t\t'update_item' => __( 'Update Service', 'spx' ),\n\t\t'view_item' => __( 'View Service', 'spx' ),\n\t\t'view_items' => __( 'View Services', 'spx' ),\n\t\t'search_items' => __( 'Search Service', 'spx' ),\n\t\t'not_found' => __( 'Not found', 'spx' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'spx' ),\n\t\t'featured_image' => __( 'Featured Image', 'spx' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'spx' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'spx' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'spx' ),\n\t\t'insert_into_item' => __( 'Insert into Service', 'spx' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this Service', 'spx' ),\n\t\t'items_list' => __( 'Services list', 'spx' ),\n\t\t'items_list_navigation' => __( 'Services list navigation', 'spx' ),\n\t\t'filter_items_list' => __( 'Filter Services list', 'spx' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Service', 'spx' ),\n\t\t'description' => __( '', 'spx' ),\n\t\t'labels' => $labels,\n\t\t'menu_icon' => 'dashicons-portfolio',\n\t\t'supports' => array('title', 'editor', ),\n\t\t'taxonomies' => array(),\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'hierarchical' => false,\n\t\t'exclude_from_search' => false,\n\t\t'show_in_rest' => true,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'post',\n\t);\n\tregister_post_type( 'service', $args );\n\n}", "title": "" }, { "docid": "0e5838767b82424ecfe2957020c293ef", "score": "0.5510329", "text": "public function registerMetaboxes(){\n /* chayka: registerMetaboxes */\n }", "title": "" }, { "docid": "f105f74ce19776ab5fe5815224b302cf", "score": "0.55082715", "text": "protected function onCreateServiceFront() {}", "title": "" }, { "docid": "f6a076c8a9907259f98722680ee36b96", "score": "0.5506805", "text": "function eshopmgpage($thist){\r\n\tadd_meta_box('eshop-m-bitpay', __('bitpay','eshop'), 'bitpay_box', $thist->pagehook, 'normal', 'core');\r\n}", "title": "" }, { "docid": "5e8537e64fccd30b8bd7186d168002d7", "score": "0.54756105", "text": "public function init_cpt() {\n\n\t}", "title": "" }, { "docid": "9115bc3c41500be2f57faafbeafddc0a", "score": "0.5460022", "text": "function cc_contacts_call_meta_box() {\n new CC_Contacts_Meta_Box();\n}", "title": "" }, { "docid": "8dc0893cd43beb4f702750c07373bda0", "score": "0.545939", "text": "public function run()\n {\n Service::create([\n 'name' => 'Биопсия аспирационная (зондом Пеппеля)'\n ]);\n Service::create([\n 'name' => 'Вакуум-аспирация IPAS'\n ]);\n Service::create([\n 'name' => 'Лечение эктопий солковагином'\n ]);\n Service::create([\n 'name' => 'Консультация Гастроэнтеролога'\n ]);\n Service::create([\n 'name' => 'Консультация Дерматовенеролога'\n ]);\n Service::create([\n 'name' => 'Консультация Терапевта'\n ]);\n Service::create([\n 'name' => 'Консультация Эндоскописта'\n ]);\n Service::create([\n 'name' => 'Консультация стоматолога-имплантолога'\n ]);\n Service::create([\n 'name' => 'Составление индивидуального плана имплантации на основе рентген. материалов и осмотра специалистов'\n ]);\n Service::create([\n 'name' => 'Вскрытие пародонтального абсцесса'\n ]);\n Service::create([\n 'name' => 'Глубокая чистка пародонта без полировки'\n ]);\n Service::create([\n 'name' => 'Лечение заболеваний слизистой области полости рта'\n ]);\n Service::create([\n 'name' => 'Пломба из материалов химического отверждения (Витример) - Три поверхности'\n ]);\n Service::create([\n 'name' => 'Снятие зубного камня с полировкой с одного зуба ультразвуковым скейлером'\n ]);\n Service::create([\n 'name' => 'Консультация Дерматовенеролога'\n ]);\n Service::create([\n 'name' => 'Массаж верхней конечности 1,5 ед.'\n ]);\n Service::create([\n 'name' => 'Массаж общий 4,5 ед.'\n ]);\n Service::create([\n 'name' => 'Антицеллюлитный массаж, 45 мин.'\n ]);\n Service::create([\n 'name' => 'Вакуумный ( баночный ) массаж, 20 мин'\n ]);\n Service::create([\n 'name' => 'Гемолимфодренаж 1,5 часа'\n ]);\n Service::create([\n 'name' => 'УЗИ лимфатических узлов с эластографией (1зона)'\n ]);\n Service::create([\n 'name' => 'УЗИ мягких тканей с эластографией'\n ]);\n Service::create([\n 'name' => 'УЗИ молочных желез с эластографией'\n ]);\n Service::create([\n 'name' => 'УЗИ щитовидной железы с эластографией'\n ]);\n Service::create([\n 'name' => 'Сканирование артерий верхних конечностей'\n ]);\n Service::create([\n 'name' => 'Сканирование брахиоцефальных артерий'\n ]);\n Service::create([\n 'name' => 'УЗД брюшной полости и почек'\n ]);\n Service::create([\n 'name' => 'УЗД мягких тканей'\n ]);\n Service::create([\n 'name' => 'УЗД щитовидной железы'\n ]);\n Service::create([\n 'name' => 'Ультразвуковая цервикометрия'\n ]);\n Service::create([\n 'name' => 'УЗД одного отдела позвоночника'\n ]);\n Service::create([\n 'name' => 'УЗД сосудов головного мозга у детей до 7 лет (нейросонография)'\n ]);\n Service::create([\n 'name' => 'Тонкоигольная аспирационная биопсия новообразований челюстно-лицевой области (ЧЛО)'\n ]);\n Service::create([\n 'name' => 'Консультация Челюстно-лицевого хирурга'\n ]);\n Service::create([\n 'name' => 'Вскрытие одонтогенного поднадналкостничного абсцесса'\n ]);\n Service::create([\n 'name' => 'Марсупиализация одонтогенных кист челюстей'\n ]);\n Service::create([\n 'name' => 'Сиалодохотомия при сиалолитиазе'\n ]);\n }", "title": "" }, { "docid": "7837248a7e0760b104ae93db82b916f3", "score": "0.54411215", "text": "public function run()\n {\n CashType::create([\n 'type' => 'in',\n 'description' => 'Umum',\n ]);\n CashType::create([\n 'type' => 'out',\n 'description' => 'Mikro',\n ]);\n CashType::create([\n 'type' => 'out',\n 'description' => 'Makro',\n ]);\n CashType::create([\n 'type' => 'out',\n 'description' => 'Zakat',\n ]);\n }", "title": "" }, { "docid": "9a411cdc02026716deb8180e975caf45", "score": "0.5435424", "text": "public function payment_scripts()\n {\n }", "title": "" }, { "docid": "954beb9d9dbbe50bdb447358b41aad47", "score": "0.54339236", "text": "function boxhost(){}", "title": "" }, { "docid": "155a254ae5b1bed4983461d59da4f43d", "score": "0.54328203", "text": "function create_corrCheck_SmallService($db){ ?>\n\n <fieldset class=\"section_smallservice rep-section section_std\">\n\n <h2>Small Service</h2>\n\n <div class=\"section-questions\">\n\n <?php \n\n $section_id = 9;\n $section_class= \"veh_smallservice\";\n get_standard_section($db, $section_id, $section_class);\n\n ?>\n\n \t</div>\n\n </fieldset>\n\n<?php }", "title": "" }, { "docid": "cf38571dc458ae78cdc7133fa6675d58", "score": "0.54128003", "text": "function __construct()\r\n\t\t{\r\n\t\t$MiniComponents = jomres_singleton_abstract::getInstance('mcHandler');\r\n\t\tif ($MiniComponents->template_touch)\r\n\t\t\t{\r\n\t\t\t$this->template_touchable=true; return;\r\n\t\t\t}\r\n\t\t\r\n\t\t$ePointFilepath = get_showtime('ePointFilepath');\r\n\r\n\t\t$defaultProperty = getDefaultProperty();\r\n\t\t\r\n\t\t$pageoutput = array();\r\n\t\t$output = array();\r\n\t\t$guests_arrray = array();\r\n\t\t\r\n\t\t$id\t= (int)jomresGetParam( $_REQUEST, 'coupon_id', 0 );\r\n\t\t\r\n\t\tjr_import( 'jrportal_coupons' );\r\n\t\t$jrportal_coupons = new jrportal_coupons();\r\n\t\t$jrportal_coupons->id = $id;\r\n\t\t$jrportal_coupons->property_uid\t= 0;\r\n\t\t\r\n\t\t$yesno = array();\r\n\t\t$yesno[] = jomresHTML::makeOption( '0', jr_gettext('_JOMRES_COM_MR_NO','_JOMRES_COM_MR_NO',FALSE) );\r\n\t\t$yesno[] = jomresHTML::makeOption( '1', jr_gettext('_JOMRES_COM_MR_YES','_JOMRES_COM_MR_YES',FALSE));\r\n\t\t\r\n\t\tif ($id > 0 && $jrportal_coupons->get_coupon()) {\r\n\t\t\t$output['COUPON_ID'] = $id;\r\n\t\t\t$output['COUPONCODE'] = $jrportal_coupons->coupon_code;\r\n\t\t\t$output['VALIDFROM'] = generateDateInput(\"valid_from\",str_replace(\"-\",\"/\",$jrportal_coupons->valid_from) );\r\n\t\t\t$output['VALIDTO'] = generateDateInput(\"valid_to\",str_replace(\"-\",\"/\",$jrportal_coupons->valid_to));\r\n\t\t\t$output['AMOUNT'] = $jrportal_coupons->amount;\r\n\t\t\t$output['ISPERCENTAGE'] = jomresHTML::selectList($yesno, 'is_percentage', 'class=\"inputbox\" size=\"1\"', 'value', 'text', $jrportal_coupons->is_percentage);\r\n\t\t\t$output['BOOKING_VALIDFROM'] = generateDateInput(\"booking_valid_from\",str_replace(\"-\",\"/\",$jrportal_coupons->booking_valid_from) );\r\n\t\t\t$output['BOOKING_VALIDTO'] = generateDateInput(\"booking_valid_to\",str_replace(\"-\",\"/\",$jrportal_coupons->booking_valid_to));\r\n\t\t\t$guest_id = $jrportal_coupons->guest_uid;\r\n\t\t} else {\r\n\t\t\t$output['COUPON_ID'] = 0;\r\n\t\t\t$output['COUPONCODE'] = generateJomresRandomString(15);\r\n\t\t\t$output['VALIDFROM'] = generateDateInput(\"valid_from\",date(\"Y/m/d\") );\r\n\t\t\t$output['VALIDTO'] = generateDateInput(\"valid_to\",date(\"Y/m/d\") );\r\n\t\t\t$output['AMOUNT'] = 10.00;\r\n\t\t\t$output['ISPERCENTAGE'] = jomresHTML::selectList($yesno, 'is_percentage', 'class=\"inputbox\" size=\"1\"', 'value', 'text', 1);\r\n\t\t\t$output['BOOKING_VALIDFROM'] = generateDateInput(\"booking_valid_from\",date(\"Y/m/d\") );\r\n\t\t\t$output['BOOKING_VALIDTO'] = generateDateInput(\"booking_valid_to\",date(\"Y/m/d\") );\r\n\t\t\t$guest_id = 0;\r\n\t\t}\r\n\t\t\r\n\t\t//TODO\r\n\t\t// Also, add encryption/decryption of user details\r\n\t\t\r\n\t\t/* $query = \"SELECT `guests_uid`,`firstname`,`surname` FROM #__jomres_guests WHERE `property_uid` = \".(int)$defaultProperty;\r\n\t\t$result = doSelectSql($query);\r\n\t\t\r\n\t\tif (!empty($result))\r\n\t\t\t{\r\n\t\t\tforeach ($result as $r)\r\n\t\t\t\t{\r\n\t\t\t\t$guests_arrray[$r->guests_uid] = array (\"surname\"=>$r->surname, \"firstname\"=>$r->firstname);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t$output['GUEST_DROPDOWN']='';\r\n\t\tif (!empty($guests_arrray))\r\n\t\t\t{\r\n\t\t\t$guests_options = array();\r\n\t\t\t$guests_options[]=jomresHTML::makeOption( 0, '' );\r\n\t\t\tforeach ($guests_arrray as $uid => $guest)\r\n\t\t\t\t{\r\n\t\t\t\t$guests_options[] = jomresHTML::makeOption( $uid, $guest['firstname'].\" \". $guest['surname'] );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t$output['GUEST_DROPDOWN'] = jomresHTML::selectList($guests_options, 'guest_uid', 'class=\"inputbox\" size=\"1\"', 'value', 'text', $guest_id,false);\r\n\t\t\t} */\r\n\t\t\r\n\t\t//labels\r\n\t\t$output['PAGETITLE']=jr_gettext('_JOMRES_HEDIT_COUPON','_JOMRES_HEDIT_COUPON',false);\r\n\t\t$output['INFO']=jr_gettext('_JRPORTAL_COUPONS_DESC_478','_JRPORTAL_COUPONS_DESC_478',false);\r\n\t\t$output['HCOUPONCODE']=jr_gettext('_JRPORTAL_COUPONS_CODE','_JRPORTAL_COUPONS_CODE',false);\r\n\t\t$output['HVALIDFROM']=jr_gettext('_JRPORTAL_COUPONS_VALIDFROM','_JRPORTAL_COUPONS_VALIDFROM',false);\r\n\t\t$output['HVALIDTO']=jr_gettext('_JRPORTAL_COUPONS_VALIDTO','_JRPORTAL_COUPONS_VALIDTO',false);\r\n\t\t$output['HAMOUNT']=jr_gettext('_JRPORTAL_COUPONS_AMOUNT','_JRPORTAL_COUPONS_AMOUNT',false);\r\n\t\t$output['HISPERCENTAGE']=jr_gettext('_JRPORTAL_COUPONS_ISPERCENTAGE','_JRPORTAL_COUPONS_ISPERCENTAGE',false);\r\n\t\t$output['_JRPORTAL_COUPONS_BOOKING_VALIDFROM']=jr_gettext('_JRPORTAL_COUPONS_BOOKING_VALIDFROM','_JRPORTAL_COUPONS_BOOKING_VALIDFROM',false);\r\n\t\t$output['_JRPORTAL_COUPONS_BOOKING_VALIDTO']=jr_gettext('_JRPORTAL_COUPONS_BOOKING_VALIDTO','_JRPORTAL_COUPONS_BOOKING_VALIDTO',false);\r\n\t\t$output['_JRPORTAL_COUPONS_GUESTNAME']=jr_gettext('_JRPORTAL_COUPONS_GUESTNAME','_JRPORTAL_COUPONS_GUESTNAME',false);\r\n\t\t\r\n\t\t//toolbar\r\n\t\t$jrtbar =jomres_getSingleton('jomres_toolbar');\r\n\t\t$jrtb = $jrtbar->startTable();\r\n\t\t$jrtb .= $jrtbar->toolbarItem('save','','',true,'save_coupon');\r\n\t\t$jrtb .= $jrtbar->toolbarItem('cancel',jomresURL(JOMRES_SITEPAGE_URL_ADMIN.\"&task=list_coupons\"),\"\");\r\n\t\t$jrtb .= $jrtbar->endTable();\r\n\t\t$output['JOMRESTOOLBAR']=$jrtb;\r\n\r\n\t\t$pageoutput[]=$output;\r\n\t\t$tmpl = new patTemplate();\r\n\t\t$tmpl->setRoot( $ePointFilepath.'templates'.JRDS.find_plugin_template_directory() );\r\n\t\t$tmpl->addRows( 'pageoutput',$pageoutput);\r\n\t\t$tmpl->readTemplatesFromInput( 'admin_edit_coupon.html' );\r\n\t\t$tmpl->displayParsedTemplate();\r\n\t\t}", "title": "" }, { "docid": "ab7c8811e4070c3bdfce9989b53b1900", "score": "0.5410403", "text": "public function __construct() {\n\n\t\tparent::__construct();\n\t\t\n\t\t$this->version='2.0';\n\t\t$this->prodid='-//Intermesh//NONSGML Group-Office '.\\GO::config()->version.'//EN';\t\t\n\t}", "title": "" }, { "docid": "b0dd0ffb2b27340f4f42a3cab6462028", "score": "0.5403417", "text": "public function creat()\n {\n }", "title": "" }, { "docid": "60d88abfa04d40fbaff07139446be8a6", "score": "0.539889", "text": "function initialisation_metaboxes(){\n //on utilise la fonction add_metabox() pour initialiser une metabox\n add_meta_box('id_ma_meta', 'Information Candidat', 'ma_meta_function', 'candidat', 'normal', 'high');\n add_meta_box('id_ma_meta_heroes', 'Réponses Super Héros', 'ma_meta_function_heroes', 'candidat', 'normal', 'high');\n}", "title": "" }, { "docid": "3e0dd11490c76af29eae07100e434fce", "score": "0.5394737", "text": "function start(){\n\t\t\tglobal $account;\n\t\t\tglobal $objects;\n\t\t\tglobal $param;\n\t\t\tglobal $dossier;\n\t\t\tglobal $Hemocult;\n\t\t\tglobal $outDateReference;\n\t\t\tglobal $HemocultList;\n\n\n\t\t\tif(array_key_exists(\"outDateReference\",$objects))\n\t\t\t\t$outDateReference = $objects[\"outDateReference\"];\n\n\t\t\tglobal $dossier;\n\t\t\tif(array_key_exists(\"dossier\",$objects))\n\t\t\t\t$dossier = $objects[\"dossier\"];\n\n\t\t\tif(array_key_exists(\"CardioVasculaireDepart\",$objects))\n\t\t\t\t$CardioVasculaireDepart = $objects[\"CardioVasculaireDepart\"];\n\n\n\t\t\t$ledgerFactory = new LedgerFactory();\n\t\t\t$ledger = $ledgerFactory->getLedger(\"Controler\",\"CardioVasculaireDepartControler\");\n\n\t\t\t//Create connection factory\n\t\t\t$cf = new ConnectionFactory();\n\n\t\t\t//create mappers\n\t\t\t$CardioVasculaireDepartMapper = new CardioVasculaireDepartMapper($cf->getConnection());\n\t\t\t$dossierMapper = new DossierMapper($cf->getConnection());\n\n\t\t\t$ledger->writeArray(I,\"Start\",\"Control Parameters = \",$param);\n\n\n\t\t\tswitch($param->action){\n\t\t\t\tcase ACTION_MANAGE:\n\t\t\t\t\t$dossier = new Dossier();\n\t\t\t\t\t$CardioVasculaireDepart = new CardioVasculaireDepart();\n\t\t\t\t\t$CardioVasculaireDepart->date= date(\"d/m/Y\");\n\t\t\t\t\t\n\t\t\t\t\tglobal $complement;\n\t\t\t\t\t$complement=false;\n\n\n\t\t\t\t\tif(!$param->isParam1Valid())\n\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE\"]);\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t switch($param->param1){\n\t\t\t\t\t\t\tcase PARAM_OUTDATED:\n\t\t\t\t\t\t\t\t$outDateReference = new OutDateReference();\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE_OUTDATED\"]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PARAM_EDIT:\n\t\t\t\t\t\t\t\t$complement=true;\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE_COMPLEMENT\"]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PARAM_VIEW:\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE_DEPART\"]);\n\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE\"]);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase ACTION_FIND:\n\t\t\t\t\t\tif(!$param->isParam1Valid())\n\t\t\t\t\t\t\tforward(URL_CONTROLER_PARAMS_ERROR,\"Invalid param1\");\n\n\t\t\t\t\t\texitIfNull($dossier);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($param->param1 == PARAM_DEPART){\n\t\t\t\t\t\t\t$CardioVasculaireDepart = new CardioVasculaireDepart();\n\t\t\t\t\t\t\t$dossier = checkDossier($dossier,$dossierMapper,$account->cabinet,true,$this->mappingTable[\"URL_MANAGE_DEPART\"]);\n\n\t\t\t\t\t\t $poids= $CardioVasculaireDepartMapper->getPremierPoids($dossier->id);\n\t\t\t\t\t\t $poids=$poids[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dpoids=$poids['dpoids'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->poids=$poids['poids'];\n\n\t\t\t\t\t\t $tension= $CardioVasculaireDepartMapper->getPremierTension($dossier->id);\n\t\t\t\t\t\t\t$tension=$tension[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dTA=$tension['dTA'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->TaSys=$tension['TaSys'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->TaDia=$tension['TaDia'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->HTA=$tension['HTA'];\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t $exam_cardio= $CardioVasculaireDepartMapper->getPremierExamCardio($dossier->id);\n\t\t\t\t\t\t $exam_cardio=$exam_cardio[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->exam_cardio=$exam_cardio['exam_cardio'];\n\n\t\t\t\t\t\t $creat= $CardioVasculaireDepartMapper->getPremierCreat($dossier->id);\n\t\t\t\t\t\t\t$creat=$creat[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dCreat=$creat['dCreat'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->Creat=$creat['Creat'];\n\n\n\t\t\t\t\t\t $proteinurie= $CardioVasculaireDepartMapper->getPremierProteinurie($dossier->id);\n\t\t\t\t\t\t\t$proteinurie=$proteinurie[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dproteinurie=$proteinurie['dproteinurie'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->proteinurie=$proteinurie['proteinurie'];\n\n\t\t\t\t\t\t $hematurie= $CardioVasculaireDepartMapper->getPremierHematurie($dossier->id);\n\t\t\t\t\t\t\t$hematurie=$hematurie[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dhematurie=$hematurie['dhematurie'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->hematurie=$hematurie['hematurie'];\n\n\t\t\t\t\t\t $glycemie= $CardioVasculaireDepartMapper->getPremierGlycemie($dossier->id);\n\t\t\t\t\t\t\t$glycemie=$glycemie[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dgly=$glycemie['dgly'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->glycemie=$glycemie['glycemie'];\n\n\n\t\t\t\t\t\t $kaliemie= $CardioVasculaireDepartMapper->getPremierKaliemie($dossier->id);\n\t\t\t\t\t\t\t$kaliemie=$kaliemie[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dkaliemie=$kaliemie['dkaliemie'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->kaliemie=$kaliemie['kaliemie'];\n\n\t\t\t\t\t\t $HDL= $CardioVasculaireDepartMapper->getPremierHDL($dossier->id);\n\t\t\t\t\t\t\t$HDL=$HDL[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dHDL=$HDL['dHDL'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->HDL=$HDL['HDL'];\n\n\t\t\t\t\t\t $LDL= $CardioVasculaireDepartMapper->getPremierLDL($dossier->id);\n\t\t\t\t\t\t\t$LDL=$LDL[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dLDL=$LDL['dLDL'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->LDL=$LDL['LDL'];\n\n\n\n\t\t\t\t\t\t $fond= $CardioVasculaireDepartMapper->getPremierFond($dossier->id);\n\t\t\t\t\t\t $fond=$fond[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dFond=$fond['dFond'];\n\n\t\t\t\t\t\t $ECG= $CardioVasculaireDepartMapper->getPremierECG($dossier->id);\n\t\t\t\t\t\t $ECG=$ECG[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dECG=$ECG['dECG'];\n\n\n\t\t\t\t\t\t $sokolov= $CardioVasculaireDepartMapper->getPremierSokolov($dossier->id);\n\t\t\t\t\t\t\t$sokolov=$sokolov[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dsokolov=$sokolov['dsokolov'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->sokolov=$sokolov['sokolov'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->surcharge_ventricule=$sokolov['surcharge_ventricule'];\n\n\n\t\t\t\t\t\t $Chol= $CardioVasculaireDepartMapper->getPremierChol($dossier->id);\n\t\t\t\t\t\t\t$Chol=$Chol[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dChol=$Chol['dChol'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->Chol=$Chol['Chol'];\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t $triglycerides= $CardioVasculaireDepartMapper->getPremierTriglycerides($dossier->id);\n\t\t\t\t\t\t\t$triglycerides=$triglycerides[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dtriglycerides=$triglycerides['dtriglycerides'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->triglycerides=$triglycerides['triglycerides'];\n\n\n\t\t\t\t\t\t $pouls= $CardioVasculaireDepartMapper->getPremierPouls($dossier->id);\n\t\t\t\t\t\t\t$pouls=$pouls[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dpouls=$pouls['dpouls'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->pouls=$pouls['pouls'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t $autres= $CardioVasculaireDepartMapper->getPremierAutreExam($dossier->id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($autres as $autre){\n\t\t\t\t\t\t\t\tif(($CardioVasculaireDepart->antecedants!='oui')&&($CardioVasculaireDepart->antecedants!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['antecedants']=='oui')||($autre['antecedants']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->antecedants=$autre['antecedants'];\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\t\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepart->traitement==array()){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->traitement=split(',',$autre['traitement']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dosage=$autre['dosage'];\n\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(($CardioVasculaireDepart->hypertenseur3!='oui')&&($CardioVasculaireDepart->hypertenseur3!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['hypertenseur3']=='oui')||($autre['hypertenseur3']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->hypertenseur3=$autre['hypertenseur3'];\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\t\n\t\t\t\t\t\t\t\tif(($CardioVasculaireDepart->automesure!='oui')&&($CardioVasculaireDepart->automesure!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['automesure']=='oui')||($autre['automesure']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->automesure=$autre['automesure'];\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\t\n\t\t\t\t\t\t\t\tif(($CardioVasculaireDepart->diuretique!='oui')&&($CardioVasculaireDepart->diuretique!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['diuretique']=='oui')||($autre['diuretique']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->diuretique=$autre['diuretique'];\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\t\n\t\t\t\t\t\t\t\tif(($CardioVasculaireDepart->HVG!='oui')&&($CardioVasculaireDepart->HVG!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['HVG']=='oui')||($autre['HVG']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HVG=$autre['HVG'];\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\t\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepart->activite==''){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->activite=$autre['activite'];\n\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(($CardioVasculaireDepart->tabac!='oui')&&($CardioVasculaireDepart->tabac!='non')){\n\t\t\t\t\t\t\t\t\tif(($autre['tabac']=='oui')||($autre['tabac']=='non')){\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->tabac=$autre['tabac'];\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->darret=$autre['darret'];\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\t\n\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\t$CardioVasculaireDepart = $CardioVasculaireDepart->afterDeserialisation($account);\n\t\t\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_VIEW_DEPART\"]);\n\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\telse{\n\n\t\t\t\t\t\texitIfNull($CardioVasculaireDepart);\n\t\t\t\t\t\texitIfNullOrEmpty($CardioVasculaireDepart->date);\n\t\t\t\t\t\t$dossier = checkDossier($dossier,$dossierMapper,$account->cabinet,true,$this->mappingTable[\"URL_MANAGE\"]);\n\n\t\t\t\t\t\t$CardioVasculaireDepart->id = $dossier->id;\n\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->findObject($CardioVasculaireDepart->beforeSerialisation($account));\n\n\t\t\t\t\t\tif($result == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH)\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE\"],\"Cet enregistrement n'existe pas\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tforward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find object caused an error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$CardioVasculaireDepart = $result->afterDeserialisation($account);\n\n\t\t\t\t\t\tif($param->param1 == PARAM_EDIT)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_FIND_EDIT\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_FIND_VIEW\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase ACTION_NEW:\n\n\t\t\t\t\t\texitIfNull($dossier);\n\t\t\t\t\t\texitIfNull($CardioVasculaireDepart);\n\t\t\t\t\t\texitIfNullOrEmpty($CardioVasculaireDepart->date);\n\t\t\t\t\t\t\n\t\t\t\t\t\tglobal $complement;\n\t\t\t\t\t\t$complement=false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($param->param1 == PARAM_EDIT){\n\t\t\t\t\t\t\t$complement=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!isValidDate($CardioVasculaireDepart->date)){\n\t\t\t\t\t\t\tif($param->param1==PARAM_EDIT){\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE_COMPLEMENT\"],\"La date du dépistage est invalide\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE\"],\"La date du dépistage est invalide\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$dossier = checkDossierActif($dossier,$dossierMapper,$account->cabinet,true,$this->mappingTable[\"URL_MANAGE\"]);\n\n\t\t\t\t\t\t$CardioVasculaireDepart->id = $dossier->id;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->findObject($CardioVasculaireDepart->beforeSerialisation($account));\n\t\t\t\t\t\tif($result == false){\n\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError != BAD_MATCH) forward(URL_CONTROLER_PERSISTENCE_ERROR,\"dossier non trouvé\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif($param->param1==PARAM_EDIT){\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE_COMPLEMENT\"],\"Cet enregistrement existe déjà\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_MANAGE\"],\"Cet enregistrement existe dejà\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tglobal $suividiab;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$depdiab=$CardioVasculaireDepartMapper->getdepdiab($dossier->id);\n\t\t\t\t\t\t$suividiab=$CardioVasculaireDepartMapper->getsuividiab($dossier->id);\n\t\t\t\t\t\t$sein=$CardioVasculaireDepartMapper->getsein($dossier->id);\n\t\t\t\t\t\t$colon=$CardioVasculaireDepartMapper->getcolon($dossier->id);\n\t\t\t\t\t\t$uterus=$CardioVasculaireDepartMapper->getuterus($dossier->id);\n\t\t\t\t\t\t$cognitif=$CardioVasculaireDepartMapper->getcognitif($dossier->id);\n\t\t\t\t\t\t$automesure=$CardioVasculaireDepartMapper->getautomesure($dossier->id);\n\t\t\t\t\t\t\n\t\t\t\t\t\tglobal $autre_proto;\n\t\t\t\t\t\t$autre_proto=\"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($depdiab){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Dépistage diabète, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($suividiab){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Suivi diabète, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($sein){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Dépistage cancer du sein, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($colon){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Dépistage cancer du colon, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($uterus){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Dépistage cancer du col utérus, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($cognitif){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Dépistage des troubles cognitifs, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($automesure){\n\t\t\t\t\t\t\t$autre_proto=$autre_proto.\"Automesure tensionnelle\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($autre_proto!=\"\"){\n\t\t\t\t\t\t\t$autre_proto=\"Ce patient est inclu dans les protocoles suivants : \".$autre_proto;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$CardioVasculaireDepart=$CardioVasculaireDepart->beforeSerialisation($account);\n\n/*\t\t\t\t\t\t$result1 = $CardioVasculaireDepartMapper->getdernierExamsHTA($dossier->id);\n\t\t\t\t\t\tif($result1 == false){\n\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) $result1=0;\n\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find object caused an error\");\n\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\n\t\t\t\t\t\t$result2 = $CardioVasculaireDepartMapper->getdernierExamsRCVA($dossier->id);\n\t\t\t\t\t\tif($result2 == false){\n\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) $result2=0;\n\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find object caused an error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$glycemie = $CardioVasculaireDepartMapper->getGlycemieDiab($dossier->id);\n/*\t\t\t\t\t\tif(($result1!=0)||($result2!=0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($result1!=0)\n\t\t\t\t\t\t\t\t$resultHTA=$result1[0];\n\n*/\t\t\t\t\t\t\tif(($result2!=0)||($glycemie!=false)){\n\t\t\t\t\t\t\t\t$resultRCVA = $result2[0];\n\nif(!isset($resultRCVA)){\n\t$resultRCVA['dpoids']=$resultRCVA['dTA']=$resultRCVA['dCreat']=$resultRCVA['dproteinurie']='0000-00-00';\n\t$resultRCVA['dhematurie']=$resultRCVA['dgly']=$resultRCVA['dkaliemie']=$resultRCVA['dHDL']='0000-00-00';\n\t$resultRCVA['dLDL']=$resultRCVA['dFond']=$resultRCVA['dECG']=$resultRCVA['exam_cardio']='0000-00-00';\n\t$resultRCVA['darret']=$resultRCVA['dpouls']=$resultRCVA['dsokolov']=$resultRCVA['dChol']='0000-00-00';\n\t$resultRCVA['dtriglycerides']='0000-00-00';\n\t$autre_exam=\"non\";\n}\nelse{\n\t$autre_exam=\"oui\";\n}\n/*if(!isset($resultHTA)){\n\t$resultHTA['dpoids']=$resultHTA['dTA']=$resultHTA['dcoeur']=$resultHTA['dcreat']=$resultHTA['dproteinurie']='0000-00-00';\n\t$resultHTA['dhematurie']=$resultHTA['dgly']=$resultHTA['dkaliemie']=$resultHTA['dHDL']='0000-00-00';\n\t$resultHTA['dLDL']=$resultHTA['dFond']=$resultHTA['dECG']='0000-00-00';\n\t$resultHTA['alcool']=$resultHTA['tabac']=\"\";\n}\n*/\n//$CardioVasculaireDepart->traitement=array();\n\t\t\t\t\t\t\tif(($resultRCVA['dpoids']>'0000-00-00'))//||($resultHTA['dpoids']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dpoids']>$resultHTA['dpoids']){\n\t\t\t\t\t\t\t\t $poids= $CardioVasculaireDepartMapper->getPoidsRCVA($dossier->id, $resultRCVA['dpoids']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dpoids=$resultRCVA['dpoids'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $poids= $CardioVasculaireDepartMapper->getPoidsHTA($dossier->id, $resultHTA['dpoids']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dpoids=$resultHTA['dpoids'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$poids=$poids[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->poids=$poids['poids'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dTA']>'0000-00-00'))//||($resultHTA['dTA']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dTA']>$resultHTA['dTA']){\n\t\t\t\t\t\t\t\t $tension= $CardioVasculaireDepartMapper->getTensionRCVA($dossier->id, $resultRCVA['dTA']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dTA=$resultRCVA['dTA'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $tension= $CardioVasculaireDepartMapper->getTensionHTA($dossier->id, $resultHTA['dTA']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dTA=$resultHTA['dTA'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$tension=$tension[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->TaSys=$tension['TaSys'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->TaDia=$tension['TaDia'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HTA=$tension['HTA'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->TA_mode=$tension['TA_mode'];\n\t\t\t\t\t\t\t\t\n/*\t\t\t\t\t\t\t\tif(($tension['TaSys']>140)||($tension['TaDia']>80)){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HTA=\"oui\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HTA=\"non\";\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['exam_cardio']>'0000-00-00'))//||($resultHTA['dcoeur']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['exam_cardio']>$resultHTA['dcoeur']){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->exam_cardio=$resultRCVA['exam_cardio'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->exam_cardio=$resultHTA['dcoeur'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dCreat']>'0000-00-00'))//||($resultHTA['dcreat']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dCreat']>$resultHTA['dcreat']){\n\t\t\t\t\t\t\t\t $creat= $CardioVasculaireDepartMapper->getCreatRCVA($dossier->id, $resultRCVA['dCreat']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dCreat=$resultRCVA['dCreat'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $creat= $CardioVasculaireDepartMapper->getCreatHTA($dossier->id, $resultHTA['dcreat']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dCreat=$resultHTA['dcreat'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$creat=$creat[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->Creat=$creat['Creat'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dproteinurie']>'0000-00-00'))//||($resultHTA['dproteinurie']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dproteinurie']>$resultHTA['dproteinurie']){\n\t\t\t\t\t\t\t\t $proteinurie= $CardioVasculaireDepartMapper->getProteinurieRCVA($dossier->id, $resultRCVA['dproteinurie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dproteinurie=$resultRCVA['dproteinurie'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $proteinurie= $CardioVasculaireDepartMapper->getProteinurieHTA($dossier->id, $resultHTA['dproteinurie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dproteinurie=$resultHTA['dproteinurie'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$proteinurie=$proteinurie[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->proteinurie=$proteinurie['proteinurie'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dhematurie']>'0000-00-00'))//||($resultHTA['dhematurie']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dhematurie']>$resultHTA['dhematurie']){\n\t\t\t\t\t\t\t\t $hematurie= $CardioVasculaireDepartMapper->getHematurieRCVA($dossier->id, $resultRCVA['dhematurie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dhematurie=$resultRCVA['dhematurie'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $hematurie= $CardioVasculaireDepartMapper->getHematurieHTA($dossier->id, $resultHTA['dhematurie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dhematurie=$resultHTA['dhematurie'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$hematurie=$hematurie[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->hematurie=$hematurie['hematurie'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(($resultRCVA['dgly']>'0000-00-00')||($glycemie!=false))//||($resultHTA['dgly']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dgly']>$resultHTA['dgly']){\n\t\t\t\t\t\t\t\t\tif($glycemie==false){\n\t\t\t\t\t\t\t\t\t $glycemie= $CardioVasculaireDepartMapper->getGlycemieRCVA($dossier->id, $resultRCVA['dgly']);\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dgly=$resultRCVA['dgly'];\n\t\t\t\t\t\t\t\t\t\t$glycemie=$glycemie[0];\n\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->glycemie=$glycemie['glycemie'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t$glycemie=$glycemie[0];\n\t\t\t\t\t\t\t\t\t\tif($glycemie['dgly']>$resultRCVA['dgly']){\n\t\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->glycemie=$glycemie['glycemie'];\n\t\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dgly=$glycemie['dgly'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t $glycemie= $CardioVasculaireDepartMapper->getGlycemieRCVA($dossier->id, $resultRCVA['dgly']);\n\t\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dgly=$resultRCVA['dgly'];\n\t\t\t\t\t\t\t\t\t\t\t$glycemie=$glycemie[0];\n\t\t\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->glycemie=$glycemie['glycemie'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\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\telse{\n\t\t\t\t\t\t\t\t $glycemie= $CardioVasculaireDepartMapper->getGlycemieHTA($dossier->id, $resultHTA['dgly']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dgly=$resultHTA['dgly'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dkaliemie']>'0000-00-00'))//||($resultHTA['dkaliemie']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dkaliemie']>$resultHTA['dkaliemie']){\n\t\t\t\t\t\t\t\t $kaliemie= $CardioVasculaireDepartMapper->getKaliemieRCVA($dossier->id, $resultRCVA['dkaliemie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dkaliemie=$resultRCVA['dkaliemie'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $kaliemie= $CardioVasculaireDepartMapper->getKaliemieHTA($dossier->id, $resultHTA['dkaliemie']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dkaliemie=$resultHTA['dkaliemie'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$kaliemie=$kaliemie[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->kaliemie=$kaliemie['kaliemie'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dHDL']>'0000-00-00'))//||($resultHTA['dHDL']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dHDL']>$resultHTA['dHDL']){\n\t\t\t\t\t\t\t\t $HDL= $CardioVasculaireDepartMapper->getHDLRCVA($dossier->id, $resultRCVA['dHDL']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dHDL=$resultRCVA['dHDL'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $HDL= $CardioVasculaireDepartMapper->getHDLHTA($dossier->id, $resultHTA['dHDL']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dHDL=$resultHTA['dHDL'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$HDL=$HDL[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HDL=$HDL['HDL'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dLDL']>'0000-00-00'))//||($resultHTA['dLDL']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dLDL']>$resultHTA['dLDL']){\n\t\t\t\t\t\t\t\t $LDL= $CardioVasculaireDepartMapper->getLDLRCVA($dossier->id, $resultRCVA['dLDL']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dLDL=$resultRCVA['dLDL'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t $LDL= $CardioVasculaireDepartMapper->getLDLHTA($dossier->id, $resultHTA['dLDL']);\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dLDL=$resultHTA['dLDL'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t\t$LDL=$LDL[0];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->LDL=$LDL['LDL'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dFond']>'0000-00-00'))//||($resultHTA['dFond']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dFond']>$resultHTA['dFond']){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dFond=$resultRCVA['dFond'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dFond=$resultHTA['dFond'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(($resultRCVA['dECG']>'0000-00-00'))//||($resultHTA['dECG']>'0000-00-00'))\n\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif($resultRCVA['dECG']>$resultHTA['dECG']){\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dECG=$resultRCVA['dECG'];\n/*\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dECG=$resultHTA['dECG'];\n\t\t\t\t\t\t\t\t}\n*/\t\t\t\t\t\t\t}\n\n/*\t\t\t\t\t\tif($resultHTA['tabac']=='1'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->tabac='oui';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($resultHTA['alcool']=='1'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->alcool='oui';\n\t\t\t\t\t\t}\n*/\t\t\t\t\t\tif($resultRCVA['darret']>'0000-00-00'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->darret=$resultRCVA['darret'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($resultRCVA['dsokolov']>'0000-00-00'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dsokolov=$resultRCVA['dsokolov'];\n\t\t\t\t\t\t $sokolov= $CardioVasculaireDepartMapper->getSokolov($dossier->id, $resultRCVA['dsokolov']);\n\n\t\t\t\t\t\t\t$sokolov=$sokolov[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->sokolov=$sokolov['sokolov'];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->surcharge_ventricule=$sokolov['surcharge_ventricule'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($resultRCVA['dChol']>'0000-00-00'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dChol=$resultRCVA['dChol'];\n\t\t\t\t\t\t $Chol= $CardioVasculaireDepartMapper->getChol($dossier->id, $resultRCVA['dChol']);\n\n\t\t\t\t\t\t\t$Chol=$Chol[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->Chol=$Chol['Chol'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($resultRCVA['dtriglycerides']>'0000-00-00'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dtriglycerides=$resultRCVA['dtriglycerides'];\n\t\t\t\t\t\t $triglycerides= $CardioVasculaireDepartMapper->getTriglycerides($dossier->id, $resultRCVA['dtriglycerides']);\n\n\t\t\t\t\t\t\t$triglycerides=$triglycerides[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->triglycerides=$triglycerides['triglycerides'];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($resultRCVA['dpouls']>'0000-00-00'){\n\t\t\t\t\t\t\t$CardioVasculaireDepart->dpouls=$resultRCVA['dpouls'];\n\t\t\t\t\t\t $pouls= $CardioVasculaireDepartMapper->getPouls($dossier->id, $resultRCVA['dpouls']);\n\n\t\t\t\t\t\t\t$pouls=$pouls[0];\n\t\t\t\t\t\t\t$CardioVasculaireDepart->pouls=$pouls['pouls'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($autre_exam==\"oui\"){\n\t\t\t\t\t\t $autres= $CardioVasculaireDepartMapper->getAutreExam($dossier->id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($autres as $autre){\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->antecedants=$autre['antecedants'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->traitement=split(',',$autre['traitement']);\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->dosage=$autre['dosage'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->hypertenseur3=$autre['hypertenseur3'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->automesure=$autre['automesure'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->diuretique=$autre['diuretique'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->HVG=$autre['HVG'];\n\t\t\t\t\t\t\t\t$CardioVasculaireDepart->activite=$autre['activite'];\n\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\t\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$CardioVasculaireDepart = $CardioVasculaireDepart->afterDeserialisation($account);\n\n\t\t\t\t\t\tif($param->param1==PARAM_EDIT){\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_NEW_COMPLEMENT\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_NEW\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase ACTION_SAVE:\n\t\t\t\t\t\texitIfNull($dossier);\n\t\t\t\t\t\texitIfNull($CardioVasculaireDepart);\n\t\t\t\t\t\texitIfNullOrEmpty($CardioVasculaireDepart->date);\n\t\t\t\t\t\t$dossier = checkDossier($dossier,$dossierMapper,$account->cabinet,true,$this->mappingTable[\"URL_MANAGE\"]);\n\n\t\t\t\t\t\t$CardioVasculaireDepart->id = $dossier->id;\n\n\t\t\t\t\t\t$errors = $CardioVasculaireDepart->check();\n\n\t\t\t\t\t\tif(count($errors) !=0) forward($this->mappingTable[\"URL_NEW\"],$errors);\n\n\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->findObject($CardioVasculaireDepart->beforeSerialisation($account));\n\n\t\t\t\t\t\tif($result == false){\n\n\t\t\t\t\t\t\tif(($CardioVasculaireDepartMapper->lastError != BAD_MATCH)&&($CardioVasculaireDepartMapper->lastError!=PARAM)) forward(URL_CONTROLER_PERSISTENCE_ERROR,\"find failed\");\n\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->createObject($CardioVasculaireDepart->beforeSerialisation($account));\n\n\t\t\t\t\t\t\tif($result == false) forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Echec lors de la création\");\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_CREATE\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->updateObject($CardioVasculaireDepart->beforeSerialisation($account));\n\n\t\t\t\t\t\t\tif($result == false) {\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError != NOTHING_UPDATED)\n\t\t\t\t\t\t\t\t\tforward(URL_CONTROLER_PERSISTENCE_ERROR,\"Echec lors de la mise à jour\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_UPDATE\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\tcase ACTION_DELETE:\n\n\t\t\t\t\texitIfNull($dossier);\n\t\t\t\t\texitIfNull($CardioVasculaireDepart);\n\t\t\t\t\texitIfNullOrEmpty($CardioVasculaireDepart->date);\n\n\t\t\t\t\t$dossier = checkDossier($dossier,$dossierMapper,$account->cabinet);\n\n\t\t\t\t\t$CardioVasculaireDepart->id = $dossier->id;\n\n\t\t\t\t\t$result = $CardioVasculaireDepartMapper->deleteObject($CardioVasculaireDepart->beforeSerialisation($account));\n\t\t\t\t\tif($result == false){\n\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError != NOTHING_DELETED) forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Delete object caused an error\");\n\t\t\t\t\t}\n\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_DELETE\"]);\n\n\n\t\t\t\tcase ACTION_LIST:\n\t\t\t\t\tswitch($param->param1){\n\t\t\t\t\t\tcase PARAM_LIST_BY_DOSSIER:\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->getObjectsByDossier($account->cabinet, $dossier->numero);\n\t\t\t\t\t\t\tif($result == false){\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) forward(new ControlerParams($param->controler,ACTION_MANAGE,true),\"Pas d'enregistrements trouvés\");\n\t\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find objects caused an error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tglobal $rowsList;\n\t\t\t\t\t\t\t$rowsList = array_natsort($result,\"numero\",\"numero\");\n\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_FIND_LIST_DOSSIER\"]);\n\t \t\t\t\tcase PARAM_OUTDATED:\n\t\t\t\t\t\t\texitIfNull($outDateReference);\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->getExpiredExams($account->cabinet,$outDateReference->period);\n\t\t\t\t\t\t\tif($result == false){\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) forward($this->mappingTable[\"URL_MANAGE_OUTDATED\"],\"Pas d'enregistrements trouvés\");\n\t\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find object caused an error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif(count($result)==0) forward($this->mappingTable[\"URL_MANAGE_OUTDATED\"],\"Pas d'enregistrements trouvés\");\n\n\t\t\t\t\t\t\t\tglobal $rowsList;\n\t\t\t\t\t\t\t\t$rowsList = array_natsort($result,\"numero\",\"numero\");\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_LIST_OUTDATED\"]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase PARAM_DEPART:\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->getObjectsByCabinet($account->cabinet);\n\t\t\t\t\t\t\tif($result == false){\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) forward(new ControlerParams($param->controler,ACTION_MANAGE,true),\"Pas d'enregistrements trouvés\");\n\t\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find objects caused an error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tglobal $rowsList;\n\t\t\t\t\t\t\t$rowsList = array_natsort($result,\"numero\",\"numero\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tglobal $depart;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$depart=true;\n\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_LIST_DEPART\"]);\n\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$result = $CardioVasculaireDepartMapper->getObjectsByCabinet($account->cabinet);\n\t\t\t\t\t\t\tif($result == false){\n\t\t\t\t\t\t\t\tif($CardioVasculaireDepartMapper->lastError == BAD_MATCH) forward(new ControlerParams($param->controler,ACTION_MANAGE,true),\"Pas d'enregistrements trouvés\");\n\t\t\t\t\t\t\t\telse forward(URL_CONTROLER_PERSISTENCE_ERROR,\"Find objects caused an error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tglobal $rowsList;\n\t\t\t\t\t\t\t$rowsList = array_natsort($result,\"numero\",\"numero\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tglobal $depart;\n\t\t\t\t\t\t\t$depart=false;\n\n\t\t\t\t\t\t\tforward($this->mappingTable[\"URL_AFTER_LIST\"]);\n\t\t\t\t\t}\n\n\n\n\n\t\t\t\tdefault:\n\t\t\t\t\techo(\"ACTION IS NULL\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a76b347141458ccb014a25484d1c7ea8", "score": "0.53929836", "text": "public function Create()\n\t\t{\n\t\t\tparent::Create();\n //These lines are parsed on Symcon Startup or Instance creation\n //You cannot use variables here. Just static values.\n $this->RegisterPropertyInteger(\"Sonos_ID\", 0 );\n $this->RegisterPropertyInteger(\"LCNDisplayId\", 0);\n $this->RegisterPropertyInteger(\"Trigger\", 0);\n $this->RegisterPropertyInteger(\"LCNDisplayLine1\", 0);\n $this->RegisterPropertyInteger(\"Trigger_BMI\", 0);\n $this->RegisterPropertyInteger(\"Rel_id\", 0);\n \n }", "title": "" }, { "docid": "a734727e07ac291b7e8ccdd73010d278", "score": "0.5390982", "text": "function wpcustomify_metabox_init() {\n\tnew WPCustomify_MetaBox();\n}", "title": "" }, { "docid": "7ac0651c5052ef8df8ee9a9127420ebb", "score": "0.5386842", "text": "public function Cinema() {\r\n $this->name=\"Cinema\";\r\n $this->title=\"Фильмы в кинотеатре\";\r\n $this->module_category=\"<#LANG_SECTION_APPLICATIONS#>\";\r\n $this->checkInstalled();\r\n}", "title": "" }, { "docid": "ba2b9449968cb51849958432a0f4bf35", "score": "0.53775877", "text": "function __construct() {\n\t\t$widget_ops = array( 'classname' => 'wsm-cta', 'description' => __('Displays backgrounds and customizable headline and Link', 'patricia') );\n\t\t$control_ops = array( 'width' => 200, 'height' => 250, 'id_base' => 'wsm-cta-widget' );\n\t\tparent::__construct( 'wsm-cta-widget', __('Web Savvy - CTA Widget', 'patricia'), $widget_ops, $control_ops );\n\t}", "title": "" }, { "docid": "7f3ed9e0c043a5416b581ddc3dda07e4", "score": "0.53703713", "text": "function tx_com_advanced_products_dmhooks() {\n\t\t$this->belib = t3lib_div::makeInstance('tx_commerce_belib');\n\t}", "title": "" }, { "docid": "53bfdf8aebb4d3a24e22656d2f35aafb", "score": "0.5357634", "text": "function cltvo_metaboxes(){\n\n \n\t \t add_meta_box(\n\t\t\t'empresa_relacionada_mb',\t\t//id\n\t\t\t'Empresa relacionada',\t\t\t\t//título\n\t\t\t'empresa_relacionada_mb',\t\t//callback function\n\t\t\tarray('trabajos_pt','sucursales_pt'),\t\t\t//post type\n\t\t\t'side'\t\t\t\t\t\t//posición\n\t\t);\n\n\t\tadd_meta_box(\n\t\t\t'sucursal_relacionada_mb',\t\t//id\n\t\t\t'Sucursal relacionada',\t\t\t\t//título\n\t\t\t'sucursal_relacionada_mb',\t\t//callback function\n\t\t\tarray('trabajos_pt'),\t\t\t//post type\n\t\t\t'side'\t\t\t\t\t\t//posición\n\t\t);\n\t\t\n\t\t\n\t\tadd_meta_box(\n\t\t\t'datos_sucursal_mb',\t\t//id\n\t\t\t'Datos Sucursal',\t\t\t\t//título\n\t\t\t'datos_sucursal_mb',\t\t//callback function\n\t\t\tarray('sucursales_pt'),\t\t\t//post type\n\t\t\t//'side'\t\t\t\t\t\t//posición\n\t\t);\n\t\tadd_meta_box(\n\t\t\t'color_destacado_mb',\t\t//id\n\t\t\t'Color destacado',\t\t\t\t//título\n\t\t\t'color_destacado_mb',\t\t//callback function\n\t\t\t'empresas_pt',\t\t\t//post type\n\t\t\t'side'\t\t\t\t\t\t//posición\n\t\t);\n\n\t\tadd_meta_box(\n\t\t\t'logo_destacado_mb',\t\t//id\n\t\t\t'Logotipo',\t\t\t\t//título\n\t\t\t'logo_destacado_mb',\t\t//callback function\n\t\t\t'empresas_pt',\t\t\t//post type\n\t\t\t\t\t\t\t\t\t//posición\n\t\t);\n\n\t\t// add_meta_box(\n\t\t// \t'datos_destacado_mb',\t\t//id\n\t\t// \t'Ubicación',\t\t\t\t//título\n\t\t// \t'datos_destacado_mb',\t\t//callback function\n\t\t// \t'sucursales_pt',\t\t\t//post type\n\t\t// \t'side'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'documentos_necesarios_mb',\t\t//id\n\t\t// \t'Documentos obligatorios',\t\t\t\t//título\n\t\t// \t'documentos_necesarios_mb',\t\t//callback function\n\t\t// \t'trabajos_pt',\t\t\t//post type\n\t\t// \t'side'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'experiencia_previa_mb',\t\t//id\n\t\t// \t'Experiencia previa',\t\t\t\t//título\n\t\t// \t'experiencia_previa_mb',\t\t//callback function\n\t\t// \t'trabajos_pt',\t\t\t//post type\n\t\t// \t'normal'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'informacion_puesto_mb',\t\t//id\n\t\t// \t'Información del Puesto',\t\t\t\t//título\n\t\t// \t'info_puesto_fc',\t\t//callback function\n\t\t// \t'trabajos_pt',\t\t\t//post type\n\t\t// \t'normal'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'tareas_puesto_mb',\t\t//id\n\t\t// \t'Tareas del Puesto',\t\t\t\t//título\n\t\t// \t'tareas_puesto_mb',\t\t//callback function\n\t\t// \t'trabajos_pt',\t\t\t//post type\n\t\t// \t'normal'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'preguntas_puesto_mb',\t\t//id\n\t\t// \t'Cuestionario',\t\t\t\t//título\n\t\t// \t'preguntas_puesto_mb',\t\t//callback function\n\t\t// \t'trabajos_pt',\t\t\t//post type\n\t\t// \t'normal'\t\t\t\t\t\t//posición\n\t\t// );\n\t \n\t\t// add_meta_box(\n\t\t// \t'configuracion_pregunta_mb',\t\t//id\n\t\t// \t'Configuracion pregunta',\t\t\t\t//título\n\t\t// \t'configuracion_pregunta_mb',\t\t//callback function\n\t\t// \t'preguntas_pt',\t\t\t//post type\n\t\t// \t'normal'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'solicitud_codigo_mb',\t\t//id\n\t\t// \t'Codigo de solicitud',\t\t\t\t//título\n\t\t// \t'solicitud_codigo_mb',\t\t//callback function\n\t\t// \t'post',\t\t\t//post type\n\t\t// \t'side'\t\t\t\t\t\t//posición\n\t\t// );\n\t\t// add_meta_box(\n\t\t// \t'folio_global_mb',\t\t//id\n\t\t// \t'Folio de solicitud',\t\t\t\t//título\n\t\t// \t'folio_global_mb',\t\t//callback function\n\t\t// \t'post',\t\t\t//post type\n\t\t// \t'side'\t\t\t\t\t\t//posición\n\t\t// );\n\t \t\n\t\n}", "title": "" }, { "docid": "09067b693c0891b195346aaa64e6403d", "score": "0.5341771", "text": "public function afterGetInstanceAction();", "title": "" }, { "docid": "5c6392fc9d2f86686c24f43ae140552d", "score": "0.5331157", "text": "public function run()\n {\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/home-living_zdk45o.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502288/opening_ugpvwq.jpg',\n 'name' => 'Home Living',\n 'tagline' => 'Membuat hidup Anda lebih nyaman dengan konsep interior home living seperti Anda merasakan kenyamanan di dalam rumah',\n 'description' => 'Ada beberapa syarat agar suatu hunian bisa masuk ke dalam kategori hunian yang ideal, namun syarat-syarat tersebut cenderung relatif dan bergantung pada kebutuhan sang pemilik hunian itu sendiri. Namun syarat-syarat umum dari hunian yang ideal meliputi: kamar tidur yang nyaman, dapur yang efisien, ketersediaan ruang bermain anak, maksimalnya fungsi living room, terdapatnya sudut-sudut untuk membaca atau menyimpan koleksi buku/DVD dan koleksi lainnya, rak sepatu yang tertata rapi, dan lain-lain. Intinya maksimalisasi fungsi ruang sangatlah penting untuk diwujudkan, namun seringkali ketika seseorang melakukan maksimalisasi fungsi ruang yang terjadi adalah nilai estetika dan segi kenyamanannya jadi terbaikan.\nSelain itu, penataan perabotan di rumah menjadi hal yang susah-susah gampang bagi sebagian orang, hal itu karena begitu padatnya aktifitas di rumah yang membuat segala hal mudah berantakan dan tidak tertata sebagaimana mestinya.\nOleh karena itu, Niaga Art hadir untuk menawarkan solusi agar hunian anda memenuhi syarat hunian yang ideal dengan menyediakan perabotan yang bergaya minimalis yang mampu mengurangi keresahan anda akan perabotan-perabotan yang kurang efisien kegunaannya. Dengan berkonsultasi dengan kami tentang hunian anda, maka anda selangkah lagi menuju hunian yang ideal, karena kami sudah berpengalaman dalam menangani penataan serta penyediaan perabotan untuk kebutuhan rumah tangga.\nSegera hubungi tim kami dan Anda selangkah lebih dekat ke kehidupan rumah yang ideal!',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'home-living'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726577/apartment_zml6sa_adsgkl.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502110/apartment_e4iiib.jpg',\n 'name' => 'Apartment',\n 'tagline' => 'Praktis dan serbaguna. Apartemen dengan kriteria hunian mampu memberikan Anda kemudahan ketika beraktivitas dirumah',\n 'description' => 'Bagi anda yang memilih untuk tinggal di apartemen, anda adalah orang yang cenderung praktis dan serbaguna, ingin semua serba cepat namun hasilnya efektif. Oleh karena itu anda memilih apartemen sebagai opsi tempat tinggal. Sama halnya dengan hunian, apartemen yang ideal juga sangat relatif, sangat tergantung dengan kebutuhan para penghuninya. Namun biasa para penghuni apartemen akan cenderung memilih perabotan yang sifatnya minimalis dan modern agar terlihat elegan sekaligus praktis.\nDalam hal ini, keinginan anda untuk mengisi apartemen dengan perabotan yang minimalis dan modern sangat bersesuaian dengan jasa serta produk yang ditawarkan oleh Niaga Art. Untuk apartemen yang nyaman, silakan hubungi kami, tim kami siap membantu menata ulang apartemen anda menjadi lebih nyaman dan efisien. Furniture kami akan mendukung Anda jika Anda benar-benar menginginkan desain furnitur sederhana untuk mendukung busy life-style dan aktivitas Anda.',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'apartment'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/cafe-foodcourt_fggtdn.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502225/cafe_wxx7so.jpg',\n 'name' => 'Cafe & FoodCourt',\n 'tagline' => 'Kepuasan ada pada ketika seseorang merasakan kenyamanan. Mulailah pagi dengan hal baru dan menyenangkan untuk merasa lebih baik',\n 'description' => 'Bisnis kuliner adalah bidang usaha yang sedang banyak diminati beberapa tahun terakhir ini. Namun dewasa ini ternyata para pebisnis kuliner tersebut tidak hanya menjual makanan saja, namun juga menjual ‘tempat’. Semakin populernya media sosial seperti Instagram, membuat café atau restoran dijadikan tempat untuk berfoto, sehingga tampilan atau desain suatu café atau restoran akan jadi sebuah pertimbangan bagi konsumen yang hendak berkunjung.\nSelain itu, saat ini sebuah café atau restoran sering juga dijadikan tempat bagi seseorang untuk bekerja maupun mengerjakan tugas, sehingga kenyamanan suatu café atau restoran harus sangat diperhatikan oleh pemiliknya, untuk membidik pelanggan lebih banyak lagi.\nCafé atau restoran dengan desain yang menarik akan dianggap memiliki nilai plus bagi pelanggannya. Terbukti dengan semakin menjamurnya café dan restoran yang katanya rasa makanannya biasa saja, namun karena memiliki atmosfer yang cozy atau nyaman, maka pengunjung senang untuk mengunjungi café tersebut dan hal ini tentunya mampu meningkatkan keuntungan bagi pemiliknya.\nOleh karena itu, desain café maupun restoran di masa sekarang adalah hal yang utama dan penting untuk diperhatikan, agar café atau restoran tersebut bisa memiliki nilai jual yang lebih bagi konsumen.',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'cafe-foodcourt'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/shop-office_upejxz.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/office_x1stuu.jpg',\n 'name' => 'Shop and Office',\n 'tagline' => 'Be The Change You Want To See',\n 'description' => 'Sebuah toko harus memiliki konsep dan penataan yang jelas untuk produk-produk yang hendak ditawarkan atau yang hendak dijual. Penataan produk tentu menjadi kunci utama, hal ini harus didukung oleh perabot yang pas atau tepat guna. Etalase atau rak yang sesuai bisa menjadi pilihan agar produk-produk yang dijual bisa terekspos secara maksimal, namun terekspos saja tidak cukup. Produk yang ditata dalam rak atau etalase yang pas atau tepat guna akan terlihat menarik dan tentunya bisa meningkatkan omset penjualan. Dalam melakukannya penataan dan pemilihan perabot pada toko tentu bukan hal yang mudah, namun agar penataan lebih efektif serta efisien maka kehadiran ahli untuk memberikan saran dan menyediakan furniture yang tepat bisa membantu anda menata toko anda dengan efektif tanpa mengabaikan sisi estetikanya.\nSama halnya dengan toko, begitupun areal kantor, di mana penataan areal ini juga menjadi hal yang tidak mudah. Terlebih ada berbagai jenis aktifitas yang biasanya dibagi berdasarkan ruangannya. Artinya, penataan ruangan di kantor juga harus maksimal dan sebisa mungkin nyaman agar pekerjaan bisa dilakukan dengan baik oleh karyawan. Ketika berbicara karyawan, maka kita harus memperhatikan kenyamanan mereka dalam bekerja, selain itu kita juga harus memperhatikan estetika kantor agar tidak dianggap membosankan dan kaku, dengan memperhatikan hal tersebut maka produktifitas karyawan pun bisa meningkat. Oleh karena itu, penataan kantor tidak boleh dilakukan asal-asalan, dengan berkonsultasi dengan ahlinya, maka ruang kerja, ruang rapat, meja resepsionis, dan ruangan-ruangan penting lainnya di kantor bisa tertata dengan maksimal.\nTim kami akan dengan senang hati membantu Anda agar toko dan area kantor Anda lebih teratur tanpa meninggalkan sisi estetisnya.',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'shop-office'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726579/flooring_xllqgs.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/jb-vinyl_main_image_dwyy48.jpg',\n 'name' => 'Flooring',\n 'tagline' => 'Whatever your style, we’ll help you achieve it',\n 'description' => 'Berbagai macam lantai dapat di gunakan. Tren akhir-akhir ini terdapat produk lantai dengan warna-warna natural seperti parquet. Penederhanaan produk dilakukan oleh beberapa peneliti dan tim hingga akhirnya mereka berhasil menciptakan lantai baru yang memiliki banyak kelebihan jika dibanding dengan lantai lain. Manfaat yang di rasakan dari produk lantai atau di sebut juga flooring vinyl adalah menghindari suhu dari udara dingin/panas yang sering masuk melalui permukaan lantai, tekstur flooring vinyl cukup elastis dan setiap pembeli mendapatkan garansi pabrik selama 10 tahun.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'flooring'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726578/blind_pxby4c.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501817518/Content/IMAGE%20BLIND-MERK%20ONNA/Interior_Blind-vitrom_blinds1.png',\n 'name' => 'Blind',\n 'tagline' => 'Elegance your way',\n 'description' => 'Onna merupakan merek dari produk yang awalnya menawarkan kanopi dan kasa nyamuk. Namum saat ini onna telah mengembangkan banyak produknya di dalam bidang Window Fashion baik di Indonesia maupun Singapura. Terdapat banyak kategori produk yang di tawarkan, yaitu: interior blinds, exterior blinds, Insects blinds dan partitions.\nSebagian besar produk onna sudah memiliki sertifikasi “ramah lingkungan”; meminimalisasi terjadinya polusi/limbah dan bebas dari bahan-bahan berbahaya. Selain itu, sebagian dari bahan kain yang tersedia merupakan bahan kain tahan api. Produk tirai yang kami miliki dapat mengurangi panas dari sinar UV yang berbahaya, dapat mengurangi penggunaan listrik di dalam rumah dan kenyamanan tetap terjaga”.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'blind'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/wall-paper_ebavzo.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029121/main_image_wallpaper_vlrxmk.jpg',\n 'name' => 'Wall Paper',\n 'tagline' => 'Simplicity beats complexity',\n 'description' => 'Wallpaper yang ditawarkan adalah sebuah lapisan untuk memberikan suasana tempat tinggal atau kantor yang nyaman. Produk yang ditawarkan di bidang wallpaper memiliki berbagaimacam motif pada produk seperti; warna polos, warna serat, motif bunga dsb.Tanpa perlu menuangkan cat ditembok, sebagian besar produk wallpaper bisa menjadi salah satu alternatif untuk mengatur ulang ruangan Anda sehingga tampil ruangan yang nyaman.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'wall-paper'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/wall-clading_zuc3d4.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029296/3D_PANEL_-_LINEAR_af5ind.jpg',\n 'name' => 'Wall Clading',\n 'tagline' => 'Make a statement in style',\n 'description' => 'Desain 3 dimensi, bahan pulp tebu, tekstur alami, bersih dan elegan, ramah lingkungan, membantu penyerapan suara',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'wall-clading'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726578/chair_f0sws3.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/main_image_chair_wll8qi.jpg',\n 'name' => 'Chair',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'Merk dari produk Chitose dan Donati merupakan produk kursi-kursi berteknologi tinggi. Selaras dengan permintaan produk mebel berkualitas yang terus meningkat produk tersebut terus mengembangkan rangkaian produk mereka, seperti: perangkat mebel hotel dan restoran, kantor, sekolah dan rumah tinggal.\nMerk kursi yang ditawarkan yang pertama adalah merk chitose yang telah berpengalaman lama dalam memproduksi kursi dan furniture, kelebihan lainnya adalah produk chitose menjamin kestabilan dalam mutu, keamanan dan kesehatan, serta keindahan yang diperuntukan kepada seluruh pelanggannya.\nsedangkan produk Donati yang ditawarkan adalah produk furniture, khususnya kursi dengan harga yang relatif lebih murah di banding merk lain dan memiliki kualitas.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'chair'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340355/Rak_Piring_Modelline_vxph3e.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/9-B30ED_pbj7nb.jpg',\n 'name' => 'Rak-Modelline',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'Modelline sejak dahulu sudah dikenal sebagai pabrik rak yang secara profesional mendesain dan memproduksi berbagai keperluan rak rumah tangga dan rak serbaguna seperti rak piring, rak laci, rak lemari, rak sendok, rak dapur, rak kamar mandi, rak display, rak pajang, rak dinding, rak majalah, rak sepatu dan rak-rak lainnya. Dirancang dan dikembangkan secara detail dengan pertimbangan efisiensi, keindahan estetika dan fungsional agar produk kami semakin mudah untuk ditempatkan dan digunakan. Produk Modelline telah diproduksi dengan mesin berteknologi tinggi dan mesin modern dari Jepang dan Jerman yang dioperasikan oleh tenaga kerja profesional dan terlatih. Kami telah memperkenalkan banyak produk-produk dan desain baru kami ke pasar dan didistribusikan ke seluruh Indonesia',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'rak-modelline'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340356/Modena_Kitchen_ufkw0n.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029121/Modena_main_image_t4pyes.jpg',\n 'name' => 'Cooking-Modena',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'MODENA telah menjejakkan kaki sebagai penyedia peralatan elektronik rumah tangga berkualitas tinggi dengan kehandalan produk yang menyasar pada segmen pasar kelas atas serta menengah atas. Terus berupaya untuk menjadi yang terbaik di kelasnya, MODENA secara berkesinambungan mengembangkan beragam produk yang diklasifikasian ke dalam 3 lini kategori, yaitu cooking, cleaning & cooling. Keseluruhan produk MODENA senantiasa menekankan pada aspek estetika desain, kaya akan fitur yang memberikan kemudahan dan kenyamanan bagi pengguna (user friendly), penerapan teknologi terkini serta ramah lingkungan. Produk MODENA sebagai solusi cerdas dalam menciptakan smart living – sebuah kualitas hidup yang lebih baik bagi masyarakat.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'cooking-modena'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340355/Cooking_Domo_llj9b5.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/Domo_main_image_ydqlwm.jpg',\n 'name' => 'Cooking-Domo',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'DOMO mulai dipasarkan di Indonesia dalam rangka memenuhi keinginan konsumen untuk produk-produk dengan ratio harga-kualitas yang optimal. Dalam waktu yang singkat, DOMO telah berhasil membuktikan diri sebagai satu di antara banyak merk yang menekankan pada kualitas, design dan harga yang terjangkau.\nProduk DOMO tersedia dalam berbagai macam kategori, di mana menyorotkan pada functionality dan user-friendly dari produk-produk yang tersedia. Produk DOMO juga disesuaikan dengan keperluan dari setiap negara di mana produk tersebut dijual, mengingat kondisi cuaca (suhu & kelembaban) dari negara tersebut, kebutuhan listrik, dll.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'id',\n 'slug' => 'cooking-domo'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/home-living_zdk45o.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502288/opening_ugpvwq.jpg',\n 'name' => 'Home Living',\n 'tagline' => 'Make your life comfortable with the concept of interior home living to make you as comfortable as being at home',\n 'description' => 'There are some conditions for an ideal home living, but those conditions is such a relative and really depend on the needs of the owner. But the general conditions are: the cozy bedroom, the efficient kitchen, the availability of play room for kids, the maximal function of living room, the existence of book corners or a place to store some collection things, the tidiness of the shoe self, etc. The most important thing is how the room used maximally, but usually when the room used maximally the aesthetic aspect is getting abandoned. Organizing furniture at home is always a tricky one, because too much activities happen at home, and it makes the things easily getting to disorder situation. In this case, we won’t those things to actually happen.\nSo, as a professional, we exist to give you some solutions about creating an ideal home living through our products and services, we try to apply minimalist design that help you to diminish any common problems that generally happened at home.\nGo call our team and you one step closer to an ideal home-living!',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'home-living'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726577/apartment_zml6sa_adsgkl.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502110/apartment_e4iiib.jpg',\n 'name' => 'Apartment',\n 'tagline' => 'Practical and versatile. Apartment with the criteria of a dwelling can fasilitates you for doing the activity at home',\n 'description' => 'For everyone who lives in an apartment, we’re sure that you are the type of person who want everything done in efficient and effective ways, if it’s possible you always want something done in an instant, far from the word of ‘complicated’. You want every room is easy to organize and not easily getting disorder. You don’t have so many times to focus on those things. Basically, what you need just the right furniture which ideally easy to be cleaned with the minimalist design, believe us, that will easily solve your daily problem.\nSame as home living, apartment also has a relative conditions to be called an ideal one. But usually, for somebody who live in an apartment they will choose minimalist design to be applied in theirs to supported the fast-moving life activity. You can contact us for further details about apartment furniture and how to organize it. We are ready to fill your apartment with the minimalist yet qualified furniture. Our furniture will supported you if you really want a simple design of furniture for supporting your busy life-style and activity.',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'apartment'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/cafe-foodcourt_fggtdn.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502502225/cafe_wxx7so.jpg',\n 'name' => 'Cafe & FoodCourt',\n 'tagline' => 'Satisfaction is in when one feels comfort. Start the morning with new and funny things for felling better',\n 'description' => 'Food/culinary sector is a business that never dies, nowadays this sector is even easily becoming a promising trend. In this era, culinary sector not only sell their foods, but they sell ‘place’, the vibes of the place is really basic to provide. More interesting the design of the place, more the costumer wants to come. As a trend and life-style, café/restaurant now becomes a place which used as a place to work or doing some assignments, it makes the coziness-side is a must to exist if the business wants going well and make a big profit.\nYoung people is a promising costumer if we talk about culinary business. They always choose a café based on the aesthetic side or something ‘istagramable’. So… It’s a must for everyone who works in this food/culinary business to provide a place with a great and unique concept.\nYou can contact us for further details about café/restaurant design and furniture, we will really happy to give you some solutions!',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'cafe-foodcourt'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/shop-office_upejxz.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726580/office_x1stuu.jpg',\n 'name' => 'Shop and Office',\n 'tagline' => 'Be The Change You Want To See',\n 'description' => 'A shop must have a clear concept for organizing the offering products. Organizing the product is a key, this thing has to be supported by the appropriate furniture. Display window or shelf has exposing the products maximally. But, exposing the products maximally is not enough, it’s also must supported by a good organizing technique. Organizing and choose the furniture for the shop is also not an easy thing to do, sometimes experts or professionals needs to help in order to make your shop organized properly.\nSame as the shop, to organize office area is a tricky one to be done. It’s getting hard because an office has so many activities which generally divided based on the room functions. It means, organizing an office also has to be done in a maximal technique, both from the room function and the aesthetic-side. If we talk about office, we also talk about the employee who works there, so the comfort office is an important thing especially to increase employees’ productivity. Aesthetic-side of the office is also necessary for making the office’s atmosphere more living, also to avoid the boringness and monotonous vibes…\nIf you have a problem in organizing a shop or an office, you can consult with us! Our team will be happy to help you to make your shop and office area more organizing without abandoning its aesthetic-side.',\n 'type' => 'interior',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'shop-office'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726579/flooring_xllqgs.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/jb-vinyl_main_image_dwyy48.jpg',\n 'name' => 'Flooring',\n 'tagline' => 'Whatever your style, we’ll help you achieve it',\n 'description' => 'A variety of floors can be used. Recent trends have floor products with natural colors like parquet. The simplification of the product is done by some researchers and team until finally they succeed to create new floor which has many advantages when compared with other floor. The benefits of the flooring or vinyl flooring are to avoid the temperature of the cold / hot air that often enters the floor, the texture of vinyl flooring is quite elastic and every buyer gets a factory warranty for 10 years.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'flooring'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726578/blind_pxby4c.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501817518/Content/IMAGE%20BLIND-MERK%20ONNA/Interior_Blind-vitrom_blinds1.png',\n 'name' => 'Blind',\n 'tagline' => 'Elegance your way',\n 'description' => 'Onna is a brand of product that initially offers canopies and mosquito netting. Currently, onna has developed many products in the field of Window Fashion both in Indonesia and Singapore. There are many categories of products that offered, namely: interior blinds, exterior blinds, Insects blinds and partitions.\nMost of our products are \"green\" certified; this means that they are produced with limited pollution/waste and free from harmful toxics. On top of that, most of our materials are fire retardant. Window blinds block out harmful UV rays and heat, helping you save energy used to cool down your house.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'blind'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/wall-paper_ebavzo.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029121/main_image_wallpaper_vlrxmk.jpg',\n 'name' => 'Wall Paper',\n 'tagline' => 'Simplicity beats complexity',\n 'description' => 'The wallpaper which has been offering to provide a comfortable living or office environment. Products offered in the field of wallpaper have some variety of motifs on products such as; Plain color, color fiber, floral motifs etc. Without the need to pour the paint on the wall, most of the wallpaper products can be one of the alternatives to rearrange your room so that it appears a comfortable room.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'wall-paper'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726584/wall-clading_zuc3d4.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029296/3D_PANEL_-_LINEAR_af5ind.jpg',\n 'name' => 'Wall Clading',\n 'tagline' => 'Make a statement in style',\n 'description' => '3-dimentional design, Sugarcane pulp material, natural texture, clean and elegant, eco friendly, helps in noise absorption',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'wall-clading'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1501726578/chair_f0sws3.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/main_image_chair_wll8qi.jpg',\n 'name' => 'Chair',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'Brands from Chitose and Donati are the products of high-tech seats. Aligned with the growing demand for quality furniture products, the product continues to expand their product range, such as: hotel and restaurant furniture, office, school and residence.\nThe first offered chitose brand is a chitose brand that has long experience in producing chairs and furniture, another advantage is that chitose products guarantee stability in quality, safety and health, and beauty that is intended for all customers.\nWhile Donati products offered are furniture products, especially seats with a relatively cheaper price on the appeal of other brands and have quality.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'chair'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340355/Rak_Piring_Modelline_vxph3e.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/9-B30ED_pbj7nb.jpg',\n 'name' => 'Rak-Modelline',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'Our ready made household colletions are versatile racks for kitchen, bathroom, displays, magazines, shoes and many more. Designed and developed to be easy to install and low maintanance with consideration to accomodate efficiency, aesthetic and functional of the area this product to be placed and used. Modelline\"s products has been produced with high technology and modern machine from Japan and Germany and operated by fully trained and skillful employees. We have since introduced many new and versatile wire ware products into the market and distributed to anywhere around Indonesia.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'rak-modelline'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340356/Modena_Kitchen_ufkw0n.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029121/Modena_main_image_t4pyes.jpg',\n 'name' => 'Cooking-Modena',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'MODENA has become known as a provider of high quality home appliances targeted at the upper and upper middle class in support of a modern lifestyle. In line with its efforts to become the leader in its field, MODENA continuously developed various products within its three product lines, namely Cooking, Cleaning and Cooling. As a whole, MODENA products emphasize aesthetic design, user-friendly features, cutting edge technology and an eco-friendly approach. In short, MODENA products offer intelligent solutions for smart living – delivering a better quality of life for customers.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'cooking-modena'\n ]);\n $service->save();\n\n $service = new \\App\\Service([\n 'banner_image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1502340355/Cooking_Domo_llj9b5.jpg',\n 'image' => 'http://res.cloudinary.com/fauzi41studio/image/upload/q_40/v1503029120/Domo_main_image_ydqlwm.jpg',\n 'name' => 'Cooking-Domo',\n 'tagline' => 'Transforming spaces. Transforming Lives.',\n 'description' => 'DOMO began to be marketed in Indonesia in order to meet consumer demand for products with an optimal price-quality ratio. In a short time, DOMO has proven itself as one of many brands that emphasizes quality, design and affordable price.\nDOMO products are available in a wide variety of categories, which highlight the functionality and user-friendliness of the products available. DOMO products are also tailored to the needs of each country where the product is sold, given the weather conditions (temperature & humidity) of the country, electricity requirements, etc.',\n 'type' => 'other',\n 'publish' => 'yes',\n 'lang' => 'en',\n 'slug' => 'cooking-domo'\n ]);\n $service->save();\n }", "title": "" }, { "docid": "47ddd07dcf4ffbfade518428694a6782", "score": "0.53293306", "text": "function plugin_define_options_meta_boxes() {\t\r\n\t\t$this->register_options_metabox('admin-section-general','Clickbank IPN Settings',$this->clickbank_settings_section_callback());\r\n\t\t$this->register_options_metabox('admin-section-actions','Transaction Hooks',$this->clickbank_settings_actions_callback());\r\n\t\r\n\t\t$this->register_options_field( array ('title'=>'Secret Key',\t'id' => 'key', 'type'=>'text', 'section'=>'admin-section-general', 'description' => '') );\r\n\t\t$this->register_options_field( array ('title'=>'Debug Email Address',\t'id' => 'email', 'type'=>'text', 'section'=>'admin-section-general', 'description' => '') );\r\n\t\t$this->register_options_field( array ('title'=>'Enable Debug Mode',\t'id' => 'debug', 'type'=>'checkbox', 'section'=>'admin-section-general', 'description' => '') );\t\r\n\t}", "title": "" }, { "docid": "06b3db8ab41ad020f4cc3d70e6541deb", "score": "0.53138185", "text": "public function payment_scripts() {\n\n\t}", "title": "" }, { "docid": "06b3db8ab41ad020f4cc3d70e6541deb", "score": "0.53138185", "text": "public function payment_scripts() {\n\n\t}", "title": "" }, { "docid": "ed564ba54300dcb1de66dff89d21187d", "score": "0.5312791", "text": "function adleex_enrollment_add_boxes() {\n\n //add supported meta_box\n\n\n}", "title": "" }, { "docid": "f7c4f980510758d6141fd59c19128cd2", "score": "0.53058594", "text": "public function Create()\n\t\t{\n\t\t\t//Never delete this line!\n\t\t\tparent::Create();\n\n\t\t\t//$this->RequireParent(\"{3CFF0FD9-E306-41DB-9B5A-9D06D38576C3}\");\n $this->RegisterPropertyString('Host', '127.0.0.1');\n $this->RegisterPropertyInteger('Port', 4304);\n //$this->RegisterPropertyString('Table', json_encode($Style['Table']));\n //$this->RegisterPropertyString('Columns', json_encode($Style['Columns']));\n //$this->RegisterPropertyString('Rows', json_encode($Style['Rows']));\n $this->RegisterTimer('KeepAlive', 0, 'OWSPLIT_KeepAlive($_IPS[\"TARGET\"]);');\n\n $this->ReplyOWSPLITData = [];\n $this->Buffer = '';\n $this->Host = '';\n $this->ParentID = 0;\n $this->ScannerID = 0;\n\t\t}", "title": "" }, { "docid": "0cc2a6c7d23d568ee57615138974e8dd", "score": "0.5297864", "text": "static function register_metabox(){\n\t \tadd_meta_box('Gravure', 'Gravure Produit', array( &$this, 'product_gravure_img'), 'product', 'side', 'high');\n\t\t\t}", "title": "" }, { "docid": "56d77bc823521ab8c1cea044bd38f76b", "score": "0.52936625", "text": "function fntburnr(){$this->__construct();}", "title": "" }, { "docid": "7adef9ba5c1bf1241a4c9f406a6d3205", "score": "0.5286733", "text": "public function createRespam() {\n;\n }", "title": "" }, { "docid": "88ac9c469b2e42aaa732205dad2f2091", "score": "0.5280469", "text": "public function run()\n {\n $fields = ['id', 'name', 'price'];\n $data = [\n [1, 'Boxing', 20],\n [2, 'Power Lifting', 20],\n ];\n\n $this->seedData('services', $fields, $data);\n }", "title": "" }, { "docid": "43672ceee2d50416f7c59b184fe57be1", "score": "0.5259278", "text": "public function __construct()\n\t{\n\t\t$this->setDescription('This is an example data contract. Here you can describe when your event occurs')\n\t\t\t //Variables is the main idea. This vars will be available in Triton, so user will be able to use them\n\t\t\t //You should add var name (unique in contract context), test value (used for testing templates) and short description\n\t\t\t ->defineVar('username', 'John Doe', 'User nick name')\n\t\t ->defineVar('balance', 100.00, 'User balance (float)')\n\t\t ->defineVar('homeLink', 'http://mycoolsite.com', 'Link to home page')\n\t\t ->defineVar('blogLink', 'http://mycoolsite.com/blog', 'Link to blog')\n\t\t ->defineVar('accountLink', 'http://mycoolsite.com/account/7', 'Link to user account')\n\t\t ->defineVar('lastActivityDate', '2015-12-25', 'Last activity date')\n\t\t ->defineVar('userAge', 18, 'Age (integer)')\n\t\t ->defineVar('isPremium', true, 'Is user premium ? (bool)')\n\t\t\t ->defineVar('someStruct', ['opt1', 'opt2' , 'opt3' => ['subOpt1', 'subOpt2']], 'Arrays are supported including multidimensional')\n\t\t ->defineVar('whatAboutJson', '{\"country\":\"Russia\",\"city\":\"Rostov-on-Don\",\"company\":\"Везет всем\"}', 'Json data also supported');\n\t\t//That's it !\n\t}", "title": "" }, { "docid": "6bc913abb51d80d744caa61390608549", "score": "0.5252398", "text": "function DreamCommerce_ClientArea($params) {\r\n $module = basename(dirname(__FILE__)); //Eg. module name is DreamCommerce\r\n try {\r\n $clientArea = new $module($params['serviceid']);\r\n $clientArea->init($params);\r\n return $clientArea->run('index', $params);\r\n } catch (Exception $ex) {\r\n return array(\r\n 'templatefile' => 'templates/index',\r\n 'breadcrumb' => ' > <a href=\"#\">Management</a>',\r\n 'vars' => array(\"errors\" => array( $ex->getMessage()))\r\n );\r\n }\r\n}", "title": "" }, { "docid": "ae66db20dbc942197adaea241e15cbaa", "score": "0.524902", "text": "public function crearTarjeta()\n {\n }", "title": "" }, { "docid": "cce20c933529a56cc533e69cf3c3f70c", "score": "0.52397597", "text": "public function run()\n {\n Service::create([\n 'name' => '1 thang',\n ]);\n Service::create([\n 'name' => '1 tuan',\n ]);\n }", "title": "" }, { "docid": "790d641bb99e2a4216e90b959353ece8", "score": "0.5239447", "text": "public function run()\n {\n \\Ventamatic\\Core\\External\\Client::create([\n 'id' => 1,\n 'name' => 'Venta al público',\n ]);\n }", "title": "" }, { "docid": "8f21938f5d8f0ddf36e2efa019474ad1", "score": "0.5239327", "text": "public function run()\n {\n $service = new Service();\n $service->name = 'Google Analytics';\n $service->price = '100';\n $service->old_price = '200';\n $service->image = '1486893774.png';\n $service->short_description = 'Google Analytics short';\n $service->description = 'Google Analytics description';\n $service->active = '1';\n\n $service->save();\n\n $service = new Service();\n $service->name = 'Google Search Console';\n $service->price = '110';\n $service->old_price = '210';\n $service->image = '1486893810.jpg';\n $service->short_description = 'Google Search Console short';\n $service->description = 'Google Search Console description';\n $service->active = '1';\n\n $service->save();\n\n $service = new Service();\n $service->name = 'Gmetrix';\n $service->price = '100';\n $service->old_price = '200';\n $service->image = '1486893838.jpg';\n $service->short_description = 'Gmetrix short';\n $service->description = 'Gmetrix description';\n $service->active = '1';\n\n $service->save();\n\n $service = new Service();\n $service->name = 'Google Adwords';\n $service->price = '500';\n $service->old_price = '1000';\n $service->image = '1486893866.png';\n $service->short_description = 'Google Adwords short';\n $service->description = 'Google Adwords description';\n $service->active = '1';\n\n $service->save();\n }", "title": "" }, { "docid": "7ee42353c835948f6c72bc71bbd47aaf", "score": "0.52392167", "text": "public function busca()\n {\n }", "title": "" }, { "docid": "85cf9e45222c1b16659976ba8125ea90", "score": "0.5234689", "text": "function add_cafe_meta_boxes() {\r\n\tadd_meta_box(\"cafe_contact_meta\", \"Members Info\", \"add_contact_details_cafe_meta_box\", \"team\", \"normal\", \"low\");\r\n}", "title": "" }, { "docid": "8a654fb02c6fa2f9317cec9db900eeff", "score": "0.5231868", "text": "public function run()\n {\n Service::create([\n 'title' => 'Установка и настройка 1С',\n 'content' => 'Мы готовы настроить программу так, чтобы она учитывала потребности Вашего бизнеса на 100%. \n Мы работаем с любыми конфигурациями и выполняем любые работы по настройке и доработке программных продуктов.',\n 'path' => 'services/prog.png',\n 'price' => 2790.99\n ])->save();\n Service::create([\n 'title' => 'Сопровождение 1С',\n 'content' => 'С регулярным обслуживанием программы отвечают необходимым требованиям и поддерживают все новые функции.',\n 'path' => 'services/its.png',\n 'price' => 3450.50\n ])->save();\n Service::create([\n 'title' => 'Обучение работе в 1С',\n 'content' => 'Индивидуальное, групповое или корпоративное обучение в одном из наших авторизованных учебных центров.',\n 'path' => 'services/kursy.png',\n 'price' => 2540.90\n ])->save();\n }", "title": "" }, { "docid": "66e8673cc6db2f241d157876e3c4da08", "score": "0.5230991", "text": "public function run()\n {\n \tfactory(App\\AccountType::class)->create([\n \t\t'account_type' => 'Trial',\n \t\t'description' => 'Limited access to services.',\n \t\t'cost' => 00.00\n \t]);\n\n \tfactory(App\\AccountType::class)->create([\n \t\t'account_type' => 'Enterprise',\n \t\t'description' => 'Full access to normal enterprise services.',\n \t\t'cost' => 100.00\n \t]);\n\n \tfactory(App\\AccountType::class)->create([\n \t\t'account_type' => 'Deluxe',\n \t\t'description' => 'Full access to normal enterprise services plus access to the local zoo amenities.',\n \t\t'cost' => 1000.00\n \t]);\n }", "title": "" }, { "docid": "522bee1b48d081b511b4ec729ca954ea", "score": "0.52253467", "text": "public function run()\n {\n $services = config('apartmentservices');\n for ($i=0; $i < count($services) ; $i++) {\n $nuovo_servizio = new Service();\n $nuovo_servizio->description = $services[$i];\n $nuovo_servizio->save();\n\n }\n }", "title": "" }, { "docid": "959eed85f196f28222be9c20a0e7d38e", "score": "0.5223271", "text": "function DreamCommerce_AdminServicesTabFields($params) {\r\n if (!$params['customfields']['accountID'])\r\n\t\treturn;\r\n try {\r\n $config = DreamCommerce_ConfigOptions(array(1));\r\n $dcConfig = new DreamCommerce_Config($config, $params);\r\n $api = new DreamCommerce_API($dcConfig->host, $dcConfig->username, $dcConfig->password, $dcConfig->debugMode);\r\n $product = new DreamCommerce_Product($params['pid']);\r\n $hosting = new DreamCommerce_Hosting($params['serviceid']);\r\n $clientArea = new DreamCommerce($params['serviceid']);\r\n $lang = $clientArea->getLang($params);\r\n $api->testConnection();\r\n $api->login();\r\n if(isset($_REQUEST['DreamCommerce_ajax'])){\r\n try{\r\n switch ($_POST['action']){\r\n\t\t\t\tcase 'addDomain':\r\n $api->addLicenseDomain(null,$params['customfields']['accountID'], $_REQUEST['domain']);\r\n\t\t\t\t\t$res = array(\r\n\t\t\t\t\t\t'result' => '1',\r\n\t\t\t\t\t\t'msg' => sprintf($lang['domainsManagement']['domainAdded'], $_REQUEST['domain'])\r\n\t\t\t\t\t);\r\n break;\r\n case 'deleteDomain':\r\n $api->removeLicenseDomain(null,$params['customfields']['accountID'], $_REQUEST['domain']);\r\n $res = array(\r\n\t\t\t\t\t\t'result' => '1',\r\n\t\t\t\t\t\t'msg' => sprintf($lang['domainsManagement']['domainDeleted'], $_REQUEST['domain'])\r\n\t\t\t\t\t);\r\n break;\r\n\t\t\t\tdefault: throw new Exception('Action not supported');\r\n\t\t\t }\r\n } catch (Exception $ex) {\r\n $res = array(\r\n\t\t\t\t'result'=> '0',\r\n\t\t\t\t'msg'\t=> $ex->getMessage()\r\n\t\t\t );\r\n }\r\n ob_clean();\r\n echo json_encode($res);\r\n die();\r\n }\r\n $info = $api->getLicense(null,$params['customfields']['accountID'] );\r\n $data = array();\r\n global $templates_compiledir;\r\n $servicePageUrl = \"clientsservices.php?userid={$_GET['userid']}&id={$_GET['id']}&productid={$params['packageid']}\";\r\n\r\n $adminTemplateDir = dirname(__FILE__).DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.'admin';\r\n $sm = new Smarty();\r\n $sm->compile_dir = $templates_compiledir;\r\n $sm->force_compile = 1;\r\n $sm->assign(\"servicePageUrl\", $servicePageUrl);\r\n $sm->assign(\"lang\", $lang);\r\n $sm->assign(\"info\", $info);\r\n $data['License Info'] = $sm->fetch($adminTemplateDir.DIRECTORY_SEPARATOR.'licenseInfo.tpl');\r\n\r\n $licenseDomains = $api->getLicenseDomains(null, $params['customfields']['accountID']);\r\n $sm->assign(\"licenseDomains\", $licenseDomains);\r\n $data['Domains Management'] = $sm->fetch($adminTemplateDir.DIRECTORY_SEPARATOR.'domainsManagement.tpl');\r\n\r\n return $data;\r\n } catch (DreamCommerce_Exception $ex) {\r\n echo '<div class=\"errorbox\"><strong>ERROR</strong><br/>' .$ex->getMessage().' Code: '.$ex->getCode(). '</div>';\r\n } catch (Exception $ex) {\r\n echo '<div class=\"errorbox\"><strong>ERROR</strong><br/>' .$ex->getMessage().' File: '.$ex->getFile(). ' Line: '.$ex->getLine().'</div>';\r\n }\r\n return array();\r\n}", "title": "" }, { "docid": "b6ed0cc28396f9f0cce33a26706302f1", "score": "0.5222399", "text": "function veterinary_pet_care_pro_posttype_bn_customer_meta_box() {\n\tadd_meta_box( 'veterinary-pet-care-pro-posttype-pro-customer-meta', __( 'Enter Designation', 'veterinary-pet-care-pro-posttype-pro' ), 'veterinary_pet_care_pro_posttype_bn_customer_meta_callback', 'testimonials', 'normal', 'high' );\n}", "title": "" }, { "docid": "8ca42d038c9edac5cf237330a73b38fa", "score": "0.5222396", "text": "function exc_theme_preprocess_node__service_full(&$vars) {\n global $language;\n\n $node = $vars['node'];\n $wrapper = entity_metadata_wrapper('node', $node);\n $wrapper->language($language->language);\n\n if (empty($node->field_slider_images)) {\n $node->field_slider_images[LANGUAGE_NONE][0] = $node->field_image[LANGUAGE_NONE][0];\n }\n if (!empty($node->field_slider_images[LANGUAGE_NONE])) {\n foreach ($node->field_slider_images[LANGUAGE_NONE] as $image) {\n $vars['images'][] = theme('image', array(\n 'path' => $image['uri'],\n 'alt' => t($image['alt']),\n 'title' => t($image['title']),\n ));\n }\n\n drupal_add_js(EXCUR_FRONT_THEME_PATH . '/js/fotorama.min.js');\n drupal_add_css(EXCUR_FRONT_THEME_PATH . '/css/fotorama.css');\n }\n\n $city = $wrapper->field_city->value();\n $city_wrapper = entity_metadata_wrapper('taxonomy_term', $city);\n $country = $city_wrapper->field_country->value();\n $continent = taxonomy_term_load($country->field_continent[LANGUAGE_NONE][0]['target_id']);\n drupal_add_js(array('continentCode' => $continent->field_continent_code[LANGUAGE_NONE][0]['value']), 'setting');\n\n $vars['venue'] = $wrapper->field_start_place->value();\n $vars['meeting_time'] = $wrapper->field_start_time->value();\n}", "title": "" }, { "docid": "b700ca6a8678fb9ae42b1aefc2948b11", "score": "0.5222057", "text": "function __construct($componentArgs)\r\n\t\t{\r\n\t\t$MiniComponents =jomres_getSingleton('mcHandler');\r\n\t\tif ($MiniComponents->template_touch)\r\n\t\t\t{\r\n\t\t\t$this->template_touchable=false; return;\r\n\t\t\t}\r\n\t\t$ePointFilepath = get_showtime('ePointFilepath');\r\n\t\t$eLiveSite=get_showtime('eLiveSite');\r\n\t\t$plugin=\"wire_transfer\";\r\n\r\n\t\t$defaultProperty=getDefaultProperty();\r\n\t\t\r\n\t\t$wire_transfer = new jrportal_wire_transfer();\r\n\t\t$wire_transfer->get_wire_transfer($defaultProperty);\r\n\t\t$active=$wire_transfer->wire_transferConfigOptions['active'];\r\n\r\n\t\tif ($wire_transfer->wire_transferConfigOptions['active'] == \"1\")\r\n\t\t\t$active=jr_gettext('_JOMRES_COM_MR_YES','_JOMRES_COM_MR_YES');\r\n\t\telse\r\n\t\t\t$active=jr_gettext('_JOMRES_COM_MR_NO','_JOMRES_COM_MR_NO');\r\n\t\t$status = 'status=no,toolbar=yes,scrollbars=yes,titlebar=no,menubar=yes,resizable=yes,width=750,height=500,directories=no,location=no';\r\n\t\t$link = JOMRES_SITEPAGE_URL_NOSEF.\"&task=editGateway&popup=1&plugin=$plugin&tmpl=\".get_showtime('tmplcomponent');\r\n\t\t$gatewayname=jr_gettext('_JOMRES_CUSTOMTEXT_GATEWAYNAME'.$plugin,ucwords($plugin),false,false);\r\n\t\t$pluginLink=\"<a href=\\\"javascript:void window.open('\".$link.\"', 'win2', '\".$status.\"');\\\" title=\\\"\".$plugin.\"\\\">\".$gatewayname.\"</a>\";\r\n\t\t$button=\"<img src=\\\"\".$eLiveSite.\"j00510\".$plugin.\".gif\".\"\\\" border=\\\"0\\\"/>\";\r\n\t $this->outputArray=array('button'=>$button,'link'=>$pluginLink,'active'=>$active);\r\n\t\t}", "title": "" }, { "docid": "0fd6112e80b8cec1a61a6d228139a4da", "score": "0.5213945", "text": "function GB_PlaceM($ObjD, $GB_amount)\n{\n\tglobal $GB_tempid;\n\tglobal $GBox_Settings ;\n\tAddLog2('GiftBox Place item(s) start.. ');\n\t// Get all settings correct\n\t$res = 0;\n\t$px_time = time();\n\tif(array_key_exists('type', $ObjD))\n\t{\n\t\t$state = \"static\";\n\t\tif($ObjD['type']==\"Decoration\"){$state = \"static\";}\n\t\tif($ObjD['type']==\"RotateableDecoration\"){$state = \"horizontal\";}\n\t\tif($ObjD['type']==\"animal\"){$state = \"bare\";}\n\t}else{ $state = \"static\"; }\n\n\t$type = \"bla\";\n\tif($ObjD['type'] == \"animal\"){$type = \"Animal\";}\n\n\t// Start building the AMF request\n\n\twhile ($GB_amount > 0)\n\t{\n\n\n\t\t$EmptyXY = EmptyXY();\n\t\t$amf = CreateAMFRequest('place', 'WorldService.performAction');\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['deleted'] = false;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['direction'] = 1;\n\t\tif(array_key_exists('growTime' , $ObjD))\n\t\t{ $amf->_bodys[0]->_value[1][0]['params'][1]['plantTime'] = $px_time.\"123\"; }\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['tempId'] = -1;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['className'] = $type ;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['position']['x'] = $EmptyXY['x'] ;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['position']['y'] = $EmptyXY['y'] ;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['position']['z'] = 0;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['itemName'] = $ObjD['name'] ;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['state'] = $state ;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][1]['id'] = $GB_tempid;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][2][0]['isStorageWithdrawal'] = -1;\n\t\t$amf->_bodys[0]->_value[1][0]['params'][2][0]['isGift'] = true;\n\n\t\t$GB_tempid++;\n\t\t$GB_amount--;\n\t\t$res = RequestAMF2($amf);\n\t\tAddLog2(\"Giftbox placed: \".$ObjD['name'].\" Result: $res [\" . $GB_amount . \" to go]. \" );\n\t\tif($GB_Setting['DoDebug']) AddLog2(\"Giftbox placed On: \" . $EmptyXY['x'] . \"-\". $EmptyXY['y'] . ' tempid:' . $GB_tempid);\n\t} // end while\n\n\t$serializer = new AMFSerializer();\n\t$result = $serializer->serialize($amf); // serialize the data\n\t$answer = Request('', $result);\n\n\t$amf2 = new AMFObject($answer);\n\t$deserializer2 = new AMFDeserializer($amf2->rawData); // deserialize the data\n\t$deserializer2->deserialize($amf2); // run the deserializer\n\n\tif (!isset($amf2->_bodys[0]->_value['data'][0])) { AddLog2(\"UP GB Error: BAD AMF - To many items on the farm?\"); $res =\"To many on the farm?\"; }\n\tif (isset($amf2->_bodys[0]->_value['data'][0]['errorType']) && ($amf2->_bodys[0]->_value['data'][0]['errorType'] == 0)) { $res = 'OK'; }\n\n\tif($res == 'OK' ) {\n\t\tif($GB_Setting['DoDebug']) AddLog2( \"GiftBox place item(s) done\" );\n\t} else{\n\t\tAddLog2( \"GiftBox: Error Placing Item(s)\" );\n\t}\n\treturn $res;\n}", "title": "" }, { "docid": "3a0489bd2555bfca0c9343dcf343bc50", "score": "0.52138895", "text": "public function run()\n {\n {\n\t\tCatalog::insert([\n\t\t'name'=>'Компьютеры',\n\t\t'body'=>'Описание',\n\t\t'meta'=>'string'\n\t\t]);\n \n }\n }", "title": "" }, { "docid": "bed46ef52371eed3bd809b3e6cb51c26", "score": "0.52138805", "text": "private function create()\r\n {\r\n \r\n }", "title": "" }, { "docid": "74d5912720a72c763e788cd977059744", "score": "0.52097905", "text": "public function run()\n {\n $servicefiles = servicefiles::create(['name'=>'Tax','service_id'=>'1','description'=>'Tax desc' , 'is_active'=>true]);\n }", "title": "" }, { "docid": "c66ec176e254a92774ead93489bdc3b9", "score": "0.5209286", "text": "function exec_ogp_module()\n{\t\n\tglobal $db, $view;\n\n\t$settings = $db->getSettings();\n\t\t\n\tif (isset($_POST['save']) AND !empty($_POST['description']))\n\t{\n\t\t$new_description = str_replace(\"\\\\r\\\\n\", \"<br>\", $_POST['description']);\n\t\t$service = $_POST['service_id'];\n\t\t\n\t\t$change_description = \"UPDATE OGP_DB_PREFIXbilling_services\n\t\t\t\t\t\t SET description ='\".$db->realEscapeSingle($new_description).\"'\n\t\t\t\t\t\t WHERE service_id=\".$db->realEscapeSingle($service);\n\t\t$save = $db->query($change_description);\n\t}\n\t?>\n\t<table class=\"center\">\n\t<tr>\n\t<td>\n\t<a href=\"?m=simple-billing-MCP&p=cart\"> <?php print_lang('your_cart');?></a>\n\t</td>\n\t</tr>\n\t<tr>\n\t<td>\n\t<?php \n\techo date('d-m-Y');\n\t?>\n\t</td>\n\t</tr>\n\t<tr>\n\t<td>\n\t<?php \n\techo date('H:i');\n\t?>\n\t</td>\n\t</tr>\n\t</table>\n\t<?php \n\t// Shop Form\n\tif(intval($_REQUEST['service_id']) !==0) $where_service_id = \" WHERE service_id=\".intval($_REQUEST['service_id']); else $where_service_id = \"\";\n\t$qry_services = \"SELECT * FROM OGP_DB_PREFIXbilling_services\".$where_service_id;\n\t$services = $db->resultQuery($qry_services);\n\t\n\tif (isset($_REQUEST['service_id']) && $services === false) {\n\t\t$view->refresh('home.php?m=simple-billing-MCP&p=shop');\n\t\treturn;\n\t}\n\t\n\tforeach ($services as $key => $row) {\n\t\t$service_id[$key] = $row['service_id'];\n\t\t$home_cfg_id[$key] = $row['home_cfg_id'];\n\t\t$mod_cfg_id[$key] = $row['mod_cfg_id'];\n\t\t$service_name[$key] = $row['service_name'];\n\t\t$remote_server_id[$key] = $row['remote_server_id'];\n\t\t$slot_max_qty[$key] = $row['slot_max_qty'];\n\t\t$slot_min_qty[$key] = $row['slot_min_qty'];\n\t\t$price_hourly[$key] = $row['price_hourly'];\n\t\t$price_weekly[$key] = $row['price_weekly'];\n\t\t$price_monthly[$key] = $row['price_monthly'];\n\t\t$price_quarterly[$key] = $row['price_quarterly'];\n\t\t$price_year[$key] = $row['price_year'];\n\t\t$RAM_Allocation[$key] = $row['RAM_Allocation'];\n\t\t$description[$key] = $row['description'];\n\t\t$img_url[$key] = $row['img_url'];\n\t\t$ftp[$key] = $row['ftp'];\n\t\t$install_method[$key] = $row['install_method'];\n\t\t$manual_url[$key] = $row['manual_url'];\n\t\t$access_rights[$key] = $row['access_rights'];\n\t}\n\tarray_multisort($service_name,\n\t\t\t\t\t$service_id,\n\t\t\t\t\t$home_cfg_id,\n\t\t\t\t\t$mod_cfg_id,\n\t\t\t\t\t$remote_server_id,\n\t\t\t\t\t$slot_max_qty,\n\t\t\t\t\t$slot_min_qty,\n\t\t\t\t\t$price_hourly,\n\t\t\t\t\t$price_weekly,\n\t\t\t\t\t$price_monthly,\n\t\t\t\t\t$price_quarterly,\n\t\t\t\t\t$price_year,\n\t\t\t\t\t$RAM_Allocation,\n\t\t\t\t\t$description,\n\t\t\t\t\t$img_url,\n\t\t\t\t\t$ftp,\n\t\t\t\t\t$install_method,\n\t\t\t\t\t$manual_url,\n\t\t\t\t\t$access_rights, SORT_DESC, $services);\n\t?>\n\t<div style=\"border-left:10px solid transparent;\">\n\t<?php\t\t\n\tforeach( $services as $row )\n\t{\n\t\tif(!isset($_REQUEST['service_id']))\n\t\t{\n\t\t\t?>\n\t\t\t\n\t\t\t<form action=\"\" method=\"POST\">\n\t\t\t\t<div class=\"top_heading\"><b><?php echo $row['service_name'];?></b></div>\n\t\t\t\t<input name=\"service_id\" type=\"hidden\" value=\"<?php echo $row['service_id'];?>\" />\n\t\t\t\t<div class=\"midd_con\">\n\t\t\t\t<input type=\"image\" src=\"<?php echo $row['img_url'] ;?>\" width=280 height=132 border=0 alt=\"Bad Image\" onsubmit=\"submit-form();\" value=\"More Info\" />\n\t\t\t\t<center><em style=\"text-align:center;background-color:orange;color:blue;\"><?php echo get_lang('starting_on') . \" <b>\" .\n\t\t\t\tfloatval(round(($row['price_monthly']*$row['slot_min_qty']),2 )) . \"</b>&nbsp;\" . $settings['currency'] . \"/\" . get_lang('month') . \n\t\t\t\t\" (\" . $row['slot_min_qty'] . \" \" . get_lang('slots') . \").\";?></em>\n\t\t\t\t<button class=\"btn btn-sm btn-primary\" onclick=\"submit-form();\"><i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i> Order Now</button>\n\t\t\t\t</center>\n\t\t\t</div>\n\t\t\t</form>\n\t\t\t\n\t\t\t<?php \n\t\t}\t\telse\n\t\t{\t\n\t\t\t?>\n\t\t\t<div style=\"float:left; border: 4px solid transparent;border-bottom: 25px solid transparent;\">\n\t\t\t<img src=\"<?php echo $row['img_url'] ;?>\" width=280 height=132 border=0 alt=\"Bad Image\">\n\t\t\t<center><b><?php echo $row['service_name'].\"</b></center>\";\n\t\t\t$isAdmin = $db->isAdmin($_SESSION['user_id'] );\n\t\t\tif($isAdmin)\n\t\t\t{\n\t\t\t\tif(!isset($_POST['edit']))\n\t\t\t\t{\n\t\t\t\t\techo \"<p style='color:gray;width:280px;' >$row[description]<p>\";\n\t\t\t\t\techo \"<form action='' method='post'>\".\n\t\t\t\t\t\t \"<input type='hidden' name='service_id' value='$row[service_id]' />\".\n\t\t\t\t\t\t \"<input type='submit' name='edit' value='\" . get_lang('edit') . \"' />\".\n\t\t\t\t\t\t \"</form>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo \"<form action='' method='post'>\".\n\t\t\t\t\t\t \"<textarea style='resize:none;width:280px;height:132px;' name='description' >\".str_replace(\"<br>\", \"\\r\\n\", $row['description']).\"</textarea><br>\".\n\t\t\t\t\t\t \"<input type='hidden' name='service_id' value='$row[service_id]' />\".\n\t\t\t\t\t\t \"<input type='submit' name='save' value='\" . get_lang('save') . \"' />\".\n\t\t\t\t\t\t \"</form>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\techo \"<p style='color:gray;width:280px;' >$row[description]<p>\";\n\t\t\t?>\n\t\t\t</div>\n\t\t\t<table style=\"width:420px;float:left;\" class=\"table_bt\">\n\t\t\t<form method=\"post\" action=\"?m=simple-billing-MCP&p=add_to_cart<?php if(isset($_POST['service_id'])) echo \"&service_id=\".$_POST['service_id'];?>\">\n\t\t\t<tr>\n\t\t\t<td align=\"right\"><?php print_lang('service_name');?> ::</td>\n\t\t\t<td align=\"left\">\n\t\t\t<input type=\"text\" name=\"home_name\" size=\"40\" value=\"<?php echo $row['service_name'];?>\">\n\t\t\t</td>\n\t\t\t<tr>\n\t\t\t<td align=\"right\"><?php print_lang('rcon_pass');?> ::</td>\n\t\t\t<td align=\"left\">\n\t\t\t<input type=\"text\" name=\"remote_control_password\" size=\"15\" value=\"<?php echo genRandomString(10);?>\">\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<?php\n\t\t\tif($row['ftp'] == \"enabled\")\n\t\t\t{\n\t\t\t?>\n\t\t\t\t<tr>\n\t\t\t\t<td align=\"right\"><?php print_lang('ftp_pass');?> ::</td>\n\t\t\t\t<td align=\"left\">\n\t\t\t\t<input type=\"text\" name=\"ftp_password\" size=\"15\" value=\"<?php echo genRandomString(10);?>\">\n\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t<?php\n\t\t\t}\n\t\t\t?>\n\t\t\t<tr>\n\t\t\t <td align=\"right\"><?php print_lang('available_ips');?> ::</td>\n\t\t\t <td align=\"left\">\n\t\t\t <select name='ip_id'>\n\t\t\t<?php\n\t\t\t$qry_ip = \"SELECT ip_id,ip FROM OGP_DB_PREFIXremote_server_ips WHERE remote_server_id=\".$db->realEscapeSingle($row['remote_server_id']);\n\t\t\t$ips = $db->resultQuery($qry_ip);\n\n\t\t\tforeach($ips as $ip)\n\t\t\t{\n\t\t\t\tprintf(\"<option value='%s'>%s</option>\", $ip['ip_id'], $ip['ip']);\n\t\t\t}?>\n\t\t\t </select>\n\t\t\t </td>\n\t\t\t</tr>\n\t\t\t<tr> \n\t\t\t <td align=\"right\"><?php print_lang('max_players');?> ::</td>\n\t\t\t <td align=\"left\">\n\t\t\t <select name=\"max_players\">\n\t\t\t <?php \n\t\t\t $players=$row['slot_min_qty'];\n\t\t\t while($players<=$row['slot_max_qty'])\n\t\t\t {\n\t\t\t echo \"<option value='$players'>$players</option>\";\n\t\t\t $players++;\n\t\t\t }\n\t\t\t ?>\n\t\t\t </select>\n\t\t\t </td>\n\t\t\t</tr>\n\t\t\t<tr> \n\t\t\t <td align=\"right\"><?php print_lang('invoice_duration');?> ::</td>\n\t\t\t <td align=\"left\">\n\t\t\t <!--<select name=\"qty\">\n\t\t\t <?php \n\t\t\t $qty=1;\n\t\t\t while($qty<=12)\n\t\t\t {\n\t\t\t echo \"<option value='$qty'>$qty</option>\";\n\t\t\t $qty++;\n\t\t\t }\n\t\t\t ?>\n\t\t\t </select>-->\n\t\t\t <input type=\"hidden\" name=\"qty\" style=\"display:none\" value=\"1\">\n\t\t\t <select name=\"invoice_duration\">\n\t\t\t <?php\n\t\t\t if( $settings['weekly'] == 1) echo '<option value=\"weekly\">'.get_lang('Weekly').'</option>';\n\t\t\t if( $settings['monthly'] == 1) echo '<option value=\"monthly\">'.get_lang('monthly').'</option>';\n\t\t\t if( $settings['quarterly'] == 1) echo '<option value=\"quarterly\">'.get_lang('quarterly').'</option>';\n\t\t\t if( $settings['annually'] == 1) echo '<option value=\"annually\">'.get_lang('annually').'</option>';\n\t\t\t ?>\n\t\t\t </select>\n\t\t\t </td>\n\t\t\t</tr>\n\t\t\t<!--<tr>\n\t\t\t\t<td align=\"right\">Billing Period ::</td>\n\t\t\t\t<td>\n\t\t\t <select>\n\t\t\t \t<option>Weekly</option>\n\t\t\t \t<option>Monthly</option>\n\t\t\t \t<option>Quarterly ( 3 months)</option>\n\t\t\t \t<option>Yearly</option>\n\t\t\t </select>\n\t\t\t\t</td>\n\t\t\t</tr>-->\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\">Location ::</td>\n\t\t\t\t<td>\n\t\t\t <select name=\"location\">\n\t\t\t \t<option value=\"London, UK\">London, UK</option>\n\t\t\t </select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<?php if(in_array($row['mod_cfg_id'], array(1,2,3,4,5,11,12,110,111,112,113,114,131,132,133,134,135,234,235))){ ?>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\">RAM Allocation ::</td>\n\t\t\t\t<td>\n\t\t\t <select name=\"RAM_Allocation\">\n\t\t\t \t<?php \n\t\t\t\t $qty=1;\n\t\t\t\t while($qty<=10)\n\t\t\t\t {\n\t\t\t\t\t\tif($qty==$row['RAM_Allocation']){\n\t\t\t\t\t\t\t$selected = \"selected='selected'\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$selected = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo \"<option value='$qty' \".$selected.\">$qty GB</option>\";\n\t\t\t\t\t\t$qty++;\n\t\t\t\t }\n\t\t\t\t ?>\n\t\t\t </select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<?php } ?>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\">CPU Priority ::</td>\n\t\t\t\t<td>\n\t\t\t <select name=\"CPU_Priority\">\n\t\t\t\t<?php\n\t\t\t\t if( $settings['Normal'] == 1) echo '<option value=\"Normal\">'.get_lang('Normal').'</option>';\n\t\t\t\t if( $settings['High'] == 1) echo '<option value=\"High\">'.get_lang('High').'</option>';\n\t\t\t\t if( $settings['Real_Time'] == 1) echo '<option value=\"Real Time\">'.get_lang('Real_Time').'</option>';\n\t\t\t\t ?>\n\t\t\t </select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<?php\n\t\t\tif($settings['available_VIP_Ticket'] == 1){\n\t\t\t?>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\">VIP Ticket ::</td>\n\t\t\t\t<td>\n\t\t\t <select name=\"VIP_Ticket\">\n\t\t\t \t<option value=\"Yes\">Yes</option>\n\t\t\t \t<option value=\"No\">No</option>\n\t\t\t </select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<?php } ?>\n\t\t\t<tr class=\"range_slider\">\n\t\t\t\t<td align=\"right\">Slots ::</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type=\"text\" class=\"custom-range-slider\" name=\"slots\" value=\"\" data-type=\"\" data-min=\"0\" data-max=\"100\" data-step=\"10\" data-prefix=\"\" data-hide-min-max=\"true\" data-skin=\"round\" data-grid=\"true\" data-grid-num=\"5\" data-grid-snap=\"true\" />\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr class=\"bg_remove\">\n\t\t\t <td align=\"left\" colspan=\"2\">\n\t\t\t \t<input name=\"service_id\" type=\"hidden\" value=\"<?php echo $row['service_id'];?>\"/>\n\t\t\t\t<input type=\"submit\" name=\"add_to_cart\" value=\"<?php print_lang('add_to_cart');?>\"/>\n\t\t\t </form>\n\t\t\t </td>\n\t\t\t</tr>\n\t\t\t<tr class=\"bg_remove\">\n\t\t\t<td align=\"left\" colspan=\"2\">\n\t\t\t<form action =\"?m=simple-billing-MCP&p=shop\" method=\"POST\" class=\"back_btn\">\n\t\t\t <button><< <?php print_lang('back_to_list');?></button>\n\t\t\t</form>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t</table>\n\t\t\t<?php\n\t\t}\n\t}\n\t?>\n\t</div>\n\t<?php \n}", "title": "" }, { "docid": "b958d02bd33fbcaa30c39db48cf992f3", "score": "0.5205256", "text": "function main()\t{\n\t\t\t\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t\t\t\t// Access check!\n\t\t\t\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t\t\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\t\t\t\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\t\t\t\t\n\t\t\t\t\t\t// initialize doc\n\t\t\t\t\t$this->doc = t3lib_div::makeInstance('template');\n\t\t\t\t\t$this->doc->setModuleTemplate(t3lib_extMgm::extPath('jg_clubmanager') . 'mod1//mod_template.html');\n\t\t\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t\t\t$docHeaderButtons = $this->getButtons();\n\n\t\t\t\t\tif (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id))\t{\n\n\t\t\t\t\t\t\t// Draw the form\n\t\t\t\t\t\t$this->doc->form = '<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">';\n\n\t\t\t\t\t\t\t// JavaScript\n\t\t\t\t\t\t$this->doc->JScode = '\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t$this->doc->postCode='\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t\t// Render content:\n\t\t\t\t\t\t$this->moduleContent();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// If no access or if ID == zero\n\t\t\t\t\t\t$docHeaderButtons['save'] = '';\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t// compile document\n\t\t\t\t\t$markers['FUNC_MENU'] = t3lib_BEfunc::getFuncMenu(0, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']);\n\t\t\t\t\t$markers['CONTENT'] = $this->content;\n\n\t\t\t\t\t\t\t// Build the <body> for the module\n\t\t\t\t\t$this->content = $this->doc->startPage($LANG->getLL('title'));\n\t\t\t\t\t$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);\n\t\t\t\t\t$this->content.= $this->doc->endPage();\n\t\t\t\t\t$this->content = $this->doc->insertStylesAndJS($this->content);\n\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "6678185649eb52fd86aa0ae6996538a9", "score": "0.520438", "text": "function create_corrCheck_Lights($db){ ?>\n\n <fieldset class=\"section_lights rep-section section_std\">\n\n <h2>Lights</h2> \n\n <div class=\"section-questions\">\n\n <?php \n\n $section_id = 5;\n $section_class= \"veh_lights\";\n get_standard_section($db, $section_id, $section_class);\n\n ?>\n\n \t</div>\n\n </fieldset>\n\n<?php }", "title": "" }, { "docid": "dc347119819e98e743b0746131809d91", "score": "0.5201376", "text": "public function run()\n {\n $this->createNew('Site');\n $this->createNew('BTS');\n $this->createNew('Transmission');\n $this->createNew('Environnement');\n $this->createNew('Securite');\n }", "title": "" }, { "docid": "031c1bae0d0f3bc8126d23024068f9fb", "score": "0.5200524", "text": "function init()\n\t{\n\n\t\tinclude('model/MSkillCrmTemplate.php');\n\t\t$dc_model = new MSkillCrmTemplate();\n\t\t\n\t\t$tid = isset($_REQUEST['tid']) ? trim($_REQUEST['tid']) : '';\t\t\n\t\t$templateinfo = $dc_model->getTemplateById($tid);\n\t\t\n\t\tif (empty($templateinfo)) exit;\n\t\t$data['dataUrl'] = $this->url('task=get-tools-data&act=scrmdginit&tid='.$tid);\n\t\t$data['pageTitle'] = 'Skill CRM Service Types';\n\t\t$data['pageTitle'] .= ' for Template - ' . $templateinfo->title;\n\t\t$data['side_menu_index'] = 'settings';\n\t\t$data['smi_selection'] = 'stemplate_';\n\t\t\n\t\t$data['topMenuItems'] = array(\n\t\t array('href'=>'task=stemplate', 'img'=>'fa fa-tasks', 'label'=>'List Template(s)'),\n\t\t array('href'=>'task=scrmdg&act=add&tid='.$tid, 'img'=>'fa fa-plus-square-o', 'label'=>'Add New Service Type')\n\t\t);\n\t\t\n\t\t$this->getTemplate()->display('skill_crm_disposition_groups', $data);\n\t}", "title": "" }, { "docid": "f4996d5f1fed29ac7827a30a763e27b5", "score": "0.519793", "text": "public function buildpage() {\n \n \n \n \n $template = $this->registry->getObject('template');\n $template->buildtemplate(\n \n $this->templatebits['messageAlert'],\n $this->templatebits['events'],\n $this->templatebits['event_calendar'],\n $this->templatebits['create_form'],\n $this->templatebits['eof']\n \n );\n }", "title": "" }, { "docid": "97f16613af3e3b92e1ae3a982f095aeb", "score": "0.51919717", "text": "public function __construct() {\n\t\tif ( defined( 'ETD_DYNAMIC_SHORTCODES_VERSION' ) ) {\n\t\t\t$this->version = ETD_DYNAMIC_SHORTCODES_VERSION;\n\t\t} else {\n\t\t\t$this->version = '1.0.0';\n\t\t}\n\t\t$this->plugin_name = 'etd_dynamic_shortcodes';\n\t\t$this->defined_shortcodes = array();\n\n\t\tinclude plugin_dir_path( __FILE__ ) . 'class-etd-shortcode-metabox.php';\n\t\t$this->metabox = new ETD_Shortcode_Metabox();\n\n\t\t$this->define_hooks();\n\t}", "title": "" }, { "docid": "76bfcb55e6fa2cdc49302fb14971dfb0", "score": "0.519123", "text": "function GetCompanyService(\n )\n {\n /* GetCompanyService */\n }", "title": "" }, { "docid": "00b8dcb6dfbb881dbea6ad794c38db75", "score": "0.5191173", "text": "function sotb() { \n\t\t\t\tglobal $BF,$info;\n\t\t\t}", "title": "" }, { "docid": "6026ad4d5a785a7b39c90c057d9b7bbc", "score": "0.5189414", "text": "public function demo()\n {\n SoapWrapper::add(function ($service) {\n $service\n ->name('MDS')\n ->wsdl('http://www.collivery.co.za/wsdl/v2')\n ->trace(true);\n });\n\n $data = [\n 'app_name' => 'Shopify', // Application Name\n 'app_version' => '1.0', // Application Version\n 'app_host' => 'shopify.dev', // Framework/CMS name and version, eg 'Wordpress 3.8.1 WooCommerce 2.0.20' / 'Joomla! 2.5.17 VirtueMart 2.0.26d'\n 'app_url' => 'shopify.dev', // URL your site is hosted on\n\n ];\n\n\n // Using the added service\n SoapWrapper::service('MDS', function ($service) use ($data) {\n var_dump($service->getFunctions());\n var_dump($service->call('authenticate',['api@collivery.co.za', 'api123']));\n var_dump($service->call('get_location_types',$data)->get_location_typesResult);\n\n });\n }", "title": "" }, { "docid": "26e82a88664af8436ffee2f30e9a173d", "score": "0.51880014", "text": "public function run()\n {\n // creo un array con servizi medici fittizi\n $services =\n [\n [\n 'name'=>'Assistenza Domiciliare',\n ],\n [\n 'name'=>'Esami Strumentali',\n ],\n [\n 'name'=>'Esami di Laboratorio',\n ],\n [\n 'name'=>'Ginnastica di Riabilitazione',\n ],\n [\n 'name'=>'Perizia Medico legale per Responsabilità',\n ],\n [\n 'name'=>'Rilascio Certificati',\n ],\n [\n 'name'=>'Seduta di Neuropsichiatria',\n ],\n [\n 'name'=>'Video Consulto',\n ],\n [\n 'name'=>'Visita di Controllo',\n ],\n [\n 'name'=>'Visita Specialistica',\n ]\n ];\n\n // creo più istanze dell'oggetto Service con i dati fittizzi creati sopra\n foreach ($services as $service) {\n $newService = new Service() ;\n\n $newService->name = $service['name'];\n\n // salvo i valori nella tabella\n $newService->save();\n }\n }", "title": "" }, { "docid": "3c2a33542a835377a642fcc47180c102", "score": "0.5185844", "text": "function createMemCustomFields() {\n\t\t\tif ( function_exists( 'add_meta_box' ) ) {\n\t\t\t\tadd_meta_box( 'my-mem-custom-fields', 'Membership Options', array( &$this, 'displayMemCustomFields' ), 'page', 'normal', 'high' );\n\t\t\t\t//add_meta_box( 'my-mem-custom-fields', 'Membership Customization Options', array( &$this, 'displayMemCustomFields' ), 'post', 'normal', 'high' );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "761c1d922c4005cc4851761c0f17cc55", "score": "0.5185703", "text": "function venue_init() {\n\tadd_meta_box(\"venue-building-meta\", \"Building Information\", \"venue_meta_building\", \"venue\", \"normal\", \"high\");\n\tadd_meta_box(\"venue-parking-meta\", \"Parking Information\", \"venue_meta_parking\", \"venue\", \"normal\", \"low\");\n}", "title": "" }, { "docid": "e99d0a7bab3cce7acd2c152d445a29c8", "score": "0.5185514", "text": "function generateTC(){\n }", "title": "" }, { "docid": "fa9a18ff27d5aac7d951390640e7cb03", "score": "0.517955", "text": "private function create_metaboxes() {\n \n // if(is_home()){\n // self::$metaboxes['settings'] = new WPDZ_Metabox_Settings();\n // }\n self::$metaboxes['layout'] = new WPDZ_Metabox_Sidebars();\n self::$metaboxes['posttypes'] = new WPDZ_Metabox_Post_Types();\n //self::$metaboxes['dropzones'] = new WPDZ_Metabox_Dropzones();\n }", "title": "" }, { "docid": "87cd5d4aab74cd512907e2626f0d2c8f", "score": "0.5175676", "text": "function main()\t{\n\t\t\t\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t\t\t\t// \\todo: better check: currently access to all be_users is granted\n\t\t\t\t\tif (isset($GLOBALS['BE_USER']->user['uid']) && $GLOBALS['BE_USER']->user['uid']) {\n\n\t\t\t\t\t\t$this->input = t3lib_div::GParrayMerged(self::prefixId); // store params\n//t3lib_div::devlog('Tag module', 'newspaper', 0, array('input' => $this->input));\n\n\t\t\t\t\t\t$this->handleAjax(); // ends with die() if and ajax request is processed\n\n\n\t\t\t\t\t\t\t// Draw the header.\n\t\t\t\t\t\t$this->doc = t3lib_div::makeInstance('fullWidthDoc');\n\t\t\t\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t\t\t\t$this->doc->form='<form action=\"\" method=\"POST\">';\n\n\t\t\t\t\t\t\t// JavaScript\n\t\t\t\t\t\t$this->doc->JScode = '\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t$this->doc->postCode='\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\n\t\t\t\t\t\t$headerSection = \"\";\n\n\t\t\t\t\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t\t\t\t$this->content.=$this->doc->section('',$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function'])));\n\t\t\t\t\t\t$this->content.=$this->doc->divider(5);\n\n\n\t\t\t\t\t\t// Render content:\n\t\t\t\t\t\t$this->moduleContent();\n\n\n\t\t\t\t\t\t// ShortCut\n//\t\t\t\t\t\tif ($BE_USER->mayMakeShortcut())\t{\n//\t\t\t\t\t\t\t$this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']));\n//\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// If no access or if ID == zero\n\n\t\t\t\t\t\t$this->doc = t3lib_div::makeInstance('mediumDoc');\n\t\t\t\t\t\t$this->doc->backPath = $BACK_PATH;\n\n\t\t\t\t\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "0dfe70a89e38b291cd1def3687157985", "score": "0.51752865", "text": "function fpw_main(){$this->__construct();}", "title": "" }, { "docid": "a62899d5c9ba87a8e12897d22dba393d", "score": "0.517039", "text": "function my_meta_init1()\n{\n\n\t\tadd_meta_box( 'wpshed-meta-box2', __( 'Author Details', 'textdomain2' ), 'custom_meta_box_output4', 'kindwords','normal', 'high' );\n\n}", "title": "" }, { "docid": "a3552a4848e43d2cea47ed52bfaadc97", "score": "0.5169909", "text": "function Man_Reservation()\n\t{\n\t}", "title": "" }, { "docid": "676606b20672adf9a7aac3fdea967135", "score": "0.51684916", "text": "function COXYMallBanner() {\r\n\t}", "title": "" }, { "docid": "c2610f44ebc47d6f407ad9e46559a8a6", "score": "0.5166761", "text": "public function __construct() {\n\n\t\t$this->args = array(\n\t\t\t'id_base' => 'wpex_info_widget',\n\t\t\t'name' => $this->branding() . esc_html__( 'Business Info', 'total-theme-core' ),\n\t\t\t'options' => array(\n\t\t\t\t'customize_selective_refresh' => true,\n\t\t\t),\n\t\t\t'fields' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'title',\n\t\t\t\t\t'label' => esc_html__( 'Title', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'address',\n\t\t\t\t\t'label' => esc_html__( 'Address', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'textarea',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'phone_number',\n\t\t\t\t\t'label' => esc_html__( 'Phone Number', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'phone_number_mobile',\n\t\t\t\t\t'label' => esc_html__( 'Mobile Phone Number', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'phone_number_tel_link',\n\t\t\t\t\t'label' => esc_html__( 'Add \"tel\" link to the phone number?', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'fax_number',\n\t\t\t\t\t'label' => esc_html__( 'Fax Number', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'email',\n\t\t\t\t\t'label' => esc_html__( 'Email', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'email_label',\n\t\t\t\t\t'label' => esc_html__( 'Email Label', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'description' => esc_html__( 'Will display your email by default if this field is empty.', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'has_icons',\n\t\t\t\t\t'default' => true,\n\t\t\t\t\t'label' => esc_html__( 'Show icons?', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'item_bottom_margin',\n\t\t\t\t\t'label' => esc_html__( 'Bottom margin between items.', 'total-theme-core' ),\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'choices' => 'margin',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\t$this->create_widget( $this->args );\n\n\t}", "title": "" }, { "docid": "bc51ede0ea3e769e44ac8c23adf567d9", "score": "0.5161887", "text": "function services_output_blocks(): void {\n\n $post_id = get_the_ID();\n $field_name = 'cs_services_rows';\n $services_rows = get_post_meta( $post_id, $field_name, true );\n\n if ( ! $services_rows ) {\n return;\n }\n\n include locate_template( 'views/services-loop-open.php' );\n\n for ( $i = 0; $i < $services_rows; $i++ ) {\n $icon_id = get_post_meta($post_id, $field_name . '_' . $i . '_icon', true);\n $icon = wp_get_attachment_image($icon_id, 'full');\n $title = get_post_meta($post_id, $field_name . '_' . $i . '_title', true);\n $introduction = get_post_meta($post_id, $field_name . '_' . $i . '_introduction', true);\n\n\t include locate_template( 'views/services-loop-single.php' );\n }\n\n include locate_template( 'views/services-loop-close.php' );\n\n $after_services_title = get_post_meta($post_id, 'cs_after_services_title', true);\n $after_services_content = get_post_meta($post_id, 'cs_after_services_content', true);\n\n if ( ! $after_services_content ) {\n return;\n }\n\n include locate_template( 'views/services/after-services-content.php' );\n}", "title": "" }, { "docid": "5a9a9ccb4412a9beaaf775f6beed7fdb", "score": "0.5161304", "text": "function auto_run() \n\t{\n\t\t$this->html = $this->ipsclass->acp_load_template('cp_skin_tools');\n\t\t\n\t\tswitch($this->ipsclass->input['code'])\n\t\t{\n\t\t\tcase 'master_xml_export':\n\t\t\t\t$this->master_xml_export();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'manage':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );\n\t\t\t\t$this->components_list();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'component_add':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':add' );\n\t\t\t\t$this->components_form('add');\n\t\t\t\tbreak;\n\t\t\tcase 'component_add_do':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':add' );\n\t\t\t\t$this->components_save('add');\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'component_edit':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' );\n\t\t\t\t$this->components_form('edit');\n\t\t\t\tbreak;\n\t\t\tcase 'component_edit_do':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' );\n\t\t\t\t$this->components_save('edit');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'component_delete':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' );\n\t\t\t\t$this->components_delete();\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\n\t\t\tcase 'component_export':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':export' );\n\t\t\t\t$this->components_export('single');\n\t\t\t\tbreak;\n\t\t\tcase 'component_import':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':import' );\n\t\t\t\t$this->components_import();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'component_move':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' );\n\t\t\t\t$this->components_move();\n\t\t\t\tbreak;\n\t\t\tcase 'component_toggle_enabled':\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':edit' );\n\t\t\t\t$this->components_toggle_enabled();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );\n\t\t\t\t$this->components_list();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "6bf57a8ff94589eae745e6757a9eb74d", "score": "0.5160192", "text": "public function init_projects_client_metabox() {\n\n add_meta_box( 'projects_client', \"Projects Clients\", array($this,'clients_metabox'), $this->custom_type, 'normal', 'low'); \n }", "title": "" }, { "docid": "95251634fa1c657cabeb212df0cbfa49", "score": "0.5158913", "text": "public function addMetaboxes()\n {\n $helper = Metabox::get(self::EVENT_TYPE);\n\n // Add section for the main event information\n $helper->addMetabox('event-main', 'Informationen zur Veranstaltung', 'normal');\n //$helper->addEditor('post_content', 'event-main', 'Beschreibung', 10);\n $helper->addDateTime('event-start', 'event-main', 'Beginn');\n $helper->addDateTime('event-end', 'event-main', 'Ende (optional)');\n // Add optional fields\n $helper->addTextarea('post_excerpt', 'event-main', 'Kurzbeschreibung', 65);\n $helper->addInputText('event-location', 'event-main', 'Veranstaltungsort');\n $helper->addAddressLocation('event-address', 'event-main');\n $helper->addInputText('event-map-url', 'event-main', 'Karten-Link', array(\n 'description' => 'Optionaler Link um z.B. eine Kartenansicht auf Google Maps zu verlinken'\n ));\n\n // Subscription features\n $helper->addMetabox('event-subscribe', 'Anmeldung zur Veranstaltung', 'normal');\n $helper->addCheckbox('subscribe-active', 'event-subscribe', 'Anmeldung per Formular ermöglichen');\n $helper->addDateTime('subscribe-end', 'event-subscribe', 'Anmeldeschluss');\n $helper->addInputText('subscribe-email', 'event-subscribe', 'E-Mail-Empfänger der Anmeldungen', array(\n 'description' => '\n Es wird automatisch eine E-Mail an sie, den Veranstalter geschickt. Die E-Mail enthält alle Daten zum Event sowie die Formular-Daten.<br>\n Wenn Sie eine Bestätigung an den Teilnehmer senden wollen, kann dies als Aktion im verknüpften Anmeldeformular hinterlegt werden.\n '\n ));\n // Create a dropdown of all forms that can be used as template\n $helper->addDropdown('subscribe-form-id', 'event-subscribe', 'Anmeldeformular', array(\n 'items' => $this->getFormDropdownItems(),\n 'description' => 'Anmeldeforumlare können unter \"Forumlare\" erstellt und konfiguriert werden.'\n ));\n // Subscribe text, if subscription end is reached\n $helper->addTextarea('subscribe-end-alternate-text', 'event-subscribe', 'Text nach Anmeldeschluss', 65, array(\n 'description' => 'Text, der angezeigt wird, wenn der Anmeldeschluss abgelaufen ist (Leer lassen, wenn kein Text angezeigt werden soll).'\n ));\n\n // Features to deactivate display of elements\n $helper->addMetabox('event-hiders', 'Steuerung der Darstellung', 'normal');\n $helper->addCheckbox('hide-ics-download', 'event-hiders', 'Kalender-Download ausblenden');\n $helper->addCheckbox('hide-map-url', 'event-hiders', 'Karten-Link ausblenden');\n }", "title": "" }, { "docid": "b0c7d3b6a1684fc99a70489bbffa096b", "score": "0.51555175", "text": "public function payment_scripts() {\n \n }", "title": "" }, { "docid": "9d806e42559ebbae83a660d19830f113", "score": "0.5154406", "text": "public function run()\n {\n Service::create([\n 'name' => 'Construtor cívil',\n 'description' => 'Construções e reformas em gerais, faço reparo em hidráulica, e instalções elétricas',\n 'category_id' => 2,\n 'user_id' => 1,\n ]);\n\n Service::create([\n 'name' => 'Cabeleleira',\n 'description' => 'Hidratação, escova e alisamento',\n 'category_id' => 1,\n 'user_id' => 3,\n ]);\n\n Service::create([\n 'name' => 'Progamador de sites',\n 'description' => 'Construção de sites e sistemas web',\n 'category_id' => 1,\n 'user_id' => 5,\n ]);\n\n Service::create([\n 'name' => 'Construção de portão',\n 'description' => 'fazemos portões de ferro e aluminio para residencias',\n 'category_id' => 1,\n 'user_id' => 6,\n ]);\n\n Service::create([\n 'name' => 'Instalador de ar condicionado',\n 'description' => 'Instalação, manutenção e limpeza de ar-condicionado',\n 'category_id' => 1,\n 'user_id' => 4,\n ]);\n }", "title": "" }, { "docid": "9fab90fe16607224ceccd6a4589b9be1", "score": "0.51451343", "text": "function __construct ()\n\t\t{\n\t\t\tparent::__construct ('ServiceTotals', 'ServiceTotal', 'ServiceTotal');\n\t\t}", "title": "" }, { "docid": "bd6584af14b5f69781fb334ea7909ce1", "score": "0.5144458", "text": "function PricerrTheme_set_metaboxes()\n{\n\n add_meta_box('job_images', 'Group Images', 'PricerrTheme_theme_job_images', 'job', 'advanced', 'high');\n add_meta_box('job_extra', 'Group Additional Services', 'PricerrTheme_theme_job_additional', 'job', 'advanced', 'high');\n add_meta_box('job_dets', 'Group Details', 'PricerrTheme_theme_job_dts', 'job', 'side', 'high');\n add_meta_box('job_instr', 'Seller Instructions', 'PricerrTheme_theme_job_instructions', 'job', 'advanced', 'high');\n do_action('PricerrTheme_set_meta_boxes');\n}", "title": "" }, { "docid": "a1b84d525058f315e6162dc91f371e54", "score": "0.514366", "text": "public function installdata()\n\t{\n\t\t$input = JFactory::getApplication()->input;\n\t\t$faker = Faker\\Factory::create();\n\t\t$db = JFactory::getDbo();\n\n\t\t$cal_id = $input->get('cal_id',null,'integer');\n\t\t$num = $input->get('num',500,'integer');\n\t\t\n\t\tif (!$cal_id)\n\t\t\tthrow new Exception(\"No Calendar ID provided for faking\", 1);\n\n\t\tfor ($i=0;$i<$num;$i++) {\n\n\t\t\t$service = $GLOBALS['com_pbbooking_data']['services'][rand(0,count($GLOBALS['com_pbbooking_data']['services'])-1)];\n\n\t\t\t$data = array();\n\t\t\t$data['service_id'] = $service->id;\n\t\t\tforeach ($GLOBALS['com_pbbooking_data']['customfields'] as $field) {\n\t\t\t\tif ($field->is_first_name)\n\t\t\t\t\t$data[$field->varname] = $faker->firstName();\n\t\t\t\telseif ($field->is_last_name)\n\t\t\t\t\t$data[$field->varname] = $faker->lastName();\n\t\t\t\telseif($field->is_email)\n\t\t\t\t\t$data[$field->varname] = $faker->safeEmail();\n\t\t\t\telse\n\t\t\t\t\t$data[$field->varname] = $faker->word();\n\n\t\t\t\tif (isset($field->values) && $field->values != '') {\n\t\t\t\t\t$choices = explode('|',$field->values);\n\t\t\t\t\t$data[$field->varname] = $choices[rand(0,count($choices)-1)];\n\t\t\t\t}\n\t\t\t}\t\t\n\n\t\t\t//create a random dtstart\n\t\t\t$data['dtstart'] = $faker->dateTimeBetween(\"now\",\"+1 month\")->format(DATE_ATOM);\n\t\t\t$data['dtend'] = date_create($data['dtstart'],new DateTimeZone(PBBOOKING_TIMEZONE))\n\t\t\t\t\t\t\t\t\t->modify('+ '.$service->duration.' minutes')\n\t\t\t\t\t\t\t\t\t->format(DATE_ATOM);\n\n\t\t\t$data['verified'] =1;\n\t\t\t$data['cal_id'] = $cal_id;\n\t\t\t$event = new \\Pbbooking\\Model\\Event();\n\t\t\t$event->createFromPost($data);\n\t\t\t$event->save();\n\t\t\t$event->save();\t\t\t//second save to add to syncer\n\t\t\n\t\n\t\t}\n\n\t\tdie();\n\t}", "title": "" }, { "docid": "3546ca2d360ba277f5a8aff376425811", "score": "0.5141318", "text": "public function create()\n\t{ \n\t\t//\n\t}", "title": "" }, { "docid": "4e7037029d7da35894a8e965d936368f", "score": "0.5136171", "text": "function sydney_toolbox_projects_metabox() {\n new Sydney_Toolbox_Projects();\n}", "title": "" }, { "docid": "cc08e6455bb7b86540824dd4e2923f75", "score": "0.5133998", "text": "public function create()\n {\n // la methode qui devrait créer le formulaie de CREATE\n // ns n'utilisons pas ce moyen\n }", "title": "" }, { "docid": "f7e692fd205aa8fa407a8965d48d4eab", "score": "0.5131138", "text": "function gutenberg_hello_install() {\n gutenberg_hello_block(); \n \n}", "title": "" } ]
de469329e87454d9b067d5afbf450774
Created by package 'LogEnvelope' Run the migrations.
[ { "docid": "f1a19cbe8854af2d5b0bba83341ed871", "score": "0.6511826", "text": "public function up()\n {\n if (!Schema::hasTable('exceptions')) {\n Schema::create('exceptions', function (Blueprint $table) {\n $table->increments('id');\n\n $table->string('host');\n $table->string('method');\n $table->string('fullUrl');\n $table->text('exception');\n $table->text('error');\n $table->string('line');\n $table->string('file');\n $table->string('class');\n $table->text('storage');\n $table->text('exegutor');\n $table->text('file_lines');\n\n $table->timestamps();\n });\n }\n }", "title": "" } ]
[ { "docid": "1c2cd1f48082cfaf704e3a6fc8fede39", "score": "0.68749624", "text": "public function up()\n {\n DB::statement(\"DELETE FROM activity_log WHERE properties = '{\\\"attributes\\\":[],\\\"old\\\":[]}'\");\n DB::statement(\"UPDATE activity_log SET log_name='login-success' WHERE description = 'Login successful.'\");\n DB::statement(\"UPDATE activity_log SET log_name='login-failures' WHERE subject_type = 'App\\\\FailedLoginAttempt'\");\n DB::statement(\"UPDATE activity_log SET log_name='logout' WHERE description = 'Logout'\");\n DB::statement(\"UPDATE activity_log SET log_name='admin' WHERE description LIKE ('%Impersonation%')\");\n DB::statement(\"UPDATE activity_log SET log_name='config' WHERE description LIKE ('%ed Setting%')\");\n DB::statement(\"UPDATE activity_log SET log_name='passwords' WHERE description = 'Password changed.'\");\n DB::statement(\"UPDATE activity_log SET log_name='login-failures' WHERE description LIKE 'Login failure%'\");\n DB::statement(\"UPDATE activity_log SET log_name='team-assignment' WHERE subject_type IN('App\\\\WeekendAssignments', 'App\\\\WeekendAssignmentsExternal')\");\n DB::statement(\"UPDATE activity_log SET log_name='weekends' WHERE log_name='default' AND subject_type ='App\\\\Weekend'\");\n DB::statement(\"UPDATE activity_log SET log_name='calendar' WHERE log_name='default' AND subject_type ='App\\\\Event'\");\n DB::statement(\"UPDATE activity_log SET log_name='pre-weekend' WHERE log_name='default' AND subject_type ='App\\\\Candidate'\");\n DB::statement(\"UPDATE activity_log SET log_name='members' WHERE log_name='default' AND subject_type ='App\\\\User'\");\n DB::statement(\"UPDATE activity_log SET log_name='prayer-wheels' WHERE log_name='default' AND subject_type ='App\\\\PrayerWheel'\");\n DB::statement(\"UPDATE activity_log SET log_name='secretariat' WHERE log_name='default' AND subject_type ='App\\\\Secretariat'\");\n }", "title": "" }, { "docid": "af8d56925190854710b16aa1c9e1c3ad", "score": "0.668906", "text": "public function up(){\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{log_notify}}\"))\n\t\t\t$this->dropTable(\"{{log_notify}}\");\n\n\t\t$this->createTable(\"{{log_notify}}\", array(\n\t\t\t\"id\"\t\t\t=> \"int UNSIGNED AUTO_INCREMENT\",\n\t\t\t\"created\"\t\t=> \"datetime\",\n\t\t\t\"id_creator\"\t=> \"int UNSIGNED\",\n\t\t\t\"changed\"\t\t=> \"datetime\",\n\t\t\t\"id_changer\"\t=> \"int UNSIGNED\",\n\t\t\t\"level\"\t\t\t=> \"varchar(255) CHARACTER SET UTF8\",\n\t\t\t\"category\"\t\t=> \"varchar(255) CHARACTER SET UTF8\",\n\t\t\t\"message\"\t\t=> \"text CHARACTER SET UTF8\",\n\t\t\t\"PRIMARY KEY (id)\"\n\t\t\t));\n\t}", "title": "" }, { "docid": "bb733ce4022499cf79a7c2e62a49200b", "score": "0.66290224", "text": "public function migrateSchema(): void;", "title": "" }, { "docid": "95c7946a7b42c3bdfaeeafbd4f9fcab6", "score": "0.65899223", "text": "public function migrate();", "title": "" }, { "docid": "95c7946a7b42c3bdfaeeafbd4f9fcab6", "score": "0.65899223", "text": "public function migrate();", "title": "" }, { "docid": "a691c9bc3c6b313c574a45c2bb88064f", "score": "0.6569527", "text": "public function up(Schema $schema): void\n {\n $this->addSql('CREATE SCHEMA log');\n $this->addSql('CREATE TABLE appointment (id INT IDENTITY NOT NULL, organization_id INT NOT NULL, service_id INT NOT NULL, date DATE NOT NULL, time_from TIME(0) NOT NULL, time_till TIME(0) NOT NULL, need_dinner BIT NOT NULL, dinner_from TIME(0), dinner_till TIME(0), duration INT NOT NULL, persons INT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_FE38F84432C8A3DE ON appointment (organization_id)');\n $this->addSql('CREATE INDEX IDX_FE38F844ED5CA9E6 ON appointment (service_id)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_FE38F84432C8A3DEED5CA9E6AA9E377A ON appointment (organization_id, service_id, date) WHERE organization_id IS NOT NULL AND service_id IS NOT NULL AND date IS NOT NULL');\n $this->addSql('CREATE TABLE appointment_template (id INT IDENTITY NOT NULL, organization_id INT NOT NULL, service_id INT NOT NULL, time_from TIME(0) NOT NULL, time_till TIME(0) NOT NULL, need_dinner BIT NOT NULL, dinner_from TIME(0), dinner_till TIME(0), duration INT NOT NULL, persons INT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_A244944B32C8A3DE ON appointment_template (organization_id)');\n $this->addSql('CREATE INDEX IDX_A244944BED5CA9E6 ON appointment_template (service_id)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_A244944BED5CA9E632C8A3DE ON appointment_template (service_id, organization_id) WHERE service_id IS NOT NULL AND organization_id IS NOT NULL');\n $this->addSql('CREATE TABLE log.error_log (id UNIQUEIDENTIFIER NOT NULL, usr_id INT, message VARCHAR(MAX) NOT NULL, code INT NOT NULL, moment DATETIME2(6) NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX usr_idx ON log.error_log (usr_id)');\n $this->addSql('CREATE TABLE organization (id INT IDENTITY NOT NULL, parent_id INT, name NVARCHAR(4000) NOT NULL, timezone SMALLINT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_C1EE637C727ACA70 ON organization (parent_id)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_C1EE637C727ACA705E237E06 ON organization (parent_id, name) WHERE parent_id IS NOT NULL AND name IS NOT NULL');\n $this->addSql('ALTER TABLE organization ADD CONSTRAINT DF_C1EE637C_3701B297 DEFAULT 3 FOR timezone');\n $this->addSql('CREATE TABLE refresh_tokens (id INT IDENTITY NOT NULL, refresh_token NVARCHAR(128) NOT NULL, username NVARCHAR(255) NOT NULL, valid DATETIME2(6) NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_9BACE7E1C74F2195 ON refresh_tokens (refresh_token) WHERE refresh_token IS NOT NULL');\n $this->addSql('CREATE TABLE registration (id INT IDENTITY NOT NULL, appointment_id INT NOT NULL, time TIME(0) NOT NULL, last_name NVARCHAR(50) NOT NULL, first_name NVARCHAR(50) NOT NULL, middle_name NVARCHAR(50), birthday DATE NOT NULL, phone NVARCHAR(21), email NVARCHAR(255), PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_62A8A7A7E5B533F9 ON registration (appointment_id)');\n $this->addSql('CREATE INDEX person_idx ON registration (birthday, last_name, first_name, middle_name)');\n $this->addSql('CREATE TABLE log.request_log (id UNIQUEIDENTIFIER NOT NULL, usr_id INT, moment DATETIME2(6) NOT NULL, content VARCHAR(MAX), method NVARCHAR(15) NOT NULL, path NVARCHAR(255) NOT NULL, query VARCHAR(MAX), request VARCHAR(MAX), PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_A14398BAC69D3FB ON log.request_log (usr_id)');\n $this->addSql('CREATE INDEX user_path_idx ON log.request_log (usr_id, path)');\n $this->addSql('EXEC sp_addextendedproperty N\\'MS_Description\\', N\\'(DC2Type:array)\\', N\\'SCHEMA\\', \\'log\\', N\\'TABLE\\', \\'request_log\\', N\\'COLUMN\\', content');\n $this->addSql('EXEC sp_addextendedproperty N\\'MS_Description\\', N\\'(DC2Type:array)\\', N\\'SCHEMA\\', \\'log\\', N\\'TABLE\\', \\'request_log\\', N\\'COLUMN\\', query');\n $this->addSql('EXEC sp_addextendedproperty N\\'MS_Description\\', N\\'(DC2Type:array)\\', N\\'SCHEMA\\', \\'log\\', N\\'TABLE\\', \\'request_log\\', N\\'COLUMN\\', request');\n $this->addSql('CREATE TABLE service (id INT IDENTITY NOT NULL, service_group_id INT, name NVARCHAR(4000) NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_E19D9AD2722827A ON service (service_group_id)');\n $this->addSql('CREATE TABLE service_group (id INT IDENTITY NOT NULL, parent_id INT, name NVARCHAR(255) NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_C4B2A922727ACA70 ON service_group (parent_id)');\n $this->addSql('CREATE TABLE user_data (id INT IDENTITY NOT NULL, user_id INT NOT NULL, last_name NVARCHAR(50) NOT NULL, first_name NVARCHAR(50) NOT NULL, middle_name NVARCHAR(50), PRIMARY KEY (id))');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_D772BFAAA76ED395 ON user_data (user_id) WHERE user_id IS NOT NULL');\n $this->addSql('CREATE TABLE user_rights (id INT IDENTITY NOT NULL, usr_id INT NOT NULL, organization_id INT NOT NULL, v BIT NOT NULL, e BIT NOT NULL, d BIT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE INDEX IDX_6432CA3EC69D3FB ON user_rights (usr_id)');\n $this->addSql('CREATE INDEX IDX_6432CA3E32C8A3DE ON user_rights (organization_id)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_6432CA3EC69D3FB32C8A3DE ON user_rights (usr_id, organization_id) WHERE usr_id IS NOT NULL AND organization_id IS NOT NULL');\n $this->addSql('ALTER TABLE user_rights ADD CONSTRAINT DF_6432CA3E_6B643B84 DEFAULT \\'0\\' FOR v');\n $this->addSql('ALTER TABLE user_rights ADD CONSTRAINT DF_6432CA3E_EFDA7A5A DEFAULT \\'0\\' FOR e');\n $this->addSql('ALTER TABLE user_rights ADD CONSTRAINT DF_6432CA3E_98DD4ACC DEFAULT \\'0\\' FOR d');\n $this->addSql('CREATE TABLE user_settings (id INT IDENTITY NOT NULL, usr_id INT NOT NULL, dark_mode BIT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_5C844C5C69D3FB ON user_settings (usr_id) WHERE usr_id IS NOT NULL');\n $this->addSql('ALTER TABLE user_settings ADD CONSTRAINT DF_5C844C5_EECE9A15 DEFAULT \\'0\\' FOR dark_mode');\n $this->addSql('CREATE TABLE usr (id INT IDENTITY NOT NULL, username NVARCHAR(180) NOT NULL, roles VARCHAR(MAX) NOT NULL, password NVARCHAR(255) NOT NULL, is_active BIT NOT NULL, PRIMARY KEY (id))');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_1762498CF85E0677 ON usr (username) WHERE username IS NOT NULL');\n $this->addSql('EXEC sp_addextendedproperty N\\'MS_Description\\', N\\'(DC2Type:json)\\', N\\'SCHEMA\\', \\'dbo\\', N\\'TABLE\\', \\'usr\\', N\\'COLUMN\\', roles');\n $this->addSql('ALTER TABLE usr ADD CONSTRAINT DF_1762498C_1B5771DD DEFAULT \\'1\\' FOR is_active');\n $this->addSql('ALTER TABLE appointment ADD CONSTRAINT FK_FE38F84432C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id)');\n $this->addSql('ALTER TABLE appointment ADD CONSTRAINT FK_FE38F844ED5CA9E6 FOREIGN KEY (service_id) REFERENCES service (id)');\n $this->addSql('ALTER TABLE appointment_template ADD CONSTRAINT FK_A244944B32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id)');\n $this->addSql('ALTER TABLE appointment_template ADD CONSTRAINT FK_A244944BED5CA9E6 FOREIGN KEY (service_id) REFERENCES service (id)');\n $this->addSql('ALTER TABLE log.error_log ADD CONSTRAINT FK_F3565581C69D3FB FOREIGN KEY (usr_id) REFERENCES usr (id)');\n $this->addSql('ALTER TABLE organization ADD CONSTRAINT FK_C1EE637C727ACA70 FOREIGN KEY (parent_id) REFERENCES organization (id)');\n $this->addSql('ALTER TABLE registration ADD CONSTRAINT FK_62A8A7A7E5B533F9 FOREIGN KEY (appointment_id) REFERENCES appointment (id)');\n $this->addSql('ALTER TABLE log.request_log ADD CONSTRAINT FK_A14398BAC69D3FB FOREIGN KEY (usr_id) REFERENCES usr (id)');\n $this->addSql('ALTER TABLE service ADD CONSTRAINT FK_E19D9AD2722827A FOREIGN KEY (service_group_id) REFERENCES service_group (id)');\n $this->addSql('ALTER TABLE service_group ADD CONSTRAINT FK_C4B2A922727ACA70 FOREIGN KEY (parent_id) REFERENCES service_group (id)');\n $this->addSql('ALTER TABLE user_data ADD CONSTRAINT FK_D772BFAAA76ED395 FOREIGN KEY (user_id) REFERENCES usr (id)');\n $this->addSql('ALTER TABLE user_rights ADD CONSTRAINT FK_6432CA3EC69D3FB FOREIGN KEY (usr_id) REFERENCES usr (id)');\n $this->addSql('ALTER TABLE user_rights ADD CONSTRAINT FK_6432CA3E32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id)');\n $this->addSql('ALTER TABLE user_settings ADD CONSTRAINT FK_5C844C5C69D3FB FOREIGN KEY (usr_id) REFERENCES usr (id)');\n }", "title": "" }, { "docid": "a659f30681c8d028de36b7b6c7cfd165", "score": "0.65510833", "text": "protected function setupMigrateDatabase()\n {\n $errCode = null;\n $exec = 'php artisan october:migrate';\n $this->comment(\"Executing: {$exec}\");\n $this->output->newLine();\n\n passthru($exec, $errCode);\n\n if ($errCode !== 0) {\n $this->outputFailedOutro();\n exit(1);\n }\n }", "title": "" }, { "docid": "369a117dd522024a42628b651b1c7bc2", "score": "0.65183896", "text": "public function up()\n {\n createSchema('ClientsDB');\n Log::info('setting the environment variable');\n env('DB_DATABASE','ClientsDB');\n Schema::table('clients', function(Blueprint $table){\n Log.info('creating the table');\n $table->integer('id')->autoIncrement();\n $table->string('name');\n $table->string('emailId');\n $table->string('password');\n }); //\n }", "title": "" }, { "docid": "a508a86744b660375f914a400149eb9e", "score": "0.6498496", "text": "public function up()\n {\n Schema::create('model_history', function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->unsignedInteger('user_id')->nullable();\n $table->morphs('context');\n $table->string('link')->nullable();\n $table->string('message');\n $table->text('additional_information')->nullable();\n $table->timestamp('executed_at');\n $table->foreign('user_id')->references('id')->on('users')->onDelete('set null');\n });\n }", "title": "" }, { "docid": "c37c1daa9f9191ab46fec987d868d91a", "score": "0.64630735", "text": "public function migrateDatabase()\n {\n if ($this->databaseGeneration) {\n $commands = [\n 'Eloquent' => 'migrate',\n 'Doctrine' => 'doctrine:schema:create',\n ];\n\n $this->runCommand('php artisan ' . $commands[ $this->getORM() ]);\n }\n }", "title": "" }, { "docid": "1567eda24a37e1d124d52cc118307d40", "score": "0.6459934", "text": "public function up()\n {\n $this->table('agent_order_refund')\n ->addColumn(Column::string('order_number')->setComment('商户订单号'))\n ->addColumn(column::integer('create_time')->setComment('创建时间'))\n ->addColumn(column::decimal('order_amount_pay',10,2)->setComment('订单总金额'))\n ->addColumn(column::decimal('refund_fee',10,2)->setComment('退款总金额'))\n ->addColumn(column::integer('agent_id')->setComment('agent_id'))\n \n ->addColumn(column::tinyInteger('type')->setComment('订单类型1商品订单2礼包订单'))\n ->addColumn(column::tinyInteger('refund_type')->setComment('退款类型1退款2退货'))\n \n ->addColumn(column::integer('refund_time')->setComment('退款更新时间'))\n ->addColumn(column::tinyInteger('refund_status')->setDefault(1)->setComment('退款状态1未退款2退款成功3退款失败'))\n \n ->addColumn(column::integer('refund_pay_id')->setComment('退款支付ID'))\n ->addColumn(column::tinyInteger('refund_pay_type')->setComment('退款支付类型1是微信支付2线下支付3库存支付'))\n \n ->addColumn(column::integer('auth_time')->setComment('审核时间'))\n ->addColumn(column::tinyInteger('auth_status')->setDefault(1)->setComment('审核状态1未审核2审核通过3审核拒绝'))\n ->addColumn(column::string('author')->setComment('审核人'))\n ->addColumn(column::string('reason')->setComment('理由'))\n \n ->create();\n }", "title": "" }, { "docid": "e8ed494c21a7ab93576e498bb4a330d1", "score": "0.6447919", "text": "public function up()\r\n {\r\n $this -> loadSql(sfConfig::get(\"sf_data_dir\").\"/migrations/004_views_to_tables.sql\");\r\n }", "title": "" }, { "docid": "29c09d203e08b691f39378bc9b5ed651", "score": "0.6438063", "text": "public function up()\n {\n $this->dbforge->add_field(array(\n 'session_id' => array(\n 'type' =>'VARCHAR',\n 'constraint' => 40,\n 'default' => 0,\n 'null' => FALSE\n ),\n 'ip_address' => array(\n 'type' =>'VARCHAR',\n 'constraint' => 16,\n 'default' => 0\n ),\n 'user_agent' => array(\n 'type' =>'VARCHAR',\n 'constraint' => 120\n ),\n 'last_activity' => array(\n 'type' =>'INT',\n 'constraint' => 10,\n 'unsigned' => TRUE,\n 'default' => 0\n ),\n 'user_data' => array(\n 'type' =>'text'\n )\n ));\n\n $this->dbforge->add_key('session_id', TRUE); // primary key\n $this->dbforge->add_key('last_activity');\n \n $this->dbforge->create_table('userData');\n \n // table for user accounts\n $this->dbforge->add_field(\"id int(11) unsigned NOT NULL AUTO_INCREMENT\");\n $this->dbforge->add_field(\"email varchar(255) NOT NULL\");\n $this->dbforge->add_field(\"password varchar(255) NOT NULL\");\n \n $this->dbforge->add_key('id', TRUE);\n $this->dbforge->add_key('email');\n \n $this->dbforge->create_table('userAccount', TRUE);\n }", "title": "" }, { "docid": "d136c49d03de6a798680d696fd8cd63d", "score": "0.63797545", "text": "public function up()\n {\n // use important column for content app\n if (!$this->getSchema()->hasColumn('forum_items', 'update_time')) {\n $this->getSchema()->table('forum_items', function ($table) {\n $table->integer('update_time')->default(0);\n });\n }\n if (!$this->getSchema()->hasColumn('forum_posts', 'update_time')) {\n $this->getSchema()->table('forum_posts', function ($table) {\n $table->integer('update_time')->default(0);\n });\n }\n if (!$this->getSchema()->hasColumn('forum_threads', 'update_time')) {\n $this->getSchema()->table('forum_threads', function ($table) {\n $table->integer('update_time')->default(0);\n });\n }\n parent::up();\n }", "title": "" }, { "docid": "71c1373a668b47222096e05c129c0819", "score": "0.6369713", "text": "public function run()\n {\n \n\n \\DB::table('migrations')->delete();\n \n \\DB::table('migrations')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'migration' => '2014_10_12_000000_create_users_table',\n 'batch' => 1,\n ),\n 1 => \n array (\n 'id' => 2,\n 'migration' => '2014_10_12_100000_create_password_resets_table',\n 'batch' => 1,\n ),\n 2 => \n array (\n 'id' => 3,\n 'migration' => '2019_03_19_063441_create_chat_history',\n 'batch' => 1,\n ),\n 3 => \n array (\n 'id' => 4,\n 'migration' => '2019_03_19_064013_create_chat_channels',\n 'batch' => 1,\n ),\n 4 => \n array (\n 'id' => 5,\n 'migration' => '2019_03_19_064034_create_chat_channel_members',\n 'batch' => 1,\n ),\n 5 => \n array (\n 'id' => 6,\n 'migration' => '2019_03_20_084955_create_firebase_table',\n 'batch' => 1,\n ),\n 6 => \n array (\n 'id' => 7,\n 'migration' => '2019_03_25_070700_create_connections',\n 'batch' => 1,\n ),\n 7 => \n array (\n 'id' => 8,\n 'migration' => '2019_03_26_012125_create_connections_map',\n 'batch' => 1,\n ),\n 8 => \n array (\n 'id' => 9,\n 'migration' => '2019_03_26_025647_create_users_notification_info',\n 'batch' => 1,\n ),\n 9 => \n array (\n 'id' => 10,\n 'migration' => '2019_03_28_031019_create_roles_table',\n 'batch' => 1,\n ),\n 10 => \n array (\n 'id' => 11,\n 'migration' => '2019_03_29_072731_create_user_skills_table',\n 'batch' => 1,\n ),\n 11 => \n array (\n 'id' => 12,\n 'migration' => '2019_04_01_012426_create_companies_table',\n 'batch' => 1,\n ),\n 12 => \n array (\n 'id' => 13,\n 'migration' => '2019_04_01_012427_create_job_posts_table',\n 'batch' => 1,\n ),\n 13 => \n array (\n 'id' => 14,\n 'migration' => '2019_04_01_012427_create_work_experience_table',\n 'batch' => 1,\n ),\n 14 => \n array (\n 'id' => 15,\n 'migration' => '2019_04_01_012428_create_work_experience_positions_table',\n 'batch' => 1,\n ),\n 15 => \n array (\n 'id' => 16,\n 'migration' => '2019_04_01_012659_create_metas_table',\n 'batch' => 1,\n ),\n 16 => \n array (\n 'id' => 17,\n 'migration' => '2019_04_01_012724_create_settings_table',\n 'batch' => 1,\n ),\n 17 => \n array (\n 'id' => 18,\n 'migration' => '2019_04_01_032412_create_educations_table',\n 'batch' => 1,\n ),\n 18 => \n array (\n 'id' => 19,\n 'migration' => '2019_04_03_053930_create_worker_details_table',\n 'batch' => 1,\n ),\n 19 => \n array (\n 'id' => 20,\n 'migration' => '2019_04_03_075751_create_tickets_table',\n 'batch' => 1,\n ),\n 20 => \n array (\n 'id' => 21,\n 'migration' => '2019_04_08_094223_create_company_posts_table',\n 'batch' => 1,\n ),\n 21 => \n array (\n 'id' => 22,\n 'migration' => '2019_04_11_001950_create_ads_table',\n 'batch' => 1,\n ),\n 22 => \n array (\n 'id' => 23,\n 'migration' => '2019_04_18_144301_modify_column_names',\n 'batch' => 1,\n ),\n 23 => \n array (\n 'id' => 24,\n 'migration' => '2019_04_21_005812_create_work_experience_responsibilities',\n 'batch' => 1,\n ),\n 24 => \n array (\n 'id' => 25,\n 'migration' => '2019_04_22_020654_remove_responsibilities_field_work_experience',\n 'batch' => 1,\n ),\n 25 => \n array (\n 'id' => 26,\n 'migration' => '2019_04_24_011612_remove_is_current_field_from_work_experience_table',\n 'batch' => 1,\n ),\n 26 => \n array (\n 'id' => 27,\n 'migration' => '2019_04_25_023254_create_skills_table',\n 'batch' => 1,\n ),\n 27 => \n array (\n 'id' => 28,\n 'migration' => '2019_04_25_041201_create_skill_levels_table',\n 'batch' => 1,\n ),\n 28 => \n array (\n 'id' => 29,\n 'migration' => '2019_04_25_041430_modify_user_skills_columns',\n 'batch' => 1,\n ),\n 29 => \n array (\n 'id' => 30,\n 'migration' => '2019_04_25_102035_modify_work_experience',\n 'batch' => 1,\n ),\n 30 => \n array (\n 'id' => 31,\n 'migration' => '2019_04_25_160501_modify_work_experience_dates',\n 'batch' => 1,\n ),\n 31 => \n array (\n 'id' => 32,\n 'migration' => '2019_04_25_161223_modify_education_dates',\n 'batch' => 1,\n ),\n 32 => \n array (\n 'id' => 33,\n 'migration' => '2019_04_26_035247_add_is_current_column_to_work_experience_table',\n 'batch' => 1,\n ),\n 33 => \n array (\n 'id' => 34,\n 'migration' => '2019_04_28_231054_modify_worker_details',\n 'batch' => 1,\n ),\n 34 => \n array (\n 'id' => 35,\n 'migration' => '2019_04_28_231959_modify_worker_details_2',\n 'batch' => 1,\n ),\n 35 => \n array (\n 'id' => 36,\n 'migration' => '2019_04_30_063426_change_worker_detail_fields',\n 'batch' => 1,\n ),\n 36 => \n array (\n 'id' => 37,\n 'migration' => '2019_05_01_061719_add_education_id_to_worker_details_table',\n 'batch' => 1,\n ),\n 37 => \n array (\n 'id' => 38,\n 'migration' => '2019_05_07_005515_change_job_role_to_nullable_from_work_experience_table',\n 'batch' => 1,\n ),\n 38 => \n array (\n 'id' => 39,\n 'migration' => '2019_05_07_042243_modify_tickets_table',\n 'batch' => 1,\n ),\n 39 => \n array (\n 'id' => 40,\n 'migration' => '2019_05_07_042910_create_user_tickets_table',\n 'batch' => 1,\n ),\n 40 => \n array (\n 'id' => 41,\n 'migration' => '2019_05_09_081937_add_columns_in_companies_table',\n 'batch' => 1,\n ),\n 41 => \n array (\n 'id' => 42,\n 'migration' => '2019_05_14_024711_create_job_requirements_table',\n 'batch' => 1,\n ),\n 42 => \n array (\n 'id' => 43,\n 'migration' => '2019_05_14_024759_create_job_responsibilities_table',\n 'batch' => 1,\n ),\n 43 => \n array (\n 'id' => 44,\n 'migration' => '2019_05_14_055431_create_administrators_table',\n 'batch' => 1,\n ),\n 44 => \n array (\n 'id' => 45,\n 'migration' => '2019_05_15_030258_create_company_specialization',\n 'batch' => 1,\n ),\n 45 => \n array (\n 'id' => 46,\n 'migration' => '2019_05_28_072835_create_company_tiers_table',\n 'batch' => 1,\n ),\n 46 => \n array (\n 'id' => 47,\n 'migration' => '2019_05_28_075443_create_company_main_functions_table',\n 'batch' => 1,\n ),\n 47 => \n array (\n 'id' => 48,\n 'migration' => '2019_05_28_075505_create_company_secondary_functions_table',\n 'batch' => 1,\n ),\n 48 => \n array (\n 'id' => 49,\n 'migration' => '2019_05_29_010731_create_company_business_types_table',\n 'batch' => 1,\n ),\n 49 => \n array (\n 'id' => 50,\n 'migration' => '2019_06_07_023001_create_bookmarks_table',\n 'batch' => 1,\n ),\n 50 => \n array (\n 'id' => 51,\n 'migration' => '2019_06_11_034927_create_job_roles_table',\n 'batch' => 1,\n ),\n 51 => \n array (\n 'id' => 52,\n 'migration' => '2019_06_18_030358_create_worker_areas_table',\n 'batch' => 1,\n ),\n 52 => \n array (\n 'id' => 53,\n 'migration' => '2019_06_18_030605_create_worker_tiers_table',\n 'batch' => 1,\n ),\n 53 => \n array (\n 'id' => 54,\n 'migration' => '2019_06_19_052808_add_columns_to_worker_details_table',\n 'batch' => 1,\n ),\n 54 => \n array (\n 'id' => 55,\n 'migration' => '2019_06_20_042840_add_columns_to_users',\n 'batch' => 1,\n ),\n 55 => \n array (\n 'id' => 56,\n 'migration' => '2019_06_20_061452_create_courses_table',\n 'batch' => 1,\n ),\n 56 => \n array (\n 'id' => 57,\n 'migration' => '2019_06_28_003116_make_unique_worker_details_table',\n 'batch' => 1,\n ),\n 57 => \n array (\n 'id' => 58,\n 'migration' => '2019_07_03_003846_create_schools_table',\n 'batch' => 1,\n ),\n 58 => \n array (\n 'id' => 59,\n 'migration' => '2019_07_03_035120_add_columns_to_educations_table',\n 'batch' => 1,\n ),\n 59 => \n array (\n 'id' => 60,\n 'migration' => '2019_07_03_051930_modify_description_in_tickets',\n 'batch' => 1,\n ),\n 60 => \n array (\n 'id' => 61,\n 'migration' => '2019_07_08_030309_create_company_main_function_answers_table',\n 'batch' => 1,\n ),\n 61 => \n array (\n 'id' => 62,\n 'migration' => '2019_08_26_070856_create_job_post_applicants',\n 'batch' => 1,\n ),\n 62 => \n array (\n 'id' => 63,\n 'migration' => '2019_08_27_050900_add_status_and_template_name_columns_for_job_posts_table',\n 'batch' => 1,\n ),\n 63 => \n array (\n 'id' => 64,\n 'migration' => '2019_08_27_062939_add_template_id_colum_from_job_posts_table',\n 'batch' => 1,\n ),\n 64 => \n array (\n 'id' => 65,\n 'migration' => '2019_08_30_035822_add_project_size_column_to_users_table',\n 'batch' => 1,\n ),\n 65 => \n array (\n 'id' => 66,\n 'migration' => '2019_09_01_005040_create_job_post_stats_table',\n 'batch' => 1,\n ),\n 66 => \n array (\n 'id' => 67,\n 'migration' => '2019_09_03_103504_add_softdelete_to_job_posts_table',\n 'batch' => 1,\n ),\n 67 => \n array (\n 'id' => 68,\n 'migration' => '2019_09_05_083425_modify_template_name_in_job_posts',\n 'batch' => 1,\n ),\n 68 => \n array (\n 'id' => 69,\n 'migration' => '2019_10_07_035640_modify_job_post_applicants_table',\n 'batch' => 2,\n ),\n 69 => \n array (\n 'id' => 70,\n 'migration' => '2019_10_22_073045_add_salary_type_field_job_posts_table',\n 'batch' => 3,\n ),\n 70 => \n array (\n 'id' => 71,\n 'migration' => '2019_10_22_075951_add_params_field_to_worker_details_table',\n 'batch' => 3,\n ),\n 71 => \n array (\n 'id' => 72,\n 'migration' => '2019_10_23_005425_change_params_col_from_worker_details_table',\n 'batch' => 4,\n ),\n 72 => \n array (\n 'id' => 73,\n 'migration' => '2019_10_28_084314_create_cache_table',\n 'batch' => 5,\n ),\n 73 => \n array (\n 'id' => 74,\n 'migration' => '2019_10_30_125756_add_params_field_to_job_posts',\n 'batch' => 5,\n ),\n 74 => \n array (\n 'id' => 75,\n 'migration' => '2019_11_22_133304_add_unique_cols_to_worker_tiers_table',\n 'batch' => 6,\n ),\n 75 => \n array (\n 'id' => 76,\n 'migration' => '2019_11_22_141707_add_unique_cols_to_worker_areas_table',\n 'batch' => 6,\n ),\n 76 => \n array (\n 'id' => 77,\n 'migration' => '2019_12_02_035255_add_deleted_at_col_to_users_companies_workerdetailstables',\n 'batch' => 7,\n ),\n 77 => \n array (\n 'id' => 78,\n 'migration' => '2019_12_29_035521_create_messages_table',\n 'batch' => 8,\n ),\n 78 => \n array (\n 'id' => 79,\n 'migration' => '2020_01_02_053812_chat_request',\n 'batch' => 8,\n ),\n 79 => \n array (\n 'id' => 80,\n 'migration' => '2020_01_13_042355_add_message_type_to_chat_history_table',\n 'batch' => 8,\n ),\n 80 => \n array (\n 'id' => 81,\n 'migration' => '2020_01_15_041737_add_day_labour_to_worker_details',\n 'batch' => 8,\n ),\n 81 => \n array (\n 'id' => 82,\n 'migration' => '2020_01_15_223523_add_job_type_to_job_posts',\n 'batch' => 8,\n ),\n 82 => \n array (\n 'id' => 83,\n 'migration' => '2020_01_20_014733_create_trade_list',\n 'batch' => 8,\n ),\n 83 => \n array (\n 'id' => 84,\n 'migration' => '2020_01_20_014830_create_trade_list_parent',\n 'batch' => 8,\n ),\n 84 => \n array (\n 'id' => 85,\n 'migration' => '2020_01_20_014951_create_job_daylabour_booking',\n 'batch' => 8,\n ),\n 85 => \n array (\n 'id' => 86,\n 'migration' => '2020_01_20_015024_create_job_daylabour_details',\n 'batch' => 8,\n ),\n 86 => \n array (\n 'id' => 87,\n 'migration' => '2020_01_20_015042_create_job_daylabour_shift_records',\n 'batch' => 8,\n ),\n 87 => \n array (\n 'id' => 88,\n 'migration' => '2020_01_20_015107_create_job_dispute_channel',\n 'batch' => 8,\n ),\n 88 => \n array (\n 'id' => 89,\n 'migration' => '2020_01_20_015127_create_job_dispute_history',\n 'batch' => 8,\n ),\n 89 => \n array (\n 'id' => 90,\n 'migration' => '2020_01_20_015148_create_user_ratings',\n 'batch' => 8,\n ),\n 90 => \n array (\n 'id' => 91,\n 'migration' => '2020_01_20_015212_create_calendar_unavailability',\n 'batch' => 8,\n ),\n 91 => \n array (\n 'id' => 92,\n 'migration' => '2020_01_20_015234_create_transactions',\n 'batch' => 8,\n ),\n 92 => \n array (\n 'id' => 93,\n 'migration' => '2020_01_20_015409_add_selected_to_job_post_applicants',\n 'batch' => 8,\n ),\n 93 => \n array (\n 'id' => 94,\n 'migration' => '2020_01_20_015439_add_night_shift_wallet_balance_to_worker_details',\n 'batch' => 8,\n ),\n 94 => \n array (\n 'id' => 95,\n 'migration' => '2020_01_26_041331_change_job_daylabour_details_datetime_to_date',\n 'batch' => 8,\n ),\n 95 => \n array (\n 'id' => 96,\n 'migration' => '2020_01_27_094831_add_table_job_daylabour_requirements',\n 'batch' => 8,\n ),\n 96 => \n array (\n 'id' => 97,\n 'migration' => '2020_01_28_010852_add_table_worker_daylabour_details',\n 'batch' => 8,\n ),\n 97 => \n array (\n 'id' => 98,\n 'migration' => '2020_02_03_021809_create_notifications_table',\n 'batch' => 8,\n ),\n 98 => \n array (\n 'id' => 99,\n 'migration' => '2020_02_11_050604_update_worker_details_change_profile_description_length',\n 'batch' => 8,\n ),\n 99 => \n array (\n 'id' => 100,\n 'migration' => '2020_02_12_004611_worker_details_add_english_skill_competency',\n 'batch' => 8,\n ),\n 100 => \n array (\n 'id' => 101,\n 'migration' => '2020_02_24_024433_add_seen_by_to_chat_history',\n 'batch' => 9,\n ),\n 101 => \n array (\n 'id' => 102,\n 'migration' => '2020_02_19_023249_add_duration_to_work_experience',\n 'batch' => 10,\n ),\n 102 => \n array (\n 'id' => 103,\n 'migration' => '2020_02_25_120148_worker_details_add_drive_manual_confirmation',\n 'batch' => 11,\n ),\n 103 => \n array (\n 'id' => 104,\n 'migration' => '2020_07_05_223232_users_add_training_provider',\n 'batch' => 12,\n ),\n 104 => \n array (\n 'id' => 105,\n 'migration' => '2020_07_06_041436_job_requirements_add_whitecard_field',\n 'batch' => 13,\n ),\n 105 => \n array (\n 'id' => 106,\n 'migration' => '2020_09_30_172004_create_administrators_table',\n 'batch' => 0,\n ),\n 106 => \n array (\n 'id' => 107,\n 'migration' => '2020_09_30_172004_create_ads_table',\n 'batch' => 0,\n ),\n 107 => \n array (\n 'id' => 108,\n 'migration' => '2020_09_30_172004_create_bookmarks_table',\n 'batch' => 0,\n ),\n 108 => \n array (\n 'id' => 109,\n 'migration' => '2020_09_30_172004_create_cache_table',\n 'batch' => 0,\n ),\n 109 => \n array (\n 'id' => 110,\n 'migration' => '2020_09_30_172004_create_calendar_unavailability_table',\n 'batch' => 0,\n ),\n 110 => \n array (\n 'id' => 111,\n 'migration' => '2020_09_30_172004_create_chat_channel_members_table',\n 'batch' => 0,\n ),\n 111 => \n array (\n 'id' => 112,\n 'migration' => '2020_09_30_172004_create_chat_channels_table',\n 'batch' => 0,\n ),\n 112 => \n array (\n 'id' => 113,\n 'migration' => '2020_09_30_172004_create_chat_history_table',\n 'batch' => 0,\n ),\n 113 => \n array (\n 'id' => 114,\n 'migration' => '2020_09_30_172004_create_chat_request_table',\n 'batch' => 0,\n ),\n 114 => \n array (\n 'id' => 115,\n 'migration' => '2020_09_30_172004_create_companies_table',\n 'batch' => 0,\n ),\n 115 => \n array (\n 'id' => 116,\n 'migration' => '2020_09_30_172004_create_company_business_types_table',\n 'batch' => 0,\n ),\n 116 => \n array (\n 'id' => 117,\n 'migration' => '2020_09_30_172004_create_company_main_function_answers_table',\n 'batch' => 0,\n ),\n 117 => \n array (\n 'id' => 118,\n 'migration' => '2020_09_30_172004_create_company_main_functions_table',\n 'batch' => 0,\n ),\n 118 => \n array (\n 'id' => 119,\n 'migration' => '2020_09_30_172004_create_company_posts_table',\n 'batch' => 0,\n ),\n 119 => \n array (\n 'id' => 120,\n 'migration' => '2020_09_30_172004_create_company_secondary_functions_table',\n 'batch' => 0,\n ),\n 120 => \n array (\n 'id' => 121,\n 'migration' => '2020_09_30_172004_create_company_specialization_table',\n 'batch' => 0,\n ),\n 121 => \n array (\n 'id' => 122,\n 'migration' => '2020_09_30_172004_create_company_tiers_table',\n 'batch' => 0,\n ),\n 122 => \n array (\n 'id' => 123,\n 'migration' => '2020_09_30_172004_create_connections_table',\n 'batch' => 0,\n ),\n 123 => \n array (\n 'id' => 124,\n 'migration' => '2020_09_30_172004_create_connections_map_table',\n 'batch' => 0,\n ),\n 124 => \n array (\n 'id' => 125,\n 'migration' => '2020_09_30_172004_create_courses_table',\n 'batch' => 0,\n ),\n 125 => \n array (\n 'id' => 126,\n 'migration' => '2020_09_30_172004_create_educations_table',\n 'batch' => 0,\n ),\n 126 => \n array (\n 'id' => 127,\n 'migration' => '2020_09_30_172004_create_job_daylabour_booking_table',\n 'batch' => 0,\n ),\n 127 => \n array (\n 'id' => 128,\n 'migration' => '2020_09_30_172004_create_job_daylabour_details_table',\n 'batch' => 0,\n ),\n 128 => \n array (\n 'id' => 129,\n 'migration' => '2020_09_30_172004_create_job_daylabour_requirements_table',\n 'batch' => 0,\n ),\n 129 => \n array (\n 'id' => 130,\n 'migration' => '2020_09_30_172004_create_job_daylabour_shift_records_table',\n 'batch' => 0,\n ),\n 130 => \n array (\n 'id' => 131,\n 'migration' => '2020_09_30_172004_create_job_dispute_channel_table',\n 'batch' => 0,\n ),\n 131 => \n array (\n 'id' => 132,\n 'migration' => '2020_09_30_172004_create_job_dispute_history_table',\n 'batch' => 0,\n ),\n 132 => \n array (\n 'id' => 133,\n 'migration' => '2020_09_30_172004_create_job_post_applicants_table',\n 'batch' => 0,\n ),\n 133 => \n array (\n 'id' => 134,\n 'migration' => '2020_09_30_172004_create_job_post_stats_table',\n 'batch' => 0,\n ),\n 134 => \n array (\n 'id' => 135,\n 'migration' => '2020_09_30_172004_create_job_posts_table',\n 'batch' => 0,\n ),\n 135 => \n array (\n 'id' => 136,\n 'migration' => '2020_09_30_172004_create_job_requirements_table',\n 'batch' => 0,\n ),\n 136 => \n array (\n 'id' => 137,\n 'migration' => '2020_09_30_172004_create_job_responsibilities_table',\n 'batch' => 0,\n ),\n 137 => \n array (\n 'id' => 138,\n 'migration' => '2020_09_30_172004_create_job_roles_table',\n 'batch' => 0,\n ),\n 138 => \n array (\n 'id' => 139,\n 'migration' => '2020_09_30_172004_create_levels_table',\n 'batch' => 0,\n ),\n 139 => \n array (\n 'id' => 140,\n 'migration' => '2020_09_30_172004_create_messages_table',\n 'batch' => 0,\n ),\n 140 => \n array (\n 'id' => 141,\n 'migration' => '2020_09_30_172004_create_metas_table',\n 'batch' => 0,\n ),\n 141 => \n array (\n 'id' => 142,\n 'migration' => '2020_09_30_172004_create_notifications_table',\n 'batch' => 0,\n ),\n 142 => \n array (\n 'id' => 143,\n 'migration' => '2020_09_30_172004_create_password_resets_table',\n 'batch' => 0,\n ),\n 143 => \n array (\n 'id' => 144,\n 'migration' => '2020_09_30_172004_create_roles_table',\n 'batch' => 0,\n ),\n 144 => \n array (\n 'id' => 145,\n 'migration' => '2020_09_30_172004_create_schools_table',\n 'batch' => 0,\n ),\n 145 => \n array (\n 'id' => 146,\n 'migration' => '2020_09_30_172004_create_settings_table',\n 'batch' => 0,\n ),\n 146 => \n array (\n 'id' => 147,\n 'migration' => '2020_09_30_172004_create_skills_table',\n 'batch' => 0,\n ),\n 147 => \n array (\n 'id' => 148,\n 'migration' => '2020_09_30_172004_create_tickets_table',\n 'batch' => 0,\n ),\n 148 => \n array (\n 'id' => 149,\n 'migration' => '2020_09_30_172004_create_trade_list_table',\n 'batch' => 0,\n ),\n 149 => \n array (\n 'id' => 150,\n 'migration' => '2020_09_30_172004_create_trade_list_parent_table',\n 'batch' => 0,\n ),\n 150 => \n array (\n 'id' => 151,\n 'migration' => '2020_09_30_172004_create_transactions_table',\n 'batch' => 0,\n ),\n 151 => \n array (\n 'id' => 152,\n 'migration' => '2020_09_30_172004_create_user_ratings_table',\n 'batch' => 0,\n ),\n 152 => \n array (\n 'id' => 153,\n 'migration' => '2020_09_30_172004_create_user_skills_table',\n 'batch' => 0,\n ),\n 153 => \n array (\n 'id' => 154,\n 'migration' => '2020_09_30_172004_create_user_tickets_table',\n 'batch' => 0,\n ),\n 154 => \n array (\n 'id' => 155,\n 'migration' => '2020_09_30_172004_create_users_table',\n 'batch' => 0,\n ),\n 155 => \n array (\n 'id' => 156,\n 'migration' => '2020_09_30_172004_create_users_firebase_table',\n 'batch' => 0,\n ),\n 156 => \n array (\n 'id' => 157,\n 'migration' => '2020_09_30_172004_create_users_notification_info_table',\n 'batch' => 0,\n ),\n 157 => \n array (\n 'id' => 158,\n 'migration' => '2020_09_30_172004_create_work_experience_table',\n 'batch' => 0,\n ),\n 158 => \n array (\n 'id' => 159,\n 'migration' => '2020_09_30_172004_create_work_experience_positions_table',\n 'batch' => 0,\n ),\n 159 => \n array (\n 'id' => 160,\n 'migration' => '2020_09_30_172004_create_work_experience_responsibilities_table',\n 'batch' => 0,\n ),\n 160 => \n array (\n 'id' => 161,\n 'migration' => '2020_09_30_172004_create_worker_areas_table',\n 'batch' => 0,\n ),\n 161 => \n array (\n 'id' => 162,\n 'migration' => '2020_09_30_172004_create_worker_daylabour_details_table',\n 'batch' => 0,\n ),\n 162 => \n array (\n 'id' => 163,\n 'migration' => '2020_09_30_172004_create_worker_details_table',\n 'batch' => 0,\n ),\n 163 => \n array (\n 'id' => 164,\n 'migration' => '2020_09_30_172004_create_worker_tiers_table',\n 'batch' => 0,\n ),\n 164 => \n array (\n 'id' => 165,\n 'migration' => '2020_09_30_172007_add_foreign_keys_to_administrators_table',\n 'batch' => 0,\n ),\n 165 => \n array (\n 'id' => 166,\n 'migration' => '2020_09_30_172007_add_foreign_keys_to_job_post_applicants_table',\n 'batch' => 0,\n ),\n 166 => \n array (\n 'id' => 167,\n 'migration' => '2020_09_30_172007_add_foreign_keys_to_job_post_stats_table',\n 'batch' => 0,\n ),\n 167 => \n array (\n 'id' => 168,\n 'migration' => '2020_09_30_172007_add_foreign_keys_to_messages_table',\n 'batch' => 0,\n ),\n 168 => \n array (\n 'id' => 169,\n 'migration' => '2020_09_30_172007_add_foreign_keys_to_user_skills_table',\n 'batch' => 0,\n ),\n ));\n \n \n }", "title": "" }, { "docid": "aa7d8d682536b1d884db099b0a5eeadb", "score": "0.6356426", "text": "public function initDatabase()\n {\n $this->call('migrate');\n $this->call('vendor:publish', ['--provider'=> \"LTTools\\Extension\\LaravelServiceProvider\"]);\n $this->call('vendor:publish', ['--provider'=> \"WebConsole\\Extension\\LaravelServiceProvider\"]);\n $this->call('vendor:publish',['--provider' => \"Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider\"]);\n $this->call('vendor:publish', ['--provider'=> \"LTBackup\\Extension\\LaravelServiceProvider\"]);\n $this->call('db:seed', ['--class' => LTToolsDatabaseSeeder::class]);\n }", "title": "" }, { "docid": "7828a423883dbdba6e0637a9ed6d6bb4", "score": "0.6351352", "text": "public function up()\n\t{\n\t\tSchema::create('revenue_stats',function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->string('account_code');\n\t\t\t$table->string('uuid');\n\t\t\t$table->string('invoice_id');\n\t\t\t$table->integer('invoice_number');\n\t\t\t$table->string('subscription_id');\n\t\t\t$table->decimal('amount', 10, 2);\n\t\t\t$table->date('transaction_date');\n\t\t\t$table->timestamps();\n\n\t\t});\n\t}", "title": "" }, { "docid": "80cd9c5ec3552959c63373ecc38bc388", "score": "0.63482416", "text": "public function up()\n {\n $loanList = file_get_contents(\"/app/loans.json\");\n //json to array\n $loanList = json_decode($loanList, true);\n\n foreach ($loanList as $loan):\n $keys = array();\n $loanAllData = array();\n foreach ($loan as $key => $data):\n $keys[] = $key;\n if ($key == 'start_date' || $key == 'end_date'):\n //convert UNIX time to datetime\n $dateTime = new DateTime(\"@$data\");\n $loanAllData[] = $dateTime->format('Y-m-d');\n else:\n $loanAllData[] = $data;\n endif;\n endforeach;\n $loans[] = $loanAllData;\n endforeach;\n // insert loan data db\n $this->batchInsert('loan', $keys, $loans);\n }", "title": "" }, { "docid": "1cccb4d2ea2ae4dd2ec0772dc1f05383", "score": "0.6346242", "text": "public static function up()\n {\n DB::table(self::NAME)\n ->create(function (DBTableBuilder $table) {\n $table->field('id')->int()->increment();\n $table->field('userid')->int();\n $table->field('orgid')->int();\n $table->field('name')->varchar();\n $table->field('insurance_parameter')->varchar();\n $table->field('quantity')->varchar();\n $table->field('content')->varchar();\n $table->field('start_date')->datetime();\n $table->field('end_date')->datetime();\n $table->field('expected_number_inspection')->varchar();\n $table->field('insurance_cost')->varchar();\n $table->field('insurance_terms')->varchar();\n $table->field('category')->varchar();\n $table->field('officer_name')->varchar();\n $table->field('company_name')->varchar();\n $table->field('purpose')->varchar();\n $table->field('total_cost')->varchar();\n $table->field('application_date')->varchar();\n $table->field('inspection_date')->varchar();\n $table->field('insurance_approval_date')->varchar();\n $table->field('insurance_state')->varchar();\n $table->field('insurance_branch')->varchar();\n $table->field('insurance_relationship_officer')->varchar();\n $table->field('duration')->varchar();\n });\n }", "title": "" }, { "docid": "b9fc88d65a19470d17a3305e4816ee43", "score": "0.6337347", "text": "public static function migrate(): void\n {\n $list = [\n RoleTable::class,\n UserTable::class\n ];\n\n foreach ($list as $item) {\n $item::migrate();\n }\n\n echo 'All migrations have been executed.';\n }", "title": "" }, { "docid": "72730bc1f28bb1c0946e5b987b40d2d1", "score": "0.6332705", "text": "public function up()\n\t{\n\t\tSchema::create('student_activity', function($table){\n\t\t\t$table->engine = 'InnoDB';\n\t\t\t$table->increments('student_activity_id');\n\t\t\t$table->integer('student_id')->unsigned();\n\t\t\t$table->string('title',45);\n\t\t\t$table->string('description',200)->nullable;\n\t\t\t$table->timestamp('start_time')->nullable;\n\t\t\t$table->timestamp('end_time')->nullable;\n\t\t\t$table->timestamps();\n\t\t\t$table->foreign('student_id')->references('student_id')->on('student')->on_delete('cascade');\n\t\t});\n\t\t//\n\t}", "title": "" }, { "docid": "e1bc1ada1f374ad7b13a312d36726788", "score": "0.63210565", "text": "public function up(Schema $schema)\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \\'postgresql\\'.');\n\n $this->addSql('CREATE SEQUENCE email_log_log_id_seq INCREMENT BY 1 MINVALUE 1 START 1');\n $this->addSql('CREATE TABLE email_log (log_id INT NOT NULL, user_id INT DEFAULT NULL, client_id INT DEFAULT NULL, invoice_id INT DEFAULT NULL, created_date TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, message TEXT NOT NULL, script VARCHAR(100) DEFAULT NULL, status INT NOT NULL, sender VARCHAR(320) NOT NULL, recipient VARCHAR(320) NOT NULL, subject VARCHAR(255) DEFAULT NULL, body TEXT DEFAULT NULL, attachments TEXT DEFAULT NULL, failed_recipients TEXT DEFAULT NULL, PRIMARY KEY(log_id))');\n $this->addSql('CREATE INDEX IDX_6FB4883A76ED395 ON email_log (user_id)');\n $this->addSql('CREATE INDEX IDX_6FB488319EB6921 ON email_log (client_id)');\n $this->addSql('CREATE INDEX IDX_6FB48832989F1FD ON email_log (invoice_id)');\n $this->addSql('ALTER TABLE email_log ADD CONSTRAINT FK_6FB4883A76ED395 FOREIGN KEY (user_id) REFERENCES \"user\" (user_id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n $this->addSql('ALTER TABLE email_log ADD CONSTRAINT FK_6FB488319EB6921 FOREIGN KEY (client_id) REFERENCES client (client_id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n $this->addSql('ALTER TABLE email_log ADD CONSTRAINT FK_6FB48832989F1FD FOREIGN KEY (invoice_id) REFERENCES invoice (invoice_id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n }", "title": "" }, { "docid": "285397e544774bfdc9bc9bf8d6045d09", "score": "0.6300955", "text": "public function runDatabaseMigrations()\n {\n $this->artisan('migrate');\n $this->artisan('module:migrate');\n\n $this->app[Kernel::class]->setArtisan(null);\n\n $this->beforeApplicationDestroyed(function () {\n $this->artisan('module:migrate-rollback');\n $this->artisan('migrate:rollback');\n });\n }", "title": "" }, { "docid": "f57d5c0affd31a716d12e1558da15263", "score": "0.6296476", "text": "public function run()\n {\n \n\n \\DB::table('migrations')->delete();\n \n \\DB::table('migrations')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'migration' => '2017_08_01_141233_create_permission_tables',\n 'batch' => 1,\n ),\n 1 => \n array (\n 'id' => 2,\n 'migration' => '2019_04_22_161443_create_brands_table',\n 'batch' => 1,\n ),\n 2 => \n array (\n 'id' => 3,\n 'migration' => '2019_04_22_161443_create_categories_table',\n 'batch' => 1,\n ),\n 3 => \n array (\n 'id' => 4,\n 'migration' => '2019_04_22_161443_create_countries_table',\n 'batch' => 1,\n ),\n 4 => \n array (\n 'id' => 5,\n 'migration' => '2019_04_22_161443_create_delete_all_flags_table',\n 'batch' => 1,\n ),\n 5 => \n array (\n 'id' => 6,\n 'migration' => '2019_04_22_161443_create_languages_table',\n 'batch' => 1,\n ),\n 6 => \n array (\n 'id' => 7,\n 'migration' => '2019_04_22_161443_create_operators_table',\n 'batch' => 1,\n ),\n 7 => \n array (\n 'id' => 8,\n 'migration' => '2019_04_22_161443_create_password_resets_table',\n 'batch' => 1,\n ),\n 8 => \n array (\n 'id' => 9,\n 'migration' => '2019_04_22_161443_create_permissions_table',\n 'batch' => 1,\n ),\n 9 => \n array (\n 'id' => 10,\n 'migration' => '2019_04_22_161443_create_posts_table',\n 'batch' => 1,\n ),\n 10 => \n array (\n 'id' => 11,\n 'migration' => '2019_04_22_161443_create_product_images_table',\n 'batch' => 1,\n ),\n 11 => \n array (\n 'id' => 12,\n 'migration' => '2019_04_22_161443_create_products_table',\n 'batch' => 1,\n ),\n 12 => \n array (\n 'id' => 13,\n 'migration' => '2019_04_22_161443_create_relations_table',\n 'batch' => 1,\n ),\n 13 => \n array (\n 'id' => 14,\n 'migration' => '2019_04_22_161443_create_role_has_permissions_table',\n 'batch' => 1,\n ),\n 14 => \n array (\n 'id' => 15,\n 'migration' => '2019_04_22_161443_create_role_route_table',\n 'batch' => 1,\n ),\n 15 => \n array (\n 'id' => 16,\n 'migration' => '2019_04_22_161443_create_roles_table',\n 'batch' => 1,\n ),\n 16 => \n array (\n 'id' => 17,\n 'migration' => '2019_04_22_161443_create_routes_table',\n 'batch' => 1,\n ),\n 17 => \n array (\n 'id' => 18,\n 'migration' => '2019_04_22_161443_create_scaffoldinterfaces_table',\n 'batch' => 1,\n ),\n 18 => \n array (\n 'id' => 19,\n 'migration' => '2019_04_22_161443_create_settings_table',\n 'batch' => 1,\n ),\n 19 => \n array (\n 'id' => 20,\n 'migration' => '2019_04_22_161443_create_static_bodies_table',\n 'batch' => 1,\n ),\n 20 => \n array (\n 'id' => 21,\n 'migration' => '2019_04_22_161443_create_static_translations_table',\n 'batch' => 1,\n ),\n 21 => \n array (\n 'id' => 22,\n 'migration' => '2019_04_22_161443_create_tans_bodies_table',\n 'batch' => 1,\n ),\n 22 => \n array (\n 'id' => 23,\n 'migration' => '2019_04_22_161443_create_translatables_table',\n 'batch' => 1,\n ),\n 23 => \n array (\n 'id' => 24,\n 'migration' => '2019_04_22_161443_create_types_table',\n 'batch' => 1,\n ),\n 24 => \n array (\n 'id' => 25,\n 'migration' => '2019_04_22_161443_create_user_has_permissions_table',\n 'batch' => 1,\n ),\n 25 => \n array (\n 'id' => 26,\n 'migration' => '2019_04_22_161443_create_user_has_roles_table',\n 'batch' => 1,\n ),\n 26 => \n array (\n 'id' => 27,\n 'migration' => '2019_04_22_161443_create_users_table',\n 'batch' => 1,\n ),\n 27 => \n array (\n 'id' => 28,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_categories_table',\n 'batch' => 1,\n ),\n 28 => \n array (\n 'id' => 29,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_delete_all_flags_table',\n 'batch' => 1,\n ),\n 29 => \n array (\n 'id' => 30,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_operators_table',\n 'batch' => 1,\n ),\n 30 => \n array (\n 'id' => 31,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_posts_table',\n 'batch' => 1,\n ),\n 31 => \n array (\n 'id' => 32,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_product_images_table',\n 'batch' => 1,\n ),\n 32 => \n array (\n 'id' => 33,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_products_table',\n 'batch' => 1,\n ),\n 33 => \n array (\n 'id' => 34,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_relations_table',\n 'batch' => 1,\n ),\n 34 => \n array (\n 'id' => 35,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_role_has_permissions_table',\n 'batch' => 1,\n ),\n 35 => \n array (\n 'id' => 36,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_role_route_table',\n 'batch' => 1,\n ),\n 36 => \n array (\n 'id' => 37,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_settings_table',\n 'batch' => 1,\n ),\n 37 => \n array (\n 'id' => 38,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_static_bodies_table',\n 'batch' => 1,\n ),\n 38 => \n array (\n 'id' => 39,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_tans_bodies_table',\n 'batch' => 1,\n ),\n 39 => \n array (\n 'id' => 40,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_user_has_permissions_table',\n 'batch' => 1,\n ),\n 40 => \n array (\n 'id' => 41,\n 'migration' => '2019_04_22_161445_add_foreign_keys_to_user_has_roles_table',\n 'batch' => 1,\n ),\n 41 => \n array (\n 'id' => 42,\n 'migration' => '2019_09_05_124839_create_clients_table',\n 'batch' => 1,\n ),\n 42 => \n array (\n 'id' => 43,\n 'migration' => '2019_09_05_124948_create_governorates_table',\n 'batch' => 1,\n ),\n 43 => \n array (\n 'id' => 44,\n 'migration' => '2019_09_05_125013_create_cities_table',\n 'batch' => 1,\n ),\n 44 => \n array (\n 'id' => 45,\n 'migration' => '2019_09_05_125056_create_client_addresses_table',\n 'batch' => 1,\n ),\n 45 => \n array (\n 'id' => 46,\n 'migration' => '2019_09_05_141028_create_client_rates_table',\n 'batch' => 2,\n ),\n 46 => \n array (\n 'id' => 47,\n 'migration' => '2019_09_10_131421_create_contacts_table',\n 'batch' => 3,\n ),\n ));\n \n \n }", "title": "" }, { "docid": "aaa30199bd90e7c9b12886e795f6ab85", "score": "0.6282342", "text": "public function migrate(){\n Artisan::call(\"migrate\");\n }", "title": "" }, { "docid": "8fc434288961d7539f9ec96b4a818cc3", "score": "0.62710047", "text": "public function up()\n\t{\n\n\t\t$iMaxUserId = (new \\yii\\db\\Query())\n\t\t\t->from('Users')\n\t\t\t->max('\"userId\"');\n\n\t\t$this->execute('ALTER SEQUENCE \"Users_userId_seq\" RESTART WITH ' . ++$iMaxUserId);\n\n\t\t$iMaxLoanId = (new \\yii\\db\\Query())\n\t\t\t->from('Loans')\n\t\t\t->max('\"loanId\"');\n\n\t\t$this->execute('ALTER SEQUENCE \"Loans_loanId_seq\" RESTART WITH ' . ++$iMaxLoanId);\n\t}", "title": "" }, { "docid": "1881f579a918185c263d686f6e4eccef", "score": "0.62527424", "text": "public function migrate() {\n /**\n * create table for sentinel user\n */\n if (!Capsule::schema()->hasTable('users')) {\n Capsule::schema()->create('users', function($table)\n {\n $table->increments('id');\n $table->string('email');\n $table->string('password');\n $table->text('permissions');\n $table->timestamp('last_login')->nullable();\n $table->string('first_name')->nullable();\n $table->string('last_name')->nullable();\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n $table->unique('email');\n $table->index('first_name');\n $table->index('last_name');\n });\n }\n\n /**\n * create table for sentinel activations\n */\n if (!Capsule::schema()->hasTable('activations')) {\n Capsule::schema()->create('activations', function($table)\n {\n $table->increments('id');\n $table->integer('user_id');\n $table->string('code')->nullable();\n $table->tinyInteger('completed')->default(0);\n $table->timestamp('completed_at')->nullable();\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n $table->unique('user_id');\n });\n }\n\n /**\n * create persistences table\n */\n if (!Capsule::schema()->hasTable('persistences')) {\n Capsule::schema()->create('persistences', function($table)\n {\n\t\t\t\t$table->increments('id');\n $table->integer('user_id');\n $table->string('code');\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n\t\t\t\t$table->unique('code');\n });\n }\n\t\t\n\t\t/**\n * create reminders table\n */\n if (!Capsule::schema()->hasTable('reminders')) {\n Capsule::schema()->create('reminders', function($table)\n {\n\t\t\t\t$table->increments('id');\n $table->integer('user_id');\n $table->string('code');\n $table->tinyInteger('completed')->default(0);\n $table->timestamp('completed_at');\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n });\n }\n\t\t\n\t\t/**\n * create roles table\n */\n if (!Capsule::schema()->hasTable('roles')) {\n Capsule::schema()->create('roles', function($table)\n {\n\t\t\t\t$table->increments('id');\n $table->string('slug');\n $table->string('name');\n $table->text('permissions');\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n\t\t\t\t$table->unique('slug');\n });\n }\n\t\t\n\t\t/**\n * create role_users table\n */\n if (!Capsule::schema()->hasTable('role_users')) {\n Capsule::schema()->create('role_users', function($table)\n {\n\t\t\t\t$table->integer('user_id');\n $table->integer('role_id');\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n $table->primary(array('user_id', 'role_id'));\n });\n }\n\n /**\n * create throttle table\n */\n if (!Capsule::schema()->hasTable('throttle')) {\n Capsule::schema()->create('throttle', function($table)\n {\n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->string('type');\n $table->string('ip')->nullable();\n $table->timestamps();\n\n // We'll need to ensure that MySQL uses the InnoDB engine to\n // support the indexes, other engines aren't affected.\n $table->engine = 'InnoDB';\n $table->unique('user_id');\n });\n }\n }", "title": "" }, { "docid": "6cff24945c824a8dbd8c065e90a02da7", "score": "0.6248363", "text": "public function up()\n { \n // Create Users Table\n $this->schema->create('users', function (Blueprint $table) {\n $table->increments('id');\n $table->string('email')->unique();\n $table->string('username')->unique();\n $table->string('password');\n $table->string('last_name')->nullable();\n $table->string('first_name')->nullable();\n $table->text('permissions');\n $table->timestamp('last_login');\n $table->timestamps();\n });\n\n // Create Activations Table\n $this->schema->create('activations', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->string('code');\n $table->boolean('completed')->default(0);\n $table->timestamp('completed_at')->nullable();\n $table->timestamps();\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');\n });\n\n // Create Persistences Table\n $this->schema->create('persistences', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->string('code')->unique();\n $table->timestamps();\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');\n });\n\n // Create Reminders Table\n $this->schema->create('reminders', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->string('code');\n $table->boolean('completed')->default(0);\n $table->timestamp('completed_at')->nullable();\n $table->timestamps();\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');\n });\n\n // Create Roles Table\n $this->schema->create('roles', function (Blueprint $table) {\n $table->increments('id');\n $table->string('slug')->unique();\n $table->string('name');\n $table->text('permissions');\n $table->timestamps();\n });\n\n // Create Roles_Users Table\n $this->schema->create('role_users', function (Blueprint $table) {\n $table->integer('user_id')->unsigned();\n $table->integer('role_id')->unsigned();\n $table->timestamps();\n $table->primary(['user_id', 'role_id']);\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');\n $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');\n });\n\n // Create Throttle Table\n $this->schema->create('throttle', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('user_id')->unsigned()->nullable();\n $table->string('type');\n $table->string('ip')->nullable();\n $table->timestamps();\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');\n });\n\n // Create Config Groups Table\n $this->schema->create('config_groups', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name')->unique();\n $table->timestamps();\n });\n\n // Create Config Types Table\n $this->schema->create('config_types', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name')->unique();\n $table->timestamps();\n });\n\n // Create Config Table\n $this->schema->create('config', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('group_id')->unsigned();\n $table->integer('type_id')->unsigned();\n $table->string('name')->unique();\n $table->string('description')->nullable();\n $table->text('value')->nullable();\n $table->timestamps();\n $table->foreign('group_id')->references('id')->on('config_groups')->onDelete('cascade');\n $table->foreign('type_id')->references('id')->on('config_types')->onDelete('cascade');\n });\n\n // Create Admin Role\n $this->sentinel->getRoleRepository()->createModel()->create(array(\n 'name' => 'Admin',\n 'slug' => 'admin',\n 'permissions' => array(\n 'user.*' => true,\n 'email.*' => true,\n 'settings.*' => true,\n 'role.*' => true,\n 'permission.*' => true,\n 'media.*' => true,\n 'blog.*' => true,\n 'dashboard.*' => true\n )\n ));\n\n // Create Developer Role\n $this->sentinel->getRoleRepository()->createModel()->create(array(\n 'name' => 'Developer',\n 'slug' => 'developer',\n 'permissions' => array(\n 'developer.*' => true\n )\n ));\n\n // Create Manager Role\n $this->sentinel->getRoleRepository()->createModel()->create(array(\n 'name' => 'Manager',\n 'slug' => 'manager',\n 'permissions' => array(\n 'user.*' => true,\n 'user.delete' => false,\n 'role.*' => true,\n 'role.delete' => false,\n 'permission.*' => true,\n 'permission.delete' => false,\n 'media.*' => true,\n 'media.delete' => false,\n 'blog.*' => true,\n 'blog.delete' => false,\n 'dashboard.*' => true\n )\n ));\n\n //Create User Role\n $this->sentinel->getRoleRepository()->createModel()->create(array(\n 'name' => 'User',\n 'slug' => 'user',\n 'permissions' => array(\n 'user.account' => true\n )\n ));\n\n // Create Auditor Role\n $this->sentinel->getRoleRepository()->createModel()->create(array(\n 'name' => 'Auditor',\n 'slug' => 'auditor',\n 'permissions' => array(\n 'user.view' => true,\n 'settings.view' => true,\n 'role.view' => true,\n 'permission.view' => true,\n 'blog.view' => true,\n 'dashboard.view' => true\n )\n ));\n\n //Create Admin User\n $admin_role = $this->sentinel->findRoleByName('Admin');\n $developer_role = $this->sentinel->findRoleByName('Developer');\n $admin = $this->sentinel->registerAndActivate([\n 'first_name' => \"Admin\",\n 'last_name' => \"User\",\n 'username' => 'admin',\n 'email' => \"admin@example.com\",\n 'password' => \"admin123\",\n 'permissions' => array()\n ]);\n $admin_role->users()->attach($admin);\n $developer_role->users()->attach($admin);\n\n //Initial Config Types\n $init_config_types = array(\n array(1, \"timezone\"),\n array(2, \"string\"),\n array(3, \"theme\"),\n array(4, \"bootswatch\"),\n array(5, \"image\"),\n array(6, \"boolean\")\n );\n\n // Seed Config Table\n foreach ($init_config_types as $key => $value) {\n $config = new Dappur\\Model\\ConfigTypes;\n $config->id = $value[0];\n $config->name = $value[1];\n $config->save();\n }\n\n //Initial Config Groups\n $init_config_groups = array(\n array(1, \"Site Settings\"),\n array(2, \"Dashboard Settings\"),\n array(3, \"Contact Information\")\n );\n\n // Seed Config Table\n foreach ($init_config_groups as $key => $value) {\n $config = new Dappur\\Model\\ConfigGroups;\n $config->id = $value[0];\n $config->name = $value[1];\n $config->save();\n }\n\n //Initial Config Table Options\n $init_config = array(\n array(1, 'timezone', 'PHP Timezone', 1, 'America/Los_Angeles'),\n array(1, 'site-name', 'Site Name', 2, 'Dappur'),\n array(1, 'domain', 'Site Domain', 2, 'example.com'),\n array(1, 'support-email', 'Support Email', 2, 'support@example.com'),\n array(1, 'from-email', 'From Email', 2, 'noreply@example.com'),\n array(1, 'theme', 'Site Theme', 3, 'dappur'),\n array(1, 'bootswatch', 'Site Bootswatch', 4, 'cerulean'),\n array(1, 'logo', 'Site Logo', 5, 'https://res.cloudinary.com/dappur/image/upload/c_scale,w_600/v1479072913/site-images/logo-horizontal.png'),\n array(1, 'header-logo', 'Header Logo', 5, 'https://res.cloudinary.com/dappur/image/upload/c_scale,h_75/v1479072913/site-images/logo-horizontal.png'),\n array(2, 'dashboard-theme', 'Dashboard Theme', 3, 'dashboard'),\n array(2, 'dashboard-bootswatch', 'Dashboard Bootswatch', 4, 'slate'),\n array(2, 'dashboard-logo', 'Dashboard Logo', 5, 'https://res.cloudinary.com/dappur/image/upload/c_scale,h_75/v1479072913/site-images/logo-horizontal.png'),\n array(1, 'ga', 'Google Analytics UA', 2, ''),\n array(1, 'activation', 'Activation Required', 6, 1),\n array(1, 'maintenance-mode', 'Maintenance Mode', 6, 0),\n array(1, 'privacy-service', 'Privacy Service Statement', 2, 'SERVICE'),\n array(3, 'contact-email', 'Contact Email', 2, 'contact@example.com'),\n array(3, 'contact-phone', 'Contact Phone', 2, '(000) 000-0000'),\n array(3, 'contact-street', 'Contact Street', 2, '123 Harbor Blvd.'),\n array(3, 'contact-city', 'Contact City', 2, 'Oxnard'),\n array(3, 'contact-state', 'Contact State', 2, 'CA'),\n array(3, 'contact-zip', 'Contact Zip', 2, '93035'),\n array(3, 'contact-country', 'Contact Country', 2, 'USA')\n );\n\n // Seed Config Table\n foreach ($init_config as $key => $value) {\n $config = new Dappur\\Model\\Config;\n $config->group_id = $value[0];\n $config->name = $value[1];\n $config->description = $value[2];\n $config->type_id = $value[3];\n $config->value = $value[4];\n $config->save();\n }\n }", "title": "" }, { "docid": "51638ff0df70d0b4a6112ec2ff53bff9", "score": "0.6232914", "text": "public function safeUp() {\n\t$this->createTable('OperationLog', array(\n 'id' =>\"int(11) NOT NULL AUTO_INCREMENT\",\n 'user_id'=>\"int(11) NOT NULL\",\n 'date' =>\"timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\",\n 'operation_id' =>\"int(11) NOT NULL\",\n 'comment' =>\"text NOT NULL\",\n \"PRIMARY KEY (`id`)\",\n \"KEY `operation` (`operation_id`)\",\n \"KEY `user_id` (`user_id`)\",\n\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "title": "" }, { "docid": "775d958c0a05959fe0abe496250799f1", "score": "0.6230721", "text": "public function up()\n {\n $this->createSchema(function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->string('uuid')->index();\n $table->unsignedBigInteger('user_id')->nullable()->index();\n $table->unsignedBigInteger('device_id')->nullable()->index();\n $table->unsignedBigInteger('agent_id')->nullable()->index();\n $table->unsignedBigInteger('geoip_id')->nullable()->index();\n $table->unsignedBigInteger('referer_id')->nullable()->index();\n $table->unsignedBigInteger('cookie_id')->nullable()->index();\n $table->unsignedBigInteger('language_id')->nullable()->index();\n $table->string('client_ip')->index();\n $table->boolean('is_robot')->default(false);\n $table->timestamp('created_at')->index();\n $table->timestamp('updated_at')->index();\n\n $table->unique('uuid');\n });\n }", "title": "" }, { "docid": "5cde7c14a0c95cf56653321c40475d08", "score": "0.62270606", "text": "public function up(Schema $schema)\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n \n $this->addSql('CREATE TABLE ext_log_entries (id INT AUTO_INCREMENT NOT NULL, action VARCHAR(8) NOT NULL, logged_at DATETIME NOT NULL, object_id VARCHAR(64) DEFAULT NULL, object_class VARCHAR(255) NOT NULL, version INT NOT NULL, data LONGTEXT DEFAULT NULL COMMENT \\'(DC2Type:array)\\', username VARCHAR(255) DEFAULT NULL, INDEX log_class_lookup_idx (object_class), INDEX log_date_lookup_idx (logged_at), INDEX log_user_lookup_idx (username), INDEX log_version_lookup_idx (object_id, object_class, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE action_stats (id INT AUTO_INCREMENT NOT NULL, project_id INT DEFAULT NULL, user_id INT DEFAULT NULL, date DATE NOT NULL, num_backlinks_created INT NOT NULL, num_checked_pages INT NOT NULL, num_contacts_made INT NOT NULL, INDEX IDX_B089AB16166D1F9C (project_id), INDEX IDX_B089AB16A76ED395 (user_id), INDEX date_id (date), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE alerts (id INT AUTO_INCREMENT NOT NULL, backlink_id INT DEFAULT NULL, user_id INT DEFAULT NULL, project_id INT DEFAULT NULL, type VARCHAR(1) NOT NULL, hide_until DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_F77AC06B85BD2DD8 (backlink_id), INDEX IDX_F77AC06BA76ED395 (user_id), INDEX IDX_F77AC06B166D1F9C (project_id), INDEX created_at_idx (created_at), INDEX hide_until_idx (hide_until), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE backlinks (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, page_id INT DEFAULT NULL, project_id INT DEFAULT NULL, url VARCHAR(255) NOT NULL, url_ok SMALLINT DEFAULT NULL, xpath LONGTEXT DEFAULT NULL, xpath_last_crawl LONGTEXT DEFAULT NULL, xpath_ok SMALLINT DEFAULT NULL, type VARCHAR(1) NOT NULL, crawl_type VARCHAR(4) NOT NULL, type_last_crawl VARCHAR(1) DEFAULT NULL, type_ok SMALLINT NOT NULL, anchor VARCHAR(255) DEFAULT NULL, anchor_last_crawl VARCHAR(255) DEFAULT NULL, anchor_ok SMALLINT NOT NULL, follow SMALLINT NOT NULL, follow_last_crawl SMALLINT DEFAULT NULL, follow_ok SMALLINT NOT NULL, status_code VARCHAR(3) NOT NULL, status_code_last_crawl VARCHAR(3) DEFAULT NULL, status_code_ok SMALLINT DEFAULT NULL, meta_index SMALLINT NOT NULL, meta_index_last_crawl SMALLINT DEFAULT NULL, meta_index_ok SMALLINT DEFAULT NULL, meta_follow SMALLINT NOT NULL, meta_follow_last_crawl SMALLINT DEFAULT NULL, meta_follow_ok SMALLINT DEFAULT NULL, xrobots_follow SMALLINT NOT NULL, xrobots_follow_last_crawl SMALLINT DEFAULT NULL, xrobots_follow_ok SMALLINT DEFAULT NULL, xrobots_index SMALLINT NOT NULL, xrobots_index_last_crawl SMALLINT DEFAULT NULL, xrobots_index_ok SMALLINT DEFAULT NULL, robots_google SMALLINT NOT NULL, robots_google_last_crawl SMALLINT DEFAULT NULL, robots_google_ok SMALLINT DEFAULT NULL, is_offline SMALLINT NOT NULL, ignore_position SMALLINT NOT NULL, cost_type SMALLINT NOT NULL, price DOUBLE PRECISION NOT NULL, cost_note LONGTEXT DEFAULT NULL, last_crawled_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_4710E24DA76ED395 (user_id), INDEX IDX_4710E24DC4663E4 (page_id), INDEX IDX_4710E24D166D1F9C (project_id), INDEX created_at_idx (created_at), INDEX url_ok_idx (url_ok), INDEX type_ok_idx (type_ok), INDEX anchor_ok_idx (anchor_ok), INDEX follow_ok_idx (follow_ok), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE blacklist (id INT AUTO_INCREMENT NOT NULL, domain_id INT DEFAULT NULL, project_id INT DEFAULT NULL, note LONGTEXT DEFAULT NULL, INDEX IDX_3B175385115F0EE5 (domain_id), INDEX IDX_3B175385166D1F9C (project_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE competitors (id INT AUTO_INCREMENT NOT NULL, domain_id INT DEFAULT NULL, assigned_to_user_id INT DEFAULT NULL, project_id INT DEFAULT NULL, import_limit INT NOT NULL, import_interval INT NOT NULL, last_import_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_2DED50C6115F0EE5 (domain_id), INDEX IDX_2DED50C611578D11 (assigned_to_user_id), INDEX IDX_2DED50C6166D1F9C (project_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE crawl_log (id INT AUTO_INCREMENT NOT NULL, backlink_id INT DEFAULT NULL, project_id INT DEFAULT NULL, url_ok TINYINT(1) DEFAULT NULL, xpath LONGTEXT DEFAULT NULL, xpath_ok TINYINT(1) DEFAULT NULL, type VARCHAR(1) DEFAULT NULL, type_ok TINYINT(1) NOT NULL, anchor VARCHAR(255) DEFAULT NULL, anchor_ok TINYINT(1) NOT NULL, follow TINYINT(1) DEFAULT NULL, follow_ok TINYINT(1) NOT NULL, status_code INT DEFAULT NULL, status_code_ok TINYINT(1) NOT NULL, meta_index TINYINT(1) DEFAULT NULL, meta_index_ok TINYINT(1) NOT NULL, meta_follow TINYINT(1) DEFAULT NULL, meta_follow_ok TINYINT(1) NOT NULL, x_robots_index TINYINT(1) DEFAULT NULL, x_robots_index_ok TINYINT(1) NOT NULL, x_robots_follow TINYINT(1) DEFAULT NULL, x_robots_follow_ok TINYINT(1) NOT NULL, robots_google TINYINT(1) DEFAULT NULL, robots_google_ok TINYINT(1) NOT NULL, crawl_type VARCHAR(4) NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_E9A6716585BD2DD8 (backlink_id), INDEX IDX_E9A67165166D1F9C (project_id), INDEX created_at_idx (created_at), INDEX url_ok_idx (url_ok), INDEX type_ok_idx (type_ok), INDEX anchor_ok_idx (anchor_ok), INDEX follow_ok_idx (follow_ok), INDEX xpath_ok_idx (xpath_ok), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE domains (id INT AUTO_INCREMENT NOT NULL, vendor_id INT DEFAULT NULL, name VARCHAR(128) NOT NULL, authority INT NOT NULL, link_pop INT DEFAULT NULL, domain_pop INT DEFAULT NULL, net_pop INT DEFAULT NULL, first_day DATE DEFAULT NULL, last_crawled_at DATETIME DEFAULT NULL, INDEX IDX_8C7BBF9DF603EE73 (vendor_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE forgot_password_tokens (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, hash VARCHAR(32) NOT NULL, valid_until DATETIME NOT NULL, INDEX IDX_2350282BA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE imports (id INT AUTO_INCREMENT NOT NULL, project_id INT DEFAULT NULL, user_id INT DEFAULT NULL, type INT NOT NULL, filename VARCHAR(128) NOT NULL, hash VARCHAR(32) NOT NULL, step INT NOT NULL, data LONGTEXT NOT NULL, progress INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_7895ED1C166D1F9C (project_id), INDEX IDX_7895ED1CA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE keywords (id INT AUTO_INCREMENT NOT NULL, assigned_to_user_id INT DEFAULT NULL, project_id INT DEFAULT NULL, market_id INT DEFAULT NULL, keyword VARCHAR(255) NOT NULL, import_limit INT NOT NULL, import_interval INT NOT NULL, last_import_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_AA5FB55E11578D11 (assigned_to_user_id), INDEX IDX_AA5FB55E166D1F9C (project_id), INDEX IDX_AA5FB55E622F3F37 (market_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE markets (id INT AUTO_INCREMENT NOT NULL, name_en VARCHAR(128) NOT NULL, name_de VARCHAR(128) NOT NULL, iso_code VARCHAR(2) NOT NULL, INDEX name_en_idx (name_en), INDEX name_de_idx (name_de), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE notes (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, page_id INT DEFAULT NULL, vendor_id INT DEFAULT NULL, content LONGTEXT NOT NULL, created DATETIME NOT NULL, entity INT NOT NULL, INDEX IDX_11BA68CA76ED395 (user_id), INDEX IDX_11BA68CC4663E4 (page_id), INDEX IDX_11BA68CF603EE73 (vendor_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE notification_settings (id INT AUTO_INCREMENT NOT NULL, project_id INT DEFAULT NULL, user_id INT DEFAULT NULL, warnings TINYINT(1) NOT NULL, all_warnings TINYINT(1) NOT NULL, warnings_when INT NOT NULL, errors TINYINT(1) NOT NULL, all_errors TINYINT(1) NOT NULL, errors_when INT NOT NULL, INDEX IDX_B0559860166D1F9C (project_id), INDEX IDX_B0559860A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE options (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, value VARCHAR(255) NOT NULL, INDEX name_idx (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE pages (id INT AUTO_INCREMENT NOT NULL, subdomain_id INT DEFAULT NULL, user_id INT DEFAULT NULL, status_id INT DEFAULT NULL, project_id INT DEFAULT NULL, source_competitor_id INT DEFAULT NULL, source_keyword_id INT DEFAULT NULL, url VARCHAR(255) NOT NULL, authority INT NOT NULL, link_pop INT DEFAULT NULL, domain_pop INT DEFAULT NULL, twitter_count INT DEFAULT NULL, facebook_count INT DEFAULT NULL, gplus_count INT DEFAULT NULL, scheme VARCHAR(5) NOT NULL, created_at DATETIME NOT NULL, last_modified_at DATETIME NOT NULL, last_crawled_at DATETIME DEFAULT NULL, INDEX IDX_2074E5758530A5DC (subdomain_id), INDEX IDX_2074E575A76ED395 (user_id), INDEX IDX_2074E5756BF700BD (status_id), INDEX IDX_2074E575166D1F9C (project_id), INDEX IDX_2074E575BDC90567 (source_competitor_id), INDEX IDX_2074E5756DE93476 (source_keyword_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE projects (id INT AUTO_INCREMENT NOT NULL, domain_id INT DEFAULT NULL, subdomain_id INT DEFAULT NULL, settings LONGTEXT NOT NULL, INDEX IDX_5C93B3A4115F0EE5 (domain_id), INDEX IDX_5C93B3A48530A5DC (subdomain_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE status (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) NOT NULL, sort_order INT NOT NULL, INDEX sort_order_idx (sort_order), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE subdomains (id INT AUTO_INCREMENT NOT NULL, domain_id INT DEFAULT NULL, vendor_id INT DEFAULT NULL, name VARCHAR(128) NOT NULL, sichtbarkeitsindex DOUBLE PRECISION DEFAULT NULL, ovi DOUBLE PRECISION DEFAULT NULL, robots_txt LONGTEXT DEFAULT NULL, robots_txt_last_fetched DATETIME DEFAULT NULL, last_crawled_at DATETIME DEFAULT NULL, INDEX IDX_C7191752115F0EE5 (domain_id), INDEX IDX_C7191752F603EE73 (vendor_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE users (id INT AUTO_INCREMENT NOT NULL, last_used_project_id INT DEFAULT NULL, name VARCHAR(128) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(88) NOT NULL, salt VARCHAR(40) NOT NULL, is_admin SMALLINT NOT NULL, items_per_page INT NOT NULL, options LONGTEXT NOT NULL, inactive TINYINT(1) NOT NULL, INDEX IDX_1483A5E9B894D15C (last_used_project_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE vendors (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) DEFAULT NULL, email VARCHAR(128) NOT NULL, phone VARCHAR(20) DEFAULT NULL, title SMALLINT DEFAULT NULL, company VARCHAR(64) DEFAULT NULL, street VARCHAR(128) DEFAULT NULL, zipcode VARCHAR(10) DEFAULT NULL, city VARCHAR(64) DEFAULT NULL, country VARCHAR(2) DEFAULT NULL, comment LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE action_stats ADD CONSTRAINT FK_B089AB16166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE action_stats ADD CONSTRAINT FK_B089AB16A76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE alerts ADD CONSTRAINT FK_F77AC06B85BD2DD8 FOREIGN KEY (backlink_id) REFERENCES backlinks (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE alerts ADD CONSTRAINT FK_F77AC06BA76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE alerts ADD CONSTRAINT FK_F77AC06B166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE backlinks ADD CONSTRAINT FK_4710E24DA76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE backlinks ADD CONSTRAINT FK_4710E24DC4663E4 FOREIGN KEY (page_id) REFERENCES pages (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE backlinks ADD CONSTRAINT FK_4710E24D166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE blacklist ADD CONSTRAINT FK_3B175385115F0EE5 FOREIGN KEY (domain_id) REFERENCES domains (id)');\n $this->addSql('ALTER TABLE blacklist ADD CONSTRAINT FK_3B175385166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE competitors ADD CONSTRAINT FK_2DED50C6115F0EE5 FOREIGN KEY (domain_id) REFERENCES domains (id)');\n $this->addSql('ALTER TABLE competitors ADD CONSTRAINT FK_2DED50C611578D11 FOREIGN KEY (assigned_to_user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE competitors ADD CONSTRAINT FK_2DED50C6166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE crawl_log ADD CONSTRAINT FK_E9A6716585BD2DD8 FOREIGN KEY (backlink_id) REFERENCES backlinks (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE crawl_log ADD CONSTRAINT FK_E9A67165166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE domains ADD CONSTRAINT FK_8C7BBF9DF603EE73 FOREIGN KEY (vendor_id) REFERENCES vendors (id)');\n $this->addSql('ALTER TABLE forgot_password_tokens ADD CONSTRAINT FK_2350282BA76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE imports ADD CONSTRAINT FK_7895ED1C166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE imports ADD CONSTRAINT FK_7895ED1CA76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE keywords ADD CONSTRAINT FK_AA5FB55E11578D11 FOREIGN KEY (assigned_to_user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE keywords ADD CONSTRAINT FK_AA5FB55E166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE keywords ADD CONSTRAINT FK_AA5FB55E622F3F37 FOREIGN KEY (market_id) REFERENCES markets (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE notes ADD CONSTRAINT FK_11BA68CA76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE notes ADD CONSTRAINT FK_11BA68CC4663E4 FOREIGN KEY (page_id) REFERENCES pages (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE notes ADD CONSTRAINT FK_11BA68CF603EE73 FOREIGN KEY (vendor_id) REFERENCES vendors (id)');\n $this->addSql('ALTER TABLE notification_settings ADD CONSTRAINT FK_B0559860166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE notification_settings ADD CONSTRAINT FK_B0559860A76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E5758530A5DC FOREIGN KEY (subdomain_id) REFERENCES subdomains (id)');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E575A76ED395 FOREIGN KEY (user_id) REFERENCES users (id)');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E5756BF700BD FOREIGN KEY (status_id) REFERENCES status (id)');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E575166D1F9C FOREIGN KEY (project_id) REFERENCES projects (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E575BDC90567 FOREIGN KEY (source_competitor_id) REFERENCES competitors (id) ON DELETE SET NULL');\n $this->addSql('ALTER TABLE pages ADD CONSTRAINT FK_2074E5756DE93476 FOREIGN KEY (source_keyword_id) REFERENCES keywords (id) ON DELETE SET NULL');\n $this->addSql('ALTER TABLE projects ADD CONSTRAINT FK_5C93B3A4115F0EE5 FOREIGN KEY (domain_id) REFERENCES domains (id)');\n $this->addSql('ALTER TABLE projects ADD CONSTRAINT FK_5C93B3A48530A5DC FOREIGN KEY (subdomain_id) REFERENCES subdomains (id)');\n $this->addSql('ALTER TABLE subdomains ADD CONSTRAINT FK_C7191752115F0EE5 FOREIGN KEY (domain_id) REFERENCES domains (id)');\n $this->addSql('ALTER TABLE subdomains ADD CONSTRAINT FK_C7191752F603EE73 FOREIGN KEY (vendor_id) REFERENCES vendors (id)');\n $this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E9B894D15C FOREIGN KEY (last_used_project_id) REFERENCES projects (id)');\n }", "title": "" }, { "docid": "55461fda5ce964f4afe967b52599372b", "score": "0.6222779", "text": "public function up()\n\t{\n\t\tSchema::create('back', function($table)\n\t {\n\t $table->increments('id');\n\t //$table->string('')->unique();\n\t $table->string('cell00');\n\t\t\t$table->string('cell01');\n\t\t\t$table->string('cell02');\n\t\t\t$table->string('cell03');\n\t\t\t$table->string('cell10');\n\t\t\t$table->string('cell11');\n\t\t\t$table->string('cell12');\n\t\t\t$table->string('cell13');\n\t\t\t$table->string('cell20');\n\t\t\t$table->string('cell21');\n\t\t\t$table->string('cell22');\n\t\t\t$table->string('cell23');\n\t\t\t$table->string('cell30');\n\t\t\t$table->string('cell31');\n\t\t\t$table->string('cell32');\n\t\t\t$table->string('cell33');\n\t $table->timestamps();\n\t });\n\t}", "title": "" }, { "docid": "8be78467b05f076c9fd86ec9076d76f0", "score": "0.62225056", "text": "public function up()\n {\n Schema::connection('autoevaluacion')->create('TBL_Fases', function (Blueprint $table) {\n $table->increments('PK_FSS_Id');\n $table->string(\"FSS_Nombre\");\n $table->mediumText(\"FSS_Descripcion\")->nullable();\n $table->timestamps();\n });\n }", "title": "" }, { "docid": "e9f15f4e164f15f80690bf83d282a503", "score": "0.62216765", "text": "public function up()\n { Schema::dropIfExists('delphinium_blossom_competencies');\n \n Schema::create('delphinium_blossom_competencies', function($table)\n {\n $table->engine = 'InnoDB';\n $table->increments('id');\n $table->string('Name');\n $table->string('Color');//hex #FF00FF\n $table->boolean('Animate');//tinyInt switch 0~1 true false\n $table->string('Size');//Small,Medium,Large radio btns\n $table->integer('course_id');\n $table->string('copy_id');\n $table->timestamps();\n });\n //http://octobercms.com/docs/database/structure\n }", "title": "" }, { "docid": "8e041ea36c8796225c8a12db24904172", "score": "0.62125593", "text": "public function up()\n {\n Schema::connection('autoevaluacion')->create('TBL_Grupos_Documentos', function (Blueprint $table) {\n $table->increments('PK_GRD_Id');\n $table->string(\"GRD_Nombre\");\n $table->mediumText(\"GRD_Descripcion\");\n $table->timestamps();\n });\n }", "title": "" }, { "docid": "3e0054d90cade4e79fb9d7f48a085c2d", "score": "0.62108666", "text": "public function up()\n {\n Schema::create('tickets', function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->timestamps();\n $table->text('description');\n $table->string('attatchment')->nullable();\n $table->string('status')->nullable();\n $table->text('admin_remark')->nullable();\n $table->string('admin_attatchment')->nullable();\n $table->bigInteger('sale_id')->unsigned()->nullable();\n $table->bigInteger('franchise_id')->unsigned();\n $table->bigInteger('user_id')->unsigned();\n $table->foreign('sale_id')->references('id')->on('sales')->onDelete('cascade')->onUpdate('cascade');\n $table->foreign('franchise_id')->references('id')->on('franchises')->onDelete('cascade')->onUpdate('cascade');\n $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');\n });\n }", "title": "" }, { "docid": "bf9b6888f0670497731ceac4e4fb9269", "score": "0.6208786", "text": "public function up()\n {\n $this->table('actors')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('first_name', 'string', [\n 'default' => null,\n 'limit' => 64,\n 'null' => false,\n ])\n ->addColumn('last_name', 'string', [\n 'default' => null,\n 'limit' => 64,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'last_name',\n ]\n )\n ->create();\n\n $this->table('addresses')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('address', 'string', [\n 'default' => null,\n 'limit' => 64,\n 'null' => false,\n ])\n ->addColumn('address2', 'string', [\n 'default' => null,\n 'limit' => 32,\n 'null' => true,\n ])\n ->addColumn('district', 'string', [\n 'default' => null,\n 'limit' => 32,\n 'null' => false,\n ])\n ->addColumn('city_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('postal_code', 'string', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ])\n ->addColumn('phone', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => false,\n ])\n ->addColumn('location', 'string', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'city_id',\n ]\n )\n ->addIndex(\n [\n 'location',\n ]\n )\n ->create();\n\n $this->table('categories')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 25,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->create();\n\n $this->table('cities')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ])\n ->addColumn('country_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'country_id',\n ]\n )\n ->create();\n\n $this->table('countries')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ])\n ->create();\n\n $this->table('customers')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('store_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('first_name', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => false,\n ])\n ->addColumn('last_name', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => false,\n ])\n ->addColumn('email', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ])\n ->addColumn('address_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('is_active', 'boolean', [\n 'default' => true,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'store_id',\n ]\n )\n ->addIndex(\n [\n 'address_id',\n ]\n )\n ->addIndex(\n [\n 'last_name',\n ]\n )\n ->create();\n\n $this->table('employees')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('first_name', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => false,\n ])\n ->addColumn('last_name', 'string', [\n 'default' => null,\n 'limit' => 45,\n 'null' => false,\n ])\n ->addColumn('address_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('picture', 'binary', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('email', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ])\n ->addColumn('store_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('is_active', 'boolean', [\n 'default' => true,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('username', 'string', [\n 'default' => null,\n 'limit' => 16,\n 'null' => false,\n ])\n ->addColumn('password', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'store_id',\n ]\n )\n ->addIndex(\n [\n 'address_id',\n ]\n )\n ->create();\n\n $this->table('film_actors')\n ->addColumn('uuid', 'uuid', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addPrimaryKey(['uuid'])\n ->addColumn('actor_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('film_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->create();\n\n $this->table('film_categories')\n ->addColumn('uuid', 'uuid', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addPrimaryKey(['uuid'])\n ->addColumn('film_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('category_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'category_id',\n ]\n )\n ->create();\n\n $this->table('film_texts')\n ->addColumn('uuid', 'uuid', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addPrimaryKey(['uuid'])\n ->addColumn('film_id', 'integer', [\n 'default' => null,\n 'limit' => 6,\n 'null' => false,\n ])\n ->addColumn('title', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ])\n ->addColumn('description', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addIndex(\n [\n 'title',\n 'description',\n ],\n ['type' => 'fulltext']\n )\n ->create();\n\n $this->table('films')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('title', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ])\n ->addColumn('description', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('release_year', 'integer', [\n 'default' => null,\n 'limit' => 4,\n 'null' => true,\n 'signed' => false,\n ])\n ->addColumn('language_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('rental_duration', 'integer', [\n 'default' => '3',\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('rental_rate', 'decimal', [\n 'default' => '4.99',\n 'null' => false,\n 'precision' => 4,\n 'scale' => 2,\n ])\n ->addColumn('length', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => true,\n 'signed' => false,\n ])\n ->addColumn('replacement_cost', 'decimal', [\n 'default' => '19.99',\n 'null' => false,\n 'precision' => 5,\n 'scale' => 2,\n ])\n ->addColumn('rating', 'string', [\n 'default' => 'G',\n 'limit' => 5,\n 'null' => true,\n ])\n ->addColumn('special_features', 'string', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addIndex(\n [\n 'title',\n ]\n )\n ->addIndex(\n [\n 'language_id',\n ]\n )\n ->create();\n\n $this->table('inventories')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 8,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('film_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('store_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'film_id',\n ]\n )\n ->addIndex(\n [\n 'store_id',\n 'film_id',\n ]\n )\n ->create();\n\n $this->table('languages')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('name', 'char', [\n 'default' => null,\n 'limit' => 20,\n 'null' => false,\n ])\n ->addColumn('is_active', 'tinyinteger', [\n 'default' => 1,\n 'limit' => 1,\n 'null' => false,\n ])\n ->create();\n\n $this->table('payments')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('customer_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('employee_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('rental_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ])\n ->addColumn('amount', 'decimal', [\n 'default' => null,\n 'null' => false,\n 'precision' => 5,\n 'scale' => 2,\n ])\n ->addColumn('created', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'employee_id',\n ]\n )\n ->addIndex(\n [\n 'customer_id',\n ]\n )\n ->addIndex(\n [\n 'rental_id',\n ]\n )\n ->create();\n\n $this->table('rentals')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('rental_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('inventory_id', 'integer', [\n 'default' => null,\n 'limit' => 8,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('customer_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('return_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('employee_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'rental_date',\n 'inventory_id',\n 'customer_id',\n ],\n ['unique' => true]\n )\n ->addIndex(\n [\n 'inventory_id',\n ]\n )\n ->addIndex(\n [\n 'customer_id',\n ]\n )\n ->addIndex(\n [\n 'employee_id',\n ]\n )\n ->create();\n\n $this->table('stores')\n ->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addPrimaryKey(['id'])\n ->addColumn('employee_id', 'integer', [\n 'default' => null,\n 'limit' => 3,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('address_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n 'signed' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addIndex(\n [\n 'employee_id',\n ],\n ['unique' => true]\n )\n ->addIndex(\n [\n 'address_id',\n ]\n )\n ->create();\n }", "title": "" }, { "docid": "7c2b6d3a3ab1c9421f26cb65daf5ed0d", "score": "0.62037593", "text": "public function migrate()\n {\n DatabaseMigrator::run();\n // Assign fluentform permission set.\n Acl::setPermissions();\n $this->setDefaultGlobalSettings();\n $this->setCurrentVersion();\n $this->maybeMigrateDB();\n }", "title": "" }, { "docid": "36f2f0eacad8b2694952fda8dca7c39c", "score": "0.6203134", "text": "public function up()\n {\n Schema::create('users', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('email')->unique();\n $table->string('password', 60);\n $table->rememberToken();\n $table->timestamps();\n });\n\n Schema::create('locations', function (Blueprint $table) {\n $table->increments('id');\n $table->string('address');\n $table->string('zip');\n $table->string('city');\n\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n\n $table->timestamps();\n });\n\n Schema::create('sensors', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('unit');\n $table->string('sensor_type');\n $table->timestamps();\n });\n\n Schema::create('samplings', function (Blueprint $table) {\n $table->increments('id');\n\n $table->integer('location_id')->unsigned();\n $table->foreign('location_id')->references('id')->on('locations');\n\n $table->integer('sensor_id')->unsigned();\n $table->foreign('sensor_id')->references('id')->on('sensors');\n\n $table->timestamp('created_at');\n });\n }", "title": "" }, { "docid": "3ef26adef86cc9f87fb5912c4f0cc516", "score": "0.619125", "text": "public function up()\n\t{\n\t\tSchema::create('tickets', function($table)\n\t\t{\n\t\t $table->increments('id')->unique();\n\t\t $table->string('reporter');\n\t\t $table->string('status');\n\t\t $table->string('flags');\n\t\t $table->string('project');\n\t\t $table->string('assigned');\n\t\t $table->text('content');\n\t\t $table->timestamps();\n\t\t});\n\n\t\tSchema::create('comments', function($table)\n\t\t{\n\t\t $table->increments('id')->unique();\n\t\t $table->integer('issue_id');\n\t\t $table->string('user');\n\t\t $table->text('content');\n\t\t $table->timestamp('created_at');\n\t\t});\n\t}", "title": "" }, { "docid": "264e2916a745184d32a15bffac2a01c1", "score": "0.61773664", "text": "public function up()\n {\n\n /*\n * Table: notifications\n */\n Schema::create('notification_templates', function ($table) {\n $table->id();\n $table->string('key', 250)->nullable();\n $table->string('language', 3)->default('en')->nullable();\n $table->string('subject', 100)->nullable();\n $table->text('message')->nullable();\n $table->softDeletes();\n $table->nullableTimestamps();\n });\n }", "title": "" }, { "docid": "bd06a56ca52026eb9f9ef9daa79065d6", "score": "0.61741173", "text": "public function up()\n {\n $this->getSchema()->create('wall_answers', function($table) {\n $table->increments('id');\n $table->integer('post_id')->unsigned();\n $table->integer('user_id')->unsigned();\n $table->text('message');\n $table->timestamps();\n });\n parent::up();\n }", "title": "" }, { "docid": "99dea25a1041eb64e5bbba9cfadf7d47", "score": "0.61714584", "text": "public function migrate()\n {\n $fileSystem = new Filesystem();\n $classFinder = new ClassFinder();\n\n foreach ($fileSystem->files(__DIR__.'/migrations') as $file) {\n $fileSystem->requireOnce($file);\n $migrationClass = $classFinder->findClass($file);\n\n (new $migrationClass())->up();\n }\n }", "title": "" }, { "docid": "4dc3e9cc9ad2b453d062b50d7f2b7c65", "score": "0.61679524", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n $this->addSql('CREATE TABLE `sessions` (\n `sess_id` VARCHAR(128) NOT NULL PRIMARY KEY,\n `sess_data` BLOB NOT NULL,\n `sess_time` INTEGER UNSIGNED NOT NULL,\n `sess_lifetime` MEDIUMINT NOT NULL\n ) COLLATE utf8_bin, ENGINE = InnoDB;');\n $this->addSql('CREATE TABLE groups (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL, role VARCHAR(20) NOT NULL, UNIQUE INDEX UNIQ_F06D397057698A6A (role), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE messages (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, created_at DATETIME NOT NULL, content LONGTEXT NOT NULL, deleted TINYINT(1) NOT NULL, messageBlock INT DEFAULT NULL, INDEX IDX_DB021E96B66A53E4 (messageBlock), INDEX IDX_DB021E96DE12AB56 (created_by), INDEX IDX_DB021E9616FE72E1 (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE conversations (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, channel_name VARCHAR(255) DEFAULT \\'\\', created_at DATETIME NOT NULL, is_channel TINYINT(1) NOT NULL, is_channel_public TINYINT(1) DEFAULT \\'0\\', deleted TINYINT(1) NOT NULL, conversationNameForOwner INT DEFAULT NULL, conversationNameForGuest INT DEFAULT NULL, INDEX IDX_C2521BF1ADF70A15 (conversationNameForOwner), INDEX IDX_C2521BF1CE20765C (conversationNameForGuest), INDEX IDX_C2521BF1DE12AB56 (created_by), INDEX IDX_C2521BF116FE72E1 (updated_by), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE files (id INT AUTO_INCREMENT NOT NULL, message INT DEFAULT NULL, name VARCHAR(255) NOT NULL, path VARCHAR(255) NOT NULL, mime_type VARCHAR(255) NOT NULL, file_size VARCHAR(255) NOT NULL, INDEX IDX_6354059B6BD307F (message), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE users (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, display_name VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user_conversation (user_id INT NOT NULL, conversation_id INT NOT NULL, INDEX IDX_A425AEBA76ED395 (user_id), INDEX IDX_A425AEB9AC0396 (conversation_id), PRIMARY KEY(user_id, conversation_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user_message (user_id INT NOT NULL, message_id INT NOT NULL, INDEX IDX_EEB02E75A76ED395 (user_id), INDEX IDX_EEB02E75537A1329 (message_id), PRIMARY KEY(user_id, message_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user_group (user_id INT NOT NULL, group_id INT NOT NULL, INDEX IDX_8F02BF9DA76ED395 (user_id), INDEX IDX_8F02BF9DFE54D947 (group_id), PRIMARY KEY(user_id, group_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE message_blocks (id INT AUTO_INCREMENT NOT NULL, created_by INT DEFAULT NULL, updated_by INT DEFAULT NULL, conversation INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_F9CA0877DE12AB56 (created_by), INDEX IDX_F9CA087716FE72E1 (updated_by), INDEX IDX_F9CA08778A8E26E9 (conversation), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE craue_config_setting (name VARCHAR(255) NOT NULL, section VARCHAR(255) DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE messages ADD CONSTRAINT FK_DB021E96B66A53E4 FOREIGN KEY (messageBlock) REFERENCES message_blocks (id)');\n $this->addSql('ALTER TABLE messages ADD CONSTRAINT FK_DB021E96DE12AB56 FOREIGN KEY (created_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE messages ADD CONSTRAINT FK_DB021E9616FE72E1 FOREIGN KEY (updated_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE conversations ADD CONSTRAINT FK_C2521BF1ADF70A15 FOREIGN KEY (conversationNameForOwner) REFERENCES users (id)');\n $this->addSql('ALTER TABLE conversations ADD CONSTRAINT FK_C2521BF1CE20765C FOREIGN KEY (conversationNameForGuest) REFERENCES users (id)');\n $this->addSql('ALTER TABLE conversations ADD CONSTRAINT FK_C2521BF1DE12AB56 FOREIGN KEY (created_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE conversations ADD CONSTRAINT FK_C2521BF116FE72E1 FOREIGN KEY (updated_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE files ADD CONSTRAINT FK_6354059B6BD307F FOREIGN KEY (message) REFERENCES messages (id)');\n $this->addSql('ALTER TABLE user_conversation ADD CONSTRAINT FK_A425AEBA76ED395 FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user_conversation ADD CONSTRAINT FK_A425AEB9AC0396 FOREIGN KEY (conversation_id) REFERENCES conversations (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user_message ADD CONSTRAINT FK_EEB02E75A76ED395 FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user_message ADD CONSTRAINT FK_EEB02E75537A1329 FOREIGN KEY (message_id) REFERENCES messages (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user_group ADD CONSTRAINT FK_8F02BF9DA76ED395 FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user_group ADD CONSTRAINT FK_8F02BF9DFE54D947 FOREIGN KEY (group_id) REFERENCES groups (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE message_blocks ADD CONSTRAINT FK_F9CA0877DE12AB56 FOREIGN KEY (created_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE message_blocks ADD CONSTRAINT FK_F9CA087716FE72E1 FOREIGN KEY (updated_by) REFERENCES users (id)');\n $this->addSql('ALTER TABLE message_blocks ADD CONSTRAINT FK_F9CA08778A8E26E9 FOREIGN KEY (conversation) REFERENCES conversations (id)');\n }", "title": "" }, { "docid": "77159a1be71c6d74a4dea09f36106de3", "score": "0.6164841", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'sqlite', 'Migration can only be executed safely on \\'sqlite\\'.');\n\n $this->addSql('CREATE TEMPORARY TABLE __temp__elastic_reserved_field AS SELECT id, elastic_field_name, data_type FROM elastic_reserved_field');\n $this->addSql('DROP TABLE elastic_reserved_field');\n $this->addSql('CREATE TABLE elastic_reserved_field (id INTEGER NOT NULL, data_type VARCHAR(50) NOT NULL COLLATE BINARY, elastic_field_name VARCHAR(100) NOT NULL, PRIMARY KEY(id))');\n $this->addSql('INSERT INTO elastic_reserved_field (id, elastic_field_name, data_type) SELECT id, elastic_field_name, data_type FROM __temp__elastic_reserved_field');\n $this->addSql('DROP TABLE __temp__elastic_reserved_field');\n $this->addSql('CREATE TEMPORARY TABLE __temp__lead_custom_field AS SELECT user_id, column_name, machine_field_name, elastic_field_name, data_type, type, config FROM lead_custom_field');\n $this->addSql('DROP TABLE lead_custom_field');\n $this->addSql('CREATE TABLE lead_custom_field (user_id VARCHAR(255) NOT NULL COLLATE BINARY, column_name VARCHAR(255) NOT NULL COLLATE BINARY, machine_field_name VARCHAR(20) NOT NULL COLLATE BINARY, data_type VARCHAR(50) NOT NULL COLLATE BINARY, type VARCHAR(100) DEFAULT NULL COLLATE BINARY, config CLOB DEFAULT NULL COLLATE BINARY, elastic_field_name VARCHAR(100) NOT NULL, PRIMARY KEY(user_id, column_name))');\n $this->addSql('INSERT INTO lead_custom_field (user_id, column_name, machine_field_name, elastic_field_name, data_type, type, config) SELECT user_id, column_name, machine_field_name, elastic_field_name, data_type, type, config FROM __temp__lead_custom_field');\n $this->addSql('DROP TABLE __temp__lead_custom_field');\n }", "title": "" }, { "docid": "b02df7d6894b17399d9546e5f8b588d5", "score": "0.6149269", "text": "public function up()\n {\n Schema::create('detailed_offer_type_masterlist', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('project_id')->unsigned();\n $table->string('label', 45);\n $table->timestamps();\n /************* foreign keys **************/\n $table->foreign('project_id')\n ->references('id')\n ->on('projects')\n ->onUpdate('cascade');\n });\n }", "title": "" }, { "docid": "c04ed5da3936224b75339421a319199f", "score": "0.61392874", "text": "public function up()\n {\n $this->createTable('smp', [\n 'id' => Schema::TYPE_PK,\n 'name' => Schema::TYPE_STRING,\n ]);\n $this->createTable('inspection', [\n 'id' => Schema::TYPE_PK,\n 'name' => Schema::TYPE_STRING,\n ]);\n $this->createTable('checklist', [\n 'id' => Schema::TYPE_PK,\n 'smp' => $this->integer()->notNull(),\n 'inspection' => $this->integer()->notNull(),\n 'datefrom' => 'timestamp with time zone [0]',\n 'dateto' => 'timestamp with time zone [0]',\n 'duration' => Schema::TYPE_INTEGER,\n ]);\n $this->addForeignKey(\n 'smp',\n 'checklist',\n 'smp',\n 'smp',\n 'id'\n );\n $this->addForeignKey(\n 'inspection',\n 'checklist',\n 'inspection',\n 'inspection',\n 'id'\n );\n\n\n foreach ($this->smp as $value) {\n $this->insert('smp', ['name' => $value]);\n }\n\n foreach ($this->inspection as $value) {\n $this->insert('inspection', ['name' => $value]);\n }\n foreach ($this->checklist as $value) {\n $this->insert('checklist', [\n 'smp' => $value['smp'],\n 'inspection' => $value['inspection'],\n 'datefrom' => new Expression($value['datefrom']),\n 'dateto' => new Expression($value['dateto']),\n 'duration' => $value['duration'],]);\n }\n\n }", "title": "" }, { "docid": "b9122262e6c236122a38cdc2a6b7eac4", "score": "0.61344016", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'sqlite', 'Migration can only be executed safely on \\'sqlite\\'.');\n\n $this->addSql('DROP INDEX IDX_A7BB061519BA6D46');\n $this->addSql('CREATE TEMPORARY TABLE __temp__producto AS SELECT id, tienda_id, nombre, descripcion, unidades, precio, created_at FROM producto');\n $this->addSql('DROP TABLE producto');\n $this->addSql('CREATE TABLE producto (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, tienda_id INTEGER DEFAULT NULL, nombre VARCHAR(50) NOT NULL COLLATE BINARY, descripcion VARCHAR(255) DEFAULT NULL COLLATE BINARY, unidades INTEGER NOT NULL, precio INTEGER NOT NULL, created_at DATETIME NOT NULL, CONSTRAINT FK_A7BB061519BA6D46 FOREIGN KEY (tienda_id) REFERENCES tienda (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO producto (id, tienda_id, nombre, descripcion, unidades, precio, created_at) SELECT id, tienda_id, nombre, descripcion, unidades, precio, created_at FROM __temp__producto');\n $this->addSql('DROP TABLE __temp__producto');\n $this->addSql('CREATE INDEX IDX_A7BB061519BA6D46 ON producto (tienda_id)');\n $this->addSql('DROP INDEX IDX_26663F5D19BA6D46');\n $this->addSql('CREATE TEMPORARY TABLE __temp__shopper AS SELECT id, tienda_id, nombre, created_at FROM shopper');\n $this->addSql('DROP TABLE shopper');\n $this->addSql('CREATE TABLE shopper (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, tienda_id INTEGER NOT NULL, nombre VARCHAR(50) NOT NULL COLLATE BINARY, created_at DATETIME NOT NULL, CONSTRAINT FK_26663F5D19BA6D46 FOREIGN KEY (tienda_id) REFERENCES tienda (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO shopper (id, tienda_id, nombre, created_at) SELECT id, tienda_id, nombre, created_at FROM __temp__shopper');\n $this->addSql('DROP TABLE __temp__shopper');\n $this->addSql('CREATE INDEX IDX_26663F5D19BA6D46 ON shopper (tienda_id)');\n $this->addSql('DROP INDEX IDX_DD333C27645698E');\n $this->addSql('DROP INDEX IDX_DD333C24854653A');\n $this->addSql('CREATE TEMPORARY TABLE __temp__pedido_producto AS SELECT id, pedido_id, producto_id, unidades FROM pedido_producto');\n $this->addSql('DROP TABLE pedido_producto');\n $this->addSql('CREATE TABLE pedido_producto (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, pedido_id INTEGER NOT NULL, producto_id INTEGER NOT NULL, unidades INTEGER NOT NULL, CONSTRAINT FK_DD333C24854653A FOREIGN KEY (pedido_id) REFERENCES pedido (id) NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_DD333C27645698E FOREIGN KEY (producto_id) REFERENCES producto (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO pedido_producto (id, pedido_id, producto_id, unidades) SELECT id, pedido_id, producto_id, unidades FROM __temp__pedido_producto');\n $this->addSql('DROP TABLE __temp__pedido_producto');\n $this->addSql('CREATE INDEX IDX_DD333C27645698E ON pedido_producto (producto_id)');\n $this->addSql('CREATE INDEX IDX_DD333C24854653A ON pedido_producto (pedido_id)');\n }", "title": "" }, { "docid": "93ddddc239142730dd499a704d51be19", "score": "0.6127344", "text": "public function fire()\n {\n\n Artisan::call('migrate:rollback'); // create tables\n\n }", "title": "" }, { "docid": "0a8f80a61adee5772e0013440c8e62fe", "score": "0.612635", "text": "public function up()\n\t{\n\t\tSchema::create('reminders', function($table) {\n\t\t\t$table->increments('id');\n\t\t\t$table->string('user_id');\n\n\t\t\t$table->string('title');\n\t\t\t$table->text('message');\n\t\t\t$table->timestamps();\n\t\t\t$table->date('send_date');\n\t\t});\n\t}", "title": "" }, { "docid": "aadae5ee971aed0994f2932c500dacf7", "score": "0.61206365", "text": "public function up()\n {\n $this->table('message_bords', ['id' => false, 'primary_key' => ['message_bords_id']])\n ->addColumn('message_bords_id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ])\n ->addColumn('title', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => false,\n ])\n ->addColumn('message_statuses_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ])\n ->addColumn('choice', 'integer', [\n 'default' => 0,\n 'limit' => 11,\n 'null' => false,\n ])\n ->addColumn('message', 'text', [\n 'default' => null,\n 'null' => true,\n ])\n ->addColumn('period', 'date', [\n 'default' => null,\n 'null' => false,\n ])\n ->addColumn('created', 'datetime', [\n 'default' => null,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'null' => false,\n ])\n ->create();\n\n $this->table('message_bords')\n ->addForeignKey(\n 'message_statuses_id',\n 'message_statuses',\n 'message_statuses_id',\n [\n 'update' => 'RESTRICT',\n 'delete' => 'RESTRICT'\n ]\n )\n ->update();\n\n }", "title": "" }, { "docid": "27a3c7be4636287a0deaeff6f146cb72", "score": "0.61195076", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE employe (id INT AUTO_INCREMENT NOT NULL, matricule VARCHAR(255) NOT NULL, noms VARCHAR(255) NOT NULL, naissance VARCHAR(255) NOT NULL, adresse VARCHAR(255) NOT NULL, telephone VARCHAR(255) NOT NULL, cin VARCHAR(255) NOT NULL, genre VARCHAR(255) NOT NULL, sfamiliale VARCHAR(255) NOT NULL, date_recrut DATETIME NOT NULL, date_embauche DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE conge (id INT AUTO_INCREMENT NOT NULL, date_debut DATE NOT NULL, date_fin DATE NOT NULL, date_reprise DATE NOT NULL, type_conge VARCHAR(255) NOT NULL, nbrejours VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE bsalaire (id INT AUTO_INCREMENT NOT NULL, mois DATE NOT NULL, annee VARCHAR(255) NOT NULL, salaire_base VARCHAR(255) NOT NULL, salaire_brut VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE permission (id INT AUTO_INCREMENT NOT NULL, date_du DATE NOT NULL, audate DATE NOT NULL, motif VARCHAR(255) NOT NULL, status VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE contrat (id INT AUTO_INCREMENT NOT NULL, nature_contrat VARCHAR(255) NOT NULL, duree_contrat VARCHAR(255) NOT NULL, description LONGTEXT NOT NULL, datedebut DATE NOT NULL, datefin DATE NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n }", "title": "" }, { "docid": "ece4b4fe49031d8b8c141458fa93d742", "score": "0.6114399", "text": "public function up()\n {\n Schema::create('orders', function (Blueprint $table) {\n $table->increments('id');\n $table->integer('user_id');\n $table->integer('carrier_id');\n $table->integer('origin_address_id');\n $table->integer('dest_address_id');\n $table->string('receiver_name');\n $table->string('receiver_phone');\n $table->integer('price');\n $table->integer('moving_workers');\n $table->integer('packing_workers');\n $table->integer('origin_floor');\n $table->integer('dest_floor');\n $table->integer('origin_walking');\n $table->integer('dest_walking');\n $table->dateTime('moving_time');\n $table->string('signature')->nullable();\n $table->integer('status');\n $table->integer('seen');\n $table->integer('created_on')->default(0); // 0 => app, 1 => panel\n $table->timestamps();\n $table->string('gender');\n $table->integer('payment_status');\n });\n }", "title": "" }, { "docid": "5f26b1acb980260714e85c74080cbc6b", "score": "0.611432", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE transaction (id INT AUTO_INCREMENT NOT NULL, user_emetteur_id INT NOT NULL, user_recepteur_id INT DEFAULT NULL, client_emetteur VARCHAR(255) NOT NULL, telephone_emetteur VARCHAR(255) NOT NULL, nci_emetteur VARCHAR(255) NOT NULL, date_envoi DATETIME NOT NULL, code VARCHAR(255) NOT NULL, montant BIGINT NOT NULL, frais BIGINT NOT NULL, client_recepteur VARCHAR(255) NOT NULL, telephone_recepteur VARCHAR(255) NOT NULL, nci_recepteur VARCHAR(255) DEFAULT NULL, date_reception DATETIME DEFAULT NULL, commission_emetteur BIGINT DEFAULT NULL, commission_recepteur BIGINT DEFAULT NULL, commission_wari BIGINT DEFAULT NULL, taxes_etat BIGINT DEFAULT NULL, INDEX IDX_723705D1D0F2E719 (user_emetteur_id), INDEX IDX_723705D1BB85042F (user_recepteur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE depot (id INT AUTO_INCREMENT NOT NULL, entreprise_id INT NOT NULL, caissier_id INT NOT NULL, date DATETIME NOT NULL, montant BIGINT NOT NULL, INDEX IDX_47948BBCA4AEAFEA (entreprise_id), INDEX IDX_47948BBCB514973B (caissier_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE entreprise (id INT AUTO_INCREMENT NOT NULL, numero_compte VARCHAR(255) NOT NULL, raison_sociale VARCHAR(255) NOT NULL, ninea VARCHAR(255) NOT NULL, adresse VARCHAR(255) NOT NULL, solde BIGINT NOT NULL, status VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_D19FA609731415A (numero_compte), UNIQUE INDEX UNIQ_D19FA60C678AEBE (ninea), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE profil (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE utilisateur (id INT AUTO_INCREMENT NOT NULL, entreprise_id INT NOT NULL, profil_id INT NOT NULL, username VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, nom VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, telephone INT NOT NULL, nci VARCHAR(255) NOT NULL, status VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_1D1C63B3F85E0677 (username), UNIQUE INDEX UNIQ_1D1C63B3E7927C74 (email), UNIQUE INDEX UNIQ_1D1C63B3450FF010 (telephone), UNIQUE INDEX UNIQ_1D1C63B3C7B6DEA0 (nci), INDEX IDX_1D1C63B3A4AEAFEA (entreprise_id), INDEX IDX_1D1C63B3275ED078 (profil_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D1D0F2E719 FOREIGN KEY (user_emetteur_id) REFERENCES utilisateur (id)');\n $this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D1BB85042F FOREIGN KEY (user_recepteur_id) REFERENCES utilisateur (id)');\n $this->addSql('ALTER TABLE depot ADD CONSTRAINT FK_47948BBCA4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE depot ADD CONSTRAINT FK_47948BBCB514973B FOREIGN KEY (caissier_id) REFERENCES utilisateur (id)');\n $this->addSql('ALTER TABLE utilisateur ADD CONSTRAINT FK_1D1C63B3A4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE utilisateur ADD CONSTRAINT FK_1D1C63B3275ED078 FOREIGN KEY (profil_id) REFERENCES profil (id)');\n }", "title": "" }, { "docid": "773edd2da913e20713718edf10ef67a2", "score": "0.61113495", "text": "public function up()\n {\n $users = $this->table('users');\n $users->addColumn('last_action', 'integer', [\n 'limit' => MysqlAdapter::INT_MEDIUM,\n 'signed' => false,\n 'after' => 'num_messages',\n 'null' => true\n ])\n ->update();\n }", "title": "" }, { "docid": "aec4a6c6c04891aef6dc195133f72af3", "score": "0.61070144", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE SEQUENCE owner_id_seq INCREMENT BY 1 MINVALUE 1 START 1');\n $this->addSql('CREATE SEQUENCE trigger_id_seq INCREMENT BY 1 MINVALUE 1 START 1');\n $this->addSql('CREATE TABLE device (id UUID NOT NULL, owner_id INT NOT NULL, name VARCHAR(50) NOT NULL, device_type VARCHAR(50) NOT NULL, PRIMARY KEY(id))');\n $this->addSql('CREATE INDEX IDX_92FB68E7E3C61F9 ON device (owner_id)');\n $this->addSql('COMMENT ON COLUMN device.id IS \\'(DC2Type:uuid)\\'');\n $this->addSql('CREATE TABLE owner (id INT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, PRIMARY KEY(id))');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_CF60E67CE7927C74 ON owner (email)');\n $this->addSql('CREATE TABLE telemetry (id UUID NOT NULL, owner_id INT DEFAULT NULL, device_id UUID NOT NULL, received_data JSON NOT NULL, PRIMARY KEY(id))');\n $this->addSql('CREATE INDEX IDX_CD10367D7E3C61F9 ON telemetry (owner_id)');\n $this->addSql('CREATE INDEX IDX_CD10367D94A4C7D4 ON telemetry (device_id)');\n $this->addSql('COMMENT ON COLUMN telemetry.id IS \\'(DC2Type:uuid)\\'');\n $this->addSql('COMMENT ON COLUMN telemetry.device_id IS \\'(DC2Type:uuid)\\'');\n $this->addSql('CREATE TABLE trigger (id INT NOT NULL, device VARCHAR(20) NOT NULL, telemetry_key VARCHAR(20) NOT NULL, high_value INT NOT NULL, low_value INT NOT NULL, PRIMARY KEY(id))');\n $this->addSql('CREATE TABLE messenger_messages (id BIGSERIAL NOT NULL, body TEXT NOT NULL, headers TEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, available_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, delivered_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');\n $this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0 ON messenger_messages (queue_name)');\n $this->addSql('CREATE INDEX IDX_75EA56E0E3BD61CE ON messenger_messages (available_at)');\n $this->addSql('CREATE INDEX IDX_75EA56E016BA31DB ON messenger_messages (delivered_at)');\n $this->addSql('BEGIN;');\n $this->addSql('LOCK TABLE messenger_messages;');\n $this->addSql('CREATE OR REPLACE FUNCTION notify_messenger_messages() RETURNS TRIGGER AS $$\n BEGIN\n PERFORM pg_notify(\\'messenger_messages\\', NEW.queue_name::text);\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;');\n $this->addSql('DROP TRIGGER IF EXISTS notify_trigger ON messenger_messages;');\n $this->addSql('CREATE TRIGGER notify_trigger AFTER INSERT ON messenger_messages FOR EACH ROW EXECUTE PROCEDURE notify_messenger_messages();');\n $this->addSql('COMMIT;');\n $this->addSql('ALTER TABLE device ADD CONSTRAINT FK_92FB68E7E3C61F9 FOREIGN KEY (owner_id) REFERENCES owner (id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n $this->addSql('ALTER TABLE telemetry ADD CONSTRAINT FK_CD10367D7E3C61F9 FOREIGN KEY (owner_id) REFERENCES owner (id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n $this->addSql('ALTER TABLE telemetry ADD CONSTRAINT FK_CD10367D94A4C7D4 FOREIGN KEY (device_id) REFERENCES device (id) NOT DEFERRABLE INITIALLY IMMEDIATE');\n }", "title": "" }, { "docid": "65cd1b39c51f16c77cde19606c0ef919", "score": "0.61008114", "text": "public function up()\n {\n\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n $this->createTable('{{%user}}', [\n 'id' => $this->primaryKey(),\n 'username' => $this->string()->notNull()->unique(),\n 'auth_key' => $this->string(32)->notNull(),\n 'password_hash' => $this->string()->notNull(),\n 'password_reset_token' => $this->string()->unique(),\n 'email' => $this->string()->notNull()->unique(),\n 'status' => $this->smallInteger()->notNull()->defaultValue(10),\n 'created_at' => $this->integer()->notNull(),\n 'updated_at' => $this->integer()->notNull(),\n ], $tableOptions);\n\n $this->insert('{{%user}}', [\n 'username' => 'demo',\n 'email' => 'user@site.com',\n 'status' => \\app\\models\\User::STATUS_ACTIVE,\n 'auth_key' => '',\n 'password_hash' => '',\n 'created_at' => (new DateTime())->getTimestamp(),\n 'updated_at' => (new DateTime())->getTimestamp(),\n ]);\n\n\n $this->createTable('{{%user_prize}}', [\n 'id' => $this->primaryKey(),\n 'prize_type' => $this->string(),\n 'is_received' => $this->boolean()->defaultValue(false),\n 'user_id' => $this->integer(),\n ]);\n $this->addForeignKey(\n 'fk-user_prize-user_id',\n 'user_prize',\n 'user_id',\n 'user',\n 'id',\n 'CASCADE'\n );\n\n\n $this->createTable('{{%money}}', [\n 'id' => $this->primaryKey(),\n 'amount' => $this->float()->notNull()->defaultValue(50000),\n ]);\n\n $this->insert('{{%money}}', [\n 'amount' => 50000,\n ]);\n\n\n $this->createTable('{{%product}}', [\n 'id' => $this->primaryKey(),\n 'name' => $this->string()->notNull()->defaultValue(''),\n 'is_reserved' => $this->boolean()->notNull()->defaultValue(false),\n ]);\n\n for ($i = 1; $i <=10; $i++) {\n $this->insert('{{%product}}', [\n 'name' => 'Product ' . $i,\n ]);\n }\n\n\n $this->createTable('{{%prize_loyalty}}', [\n 'id' => $this->primaryKey(),\n 'amount' => $this->float()->notNull()->defaultValue(0),\n 'user_prize_id' => $this->integer(),\n ]);\n $this->addForeignKey(\n 'fk-prize_loyalty-user_prize_id',\n 'prize_loyalty',\n 'user_prize_id',\n 'user_prize',\n 'id',\n 'CASCADE'\n );\n\n $this->createTable('{{%prize_money}}', [\n 'id' => $this->primaryKey(),\n 'amount' => $this->float()->notNull()->defaultValue(0),\n 'user_prize_id' => $this->integer(),\n 'money_id' => $this->integer(),\n ]);\n $this->addForeignKey(\n 'fk-prize_money-user_prize_id',\n 'prize_money',\n 'user_prize_id',\n 'user_prize',\n 'id',\n 'CASCADE'\n );\n $this->addForeignKey(\n 'fk-prize_money-money_id',\n 'prize_money',\n 'money_id',\n 'money',\n 'id',\n 'CASCADE'\n );\n\n $this->createTable('{{%prize_product}}', [\n 'id' => $this->primaryKey(),\n 'user_prize_id' => $this->integer(),\n 'product_id' => $this->integer(),\n ]);\n $this->addForeignKey(\n 'fk-prize_product-user_prize_id',\n 'prize_product',\n 'user_prize_id',\n 'user_prize',\n 'id',\n 'CASCADE'\n );\n $this->addForeignKey(\n 'fk-prize_product-product_id',\n 'prize_product',\n 'product_id',\n 'product',\n 'id',\n 'CASCADE'\n );\n }", "title": "" }, { "docid": "f1bad065251398c93bda69e7b38fdf6f", "score": "0.60952014", "text": "public function up()\n {\n if($this->hasTable('Orders') && $this->hasTable('Products')){\n $this->execute(\"\n CREATE TABLE IF NOT EXISTS `OrderDetails` ( \n `OrderID` INT(50) NOT NULL , \n `ProductID` INT(50) NOT NULL , \n `OrderNumber` INT(50) NOT NULL , \n `Price` INT(50) NOT NULL , \n `Quantity` INT(50) NOT NULL , \n `Discount` INT(50) NOT NULL , \n `Total` INT NOT NULL , \n `IDSKU` INT NOT NULL , \n `Size` INT NOT NULL , \n `Color` INT NOT NULL , \n `Fulfilled` INT NOT NULL , \n `ShipDate` DATE NOT NULL , \n `OrderDetailID` INT(20) NOT NULL , \n `BillDate` DATE NOT NULL , \n `Created` DATETIME NOT NULL , \n `Updated` DATETIME NOT NULL ,\n\n INDEX (OrderID),\n INDEX (ProductID),\n\n FOREIGN KEY (OrderID)\n REFERENCES Orders(OrderID)\n ON UPDATE CASCADE ON DELETE CASCADE,\n\n FOREIGN KEY (ProductID)\n REFERENCES Products(ProductID)\n ON UPDATE NO ACTION ON DELETE NO ACTION\n\n )ENGINE = InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;\n \");\n }\n }", "title": "" }, { "docid": "17664c3b7e9d64cddf74e3e1427b033c", "score": "0.6094674", "text": "public function up()\n {\n $this->table('periodic_task', ['id' => false, 'primary_key' => 'periodic_task_id'])\n ->addColumn('periodic_task_id', 'integer', ['limit' => 10, 'signed' => false, 'identity' => true])\n ->addColumn('name', 'string', ['limit' => 64])\n ->addColumn('classname', 'string', ['limit' => 32])\n ->addColumn('description', 'string')\n ->addColumn('period', 'integer', ['limit' => 10, 'signed' => false])\n ->addColumn('is_enabled', 'boolean', ['default' => true])\n ->addColumn('is_sane', 'boolean', ['default' => true])\n ->addColumn('is_debug', 'boolean', ['default' => false])\n ->addIndex(['name'], ['unique' => true])\n ->addIndex(['classname'], ['unique' => true])\n ->create();\n\n $this->table('periodic_task_history', ['id' => false, 'primary_key' => 'periodic_task_history_id'])\n ->addColumn('periodic_task_history_id', 'integer', ['limit' => 20, 'signed' => false, 'identity' => true])\n ->addColumn('periodic_task_id', 'integer', ['limit' => 10, 'signed' => false])\n ->addColumn('launch_time', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('status', 'enum', ['default' => 'running', 'values' => ['running', 'completed']])\n ->addColumn('num_errors', 'integer', ['default' => 0, 'limit' => 10, 'signed' => false])\n ->addColumn('num_items', 'integer', ['default' => 0, 'limit' => 10, 'signed' => false])\n ->addColumn('duration_ms', 'integer', ['default' => 0, 'limit' => 20, 'signed' => false])\n ->addForeignKey('periodic_task_id', 'periodic_task', 'periodic_task_id',\n ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->create();\n\n $this->table('periodic_task_history_event', ['id' => false, 'primary_key' => 'periodic_task_history_event_id'])\n ->addColumn('periodic_task_history_event_id', 'integer', ['limit' => 20, 'signed' => false, 'identity' => true])\n ->addColumn('periodic_task_history_id', 'integer', ['limit' => 20, 'signed' => false])\n ->addColumn('severity', 'enum', ['values' => ['debug', 'info', 'error']])\n ->addColumn('event_time', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])\n ->addColumn('event', 'string')\n ->addColumn('reference', 'integer', ['limit' => 10, 'signed' => false])\n ->addForeignKey('periodic_task_history_id', 'periodic_task_history', 'periodic_task_history_id',\n ['delete' => 'CASCADE', 'update' => 'CASCADE'])\n ->create();\n\n $fixtures = [\n [\n 'name' => 'Test',\n 'classname' => 'Test',\n 'description' => 'Scheduler functionality test',\n 'period' => 60,\n 'is_enabled' => false\n ],\n // every\n [\n 'name' => 'Calculate Contest Leaderboard',\n 'classname' => 'CalculateContestLeaderboard',\n 'description' => 'Calculates the leaderboard for the current contest and sends rewards',\n 'period' => 60 * 15\n ],\n [\n 'name' => 'Delete Tags',\n 'classname' => 'DeleteTags',\n 'description' => 'Deletes unpopular tags',\n 'period' => 60 * 15\n ],\n [\n 'name' => 'Expire FL Tokens',\n 'classname' => 'ExpireFlTokens',\n 'description' => 'Removes expired fl tokens',\n 'period' => 60 * 15\n ],\n [\n 'name' => 'Recovery',\n 'classname' => 'Recovery',\n 'description' => 'Validates requests and boosts upload',\n 'period' => 60 * 15\n ],\n [\n 'name' => 'Disable Stuck Tasks',\n 'classname' => 'DisableStuckTasks',\n 'description' => 'Disables long running tasks so they can be fixed',\n 'period' => 60 * 15\n ],\n // hourly\n [\n 'name' => 'Community Stats',\n 'classname' => 'CommunityStats',\n 'description' => 'Updates community stats section of user profiles',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Ratio Watch - Disable Leeching',\n 'classname' => 'DisableLeechingRatioWatch',\n 'description' => 'Disables leeching for users on ratio watch',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Expire Invites',\n 'classname' => 'ExpireInvites',\n 'description' => 'Expires old invites',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Front Page Stats',\n 'classname' => 'FrontPageStats',\n 'description' => 'Updates the stats for the front page',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Hide Old Requests',\n 'classname' => 'HideOldRequests',\n 'description' => 'Hides old filled requests',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Lower Login Attempts',\n 'classname' => 'LowerLoginAttempts',\n 'description' => 'Lowers login attempts and purges old attempts',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Remove Dead Peers',\n 'classname' => 'RemoveDeadPeers',\n 'description' => 'Removes dead peers',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Remove Dead Sessions',\n 'classname' => 'RemoveDeadSessions',\n 'description' => 'Removes sessions with no activity',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Remove Expired Warnings',\n 'classname' => 'RemoveExpiredWarnings',\n 'description' => 'Removes expired warnings',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Update Seed Times',\n 'classname' => 'UpdateSeedTimes',\n 'description' => \"Updates seed times so Ocelot doesn't have to\",\n 'period' => 60 * 60\n ],\n [\n 'name' => 'Bonus Points',\n 'classname' => 'UpdateUserBonusPoints',\n 'description' => 'Hands out bonus points',\n 'period' => 60 * 60\n ],\n [\n 'name' => 'User Stats - Daily',\n 'classname' => 'UserStatsDaily',\n 'description' => 'Updates daily user stat graphs',\n 'period' => 60 * 60\n ],\n // daily\n [\n 'name' => 'Torrent Reaper - Unseeded',\n 'classname' => 'DeleteUnseededTorrents',\n 'description' => 'Deletes unseeded torrents',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Torrent Reaper - Never Seeded',\n 'classname' => 'DeleteNeverSeededTorrents',\n 'description' => 'Deletes torrents that were never seeded',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Ratio Watch - Disable Download',\n 'classname' => 'DisableDownloadingRatioWatch',\n 'description' => 'Disables leech for users with poor ratio',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'User Reaper',\n 'classname' => 'DisableInactiveUsers',\n 'description' => 'Disables inactive users and warns the soon to be disabled',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Unconfirmed User Disabler',\n 'classname' => 'DisableUnconfirmedUsers',\n 'description' => 'Disables users that never clicked the confirm link',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Lock Old Threads',\n 'classname' => 'LockOldThreads',\n 'description' => 'Locks threads with no activity',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Ratio Watch',\n 'classname' => 'RatioWatch',\n 'description' => 'Enables or disables ratio watch for users',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Top 10 - Daily',\n 'classname' => 'UpdateDailyTop10',\n 'description' => 'Updates daily top 10 torrents',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'User Stats - Monthly',\n 'classname' => 'UserStatsMonthly',\n 'description' => 'Updates monthly user stat graphs',\n 'period' => 60 * 60 * 24\n ],\n [\n 'name' => 'Task History Purge',\n 'classname' => 'PurgeOldTaskHistory',\n 'description' => 'Purges old task history logs',\n 'period' => 60 * 60 * 24\n ],\n // weekly\n [\n 'name' => 'Donations',\n 'classname' => 'Donations',\n 'description' => 'Updates donor ranks',\n 'period' => 60 * 60 * 24 * 7\n ],\n [\n 'name' => 'Resolve Staff PMs',\n 'classname' => 'ResolveStaffPms',\n 'description' => 'Resolves old staff PMs',\n 'period' => 60 * 60 * 24 * 7\n ],\n [\n 'name' => 'Top 10 - Weekly',\n 'classname' => 'UpdateWeeklyTop10',\n 'description' => 'Updates weekly top 10 torrents',\n 'period' => 60 * 60 * 24 * 7\n ],\n [\n 'name' => 'User Stats - Yearly',\n 'classname' => 'UserStatsYearly',\n 'description' => 'Updates yearly user stat graphs',\n 'period' => 60 * 60 * 24 * 7\n ],\n [\n 'name' => 'Unseeded Notifications',\n 'classname' => 'NotifyNonseedingUploaders',\n 'description' => 'Sends warnings for unseeded torrents',\n 'period' => 60 * 60 * 24 * 7\n ],\n // biweekly\n [\n 'name' => 'Cycle Auth Keys',\n 'classname' => 'CycleAuthKeys',\n 'description' => 'Cyles user auth keys',\n 'period' => 60 * 60 * 24 * 14\n ],\n // disabled\n [\n 'name' => 'Freeleech',\n 'classname' => 'Freeleech',\n 'description' => 'Expires 6 (7) hour freeleeches',\n 'period' => 60 * 15,\n 'is_enabled' => false\n ],\n [\n 'name' => 'Perfect FLAC Token Handout',\n 'classname' => 'RewardPerfectFlacUploads',\n 'description' => 'Hands out tokens and invites for perfect FLACs',\n 'period' => 60 * 60,\n 'is_enabled' => false\n ],\n [\n 'name' => 'Update Geoip',\n 'classname' => 'UpdateGeoip',\n 'description' => 'Updates geoip distributions',\n 'period' => 60 * 60 * 24,\n 'is_enabled' => false\n ],\n ];\n\n $this->table('periodic_task')\n ->insert($fixtures)\n ->save();\n }", "title": "" }, { "docid": "a27d07877519507854890e24843f3322", "score": "0.6092883", "text": "public function up()\n {\n Schema::create(env('DB_PREFIX').'enderecos', function(Blueprint $table) {\n $table->engine = 'InnoDB';\n\n $table->increments('id_endereco');\n $table->string('logradouro', 150);\n $table->integer('cep')->nullable()->default(null);\n $table->string('complemento', 100)->nullable()->default(null);\n $table->string('numero', 10);\n $table->string('uf', 20);\n $table->string('cidade', 150);\n $table->string('bairro', 150);\n\n $table->timestamps();\n\n });\n }", "title": "" }, { "docid": "343722ba007b3a4d83883681a26ab4f0", "score": "0.60905313", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE log (id INT AUTO_INCREMENT NOT NULL, log_date DATETIME NOT NULL, frequency DOUBLE PRECISION NOT NULL, log_mode VARCHAR(10) NOT NULL, log_call VARCHAR(20) NOT NULL, log_you_rst INT NOT NULL, log_you_qsl VARCHAR(255) NOT NULL, log_you_qsl_manager VARCHAR(255) DEFAULT NULL, log_you_grid VARCHAR(10) DEFAULT NULL, log_you_dxcc VARCHAR(6) DEFAULT NULL, log_you_iota VARCHAR(6) DEFAULT NULL, log_yout_qth VARCHAR(255) DEFAULT NULL, log_my_rst INT NOT NULL, log_you_contest VARCHAR(255) DEFAULT NULL, log_my_num INT DEFAULT NULL, log_my_qsl VARCHAR(255) NOT NULL, log_my_contest VARCHAR(255) DEFAULT NULL, log_points INT DEFAULT NULL, log_remarks VARCHAR(255) DEFAULT NULL, log_folder INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user_station (user_id INT NOT NULL, station_id INT NOT NULL, PRIMARY KEY(user_id, station_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('DROP TABLE station_folder');\n $this->addSql('ALTER TABLE folder ADD CONSTRAINT FK_ECA209CD21BDB235 FOREIGN KEY (station_id) REFERENCES station (id)');\n $this->addSql('CREATE INDEX IDX_ECA209CD21BDB235 ON folder (station_id)');\n $this->addSql('ALTER TABLE station_user ADD PRIMARY KEY (station_id, user_id)');\n $this->addSql('ALTER TABLE station_user ADD CONSTRAINT FK_63A0F17421BDB235 FOREIGN KEY (station_id) REFERENCES station (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE station_user ADD CONSTRAINT FK_63A0F174A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE');\n $this->addSql('DROP INDEX station_id ON station_user');\n $this->addSql('CREATE INDEX IDX_63A0F17421BDB235 ON station_user (station_id)');\n $this->addSql('DROP INDEX user_id ON station_user');\n $this->addSql('CREATE INDEX IDX_63A0F174A76ED395 ON station_user (user_id)');\n $this->addSql('ALTER TABLE user CHANGE roles roles TEXT NOT NULL COMMENT \\'(DC2Type:json)\\'');\n }", "title": "" }, { "docid": "bd8027b69bedc45d13a6c7ca2921666c", "score": "0.60841376", "text": "private function installDatabase(): void\n {\n $this->info('Installing database contents.');\n\n $app = app();\n\n $repository = new DatabaseMigrationRepository(\n $app['db'],\n config('directus.databases.system.options.prefix', '').'migrations'\n );\n\n // Since we have our own migrations, this avoids triggering migration related events\n // inside to application code.\n $events = new Dispatcher();\n\n $migrator = new Migrator(\n $repository,\n $app['db'],\n $app['files'],\n $events\n );\n\n $migrator->setOutput($this->getOutput());\n $migrator->path(__DIR__.'/../../database/migrations');\n\n $migrator->usingConnection(\n directus()->databases()->system()->connectionName(),\n static function () use ($migrator, $repository): void {\n if (!$migrator->repositoryExists()) {\n $repository->createRepository();\n }\n\n $migrator->run($migrator->paths(), [\n 'pretend' => false,\n 'step' => false,\n ]);\n }\n );\n }", "title": "" }, { "docid": "0094f9803dd206df95ceb28ef81e761d", "score": "0.6083153", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n //$this->addSql('CREATE TABLE eafelements (id INT AUTO_INCREMENT NOT NULL, eaf_id INT DEFAULT NULL, expert_id INT DEFAULT NULL, parent_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, INDEX IDX_7A30C4C2CAE4D54A (eaf_id), INDEX IDX_7A30C4C2C5568CE4 (expert_id), INDEX IDX_7A30C4C2727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE binaire_evaluation (id INT AUTO_INCREMENT NOT NULL, first_element_id INT NOT NULL, second_element_id INT NOT NULL, first_value VARCHAR(255) DEFAULT NULL, second_value VARCHAR(255) DEFAULT NULL, INDEX IDX_266C1C358E874B23 (first_element_id), INDEX IDX_266C1C35FC41CAB7 (second_element_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE eaf (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, version VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE eaf_user (eaf_id INT NOT NULL, user_id INT NOT NULL, INDEX IDX_18D18BEFCAE4D54A (eaf_id), INDEX IDX_18D18BEFA76ED395 (user_id), PRIMARY KEY(eaf_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE entreprise (id INT AUTO_INCREMENT NOT NULL, manager_id INT NOT NULL, name VARCHAR(255) NOT NULL, lieu VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, INDEX IDX_D19FA60783E3463 (manager_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE evaluation_elements (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, entreprise_id INT DEFAULT NULL, createur_id INT NOT NULL, name VARCHAR(255) NOT NULL, validate TINYINT(1) NOT NULL, INDEX IDX_49047E7B727ACA70 (parent_id), INDEX IDX_49047E7BA4AEAFEA (entreprise_id), INDEX IDX_49047E7B73A201E5 (createur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n //$this->addSql('CREATE TABLE mapping (id INT AUTO_INCREMENT NOT NULL, expert_id INT DEFAULT NULL, eafelement_id INT DEFAULT NULL, evaluation_element_id INT DEFAULT NULL, value VARCHAR(255) NOT NULL, INDEX IDX_49E62C8AC5568CE4 (expert_id), INDEX IDX_49E62C8AEBAB1181 (eafelement_id), INDEX IDX_49E62C8AF5186DD6 (evaluation_element_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE preferences (id INT AUTO_INCREMENT NOT NULL, first_element_id INT DEFAULT NULL, second_element_id INT DEFAULT NULL, evaluateur_id INT NOT NULL, first_value VARCHAR(255) DEFAULT NULL, second_value VARCHAR(255) DEFAULT NULL, INDEX IDX_E931A6F58E874B23 (first_element_id), INDEX IDX_E931A6F5FC41CAB7 (second_element_id), INDEX IDX_E931A6F5231F139 (evaluateur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, evaluate_entreprise_id INT DEFAULT NULL, expert_entreprise_id INT DEFAULT NULL, username VARCHAR(180) NOT NULL, username_canonical VARCHAR(180) NOT NULL, email VARCHAR(180) NOT NULL, email_canonical VARCHAR(180) NOT NULL, enabled TINYINT(1) NOT NULL, salt VARCHAR(255) DEFAULT NULL, password VARCHAR(255) NOT NULL, last_login DATETIME DEFAULT NULL, confirmation_token VARCHAR(180) DEFAULT NULL, password_requested_at DATETIME DEFAULT NULL, roles LONGTEXT NOT NULL COMMENT \\'(DC2Type:array)\\', first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, experience INT DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D64992FC23A8 (username_canonical), UNIQUE INDEX UNIQ_8D93D649A0D96FBF (email_canonical), UNIQUE INDEX UNIQ_8D93D649C05FB297 (confirmation_token), INDEX IDX_8D93D649C7DD3230 (evaluate_entreprise_id), INDEX IDX_8D93D6493AB49740 (expert_entreprise_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n //$this->addSql('ALTER TABLE eafelements ADD CONSTRAINT FK_7A30C4C2CAE4D54A FOREIGN KEY (eaf_id) REFERENCES eaf (id)');\n //$this->addSql('ALTER TABLE eafelements ADD CONSTRAINT FK_7A30C4C2C5568CE4 FOREIGN KEY (expert_id) REFERENCES user (id)');\n //$this->addSql('ALTER TABLE eafelements ADD CONSTRAINT FK_7A30C4C2727ACA70 FOREIGN KEY (parent_id) REFERENCES eafelements (id)');\n $this->addSql('ALTER TABLE binaire_evaluation ADD CONSTRAINT FK_266C1C358E874B23 FOREIGN KEY (first_element_id) REFERENCES eaf (id)');\n $this->addSql('ALTER TABLE binaire_evaluation ADD CONSTRAINT FK_266C1C35FC41CAB7 FOREIGN KEY (second_element_id) REFERENCES eaf (id)');\n $this->addSql('ALTER TABLE eaf_user ADD CONSTRAINT FK_18D18BEFCAE4D54A FOREIGN KEY (eaf_id) REFERENCES eaf (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE eaf_user ADD CONSTRAINT FK_18D18BEFA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE entreprise ADD CONSTRAINT FK_D19FA60783E3463 FOREIGN KEY (manager_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE evaluation_elements ADD CONSTRAINT FK_49047E7B727ACA70 FOREIGN KEY (parent_id) REFERENCES evaluation_elements (id)');\n $this->addSql('ALTER TABLE evaluation_elements ADD CONSTRAINT FK_49047E7BA4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE evaluation_elements ADD CONSTRAINT FK_49047E7B73A201E5 FOREIGN KEY (createur_id) REFERENCES user (id)');\n // $this->addSql('ALTER TABLE mapping ADD CONSTRAINT FK_49E62C8AC5568CE4 FOREIGN KEY (expert_id) REFERENCES user (id)');\n //$this->addSql('ALTER TABLE mapping ADD CONSTRAINT FK_49E62C8AEBAB1181 FOREIGN KEY (eafelement_id) REFERENCES eafelements (id)');\n //$this->addSql('ALTER TABLE mapping ADD CONSTRAINT FK_49E62C8AF5186DD6 FOREIGN KEY (evaluation_element_id) REFERENCES evaluation_elements (id)');\n $this->addSql('ALTER TABLE preferences ADD CONSTRAINT FK_E931A6F58E874B23 FOREIGN KEY (first_element_id) REFERENCES evaluation_elements (id)');\n $this->addSql('ALTER TABLE preferences ADD CONSTRAINT FK_E931A6F5FC41CAB7 FOREIGN KEY (second_element_id) REFERENCES evaluation_elements (id)');\n $this->addSql('ALTER TABLE preferences ADD CONSTRAINT FK_E931A6F5231F139 FOREIGN KEY (evaluateur_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649C7DD3230 FOREIGN KEY (evaluate_entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D6493AB49740 FOREIGN KEY (expert_entreprise_id) REFERENCES entreprise (id)');\n }", "title": "" }, { "docid": "ee3ee341d8afc513322999934c1b5ba1", "score": "0.607309", "text": "public function runDatabaseMigrations()\n {\n $this->artisan('migrate:fresh --seed');\n $this->app[Kernel::class]->setArtisan(null);\n\n $this->beforeApplicationDestroyed(function () {\n $this->artisan('migrate:rollback');\n\n RefreshDatabaseState::$migrated = false;\n });\n }", "title": "" }, { "docid": "27fc640728bbea526d76157dd8e57699", "score": "0.6069406", "text": "public function up()\n\t{\n\t\tSchema::create('step8', function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('estudio_id');\n\t\t\t$table->integer('drenaje');\n\t\t\t$table->integer('combustible');\n\t\t\t$table->integer('luz');\n\t\t\t$table->integer('estado_vivienda');\n\t\t\t$table->string('mejoras');\n\t\t\t$table->string('tipo_mejoras');\n\t\t\t$table->string('vivienda_cuenta');\n\t\t\t$table->integer('television');\n\t\t\t$table->integer('internet');\n\t\t\t$table->integer('cable');\n\t\t\t$table->integer('negocio');\n\t\t\t$table->string('negocio_tipo');\n\t\t\t$table->string('negocio_ubicacion');\n\t\t\t$table->string('negocio_dias_trabajo');\n\t\t\t$table->string('negocio_dias_descanso');\n\t\t\t$table->string('negocio_horario');\n\t\t\t$table->integer('valor_approx');\n\t\t\t$table->integer('renta_mensual');\n\t\t\t$table->integer('ingreso_diario');\n\t\t\t$table->timestamps();\n\t\t});\n\t}", "title": "" }, { "docid": "bdcc4903adbc2fc2cf65bb7b692eb0fe", "score": "0.60688883", "text": "public function up(Schema $schema)\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() != \"mysql\", \"Migration can only be executed safely on 'mysql'.\");\n \n $this->addSql(\"CREATE TABLE ext_translations (id INT AUTO_INCREMENT NOT NULL, locale VARCHAR(8) NOT NULL, object_class VARCHAR(255) NOT NULL, field VARCHAR(32) NOT NULL, foreign_key VARCHAR(64) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX translations_lookup_idx (locale, object_class, foreign_key), UNIQUE INDEX lookup_unique_idx (locale, object_class, field, foreign_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE ext_log_entries (id INT AUTO_INCREMENT NOT NULL, action VARCHAR(8) NOT NULL, logged_at DATETIME NOT NULL, object_id VARCHAR(64) DEFAULT NULL, object_class VARCHAR(255) NOT NULL, version INT NOT NULL, data LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)', username VARCHAR(255) DEFAULT NULL, INDEX log_class_lookup_idx (object_class), INDEX log_date_lookup_idx (logged_at), INDEX log_user_lookup_idx (username), INDEX log_version_lookup_idx (object_id, object_class, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE groups (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL, role VARCHAR(20) NOT NULL, created DATETIME NOT NULL, updated DATETIME NOT NULL, UNIQUE INDEX UNIQ_F06D397057698A6A (role), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE blogs (id VARCHAR(32) NOT NULL, title VARCHAR(64) NOT NULL, created DATETIME NOT NULL, updated DATETIME NOT NULL, createdBy VARCHAR(255) NOT NULL, updatedBy VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE users (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(25) NOT NULL, name VARCHAR(50) NOT NULL, salt VARCHAR(32) NOT NULL, password VARCHAR(40) NOT NULL, email VARCHAR(60) NOT NULL, token VARCHAR(20) DEFAULT NULL, is_active TINYINT(1) NOT NULL, logins INT DEFAULT 0 NOT NULL, created DATETIME NOT NULL, createdBy VARCHAR(255) NOT NULL, updated DATETIME NOT NULL, updatedBy VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_1483A5E9F85E0677 (username), UNIQUE INDEX UNIQ_1483A5E9E7927C74 (email), UNIQUE INDEX UNIQ_1483A5E95F37A13B (token), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE user_group (user_id INT NOT NULL, group_id INT NOT NULL, INDEX IDX_8F02BF9DA76ED395 (user_id), INDEX IDX_8F02BF9DFE54D947 (group_id), PRIMARY KEY(user_id, group_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE menus (id INT AUTO_INCREMENT NOT NULL, parent INT NOT NULL, seq INT NOT NULL, title VARCHAR(30) NOT NULL, icon VARCHAR(20) DEFAULT NULL, url VARCHAR(50) NOT NULL, secured TINYINT(1) NOT NULL, external TINYINT(1) NOT NULL, created DATETIME NOT NULL, createdBy VARCHAR(30) NOT NULL, updated DATETIME NOT NULL, updatedBy VARCHAR(30) NOT NULL, role VARCHAR(30) NOT NULL, UNIQUE INDEX UNIQ_727508CFF47645AE (url), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE notices (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(64) NOT NULL, content LONGTEXT NOT NULL, publish DATE NOT NULL, expire DATE NOT NULL, created DATETIME NOT NULL, createdBy VARCHAR(255) NOT NULL, updated DATETIME NOT NULL, updatedBy VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"ALTER TABLE user_group ADD CONSTRAINT FK_8F02BF9DA76ED395 FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE\");\n $this->addSql(\"ALTER TABLE user_group ADD CONSTRAINT FK_8F02BF9DFE54D947 FOREIGN KEY (group_id) REFERENCES groups (id) ON DELETE CASCADE\");\n }", "title": "" }, { "docid": "0f5574eedae14401da3ef8654c039a8e", "score": "0.6066008", "text": "public function up()\n {\n $tablePrefix = Yii::$app->db->tablePrefix;\n $this->createTable($tablePrefix . 'cron_log', [\n 'id' => $this->primaryKey()->comment(\"主键自增ID\"),\n 'cron_config_id' => $this->integer()->notNull()->comment(\"定时任务配置ID\"),\n 'status' => $this->smallInteger(1)->comment(\"执行结果,0:正常执行,1:异常退出\"),\n 'remark' => $this->string()->comment(\"备注原因\"),\n 'create_time' => $this->timestamp()->comment(\"创建时间\"),\n\n ]);\n\n\n }", "title": "" }, { "docid": "7be40ae5d90ab311f7b03293e7a2069e", "score": "0.6058246", "text": "public function run()\n {\n DB::table('nueva_migration')->insert([\n 'id' => Str::random(10),\n 'name' => Str::random(10),\n ]);\n }", "title": "" }, { "docid": "27b30f5829d4f7f176c0459ee30ad813", "score": "0.6057433", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE cart (id INT AUTO_INCREMENT NOT NULL, product_id INT NOT NULL, user_id INT NOT NULL, quantity INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE coach (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, addr VARCHAR(255) NOT NULL, mail VARCHAR(255) NOT NULL, num VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cours (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(100) NOT NULL, categorie VARCHAR(100) NOT NULL, niveau VARCHAR(100) NOT NULL, image VARCHAR(100) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE event (id INT AUTO_INCREMENT NOT NULL, titre VARCHAR(50) DEFAULT NULL, description VARCHAR(100) DEFAULT NULL, image VARCHAR(100) DEFAULT NULL, location VARCHAR(500) DEFAULT NULL, date_debut DATETIME DEFAULT NULL, date_fin DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE exercice (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(50) DEFAULT NULL, duration VARCHAR(255) NOT NULL, location VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE info (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, mail VARCHAR(255) NOT NULL, age INT NOT NULL, date DATE NOT NULL, experience VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE line_order (id INT AUTO_INCREMENT NOT NULL, order_id INT NOT NULL, product_id INT NOT NULL, quantity INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE nutritionniste (id INT AUTO_INCREMENT NOT NULL, no VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, addr VARCHAR(255) NOT NULL, mail VARCHAR(255) NOT NULL, num INT NOT NULL, image VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE `order` (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, company VARCHAR(255) NOT NULL, zip_code VARCHAR(255) NOT NULL, comment LONGTEXT DEFAULT NULL, date DATE NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE product (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description LONGTEXT NOT NULL, quantity INT NOT NULL, size VARCHAR(255) NOT NULL, color VARCHAR(255) NOT NULL, type VARCHAR(255) NOT NULL, supplier VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, price NUMERIC(10, 4) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE promotion (id INT AUTO_INCREMENT NOT NULL, titre VARCHAR(50) DEFAULT NULL, pourcentage INT DEFAULT NULL, description VARCHAR(200) DEFAULT NULL, type_produit VARCHAR(200) DEFAULT NULL, date_debut DATETIME DEFAULT NULL, date_fin DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE regime (id INT AUTO_INCREMENT NOT NULL, type VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, role VARCHAR(255) NOT NULL, address VARCHAR(255) DEFAULT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, country VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n }", "title": "" }, { "docid": "e82ef9a6a8abf25dadb92918325140e7", "score": "0.60564566", "text": "public function up()\n\t{\n\t\tSchema::create('submissions', function($table) {\n\t\t\t// auto incremental id (PK)\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('user_id');\n\t\t\t$table->integer('quest_id');\n\t\t\t$table->text('submission');\n\t\t\t$table->text('filename');\n\t\t\t$table->boolean('graded');\n\t\t\t$table->boolean('visible');\n\t\t\t$table->integer('revision');\n\t\t\t$table->timestamps();\n\n\t\t});\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "afeeee014e67c94ce3508b0b30c03631", "score": "0.60547423", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE depences (id INT AUTO_INCREMENT NOT NULL, designation VARCHAR(255) DEFAULT NULL, prix_unitaire DOUBLE PRECISION DEFAULT NULL, quantite DOUBLE PRECISION DEFAULT NULL, total INT DEFAULT NULL, date_action DATE DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE adherant CHANGE adherant_id adherant_id INT DEFAULT NULL, CHANGE adresse adresse VARCHAR(255) DEFAULT NULL, CHANGE tel tel INT DEFAULT NULL, CHANGE mail mail VARCHAR(255) DEFAULT NULL, CHANGE cin cin INT DEFAULT NULL');\n $this->addSql('ALTER TABLE adhesion CHANGE montant montant DOUBLE PRECISION DEFAULT NULL, CHANGE paiement paiement TINYINT(1) DEFAULT NULL, CHANGE date_adhesion date_adhesion DATE DEFAULT NULL, CHANGE annee_adhesion annee_adhesion DATE DEFAULT NULL');\n $this->addSql('ALTER TABLE article CHANGE date_creation date_creation DATE DEFAULT NULL, CHANGE date_modification date_modification VARCHAR(255) DEFAULT NULL, CHANGE contenu contenu VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE bureau_directeur CHANGE president_id president_id INT DEFAULT NULL, CHANGE vice_president_id vice_president_id INT DEFAULT NULL, CHANGE tresorier_id tresorier_id INT DEFAULT NULL, CHANGE secretaire_general_id secretaire_general_id INT DEFAULT NULL, CHANGE date_fin_mondat date_fin_mondat DATE DEFAULT NULL, CHANGE date_debut_mondat date_debut_mondat DATE DEFAULT NULL');\n $this->addSql('ALTER TABLE convention CHANGE nom_evenement nom_evenement VARCHAR(255) DEFAULT NULL, CHANGE date_debut date_debut DATE DEFAULT NULL, CHANGE date_fin date_fin DATE DEFAULT NULL, CHANGE lieu lieu VARCHAR(255) DEFAULT NULL, CHANGE nom_responsable nom_responsable VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE evenement CHANGE nom_evenement nom_evenement VARCHAR(255) DEFAULT NULL, CHANGE type_evenement type_evenement VARCHAR(255) DEFAULT NULL, CHANGE participate participate VARCHAR(255) DEFAULT NULL, CHANGE date_deb_ev date_deb_ev DATE DEFAULT NULL, CHANGE date_fin_ev date_fin_ev DATE DEFAULT NULL, CHANGE nom_responsable_ev nom_responsable_ev VARCHAR(255) DEFAULT NULL, CHANGE lieu_evenement lieu_evenement VARCHAR(255) DEFAULT NULL, CHANGE description_ev description_ev VARCHAR(255) DEFAULT NULL, CHANGE logo_evenement logo_evenement VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE revenu CHANGE evenement_id evenement_id INT DEFAULT NULL, CHANGE designation designation VARCHAR(255) DEFAULT NULL, CHANGE prix_unitaire prix_unitaire DOUBLE PRECISION DEFAULT NULL, CHANGE quantite quantite DOUBLE PRECISION DEFAULT NULL, CHANGE total total INT DEFAULT NULL, CHANGE date_action date_action DATE DEFAULT NULL');\n $this->addSql('ALTER TABLE sponsor CHANGE nom_sponsor nom_sponsor VARCHAR(255) DEFAULT NULL, CHANGE montant montant DOUBLE PRECISION DEFAULT NULL, CHANGE mode_paient mode_paient VARCHAR(255) DEFAULT NULL, CHANGE matriculefiscale matriculefiscale INT DEFAULT NULL, CHANGE logo_sponsor logo_sponsor VARCHAR(255) DEFAULT NULL, CHANGE tel tel INT DEFAULT NULL, CHANGE mail mail VARCHAR(255) DEFAULT NULL, CHANGE lien_web lien_web VARCHAR(255) DEFAULT NULL');\n $this->addSql('ALTER TABLE user CHANGE roles roles JSON NOT NULL');\n }", "title": "" }, { "docid": "4177b7f20a4ada0f7c9c7680326697ce", "score": "0.6053335", "text": "public function up()\n\t{\n\t\t$this->createTable('tbl_sys_message', array(\n\t\t\t'id'=>'pk',\n\t\t 'message'=>'text NOT NULL',\n\t\t 'create_time'=>'datetime DEFAULT NULL',\n\t\t\t'create_user_id'=>'int(11) DEFAULT NULL',\n\t\t\t'update_time'=>'datetime DEFAULT NULL',\n\t\t\t'update_user_id'=>'int(11) DEFAULT NULL',\n\t\t ), 'ENGINE=InnoDB');\n\n\t\t// tbl_sys_message.create_user_id references tbl_user.id\n\t\t$this->addForeignKey('fk_sys_message_owner', 'tbl_sys_message', 'create_user_id', 'tbl_user', 'id', 'CASCADE', 'RESTRICT');\n\n\t\t// tbl_sys_message.updated_user_id references tbl_user.id\n\t\t$this->addForeignKey('fk_sys_message_update_user', 'tbl_sys_message', 'update_user_id', 'tbl_user', 'id', 'CASCADE', 'RESTRICT');\n\n\t\t// Create an index on the update_time as we use this to sort our results\n\t\t$this->createIndex('idx_sys_message_update_time', 'tbl_sys_message','update_time');\n\t}", "title": "" }, { "docid": "49b53ad40334548b1ac7cc2ea341969c", "score": "0.6051666", "text": "public function up()\n\t{\n\t\tSchema::create('accounts', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('language_id');\n\t\t\t$table->string('email');\n\t\t\t$table->string('password');\n\t\t\t$table->string('name');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('accounts')->insert(array(\n\t\t\t'language_id' => 1,\n\t\t\t'email' => 'admin@admin.com',\n\t\t\t'password' => Hash::make('admin'),\n\t\t\t'name' => 'Administrator',\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('roles', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tDB::table('roles')->insert(array(\n\t\t\t'name' => 'admin',\n\t\t));\n\n\t\tSchema::create('role_lang', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('role_id');\n\t\t\t$table->string('name');\n\t\t\t$table->string('description');\n\t\t});\n\n\t\tDB::table('role_lang')->insert(array(\n\t\t\t'role_id' => 1,\n\t\t\t'name' => 'Admin',\n\t\t\t'description' => 'Dee maag alles dee jong...'\n\t\t));\n\n\t\tSchema::create('account_role', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('account_id');\n\t\t\t$table->integer('role_id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('account_role')->insert(array(\n\t\t\t'account_id' => 1,\n\t\t\t'role_id' => 1,\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('pages', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('template_id');\n\t\t\t$table->integer('account_id');\n\t\t\t$table->string('type');\n\t\t\t$table->integer('order');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('pages')->insert(array(\n\t\t\t'template_id' => 1,\n\t\t\t'account_id' => 1,\n\t\t\t'type' => 'published',\n\t\t\t'order' => 1,\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('page_lang', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('page_id');\n\t\t\t$table->integer('language_id');\n\t\t\t$table->integer('active');\n\t\t\t$table->string('url');\n\t\t\t$table->string('meta_title');\n\t\t\t$table->text('meta_keywords');\n\t\t\t$table->text('meta_description');\n\t\t\t$table->string('menu');\n\t\t\t$table->text('content');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('page_lang')->insert(array(\n\t\t\t'page_id' => 1,\n\t\t\t'language_id' => 1,\n\t\t\t'active' => 1,\n\t\t\t'url' => 'home',\n\t\t\t'meta_title' => 'Welkom op onze website | Testpagina',\n\t\t\t'meta_keywords' => 'home, welcome',\n\t\t\t'meta_description' => 'Welkom op de homepagina van ...',\n\t\t\t'menu' => 'Homepagina',\n\t\t\t'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n\t\t\t\ttempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\n\t\t\t\tquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n\t\t\t\tconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\n\t\t\t\tcillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\n\t\t\t\tproident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('regions', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('page_id');\n\t\t\t$table->integer('layout_id');\n\t\t});\n\n\t\tSchema::create('mediagroups', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tDB::table('mediagroups')->insert(array(\n\t\t\t'name' => 'Layla'\n\t\t));\n\n\t\tSchema::create('media', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('mediagroup_id');\n\t\t\t$table->integer('mediatype_id');\n\t\t\t$table->string('location', 300);\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('media')->insert(array(\n\t\t\t'mediagroup_id' => 1,\n\t\t\t'mediatype_id' => 1,\n\t\t\t'location' => path('public').'img'.DS.'layla.gif',\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('media_lang', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('language_id');\n\t\t\t$table->string('title');\n\t\t\t$table->text('description');\n\t\t\t$table->string('tags');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\tDB::table('media_lang')->insert(array(\n\t\t\t'language_id' => 1,\n\t\t\t'title' => 'Layla!',\n\t\t\t'description' => 'Layla logo',\n\t\t\t'tags' => 'layla,logo',\n\t\t\t'created_at' => new \\DateTime,\n\t\t\t'updated_at' => new \\DateTime\n\t\t));\n\n\t\tSchema::create('mediatypes', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tDB::table('mediatypes')->insert(array(\n\t\t\tarray('name' => 'image'),\n\t\t\tarray('name' => 'youtube'),\n\t\t\tarray('name' => 'vimeo')\n\t\t));\n\n\t\tSchema::create('module_region', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('module_id');\n\t\t\t$table->integer('region_id');\n\t\t\t$table->integer('order');\n\t\t\t$table->text('settings');\n\t\t});\n\n\t\tSchema::create('modules', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('name');\n\t\t});\n\n\t\tSchema::create('languages', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tDB::table('languages')->insert(array(\n\t\t\t'name' => 'English'\n\t\t));\n\n\t\tSchema::create('layouts', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('name');\n\t\t\t$table->string('type'); // [webpage, stylesheet, javascript, partial]\n\t\t\t$table->text('content');\n\t\t});\n\n\t\tDB::table('layouts')->insert(array(\n\t\t\t'name' => 'Default',\n\t\t\t'type' => 'webpage',\n\t\t\t'content' => '<html><head></head><body>this is the layout</body></html>',\n\t\t));\n\n\t\t$permissiongroups = array(\n\t\t\t'account' => array(\n\t\t\t\t'lang' => array(\n\t\t\t\t\t1 => 'Account'\n\t\t\t\t),\n\t\t\t\t'permissions' => array(\n\t\t\t\t\t'create' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Create'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'read' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Read'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'update' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Update'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'delete' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Delete'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'set_permissions' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Set permissions'\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'page' => array(\n\t\t\t\t'lang' => array(\n\t\t\t\t\t1 => 'Page'\n\t\t\t\t),\n\t\t\t\t'permissions' => array(\n\t\t\t\t\t'create' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Create'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'read' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Read'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'update' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Update'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'delete' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Delete'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'publish' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Publish'\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'media' => array(\n\t\t\t\t'lang' => array(\n\t\t\t\t\t1 => 'Media'\n\t\t\t\t),\n\t\t\t\t'permissions' => array(\n\t\t\t\t\t'create' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Create'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'read' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Read'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'update' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Update'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'delete' => array(\n\t\t\t\t\t\t'lang' => array(\n\t\t\t\t\t\t\t1 => 'Delete'\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);\n\n\t\tSchema::create('permissiongroups', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->string('resource');\n\t\t});\n\n\t\tSchema::create('permissiongroup_lang', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('permissiongroup_id');\n\t\t\t$table->integer('language_id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tSchema::create('permissions', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('permissiongroup_id');\n\t\t\t$table->string('action');\n\t\t});\n\n\t\tSchema::create('permission_lang', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('language_id');\n\t\t\t$table->string('name');\n\t\t});\n\n\t\tSchema::create('user_permission', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('user_id');\n\t\t\t$table->integer('permission_id');\n\t\t});\n\n\t\tforeach ($permissiongroups as $resource => $options)\n\t\t{\n\t\t\t$permissiongroup_id = DB::table('permissiongroups')->insert_get_id(array(\n\t\t\t\t'resource' => $resource\n\t\t\t));\n\n\t\t\tforeach ($options['lang'] as $language_id => $name)\n\t\t\t{\n\t\t\t\tDB::table('permissiongroup_lang')->insert(array(\n\t\t\t\t\t'permissiongroup_id' => $permissiongroup_id,\n\t\t\t\t\t'language_id' => $language_id,\n\t\t\t\t\t'name' => $name\n\t\t\t\t));\n\t\t\t}\n\n\t\t\tforeach ($options['permissions'] as $action => $options)\n\t\t\t{\n\t\t\t\tDB::table('permissions')->insert(array(\n\t\t\t\t\t'permissiongroup_id' => $permissiongroup_id,\n\t\t\t\t\t'action' => $action\n\t\t\t\t));\n\n\t\t\t\tforeach ($options['lang'] as $language_id => $name)\n\t\t\t\t{\n\t\t\t\t\tDB::table('permission_lang')->insert(array(\n\t\t\t\t\t\t'language_id' => $language_id,\n\t\t\t\t\t\t'name' => $name\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eea681e0007a2fe8ef13d23b27286ab1", "score": "0.60510045", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE cahier_texte (id INT AUTO_INCREMENT NOT NULL, date DATETIME NOT NULL, debut DATE NOT NULL, fin DATETIME NOT NULL, cours VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE classe (id INT AUTO_INCREMENT NOT NULL, niveau VARCHAR(255) NOT NULL, filiaire VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE cours (id INT AUTO_INCREMENT NOT NULL, date DATETIME NOT NULL, titre VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE note (id INT AUTO_INCREMENT NOT NULL, date DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE nouvelle (id INT AUTO_INCREMENT NOT NULL, titre VARCHAR(255) NOT NULL, date DATETIME NOT NULL, contenu LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE payement (id INT AUTO_INCREMENT NOT NULL, date DATETIME NOT NULL, montant INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE utilisateur (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, pseudo VARCHAR(255) NOT NULL, mdp VARCHAR(255) NOT NULL, date_naissance DATETIME NOT NULL, nationalite VARCHAR(255) NOT NULL, adresse VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, telephone INT NOT NULL, date_inscription DATETIME DEFAULT NULL, date_embauche DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n }", "title": "" }, { "docid": "83e5f41131b339227968f7949d6808b7", "score": "0.6050845", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE article (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, creation_date DATETIME NOT NULL, last_update DATETIME NOT NULL, content LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE category (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE event (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, location VARCHAR(255) DEFAULT NULL, public TINYINT(1) NOT NULL, start_date DATE DEFAULT NULL, end_date DATE DEFAULT NULL, code VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE message (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, topic_id INT NOT NULL, creation_date DATETIME NOT NULL, content LONGTEXT NOT NULL, INDEX IDX_B6BD307FA76ED395 (user_id), INDEX IDX_B6BD307F1F55203D (topic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE participation (id INT AUTO_INCREMENT NOT NULL, event_id INT NOT NULL, user_id INT NOT NULL, participation VARCHAR(1) NOT NULL, INDEX IDX_AB55E24F71F7E88B (event_id), INDEX IDX_AB55E24FA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE partner (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, link VARCHAR(1000) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE read_topic (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, topic_id INT NOT NULL, unread TINYINT(1) NOT NULL, INDEX IDX_C2C0A2CFA76ED395 (user_id), INDEX IDX_C2C0A2CF1F55203D (topic_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE topic (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, category_id INT NOT NULL, title VARCHAR(255) NOT NULL, creation_date DATETIME NOT NULL, pinned TINYINT(1) NOT NULL, INDEX IDX_9D40DE1BA76ED395 (user_id), INDEX IDX_9D40DE1B12469DE2 (category_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, password VARCHAR(1000) NOT NULL, celt_name VARCHAR(255) DEFAULT NULL, admin TINYINT(1) NOT NULL, status VARCHAR(10) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307F1F55203D FOREIGN KEY (topic_id) REFERENCES topic (id)');\n $this->addSql('ALTER TABLE participation ADD CONSTRAINT FK_AB55E24F71F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');\n $this->addSql('ALTER TABLE participation ADD CONSTRAINT FK_AB55E24FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE read_topic ADD CONSTRAINT FK_C2C0A2CFA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE read_topic ADD CONSTRAINT FK_C2C0A2CF1F55203D FOREIGN KEY (topic_id) REFERENCES topic (id)');\n $this->addSql('ALTER TABLE topic ADD CONSTRAINT FK_9D40DE1BA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE topic ADD CONSTRAINT FK_9D40DE1B12469DE2 FOREIGN KEY (category_id) REFERENCES category (id)');\n }", "title": "" }, { "docid": "f3a8b9d66d37af825926ed2b3d2b6821", "score": "0.60505587", "text": "public function fire()\n {\n $this->laravel->view->addNamespace('keylib', substr(__DIR__, 0, -8).'views');\n\n $keylib_table = config('keylib.keylib_table','zxc__key_lib');\n $keylib_dic_table = config('keylib.keylib_dic_table','zxc__key_lib_dic');\n $keylib_sql_table = config('keylib.keylib_sql_table','zxc__key_lib_sql');\n $keylib_realtime_table = config('keylib.keylib_realtime_table','zxc__key_lib_realtime');\n $keylib_alert_table = config('keylib.keylib_alert_table','zxc__key_lib_alert');\n\n $this->line('');\n $this->info( \"Tables: $keylib_table, $keylib_dic_table, $keylib_sql_table, $keylib_realtime_table, $keylib_alert_table\" );\n\n $message = \"A migration that creates '$keylib_table' , '$keylib_dic_table' , '$keylib_sql_table' , '$keylib_realtime_table' , '$keylib_alert_table'\".\n \" tables will be created in database/migrations directory\";\n\n $this->comment($message);\n $this->line('');\n\n if ($this->confirm(\"Proceed with the migration creation? [Yes|no]\", \"Yes\")) {\n $this->line('');\n $this->info(\"Creating migration...\");\n if ($this->createMigration(compact('keylib_table','keylib_dic_table','keylib_sql_table','keylib_realtime_table','keylib_alert_table'))) {\n $this->info(\"Migration successfully created!\");\n } else {\n $this->error(\n \"Couldn't create migration.\\n Check the write permissions\".\n \" within the database/migrations directory.\"\n );\n }\n\n $this->line('');\n\n }\n }", "title": "" }, { "docid": "4f40418ae530ebb328d8908b786c55b0", "score": "0.60454386", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE activite (id INT AUTO_INCREMENT NOT NULL, bloc_id INT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(255) DEFAULT NULL, INDEX IDX_B87555155582E9C0 (bloc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE bloc (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE commentaire (id INT AUTO_INCREMENT NOT NULL, enseignant_id INT DEFAULT NULL, rp_id INT NOT NULL, commentaire LONGTEXT NOT NULL, date_commentaire DATE NOT NULL, INDEX IDX_67F068BCE455FCC0 (enseignant_id), INDEX IDX_67F068BCB70FF80C (rp_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE competence (id INT AUTO_INCREMENT NOT NULL, activite_id INT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(255) DEFAULT NULL, INDEX IDX_94D4687F9B0F88B1 (activite_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE localisation (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE niveau (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE `option` (id INT AUTO_INCREMENT NOT NULL, sigle VARCHAR(50) DEFAULT NULL, libelle VARCHAR(50) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE production (id INT AUTO_INCREMENT NOT NULL, rp_id INT NOT NULL, num INT NOT NULL, designation VARCHAR(255) DEFAULT NULL, adresse LONGTEXT DEFAULT NULL, INDEX IDX_D3EDB1E0B70FF80C (rp_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE rp (id INT AUTO_INCREMENT NOT NULL, localisation_id INT DEFAULT NULL, statut_id INT DEFAULT NULL, source_id INT NOT NULL, etudiant_id INT NOT NULL, enseignant_id INT DEFAULT NULL, libcourt VARCHAR(100) NOT NULL, descriptif VARCHAR(255) DEFAULT NULL, contexte VARCHAR(255) DEFAULT NULL, date_debut DATE NOT NULL, date_fin DATE NOT NULL, environnement VARCHAR(255) DEFAULT NULL, moyen VARCHAR(255) DEFAULT NULL, date_modif DATE DEFAULT NULL, INDEX IDX_CD578B7C68BE09C (localisation_id), INDEX IDX_CD578B7F6203804 (statut_id), INDEX IDX_CD578B7953C1C61 (source_id), INDEX IDX_CD578B7DDEAB1A3 (etudiant_id), INDEX IDX_CD578B7E455FCC0 (enseignant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE rpactivite (id INT AUTO_INCREMENT NOT NULL, niveau_id INT DEFAULT NULL, activite_id INT NOT NULL, rp_id INT NOT NULL, commentaire LONGTEXT DEFAULT NULL, INDEX IDX_3CC2747AB3E9C81 (niveau_id), INDEX IDX_3CC2747A9B0F88B1 (activite_id), INDEX IDX_3CC2747AB70FF80C (rp_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE source (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(20) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE statut (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE activite ADD CONSTRAINT FK_B87555155582E9C0 FOREIGN KEY (bloc_id) REFERENCES bloc (id)');\n $this->addSql('ALTER TABLE commentaire ADD CONSTRAINT FK_67F068BCE455FCC0 FOREIGN KEY (enseignant_id) REFERENCES enseignant (id)');\n $this->addSql('ALTER TABLE commentaire ADD CONSTRAINT FK_67F068BCB70FF80C FOREIGN KEY (rp_id) REFERENCES rp (id)');\n $this->addSql('ALTER TABLE competence ADD CONSTRAINT FK_94D4687F9B0F88B1 FOREIGN KEY (activite_id) REFERENCES activite (id)');\n $this->addSql('ALTER TABLE production ADD CONSTRAINT FK_D3EDB1E0B70FF80C FOREIGN KEY (rp_id) REFERENCES rp (id)');\n $this->addSql('ALTER TABLE rp ADD CONSTRAINT FK_CD578B7C68BE09C FOREIGN KEY (localisation_id) REFERENCES localisation (id)');\n $this->addSql('ALTER TABLE rp ADD CONSTRAINT FK_CD578B7F6203804 FOREIGN KEY (statut_id) REFERENCES statut (id)');\n $this->addSql('ALTER TABLE rp ADD CONSTRAINT FK_CD578B7953C1C61 FOREIGN KEY (source_id) REFERENCES source (id)');\n $this->addSql('ALTER TABLE rp ADD CONSTRAINT FK_CD578B7DDEAB1A3 FOREIGN KEY (etudiant_id) REFERENCES etudiant (id)');\n $this->addSql('ALTER TABLE rp ADD CONSTRAINT FK_CD578B7E455FCC0 FOREIGN KEY (enseignant_id) REFERENCES enseignant (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747AB3E9C81 FOREIGN KEY (niveau_id) REFERENCES niveau (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747A9B0F88B1 FOREIGN KEY (activite_id) REFERENCES activite (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747AB70FF80C FOREIGN KEY (rp_id) REFERENCES rp (id)');\n $this->addSql('DROP TABLE optioni');\n $this->addSql('ALTER TABLE etudiant ADD ville_perso_id INT DEFAULT NULL, ADD ville_famille_id INT DEFAULT NULL');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E31664D154 FOREIGN KEY (option_i_id) REFERENCES `option` (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E3D0C00A17 FOREIGN KEY (ville_perso_id) REFERENCES ville (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E349FB9F8D FOREIGN KEY (ville_famille_id) REFERENCES ville (id)');\n $this->addSql('CREATE INDEX IDX_717E22E31664D154 ON etudiant (option_i_id)');\n $this->addSql('CREATE INDEX IDX_717E22E3D0C00A17 ON etudiant (ville_perso_id)');\n $this->addSql('CREATE INDEX IDX_717E22E349FB9F8D ON etudiant (ville_famille_id)');\n $this->addSql('ALTER TABLE etudiant RENAME INDEX fk_717e22e3e03f15c0 TO IDX_717E22E3E03F15C0');\n $this->addSql('ALTER TABLE etudiant RENAME INDEX fk_717e22e3139df194 TO IDX_717E22E3139DF194');\n $this->addSql('ALTER TABLE ville CHANGE copos copos VARCHAR(50) DEFAULT NULL');\n }", "title": "" }, { "docid": "efe1229a676ef049a500480bfa6fe1c1", "score": "0.6045344", "text": "public function up(Schema $schema): void\n {\n $this->addSql('CREATE TABLE articles (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(100) NOT NULL, content LONGTEXT NOT NULL, image VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, is_enabled TINYINT(1) NOT NULL, is_integration TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE ch_cookieconsent_log (id INT AUTO_INCREMENT NOT NULL, ip_address VARCHAR(255) NOT NULL, cookie_consent_key VARCHAR(255) NOT NULL, cookie_name VARCHAR(255) NOT NULL, cookie_value VARCHAR(255) NOT NULL, timestamp DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE club_lists (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, address VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE match_cancellation (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, matchs_id INT NOT NULL, created_at DATETIME NOT NULL, content VARCHAR(255) NOT NULL, INDEX IDX_CE496C87A76ED395 (user_id), INDEX IDX_CE496C8788EB7468 (matchs_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE match_list (id INT AUTO_INCREMENT NOT NULL, team_id INT NOT NULL, location_id INT NOT NULL, date DATETIME NOT NULL, updated_at DATETIME NOT NULL, type VARCHAR(255) NOT NULL, INDEX IDX_25A7496A296CD8AE (team_id), INDEX IDX_25A7496A64D218E (location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE match_list_user (match_list_id INT NOT NULL, user_id INT NOT NULL, INDEX IDX_D1EC450B4A0849E4 (match_list_id), INDEX IDX_D1EC450BA76ED395 (user_id), PRIMARY KEY(match_list_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE reset_password_request (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, selector VARCHAR(20) NOT NULL, hashed_token VARCHAR(100) NOT NULL, requested_at DATETIME NOT NULL COMMENT \\'(DC2Type:datetime_immutable)\\', expires_at DATETIME NOT NULL COMMENT \\'(DC2Type:datetime_immutable)\\', INDEX IDX_7CE748AA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE stage (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, begin_at DATETIME NOT NULL, end_at DATETIME NOT NULL, price DOUBLE PRECISION NOT NULL, start_hours VARCHAR(255) NOT NULL, end_hours VARCHAR(255) NOT NULL, days JSON NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE stage_user (stage_id INT NOT NULL, user_id INT NOT NULL, INDEX IDX_4F46D9DC2298D193 (stage_id), INDEX IDX_4F46D9DCA76ED395 (user_id), PRIMARY KEY(stage_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE teams (id INT AUTO_INCREMENT NOT NULL, division VARCHAR(255) NOT NULL, name VARCHAR(100) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, is_enabled TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, team_id INT DEFAULT NULL, email VARCHAR(100) NOT NULL, password VARCHAR(255) NOT NULL, lastname VARCHAR(100) NOT NULL, firstname VARCHAR(100) NOT NULL, phone_number VARCHAR(60) DEFAULT NULL, image VARCHAR(255) DEFAULT NULL, birthday DATE DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, last_log_at DATETIME NOT NULL, roles JSON NOT NULL, ranking VARCHAR(255) DEFAULT NULL, is_disabled TINYINT(1) NOT NULL, token VARCHAR(255) DEFAULT NULL, token_validity DATETIME DEFAULT NULL, verified_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), INDEX IDX_8D93D649296CD8AE (team_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE match_cancellation ADD CONSTRAINT FK_CE496C87A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE match_cancellation ADD CONSTRAINT FK_CE496C8788EB7468 FOREIGN KEY (matchs_id) REFERENCES match_list (id)');\n $this->addSql('ALTER TABLE match_list ADD CONSTRAINT FK_25A7496A296CD8AE FOREIGN KEY (team_id) REFERENCES teams (id)');\n $this->addSql('ALTER TABLE match_list ADD CONSTRAINT FK_25A7496A64D218E FOREIGN KEY (location_id) REFERENCES club_lists (id)');\n $this->addSql('ALTER TABLE match_list_user ADD CONSTRAINT FK_D1EC450B4A0849E4 FOREIGN KEY (match_list_id) REFERENCES match_list (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE match_list_user ADD CONSTRAINT FK_D1EC450BA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE reset_password_request ADD CONSTRAINT FK_7CE748AA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE stage_user ADD CONSTRAINT FK_4F46D9DC2298D193 FOREIGN KEY (stage_id) REFERENCES stage (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE stage_user ADD CONSTRAINT FK_4F46D9DCA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649296CD8AE FOREIGN KEY (team_id) REFERENCES teams (id)');\n }", "title": "" }, { "docid": "99648dc39c8312ffae033f72572cace9", "score": "0.6043113", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'sqlite', 'Migration can only be executed safely on \\'sqlite\\'.');\n\n $this->addSql('CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles CLOB NOT NULL --(DC2Type:json)\n , password VARCHAR(255) NOT NULL, pseudo VARCHAR(255) NOT NULL)');\n $this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649E7927C74 ON user (email)');\n $this->addSql('DROP INDEX IDX_26A98456FADC8D36');\n $this->addSql('DROP INDEX IDX_26A98456A76ED395');\n $this->addSql('CREATE TEMPORARY TABLE __temp__achat AS SELECT id, pack_jetons_id, user_id, date_achat FROM achat');\n $this->addSql('DROP TABLE achat');\n $this->addSql('CREATE TABLE achat (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, pack_jetons_id INTEGER NOT NULL, user_id INTEGER NOT NULL, date_achat DATETIME NOT NULL, CONSTRAINT FK_26A98456FADC8D36 FOREIGN KEY (pack_jetons_id) REFERENCES pack_jeton (id) NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_26A98456A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO achat (id, pack_jetons_id, user_id, date_achat) SELECT id, pack_jetons_id, user_id, date_achat FROM __temp__achat');\n $this->addSql('DROP TABLE __temp__achat');\n $this->addSql('CREATE INDEX IDX_26A98456FADC8D36 ON achat (pack_jetons_id)');\n $this->addSql('CREATE INDEX IDX_26A98456A76ED395 ON achat (user_id)');\n $this->addSql('DROP INDEX IDX_38D1870FF347EFB');\n $this->addSql('CREATE TEMPORARY TABLE __temp__enchere AS SELECT id, produit_id, date_debut, date_fin FROM enchere');\n $this->addSql('DROP TABLE enchere');\n $this->addSql('CREATE TABLE enchere (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, produit_id INTEGER NOT NULL, date_debut DATETIME NOT NULL, date_fin DATETIME NOT NULL, CONSTRAINT FK_38D1870FF347EFB FOREIGN KEY (produit_id) REFERENCES produit (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO enchere (id, produit_id, date_debut, date_fin) SELECT id, produit_id, date_debut, date_fin FROM __temp__enchere');\n $this->addSql('DROP TABLE __temp__enchere');\n $this->addSql('CREATE INDEX IDX_38D1870FF347EFB ON enchere (produit_id)');\n $this->addSql('DROP INDEX IDX_5AC5D870E80B6EFB');\n $this->addSql('DROP INDEX IDX_5AC5D870A76ED395');\n $this->addSql('CREATE TEMPORARY TABLE __temp__historique_enchere AS SELECT id, enchere_id, user_id, prix, date_enchere FROM historique_enchere');\n $this->addSql('DROP TABLE historique_enchere');\n $this->addSql('CREATE TABLE historique_enchere (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, enchere_id INTEGER NOT NULL, user_id INTEGER NOT NULL, prix INTEGER NOT NULL, date_enchere DATETIME NOT NULL, CONSTRAINT FK_5AC5D870E80B6EFB FOREIGN KEY (enchere_id) REFERENCES enchere (id) NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_5AC5D870A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');\n $this->addSql('INSERT INTO historique_enchere (id, enchere_id, user_id, prix, date_enchere) SELECT id, enchere_id, user_id, prix, date_enchere FROM __temp__historique_enchere');\n $this->addSql('DROP TABLE __temp__historique_enchere');\n $this->addSql('CREATE INDEX IDX_5AC5D870E80B6EFB ON historique_enchere (enchere_id)');\n $this->addSql('CREATE INDEX IDX_5AC5D870A76ED395 ON historique_enchere (user_id)');\n }", "title": "" }, { "docid": "c22c13deb3bb5860c88afaededd25bde", "score": "0.6041697", "text": "public function up(Schema $schema)\r\n {\r\n $this->abortIf($this->connection->getDatabasePlatform()->getName() != \"mysql\", \"Migration can only be executed safely on 'mysql'.\");\n \n $this->addSql(\"CREATE TABLE EindRapportRegel (id INT AUTO_INCREMENT NOT NULL, eindrapport_id INT DEFAULT NULL, actiedefinitie_id INT DEFAULT NULL, remark LONGTEXT DEFAULT NULL, ruimte VARCHAR(255) NOT NULL, object VARCHAR(255) NOT NULL, actie VARCHAR(255) NOT NULL, actie_remark LONGTEXT DEFAULT NULL, verantwoordelijke VARCHAR(255) NOT NULL, INDEX IDX_FF9E5B1E8FBCB6A9 (eindrapport_id), INDEX IDX_FF9E5B1EFC9A26EC (actiedefinitie_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE EindRapport (id INT AUTO_INCREMENT NOT NULL, case_id INT NOT NULL, activity_id INT NOT NULL, date DATETIME NOT NULL, hov_nummer VARCHAR(255) DEFAULT NULL, vge_nummer VARCHAR(255) DEFAULT NULL, vge_adres VARCHAR(255) DEFAULT NULL, remarks LONGTEXT NOT NULL, closed TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"CREATE TABLE eindrapport_client (client_id INT NOT NULL, eindrapport_id INT NOT NULL, INDEX IDX_D04C5EDD19EB6921 (client_id), INDEX IDX_D04C5EDD8FBCB6A9 (eindrapport_id), PRIMARY KEY(client_id, eindrapport_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB\");\n $this->addSql(\"ALTER TABLE EindRapportRegel ADD CONSTRAINT FK_FF9E5B1E8FBCB6A9 FOREIGN KEY (eindrapport_id) REFERENCES EindRapport (id)\");\n $this->addSql(\"ALTER TABLE EindRapportRegel ADD CONSTRAINT FK_FF9E5B1EFC9A26EC FOREIGN KEY (actiedefinitie_id) REFERENCES ActieDefinitie (id)\");\n $this->addSql(\"ALTER TABLE eindrapport_client ADD CONSTRAINT FK_D04C5EDD19EB6921 FOREIGN KEY (client_id) REFERENCES EindRapport (id)\");\n $this->addSql(\"ALTER TABLE eindrapport_client ADD CONSTRAINT FK_D04C5EDD8FBCB6A9 FOREIGN KEY (eindrapport_id) REFERENCES Client (id)\");\r\n }", "title": "" }, { "docid": "d115ae246829f879b4569da6d7b04d49", "score": "0.60412246", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE emprunt (id INT AUTO_INCREMENT NOT NULL, emprunteur_id INT NOT NULL, date_retour DATE NOT NULL, date_emprunt DATE NOT NULL, INDEX IDX_364071D7F0840037 (emprunteur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE emprunt_livre (emprunt_id INT NOT NULL, livre_id INT NOT NULL, INDEX IDX_562087F2AE7FEF94 (emprunt_id), INDEX IDX_562087F237D925CB (livre_id), PRIMARY KEY(emprunt_id, livre_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE livre (id INT AUTO_INCREMENT NOT NULL, titre VARCHAR(190) NOT NULL, genre VARCHAR(190) DEFAULT NULL, langue VARCHAR(190) DEFAULT NULL, auteur VARCHAR(190) DEFAULT NULL, annee_edition INT DEFAULT NULL, nombre_pages INT DEFAULT NULL, nom_editeur VARCHAR(190) DEFAULT NULL, cote VARCHAR(190) NOT NULL, isbn VARCHAR(190) NOT NULL, etat VARCHAR(190) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE parametres (id INT AUTO_INCREMENT NOT NULL, durée_emprunt VARCHAR(255) NOT NULL COMMENT \\'(DC2Type:dateinterval)\\', nombre_emprunt INT NOT NULL, montant_amende INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, login VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \\'(DC2Type:json)\\', password VARCHAR(255) NOT NULL, name VARCHAR(190) NOT NULL, email VARCHAR(190) DEFAULT NULL, telephone VARCHAR(190) DEFAULT NULL, blacklist TINYINT(1) NOT NULL, carte TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8D93D649AA08CB10 (login), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE emprunt ADD CONSTRAINT FK_364071D7F0840037 FOREIGN KEY (emprunteur_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE emprunt_livre ADD CONSTRAINT FK_562087F2AE7FEF94 FOREIGN KEY (emprunt_id) REFERENCES emprunt (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE emprunt_livre ADD CONSTRAINT FK_562087F237D925CB FOREIGN KEY (livre_id) REFERENCES livre (id) ON DELETE CASCADE');\n }", "title": "" }, { "docid": "4c889b28c6eb4d4c47dc198c2da6612f", "score": "0.60368043", "text": "public function up() :void\n {\n $this->table('boards')\n ->addPrimaryKey('id')\n ->addColumn('user_id', 'integer', [\n 'default' => null,\n 'limit' => null,\n 'null' => false,\n ])\n ->addColumn('title', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->addColumn('content', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ])\n ->create();\n }", "title": "" }, { "docid": "cbe03a5173adda2d4a9e1b478f6a0ffc", "score": "0.60323817", "text": "public function up()\n\t{\n\t\t$id = DB::table('users')->insert_get_id(array(\n\t\t\t'name' => 'Prasanna Bhat',\n\t\t\t'email' => 'prasanna.yoga@gmail.com',\n\t\t\t'password' => Hash::make('asdf')\n\t\t));\n\n\t\tDB::table('phones')->insert(array(\n\t\t\t'phone_no' => '9880362090',\n\t\t\t'user_id' => $id\n\t\t));\n\t}", "title": "" }, { "docid": "96121a57111111742c7db7529841744a", "score": "0.60319054", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE event ADD COLUMN qualification_max_attempts INT NULL');\n $this->addSql('ALTER TABLE event ADD COLUMN qualification_show_attempts_count TINYINT(1) NOT NULL DEFAULT FALSE');\n $this->addSql('ALTER TABLE event ADD COLUMN qualification_wrong_attempt_penalisation INT NULL');\n $this->addSql('ALTER TABLE event ADD COLUMN qualification_show_next_attempt_time TINYINT(1) NOT NULL DEFAULT FALSE');\n\n // Add levels table\n $this->addSql(<<<EOD\nCREATE TABLE level (\n id INT AUTO_INCREMENT NOT NULL,\n event_id INT NOT NULL,\n level_number INT NOT NULL,\n link TEXT NULL,\n backup_link TEXT NULL,\n needed_correct_answers INT NULL,\n INDEX idx_event_id (event_id),\n UNIQUE INDEX unique_level_number_in_event (event_id, level_number),\n PRIMARY KEY(id)\n) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;\nALTER TABLE level ADD CONSTRAINT fk_level_event_id FOREIGN KEY (event_id) REFERENCES event (id) ON DELETE CASCADE;\nEOD);\n // Add puzzles table\n $this->addSql(<<<EOD\nCREATE TABLE puzzle (\n id INT AUTO_INCREMENT NOT NULL,\n level_id INT NOT NULL,\n name TEXT NOT NULL,\n INDEX idx_level_id (level_id),\n PRIMARY KEY(id)\n) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;\nALTER TABLE puzzle ADD CONSTRAINT fk_puzzle_level_id FOREIGN KEY (level_id) REFERENCES level (id) ON DELETE CASCADE\nEOD);\n // Add passwords table\n $this->addSql(<<<EOD\nCREATE TABLE password (\n id INT AUTO_INCREMENT NOT NULL,\n puzzle_id INT NOT NULL,\n code TEXT NOT NULL,\n INDEX idx_puzzle_id (puzzle_id),\n PRIMARY KEY(id)\n) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;\nALTER TABLE password ADD CONSTRAINT fk_password_puzzle_id FOREIGN KEY (puzzle_id) REFERENCES puzzle (id) ON DELETE CASCADE;\nEOD);\n // Add answers table\n $this->addSql(<<<EOD\nCREATE TABLE answer (\n id INT AUTO_INCREMENT NOT NULL,\n puzzle_id INT NOT NULL,\n team_id INT NOT NULL,\n code TEXT NOT NULL,\n correct TINYINT(1) NOT NULL,\n is_leveling TINYINT(1) NOT NULL,\n answered_at DATETIME NOT NULL COMMENT '(DC2Type:datetime_immutable)',\n INDEX idx_puzzle_id (puzzle_id),\n INDEX idx_team_id (team_id),\n PRIMARY KEY(id)\n) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB;\nALTER TABLE answer ADD CONSTRAINT fk_answer_puzzle_id FOREIGN KEY (puzzle_id) REFERENCES puzzle (id) ON DELETE CASCADE;\nALTER TABLE answer ADD CONSTRAINT fk_answer_team_id FOREIGN KEY (team_id) REFERENCES team (id) ON DELETE CASCADE;\nEOD);\n\n // Add extra colum for the team\n $this->addSql('ALTER TABLE team ADD COLUMN current_level_id INT NULL');\n $this->addSql('CREATE INDEX idx_current_level_id ON team (current_level_id);');\n $this->addSql('ALTER TABLE team ADD CONSTRAINT fk_current_level_id FOREIGN KEY (current_level_id) REFERENCES level (id) ON DELETE SET NULL;');\n\n $this->addSql('ALTER TABLE team ADD COLUMN last_wrong_answer_at DATETIME NULL COMMENT \\'(DC2Type:datetime_immutable)\\';');\n }", "title": "" }, { "docid": "0c33faec7f60c71dc04aac72a0ef0906", "score": "0.6031611", "text": "public function up()\n\t{\n\t\tDB::table('authors')->insert(array(\n\t\t\t'name' => 'Author 1',\n\t\t\t'bio' => 'Author 1 bio',\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s'),\n\t\t\t));\n\t\t\n\t\tDB::table('authors')->insert(array(\n\t\t\t'name' => 'Author 1',\n\t\t\t'bio' => 'Author 1 bio',\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s'),\n\t\t\t));\n\t}", "title": "" }, { "docid": "68312119444cb0d59c1e276c367b0042", "score": "0.60272384", "text": "public function up()\n {\n Schema::create('pays', function (Blueprint $table) {\n $table->increments('id'); \n if (\\App::VERSION() >= '5.8') {\n $table->bigInteger('user_id')->unsigned();\n } else {\n $table->integer('user_id')->unsigned();\n }\n $table->foreign('user_id')\n ->references('id')\n ->on('users');\n $table->integer('admin_id');\n /* $table->foreign('admin_id')\n ->references('id')\n ->on('users');*/\n $table->string('action_id')->nullable(); //barion azonosító :transaction_id, postransactionId:(Transactions->POSTransactionId) , paypal_id, bitcoin táca stb\n \n $table->integer('billingdata_id')->unsigned(); //számlázasi adatok\n $table->foreign('billingdata_id')\n ->references('id')\n ->on('billingdata');\n $table->string('order_id'); //csomag azonosító egyenlőre min,base,vagy max controllerben definiálva\n $table->string('type'); //barion ,cash, paypal...\n $table->integer('total');\n $table->integer('days');\n $table->text('note')->nullable(); \n $table->timestamps();\n $table->softDeletes();\n });\n }", "title": "" }, { "docid": "aa63d768a8c713d8f41acf95809f222a", "score": "0.6023147", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE city (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE event (id INT AUTO_INCREMENT NOT NULL, city_id INT NOT NULL, user_id INT NOT NULL, title VARCHAR(255) NOT NULL, slug VARCHAR(255) NOT NULL, picture VARCHAR(255) DEFAULT NULL, description LONGTEXT NOT NULL, date_start DATETIME NOT NULL, date_end DATETIME NOT NULL, url VARCHAR(255) DEFAULT NULL, price NUMERIC(12, 2) NOT NULL, is_valid TINYINT(1) NOT NULL, INDEX IDX_3BAE0AA78BAC62AF (city_id), INDEX IDX_3BAE0AA7A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE event_language (event_id INT NOT NULL, language_id INT NOT NULL, INDEX IDX_9237986571F7E88B (event_id), INDEX IDX_9237986582F1BAF4 (language_id), PRIMARY KEY(event_id, language_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE language (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE participant (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, event_id INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_D79F6B11A76ED395 (user_id), INDEX IDX_D79F6B1171F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE event ADD CONSTRAINT FK_3BAE0AA78BAC62AF FOREIGN KEY (city_id) REFERENCES city (id)');\n $this->addSql('ALTER TABLE event ADD CONSTRAINT FK_3BAE0AA7A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE event_language ADD CONSTRAINT FK_9237986571F7E88B FOREIGN KEY (event_id) REFERENCES event (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE event_language ADD CONSTRAINT FK_9237986582F1BAF4 FOREIGN KEY (language_id) REFERENCES language (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE participant ADD CONSTRAINT FK_D79F6B11A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE participant ADD CONSTRAINT FK_D79F6B1171F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');\n }", "title": "" }, { "docid": "5035c974e5cfcdcafe4b6392d8c641e0", "score": "0.60197055", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE candidature (id INT AUTO_INCREMENT NOT NULL, titre_offre VARCHAR(30) NOT NULL, mail_user VARCHAR(50) NOT NULL, mail_entreprise VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE entreprise (id INT AUTO_INCREMENT NOT NULL, image_id INT DEFAULT NULL, raison_sociale VARCHAR(50) NOT NULL, image_name VARCHAR(255) NOT NULL, image_size INT DEFAULT NULL, updated_at DATETIME DEFAULT NULL, email VARCHAR(50) NOT NULL, telephone VARCHAR(11) NOT NULL, INDEX IDX_D19FA603DA5256D (image_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE evenement (id INT AUTO_INCREMENT NOT NULL, ville_id INT NOT NULL, type_evenement_id INT NOT NULL, user_id INT NOT NULL, titre_evenement VARCHAR(30) NOT NULL, description_evenement LONGTEXT NOT NULL, created_at_evenement DATETIME NOT NULL, ending_at_evenement DATETIME NOT NULL, statut_evenement TINYINT(1) NOT NULL, validation_evenement TINYINT(1) NOT NULL, INDEX IDX_B26681EA73F0036 (ville_id), INDEX IDX_B26681E88939516 (type_evenement_id), INDEX IDX_B26681EA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE experience_professionnelle (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, date_debut_exp DATETIME NOT NULL, date_fin_exp DATETIME NOT NULL, a_today_exp TINYINT(1) DEFAULT NULL, titre_exp VARCHAR(30) DEFAULT NULL, entreprise_exp VARCHAR(30) DEFAULT NULL, description_exp TINYTEXT DEFAULT NULL, INDEX IDX_4FC854EFA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE formation (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, date_debut DATETIME NOT NULL, date_fin DATETIME NOT NULL, a_today TINYINT(1) DEFAULT NULL, titre VARCHAR(30) DEFAULT NULL, etablissement VARCHAR(30) DEFAULT NULL, description TINYTEXT DEFAULT NULL, INDEX IDX_404021BFA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE media_object (id INT AUTO_INCREMENT NOT NULL, content_url VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE niveau_etude (id INT AUTO_INCREMENT NOT NULL, libelle_niveau_etude VARCHAR(30) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE niveau_experience_global (id INT AUTO_INCREMENT NOT NULL, libelle_niveau_experience_global VARCHAR(30) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE offre (id INT AUTO_INCREMENT NOT NULL, ville_id INT NOT NULL, entreprise_id INT NOT NULL, type_contrat_id INT NOT NULL, secteur_id INT NOT NULL, user_id INT NOT NULL, titre_offre VARCHAR(30) NOT NULL, description_offre LONGTEXT NOT NULL, created_at DATETIME NOT NULL, ending_at DATETIME NOT NULL, statut TINYINT(1) NOT NULL, validation TINYINT(1) NOT NULL, INDEX IDX_AF86866FA73F0036 (ville_id), INDEX IDX_AF86866FA4AEAFEA (entreprise_id), INDEX IDX_AF86866F520D03A (type_contrat_id), INDEX IDX_AF86866F9F7E4405 (secteur_id), INDEX IDX_AF86866FA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE secteur (id INT AUTO_INCREMENT NOT NULL, libelle_secteur VARCHAR(30) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE sous_secteur (id INT AUTO_INCREMENT NOT NULL, secteur_id INT NOT NULL, libelle_sous_secteur VARCHAR(30) NOT NULL, INDEX IDX_A34C5D529F7E4405 (secteur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE type_contrat (id INT AUTO_INCREMENT NOT NULL, libelle_contrat VARCHAR(30) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE type_evenement (id INT AUTO_INCREMENT NOT NULL, libelle_type_evenement VARCHAR(30) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, niveau_etude_id INT DEFAULT NULL, niveau_experience_global_id INT DEFAULT NULL, username VARCHAR(180) NOT NULL, username_canonical VARCHAR(180) NOT NULL, email VARCHAR(180) NOT NULL, email_canonical VARCHAR(180) NOT NULL, enabled TINYINT(1) NOT NULL, salt VARCHAR(255) DEFAULT NULL, password VARCHAR(255) NOT NULL, last_login DATETIME DEFAULT NULL, confirmation_token VARCHAR(180) DEFAULT NULL, password_requested_at DATETIME DEFAULT NULL, roles LONGTEXT NOT NULL COMMENT \\'(DC2Type:array)\\', fullname VARCHAR(255) DEFAULT NULL, nom VARCHAR(15) DEFAULT NULL, prenom VARCHAR(40) DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D64992FC23A8 (username_canonical), UNIQUE INDEX UNIQ_8D93D649A0D96FBF (email_canonical), UNIQUE INDEX UNIQ_8D93D649C05FB297 (confirmation_token), INDEX IDX_8D93D649FEAD13D1 (niveau_etude_id), INDEX IDX_8D93D6491280E2A8 (niveau_experience_global_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('CREATE TABLE ville (id INT AUTO_INCREMENT NOT NULL, libelle_ville VARCHAR(30) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');\n $this->addSql('ALTER TABLE entreprise ADD CONSTRAINT FK_D19FA603DA5256D FOREIGN KEY (image_id) REFERENCES media_object (id)');\n $this->addSql('ALTER TABLE evenement ADD CONSTRAINT FK_B26681EA73F0036 FOREIGN KEY (ville_id) REFERENCES ville (id)');\n $this->addSql('ALTER TABLE evenement ADD CONSTRAINT FK_B26681E88939516 FOREIGN KEY (type_evenement_id) REFERENCES type_evenement (id)');\n $this->addSql('ALTER TABLE evenement ADD CONSTRAINT FK_B26681EA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE experience_professionnelle ADD CONSTRAINT FK_4FC854EFA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE formation ADD CONSTRAINT FK_404021BFA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE offre ADD CONSTRAINT FK_AF86866FA73F0036 FOREIGN KEY (ville_id) REFERENCES ville (id)');\n $this->addSql('ALTER TABLE offre ADD CONSTRAINT FK_AF86866FA4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE offre ADD CONSTRAINT FK_AF86866F520D03A FOREIGN KEY (type_contrat_id) REFERENCES type_contrat (id)');\n $this->addSql('ALTER TABLE offre ADD CONSTRAINT FK_AF86866F9F7E4405 FOREIGN KEY (secteur_id) REFERENCES secteur (id)');\n $this->addSql('ALTER TABLE offre ADD CONSTRAINT FK_AF86866FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');\n $this->addSql('ALTER TABLE sous_secteur ADD CONSTRAINT FK_A34C5D529F7E4405 FOREIGN KEY (secteur_id) REFERENCES secteur (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649FEAD13D1 FOREIGN KEY (niveau_etude_id) REFERENCES niveau_etude (id)');\n $this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D6491280E2A8 FOREIGN KEY (niveau_experience_global_id) REFERENCES niveau_experience_global (id)');\n }", "title": "" }, { "docid": "e45c3164abbdea91dfe9fab53308fe82", "score": "0.6018577", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE administrateur (id INT AUTO_INCREMENT NOT NULL, personne_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_32EB52E8A21BD112 (personne_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE document (id INT AUTO_INCREMENT NOT NULL, depositaire_id INT DEFAULT NULL, etudiant_id INT DEFAULT NULL, intitule VARCHAR(255) NOT NULL, etat_document VARCHAR(255) NOT NULL, commentaire VARCHAR(255) DEFAULT NULL, date_depot VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_D8698A766104D4C3 (depositaire_id), INDEX IDX_D8698A76DDEAB1A3 (etudiant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE entreprise (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, localite VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE etudiant (id INT AUTO_INCREMENT NOT NULL, formation_id INT DEFAULT NULL, personne_id INT DEFAULT NULL, entreprise_id INT DEFAULT NULL, planning_id INT DEFAULT NULL, type_contrat VARCHAR(255) DEFAULT NULL, note_suivi INT DEFAULT NULL, moyenne DOUBLE PRECISION DEFAULT NULL, INDEX IDX_717E22E35200282E (formation_id), UNIQUE INDEX UNIQ_717E22E3A21BD112 (personne_id), INDEX IDX_717E22E3A4AEAFEA (entreprise_id), INDEX IDX_717E22E33D865311 (planning_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE evaluateur (id INT AUTO_INCREMENT NOT NULL, entreprise_id INT DEFAULT NULL, nom VARCHAR(255) NOT NULL, prenom VARCHAR(255) NOT NULL, mail VARCHAR(255) NOT NULL, INDEX IDX_BE15FA85A4AEAFEA (entreprise_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE formation (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE planning (id INT AUTO_INCREMENT NOT NULL, date_passage DATETIME DEFAULT NULL, heure_passage DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE responsable_ue (id INT AUTO_INCREMENT NOT NULL, personne_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_C2B5F0B9A21BD112 (personne_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE scolarite (id INT AUTO_INCREMENT NOT NULL, personne_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_276250ABA21BD112 (personne_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE tuteur (id INT AUTO_INCREMENT NOT NULL, personne_id INT DEFAULT NULL, commentaire VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_56412268A21BD112 (personne_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE type_document (id INT AUTO_INCREMENT NOT NULL, intitule VARCHAR(255) NOT NULL, date_limite DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE administrateur ADD CONSTRAINT FK_32EB52E8A21BD112 FOREIGN KEY (personne_id) REFERENCES personne (id)');\n $this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A766104D4C3 FOREIGN KEY (depositaire_id) REFERENCES personne (id)');\n $this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A76DDEAB1A3 FOREIGN KEY (etudiant_id) REFERENCES etudiant (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E35200282E FOREIGN KEY (formation_id) REFERENCES formation (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E3A21BD112 FOREIGN KEY (personne_id) REFERENCES personne (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E3A4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE etudiant ADD CONSTRAINT FK_717E22E33D865311 FOREIGN KEY (planning_id) REFERENCES planning (id)');\n $this->addSql('ALTER TABLE evaluateur ADD CONSTRAINT FK_BE15FA85A4AEAFEA FOREIGN KEY (entreprise_id) REFERENCES entreprise (id)');\n $this->addSql('ALTER TABLE responsable_ue ADD CONSTRAINT FK_C2B5F0B9A21BD112 FOREIGN KEY (personne_id) REFERENCES personne (id)');\n $this->addSql('ALTER TABLE scolarite ADD CONSTRAINT FK_276250ABA21BD112 FOREIGN KEY (personne_id) REFERENCES personne (id)');\n $this->addSql('ALTER TABLE tuteur ADD CONSTRAINT FK_56412268A21BD112 FOREIGN KEY (personne_id) REFERENCES personne (id)');\n }", "title": "" }, { "docid": "61d6883b48116950604cee0bdcae2ec8", "score": "0.6016882", "text": "public function up() {\n\n\n $this->down();\n\n $this->schema->create('currencies', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->string('name');\n $table->decimal('rate',20,12);\n $table->string('description');\n $table->integer('decimals')->default(2);\n $table->timestamps();\n });\n $this->schema->create('users', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->string('username');\n\t\t\t$table->string('name');\n $table->string('email')->unique();\n $table->string('password_hash');\n $table->string('firstname');\n $table->string('lastname');\n $table->string('fbid');\n $table->string('fbtoken');\n $table->string('phone');\n $table->string('mobile_code');\n $table->string('col');\n $table->string('api_key');\n $table->integer('status')->default(0);\n $table->string('image');\n $table->string('locality');\n $table->string('currency');\n $table->string('gender');\n $table->integer('location_id');\n $table->integer('test')->default(0);\n\t\t\t$table->integer('stars');\n\t\t\t$table->integer('sales')->default(0);\n\t\t\t$table->string('bio');\n\t\t\t$table->string('website');\n\t\t\t$table->string('location_description');\n\t\t\t$table->integer('no_products')->default(0);\n\t\t\t$table->integer('no_followers')->default(0);\n\t\t\t$table->integer('no_following')->default(0);\n $table->timestamps();\n });\n\n $this->schema->create('locations', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('name');\n $table->string('latitude');\n $table->string('longitude');\n $table->string('address');\n $table->string('locality');\n\t\t\t$table->string('admin');\n\t\t\t$table->string('country');\n $table->timestamps();\n });\n\n $this->schema->create('items', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('title');\n $table->integer('price');\n $table->string('currency');\n $table->longText('description');\n $table->integer('quantity');\n $table->integer('num_sales')->default(0);\n $table->integer('type')->default(0);\n $table->integer('negotiable')->default(0);\n $table->integer('status')->default(0);\n $table->integer('test')->default(0);\n $table->string('image');\n $table->integer('location_id')->references('id')->on('locations');\n $table->timestamps();\n });\n $this->schema->create('following', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('following_id')->unsigned();\n $table->foreign('following_id')->references('id')->on('users');\n $table->timestamps();\n });\n\n $this->schema->create('following_searches', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('q');\n $table->timestamps();\n });\n $this->schema->create('wanted', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('q');\n $table->integer('price');\n $table->string('currency');\n $table->string('comment');\n $table->timestamps();\n });\n $this->schema->create('likes', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->timestamps();\n });\n $this->schema->create('bookmarks', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->timestamps();\n });\n $this->schema->create('comments', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n\t\t\t$table->string('comment');\n $table->timestamps();\n });\n $this->schema->create('shares', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->timestamps();\n });\n\n $this->schema->create('reports', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('reporter_id')->unsigned();\n // $table->foreign('reporter_id')->references('id')->on('users');\n $table->integer('user_id')->unsigned();\n // $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->string('comment');\n $table->timestamps();\n });\n\n $this->schema->create('conversations', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->timestamps();\n });\n $this->schema->create('conversation_participants', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('conversation_id')->unsigned();\n $table->foreign('conversation_id')->references('id')->on('conversations');\n $table->integer('user_id')->unsigned();\n\t\t\t$table->integer('unread')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->timestamps();\n });\n\n\n $this->schema->create('messages', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('conversation_id')->unsigned();\n $table->foreign('conversation_id')->references('id')->on('conversations');\n $table->integer('item_id')->unsigned();\n // $table->foreign('item_id')->references('id')->on('items');\n $table->integer('offer');\n\t\t $table->integer('user_id')->unsigned();\n\t\t\t$table->foreign('user_id')->references('id')->on('users');\n $table->string('currency');\n $table->integer('result');\n\t\t\t$table->integer('type');\n $table->string('message');\n\t\t\t\n $table->timestamps();\n });\n $this->schema->create('notification_text', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->string('prefix');\n $table->string('suffix');\n $table->string('deeplink'); \n $table->timestamps();\n });\n\n $this->schema->create('notifications', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('initiator_id')->unsigned();\n $table->foreign('initiator_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->string('deeplink_id');\n $table->string('value');\n $table->integer('type')->unsigned();\n\t\t\t $table->foreign('type')->references('id')->on('notification_text');\n $table->timestamps();\n });\n $this->schema->create('maxbids', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('bid');\n $table->string('currency');\n $table->longText('description');\n $table->integer('quantity');\n $table->integer('status')->default(0);\n $table->string('images');\n $table->integer('location_id')->references('id')->on('locations');\n $table->timestamps();\n });\n\n\n $this->schema->create('sales', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('item_id')->unsigned();\n $table->foreign('item_id')->references('id')->on('items');\n $table->integer('buyer_id')->unsigned();\n $table->foreign('buyer_id')->references('id')->on('users');\n $table->integer('seller_id')->unsigned();\n $table->foreign('seller_id')->references('id')->on('users');\n $table->integer('purchaseprice');\n $table->string('purchasecurrency');\n $table->integer('saleprice');\n $table->string('salecurrency');\n $table->longText('shippingnotes');\n $table->integer('quantity');\n $table->longText('fromlocation_id')->references('id')->on('locations');\n $table->longText('tolocation_id')->references('id')->on('locations');\n\t\t\t$table->string('comment');\n $table->integer('status')->default(0);\n $table->timestamps();\n });\n\n $this->schema->create('images', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->integer('item_id')->unsigned();\t\t\t\n // $table->foreign('item_id')->references('id')->on('items')->nullable();\n $table->string('description')->nullable();\n\t\t $table->string('image')->nullable();\n $table->integer('order')->nullable();\n $table->integer('status')->default(0);\n $table->timestamps();\n });\n\n $this->schema->create('tokens', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('type');\n $table->string('token');\n $table->timestamps();\n });\n\n\n\n // $stmt = $this->conn->prepare(\"INSERT INTO sessions(device, regid, user_id, api_key) values(:device, :regid, :user_id, :api_key)\");\n\n $this->schema->create('sessions', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id');\n $table->integer('user_id')->unsigned();\n $table->foreign('user_id')->references('id')->on('users');\n $table->string('device');\n $table->string('regid');\n $table->string('api_key');\n $table->string('fbtoken')->nullable();\n $table->timestamps();\n $table->integer('test')->default(0);\n });\n\t\t\n\t\t $this->schema->create('user_settings', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('user_settings_id'); \n $table->string('currency'); \n \t$table->string('notify_message'); \t\n $table->string('notify_offer'); \n $table->string('notify_comment'); \n $table->string('notify_review'); \n $table->string('notify_tag'); \t\n $table->integer('notify_followed'); \n $table->integer('notify_friendjoins'); \t\t\n $table->string('save_originals'); \t\t\t\t\t\n $table->integer('id')->default(0);\n\t\t\t$table->timestamps();\n });\n\t\t $this->schema->create('offers', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('offer_id'); \n $table->string('result')->nullable(); \n $table->string('currency');\n\t\t\t $table->integer('message_id')->unsigned();\n\t\t\t $table->foreign('message_id')->references('id')->on('messages');\n\t\t\t $table->integer('price');\n\t\t\t $table->integer('user_id')->unsigned();\n\t\t\t $table->timestamps();\n });\n\t\t $this->schema->create('reviews', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id'); \n $table->integer('rated_user_id')->unsigned(); \n\t\t\t $table->foreign('rated_user_id')->references('id')->on('users');\n\t\t\t $table->integer('rater_user_id')->unsigned(); \n\t\t\t $table->foreign('rater_user_id')->references('id')->on('users');\n\t\t\t $table->integer('sale_id')->unsigned(); \n\t\t\t $table->foreign('sale_id')->references('id')->on('sales');\n $table->integer('rating');\n\t\t\t $table->string('comment');\n\t\t\t $table->integer('type');\n\t\t\t $table->timestamps();\n });\n $this->schema->create('cart', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id'); \n $table->integer('user_id')->unsigned();\n\t\t\t $table->foreign('user_id')->references('id')->on('users');\n\t\t\t $table->integer('item_id');\n\t\t\t $table->foreign('item_id')->references('id')->on('items');\n\t\t\t $table->integer('variant_id');\n\t\t\t $table->integer('quantity');\n\t\t\t $table->timestamps();\n });\n\t\t $this->schema->create('bids', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id'); \n $table->integer('user_id')->unsigned();\n\t\t\t $table->foreign('user_id')->references('id')->on('users');\n\t\t\t $table->integer('item_id');\n\t\t\t $table->foreign('item_id')->references('id')->on('items');\n\t\t\t $table->integer('bid');\n\t\t\t\n\t\t\t $table->timestamps();\n });\n\t\t $this->schema->create('categories', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id'); \n $table->string('hashtag');\n\t\t\t $table->string('image'); \t\t\n\t\t\t $table->string('title'); \t\n\t\t\t $table->timestamps();\n });\n\t\t $this->schema->create('max_bids', function(Illuminate\\Database\\Schema\\Blueprint $table){\n // Auto-increment id \n $table->increments('id'); \n $table->integer('user_id')->unsigned();\n\t\t\t $table->foreign('user_id')->references('id')->on('users');\n\t\t\t $table->integer('item_id');\n\t\t\t $table->foreign('item_id')->references('id')->on('items');\n\t\t\t $table->integer('bid');\n\t\t\t\n });\n }", "title": "" }, { "docid": "09e127f96dde043d94c89a6d6ae5bb9f", "score": "0.6016378", "text": "public function up(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE activite (id INT AUTO_INCREMENT NOT NULL, bloc_id INT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(255) DEFAULT NULL, INDEX IDX_B87555155582E9C0 (bloc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE bac (id INT AUTO_INCREMENT NOT NULL, code INT DEFAULT NULL, libelle VARCHAR(60) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE bloc (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE competence (id INT AUTO_INCREMENT NOT NULL, activite_id INT NOT NULL, code VARCHAR(10) NOT NULL, libelle VARCHAR(255) DEFAULT NULL, INDEX IDX_94D4687F9B0F88B1 (activite_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE enseignant (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(50) DEFAULT NULL, prenom VARCHAR(50) DEFAULT NULL, mail VARCHAR(60) DEFAULT NULL, niveau VARCHAR(20) DEFAULT NULL, statut VARCHAR(60) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE etudiant (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(50) NOT NULL, prenom VARCHAR(50) NOT NULL, mail VARCHAR(80) DEFAULT NULL, mdp VARCHAR(20) NOT NULL, numexam VARCHAR(25) NOT NULL, mobile INT NOT NULL, photo VARCHAR(50) DEFAULT NULL, telperso INT DEFAULT NULL, telfamille INT NOT NULL, postbac VARCHAR(80) DEFAULT NULL, etabbac VARCHAR(100) NOT NULL, datenaiss DATE NOT NULL, sexe VARCHAR(2) NOT NULL, adrperso VARCHAR(80) NOT NULL, adrfamille VARCHAR(80) NOT NULL, statut VARCHAR(150) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE niveau (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(50) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE `option` (id INT AUTO_INCREMENT NOT NULL, sigle VARCHAR(50) DEFAULT NULL, libelle VARCHAR(50) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE promotion (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(50) DEFAULT NULL, annee INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE rp (id INT AUTO_INCREMENT NOT NULL, libcourt VARCHAR(100) NOT NULL, descriptif VARCHAR(255) DEFAULT NULL, contexte VARCHAR(255) DEFAULT NULL, date_debut DATE NOT NULL, date_fin DATE NOT NULL, environnement VARCHAR(255) DEFAULT NULL, moyen VARCHAR(255) DEFAULT NULL, date_modif DATE DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE rpactivite (id INT AUTO_INCREMENT NOT NULL, niveau_id INT DEFAULT NULL, activite_id INT NOT NULL, rp_id INT NOT NULL, commentaire LONGTEXT DEFAULT NULL, INDEX IDX_3CC2747AB3E9C81 (niveau_id), INDEX IDX_3CC2747A9B0F88B1 (activite_id), INDEX IDX_3CC2747AB70FF80C (rp_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE ville (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(50) DEFAULT NULL, copos VARCHAR(50) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('ALTER TABLE activite ADD CONSTRAINT FK_B87555155582E9C0 FOREIGN KEY (bloc_id) REFERENCES bloc (id)');\n $this->addSql('ALTER TABLE competence ADD CONSTRAINT FK_94D4687F9B0F88B1 FOREIGN KEY (activite_id) REFERENCES activite (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747AB3E9C81 FOREIGN KEY (niveau_id) REFERENCES niveau (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747A9B0F88B1 FOREIGN KEY (activite_id) REFERENCES activite (id)');\n $this->addSql('ALTER TABLE rpactivite ADD CONSTRAINT FK_3CC2747AB70FF80C FOREIGN KEY (rp_id) REFERENCES rp (id)');\n }", "title": "" }, { "docid": "01b32e51523f1736834c2bb9765f4b16", "score": "0.6013039", "text": "public function up()\n {\n if ($this->db->DBDriver != 'MySQLi')\n {\n echo 'This website is intented to work only with MySQL databases!';\n return;\n }\n \n // Creating table books\n $this->forge->addField([\n 'id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],\n 'name' => ['type' => 'VARCHAR', 'constraint' => 255],\n 'cover' => ['type' => 'TEXT', 'default' => '/assets/covers/default-cover.png'],\n 'author' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'genre' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'category' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'edition' => ['type' => 'INT', 'constraint' => 4, 'default' => 1],\n 'isbn' => ['type' => 'VARCHAR', 'constraint' => 15, 'null' => true],\n 'publ' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'des' => ['type' => 'TEXT', 'null' => true],\n 'price' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'date' => ['type' => 'DATE', 'null' => true],\n 'amt' => ['type' => 'INT', 'constraint' => 4, 'unsigned' => true],\n 'sec' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'shelf' => ['type' => 'INT', 'constraint' => 2],\n 'row' => ['type' => 'INT', 'constraint' => 2],\n 'created_at' => ['type' => 'datetime', 'null' => true],\n 'updated_at' => ['type' => 'datetime', 'null' => true],\n 'deleted_at' => ['type' => 'datetime', 'null' => true]\n ]);\n $this->forge->addKey('id', true);\n $this->forge->addField(\"UNIQUE books_id_unique (id, deleted_at)\");\n $this->forge->addKey('author');\n $this->forge->addKey('genre');\n $this->forge->addKey('category');\n $this->forge->addKey('isbn');\n $this->forge->addKey('publ');\n $this->forge->createTable('books', true);\n \n // Creating table members\n $this->forge->addField([\n 'id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],\n 'uid' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'name' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'phone' => ['type' => 'VARCHAR', 'constraint' => 20],\n 'email' => ['type' => 'VARCHAR', 'constraint' => 255],\n 'address' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],\n 'city' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'state' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'country' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'pin' => ['type' => 'VARCHAR', 'constraint' => 10, 'null' => true],\n 'prof' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'desg' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'corp' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'created_at' => ['type' => 'datetime', 'null' => true],\n 'updated_at' => ['type' => 'datetime', 'null' => true],\n 'deleted_at' => ['type' => 'datetime', 'null' => true]\n ]);\n $this->forge->addKey('id', true);\n $this->forge->addField(\"UNIQUE members_id_unique (id, uid, deleted_at)\");\n $this->forge->createTable('members', true);\n \n // Creating table visitors_record\n $this->forge->addField([\n 'id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],\n 'mem_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true],\n 'book_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true],\n 'name' => ['type' => 'VARCHAR', 'constraint' => 100],\n 'phone' => ['type' => 'VARCHAR', 'constraint' => 20],\n 'email' => ['type' => 'VARCHAR', 'constraint' => 255],\n 'address' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],\n 'city' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'state' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'country' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'pin' => ['type' => 'VARCHAR', 'constraint' => 10, 'null' => true],\n 'prof' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'desg' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'corp' => ['type' => 'VARCHAR', 'constraint' => 100, 'null' => true],\n 'time_in' => ['type' => 'datetime'],\n 'time_out' => ['type' => 'datetime', 'null' => true],\n 'charge' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'created_at' => ['type' => 'datetime', 'null' => true],\n 'updated_at' => ['type' => 'datetime', 'null' => true]\n ]);\n $this->forge->addKey('id', true);\n $this->forge->addForeignKey('mem_id', 'members', 'id', 'CASCADE', false);\n $this->forge->addForeignKey('book_id', 'books', 'id', 'CASCADE', false);\n $this->forge->createTable('visitors_record', true);\n \n // Creating table mem_record\n $this->forge->addField([\n 'id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],\n 'mem_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true],\n 'date' => ['type' => 'DATE'],\n 'valid_until' => ['type' => 'DATE'],\n 'charge' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'paid' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'remain' => ['type' => 'DECIMAL(5,2) AS (`charge`-`paid`) VIRTUAL', 'null' => true],\n 'is_paid' => ['type' => 'BOOLEAN AS (`charge` = `paid`) VIRTUAL', 'null' => true],\n 'created_at' => ['type' => 'datetime', 'null' => true],\n 'updated_at' => ['type' => 'datetime', 'null' => true]\n ]);\n $this->forge->addKey('id', true);\n $this->forge->addForeignKey('mem_id', 'members', 'id', 'CASCADE', false);\n $this->forge->createTable('mem_record', true);\n \n // Creating table issue_record\n $this->forge->addField([\n 'id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true],\n 'renew_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'null' => true],\n 'renewed' => ['type' => 'BOOLEAN AS (`renew_id` IS NOT NULL) VIRTUAL', 'null' => true],\n 'mem_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true],\n 'book_id' => ['type' => 'INT', 'constraint' => 11, 'unsigned' => true],\n 'fine_rate' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'date' => ['type' => 'DATE'],\n 'eret_date' => ['type' => 'DATE'],\n 'aret_date' => ['type' => 'DATE'],\n 'addfine' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'fine' => ['type' => 'DECIMAL(5,2) AS (DATEDIFF(`aret_date`,`eret_date`)*`fine_rate`+`addfine`) VIRTUAL', 'null' => true],\n 'paid' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0],\n 'remain' => ['type' => 'DECIMAL(5,2) AS (`fine`-`paid`) VIRTUAL', 'null' => true],\n 'is_paid' => ['type' => 'BOOLEAN AS (`fine` = `paid`) VIRTUAL', 'null' => true],\n 'created_at' => ['type' => 'datetime', 'null' => true],\n 'updated_at' => ['type' => 'datetime', 'null' => true]\n ]);\n $this->forge->addKey('id', true);\n $this->forge->addForeignKey('mem_id', 'members', 'id', 'CASCADE', false);\n $this->forge->addForeignKey('book_id', 'books', 'id', 'CASCADE', false);\n $this->forge->createTable('issue_record', true);\n \n // Creating table app_conf\n /*$this->forge->addField([\n 'late_fine' => ['type' => 'DECIMAL', 'constraint' => '5,2', 'default' => 0.0]\n ]);\n $this->forge->createTable('app_conf', true);*/\n }", "title": "" }, { "docid": "2550598f803a32eb33fc85b65322c009", "score": "0.60067916", "text": "public function up()\n {\n \\app\\models\\helpers\\HystoricalData::deleteAll();\n\n $this->addColumn('{{%hystorical_data}}', 'project_id', $this->integer()->notNull()->after('id'));\n\n $this->createIndex(\n 'idx-hystorical_data-project_id',\n '{{%hystorical_data}}',\n 'project_id'\n );\n\n $this->addForeignKey(\n 'fk-hystorical_data-project_id',\n '{{%hystorical_data}}',\n 'project_id',\n '{{%projects}}',\n 'id'\n );\n }", "title": "" }, { "docid": "4fdd530a962a9d3664eec3bdb2d79417", "score": "0.6006506", "text": "public function up()\n {\n $table = $this->table('delayed_jobs');\n $table->changeColumn('status', 'integer', [\n 'default' => null,\n 'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,\n 'null' => false,\n ])\n ->changeColumn('retries', 'integer', [\n 'default' => 0,\n 'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,\n 'null' => false,\n ])\n ->changeColumn('priority', 'integer', [\n 'default' => 1,\n 'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_SMALL,\n 'null' => false,\n ])\n ->changeColumn('sequence', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n\n if ($table->hasIndex(['status'])) {\n $table->removeIndex(['status']);\n }\n if ($table->hasIndex(['sequence'])) {\n $table->removeIndex(['sequence']);\n }\n if ($table->hasIndex(['priority', 'id'])) {\n $table->removeIndex(['priority', 'id']);\n }\n if ($table->hasIndex(['worker', 'status'])) {\n $table->removeIndex(['worker', 'status']);\n }\n if (!$table->hasIndex(['priority'])) {\n $table->addIndex(['priority']);\n }\n if (!$table->hasIndex(['status', 'modified'])) {\n $table->addIndex(['status', 'modified'], [\n 'name' => 'status_modified',\n ]);\n }\n $table->save();\n }", "title": "" }, { "docid": "917548f42c23f72d271439d66605c53d", "score": "0.6006311", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('CREATE TABLE etat (id INT AUTO_INCREMENT NOT NULL, libelle VARCHAR(30) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE lieu (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(30) NOT NULL, rue VARCHAR(30) NOT NULL, latitude DOUBLE PRECISION NOT NULL, longitude DOUBLE PRECISION NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE participant (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(20) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, nom VARCHAR(30) NOT NULL, prenom VARCHAR(30) NOT NULL, telephone VARCHAR(15) NOT NULL, pseudo VARCHAR(30) DEFAULT NULL, UNIQUE INDEX UNIQ_D79F6B11E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE site (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(30) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE sortie (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(30) NOT NULL, date_heure_debut DATE NOT NULL, duree INT DEFAULT NULL, date_limite_inscription DATE NOT NULL, nb_inscriptions_max INT NOT NULL, infos_sortie VARCHAR(500) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n $this->addSql('CREATE TABLE ville (id INT AUTO_INCREMENT NOT NULL, nom VARCHAR(30) NOT NULL, code_postal VARCHAR(10) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');\n }", "title": "" }, { "docid": "f1c1283663d31b89e8e2a648e29d9ef3", "score": "0.60051656", "text": "public function up()\n\t{\n\t\t// create constraints on the users table\n\t\tSchema::table('users', function($table) {\t\n\t\t \t$table->foreign('role_id')->references('id')->on('roles');\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the roles table\n\t\tSchema::table('roles', function($table) {\t\t \t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\n\t\t});\n\n\t\t// create constraints on the modules table\n\t\tSchema::table('modules', function($table) {\t\t\t\n\t\t $table->foreign('role_id')->references('id')->on('roles');\t\t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the securables table\n\t\tSchema::table('securables', function($table) {\t\t \t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the permissions table\n\t\tSchema::table('permissions', function($table) {\t\n\t\t\t$table->foreign('securable_id')->references('id')->on('securables');\n\t\t\t$table->foreign('module_id')->references('id')->on('modules');\t\t\n\t\t $table->foreign('role_id')->references('id')->on('roles');\t\t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the purchases table\n\t\tSchema::table('purchases', function($table) {\n\t\t\t$table->foreign('purchase_order_id')->references('id')->on('purchase_orders');\t \t\t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \t \n\t\t});\n\n\t\t// create constraints on the purchase_items table\n\t\tSchema::table('purchased_items', function($table) {\t\t\t\n\t\t $table->foreign('purchase_id')->references('id')->on('purchases');\t\t \n\t\t $table->foreign('product_id')->references('id')->on('products');\n\t\t $table->foreign('supplier_id')->references('id')->on('suppliers');\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the purchase_item_details table\n\t\tSchema::table('purchased_item_details', function($table) {\t\t\t\n\t\t $table->foreign('purchased_Item_id')->references('id')->on('purchased_Items'); \n\t\t $table->foreign('product_id')->references('id')->on('products');\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the products table\n\t\tSchema::table('products', function($table) {\t\t\t\n\t\t $table->foreign('product_category_id')->references('id')->on('product_categories');\t\n\t\t $table->foreign('product_type_id')->references('id')->on('product_types');\t\n\t\t $table->foreign('sale_unit_id')->references('id')->on('sale_units');\t\t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the product_categories table\n\t\tSchema::table('product_categories', function($table) {\t\t \t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the suppliers table\n\t\tSchema::table('suppliers', function($table) {\t\t \t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the product_types table\n\t\tSchema::table('product_types', function($table) {\t\t \t \n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the sale_units table\n\t\tSchema::table('sale_units', function($table) {\t\t\t\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \n\t\t});\n\n\t\t// create constraints on the purchase_orders table\n\t\tSchema::table('purchase_orders', function($table) {\t\t\t\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\n\t\t});\n\n\t\t// create constraints on the purchase_order_details table\n\t\tSchema::table('purchase_order_details', function($table) {\t\n\t\t\t$table->foreign('purchase_order_id')->references('id')->on('purchase_orders');\n\t\t\t$table->foreign('product_id')->references('id')->on('products');\t\t\n\t\t $table->foreign('created_by')->references('id')->on('users');\n\t\t $table->foreign('updated_by')->references('id')->on('users');\t\t \t\t \n\t\t});\n\n\t\t// create constraints on the user_roles table\n\t\t//Schema::table('user_roles', function($table) {\t\n\t\t\t//$table->foreign('role_id')->references('id')->on('roles');\n\t\t\t//$table->foreign('user_id')->references('id')->on('users'); \t \t\t \n\t\t//});\n\n\t}", "title": "" }, { "docid": "d54e727475810966b03af5f3a85a4859", "score": "0.6004926", "text": "public function up()\n {\n $this->table('notes')\n ->addColumn('created', 'datetime', [\n 'default' => null,\n 'length' => null,\n 'null' => false,\n ])\n ->addColumn('modified', 'datetime', [\n 'default' => null,\n 'length' => null,\n 'null' => false,\n ])\n ->update();\n }", "title": "" }, { "docid": "55c44007fe0db47ba88ad4e0e840bb3d", "score": "0.6003635", "text": "public function up(){\n $table = $this->table('api_keys');\n $table->changeColumn('expiration_stamp', 'timestamp', array('null'=>true));\n }", "title": "" }, { "docid": "2dd7855ec7dde97e730982d7846d8999", "score": "0.60021293", "text": "public function up()\n\t{\n\t\t$this->execute(\"\n CREATE TABLE `vfuf_fuel_finv` (\n `vfuf_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,\n `vfuf_vvoy_id` INT(10) UNSIGNED DEFAULT NULL,\n `vfuf_fixr_id` INT(10) UNSIGNED NOT NULL,\n `vfuf_qnt` DECIMAL(10,2) UNSIGNED NOT NULL, \n `vfuf_date` DATE NULL,\n `vfuf_base_amt` DECIMAL(10,2) UNSIGNED DEFAULT NULL,\n `vfuf_notes` TEXT,\n PRIMARY KEY (`vfuf_id`),\n KEY `vfuf_vvoy_id` (`vfuf_vvoy_id`),\n KEY `vfuf_fixr_id` (`vfuf_fixr_id`),\n CONSTRAINT `vfuf_fuel_finv_ibfk_1` FOREIGN KEY (`vfuf_vvoy_id`) REFERENCES `vvoy_voyage` (`vvoy_id`),\n CONSTRAINT `vfuf_fuel_finv_ibfk_2` FOREIGN KEY (`vfuf_fixr_id`) REFERENCES `fixr_fiit_x_ref` (`fixr_id`)\n ) ENGINE=INNODB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8\n\n\n\n\n \");\n\t}", "title": "" }, { "docid": "79184a71238136c2537bc4b31433903c", "score": "0.599399", "text": "public function up()\n {\n if (!Schema::hasTable($this->table)) {\n Schema::create($this->table, function (Blueprint $table) {\n $table->string('id', 191)->unique();\n $table->unsignedInteger('user_id')->nullable();\n $table->string('ip_address', 45)->nullable();\n $table->text('user_agent')->nullable();\n $table->text('payload');\n $table->integer('last_activity');\n });\n }\n }", "title": "" } ]
9be02a12ec4e36511169fd5dce327b9b
Set the update type.
[ { "docid": "82455cc69616d30e062f9fe539661221", "score": "0.7590514", "text": "public function updateType($update_type) {\n $this->data['attachment']['payload']['update_type'] = $update_type;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "16dc7c52a2b99a9e0e0158a049876f9f", "score": "0.7050965", "text": "public function setType($var)\n {\n GPBUtil::checkEnum($var, \\Lnrpc\\ChannelEventUpdate_UpdateType::class);\n $this->type = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e42e4706be2097cf468c6fa64c789173", "score": "0.65623784", "text": "function setType($type)\n {\n switch ($type) {\n case \"bool\":\n $this->cType = \"zend_bool\";\n if (!$this->onupdate) {\n $this->onupdate = \"OnUpdateBool\";\n }\n return true;\n\n case \"int\":\n $this->cType = \"long\";\n if (!$this->onupdate) {\n $this->onupdate = \"OnUpdateLong\";\n }\n return true;\n\n case \"float\":\n $this->cType = \"double\";\n if (!$this->onupdate) {\n $this->onupdate = \"OnUpdateReal\";\n }\n return true;\n\n case \"string\":\n $this->cType = \"char *\";\n if (!$this->onupdate) {\n $this->onupdate = \"OnUpdateString\";\n }\n return true;\n\n default:\n return PEAR::raiseError(\"'$this->type' not supported, only bool, int, float and string\");\n }\n }", "title": "" }, { "docid": "52d06a8bd8c60ea0bc7df7c0cefc52e0", "score": "0.64984983", "text": "public function setType($type) { $this->type = $type; }", "title": "" }, { "docid": "19afdf19a849f086511b395085d69bb2", "score": "0.6418484", "text": "public function setType($type){ $this->type = $type; }", "title": "" }, { "docid": "2e86b0c42ba9050e067df7f27a92f405", "score": "0.63983166", "text": "public function setType($type) {\r\n $this->_type = $type;\r\n }", "title": "" }, { "docid": "c09c0410929f3a649e1d95ed77092536", "score": "0.6386386", "text": "public function setType()\n\t{\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "bac845439894b0e69dd8a41e70849ff0", "score": "0.63554144", "text": "public function setType($type) {\r\n $this->_type = $type;\r\n }", "title": "" }, { "docid": "4e2fbfc822f7837a474ebdc0c668df07", "score": "0.63320434", "text": "public function setType($type) {}", "title": "" }, { "docid": "4e2fbfc822f7837a474ebdc0c668df07", "score": "0.63320434", "text": "public function setType($type) {}", "title": "" }, { "docid": "7218ee34d99e9793687a6018340facea", "score": "0.6327355", "text": "public function setType($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "796101c2f1dd40b4bfe73d793e1b2a62", "score": "0.6308561", "text": "public function set_type( $type ) {\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "9a0bb1eabef085598fa2c6dbe713e9de", "score": "0.62969595", "text": "public function SetType( $type )\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "81a9250bff166c096d2ac8750c067c84", "score": "0.62947744", "text": "function setType( $type )\n {\n if( !is_numeric( $type ) ) return;\n\n $this->type = $type;\n $sql = \"UPDATE\n \".$this->table.\"\n SET\n fieldtype = $type\n WHERE\n id = \".$this->id;\n $this->dba->exec( $sql );\n }", "title": "" }, { "docid": "0f8263aab4595b9ca462bf1e7b1f34de", "score": "0.6291063", "text": "public function set_type(&$type);", "title": "" }, { "docid": "67f10b2c1aa91ca065d2acc9c1843567", "score": "0.6280204", "text": "public function setType($type) {\r\n $this->type = $type;\r\n $this->handleAttribute(\"type\", $type);\r\n }", "title": "" }, { "docid": "d4640d3a30384c2224d51eff68c38ea2", "score": "0.6277153", "text": "public function set_type(string $type) { $this->type = $type; }", "title": "" }, { "docid": "abbaee44f1bbed7ecfec7d7891025a33", "score": "0.6273538", "text": "public function setSystemUpdateInstallType(?AndroidDeviceOwnerSystemUpdateInstallType $value): void {\n $this->getBackingStore()->set('systemUpdateInstallType', $value);\n }", "title": "" }, { "docid": "a4a7607c5067b0a1c644539baa3a9ad1", "score": "0.6267341", "text": "public function set_type ($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "115ce26ef983e4ac978fd5bf7bc18d77", "score": "0.62669235", "text": "public function setType($type) {\n\t\t$this->_type = $type;\n\t}", "title": "" }, { "docid": "15e326c15ef6581c86b45d820edbab0d", "score": "0.6259234", "text": "public function setType($type){\r\n\t\t$this->type = $type;\r\n\t}", "title": "" }, { "docid": "3917997e9c2fb5b3f395fc856a015a1d", "score": "0.62548065", "text": "public function setType($type){ }", "title": "" }, { "docid": "a8b67fb1ec81c2e100f8e01faf9a975d", "score": "0.6246059", "text": "public function setType($type)\r\n {\r\n $this->type = $type;\r\n }", "title": "" }, { "docid": "fb4e0c1d72e99cb321a78a6ab95478b9", "score": "0.6245235", "text": "public function setType($type) {\n $this->type = $type;\n }", "title": "" }, { "docid": "0116000d672cfd8fd9fb530aca6f5153", "score": "0.6239032", "text": "public function setType($type) {\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "0116000d672cfd8fd9fb530aca6f5153", "score": "0.6239032", "text": "public function setType($type) {\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "ab3daa4c30f31d1ec088a7fa0ada5802", "score": "0.62214565", "text": "public function update($agoType);", "title": "" }, { "docid": "983b50a27462bebbe3706fa937b1a3bd", "score": "0.6221036", "text": "function setType($type)\n {\n $this->__type = $type ;\n }", "title": "" }, { "docid": "1ed3274c9394eb113625f582879e4ce4", "score": "0.6212535", "text": "function SetType($type) {\r\n\t\tglobal $db, $db_name, $prefix;\r\n\t\tif (is_object($type) && strcasecmp(get_class($type), 'type') == 0) $type = $type->GetID();\r\n\t\tif (!is_numeric($type)) return false;\r\n\t\tif (mysql_db_query($db_name, 'UPDATE '.$prefix.\"items SET type=$type WHERE id=\".$this->id, $db)) {\r\n\t\t\t$this->UpdateCache();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "043a863bf9783bde782558325cdd5f4e", "score": "0.6184975", "text": "public function setType($type)\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "f41fcbe033f13ace23d0b6681da472ab", "score": "0.6145586", "text": "public function setType($type);", "title": "" }, { "docid": "9081b44a11e3cd0e259bb8a79a3c4a2c", "score": "0.60977083", "text": "private function updateType()\n {\n $type = get_field('organization_type', $this->source);\n\n if ($type) {\n $this->type = $type;\n }\n }", "title": "" }, { "docid": "3df764ae7485ff478603347d0cd29209", "score": "0.60800654", "text": "public function setType(string $type)\n\t{\n\t\t$this->type=$type; \n\t\t$this->keyModified['type'] = 1; \n\n\t}", "title": "" }, { "docid": "3df764ae7485ff478603347d0cd29209", "score": "0.60800654", "text": "public function setType(string $type)\n\t{\n\t\t$this->type=$type; \n\t\t$this->keyModified['type'] = 1; \n\n\t}", "title": "" }, { "docid": "f4d980bfb3f740ed01f40aa8b90b856e", "score": "0.604448", "text": "public function setType($type) {\n\t\tif(in_array($type, $this->types)) {\n\t\t\t$this->type = $type;\n\t\t}\n\t}", "title": "" }, { "docid": "90035cb4494a85b4cf8087a9b55b0ba2", "score": "0.60275126", "text": "public function set_type($type) {\n $this->type = (string) $type;\n }", "title": "" }, { "docid": "68429519022cab5cca90c4c5b6edc096", "score": "0.6013495", "text": "public function setType($type)\n {\n $this->setData('type', $type);\n }", "title": "" }, { "docid": "93ae19f2220c492506895c152a824ef1", "score": "0.60106695", "text": "public function on_update($type)\r\n\t{\r\n\t\t// If the type is recognised, use it\r\n\t\tif (in_array($type, $this->actions, FALSE))\r\n\t\t{\r\n\t\t\t$this->_on_update = $type;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Otherwise throw an error\r\n\t\t\tthrow new Kohana_Exception('The foreign key constraint action [0] was not recognised', array(\r\n\t\t\t\t'[0]'\t=> $type\r\n\t\t\t));\r\n\t\t}\r\n\t\t\r\n\t\t// Finally return this for chaining.\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "ed5176e2cecd13e0a4dff31de301c569", "score": "0.5994689", "text": "public function update_type($user_type) {\n require(\"connect.php\");\n\n if (!($stmt = $conn->prepare(\"UPDATE `users` SET `type`=? WHERE id=?\"))) {\n header('HTTP/1.1 500 Internal Server Error');\n }\n $id = $this->get_id();\n $stmt->bind_param(\"si\", $user_type, $id);\n\n //Runs validation\n $this->set_type($user_type);\n\n if (!($stmt->execute())) {\n header('HTTP/1.1 500 Internal Server Error');\n }\n }", "title": "" }, { "docid": "ba66827654d62dbfb644248a849de132", "score": "0.599412", "text": "public function setUpdateScheduleType($val)\n {\n $this->_propDict[\"updateScheduleType\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "1bcf8b28b00c542ac765273f886e774e", "score": "0.59919757", "text": "protected function decrement_update_count($type)\n {\n }", "title": "" }, { "docid": "b563aa49267f87178b1e3957b772d845", "score": "0.59848636", "text": "public function update(/**\n * Fires immediately prior to an auto-update.\n *\n * @since 4.4.0\n *\n * @param string $type The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.\n * @param object $item The update offer.\n * @param string $context The filesystem context (a path) against which filesystem access and status\n * should be checked.\n */\n$type, /**\n * Fires immediately prior to an auto-update.\n *\n * @since 4.4.0\n *\n * @param string $type The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.\n * @param object $item The update offer.\n * @param string $context The filesystem context (a path) against which filesystem access and status\n * should be checked.\n */\n$item) {}", "title": "" }, { "docid": "beaad1474b00532796a407447ea4a2c5", "score": "0.59724915", "text": "public function set_type($type)\n\t{\n\t\t$this->contrib_type = $type;\n\t\t$this->type = $this->types->get($this->contrib_type);\n\t}", "title": "" }, { "docid": "d7407efc4258d898e95f84e7b75ea9bb", "score": "0.5952535", "text": "public function setType(string $type);", "title": "" }, { "docid": "6f1f2221867b96db5677398c93a0f869", "score": "0.5950102", "text": "public function updated()\n {\n event(new TypeChanged());\n }", "title": "" }, { "docid": "7316714ea16e4129f29fa8110e1b991a", "score": "0.5943451", "text": "public function SetRequestType($type = 'GET')\n {\n if (in_array($type, array('GET', 'POST'))) {\n $GLOBALS['sajax_request_type'] = $type;\n }\n }", "title": "" }, { "docid": "843729d3743aad02614d90ab53650887", "score": "0.59145236", "text": "function setType($type);", "title": "" }, { "docid": "843729d3743aad02614d90ab53650887", "score": "0.59145236", "text": "function setType($type);", "title": "" }, { "docid": "c2c9dddf1d2012e2c3a98eb276011da2", "score": "0.59008914", "text": "private function setType(string $type): void\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "977ae8c989432a4459f9094856d43bda", "score": "0.5867411", "text": "public function setType($type)\n {\n $this->type = $type;\n $this->setAttributes(\"Type\");\n }", "title": "" }, { "docid": "7763b1dd5efb21f350a2e1c7e6689e41", "score": "0.5846145", "text": "public function setType(string $type): void {\n\t\t$this->type = $type;\n\t}", "title": "" }, { "docid": "c7084444d9984f3a2a663310a4cc67c5", "score": "0.58241695", "text": "public function setTypeHint($type) {}", "title": "" }, { "docid": "911f192adaf2ef27d1a03e0efb081cd1", "score": "0.58149827", "text": "function setType($type) {\r\n\t\treturn $this->setData('type', $type);\r\n\t}", "title": "" }, { "docid": "ed51e967d27b619eb11706ca5840e1cd", "score": "0.58122814", "text": "function setType( $type )\n {\n $this->type = $type;\n switch( $type )\n {\n case \"checkbox\":\n $this->setDefault( \"on\" , false );\n break;\n case \"color\"://bloody American spelling - polluting the world\n case \"colour\"://that's more like it\n //no support for alpha channels at this time\n $this->setDefault( \"#FFFFFF\", false );\n $this->addTag( \"reset-to-default\" );\n break;\n case \"password\":\n $this->setDefault( \"password\" );\n $this->addTag( \"reset-to-default\" );\n break;\n case \"timeperiod\":\n $this->addTag( \"reset-to-default\" );\n break;\n case \"image\":\n $this->addTag( \"reset-to-default\" );\n break;\n case \"textarea\":\n $this->addTag( \"reset-to-default\" );\n break;\n }\n return $this->_settings( false );\n }", "title": "" }, { "docid": "b3ba0f934acd8a53fe904ebff2cff9cf", "score": "0.5783853", "text": "public function setTypeAttribute($type)\n {\n $this->attributes['type'] = $this->convertTypeToInt($type);\n }", "title": "" }, { "docid": "d0d1ab740d78e787eefcacf074cb0808", "score": "0.5776662", "text": "public function setType($value)\n {\n if (!array_key_exists('type', $this->fieldsModified)) {\n $this->fieldsModified['type'] = $this->data['fields']['type'];\n } elseif ($value === $this->fieldsModified['type']) {\n unset($this->fieldsModified['type']);\n }\n\n $this->data['fields']['type'] = $value;\n }", "title": "" }, { "docid": "fc98f1939d9e9d39efe87fcc6b3df3db", "score": "0.57736045", "text": "public function setOperationType($type);", "title": "" }, { "docid": "fdc83542590f08efc0682132879534b6", "score": "0.5772883", "text": "public function set_fatch_type($type)\n {\n if($type > 0) $this -> fatch_type = $type;\n }", "title": "" }, { "docid": "5aebb97d426102e74d59cc2ab9e52741", "score": "0.5761571", "text": "public function setType( $type )\n\t{\n\t\t$this->setAttribute( \"type\", $type );\n\t}", "title": "" }, { "docid": "e77845a8df895e63cff7134ce85dcd8d", "score": "0.5739335", "text": "public function setType(?string $type): void\n {\n $this->type = $type;\n }", "title": "" }, { "docid": "b7cb090f96fd9d08ea65cf2b4482456b", "score": "0.5704423", "text": "public function set_object_type($type) {\n\t\t\t$this->object_type = $type;\n\t\t}", "title": "" }, { "docid": "2c59a1053e98d2a7a0d9f01a481e53e1", "score": "0.56924504", "text": "public function setRequestType($type) {\n\t\t\t$this->requestType = 'ajax';\n\t\t}", "title": "" }, { "docid": "e5cc6a6de5526b8e681cba02720c6f20", "score": "0.56673634", "text": "public function updateType($type, $data)\n\t{\n\t\n\t\t$type->setName($data['name']);\n\t\t$type->setDescription($data['description']);\n\t\t\n\t\t// Apply changes to database.\n\t\t$this->entityManager->flush();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "841ac8287a72bf0a7b5b9fa3a799dc54", "score": "0.5660571", "text": "function setDataType( $type )\n {\n if ( get_class( $type ) == \"ezdatatype\" )\n {\n $this->DataTypeID = $type->id(); \n }\n }", "title": "" }, { "docid": "181215564bf4fc04a2f8fb1913a1d954", "score": "0.56485003", "text": "function updatesAreDetected(int type){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "694ebc5b699b64226161f126ea2e6168", "score": "0.56333715", "text": "public function setType(int $type)\n { \n $this->type = $type;\n }", "title": "" }, { "docid": "62d61db2dea53454b60cca3bbba01461", "score": "0.56173563", "text": "public function setTypeAttribute(?string $type)\n {\n $this->attributes['type'] = $type ?? 'vendor';\n }", "title": "" }, { "docid": "399ee5808f0b3d9bfe21df0b34582394", "score": "0.561079", "text": "function _ds_entity_type_update($entity_type, $info, $action) {\n\n // Delete settings.\n if ($action == 'delete') {\n db_delete('ds_layout_settings')\n ->condition('entity_type', $entity_type)\n ->condition('bundle', $info->type)\n ->execute();\n db_delete('ds_field_settings')\n ->condition('entity_type', $entity_type)\n ->condition('bundle', $info->type)\n ->execute();\n }\n\n // Update settings.\n if ($action == 'update') {\n $records = db_query('SELECT * FROM {ds_layout_settings} WHERE entity_type = :entity_type AND bundle = :bundle', array(':entity_type' => $entity_type, ':bundle' => $info->old_type));\n foreach ($records as $record) {\n $old_id = $entity_type . '|' . $info->old_type . '|' . $record->view_mode;\n $new_id = $entity_type . '|' . $info->type . '|' . $record->view_mode;\n db_update('ds_layout_settings')\n ->fields(array(\n 'id' => $new_id,\n 'bundle' => $info->type)\n )\n ->condition('id', $old_id)\n ->execute();\n }\n $records = db_query('SELECT * FROM {ds_field_settings} WHERE entity_type = :entity_type AND bundle = :bundle', array(':entity_type' => $entity_type, ':bundle' => $info->old_type));\n foreach ($records as $record) {\n $old_id = $entity_type . '|' . $info->old_type . '|' . $record->view_mode;\n $new_id = $entity_type . '|' . $info->type . '|' . $record->view_mode;\n db_update('ds_field_settings')\n ->fields(array(\n 'id' => $new_id,\n 'bundle' => $info->type)\n )\n ->condition('id', $old_id)\n ->execute();\n }\n }\n\n // Clear cache.\n cache_clear_all('ds_fields:', 'cache', TRUE);\n cache_clear_all('ds_field_settings', 'cache');\n field_info_cache_clear();\n}", "title": "" }, { "docid": "57346c5f0ae9b36dd9ee241c1bc17ddd", "score": "0.56048495", "text": "public function setType($val)\n {\n if ($this->getType() === $val) {\n return;\n }\n $this->touch(); //there are new pending changes\n $this->type = $val;\n }", "title": "" }, { "docid": "8c410a502322423b8df8f0133d585697", "score": "0.55970234", "text": "public function setTypeAttribute($type)\n {\n $this->attributes['type'] = strtoupper($type);\n }", "title": "" }, { "docid": "ca9d1688578264987d695401317b3b1b", "score": "0.55821145", "text": "public function set_message_type($type) {\n if (!empty($type)) {\n $this->type = $type;\n }\n }", "title": "" }, { "docid": "0722bc99df40de19b5ef332c1ea88062", "score": "0.5569528", "text": "public function setType($value)\r\n\t{\r\n\t\t$this->type = $value;\r\n\t}", "title": "" }, { "docid": "4fb00beffad738fe64d660e2764d5469", "score": "0.55695254", "text": "protected function setType($type) \n\t\t{\t\n\t\t\t$this->__type = $type; \n\t\t\t$this->__type_hierarchy[] = $type; \n\t\t}", "title": "" }, { "docid": "598352e44df876636846055b776a0b24", "score": "0.5567052", "text": "public function setType($type){\n $this->type = trim($type);\n }", "title": "" }, { "docid": "6fe0eaf9d941d6e9eca666fc6310581a", "score": "0.5557837", "text": "protected function assignType()\n {\n $this->type = 'master';\n }", "title": "" }, { "docid": "0370690ad178c98563c1b3a095244c13", "score": "0.5557475", "text": "public function setProductType($type)\n {\n $this->originalProductType = $type;\n \n $country = $this->getCustomerCountry();\n \n // If product is not downloadable, new law is not applicable\n if (!in_array($type, $this->downloadable))\n {\n $this->isNewLawApplicable = false;\n }\n \n if (!isset($this->rates[$country][$type]))\n {\n $type = self::STANDARD;\n }\n \n $this->productType = $type;\n }", "title": "" }, { "docid": "dd23c082bb8fde75927e4635af533ba7", "score": "0.55110615", "text": "function setType($type) {\n\t\tif (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');\n\t\treturn $this->setFileStage($type);\n\t}", "title": "" }, { "docid": "ffc40f7051b69bf1ac54f79c7385a65f", "score": "0.5509755", "text": "function setDataType($type) {\n $js_instance = $this->getCurrentInstance(self::COMPONENT_NAME);\n if (!array_key_exists($type, $this->_data_type)) {\n $message = self::COMPONENT_NAME . ': ' . $type . ' is not a valid dataType.';\n phpBlasty::logMessage('error', '[' . LIBRARY_NAME . '] ' . $message);\n phpBlasty::showWarning($message);\n } else {\n //$this->_component_config[$js_instance]['dataType'] = $type;\n $this->setProperty('dataType', $type);\n\n if ($type == 'TYPE_XHR') {\n require_once $this->_path['component'] . 'connection' . EXT; // Require connection for this component\n $this->_connection = Connection::getInstance(); // Get the connection instance\n $this->_component_config[$js_instance]['connectionInstance'] = $this->_connection->getCurrentInstance(); // Tells to this component which is his connection manager\n $this->_connection->setComponentInstance($js_instance); // Tells to connection manager who called him\n //$this->_connection->setProperty($this->_datasource_default); // Set default datasource properties\n phpBlasty::$yui_component['connection']['loaded'] --; // To prevent datasource double generation\n //print_r(phpBlasty::$yui_component);\n }\n\n }\n }", "title": "" }, { "docid": "aaf704cb1892d5148876669190442185", "score": "0.5506654", "text": "public function update_member_type() {\n\t\t// none of our actions are set.\n\t\tif ( empty( $_REQUEST['new_member_type_top'] ) && empty( $_REQUEST['new_member_type_bottom'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\n\t\t// only admin/super admin.\n\t\tif ( ! current_user_can( 'edit_users' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$member_type = '';\n\t\tif ( ! empty( $_REQUEST['new_member_type_top'] ) ) {\n\t\t\t$member_type = trim( $_REQUEST['new_member_type_top'] );\n\t\t} else {\n\t\t\t$member_type = trim( $_REQUEST['new_member_type_bottom'] );\n\t\t}\n\n\t\t$input_name = 'users';\n\n\t\tif ( is_multisite() && is_network_admin() ) {\n\t\t\t$input_name = 'allusers';\n\t\t}\n\n\t\t$users = isset( $_REQUEST[ $input_name ] ) ? $_REQUEST[ $input_name ] : array();\n\n\t\tif ( empty( $users ) ) {\n\t\t\treturn; // no user selected.\n\t\t}\n\n\t\t$users = wp_parse_id_list( $users );\n\n\t\t$member_type = sanitize_key( $member_type );\n\n\t\t$member_type_object = bp_get_member_type_object( $member_type );\n\n\t\tif ( empty( $member_type_object ) ) {\n\t\t\treturn; // the member type does not seem to be registered.\n\t\t}\n\n\t\t$updated = 0;\n\n\t\tforeach ( $users as $user_id ) {\n\n\t\t\tbp_set_member_type( $user_id, $member_type );\n\t\t}\n\n\t\t$updated = 1;\n\n\t\t$this->message = sprintf( __( 'Updated member type for %d user(s) to %s. ' ), count( $users ), $member_type_object->labels['singular_name'] );\n\n\t\tif ( is_network_admin() ) {\n\t\t\t$url = network_admin_url( 'users.php' );\n\t\t} else {\n\t\t\t$url = admin_url( 'users.php' );\n\t\t}\n\n\t\t$redirect = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'updated' => $updated,\n\t\t\t\t'bp-member-type-message' => urlencode( $this->message ),\n\t\t\t),\n\t\t\t$url\n\t\t);\n\n\t\twp_safe_redirect( $redirect );\n\n\t\texit( 0 );\n\n\t}", "title": "" }, { "docid": "bcc77bb643334662ab8dbc55f888f5d3", "score": "0.5506313", "text": "public static function updateMeta($instance, $key, $value, $type);", "title": "" }, { "docid": "7998db7697af7f728bc388a5b6a2a341", "score": "0.5498668", "text": "public function setType($sType) {\r\n\t\t$this->setAtributo(\"type\", $sType);\r\n\t}", "title": "" }, { "docid": "30c259b5f74112fe71505cd8bd71e2a4", "score": "0.54944444", "text": "public function setType($type) {\n $this->type = $type;\n $this->zIndex = $type->zIndex;\n }", "title": "" } ]
37ea7eca487eca7dd81743ca79ced763
Get the value of subcategoryId
[ { "docid": "8c6b6fe47a8b3e8d52e5fb3787f5f03b", "score": "0.8007236", "text": "public function getSubcategoryId()\n {\n return $this->subcategoryId;\n }", "title": "" } ]
[ { "docid": "e72365567b91d008796715e73efa2a5b", "score": "0.7115153", "text": "public function getSubcategory()\n {\n return $this->subcategory;\n }", "title": "" }, { "docid": "d836bec46ce30eccb1bc66f8c2d41b50", "score": "0.7086446", "text": "public function getId()\n {\n return $this->getSubcategoryId();\n }", "title": "" }, { "docid": "33dfad9c31f19174c3e54de49582590a", "score": "0.6883358", "text": "public function subcategory(){\n $subcategory = CourseSubCategory::find($this->course_sub_category_id);\n if(is_object($subcategory)){\n return $subcategory->name;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "534223452af388763a56a49d8fd03dc9", "score": "0.6767013", "text": "public function getSubcategoryName()\n {\n return $this->subcategoryName;\n }", "title": "" }, { "docid": "7b3056bbb3abda24c343f0954177f8ce", "score": "0.66965175", "text": "public function getsubcategoies($categoryId) {\n $stmt = $this->conn->prepare(\"SELECT * FROM categories where parentId=? ORDER BY name\");\n\t\t$stmt->bind_param(\"i\", $categoryId);\n if ($stmt->execute()) {\n $user = $stmt->get_result()->fetch_all();\n $stmt->close();\n return $user;\n }else{\n return NULL;\n }\n }", "title": "" }, { "docid": "f15a437474b7affd5a612c87dffcfd79", "score": "0.660505", "text": "public function getCategoryId()\t{return $this->getFromCustomData(self::CATEGORY_ID);}", "title": "" }, { "docid": "2a16accf4ece83d466d4b0f3e5b2cef7", "score": "0.6555549", "text": "private function _get_subcategory_by_id( $sub_category_id = 0 ) {\n\t\t\n\t\t$db = $this -> db;\n\t\t\n\t\tif( $sub_category_id ) {\n\n\t\t\t$subcategory_sql = $db -> select()\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t -> from( 'job_sub_category' )\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t -> where( 'sub_category_id = ?', $sub_category_id );\n\t\t\t\t\t\t\t\t \n\t\t\t$subcategory = $db -> fetchRow( $subcategory_sql );\n\t\t\t\n\t\t\treturn $subcategory;\n\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "56013eeda5980ebe04a1b9981a0df183", "score": "0.64612937", "text": "public function getcategoryId() {\n return $this->category_id;\n }", "title": "" }, { "docid": "0ea41eb0af532dfa2a313466eb84fb59", "score": "0.63659966", "text": "function getAllSubCategoriesLevel2byProductID($productId,$suCatId) {\n\t\t\t$productId = $this->escape_string($this->strip_all($productId));\n\t\t\t$suCatId = $this->escape_string($this->strip_all($suCatId));\n\t\t\t$query = \"SELECT * FROM \".PREFIX.\"product_subsubcategory_mapping WHERE `product_id`='\".$productId.\"' and subsubcategory_id='\".$suCatId.\"'\";\n\t\t\t//echo $query;\n\t\t\t$sql = $this->query($query);\n\t\t\treturn $sql;\n\t\t}", "title": "" }, { "docid": "f26f92b06acb32660036e6b3b228ca78", "score": "0.63172156", "text": "public function consultaSubCategoria($idSubCategoria){\n $this->db->SELECT('*');\n $this->db->FROM('sub_categoria');\n $this->db->WHERE('id_sub_categoria',$idSubCategoria);\n $sql = $this->db->get();\n \n return $sql->row();\n \n }", "title": "" }, { "docid": "1ca0598bcd749bbc534c92b28649074a", "score": "0.6287691", "text": "function getProjectSubCategory($userData)\n\t\t{\n\t\t\t//get sub category from database\n\t\t\techo '<li class=\"pro_cat\"><a>'.$userData['category'].'</a></li>\n\t\t\t\t\t<ul class=\"profile_overview profile_1st_child_nav\">\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 1</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 2</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 3</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 4</a></li>\n\t\t\t\t\t\t<li><i class=\"glyphicon glyphicon-chevron-right profile_ovr_icon\"></i><a>Sub Category 5</a></li>\n\t\t\t\t\t</ul>';\n\t\t}", "title": "" }, { "docid": "2df88836c5a68728e60238f1d901dd5f", "score": "0.62856066", "text": "private function get_category($categoryId, $subCategoryId = NULL)\n\t{\n\t\tif ($subCategoryId) {\n\t\t\treturn $this->_query_reader->get_row_as_array('get_categories_level_2_by_id', array('id' => $subCategoryId));\n\t\t} else {\n\t\t\treturn $this->_query_reader->get_row_as_array('get_categories_level_1_by_id', array('id' => $categoryId));\n\t\t}\n\t}", "title": "" }, { "docid": "9c707c1028896ed1d4d466a04ca55b16", "score": "0.6256926", "text": "function getsubcatid($catid,$cat_tree,$max_level=0,$catstr)\n {\n\n\t $sql = \"SELECT * FROM tbl_questions_category WHERE status='1' and parent_id='\".$catid.\"' ORDER BY category_name ASC\";\n\t $run_qry = @mysql_query($sql);\n\t $nums = @mysql_num_rows($run_qry);\n\n\t if($nums)\n\t {\n\t \t while($catids = @mysql_fetch_array($run_qry))\n\t\t {\n\t\t $max_level=$max_level+ 1;\n\t\t if($catstr==\"\")\n\t\t {\n\t\t $catstr=$catids['id'];\n\t\t }else\n\t\t {\n\t\t $catstr=$catstr.\",\".$catids['id'];\n\t\t }\n\t\t $catstr=$this->getsubcatid($catids['id'], $cat_tree, $max_level,$catstr);\n\t\t }\n\t }\n\t return $catstr;\n }", "title": "" }, { "docid": "3d16be8360a8827efe2ee8aeec312267", "score": "0.62506247", "text": "function getSubId()\n\t{\n\t\treturn $this->sub_id;\n\t}", "title": "" }, { "docid": "475e2b3cdccc995aff7eea1bc9f00364", "score": "0.62433326", "text": "function get_subcategory_name($catid)\n{\n $conn = db_connect();\n \n $stmt = $conn->prepare(\"select catname from categories where catid = \n (select subcatid from categories where catid = ?\");\n $stmt->bind_param(\"s\", $catid);\n $stmt->execute();\n $result = $stmt->get_result();\n \n if (!$result) {\n return false;\n }\n \n $num_cats = @$result->num_rows;\n if ($num_cats == 0) {\n return false;\n }\n \n $row = $result->fetch_object();\n return $row->catname;\n}", "title": "" }, { "docid": "8b207897afadbb748fd9e809f463d24a", "score": "0.62399805", "text": "function get_this_subcatserv($subcatserv_id){\r\n $categoria = $this->db->query(\"\r\n SELECT\r\n ss.subcatserv_id, ss.subcatserv_descripcion, ss.subcatserv_precio\r\n FROM\r\n subcategoria_servicio ss\r\n WHERE\r\n ss.subcatserv_id = $subcatserv_id\r\n \r\n \")->result_array();\r\n\r\n return $categoria;\r\n }", "title": "" }, { "docid": "636060dca39d259788ce9bf6107bd4ba", "score": "0.6233969", "text": "public function ModelReadSub($category_id){\n\t\t\t//lay bien ket noi\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc hien truy van\n\t\t\t$query = $conn->query(\"select * from categories where parent_id=$category_id\");\n\t\t\t//lay tat ca cac ban ghi\n\t\t\t$result = $query->fetchAll();\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "85bbccfe23f37277f61c880c4f78492b", "score": "0.62194365", "text": "public function getSubCategory(){\n $id = Input::get('id');\n \n $sub_category = SubCategory::where('category_id',$id)->get();\n echo '<option value=\"\">' . '- Select Sub Category -' . '</option>';\n foreach ($sub_category as $value) {\n echo '<option value=\"' . $value->id . '\">' . $value->sub_category_name . '</option>';\n }\n }", "title": "" }, { "docid": "292c8b8fa6ac9c6291fddfec03fb8946", "score": "0.6196784", "text": "public static function getsubcategoryData()\n {\n\n $value=DB::table('subcategory')->leftJoin('category','category.cat_id','=','subcategory.cat_id')->where('subcategory.drop_status','=','no')->orderBy('subcategory.subcat_id', 'desc')->get(); \n return $value;\n\t\n }", "title": "" }, { "docid": "513aa220435f83d8e38ee56d4f0946d0", "score": "0.6176442", "text": "public function getTopLevelCategory() {\r\n\r\n if ($this->top_level_category) {\r\n return $this->top_level_category;\r\n } else {\r\n $sql = \"SELECT category_id AS top\r\n\t\t\t\t FROM bs_subcategories\r\n\t\t\t\t WHERE id=? LIMIT 1\";\r\n\r\n $stmt = $this->dbh->prepare($sql);\r\n $stmt->execute(array($this->id));\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n return $row['top'];\r\n }\r\n }", "title": "" }, { "docid": "1e4b9804505397c9931569ab7e8d5662", "score": "0.6139697", "text": "public function readSubcategory($Subcategory){\r\n\r\n\r\n\t\t$Result = new Result();\t\r\n\t\t$Result = $this->_SubcategoryDAO->readSubcategory($Subcategory);\r\n\t\t\r\n\t\tif(!$Result->getIsSuccess())\r\n\t\t\t$Result->setResultObject(\"Database failure in SubcategoryDAO.readSubcategory()\");\t\t\r\n\r\n\t\treturn $Result;\r\n\r\n\r\n\t}", "title": "" }, { "docid": "bacddff5e7c931a8312f3b860da7b769", "score": "0.6131655", "text": "public function getCategoryId(): int\n {\n return $this->categoryId;\n }", "title": "" }, { "docid": "ea21e5f3e6b5da180b2a034d01fde3a4", "score": "0.61114603", "text": "public function getSubcategory()\n {\n return $this->hasOne(Subcategory::className(), ['id' => 'subcategory_id']);\n }", "title": "" }, { "docid": "604b6391afa6fd7b5162ccc9ae12e06d", "score": "0.6107431", "text": "public function getGeotargetSubcategory($id) {\r\n\r\n global $dbh;\r\n\r\n $sql = $dbh->prepare(\"SELECT subcategory_id FROM bs_subcategories_geotargeted WHERE id=? LIMIT 1\");\r\n $sql->execute(array($id));\r\n $row = $sql->fetch(PDO::FETCH_ASSOC);\r\n\r\n return $row['subcategory_id'];\r\n }", "title": "" }, { "docid": "d65538190aaaf3631f338683526ea7fb", "score": "0.60737586", "text": "public function show(Sub_Category $sub_Category)\n {\n return $sub_Category;\n }", "title": "" }, { "docid": "efbf9d2b07f05095b0073c9cf17530df", "score": "0.60544986", "text": "public function showNewsSubCategory($id) {\n $saNewSubCategoryDetails = NewsSubCategory::model()->find(' NewsSubCategoryId = \"' . $id . '\" ');\n $ssNewSubCategoryName = '---';\n if (isset($saNewSubCategoryDetails) && !empty($saNewSubCategoryDetails)) {\n $ssNewSubCategoryName = $saNewSubCategoryDetails->NewsSubCategoryName;\n }\n return $ssNewSubCategoryName;\n }", "title": "" }, { "docid": "496aaa53df8954b786926a7fbb2d7466", "score": "0.605258", "text": "function get_subcategoria_servicio($subcatserv_id) {\r\n return $this->db->get_where('subcategoria_servicio', array('subcatserv_id' => $subcatserv_id))->row_array();\r\n }", "title": "" }, { "docid": "efd19ef8ed313133309ced810462d5d8", "score": "0.60488653", "text": "function getAllSubCategoriesLevel2($category_id) {\n\t\t\t$category_id = $this->escape_string($this->strip_all($category_id));\n\t\t\t$query = \"select * from \".PREFIX.\"subsubcategory where category_id in ($category_id)\";\n\t\t\t//echo $query;\n\t\t\t$sql = $this->query($query);\n\t\t\treturn $sql;\n\t\t}", "title": "" }, { "docid": "8056a4fd1ec6adee07e90853d97c06f5", "score": "0.6045843", "text": "public function getCategory(){ return CategoryData::getById($this->CATEGORIA_ID);}", "title": "" }, { "docid": "a17d3f307c822b8fbcca02b26743447a", "score": "0.60418504", "text": "function getIdCategory()\n {\n return $this->idCategory;\n }", "title": "" }, { "docid": "55b69255e24e69165b146e39bd58ecd4", "score": "0.60377276", "text": "public function get_subcat($ca_id){\n $subcat= Subcategory::where('category_id',$ca_id)->orderBy('subcategory_name_en','ASC')->get();\n return json_encode($subcat);\n }", "title": "" }, { "docid": "a36d966b492e5293173f13960ede9b06", "score": "0.60367626", "text": "public function getCategoryId(): int {\n\t\treturn ($this->categoryId);\n\t}", "title": "" }, { "docid": "7b62f06c18f105214dcd8d7d5e4e9009", "score": "0.6035062", "text": "function getCategorysubtopiclist(){\n\t\tglobal $default_con;\n\t\n\t\t$query = \"select * from tbl_subtopic where topic_id ='$this->cat_id'\";\n\t\t$result=mysql_query($query ,$default_con) or die(mysql_error());\n\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "c1bcb8d310b45202e145ae66b84cd418", "score": "0.60349524", "text": "public function getCatId()\n {\n return $this->cat_id;\n }", "title": "" }, { "docid": "3143a59c3032c36a57fae1ca085582ae", "score": "0.603444", "text": "function showSubCat($parentid,$dataobj){\r\n\r\n\t\t$subcat = $dataobj->getTable(\"select catid,catname from category where catparentid='$parentid'\");\r\n\r\n\t\twhile ($subcatrw = mysqli_fetch_assoc($subcat)) {\r\n\t\t echo '<li class=\"dropdown-item\"><a href=\"course.php?catid='.$subcatrw['catid'].'\" class=\"a-black\">'.$subcatrw['catname'].'</a></li>';\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "722cb0eb5522b778fa54a36fec7b9f2c", "score": "0.60295147", "text": "public function subcategory($conn){\n $result= mysqli_query($conn,\"SELECT subcat_id,subcat_name from `subcategory` order by subcat_name\") or die(mysqli_error($conn)); \n return $result; \n }", "title": "" }, { "docid": "ee79758958ce801c5d0974369b200396", "score": "0.602698", "text": "public function getCategoryId() {\n\t\treturn $this->categoryId;\n\t}", "title": "" }, { "docid": "ee79758958ce801c5d0974369b200396", "score": "0.602698", "text": "public function getCategoryId() {\n\t\treturn $this->categoryId;\n\t}", "title": "" }, { "docid": "a4202e476fd4e44be1e646ae7774e3a2", "score": "0.60253596", "text": "public function getSubCategory()\n {\n return $this->hasOne(SubCategory::className(), ['id' => 'sub_category_id']);\n }", "title": "" }, { "docid": "84443a799c47f36c8d3f687fd103f465", "score": "0.60104525", "text": "function getAccessCategoryID() \n {\n return $this->getValueByFieldName( \"accesscategory_id\" );\n }", "title": "" }, { "docid": "acf679a7eac8a0bfd85ea0e1b04d6999", "score": "0.60095584", "text": "public function getSubCat($sKey)\n {\n return $this->_aSubCats[$sKey];\n }", "title": "" }, { "docid": "cc0720c4fe38eb8a853ebfa89d69ca1c", "score": "0.6008939", "text": "public function get($categoryId);", "title": "" }, { "docid": "9c900424e5793607de8378fb3869de74", "score": "0.5992868", "text": "public function getCategory(){\n echo $this->category;\n }", "title": "" }, { "docid": "c212e722c69c66ae81115103ce87d440", "score": "0.59737355", "text": "public function getCat_id()\n {\n return $this->cat_id;\n }", "title": "" }, { "docid": "96fd4b719cbec7745f8402576ff750d6", "score": "0.59576523", "text": "public function GetSubcategoryByCategoryAction( ){\n\n $response = array(\n 'code' => 0,\n 'message' => 0,\n 'data' => 0\n );\n\n $categoryID = $this->request->getGetValue('categoryID');\n $limit = $this->request->getGetValue('limit');\n $offset = $this->request->getGetValue('offset');\n\n if(empty($limit) || $limit < 1){\n $limit = 10;\n }//if\n\n if(empty($offset) || $offset < 1 ){\n $offset = 0;\n }//if\n\n $products = Category::GetCategoryAndProducts($categoryID, $limit , $offset);\n\n $category = Category::getCategoryById($categoryID);\n\n $response['code'] = 200;\n $response['data'] = array(\n 'products' => $products,\n 'category' => $category,\n );\n\n $this->json( $response );\n\n }", "title": "" }, { "docid": "ea1680a39d4a6806edd4db2ebf960aac", "score": "0.5956416", "text": "private function getActiveCategoryId(){\n if( isset($_GET['category_id']) ){\n return $_GET['category_id'];\n }\n }", "title": "" }, { "docid": "b9c66e16ae5d112cef1b13b189b79a5a", "score": "0.594781", "text": "public function productosSubCategoria($idSubCategoria){\n $this->db->SELECT('*');\n $this->db->FROM('producto_imagen_principal');\n $this->db->WHERE('id_sub_categoria',$idSubCategoria);\n $sql = $this->db->get();\n \n return $sql->result();\n }", "title": "" }, { "docid": "56a0be0bf6920d31af8fa7840067c82f", "score": "0.5942002", "text": "public function subcat_for_cat() \r\n {\r\n $this->load->model('subcategorias_model');\r\n if (isset($_POST['id_cat'])) \r\n {\r\n $id_cat = $this->input->post('id_cat');\r\n }\r\n else {\r\n $id_cat = 1;\r\n }\r\n $result = $this->subcategorias_model->all_by_cat($id_cat);\r\n foreach ($result as $row) \r\n {\r\n echo '<option value=\"'.$row['id_scat'].'\">'.$row['nombre_scat'].'</option>';\r\n } \r\n }", "title": "" }, { "docid": "e9da2e3dbf284676da41b2763e4da574", "score": "0.591875", "text": "public function get_subcategory_by_category($id=null){\n $this->tbl_subcategory('subcategory_id');\n $subcategory = $this->global_model->get_by(array('category_id' => $id), false);\n if ($subcategory) {\n foreach ($subcategory as $v_subcategory) {\n $HTML.=\"<option value='\" . $v_subcategory->subcategory_id . \"'>\" . $v_subcategory->subcategory_name . \"</option>\";\n }\n }\n echo $HTML;\n }", "title": "" }, { "docid": "71473b8f21aef80fad5e5f00f46cbfe4", "score": "0.59182805", "text": "function category() {\n $category = $this->jsonData->entry->category[1]->{'label'};\n return $category;\n }", "title": "" }, { "docid": "4ae28b4dcefd789c9034ee719fba5e32", "score": "0.5917719", "text": "public function getsubcategory($type) {\r\n\t\t$this -> autoRender = false;\r\n\t\t$value = strtolower($type);\r\n\t\t$data = array();\r\n\t\t$value_length = $this -> Subcategory -> find('list', array('fields' => array('subcategoryid', 'subcategory'), 'conditions' => array('categoryid' => $value)));\r\n\t\t$data[] = \"<option value=''>Select </option>\";\r\n\t\tforeach ($value_length as $key => $q) {\r\n\t\t\t$data[] = \"<option value='\" . $key . \"'>\" . $q . \"</option>\";\r\n\t\t}\r\n\r\n\t\techo implode('', $data);\r\n\t\tdie ;\r\n\t}", "title": "" }, { "docid": "bbf30d117352a00cd70191b838b200fd", "score": "0.5904616", "text": "public function get_Category()\n {\n if (empty($this->cat)) {\n return 2;\n }\n return $this->cat;\n }", "title": "" }, { "docid": "640a990197621fbed5b33f8d0bee8250", "score": "0.590346", "text": "public function getcat($categoryId) {\n $stmt = $this->conn->prepare(\"SELECT name FROM categories where categoryId=?\");\n\t\t$stmt->bind_param(\"i\", $categoryId);\n if ($stmt->execute()) {\n $user = $stmt->get_result()->fetch_assoc();\n $stmt->close();\n return $user;\n }else{\n return NULL;\n }\n }", "title": "" }, { "docid": "fcbaf54ce25a0a7f6ecfa457cdec2ae9", "score": "0.5887816", "text": "function get_sub_category_list($category_id)\n\t{\n\t\techo '<div class=\"form-group\">\n\t\t\t\t<div class=\"col-md-12 col-sm-12\">\n\t\t\t\t<select onchange=\"get_product(\\'sub_category\\' , this.value)\" class=\"form-control selectpicker\"\n\t\t\t\t\tname=\"sub_category_id\" data-size=\"10\" data-live-search=\"true\" data-style=\"btn-default\">\n\t\t\t\t\t<option value=\"\">' . translate('select_sub_category') . '</option>';\n\n\t\t$sub_categories = $this->db->get_where('sub_category', array(\n\t\t\t'category_id' => $category_id\n\t\t))->result_array();\n\t\tforeach ($sub_categories as $row):\n\t\t\techo '<option value=\"' . $row['sub_category_id'] . '\">' . $row['name'] . '</option>';\n\t\tendforeach;\n\t\techo '</select></div></div>';\n\t}", "title": "" }, { "docid": "1d0937f764dcc5a0b9c9ea8f469999c0", "score": "0.5884778", "text": "public function getCategory_id()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "1d0937f764dcc5a0b9c9ea8f469999c0", "score": "0.5884778", "text": "public function getCategory_id()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "1d0937f764dcc5a0b9c9ea8f469999c0", "score": "0.5884778", "text": "public function getCategory_id()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "bc0aa377cb875a43c1b248924cd524b9", "score": "0.5864735", "text": "public function subcategory(){\n return $this->belongsTo(Category::class, 'subcategory_id', 'id');\n }", "title": "" }, { "docid": "16eea7fc92f5698b7e5b7cdcb79ebd89", "score": "0.5863948", "text": "public function get_subsec($section_id)\n\t{\n\t\t$this->db->select('subsection_id, subsection_name');\n\t\t$this->db->from('subsection');\n\t\tif($section_id == 'All'){}\n\t\telse{\n\t\t\t$this->db->where('section_id', $section_id);\n\t\t}\n\t\t$query = $this->db->get();\n\t\tif($query->num_rows() > 0)\n\t\t{\n\t\t\treturn $query->result();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fba7564a2a229e4431f138c7d00a7f43", "score": "0.5861242", "text": "function getSubCategory($category)\n\t\t{\n\t\t\t/* Initially we set sub categories are same */\n\t\t\techo '<option value=\"Sub Category 1\">Sub Category 1</option>\n\t\t\t\t\t<option value=\"Sub Category 2\">Sub Category 2</option>\n\t\t\t\t\t<option value=\"Sub Category 3\">Sub Category 3</option>\n\t\t\t\t\t<option value=\"Sub Category 4\">Sub Category 4</option>\n\t\t\t\t\t<option value=\"Sub Category 5\">Sub Category 5</option>';\n\t\t}", "title": "" }, { "docid": "124eb9cfef4de866f90ebe0ea695596d", "score": "0.5860014", "text": "function GetSubID()\n\t{\n\t\treturn $this->m_subID;\n\t}", "title": "" }, { "docid": "1d44fece67a598d7938b05f0a0106579", "score": "0.5859421", "text": "function int_subCatID($page, $tab){\n\t$result = \"\";\n\t$query = \"SELECT id FROM category WHERE abbr = \\\"$tab\\\" AND parent = (SELECT id FROM category WHERE abbr = \\\"$page\\\")\";\n\t$result = exec_scalar($query);\n\treturn $result;\n}", "title": "" }, { "docid": "0a6fd613ac91d32cb07e7ef9c1f60c47", "score": "0.5856587", "text": "public function getSub()\n {\n return ($this->payload->sub);\n }", "title": "" }, { "docid": "0f92b45af3e0acba4dd21c54ed1bf154", "score": "0.58548856", "text": "public function subcategory() {\n return $this->belongsTo(Subcategory::class);\n }", "title": "" }, { "docid": "7c548a775325bdb466ad3ff9cc735d1f", "score": "0.585253", "text": "public function getIdCategory()\n {\n return $this->idCategory;\n }", "title": "" }, { "docid": "7c548a775325bdb466ad3ff9cc735d1f", "score": "0.585253", "text": "public function getIdCategory()\n {\n return $this->idCategory;\n }", "title": "" }, { "docid": "7c548a775325bdb466ad3ff9cc735d1f", "score": "0.585253", "text": "public function getIdCategory()\n {\n return $this->idCategory;\n }", "title": "" }, { "docid": "d127f51df75373891648f7d293773888", "score": "0.5850249", "text": "public function getIdcategory()\n {\n return $this->idCategory;\n }", "title": "" }, { "docid": "b13514645a8f8e11c535ed6880e2102a", "score": "0.58490324", "text": "public function get_id_category() {\n\t\n\t\t\treturn $this->id_category;\n\t\t}", "title": "" }, { "docid": "0f836ecaaa69901e5fa5aa635ecead65", "score": "0.5834739", "text": "public function subCategoryAction() {\n\n //GET CATEGORY ID\n $category_id_temp = $this->_getParam('category_id_temp');\n $showAllCategories = $this->_getParam('showAllCategories', 1);\n\n //INTIALIZE ARRAY\n $this->view->subcats = $data = array();\n\n //RETURN IF CATEGORY ID IS EMPTY\n if (empty($category_id_temp))\n return;\n\n //GET CATEGORY TABLE\n $tableCategory = Engine_Api::_()->getDbTable('categories', 'sitealbum');\n\n //GET CATEGORY\n $category = $tableCategory->getCategory($category_id_temp);\n if (!empty($category->category_name)) {\n $categoryName = Engine_Api::_()->getItem('album_category', $category_id_temp)->getCategorySlug();\n }\n //GET SUB-CATEGORY\n $subCategories = $tableCategory->getSubCategories(array('category_id' => $category_id_temp, 'fetchColumns' => array('category_id', 'category_name', 'category_slug'), 'havingAlbums' => $showAllCategories));\n\n foreach ($subCategories as $subCategory) {\n $content_array = array();\n $content_array['category_name'] = $this->view->translate($subCategory->category_name);\n $content_array['category_id'] = $subCategory->category_id;\n $content_array['categoryname_temp'] = $categoryName;\n $content_array['category_slug'] = $subCategory->getCategorySlug();\n $data[] = $content_array;\n }\n\n $this->view->subcats = $data;\n }", "title": "" }, { "docid": "ea80f76cf814882e82258417a43e68dc", "score": "0.5807081", "text": "function getFullSubCatPorId($param) {\n $resultado = null;\n try {\n $pdo = Database::connect();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sql = \"select * from subcategorias WHERE id_subcategoria = \" . $param;\n $q = $pdo->prepare($sql);\n $q->execute();\n $resultado = $q->fetchAll();\n Database::disconnect();\n } catch (PDOException $e) {\n $resultado = 'ERROR: Comunicarse con el Administrador.';\n write_log($e, \"getFullSubCatPorId\");\n }\n return $resultado;\n}", "title": "" }, { "docid": "2e3dcf76d0c9db806d7574ed3413141b", "score": "0.57906216", "text": "static public function get_category_id()\r\n {\r\n return self::$category_id;\r\n }", "title": "" }, { "docid": "443260459fd9060874d686f1f3e781c8", "score": "0.578486", "text": "public function getSubmenuid()\n {\n return $this->submenuid;\n }", "title": "" }, { "docid": "2189ccb213e77b2217ab39a8cb9c06f1", "score": "0.57808053", "text": "public function read_sub_category($where)\r\n {\r\n //QUERY\r\n $this->db->select('category_id, category_label');\r\n $this->db->from('category');\r\n $this->db->where('hide_special !=', '1');\r\n //WHERE\r\n if(!empty($where))\r\n {\r\n $this->db->where($where);\r\n }\r\n else\r\n {\r\n $this->db->where('main_category_id', !NULL);\r\n }\r\n $this->db->order_by('category_label');\r\n $query = $this->db->get();\r\n //RETURN\r\n return $query;\r\n }", "title": "" }, { "docid": "5fb75d62e96453c8164431ffb571c86c", "score": "0.5775584", "text": "public function get_category(){\n return $this->category;\n }", "title": "" }, { "docid": "6ebbd22e0c7acda0821dcc486a123b28", "score": "0.5773963", "text": "public static function category_value($slug)\n {\n return $categoryid=Category::find()\n ->where(['slug' => $slug])\n ->andwhere(['!=', 'trash', 'Deleted'])\n ->asArray()\n ->one();\n }", "title": "" }, { "docid": "0fcf9230a205c069bb1022d33ee10473", "score": "0.57694185", "text": "public function getCategoryId()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "0fcf9230a205c069bb1022d33ee10473", "score": "0.57694185", "text": "public function getCategoryId()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "0fcf9230a205c069bb1022d33ee10473", "score": "0.57694185", "text": "public function getCategoryId()\n {\n return $this->category_id;\n }", "title": "" }, { "docid": "3b8aed2e138903376c4611e4e71d8c0f", "score": "0.57558566", "text": "function osc_count_subcategories() {\n $category = View::newInstance()->_current('categories');\n if ( $category == '' ) return -1;\n if ( !isset($category['categories']) ) return 0;\n if ( !is_array($category['categories']) ) return 0;\n if ( count($category['categories']) == 0 ) return 0;\n if ( !View::newInstance()->_exists('subcategories') ) {\n View::newInstance()->_exportVariableToView('subcategories', $category['categories']);\n }\n return osc_priv_count_subcategories();\n }", "title": "" }, { "docid": "5a45643d87027aedcb6248254ffbe501", "score": "0.57426214", "text": "function getCategoryValueById($id) {\n\t\t$this->db->select('*');\n\t\t$this->db->from($this->test_category_table);\n\t\t$this->db->where('testcategory_id', $id);\n $query = $this->db->get();\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "f974f95deb4021b3835a065431199078", "score": "0.5741669", "text": "private function getCategory($UUID){\r\n $pdo = Logger::connect();\r\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n $sql = \"Select c.Category from AssetType at join Category c on at.Category = c.ID where Type_ID = :uuid\" ;\r\n $q = $pdo->prepare($sql);\r\n $q->bindParam(':uuid',$UUID);\r\n if ($q->execute()){\r\n $row = $q->fetch(PDO::FETCH_ASSOC);\r\n return $row[\"Category\"];\r\n } else {\r\n return \"\";\r\n }\r\n Logger::disconnect();\r\n }", "title": "" }, { "docid": "8dcea3f3fcdaede27447207924a2d153", "score": "0.57415193", "text": "public function getSubCats()\n {\n return $this->_aSubCats;\n }", "title": "" }, { "docid": "8467636cc2a47eda994e127d411220e6", "score": "0.57373184", "text": "function addSubCategory($data)\n\t\t{\n\t\t\t\n\t\t\t//set column name\n\t\t\t$column_name = array('name','skills','categoryId');\n\t\t\t$column_value = array($data['name'],$this->_convertArrayToString($data['category_skills']),$data['category']);\n\t\t\t//insert the values\n\t\t\t$insert = $this->manageContent->insertValue('subcategory',$column_name,$column_value);\n\t\t\treturn $insert;\n\t\t}", "title": "" }, { "docid": "376d0e7d67553a6ba8ffd38e265aa27a", "score": "0.5727911", "text": "public function category($restaurantId){\n\n\n\t\t$subcategoryData =\t$this->Common_model->exequery(\"SELECT * from vm_product_subcategory where restaurantId =27 and subcategoryId IN ( 146, 147, 148, 149 )\");\n\t\tif (valResultSet($subcategoryData)) {\n\t\t\techo \"subcategoryData mil gya <br>\";\n\t\t\tforeach ($subcategoryData as $subcategory) {\n\t\t\t\t\n\t\t\t\t$subcategoryItemData =\t$this->Common_model->exequery(\"SELECT * from vm_product_subcategoryitem where subcategoryId =\".$subcategory->subcategoryId);\n\n\t\t\t\t$subcategory->subcategoryItemData = (valResultSet($subcategoryItemData))?$subcategoryItemData:array();\n\t\t\t}\n\n\t\t\tforeach ($subcategoryData as $subcategory) {\n\n\t\t\t\t$insertData = array();\n\t\t\t\t$insertData['categoryId']\t \t\t= $subcategory->categoryId;\n\t\t\t\t$insertData['subcategoryName']\t\t= $subcategory->subcategoryName;\n\t\t\t\t$insertData['subcategoryName_fr']\t= $subcategory->subcategoryName_fr;\n\t\t\t\t$insertData['subcategoryName_gr']\t= $subcategory->subcategoryName_gr;\n\t\t\t\t$insertData['subcategoryName_it']\t= $subcategory->subcategoryName_it;\n\t\t\t\t$insertData['updatedOn']\t \t\t= date('Y-m-d H:i:s');\n\t\t\t\t$slug = $this->common_lib->create_unique_slug($subcategory->subcategoryName,\"vm_product_subcategory\",\"subcategoryName\",0,\"subcategoryId\",$counter=0);\n\t\t\t\t$insertData['slug']\t\t\t = $slug;\n\t\t\t\t$insertData['restaurantId']\t = $restaurantId;\n\t\t\t\t$insertData['addedOn']\t \t = date('Y-m-d H:i:s');\n\t\t\t\t$subcategoryId \t\t= \t$this->Common_model->insertUnique(\"vm_product_subcategory\", $insertData);\n\n\t\t\techo \"subcategoryData insert ho gya - $subcategoryId <br>\";\n\t\t\t\tif ($subcategoryId > 0 && !empty($subcategory->subcategoryItemData) && count($subcategory->subcategoryItemData) > 0) {\n\t\t\t\t\tforeach ($subcategory->subcategoryItemData as $item) {\n\t\t\t\t\t\t$insertData = array();\n\t\t\t\t\t\t$insertData['categoryId']\t \t\t\t= $subcategory->categoryId;\n\t\t\t\t\t\t$insertData['subcategoryId']\t \t\t= $subcategoryId;\n\t\t\t\t\t\t$insertData['subcategoryitemName']\t\t= $item->subcategoryitemName;\n\t\t\t\t\t\t$insertData['subcategoryitemName_fr']\t= $item->subcategoryitemName_fr;\n\t\t\t\t\t\t$insertData['subcategoryitemName_gr']\t= $item->subcategoryitemName_gr;\n\t\t\t\t\t\t$insertData['subcategoryitemName_it']\t= $item->subcategoryitemName_it;\n\t\t\t\t\t\t$insertData['updatedOn']\t \t\t= date('Y-m-d H:i:s');\n\t\t\t\t\t\t$insertData['restaurantId']\t = $restaurantId;\n\n\n\t\t\t\t\t\t$slug = $this->common_lib->create_unique_slug($item->subcategoryitemName,\"vm_product_subcategoryitem\",\"subcategoryitemName\",0,\"subcategoryitemId\",$counter=0);\n\t\t\t\t\t\t\t$insertData['slug']\t\t\t = $slug;\n\t\t\t\t\t\t\t$insertData['addedOn']\t \t = date('Y-m-d H:i:s');\n\t\t\t\t\t\t\t$this->Common_model->insert(\"vm_product_subcategoryitem\", $insertData);\n\n\t\t\techo \"subcategoryData insert ho gya - $item->subcategoryitemName <br>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "1349a7665b9e6a6ee2c56116527728f4", "score": "0.57201225", "text": "function getCategory( $id )\r\n\t\t{\r\n\t\t\techo $this->theCategory( $id );\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9446fcd52d8db9f696ab2e2384655c52", "score": "0.5694771", "text": "public function getObjCategoria()\n {\n return $this->objCategoria;\n }", "title": "" }, { "docid": "fa1e25ebd8acfe548b9a7119122a68af", "score": "0.56843555", "text": "public function getId() : int {\n return $this->id_cat;\n }", "title": "" }, { "docid": "418b5fe144486f9a6495f2342f5ed6be", "score": "0.5671691", "text": "public function getIdcategorie()\n {\n return $this->idcategorie;\n }", "title": "" }, { "docid": "418b5fe144486f9a6495f2342f5ed6be", "score": "0.5671691", "text": "public function getIdcategorie()\n {\n return $this->idcategorie;\n }", "title": "" }, { "docid": "fe6374946b090ad04913c11a39404522", "score": "0.566772", "text": "public function subCategory()\n {\n return $this->belongsTo('PCI\\Models\\SubCategory');\n }", "title": "" }, { "docid": "4abfba9bc94e795198c2e15503990e19", "score": "0.5661582", "text": "static function subCategorias($conexion, $idCategoria){\n $consulta = $conexion->query(\"select idSubCategoria, nombreSub, idCat from SubCategoria where idCat = {$idCategoria}\");\n\t\t\t$bebida = array();\n\t\t\t$i=0;\n\t\t\tforeach($consulta as $bebidas){\n $bebida[$i] = $bebidas;\n $i++;\n }\n return $bebida;\n //return 1;\n }", "title": "" }, { "docid": "0ceedd88a91d7fdc6c51ae23bf39d7c5", "score": "0.565464", "text": "function get_subcategories($catid) {\n $conn = db_connect();\n \n $stmt = $conn->prepare(\"select catid, catname from categories where subcatid = ?\");\n $stmt->bind_param(\"i\", $catid);\n $stmt->execute();\n $result = $stmt->get_result();\n \n if (!$result) \n {\n return false;\n }\n \n $num_cats = @$result->num_rows;\n if ($num_cats == 0) \n {\n return false;\n }\n \n $result = db_result_to_array($result);\n return $result;\n}", "title": "" }, { "docid": "6cf67940ba84066e8e7ed45817adfe32", "score": "0.56451315", "text": "function getCategoryIdByProductId($productid)\n\t{\n\t\tif ($productid!='')\n\t\t{\n\t\t\t$sql=\"SELECT sub_under_category_id FROM products_table WHERE product_id=\".(int)$productid;\n\t\t\t$qry= new Bin_Query();\n\t\t\t$qry->executeQuery($sql);\n\t\t\t\n\t\t\treturn $categoryid=$qry->records[0]['sub_under_category_id'];\n\t\t}\n\t}", "title": "" }, { "docid": "8f54ba3897524ce6d9bcd52939d9ba45", "score": "0.56442976", "text": "public function getCategorySortValue(){\n\n $categoryId = Input::get('categoryId');\n return $this->reportRepo->getSortValueFromCategoryValue($categoryId);\n\n }", "title": "" }, { "docid": "70afc183dac59cd39e21281d42b12fd3", "score": "0.56344616", "text": "public function getCurbsideCategoriesByCategoryId($categoryId) {\n try {\n $returnValue = 'noCategory';\n $mongoCriteria = new EMongoCriteria;\n \n $mongoCriteria->addCond('CategoryId', '==',(int)$categoryId);\n $categoryObj = CurbSideCategoryCollection::model()->find($mongoCriteria);\n $returnValue =$categoryObj;\n return $returnValue;\n } catch (Exception $ex) { \n Yii::log(\"CurbSideCategoryCollection:getCurbsideCategoriesByCategoryId::\".$ex->getMessage().\"--\".$ex->getTraceAsString(), 'error', 'application');\n error_log(\"Exception Occurred in CurbSideCategoryCollection->getCurbsideCategoriesByCategoryId==\".$ex->getMessage());\n }\n }", "title": "" }, { "docid": "e3d8869f825afc9f562f785a3068e350", "score": "0.56295836", "text": "private function getTagTreeResourceCategory( ) {\n for($h=0; $h < count($this->_tagTree); $h++) {\n $tag = $this->_tagTree[$h];\n if (strtolower(preg_replace('/\\s+/', '', $tag['name'])) === \"category:\".$this->_categoryName ) {\n return $tag;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "09fd16e9dec799818afdbb36c306f30f", "score": "0.5625471", "text": "function osc_category() {\n if (View::newInstance()->_exists('subcategories')) {\n $category = View::newInstance()->_current('subcategories');\n } elseif (View::newInstance()->_exists('categories')) {\n $category = View::newInstance()->_current('categories');\n } elseif (View::newInstance()->_exists('category')) {\n $category = View::newInstance()->_get('category');\n } else {\n $category = null;\n }\n return($category);\n }", "title": "" }, { "docid": "3dba98775ab650aac772d026316ba614", "score": "0.5622756", "text": "function get_category_name_by_id($id)\r\n{\r\n return getCategoryIdTable('CategtoryName',$id);\r\n}", "title": "" }, { "docid": "216787809adb3cef5d0d04037eb48e10", "score": "0.5619238", "text": "public function getIdCategoria()\n {\n return $this->id_categoria;\n }", "title": "" } ]
f19da9f75140f9d380ae3ef01ecd91c8
Build a generic log command
[ { "docid": "d61decfd2a3b64fe0f5fc04c8e7464ae", "score": "0.47828522", "text": "public function showAllLog($ref, $path = null, $limit = null, $offset = null)\n {\n $this->clearAll();\n\n $this->addCommandName(self::GIT_LOG);\n $this->addCommandArgument('-s');\n $this->addCommandArgument('--all');\n $this->addCommandArgument('--pretty=raw');\n $this->addCommandArgument('--no-color');\n\n if (null !== $limit) {\n $limit = (int) $limit;\n $this->addCommandArgument('--max-count=' . $limit);\n }\n\n if (null !== $offset) {\n $offset = (int) $offset;\n $this->addCommandArgument('--skip=' . $offset);\n }\n\n if ($ref instanceof TreeishInterface) {\n $ref = $ref->getSha();\n }\n\n if (null !== $path && !empty($path)) {\n $this->addPath($path);\n }\n\n $this->addCommandSubject($ref);\n\n return $this->getCommand();\n }", "title": "" } ]
[ { "docid": "695bd0e8ec34275fdd6b60f6fe6441a4", "score": "0.6332694", "text": "function logCMD($command, $type) {\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t$logFile = fopen($this->logDir['cmd'], 'a');\n\t\t$commandString = date('Y-m-d H:i:s ') . \"($ip) - [\" . strtoupper($type) . \"] => $command\\n\";\n\t\tif(fwrite($logFile, $commandString)) {\n\t\t\tfclose($logFile);\n\t\t\tunset($logFile);\n\t\t}\n\t}", "title": "" }, { "docid": "281024e46a706b7caf71df5ca08b88a4", "score": "0.62959534", "text": "public function SLOWLOG($subcommand, $argument = '');", "title": "" }, { "docid": "14c69d15cb44f4c54adb2b4da76a6436", "score": "0.60419893", "text": "function make_log( $name, $args )\n {\n substr($name, 0, 4) == \"log_\" and $name = convert_snake_to_pascal_case(substr($name, 4));\n $name = Script::filter(\"log_name\", $name);\n \n $ds = null;\n if( count($args) and is_object($args[0]) and method_exists($args[0], \"reconnect_for_writing\") )\n {\n $ds = array_shift($args);\n }\n\n return $this->log($name, array_pair($args), $ds);\n }", "title": "" }, { "docid": "2837e374649a0d809cacd29020281d66", "score": "0.5907898", "text": "public function buildCommand();", "title": "" }, { "docid": "7ac0edd2a351d5452873bb1ddd101ad6", "score": "0.5883429", "text": "abstract public function log( $additional_args );", "title": "" }, { "docid": "2972112972747574ae9df8df4271cf39", "score": "0.5697992", "text": "public function log($str) {\n static $fhtarget = null;\n $args = func_get_args();\n $lstr = call_user_func_array('sprintf',$args);\n if ($this->logtarget === null) {\n echo $lstr.\"\\n\";\n } elseif ($this->logtarget === false) {\n return;\n } elseif (is_array($this->logtarget)) {\n array_map([$this,'log'],$lstr);\n } elseif (is_callable($this->logtarget)) {\n call_user_func($this->logtarget,$lstr);\n } elseif (is_object($this->logtarget)) {\n $this->logtarget($lstr);\n } elseif (is_resource($this->logtarget)) {\n fputs($this->logtarget,$lstr.\"\\n\");\n } elseif (is_writable($this->logtarget)) {\n if (!$fhtarget)\n $fhtarget = fopen($this->logtarget,\"a+\");\n fwrite($fhtarget,$lstr.\"\\n\");\n } else {\n echo $lstr.\"\\n\";\n }\n }", "title": "" }, { "docid": "fa837cb952c22edadcb5f9c78afbb7e1", "score": "0.5671685", "text": "private function _Log(){\r\n $arguments = func_get_args();\r\n try {\r\n if ($this->_Verbose && count($arguments) > 0) {\r\n if( isset( $this->_oLog ) ){\r\n $this->_oLog->Add( $arguments[0] );\r\n }else{\r\n $content = '';\r\n $arguments[0]['class'] = 'Configuration';\r\n foreach ($arguments[0] as $key => $value){\r\n $content .= \"\\n\\t<li>\" . $key. ': ' . $value . '</li>';\r\n }\r\n $content = \"\\n<ul>\" . $content . \"\\n</ul>\\n\";\r\n echo $content;\r\n }\r\n }\r\n } catch (Exception $oException) {\r\n $this->_Log(array(\r\n 'method' => '_Log'\r\n ,'severity' => 'error'\r\n ,'test' => '' . $oException\r\n ));\r\n }\r\n }", "title": "" }, { "docid": "a5593d943250aae8b97474f1de022705", "score": "0.564805", "text": "public static function log_target();", "title": "" }, { "docid": "a35f4aa02f07435d1eb286b3eaa5320e", "score": "0.564204", "text": "function log($message, $type = 'message')\r\n {\r\n $message = wordwrap($message, 69, \"\\n \");\r\n $this->cli->message($message, 'cli.' . $type);\r\n }", "title": "" }, { "docid": "6b9913f1c4e896cf3db50caaf0506264", "score": "0.5541455", "text": "function logger($cmd, $result, $args, $elfinder) {\n $log = sprintf('[%s] %s %s:', \n date('r'), \n strtoupper(substr( $_SERVER['REMOTE_USER'], strrpos( $_SERVER['REMOTE_USER'], '\\\\' )+1 )), \n strtoupper($cmd));\n foreach ($result as $key => $value) {\n if (empty($value)) {\n continue;\n }\n $data = array();\n if (in_array($key, array('error', 'warning'))) {\n array_push($data, implode(' ', $value));\n } else {\n if (is_array($value)) { // changes made to files\n foreach ($value as $file) {\n $filepath = (isset($file['realpath']) ? $file['realpath'] : $elfinder->realpath($file['hash']));\n array_push($data, $filepath);\n }\n } else { // other value (ex. header)\n array_push($data, $value);\n }\n }\n $log .= sprintf(' %s(%s)', $key, implode(', ', $data));\n }\n $log .= \"\\n\";\n\n //$logfile = '../log/log.txt';\n $logfile = '../log/' . date('Y'.'m') . '_log.txt';\n $dir = dirname($logfile);\n if (!is_dir($dir) && !mkdir($dir)) {\n return;\n }\n if (($fp = fopen($logfile, 'a'))) {\n fwrite($fp, $log);\n fclose($fp);\n }\n}", "title": "" }, { "docid": "4343cdd48bf449f78e1ed492d39b3d24", "score": "0.54706985", "text": "static function create_log_data_specific ($source, $command, $criteria, $db_conf, $card_name, $expansion_origin) {\n\t\t\tif (!isset($source['roomId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'userId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t}\n\n\t\t\t$id = $source[$choosenID];\n\n\t \t$query = \"INSERT INTO `SUCCESS_LOG` (`DATE`, `USER_ID` , `COMMAND`, `CRITERIA`, `SPECIFIC_CARD`, `EXPANSION_ORIGINS`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','$id','$command','$criteria', '$card_name', '$expansion_origin')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "title": "" }, { "docid": "bc995d0f1a39778d77c5e6241001ac5e", "score": "0.544965", "text": "public function log($command): bool;", "title": "" }, { "docid": "35c9cb3546de36a4b5a7428ad7ce2432", "score": "0.5444016", "text": "public function log($message, $type=null);", "title": "" }, { "docid": "d7222b90231defd0bc736cf8af891c64", "score": "0.544382", "text": "function scaffold_log() {\n\t$args = func_get_args();\n\tforeach ($args as $arg) {\n\t\t$msg = print_r($arg, true);\n\t\terror_log($msg);\n\t}\n}", "title": "" }, { "docid": "27851534810c931a8ca85006d31df864", "score": "0.54175186", "text": "abstract function gerarLog();", "title": "" }, { "docid": "25748c8b44c9203edbb9b1d9c9eabfe8", "score": "0.5410545", "text": "static public function log($command, $query, array $params = null, $duration)\n {\n $callPath = array();\n\n foreach (array_reverse(debug_backtrace()) as $step)\n {\n if (isset($step['class']))\n {\n if (!preg_match('/^MyDBD/', $step['class']))\n {\n $callPath[] = $step['class'] . (isset($step['line']) ? ':' . $step['line'] : '');\n }\n }\n elseif (isset($step['file']))\n {\n $callPath[] = $step['file'] . (isset($step['line']) ? ':' . $step['line'] : '');\n }\n else\n {\n $callPath[] = '{main}' . (isset($step['line']) ? ':' . $step['line'] : '');\n }\n }\n\n if (isset($params))\n {\n $query = preg_replace('/\\?/e', 'is_string($v = array_shift($params)) ? \"\\'\". $v .\"\\'\" : $v', $query);\n }\n error_log($command . ' ' . $query);\n\n self::$logs[] = array('command' => $command, 'query' => $query, 'duration' => $duration, 'callpath' => $callPath);\n }", "title": "" }, { "docid": "a531dafe1d7bc7e412e2c76212031605", "score": "0.53249264", "text": "function execLog($sql){\n }", "title": "" }, { "docid": "07bd468a5c90cb69e7c340f8240bf890", "score": "0.5299283", "text": "function makeLogLine($line_data) {\n $log = $line_data['date'] . \"\\t\" . $line_data['ip'] . \"\\t0\" . \"\\t0\";\n $log .= \"\\t\" . $line_data['guid'] . \"\\t\" . $line_data['url'] . \"\\t\". $line_data['location'] . \"\\t\" . $line_data['private'];\n $log .= \"\\t\". $line_data['testUID'] . \"\\t\" . $line_data['testUser'] . \"\\t\" . $line_data['video'] . \"\\t\" . $line_data['label'];\n $log .= \"\\t\". $line_data['owner'] . \"\\t\". $line_data['key'] . \"\\t\" . $line_data['count'] . \"\\r\\n\";\n\n return $log;\n}", "title": "" }, { "docid": "d2ee31c8b83433a729750d2bf0080fab", "score": "0.52940756", "text": "public static function log() {\n if(Log::$enabled) {\n $data = array();\n $args = func_get_args();\n\n foreach($args as $arg) {\n $message = \"\";\n Myna::var_dump_to_string($arg, $message);\n array_push($data, $message);\n }\n\n //$stderr = fopen('php://stderr', 'w');\n //fwrite($stderr, implode(' ', $data));\n //fclose($stderr);\n error_log(implode(' ', $data));\n }\n }", "title": "" }, { "docid": "7080a7e5e62eed08a7e5e5e5818d963a", "score": "0.5279439", "text": "public function log(Log $log) {}", "title": "" }, { "docid": "97c4c229c3f31e52c63f1114c88ffe09", "score": "0.5256588", "text": "public function logger();", "title": "" }, { "docid": "66b4bbf5c6a737c0c7e4995982a92a39", "score": "0.525524", "text": "function addlog()\r\n\t{\r\n\t\t$logfile = ICE::get('ice', 'path', 'files').'ic/ic_log.dat';\r\n\t\t\r\n\t\tif (($fp = @fopen($logfile, 'a')))\r\n\t\t{\r\n\t\t\t$args = func_get_args();\r\n\t\t\t$name = array_shift($args);\r\n\t\t\t\r\n\t\t\t$args = str_replace(\"\\t\", '\\t', implode('||', $args));\r\n\t\t\t\r\n\t\t\t$time = microtime();\r\n\t\t\t$sess_id = ICE::get('session', 'id');\r\n\t\t\t$app = ICE::get('ice', 'app', 'name');\r\n\t\t\t$usr_id = ICE::get('usr', 'id');\r\n\t\t\t$usr_name = ICE::get('usr', 'usr');\r\n\t\t\t$usr_full = ICE::get('usr', 'fullname');\r\n\t\t\t$ip = $GLOBALS[\"REMOTE_ADDR\"];\r\n\t\t\t$browser = $GLOBALS[\"HTTP_USER_AGENT\"];\r\n\t\t\t\r\n\t\t\t$s = \"\\t\";\r\n\t\t\t$line = $app.$s.$name.$s.$args.$s.$usr_id.$s.$usr_name.$s.$usr_full.$s.$time.$s.$sess_id.$s.$ip.$s.$browser.\"\\n\";\r\n\t\t\t\r\n\t\t\t@fwrite($fp, $line);\r\n\t\t\t@fclose($fp);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bcc794b146e5fc60ecd7f8daaebac08e", "score": "0.5242173", "text": "private function _buildCommand($command, $timestamp, $params = [], $handleParams = true)\n\t{\n\t\t$this->getConfig()->set('command.params', $params);\n\t\t$url = $this->getUrl($command, $params, $handleParams);\n\t\t$this->_setHeaders($url, $timestamp);\n\t\treturn $this->_sendCommand($command, $params);\n\t}", "title": "" }, { "docid": "1c0d42fa2bafc2c69dca0f7d4bf397df", "score": "0.524089", "text": "static function create_universal_log_data ($source, $command, $db_conf) {\n\t\t\tif (!isset($source['userId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'userId' ;\n\t\t\t}\n\n\t \t$query = \"INSERT INTO `GOBU_DIARY` (`DATE`, `USER_ID`, `COMMAND`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','\" . $source[$choosenID] . \"','\" . $command . \"')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "title": "" }, { "docid": "a939fbffffa037a75ec7d45efb5210bd", "score": "0.5196448", "text": "public function build_command( /* arguments */ )\n {\n // Fetch all the arguments.\n \n $args = func_get_args();\n \n // Glue and return.\n \n return implode(' ' , $args);\n }", "title": "" }, { "docid": "81a95610c5a2a72068c67a1351460242", "score": "0.5194455", "text": "static function create_log_data ($source, $command, $criteria, $db_conf) {\n\t\t\tif (!isset($source['roomId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'userId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t}\n\n\t \t$query = \"INSERT INTO `SUCCESS_LOG` (`DATE`, `USER_ID` , `COMMAND`, `CRITERIA`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','\" . $source[$choosenID] . \"','\" . $command . \"','\" . $criteria . \"')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "title": "" }, { "docid": "5c02ba93f598643dfde7b85f8ce4107a", "score": "0.51829755", "text": "public function onCommonLogAction(BaseEvent $event)\r\n {\n // event data is expected to be an instance of LogEventData\n $eventData = $event->getData();\n $logAction = $this->getLogActionOfEventName($event->getName());\n $log = new Log();\n $log->setAccountId($this->loggedAccountId);\n $log->setAction($logAction);\n $log->setApplicationContext($this->applicationContext);\n \n if ($eventData instanceof LogEventData) {\n \t$log->setMessage($eventData->getMessage());\n \t\n \t$log->setData(\\json_encode($eventData->getData()));\n \t\n \t// quick fix for login since no logged accountId is set yet\n \t$dataArr = $eventData->getData();\n \tif (isset($dataArr['accountId']) && $dataArr['accountId']) {\n \t\t$log->setAccountId($dataArr['accountId']);\n \t}\n \t\n \t\n \t// we only cater those with LogEventData\n \t$this->logService->save($log);\n }\n else {\n // for BC\n } \r\n }", "title": "" }, { "docid": "57bf149eb0aa34cb279713d5f11cdb8f", "score": "0.51667637", "text": "function log($user_pidm, $action, $status, $type, $attribute=null)\r\n\t{\r\n\t\t$data = array(\r\n\t\t\t'pidm' => $user_pidm,\r\n\t\t\t'action' => $action,\r\n\t\t\t'type' => $type,\r\n\t\t\t'status' => $status,\r\n\t\t\t'attribute' => $attribute,\r\n\t\t\t'admin_pidm' => $_SESSION['pidm'],\r\n\t\t\t'admin_username' => $_SESSION['username'],\r\n\t\t);\r\n\r\n\t\t$data['username'] = $GLOBALS['BannerIDM']->getIdentifier($data['pidm'],'pid','username');\r\n\r\n\t\t$table = 'ape_log';\r\n\t\t$sql = $GLOBALS['CALLLOG']->GetInsertSQL($table, $data, get_magic_quotes_gpc(), false);\r\n\t\t$GLOBALS['CALLLOG']->Execute($sql);\r\n\t}", "title": "" }, { "docid": "37b4a97e9093fb2487a931aefa1a1ded", "score": "0.5150448", "text": "static function log($log) {\n self::$log .= $log . \"\\n\";\n }", "title": "" }, { "docid": "90e7ea3932dea191b1648e0c456841f0", "score": "0.51386565", "text": "public function factoryLogEntry($name);", "title": "" }, { "docid": "9da184484d5c81ddf464cf95d2778c85", "score": "0.51353765", "text": "function MakeLogName($call) {\n return($call . '-' . gmdate(\"YmdHis\"));\n}", "title": "" }, { "docid": "aefe188c76aa8abbae8f82224c5a0d4d", "score": "0.5093926", "text": "public function log($command): bool\n {\n if (!$this->driverClass) { \n $this->driverClass = new CompositeDriver();\n }\n $command_split = explode(\"|\",$command);\n return $this->driverClass->write($command_split[1],$command_split[0]);\n }", "title": "" }, { "docid": "239b5e4d63d536861e6fc0c3289037e4", "score": "0.5087802", "text": "public function get_log(){\n // Disabled for demo purposes\n //$this->extend->log(\"Hello\");\n }", "title": "" }, { "docid": "494980742310c8ac2d6b3d5958d9a33c", "score": "0.5087399", "text": "public static function log($arg){\n\t\tif(self::$debug){\n\t\t\tif(self::$logAtComplete){\n\t\t\t\tself::$debugMessagesArray[] = $arg;\n\t\t\t} else {\n\t\t\t\tprint_r($arg);\n\t\t\t\techo '<br/>';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3b9935c33ebbb4315de9ab194272db71", "score": "0.5074631", "text": "function logEvent($event)\r\n{\r\n return tLog($event->message, $event->logLevel, $event->source,\r\n $event->objectID, $event->objectType,$event->code);\r\n}", "title": "" }, { "docid": "d0ecc349ae240e4420b76c7b05326aca", "score": "0.5072282", "text": "public function formatLogs();", "title": "" }, { "docid": "f59c2510b11866e2e05eb9dcce216e1b", "score": "0.50668997", "text": "function add_log($text, $function, $type = LOG_INFO, $projectid = 0, $buildid = 0,\n $resourcetype = 0, $resourceid = 0)\n {\n $level = to_psr3_level($type);\n\n if (($buildid === 0 || is_null($buildid)) && isset($GLOBALS['PHP_ERROR_BUILD_ID'])) {\n $buildid = $GLOBALS['PHP_ERROR_BUILD_ID'];\n }\n\n $context = array('function' => $function);\n\n if ($projectid !== 0 && !is_null($projectid)) {\n $context['project_id'] = $projectid;\n }\n\n if ($buildid !== 0 && !is_null($buildid)) {\n $context['build_id'] = strval($buildid);\n }\n\n if ($resourcetype !== 0 && !is_null($resourcetype)) {\n $context['resource_type'] = $resourcetype;\n }\n\n if ($resourceid !== 0 && !is_null($resourceid)) {\n $context['resource_id'] = $resourceid;\n }\n\n Log::log($level, $text, $context);\n }", "title": "" }, { "docid": "b4ad29a1b8bfdfbd6213d1e5b3e988b1", "score": "0.5065925", "text": "function createLog($groupId, $targetId, $action, $attackSuccess, $itemDestroyed, $kill, $config, $pdo){\n\t$msg=\"\";\n\tif($attackSuccess){\n\t\tif($kill){\n\t\t\t$msg=$config['log_messages'][$action]['kill'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=$config['log_messages']['kill'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=\"Group <group> killed group <target>\";\n\t\t}\n\t\telse if(!$itemDestroyed){\n\t\t\t$msg=$config['log_messages'][$action]['nothingToDestroy'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=$config['log_messages']['nothingToDestroy'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=\"Group <group> tried to perform action <action> on group <target> but found nothing to destroy\";\n\t\t}\n\t\telse{\n\t\t\t$msg=$config['log_messages'][$action]['success'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=$config['log_messages']['success'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=\"Group <group> performed action <action> successfully on group <target>\";\n\t\t}\n\t}\n\telse{\n\t\tif($targetId==$groupId){\n\t\t\t$msg=$config['log_messages'][$action]['hitSelf'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=$config['log_messages']['hitSelf'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=\"Group <group> tried to perform action <action> but hit themselves\";\n\t\t}\n\t\telse{\n\t\t\t$msg=$config['log_messages'][$action]['failure'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=$config['log_messages']['failure'];\n\t\t\tif($msg == null)\n\t\t\t\t$msg=\"Group <group> failed performing action <action> on group <target>\";\n\t\t}\n\t}\n\t$groupName=$config[\"group_names\"][\"gr$groupId\"];\n\tif($groupName==null)\n\t\t$groupName=\"group $groupId\";\n\t$targetName=$config[\"group_names\"][\"gr$targetId\"];\n\tif($groupName==null)\n\t\t$groupName=\"group $targetId\";\n\t$actionName=$config[$action][\"name\"];\n\tif($actionName==null)\n\t\t$actionName=$action;\n\t$msg=str_replace(\"<group>\", $groupName, $msg);\n\t$msg = str_replace(\"<target>\", $targetName, $msg);\n\t$msg = str_replace(\"<action>\", $actionName, $msg);\n\t$sql=\"INSERT INTO log (groupId, message) VALUES (?, ?);\";\n\n\t$statement = $pdo->prepare($sql);\n\tif($statement->execute(array($groupId, $msg)))\n\t\treturn true;\n\treturn $statement->errorInfo()[2];\n//\t$result = $conn->query($sql);\n//\tif($result == true)\n//\t\treturn true;\n//\treturn $conn->error;\n//\techo(\"groupId: $groupId <br>targetId: $targetId <br>action: $action <br>attackSuccess: $attackSuccess <br>itemDestroyed: $itemDestroyed <br>kill: $kill <br>\");\n}", "title": "" }, { "docid": "6c17c8469dceeef0df383734a30ac988", "score": "0.50609154", "text": "function __construct($logger);", "title": "" }, { "docid": "bd4ac1fc5bbb42a532215bed07cfbc42", "score": "0.50555605", "text": "private static function log($message){\n\t}", "title": "" }, { "docid": "f6b027e36aa6416dabc6aaa2c5ae1c81", "score": "0.50549585", "text": "function logging($type = 'message', $message = null)\n{\n $log = clientip() . ' ' . clientip(true) . ' [' . localdate('Y-m-d H:i:s') . '] ' . $_SERVER['REQUEST_URI'];\n\n if ($type === 'get') {\n if ($fp = fopen(LOGGING_PATH . 'get/' . localdate('Ymd') . '.log', 'a')) {\n fwrite($fp, $log . \"\\n\");\n fclose($fp);\n }\n } elseif ($type === 'post' || $type === 'files') {\n $dir = LOGGING_PATH . $type . '/' . localdate('Ymd') . '/';\n\n if (!is_dir($dir)) {\n if (mkdir($dir, 0707)) {\n chmod($dir, 0707);\n }\n }\n\n if ($type === 'post') {\n $data = $_POST;\n } elseif ($type === 'files') {\n $data = $_FILES;\n }\n\n if ($fp = fopen($dir . localdate('His') . '.log', 'a')) {\n fwrite($fp, $log . \"\\n\" . print_r($data, true) . \"\\n\");\n fclose($fp);\n }\n } else {\n $message = regexp_replace(\"\\r\", '\\r', $message);\n $message = regexp_replace(\"\\n\", '\\n', $message);\n\n if ($message === null) {\n $message = '-';\n }\n\n if ($fp = fopen(LOGGING_PATH . 'message/' . localdate('Ymd') . '.log', 'a')) {\n fwrite($fp, $log . ' ' . $message . \"\\n\");\n fclose($fp);\n }\n }\n\n return;\n}", "title": "" }, { "docid": "5f66cf1ef496b35800a015e708a9f9ef", "score": "0.5048948", "text": "function console_log($nom,$phrase,$detail,$compa,$camp)\n{\n\t/* select_table(2);\n\trequest(\"INSERT\n\tINTO logs(`date`,\n\t`perso`,\n\t`console`,\n\t`action`, \n\t`compagnie`,\n\t`camp`,\n\t`post`)\n\tVALUES('$time',\n\t'$_SESSION[com_perso]',\n\t'$nom',\n\t'\".addslashes($phrase).\"',\n\t'$compa',\n\t'$camp',\n\t'\".start_htmlize($_POST,'$_POST','post2bdd').\"')\");\n\tselect_table(0);*/\n}", "title": "" }, { "docid": "28ca21715f726a50a6c88654338abacf", "score": "0.5043488", "text": "static function create_function_log_data ($source, $command, $db_conf) {\n\t\t\tif (!isset($source['userId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'userId' ;\n\t\t\t}\n\n\t \t$query = \"INSERT INTO `USED_FUNCTION` (`DATE`, `USER_ID`, `COMMAND`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','\" . $source[$choosenID] . \"','\" . $command . \"')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "title": "" }, { "docid": "9b0c629ad6b6ad3631b842d50ed27cb1", "score": "0.5031817", "text": "function log($info = null, $data = null, $log = null) {\r\n\t\tif(!$info) return false;\r\n\t\tif(!$log) $log = 'workers' . DS . date(\"Ymd\") . '-' . Inflector::underscore($this->name);\r\n\r\n\t\tif(is_array($info)) {\r\n\t\t\tif($data) $log = $data;\r\n\t\t\t$info = str_replace(\"\\n\", \"\\n\\t\", substr(print_r($info, true), 0, -1));\r\n\t\t} elseif(is_array($data) || is_object($data)) {\r\n\t\t\t$info = $info . \"\\n\" . str_replace(\"\\n\", \"\\n\\t\", substr(print_r($data, true), 0, -1));\r\n\t\t}\r\n\r\n\t\treturn parent::log($info, $log);\r\n\t}", "title": "" }, { "docid": "ad4c23f277a2eae4152aa53998d0eaf4", "score": "0.5029047", "text": "function log();", "title": "" }, { "docid": "3943c1dbc29abec31e27a752b4c8d21f", "score": "0.5027588", "text": "public function log(): LogDomainInterface;", "title": "" }, { "docid": "f0099293a3ab2d76f0d231ce67956fd8", "score": "0.50272566", "text": "public function logCommand($command, $method, $data, $start, $response = '', $error = '', $exitStatus = 0)\n {\n if (!$this->logger or !$this->logger instanceof GitCommandLogger) {\n return;\n }\n $time = microtime(true) - $start;\n\n $this->logger->logCommand($command, $method, $data, $time, $response, $error, $exitStatus);\n }", "title": "" }, { "docid": "5e81769936bf684d91c36bcb5aab117c", "score": "0.50271094", "text": "abstract public function getLogs(): string;", "title": "" }, { "docid": "072797a4994367e53b36e1d86b9c7969", "score": "0.5020897", "text": "function remoteLogging($param1, $param2, $param3)\n{ \n logToFile(\"tstLog\", $param1 .$param2 . $param3);\n \n}", "title": "" }, { "docid": "a93baca01ad5354477d3c6b269d8fc3a", "score": "0.5017134", "text": "public function __construct()\n {\n\n openlog('MOBtexting', LOG_NDELAY | LOG_PID, LOG_LOCAL0);\n }", "title": "" }, { "docid": "7d6dde3a94e774b2916209cbf3ee7548", "score": "0.5016915", "text": "public static function logBlast() {\n\t\t$log = Description::multipleSeparateDescriptions(func_get_args());\n\t\tself::log($log);\n\t\tself::display($log);\n\t\treturn $log;\n\t}", "title": "" }, { "docid": "991d4b8c12af1b43aea88b84194fd6e1", "score": "0.50167274", "text": "function _logger($type,$result,$message) {\n\t$timestamp = date('d/M/Y:H:i:s O');\n\t$ip_address = $_SERVER['REMOTE_ADDR'];\n\t$logfile = \"journeylog.log\";\n\t$fh = fopen($logfile, 'a');\n\tfwrite($fh, \"[\".$timestamp.\"] \".$ip_address.\" -- \".$type.\" -- \".$result.\" -- \".$message.\"\\n\");\n\tfclose($fh);\n}", "title": "" }, { "docid": "24597796e3ff0bbc41520a9ddfcf3183", "score": "0.5014164", "text": "public function logFile();", "title": "" }, { "docid": "8affc47306f460ff2476e8f3c7b7b7c8", "score": "0.50077486", "text": "public function addRawLog($type = null, $level = null, $short = '', $long = '', $info = null, $taskId = null, $parentId = null, $user = null)\r\n { \r\n \r\n if (!is_null($this->loggedRequest)){\r\n if ($level === self::LEVEL_WARNING) {\r\n $this->loggedRequest['info']['request_warning'] = true; \r\n }\r\n if ($level === self::LEVEL_ERROR) {\r\n $this->loggedRequest['info']['request_error'] = true; \r\n } \r\n // Aggiungo un contatore dei tipi di log agganciati alla request\r\n if (array_key_exists($level, $this->loggedRequest['info']['request']['typecount'])) {\r\n $this->loggedRequest['info']['request']['typecount'][$level] += 1;\r\n } else {\r\n $this->loggedRequest['info']['request']['typecount'][$level] = 1; \r\n }\r\n }\r\n \r\n $log = $this->getRawLog($type, $level, $short, $long, $info, $taskId, $parentId, $user);\r\n $this->saveLog($log); \r\n }", "title": "" }, { "docid": "2577093202823e3a4a2dfed3088f8c89", "score": "0.50067085", "text": "static function create_log_data_ud ($source, $command, $criteria, $db_conf) {\n\t\t\tif (!isset($source['roomId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'userId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t}\n\n\t \t$query = \"INSERT INTO `URBAN_DICTIONARY` (`DATE`, `USER_ID` , `COMMAND`, `CRITERIA`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','\" . $source[$choosenID] . \"','\" . $command . \"','\" . $criteria . \"')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "title": "" }, { "docid": "946927ba1b6696cf9e670fa9b386e0e6", "score": "0.5006643", "text": "function log($str) {\n\t\t$prefix = '[' . date('d-m-Y H:i:s') . '] - ';\n\t\tfwrite( $this->logfile, $prefix . $str . \"\\n\" );\n\t}", "title": "" }, { "docid": "e76643dc0cfe608d1b81a64fb5dbc96b", "score": "0.49929792", "text": "protected function _construct()\n {\n $this->_init('inchoo_logger/logger', 'entity_id');\n }", "title": "" }, { "docid": "dfb62aabac39abc3d2e96fc551fa2679", "score": "0.49830437", "text": "public function log($data){\n }", "title": "" }, { "docid": "60a598fa89a656a8b7adc86dd38d8264", "score": "0.49822682", "text": "function __construct(){\r\n $this->log = new log();\r\n }", "title": "" }, { "docid": "e862efb5087ac068b9112cea5afa48b1", "score": "0.49803656", "text": "function logger($input)\n{\n // todo after config\n // todo after env\n}", "title": "" }, { "docid": "197ee0a9986a9fbdb9f2393b9c8a9f21", "score": "0.4975456", "text": "public function log($str) \n\t{\n\t}", "title": "" }, { "docid": "6cdf9d472d38514da12e43b6a95b959b", "score": "0.49747375", "text": "public function log($log){\n date_default_timezone_set('Brazil/East');\n $type = strtoupper($log[0]);\n $operation = strtoupper($log[1]);\n $module = strtoupper($log[2]);\n if(isset($log[3]))\n \t$id = $log[3];\n else\n \t$id = 'SYSTEM';\n $date = date('Y-m-d H:i:s');\n\n if(isset($_SESSION[$id])){\n \t$id = $_SESSION[$id];\n }\n\n \t$log = array(\n \t\t\t\t\t'user' => $campo,\n \t\t\t\t\t'date' => $data,\n \t\t\t\t\t'type' => $tipo,\n \t\t\t\t\t'operation' => $operacao,\n \t\t\t\t\t'module' => $modulo\n \t\t\t\t);\n \tif(!$this->modelo->inserir('log', $log)){\n \t\t$this->viewer->flash(_LOG_ERROR);\n \t\treturn false;\n \t}\n \treturn true;\n }", "title": "" }, { "docid": "1d802cf4a8e498cbcff852bf2072bbbc", "score": "0.49721256", "text": "function logToFile($arg1=\"\", $arg2=\"\",$arg3=\"\",$arg4=\"\",$arg5=\"\",$arg6=\"\"){\n\n\t$time = date(\"Y-m-d H:i:s\");\n\t\n\t$date = date(\"Y-m-d\");\n\t\n\t$str = \" $time \\t $arg1 \\t $arg2 \\t $arg3 \\t $arg4 \\t $arg5 \\t $arg6 \\t \\n\"; \n\t\n\terror_log(\"$str\\n\", 3, 'log/test_error_daily_'.$date.'.log'); \n\n}", "title": "" }, { "docid": "47ceae91a17f082a619fc29436145800", "score": "0.49686784", "text": "public function add($log_type='login',$log_form=0,$log_comment='',$log_avid=Null,$module=Null,$unique=False){\n \n if (cnf_CLI || $this->doNotLog) return;\n \n if (empty($module)) $module = b_reg::$current_module;\n if (!in_array($module,bMaster()->get_masterModules())){\n b_debug::xxx(\"Refuse module '$module'\");\n return;\n }\n\n if (!defined('myOrg_ID')) myOrg();\n if ($log_avid===Null) $log_avid = (is_object(bAuth::$av_authenticated)\n\t\t\t\t ? $log_avid = bAuth::$av_authenticated->ID\n\t\t\t\t : 0);\n\n foreach (array('log_ip' => @$_SERVER['REMOTE_ADDR'],\n\t\t 'log_avid' => $log_avid,\n\t\t 'log_form' => $log_form,\n\t\t 'log_time' => time(),\n\t\t 'log_type' => $log_type,\n\t\t 'log_api' => $module,\n\t\t 'log_org' => myOrg_ID,\n\t\t 'log_comment'=>$log_comment,\n\t\t ) as $k=>$v){\n if (b_posix::is_empty($v)) continue;\n $set[] = myPear_db()->quote($v,1,$k);\n if (in_array($k,array('log_type','log_form','log_comment'))) $where[] = myPear_db()->quote($v,1,$k);\n }\n \n // skip duplicated entries if required\n if ($unique){\n $q = myPear_db()->query(\"SELECT log_id FROM zzz_logs WHERE \".($m=b_fmt::joinX(' AND ',$where,\"'\")));\n if (myPear_db()->num_rows($q)){\n\tMSG::WARNING_T(\"SKIP LOG RECORD \\\"$m\\\"\");\n\treturn;\n }\n }\n\n // add the record \n myPear_db()->query(\"INSERT INTO zzz_logs SET \".join(',',$set));\n }", "title": "" }, { "docid": "23d29f947d8ec10b0892e2732efa2bc1", "score": "0.49583596", "text": "public function __toString() {\n\t\tif ($this->isIndex()) return $this->compileIndex();\n\t\tif ($this->isDropIndex()) return $this->compileDropIndex();\n\t\tif ($this->name === 'dropColumn') return $this->compileDropColumn();\n\n\t\treturn 'Unknown command: ' . $this->name . ' -> ' . json_encode($this->parameters);\n\t}", "title": "" }, { "docid": "305e4bdb79c94176cd66daf10e53ae19", "score": "0.4955537", "text": "public function log(SihnonFramework_LogEntry $entry);", "title": "" }, { "docid": "63c052cb2dfe955e35765bedf60ead98", "score": "0.4953129", "text": "function makeLogEntry($results, $extra = FALSE)\n{\n\t$logPrefixes = array(E_MESSAGE_SUCCESS => 'Pass - ', E_MESSAGE_ERROR => 'Fail - ', E_MESSAGE_INFO => 'Info - ', E_MESSAGE_DEBUG => 'Debug - ');\n\t$res = array();\n\tforeach ($results as $k => $ma)\n\t{\n\t\tforeach ($ma as $ts => $m)\n\t\t{\n\t\t\t$res[$ts] = $logPrefixes[$k].$m;\n\t\t}\n\t}\n\tif (is_array($extra))\n\t{\n\t\t$res = array_merge($res, $extra);\n\t}\n\tksort($res);\t\t// Sort in ascending order of timestamp\n\treturn $res;\n}", "title": "" }, { "docid": "7c8f8aab1c4451c925bd10fd1ccd82f1", "score": "0.49492204", "text": "function __construct($log_content)\n\t{\n\t\tparent::__construct($log_content);\n\t}", "title": "" }, { "docid": "570118eba17b0d8e98702ac1d406b4d8", "score": "0.49440047", "text": "function customLog(&$Model, $action, $id, $values = array()) {\t\t\n\t\t$logData['Log'] = $values;\n\t\t/** @todo clean up $logData */\n\t\tif (isset($this->Log->_schema['model_id']) && is_numeric($id)) {\n\t\t\t$logData['Log']['model_id'] = $id;\n\t\t}\n\t\t$title = NULL;\n\t\tif (isset($values['title'])) {\n \t\t$title = $values['title']; \n \t\tunset($logData['Log']['title']);\n\t\t}\n \t$logData['Log']['action'] = $action;\n \t$this->_saveLog($Model, $logData, $title);\n\t}", "title": "" }, { "docid": "92b28bc3480734b99bb9c82bb3fe52c7", "score": "0.4930044", "text": "function Log($type, $oid, $iid, $operation, $old, $new, $comment = '') {\n\t\tif ($old == $new) {return;}\n\t\t$uid = empty($this->modx->user->id) ? 1 : $this->modx->user->id;\n\t\t$res = $this->modx->newObject('ModLog');\n\t\t$res->set('uid', $uid);\n\t\t$res->set('type', $type);\n\t\t$res->set('oid', $oid);\n\t\t$res->set('iid', $iid);\n\t\t$res->set('operation', $operation);\n\t\t$res->set('old', $old);\n\t\t$res->set('new', $new);\n\t\t$res->set('ip', $_SERVER['REMOTE_ADDR']);\n\t\t$res->set('comment', $comment);\n\t\t$res->save();\n\t}", "title": "" }, { "docid": "51ca2d5f3f7af0a220d34a9e6ccde181", "score": "0.4926847", "text": "public function build() {\n parent::build();\n $this->add_step(new rollover_restore_clean_log_step('clean_log'));\n }", "title": "" }, { "docid": "057b0907ebd401c151700c577dbb97a6", "score": "0.4925263", "text": "function log_event($event_type, $msg)\n{\n\tglobal $config;\n\n\t$log_dir = $config[\"system\"][\"base_path\"];\n\t$log_dir .= $config[\"system\"][\"log_base\"];\n\tcreate_dir_if_needed($log_dir);\n\t$log_file = $log_dir . $config[\"system\"][\"logfile_name\"];\n\n\t$fp = fopen($log_file, 'a');\n\n\tif (!$fp)\n\t{\n\t\tdie(\"Couldn't open $log_file for writing\\n\");\n\t}\n\n\n\t$log_parts = array();\n\n\t$log_parts[] = $event_type;\n\t$log_parts[] = $_SERVER['REMOTE_USER'];\n\t$log_parts[] = date(\"Y-m-d H:i:s\");\n\t$log_parts[] = $_SERVER['REMOTE_ADDR'];\n\t$log_parts[] = $msg;\n\n\t$log_line = implode(\"\\t\",$log_parts) . \"\\n\";\n\n\tif (!fwrite($fp, $log_line))\n\t{\n\t\tdie(\"Couldn't write to $log_file\\n\");\n\t}\n\n\tfclose($fp);\n}", "title": "" }, { "docid": "46fdcc3c2df799ad1dbbe1ac2afc1546", "score": "0.4923927", "text": "function queryLog($sql){\n }", "title": "" }, { "docid": "38866b8a825ef241ea4ac10f98e85607", "score": "0.49171293", "text": "function auditlog(\n $datatype,\n $dataid,\n $action,\n $extrainfo = null,\n $force_username = null,\n $cid = null\n) {\n global $username, $DB;\n\n if (!empty($force_username)) {\n $user = $force_username;\n } else {\n $user = $username;\n }\n\n $DB->q('INSERT INTO auditlog\n (logtime, cid, user, datatype, dataid, action, extrainfo)\n VALUES(%s, %i, %s, %s, %s, %s, %s)',\n now(), $cid, $user, $datatype, $dataid, $action, $extrainfo);\n}", "title": "" }, { "docid": "8a24bac81b09ce44b8198a6efaf8afef", "score": "0.49128774", "text": "static public function createLog(EntityManager $em, LogModel $log) {\n \n }", "title": "" }, { "docid": "098e7beaa2505364e0e75ac901cd60e1", "score": "0.4908302", "text": "function _log($mess = '')\n{\n $file_name = './log/clients.log';\n if(!file_exists(dirname($file_name)))\n mkdir(dirname($file_name), 0777);\n\n $f = fopen($file_name, \"ab\");\n fwrite($f, \"==============================================\\n\");\n fwrite($f, \"[\" . date(\"m/d/Y H:i:s\") . \"] \".$mess.\"\\n\");\n fclose($f);\n}", "title": "" }, { "docid": "bdb0c782f2b5833a70704e7585baee51", "score": "0.49037185", "text": "public function __construct()\r\n\t{\r\n\t\t#/* */\t$this->logger = $this->getLogging()->getLogger(str_replace('\\\\', '.', __CLASS__));\r\n\t\t#/* */\t$this->logger->debug(\"\");\r\n\t}", "title": "" }, { "docid": "037cb3bfeae82b853425e152519fa4fa", "score": "0.49014255", "text": "protected function buildLoggingSection() {\n extract($this->getRenderLocals());\n // phpcs:disable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable -- PHP's extract() isn't understood by this sniffer..\n $build = $details($this->t('Logging'));\n $build['#open'] = $this->request->get('edit-logging', FALSE);\n $build['configure'] = $buttonlink(\n $this->t(\"Configure logging behavior\"), 'logging', '90%');\n // phpcs:enable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable -- PHP's extract() isn't understood by this sniffer..\n return $build;\n }", "title": "" }, { "docid": "db45df80434dba88c183525f81d4a308", "score": "0.48990384", "text": "function logger($string) {\n shell_exec(\"logger -t 'CA Backup/Restore' \".escapeshellarg($string));\n}", "title": "" }, { "docid": "25d03fd083ddbfebdade6b6c83dd05ea", "score": "0.4898792", "text": "public function addLog() {\n \t$request = $this->getRequestData();\n\n\t\t$message = $request->message;\n\t\t$levelId = $request->levelId;\n\t\t$class = $request->class;\n\t\t$function = $request->function;\n\t\t$args = $request->args;\n\n \t$result = $this->insertLog($message, $levelId, $class, $function, $args, TRUE);\n \n \treturn $result;\n }", "title": "" }, { "docid": "1bbba810a942890680138a1c5197a573", "score": "0.48901716", "text": "public function log($log){\n echo $log;\n }", "title": "" }, { "docid": "016fa506bbc4a9453027278908227fae", "score": "0.48785695", "text": "function Log_composite($name, $ident = '', $conf = array(),\n $level = PEAR_LOG_DEBUG)\n {\n $this->_ident = $ident;\n }", "title": "" }, { "docid": "51e9c9e674d151002ad480fc955fcac5", "score": "0.48752752", "text": "function __construct($type,$pathdb='./db/logs'){\n\t\t$this->type=$type;\n\t\t$this->pathdb=$pathdb;\n\t\t\n\t\t//Log information\n\t\t$dataora=time();\n\t\t$datareale=date('d/m/Y',$dataora);\n\t\t$datareale=\"$datareale \".(date(\"G:i\",$dataora));\n\t\t$ip=$_SERVER['REMOTE_ADDR'];\n\t\t$uagent=htmlspecialchars($_SERVER['HTTP_USER_AGENT']);\n\t\t//creating news entry for log\n\t\t$this->news=\"|*|logEntry:> $ip on date: $datareale useragent: $uagent --Errortype->\".$this->type;\n\t}", "title": "" }, { "docid": "198ca51b3be1f44e23d4ff7e7c0579d2", "score": "0.48667008", "text": "public function __construct()\n {\n $this->log = new Log($this->logFileName);\n }", "title": "" }, { "docid": "13a533c060c72b1814d9ab0f8ebca25f", "score": "0.4865471", "text": "public function getLogFormatted($project, array $log);", "title": "" }, { "docid": "f22f02d1fa66d7131a65dd56d232ed95", "score": "0.4860418", "text": "protected function newLog(): Test_Log\n {\n return new Test_Log($this);\n }", "title": "" }, { "docid": "0af1d557045c9d9e4a44f63c9455a7e7", "score": "0.48578906", "text": "public function log($type, $message, array $context = []);", "title": "" }, { "docid": "9bae1ee7203ea354407b1d6be445ec22", "score": "0.48497894", "text": "abstract function getLog( $path, $startRev=null, $endRev=null );", "title": "" }, { "docid": "2a79ffd940ae7e618ba30b64131e0f85", "score": "0.4849366", "text": "public function listMethodLogCommand() {\n\t\t$methodLogs = $this->methodLogRepository->findAll();\n\t\t$this->outputLine(\"\\nChiamate a metodi salvati nel database:\");\n\t\t$this->outputLine(\"---------------------------------------------------\");\n\t\tforeach ($methodLogs as $methodLog) {\n\t\t\t$this->outputLine(\"Data: \" . $methodLog->getDate()->format(\"d/m/Y H:i:s\"));\n\t\t\t$this->outputLine(\"Messaggio: \" . $methodLog->getMessage());\n\t\t\t$this->outputLine(\"---------------------------------------------------\");\n\t\t}\n\t\t$this->outputLine(\"\");\n\t}", "title": "" }, { "docid": "a09d52b77cb9eeceb5603ec1d9d50bac", "score": "0.48417476", "text": "public static function netEvent()\n {\n self::_log('log', func_get_args());\n }", "title": "" }, { "docid": "3731f8482f186fcd61667447fb19de04", "score": "0.48414442", "text": "function show_Log($courseid)\n{\n echo build_Log($courseid);\n}", "title": "" }, { "docid": "0daf93bc4653be27542810abb6ffcc4f", "score": "0.48400706", "text": "private function getRawLog($type = null, $level = null, $short = '', $long = '', $info = null, $taskId = null, $parentId = null, $user = null )\r\n {\r\n if (!$this->isLoggable($level)) return null;\r\n \r\n $newLog = array();\r\n $newLog['cookieId'] = $this->tgKernel->cookieId;\r\n $newLog['sessionId'] = $this->session->getId();\r\n $newLog['requestId'] = $this->tgKernel->requestId;\r\n $newLog['logLevel'] = $level;\r\n $newLog['logType'] = $type;\r\n $newLog['parentId'] = $parentId;\r\n $newLog['taskId'] = $taskId;\r\n $newLog['user'] = $user;\r\n $newLog['info'] = $info;\r\n\r\n return $newLog;\r\n\r\n }", "title": "" }, { "docid": "b65ce87ee03af34a4d3016965a6a1fa5", "score": "0.48292962", "text": "public function log($data)\n {\n }", "title": "" }, { "docid": "f1fdaf0d2d85577f6e71f97f5b5f7cf9", "score": "0.48290682", "text": "function __construct() {\n\t\t$this->logDir = array('default' => ROOT . DS . 'data' . DS . 'logs' . DS . 'errors.log',\n\t\t\t\t\t\t\t 'cmd' => ROOT . DS . 'data' . DS . 'logs' . DS . 'cmd.log');\n\t}", "title": "" }, { "docid": "1e491c1e28c1637965e4339c9661d714", "score": "0.48273265", "text": "function _toLog($func, $text, $requestedLogLevel=LOG_NOTICE){\n\t\tif ( !defined('LOG_LEVEL') || LOG_LEVEL == 0 || ($requestedLogLevel-1) >= LOG_LEVEL ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( $requestedLogLevel == LOG_ERR ) {\n\t\t\t$warn_banner = 'ERROR: ';\n\t\t} else if ( $requestedLogLevel == LOG_WARNING ) {\n\t\t\t$warn_banner = 'WARNING: ';\n\t\t} else {\n\t\t\t$warn_banner = '';\n\t\t}\n\t\t// Thanks laacz\n\t\t$_textToLog = date('r').\" [\".php_uname('n').\" \".getmypid().\"]\".\"[$func] \".$warn_banner . $text;\n\t\t$_logFP = fopen(WURFL_LOG_FILE, \"a+\");\n\t\tfputs($_logFP, $_textToLog.\"\\n\");\n\t\tfclose($_logFP);\n\t\treturn;\n\t}", "title": "" }, { "docid": "f5ae93cccf97f479540ab00e8014bc18", "score": "0.48120418", "text": "private function log() {\n if ($this->logging) {\n if ($this->log_timestamp) {\n $time = round(microtime(TRUE) - $this->log_timestamp, 2);\n $this->log_timestamp = NULL;\n }\n $sensitive = func_get_args();\n // For some reason PHP doesn't have array_flatten, and this is the\n // shortest alternative.\n $replace_values = array();\n foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator($sensitive)) as $value) {\n $replace_values['>' . $value . '<'] = '>' . substr(md5($value . self::$salt), 0, strlen($value)) . '<';\n }\n if ($time) {\n watchdog('openruth', 'Sending request (@seconds sec): @xml',array('@xml' => strtr($this->client->__getLastRequest(), $replace_values), '@seconds' => $time), WATCHDOG_DEBUG);\n\n } else {\n watchdog('openruth', 'Sending request: @xml',array('@xml' => strtr($this->client->__getLastRequest(), $replace_values)), WATCHDOG_DEBUG);\n }\n watchdog('openruth', 'Response: @xml',array('@xml' => strtr($this->client->__getLastResponse(), $replace_values)), WATCHDOG_DEBUG);\n }\n }", "title": "" }, { "docid": "37cd0002a3c7db4861e5e7ab7b8f85a0", "score": "0.48106503", "text": "function idu_drush_log($msg, $status) {\n $dryRun = drush_get_option('dryRun', FALSE);\n if ($dryRun) { print \"$status: $msg\\n\"; }\n drush_log( $msg, $status );\n}", "title": "" }, { "docid": "f816ba9e0fab4d8c1635ebcbeab5e104", "score": "0.48028755", "text": "public static function log($parameter = array()) {\n\t\tif(count($parameter['column']) != count($parameter['value'])) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\t$columnBuilder = array();\n\t\t\tforeach ($parameter['column'] as $key => $value) {\n\t\t\t\tarray_push($columnBuilder, \"?\");\n\t\t\t}\n\n\t\t\t$query = static::getConn()->prepare('INSERT INTO log_' . $parameter['type'] . '(' . implode(\",\", $parameter['column']) . ') VALUES (' . implode(\",\", $columnBuilder) . ')');\n\t\t\t$query->execute($parameter['value']);\n\t\t\tif($query->rowCount() > 0) {\n\t\t\t\treturn static::getConn()->lastInsertId();\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t\t$error_log = static::getConn()->prepare('INSERT INTO log_error (type, class, logged_at) VALUES (?, ?, NOW())');\n\t\t\t\t$error_log->execute(array(\n\t\t\t\t\t$parameter['type'],\n\t\t\t\t\t$parameter['class']\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "da130aa75a0b520d0910f0bbba50bf1d", "score": "0.47991925", "text": "public static function getCommandLogs(int $count=-1) {\n $command_facade = new CommandFacade();\n // Fetching all the posts objects that match the Log post type and which have the necessary prefix in the title\n $args = array(\n 'post_type' => LogPost::$POST_TYPE,\n 'posts_per_page' => $count,\n 'orderby' => 'date',\n 'order' => 'DESC',\n 's' => $command_facade->getCommandLogPrefix()\n );\n $query = new \\WP_Query($args);\n $posts = $query->get_posts();\n\n // Since the posts array only contains the raw WP_Post objects. They are being wrapped by the\n // LogPost class\n $log_posts = array();\n /** @var \\WP_Post $post */\n foreach ($posts as $post) {\n // Loading all the log data into the wrapper object and then adding it to the list of\n // objects to be returned\n $log_post = new LogPost($post->ID, $post->post_title);\n $log_post->load();\n $log_posts[] = $log_post;\n }\n\n return $log_posts;\n }", "title": "" }, { "docid": "de6a1e246de3cbcbddfe0073b1639258", "score": "0.4798239", "text": "public function __construct()\n {\n parent::__construct();\n Log::debug(env('comando_msg')); \n }", "title": "" } ]
e0233dcc597916a3a673b28532b1b672
Finds the IndikatorNilai model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
[ { "docid": "08c6ba5f1e1ce6811cd7c41066a140cd", "score": "0.6905206", "text": "protected function findModel($id) {\n if (($model = IndikatorNilai::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" } ]
[ { "docid": "560f49087bfe824723963d59ae06702f", "score": "0.6742936", "text": "protected function findRequestedModel()\n\t{\t\t$slug = $this->params('slug');\n\t\tif ($slug) {\n\t\t\t$model = $this->getQuantumMapper()->findBySlug($slug);\n\t\t\tif (!$model) {\n\t\t\t\t$this->flashMessenger()->addErrorMessage('Failed to find record with slug: ' . $this->params('slug'));\n\t\t\t}\n\t\t\treturn $model;\n\t\t}\n\t\t\n\t\t// Do we have a key?\n\t\t$key = $this->params('key');\n\t\tif ($key) {\n\t\t\t$model = $this->getQuantumMapper()->find($key);\n\t\t\tif (!$model) {\n\t\t\t\t$this->flashMessenger()->addErrorMessage('Failed to find record with key: ' . $this->params('key'));\n\t\t\t}\n\t\t\treturn $model;\n\t\t}\n\t\t\n\t\t$this->flashMessenger()->addErrorMessage('Missing identifier');\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b57432d1080f26885a24072d2e97003a", "score": "0.67000353", "text": "protected function findModel($id)\n {\n if (($model = KeahlianIdentitas::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "2a59b5122ce5f122f81bb5ec0f057b5d", "score": "0.6682713", "text": "protected function findModel($id)\n {\n if (($model = IndeksKapasitas::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "195fe755cf3b4f0d573efe79b523ec47", "score": "0.66437376", "text": "public function loadModel() {\n $model = Biographie::model()->findByPk(1);\n if ($model === null)\n throw new CHttpException(404, \"Le billet demandé n'existe pas\");\n return $model;\n }", "title": "" }, { "docid": "46f1717708b099ef3883cc5f7533820f", "score": "0.6627222", "text": "protected function findModel($id)\n {\n if (($model = Kedisiplinan::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "42ead173698e75a628e5065d79d78a0e", "score": "0.6585358", "text": "protected function findModel($idColeta)\n {\n if (($model = Coleta::findOne($idColeta)) !== null)\n {\n return $model;\n } else\n {\n throw new HttpException(404, 'The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "c34d46fb2b3dbd3cf0426c417e027845", "score": "0.65254235", "text": "protected function findModel($id)\n {\n if (($model = PatrimonioInventario::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "13747eda88b3d8b0f6b31f21b476e61d", "score": "0.6522797", "text": "protected function findModel($id)\n {\n if (($model = Insys::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "5c08ccadb9c548fef183d6cf52f3163a", "score": "0.6522118", "text": "protected function findModel($key)\n {\n if (($model = Easyfilemanager::findOne(['key' => $key])) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('easy_file_manager', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "91033fecc550db11836baf6a702d912b", "score": "0.6491409", "text": "protected function findModel($id)\n {\n if (($model = Keys::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('traits', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "1b7602b2031e1c8460605c896a91eb89", "score": "0.64735126", "text": "public function loadModel($id){\n\t\t$model=TbKetentuan::model()->findByPk($id);\n\t\tif($model===null) throw new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "1606f8e844cb59dd90909df1efca5f64", "score": "0.6449302", "text": "protected function findModel($id)\n {\n if (($model = AuthItem::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException( Yii::t('app','La página solicitada no existe').'.');\n }", "title": "" }, { "docid": "bd81d27e247dfd3257ecb535dc41aa87", "score": "0.64441586", "text": "protected function findModel($id) {\n if (($model = PdmBa4::findOne(['id_ba4' => $id])) !== null) {\n return $model;\n// } else {\n// throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "e010f3595eddff0051533921724319a9", "score": "0.64286697", "text": "protected function findModel($id)\n {\n if (($model = Vypusk81::findOne($id)) !== null) {\n return $model;\n }\n\n// throw new NotFoundHttpException('The requested page does not exist.');\n throw new NotFoundHttpException('Запрашиваемая страница не существует.');\n }", "title": "" }, { "docid": "63cf0ec14dc5caba727d6cf352dd714e", "score": "0.6427848", "text": "public function loadModel($id)\n\t{\n\t\t$model=Sindicato::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "1826b8d031f38612e48b198916783319", "score": "0.64217746", "text": "protected function findModel($id)\n {\n if (($model = lichtuan::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "074e46ba40234e4f5f4ce130e670fe35", "score": "0.6415479", "text": "protected function findModel($id)\n {\n \n // var_dump(StaEventos::findOne($id)); die();\n if (($model = StaEventos::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('sta.labels', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "793ec5c9401c9d5adf33148d871f5bc6", "score": "0.64069855", "text": "public function loadModel($id) {\n\t\t$model = Ingerek::model() -> findByPk($id);\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException(404, 'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "36c2331455bda9a8b3d95aab93e8d30e", "score": "0.6385411", "text": "protected function findModel($id)\n {\n \t$model = InputCompanies::find()->where(['guid' => $id])->one();\n \tif ($model !== null) {\n \t\treturn $model;\n \t} else {\n \t\tthrow new NotFoundHttpException('The requested page does not exist.');\n \t}\n /* if (($model = InputCompanies::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n } */\n }", "title": "" }, { "docid": "ee4624fe1c19020351b8c2b31ffec1f8", "score": "0.63761723", "text": "public function loadModel($id)\n\t{\n\t\t$model=DetailKegiatanPersonil::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "3e0b6355e64daad7aeacc114c694e3c1", "score": "0.6373642", "text": "protected function findModel($id)\n {\n if (($model = Npa::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('Запрашиваемая страница не существует.');\n }\n }", "title": "" }, { "docid": "5a8e9403c8ae5b7731769b1a7935b56b", "score": "0.6372148", "text": "public function loadModel($id) {\n $model = AppelOffre::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));\n return $model;\n }", "title": "" }, { "docid": "3e282f99c082bf6af4d47db36ca46547", "score": "0.6371419", "text": "protected function findModel($id)\n {\n if (($model = EbayAutoInventory::findOne($id)) !== null) {\n return $model;\n } else {\n // \\yii::info('The requested page does not exist '.$id,\"file\");\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "fdcad644d07e9db09c5e6c71c5c04896", "score": "0.6363859", "text": "protected function findModel($id) {\n $id = \\yii\\bootstrap\\Html::encode($id);\n if (($model = LoanBeneficiary::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "7bc5a474598b67cce64b974a30aba438", "score": "0.63604975", "text": "protected function findModel($id)\n {\n if (($model = Emprestimo::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "4aa90b56d3a262c65a3b3ef203b77964", "score": "0.63577616", "text": "protected function findModel($id)\n {\n if (($model = PdmBerkas::findOne(['id_perkara' => $id])) !== null) {\n return $model;\n } /*else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }*/\n }", "title": "" }, { "docid": "bcd769c22bc4dab4972041f62651180a", "score": "0.6353254", "text": "protected function findModel($id)\n {\n if (($model = Codeqr::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "31b0a01f021d83da9679dc09f64695c0", "score": "0.63504446", "text": "protected function findModel($id)\n {\n \t$model = SoSheetDetail::find()->alias('soDetail')\n \t->joinWith('order order')\n \t->joinWith('package package')\n \t->joinWith('product product')\n \t->where(['soDetail.id' => $id])->one();\n \t \n \tif($model !==null){\n// if (($model = SoSheetDetail::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }\n }", "title": "" }, { "docid": "0d008190c5f26ecbc53a13d68bf08b97", "score": "0.6347239", "text": "public static function find($id)\n\t{\n\n\t\ttry {\n\t\t\t$dbh = Database::getInstance();\n\n\t\t\t$sql = \"SELECT * FROM \" . self::getTableName() . \" WHERE \" . self::$primaryKey . \" = ?\";\n\n\t\t\t$result = $dbh->prepare($sql);\n\t\t\t$result->execute([$id]);\n\t\t\t$result->setFetchMode(PDO::FETCH_CLASS, get_called_class());\n\n\t\t\t$objects = $result->fetchAll();\n\n\t\t\tif($objects == null) {\n\t\t\t\tthrow new ModelNotFoundException('The Model is not found');\n\t\t\t}\n\n\t\t\tif(count($objects) == 1) {\n\t\t\t\treturn $objects[0];\n\t\t\t} else{\n\t\t\t\treturn $objects;\n\t\t\t}\n\t\t} catch(PDOException $e) {\n\t\t\treturn $e->getMessage();\n\t\t}\n\n\t}", "title": "" }, { "docid": "02ab7ad055ff7fcff5c75475920b143a", "score": "0.63449675", "text": "public static function find($primaryKey) {\n\t\t$o = (new static);\n\n\t\t$connection = DB::connection($o->getConnection());\n\t\t$cache = $connection->cache()->getModelInstance(get_class($o), $primaryKey);\n\n\t\tif (!is_null($cache)) {\n\t\t\treturn $cache;\n\t\t}\n\n\t\t$builder = $o->createSelectQuery($primaryKey)->limit(1);\n\t\t$builder->setModel(get_class($o));\n\t\t$row = $builder->first();\n\n\t\t// Cache the new model instance\n\t\tif (!is_null($row)) {\n\t\t\t$connection->cache()->saveModelInstance($row);\n\t\t}\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "beb195ce2b1363711239e3aa8bd92ea1", "score": "0.63417816", "text": "protected function findModel($id)\r\n {\r\n if (($model = Pegawai::findOne($id)) !== null) {\r\n return $model;\r\n } else {\r\n throw new NotFoundHttpException('The requested page does not exist.');\r\n }\r\n }", "title": "" }, { "docid": "38cfe8f58d49111b6fd574328b566408", "score": "0.63375115", "text": "protected function findModel($id) {\n if (($model = LWas1::findOne(['id_l_was_1'=>$id,'no_register' => $_SESSION['was_register'],'id_tingkat'=>$_SESSION['kode_tk'],'id_kejati'=>$_SESSION['kode_kejati'],'id_kejari'=>$_SESSION['kode_kejari'],'id_cabjari'=>$_SESSION['kode_cabjari'],'id_wilayah'=>$_SESSION['was_id_wilayah'],'id_level1'=>$_SESSION['was_id_level1'],'id_level2'=>$_SESSION['was_id_level2'],'id_level3'=>$_SESSION['was_id_level3'],'id_level4'=>$_SESSION['was_id_level4']])) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "ea6d1e237f2377f150d25ddc669a7aca", "score": "0.6336221", "text": "protected function findModel($id)\n {\n if (($model = PenyerapanUrusan::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "7f56348837c5724f0972963eb84e49a4", "score": "0.6333561", "text": "protected function findModel($id)\n {\n if (($model = Label::findOne($id)) !== null) {\n return $model;\n }\n\n throw new HttpException(200,Yii::t('base',40001));\n }", "title": "" }, { "docid": "aaac9e1e0200c7fb64e467ea234627c2", "score": "0.63248193", "text": "protected function findModel($id)\n {\n\n if (($model = Spr_globam::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "6a71ec97b8871346bd60ca8b04bdafa1", "score": "0.6319703", "text": "protected function findModel($id)\n {\n if (($model = DetileKepengurusan::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "8792a2244936bd1bb67eee1db9df4568", "score": "0.63192433", "text": "protected function findModel($id) {\n if (($model = PdmP22::findOne(['id_p22' => $id])) !== null) {\n return $model;\n } /* else {\n throw new NotFoundHttpException('The requested page does not exist.');\n } */\n }", "title": "" }, { "docid": "ed39e4c26f20f49332294d3dd1aa3707", "score": "0.63181734", "text": "public function loadModel($id)\n\t{\n\t\t$model=Intention::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "795f02ad75b08656074f25ce96dc4d60", "score": "0.6314088", "text": "protected function findModel($id)\n {\n if (($model = AktaPpatPihak::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "ade61b82db698683ffdeadaea765dc07", "score": "0.6298491", "text": "public function loadModel($id)\n\t{\n\t\t$model=TermekArak::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "752f9a25ce3a96d0b33a9d5afc7efd8e", "score": "0.62976736", "text": "public function loadModel($id)\n\t{\n\t\t$model=Inventario::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "09281b5728ddb83385dfda0af641a89d", "score": "0.6297592", "text": "public function loadModel($id) {\n $model = Client::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, Yii::t('texts', 'FLASH_ERROR_404_THE_REQUESTED_PAGE_DOES_NOT_EXIST'));\n return $model;\n }", "title": "" }, { "docid": "9913aa56d6bc92900bb98b80cd89212e", "score": "0.62799084", "text": "protected function findModel($id)\n {\n if (($model = Platform::findOne($id)) !== null) {\n return $model;\n }else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "a05089cf49c593a6f87215c445f79cbe", "score": "0.6277252", "text": "protected function findModel($id)\n {\n if (($model = TrLaporanKegiatan::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "464980d5491cc60ad429fd6987267c1e", "score": "0.6277185", "text": "public function loadModel($id)\n\t{\n\t\t$model=DsAnagrafica::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "9c670ad1e4295ec0ecad748cbac197e8", "score": "0.62741613", "text": "protected function findModel($id)\n {\n if (($model = Mahasiswa::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "9c670ad1e4295ec0ecad748cbac197e8", "score": "0.62741613", "text": "protected function findModel($id)\n {\n if (($model = Mahasiswa::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "6c585e88155a546702c455ea1103b101", "score": "0.62688273", "text": "public function loadModel($id)\n\t{\n\t\t$model=Centropractica::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "882bb931b19e641e559fe17030ac9179", "score": "0.6268768", "text": "public function loadModel($id)\n\t{\n\t\t$model=Perbaikan::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "f9d382c5b7f897f95dafddcd54354d4e", "score": "0.6267281", "text": "protected function findModel($id)\n {\n if (($model = Scan::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "755d7c0c8e71ed8f0c90aafa76ef0324", "score": "0.6264254", "text": "public function loadModel($id)\n\t{\n\t\t$model=AutoRipper::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "faf68896922b9ead505413863d9d7f40", "score": "0.6264073", "text": "protected function findModel($id)\n {\n if (($model = ArticuloComentario::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "64b899a4baeebea6ed705125c41343b9", "score": "0.6262136", "text": "protected function findModel($id)\n {\n if (($model = Buku::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "4843afb63a137819a211ef0dfbfa08c1", "score": "0.62589926", "text": "public function loadModel($id)\n\t{\n\t\t$model=KPKenaikanpangkatT::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "8b6c894452c9e55ac876894b6357446e", "score": "0.62565786", "text": "protected function findModel($id)\n {\n if (($model = Keasramaan::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "149ba69c9eb7ac0fa8c4457fd322adbe", "score": "0.6251238", "text": "public function loadModel($id)\n\t{\n\t\t$model=UpsInfo::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "5e1ce9c7e9ea31537f4fb264352ab5be", "score": "0.62488586", "text": "protected function findModel($id)\n {\n if (($model = Supir::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "95c54183693921de4d99bd78105f0827", "score": "0.62467986", "text": "protected function findModel($id)\n\t{\n\t\tif (($model = Offer::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}", "title": "" }, { "docid": "d846b2be5f093d23966b974e05be6fce", "score": "0.6242055", "text": "public function loadModel($id)\n\t{\n\t\t$model=PosInvoices::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b81e6543acdb406bf9096d9bf6b7c156", "score": "0.62404025", "text": "protected function findModel($id)\n {\n if (($model = Integral::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "8009ac54996f20d9c67397bb9357da20", "score": "0.62398505", "text": "protected function findModel($id)\n {\n if (($model = Siswa::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "777ec9544bff610f4792eb5dd268d133", "score": "0.62379766", "text": "protected function findModel($id) {\n if (($model = tbqr2::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "f0ea70c5ed28ded9c31070ef199d1506", "score": "0.62359667", "text": "protected function findModel($id)\n {\n if (($model = Bp24h::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "0d0b1d3553b41ea876114992abfa93e9", "score": "0.623299", "text": "public function find($id)\n {\n if (!$model = $this->model->find($id)) {\n return abort(404);\n }\n return $model;\n }", "title": "" }, { "docid": "70e954587a94af6e9861bb19ae31791c", "score": "0.6231231", "text": "public function loadModel($id) {\n $model = Qir::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "25dc851df34eb31dc89c89b77344bb9c", "score": "0.62310266", "text": "public function loadModel($id)\n\t{\n\t\t$model=Sie::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "78f024f7fd177792374dbf66218fef9a", "score": "0.6230473", "text": "protected function findModel($id)\n {\n if (($model = Aluno::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "456713d2871709d8bb2e3dc326f58ece", "score": "0.62301564", "text": "protected function findModel($id)\n {\n if (($model = HeaderPembelian::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "cc72f5caa3fd179e3ae33aa10952930f", "score": "0.6227393", "text": "public function loadModel($id)\n\t{\n\t\t$modelName = $this->uniqueid;\n\t\t$model = CActiveRecord::model($modelName)->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7ecfc3e96d496247b0273f766c9f0635", "score": "0.6225897", "text": "protected function findModel($id) {\n\t\tif (($model = Structure::findOne($id)) !== NULL) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "title": "" }, { "docid": "25b8a1df56a435630cd07bd98092f5ee", "score": "0.6224933", "text": "protected function findModel($id)\n {\n if (($model = Perjalanan::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "9a6f6ff2da7fa39a0c0f8b308c47df44", "score": "0.6222287", "text": "public function loadModel($id)\n\t{\n\t\t$model=Invitations::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "ecc006201087fe34ef1740fde128d82a", "score": "0.6220526", "text": "protected function findModel($id)\n {\n if (($model = Assinatura::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "fecae88d5174885844d047d12f5c19f1", "score": "0.6219882", "text": "public function loadModel($id)\n\t{\n\t\t$model=Penempatan::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7a6f6c1260344fea26694f48299c7ee9", "score": "0.6217739", "text": "public function loadModel($id)\n\t{\n\t\t$model=Auto::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'Страница не найдена.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b2ccf2c5e43b36bfa50d0a29d556cc2b", "score": "0.6216303", "text": "protected function findModel($id): Concept {\n\t\t# $id = \\Rhumsaa\\Uuid\\Uuid::fromString($id)->getBytes(); //needed for UUIDs\n if (($model = Concept::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "0c92aba31da7c572e76c096a764500e6", "score": "0.6215491", "text": "protected function findModel($id)\n {\n //$userInfoId = UserInfo::find()->where(['user_id' => Yii::$app->user->identity->getId()])->one()->primaryKey;\n $userInfoId = Yii::$app->user->identity->userInfo->primaryKey;\n $model = Company::find()\n ->joinWith(['userInfoCompanies', 'legalAddressLocation', 'cEO'])\n ->andFilterWhere(['user_info_company.user_info_id' => $userInfoId, 'company.id' => $id])\n ->one();\n\n if ($model !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('app', 'Запрашиваемая страница не найдена.'));\n }\n }", "title": "" }, { "docid": "f1b3deeb7b737c17426f3242c7de258c", "score": "0.6213826", "text": "public function loadModel($id)\n\t{\n\t\t$model=Obra::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "695d16dfdecb4bd12970649339c7cb2f", "score": "0.6213782", "text": "protected function findModel($id)\n {\n if (($model = ImportFunctions::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "7491cf8f88f6440873547b0004528eef", "score": "0.62115467", "text": "protected function findModel($id)\n\t{\n\t\tif (($model = BannerItem::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "title": "" }, { "docid": "f2479fa7ce9da3186f696853ec5f33ef", "score": "0.6206985", "text": "protected function findModel($data, $godzina)\r\n {\r\n if (($model = Wizyty::findOne([\r\n 'data' => $data,\r\n 'godzina' => $godzina\r\n ])) !== null) {\r\n return $model;\r\n }\r\n \r\n throw new NotFoundHttpException(Yii::t('app', 'Ta strona nie istnieje.'));\r\n }", "title": "" }, { "docid": "e50e58695b3e538025df4d1640695817", "score": "0.62012357", "text": "static public function find($primaryKey) {\n return static::table()\n ->where(array(static::primaryKeyName() => $primaryKey))\n ->first();\n }", "title": "" }, { "docid": "086a5596608086e62a780acc300babe9", "score": "0.6199691", "text": "protected function findModel($id)\n {\n if (($model = Penceramah::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "b5a4abe5ecfc0907f384bd193b12560b", "score": "0.6199183", "text": "protected\n\tfunction findModel($id)\n\t{\n\t\tif (($model = Sayygo::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "title": "" }, { "docid": "690dd2b9591e426dbaa1173dc75ae515", "score": "0.6196459", "text": "protected function findModel($id)\n {\n if (($model = Noticia::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "765efb0ee4c1fe655339ad8cb445baf4", "score": "0.6191706", "text": "public function loadModel($id){\n\t\t$model = TbAbsensi::model()->findByPk($id);\n\t\tif($model===null) throw new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "514751eb1e986aac76ef32f722248a64", "score": "0.6189255", "text": "public function loadModel($id)\n{\n$model=JugadorRanking::model()->findByPk($id);\nif($model===null)\nthrow new CHttpException(404,'The requested page does not exist.');\nreturn $model;\n}", "title": "" }, { "docid": "e979675385504ac017ce1022e6ea9e51", "score": "0.618871", "text": "protected function findModel( $id )\n\t{\n\t\tif (($model = TabModulosSearch::findOne( $id )) !== null){\n\t\t\treturn $model;\n\t\t} else{\n\t\t\tthrow new NotFoundHttpException( 'The requested page does not exist.' );\n\t\t}\n\n\t}", "title": "" }, { "docid": "4a89a7983cc66775d108a78639688b0e", "score": "0.6186256", "text": "protected function findModel($id)\n {\n if (($model = MahitajiWilaya::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "14b16e10ae2b452107ac10caa74c1ccd", "score": "0.6185439", "text": "protected function findModel($id) {\n if (($model = PdmP29::findOne(['id_p29' => $id])) !== null) {\n return $model;\n// } else {\n// throw new NotFoundHttpException('The requested page does not exist.');\n }else{\n $this->redirect(['index']);\n }\n }", "title": "" }, { "docid": "7e33db363b6d72d201d04ce2110a8834", "score": "0.6184357", "text": "protected function findModel($id)\n {\n if (($model = Maquina::findOne($id)) !== null) {\n return $model;\n }\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "9399721a9848d9afc972eaa475b2cb28", "score": "0.6183997", "text": "protected function findModel($id)\n {\n if (($model = Bila::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "e424a8fe95216d4cc65b9d86e6f14b59", "score": "0.618313", "text": "protected function findModel($id)\n {\n if (($model = Aplicaciones::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "78b08c758a24d0d9ef921bb4ddcc8a1a", "score": "0.6182966", "text": "protected function findModel($id)\n {\n if (($model = Persetujuan::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "7b57548d1724b73a028bd48e22f109ce", "score": "0.6176449", "text": "protected function findModel($id)\n {\n if (($model = AccountCode::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "1419c2c6809d376d95d3e3b2563babd7", "score": "0.6175307", "text": "public function loadModel($id)\n\t{\n\t\t$model= TblInformation::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "0d358841a5782e57dc5e2053002d7805", "score": "0.617412", "text": "public function loadModel($id)\r\n\t{\r\n\t\t$model=Matkul::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "title": "" }, { "docid": "36572519a7fcd9f0be224607e43c8983", "score": "0.61719525", "text": "public function loadModel($id)\n\t{\t\n\t\t$criteria=new CDbCriteria;\n\t\t//$criteria->with = array('projetos_atuante','vinculo_institucional');\n\t\t//$criteria->together = true;\n\t\t\n\t\t$model=Pessoa::model()->findByPk((int)$id, $criteria);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "64ac211dba855ffd626f7c62efa45d63", "score": "0.6171632", "text": "protected function findModel($id) {\n if (($model = HomeDataBanner::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "30a0d2dea0cee232215cc3fdf554b2e6", "score": "0.6170286", "text": "protected function findModel($id,$loadEnCode = false)\n {\n if (($model = FwCompany::findOne($id,false,true,false,$loadEnCode)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('common','data_not_exist'));\n }\n }", "title": "" } ]
70da8b7c4c627e54acb1bb7396f14b56
Encode array from latin1 to utf8 recursively
[ { "docid": "1dbade1dec030903910d635e956c7357", "score": "0.6955755", "text": "public static function convert_from_latin1_to_utf8_recursively($dat)\n {\n if (is_string($dat)) {\n return utf8_encode($dat);\n } elseif (is_array($dat)) {\n $ret = [];\n foreach ($dat as $i => $d) $ret[ $i ] = self::convert_from_latin1_to_utf8_recursively($d);\n\n return $ret;\n } elseif (is_object($dat)) {\n foreach ($dat as $i => $d) $dat->$i = self::convert_from_latin1_to_utf8_recursively($d);\n\n return $dat;\n } else {\n return $dat;\n }\n }", "title": "" } ]
[ { "docid": "e1760811be34c76764251db6e816024a", "score": "0.79379874", "text": "private function encodeUtf8Array($array) {\n // Walk trough every entries\n\t\t\tforeach($array as $element) {\n\t\t\t\t// Check if it's an array and call recursively\n\t\t\t\tif(is_array($element)) {\n\t\t\t\t\t$this->encodeUtf8Array($element);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Otherwise, encode to utf8\n\t\t\t\t\t$element = utf8_encode($element);\n\t\t\t\t}\n\t\t\t}\n }", "title": "" }, { "docid": "16e6876a3e93910a0e0d6542d2cf594b", "score": "0.75724226", "text": "private static function superEncode($array)\n {\n if (is_array($array) && !empty($array)) {\n foreach ($array as $key => $value) {\n if (is_array($value)) {\n $array[$key] = self::superEncode($value);\n } else {\n $array[$key] = mb_convert_encoding($value, 'UTF-8', 'UTF-8');\n }\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "780d801883292379118fa475812160bb", "score": "0.7413582", "text": "function setArrayToUtf8($array)\n{\n array_walk_recursive($array, function (&$item, $key) {\n if (!mb_detect_encoding($item, 'utf-8', true)) {\n $item = utf8_encode($item);\n }\n });\n return $array;\n}", "title": "" }, { "docid": "ae3390fc63b96a5e103ffafeae4a314e", "score": "0.68170476", "text": "function utf8encode($data) {\n if (is_string($data))\n return utf8_encode($data);\n if (is_array($data)) {\n $encoded = array();\n foreach ($data as $k => $d)\n $encoded[$k] = utf8encode($d);\n return $encoded;\n }\n if (is_object($data)) {\n $encoded = new stdClass;\n foreach ($data as $k => $d)\n $encoded->{$k} = utf8encode($d);\n return $encoded;\n }\n return $data;\n}", "title": "" }, { "docid": "157a464777cf706a7c873e12c172cc26", "score": "0.676533", "text": "function utf8ize($d) {\r\n\tif (is_array($d)) {\r\n\t\tforeach ($d as $k => $v) {\r\n\t\t\t$d[$k] = utf8ize($v);\r\n\t\t}\r\n\t} else if (is_string ($d)) {\r\n\t\treturn utf8_encode($d);\r\n\t}\r\n\treturn $d;\r\n}", "title": "" }, { "docid": "a06ac6a14c946344f6bd955f6bbd5417", "score": "0.6733795", "text": "function utf8ize($d) {\n if (is_array($d)) {\n foreach ($d as $k => $v) {\n $d[$k] = utf8ize($v);\n }\n } else if (is_string ($d)) {\n return utf8_encode($d);\n }\n return $d;\n}", "title": "" }, { "docid": "71096b151d159e1ace80514e222934c1", "score": "0.6677567", "text": "function corrigeCharset(&$arr){\n\tarray_walk_recursive($arr, function(&$value, $key) {\n\t\tif (is_string($value)) {\n\t\t\t$value = iconv('utf-8','windows-1252', $value);\n\t\t}\n\t});\n}", "title": "" }, { "docid": "7011ccfaf1e49379df66428e50d0a049", "score": "0.6622664", "text": "function utf8ize($d) {\n\t if (is_array($d)) {\n\t foreach ($d as $k => $v) {\n\t $d[$k] = utf8ize($v);\n\t }\n\t } else if (is_string ($d)) {\n\t return utf8_encode($d);\n\t }\n\t return $d;\n\t}", "title": "" }, { "docid": "37b418cbde235bb66db9fad13f4a14e9", "score": "0.6602899", "text": "public static function arrayUtf8Encode(&$elem,$k=null){\n if(is_array($elem)){\n array_walk($elem,array('Fichero','arrayUtf8Encode'));\n return;\n }\n $elem=utf8_encode($elem);\n }", "title": "" }, { "docid": "f26771676b4416e94221a3e252f3521b", "score": "0.65674", "text": "function encode_utf8($str) {\n\tif ($str === null || $str === '') {\n\t\treturn $str;\n\t}\n\n\tif (is_array($str)) {\n\t\tforeach ($str as $strKey => $mixVal) {\n\t\t\t$str[$strKey] = encode_utf8($mixVal);\n\t\t}\n\t\treturn $str;\n\t} else {\n\t\tif (!mb_check_encoding($str, 'UTF-8')) {\n\t\t\treturn mb_convert_encoding($str, 'UTF-8');\n\t\t} else {\n\t\t\treturn $str;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "5fb4651debc7c945b0e3be67d288d2aa", "score": "0.6537895", "text": "function utf8ize($d) {\n\t\t\tif (is_array($d)) {\n\t\t\t\tforeach ($d as $k => $v) {\n\t\t\t\t\t$d[$k] = utf8ize($v);\n\t\t\t\t}\n\t\t\t} else if (is_string ($d)) {\n\t\t\t\treturn utf8_encode($d);\n\t\t\t}\n\t\t\treturn $d;\n\t\t}", "title": "" }, { "docid": "5fb4651debc7c945b0e3be67d288d2aa", "score": "0.6537895", "text": "function utf8ize($d) {\n\t\t\tif (is_array($d)) {\n\t\t\t\tforeach ($d as $k => $v) {\n\t\t\t\t\t$d[$k] = utf8ize($v);\n\t\t\t\t}\n\t\t\t} else if (is_string ($d)) {\n\t\t\t\treturn utf8_encode($d);\n\t\t\t}\n\t\t\treturn $d;\n\t\t}", "title": "" }, { "docid": "5fb4651debc7c945b0e3be67d288d2aa", "score": "0.6537895", "text": "function utf8ize($d) {\n\t\t\tif (is_array($d)) {\n\t\t\t\tforeach ($d as $k => $v) {\n\t\t\t\t\t$d[$k] = utf8ize($v);\n\t\t\t\t}\n\t\t\t} else if (is_string ($d)) {\n\t\t\t\treturn utf8_encode($d);\n\t\t\t}\n\t\t\treturn $d;\n\t\t}", "title": "" }, { "docid": "a250e478bafdd94c079647c162cdf04c", "score": "0.6494226", "text": "function utf8_string( $array )\n {\n return implode( array_map( 'utf8_chr' , $array ) );\n }", "title": "" }, { "docid": "31be88162b9ca2ac07161e1ba4e7a2ba", "score": "0.6440933", "text": "function json_array_encode($array)\n{\n return json_encode(array_map('utf8_encode', $array), JSON_FORCE_OBJECT);\n}", "title": "" }, { "docid": "c408409066713c89ea11fe2c1e42dfe4", "score": "0.63840675", "text": "function utf8ize( $mixed )\n {\n // checks if $mixed is an array\n if (is_array($mixed))\n {\n // loop over array\n foreach ($mixed as $key => $value)\n {\n // pass back value to this function\n $mixed[$key] = utf8ize($value);\n }\n }\n elseif (is_string($mixed))\n {\n // if $mixed is string, convert the value character encoding\n return mb_convert_encoding($mixed, \"UTF-8\", \"UTF-8\");\n }\n return $mixed;\n }", "title": "" }, { "docid": "9e97fffb8da8ce9464f2951f62c28459", "score": "0.63693243", "text": "function utf8ize($d) {\r\n \r\n if (is_array($d)) \r\n foreach ($d as $k => $v) \r\n $d[$k] = utf8ize($v);\r\n\r\n else if(is_object($d))\r\n foreach ($d as $k => $v) \r\n $d->$k = utf8ize($v);\r\n\r\n else \r\n return utf8_encode($d);\r\n\r\n return $d;\r\n}", "title": "" }, { "docid": "0e837946f1e673b5235c58801f4b167c", "score": "0.633336", "text": "public static function utf8_json_encode($arr, $options = 0, $depth = 512) {\n\t\t// NOTE(Jake): Might be able to get more speed out of this by making it just json_encode\n\t\t//\t\t\t and if it fails with JSON_ERROR_UTF8, then do the recursive walk\n\t\t$utf8_arr = $arr;\n\t\tarray_walk_recursive($utf8_arr, array(__CLASS__, '_utf8_json_encode_recursive'));\n\t\t$result = json_encode($utf8_arr, $options, $depth);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "13a6ad35d7735508f9efac8798c00071", "score": "0.63310117", "text": "function iconv_array($arr, $in, $out){\r\n\t \r\n\t//echo count($arr); \r\n\t// echo $in . \" --- \" . $out .\"<hr />\";\r\n\tforeach ($arr as $k=>$v){\r\n\t\tif (is_array($arr[$k])) {\r\n\t//\t\techo \"is array. \".$k.\"<br />\";\r\n\t\t\ticonv_array($arr[$k], $in, $out);\r\n\t\t}\r\n\t\telse {\r\n\t//\t\techo \"$in,\".\" $out,\".\" $arr[$k]\";\r\n\t\t\t$arr[$k] = iconv($in, $out, $arr[$k]);\r\n\t//\t\techo \" ----> \".$arr[$k].\"<br />\";\r\n\t\t}\t\r\n\t}\r\n\treturn $arr;\r\n}", "title": "" }, { "docid": "61739ee3592eba4b4643bd7e70c986d8", "score": "0.63309854", "text": "public function encode();", "title": "" }, { "docid": "44130dc2415f5edea0fd0b16a5a1803f", "score": "0.6284416", "text": "function js_thai_encode($data)\n\t{\n\t\tif (is_array($data))\n\t\t{\n\t\t\tforeach($data as $a => $b)\n\t\t\t{\n\t\t\t\tif (is_array($data[$a]))\n\t\t\t\t{\n\t\t\t\t\t$data[$a] = js_thai_encode($data[$a]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$a] = iconv(\"tis-620\",\"utf-8\",$b);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data =iconv(\"tis-620\",\"utf-8\",$data);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "dedad23d4c0005827f8f11582abc7e34", "score": "0.62775195", "text": "private function utf8_encode_deep(&$input) {\n\t\tif (is_string($input)) {\n\t\t\tif (mb_detect_encoding($input, 'UTF-8', true)) return;\n\t\t\t$input = utf8_encode($input);\n\t\t} else if (is_array($input)) {\n\t\t\tforeach ($input as &$value) {\n\t\t\t\t$this->utf8_encode_deep($value);\n\t\t\t}\n\n\t\t\tunset($value);\n\t\t} else if (is_object($input)) {\n\t\t\t$vars = array_keys(get_object_vars($input));\n\t\t\tforeach ($vars as $var) {\n\t\t\t\t$this->utf8_encode_deep($input->$var);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cd7c7ec14f402f5b73a5a2737cbd52f6", "score": "0.6251629", "text": "function convertToUTF8($input = '')\n {\n if (is_array($input)) {\n $return = array();\n foreach ($input as $key => $value) {\n $return[$key] = DataUtil::convertToUTF8($value);\n }\n return $return;\n } elseif (is_string($input)) {\n if (function_exists('mb_convert_encoding')) {\n return mb_convert_encoding($input, 'UTF-8', strtoupper(ZLanguage::getEncoding()));\n } else {\n return utf8_encode($input);\n }\n } else {\n return $input;\n }\n }", "title": "" }, { "docid": "b6c506e7894b7a9470c09d2b6f97fc56", "score": "0.62481856", "text": "function utf8_encode_deep(&$input)\n {\n if (is_string($input)) {\n $input = utf8_encode($input);\n } else if (is_array($input)) {\n foreach ($input as &$value) {\n $this->utf8_encode_deep($value);\n }\n\n unset($value);\n } else if (is_object($input)) {\n $vars = array_keys(get_object_vars($input));\n\n foreach ($vars as $var) {\n $this->utf8_encode_deep($input->$var);\n }\n }\n }", "title": "" }, { "docid": "653a24101056391aae1ad15fe180de65", "score": "0.622645", "text": "public static function utf8ToJson($inArray) {\r\n\r\n static $depth = 0;\r\n\r\n /* our return object */\r\n $newArray = array();\r\n /* safety recursion limit */\r\n $depth ++;\r\n if ($depth >= '30') {\r\n return false;\r\n }\r\n /* step through inArray */\r\n foreach ($inArray as $key => $val) {\r\n if (is_array($val)) {\r\n /* recurse on array elements */\r\n $newArray[$key] = utf8json(json_encode($val));\r\n } else if (!is_null($val) && is_object($val)) {\r\n $newArray[$key] = utf8_encode(json_encode($val->toArray()));\r\n } else {\r\n /* encode string values */\r\n $newArray[$key] = utf8_encode(json_encode($val));\r\n }\r\n }\r\n /* return utf8 encoded array */\r\n return $newArray;\r\n }", "title": "" }, { "docid": "acc35ddb6088def4cfecedef0a116333", "score": "0.6213899", "text": "public function unicodeToUtf8($array)\n {\n $str = '';\n foreach ($array as $a) {\n $str .= $this->utf8Chr($a);\n }\n\n return $str;\n }", "title": "" }, { "docid": "0e7a1fbc671763ea5ffe86b0f3a85988", "score": "0.61801744", "text": "public function utf8EncodeMix($input, $encode_keys = false)\n {\n if(is_array($input))\n {\n $result = array();\n foreach($input as $k => $v)\n {\n $key = ($encode_keys) ? utf8_encode($k) : $k;\n $result[$key] = $this->utf8EncodeMix($v, $encode_keys);\n }\n }\n else\n {\n $result = utf8_encode($input);\n }\n\n return $result;\n }", "title": "" }, { "docid": "69ea96920d4b29fe893fafb6c6545384", "score": "0.6157084", "text": "function encode_clean_JSON($input) {\n\t$array = $input;\n\t\n\tforeach($array as $key => $value) {\n\t\tif(is_array($value)) {\n\t\t\tforeach($value as $sub_key => $sub_value) {\n\t\t\t\t$sub_value = str_replace('\"', \"'\", $sub_value);\n\t\t\t\t$sub_value = iconv('Windows-1252', 'UTF-8', $sub_value);\n\t\t\t\t\n\t\t\t\t$value[$sub_key] = $sub_value;\n\t\t\t}\t\t\t\n\t\t} else {\n\t\t\t$value = str_replace('\"', \"'\", $value);\n\t\t\t$value = iconv('Windows-1252', 'UTF-8', $value);\n\t\t}\n\t\t\n\t\t$newArray[$key] = $value;\n\t}\n\t$JSONString = json_encode($newArray);\n\t$string = str_replace('\\r\\n', ' ', $JSONString);\n\t\t\n\treturn $string;\n}", "title": "" }, { "docid": "f23069de1f7a2e7947952898267d963a", "score": "0.61518204", "text": "private static function encode_array($array)\n {\n if (self::is_list($array)) {\n $return = 'l';\n foreach ($array as $value) {\n $return .= self::encode($value);\n }\n } else {\n ksort($array, SORT_STRING);\n $return = 'd';\n foreach ($array as $key => $value) {\n $return .= self::encode(strval($key)) . self::encode($value);\n }\n }\n\n return $return . 'e';\n }", "title": "" }, { "docid": "7193b9b8c668eda74f89e47ce36f3323", "score": "0.6109779", "text": "function var_utf8_encode($expression) {\r\n\tif (is_array($expression)) {\r\n\t\tforeach ($expression as $exprk => $exprv)\r\n\t\t\t$expression[$exprk] = var_utf8_encode($exprv);\r\n\t} else if (is_object($expression)) {\r\n\t\tforeach ($expression as $exprk => $exprv)\r\n\t\t\t$expression->$exprk = var_utf8_encode($exprv);\r\n\t} else if (is_string($expression)) {\r\n\t\tif (FALSE === mb_detect_encoding($expression, \"UTF-8\", TRUE))\r\n\t\t\t$expression = utf8_encode($expression);\r\n\t}\r\n\treturn $expression;\r\n}", "title": "" }, { "docid": "9f2718f50e5d605e783528d8c650deb5", "score": "0.6101784", "text": "abstract public function encode($data);", "title": "" }, { "docid": "d4c1fb8c435481e0693d83b388a36c8f", "score": "0.60664165", "text": "function utf8_code($objeto){\r\n\t//return utf8_encode($objeto);\r\n\treturn utf8_decode($objeto);\r\n}", "title": "" }, { "docid": "2adf2d2dde06ceef1ec297e620d06b35", "score": "0.6064065", "text": "function json_enc($array) {\n\treturn json_encode( array_map( \"f\", $array ) );\n}", "title": "" }, { "docid": "2d4dcb3b6ad98dccbaf289ab765f4975", "score": "0.6014593", "text": "function encode($input)\n{\n $encoderString=\"\";\n $current=\"\";\n $count=0;\n\n for($x=0;$x<strlen($input);$x++)\n {\n if ($current==\"\") \n {\n $current= $input[$x];\n $count= $count+1;\n }\n\n elseif ($input[$x]==$current)\n {\n $count=$count+1;\n }\n \n else\n {\n if($count==1)\n {\n $encoderString.=$current;\n }\n else\n {\n $encoderString.=$count.$current;\n }\n $current=$input[$x];\n $count=1;\n }\n\n if($x==strlen($input)-1)\n {\n if($count==1)\n {\n $encoderString.=$current;\n }\n else\n {\n $encoderString.=$count.$current;\n }\n }\n }\n\n return $encoderString;\n}", "title": "" }, { "docid": "3352c51c06ef6aaef853bf3c0cbf4606", "score": "0.6013598", "text": "function raw_json_encode($matches) {\n\t\treturn mb_convert_encoding(pack('H*',$matches[1]),'UTF-8','UTF-16');\n\t}", "title": "" }, { "docid": "d2364a9c5b20e6a2c23b41685648a4d7", "score": "0.59960276", "text": "public static function toUTF8Ary ($ary) {\n $new = array ();\n foreach ($ary as $key => $val) {\n $new[$key] = strings::toUTF8($val);\n }\n return $new; \n }", "title": "" }, { "docid": "3c53af375b8d9b309aa7936ea00bc294", "score": "0.59955966", "text": "function unicode_to_utf8($arr, $strict = false)\n {\n if (!is_array($arr)) return '';\n ob_start();\n\n foreach (array_keys($arr) as $k) {\n\n if (($arr[$k] >= 0) && ($arr[$k] <= 0x007f)) {\n # ASCII range (including control chars)\n\n echo chr($arr[$k]);\n\n } else if ($arr[$k] <= 0x07ff) {\n # 2 byte sequence\n\n echo chr(0xc0 | ($arr[$k] >> 6));\n echo chr(0x80 | ($arr[$k] & 0x003f));\n\n } else if ($arr[$k] == 0xFEFF) {\n # Byte order mark (skip)\n\n // nop -- zap the BOM\n\n } else if ($arr[$k] >= 0xD800 && $arr[$k] <= 0xDFFF) {\n # Test for illegal surrogates\n\n // found a surrogate\n if ($strict) {\n trigger_error(\n 'unicode_to_utf8: Illegal surrogate ' .\n 'at index: ' . $k . ', value: ' . $arr[$k],\n E_USER_WARNING\n );\n return false;\n }\n\n } else if ($arr[$k] <= 0xffff) {\n # 3 byte sequence\n\n echo chr(0xe0 | ($arr[$k] >> 12));\n echo chr(0x80 | (($arr[$k] >> 6) & 0x003f));\n echo chr(0x80 | ($arr[$k] & 0x003f));\n\n } else if ($arr[$k] <= 0x10ffff) {\n # 4 byte sequence\n\n echo chr(0xf0 | ($arr[$k] >> 18));\n echo chr(0x80 | (($arr[$k] >> 12) & 0x3f));\n echo chr(0x80 | (($arr[$k] >> 6) & 0x3f));\n echo chr(0x80 | ($arr[$k] & 0x3f));\n\n } elseif ($strict) {\n\n trigger_error(\n 'unicode_to_utf8: Codepoint out of Unicode range ' .\n 'at index: ' . $k . ', value: ' . $arr[$k],\n E_USER_WARNING\n );\n\n // out of range\n return false;\n }\n }\n\n $result = ob_get_contents();\n ob_end_clean();\n return $result;\n }", "title": "" }, { "docid": "f4d69c43a06e0039088c67879fffe249", "score": "0.59624964", "text": "function array_utf($array) {\n\treturn array_map( \"f\", $array );\n}", "title": "" }, { "docid": "f09740c39fa12797b1a76e706cd649d4", "score": "0.59384847", "text": "public static function utf8json($array = array())\n {\n return json_encode(Base_GeneralFunctions::utf8element($array));\n }", "title": "" }, { "docid": "4510adfb802de2fee018510f8d086c39", "score": "0.5921103", "text": "function fwrs_array_encode64_value($array,$parameter_no_encode=NULL,$deep_label=NULL)\r\n{\r\n\t$array_temp\t\t=\t$array;\r\n\t$flag_encode\t=\ttrue;\r\n\tforeach($array_temp as $label =>$value)\r\n\t{\r\n\t\t$flag_encode\t=\ttrue;\r\n\t\t\r\n\t\tif(is_array($value))\r\n\t\t{\r\n\t\t\t$array_temp[$label]\t=\tfwrs_array_encode64_value($value,$parameter_no_encode,$label);\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tif(is_array($parameter_no_encode))\r\n\t\t\t{\r\n\t\t\t\tif(in_array($deep_label ? $deep_label : $label,$parameter_no_encode)) $flag_encode=false;\r\n\t\t\t}\r\n\t\t\t\tif($flag_encode)\r\n\t\t\t\t\t$array_temp[$label]\t=\tbase64_encode($value);\r\n\t\t\t\telse\r\n\t\t\t\t\t$array_temp[$label]\t=\t$value;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}\r\n\treturn $array_temp;\r\n}", "title": "" }, { "docid": "5392286baa5607e8ec8a723904e9eaba", "score": "0.58873343", "text": "public static function utf8element($array = null)\n {\n $newArray = array();\n if (is_object($array)) {\n // Force objects to be recast as an array\n $array = (array) $array;\n } elseif (is_array($array)) {\n // It's an array already, we don't need to mangle it.\n } else {\n // Individual items should be recast to be the only item in an array\n $array = array($array);\n }\n foreach ($array as $key=>$val) {\n if (is_array($val) || is_object($val)) {\n $newArray[utf8_encode($key)] = static::utf8element($val);\n } elseif ($val === false) {\n $newArray[utf8_encode($key)] = 'false';\n } elseif ($val == null) {\n $newArray[utf8_encode($key)] = '';\n } else {\n $newArray[utf8_encode($key)] = utf8_encode($val);\n }\n }\n return $newArray;\n }", "title": "" }, { "docid": "b479ab74e5c7e1fb2fa0fd3cbd06d3c4", "score": "0.5844766", "text": "public function Encode()\n {\n return (string)$this->en_arr;\n }", "title": "" }, { "docid": "7906393418cefac99d43a3de777fb7a9", "score": "0.58429974", "text": "static private function unicodeToUtf8($arr)\n {\n $dest = '';\n foreach ($arr as $src) {\n if($src < 0) {\n return false;\n } else if ( $src <= 0x007f) {\n $dest .= chr($src);\n } else if ($src <= 0x07ff) {\n $dest .= chr(0xc0 | ($src >> 6));\n $dest .= chr(0x80 | ($src & 0x003f));\n } else if($src == 0xFEFF) {\n // nop -- zap the BOM\n } else if ($src >= 0xD800 && $src <= 0xDFFF) {\n // found a surrogate\n return false;\n } else if ($src <= 0xffff) {\n $dest .= chr(0xe0 | ($src >> 12));\n $dest .= chr(0x80 | (($src >> 6) & 0x003f));\n $dest .= chr(0x80 | ($src & 0x003f));\n } else if ($src <= 0x10ffff) {\n $dest .= chr(0xf0 | ($src >> 18));\n $dest .= chr(0x80 | (($src >> 12) & 0x3f));\n $dest .= chr(0x80 | (($src >> 6) & 0x3f));\n $dest .= chr(0x80 | ($src & 0x3f));\n } else {\n // out of range\n return false;\n }\n }\n return $dest;\n }", "title": "" }, { "docid": "1c190ce63555508825ab45deca8fa15e", "score": "0.58294016", "text": "public function getEncodedData($data) {\n\n /*Typecast in case an object is passed in*/\n $data = (array) $data; \n \n $encodedData = array();\n foreach ($data as $key => $value) {\n if (is_array($value) || is_object($value)) {\n foreach ($value as $v) {\n $encodedData[$key][] = urlencode($v);\n }\n }\n else {\n $encodedData[$key] = urlencode($value);\n }\n }\n return $encodedData;\n }", "title": "" }, { "docid": "2727e7f13a06da2916d44f644b9b1ceb", "score": "0.5819343", "text": "function pinta($objeto){\r\n\t//return utf8_encode($objeto);\r\n\treturn utf8_decode($objeto);\r\n\t//return $objeto;\r\n}", "title": "" }, { "docid": "35ac5f3ccd1bf979cd0f4c64f2b3307b", "score": "0.58115035", "text": "public function encode($toml_array)\n {\n if (!is_array($toml_array)) \n throw new Exception(\"Supplied input is not an array\");\n\n $str = \"\";\n \n foreach ($toml_array as $key => $val) {\n $str .= $this->process($key, $val);\n }\n\n return $str;\n }", "title": "" }, { "docid": "49e298ec3b266cef4bc8434181c81a0b", "score": "0.579154", "text": "public function encode($data);", "title": "" }, { "docid": "a4a6a369d270f0200c147d8fb44e0c21", "score": "0.5779389", "text": "protected static function encode($array, $prefix = null)\n {\n // @codeCoverageIgnoreStart\n if ( ! is_array($array)) return $array;\n // @codeCoverageIgnoreEnd\n\n $result = [];\n\n foreach ($array as $key => $value) {\n if (is_null($value)) continue;\n\n if ($prefix)\n $key = ($key !== null && (! is_int($key) || is_array($value)))\n ? \"{$prefix}[{$key}]\"\n : \"{$prefix}[]\";\n\n if ( ! is_array($value)) {\n $result[] = urlencode($key) . '=' . urlencode($value);\n }\n elseif ($enc = self::encode($value, $key)) {\n $result[] = $enc;\n }\n }\n\n return implode('&', $result);\n }", "title": "" }, { "docid": "b314b71872d0df9f708ea10a7d4622c9", "score": "0.57696223", "text": "function encode_language_string_utf8($matches)\n{\n\treturn dec_to_utf8(hexdec($matches[1]));\n}", "title": "" }, { "docid": "610d2e750f6fed6d8ae62fa62136b38c", "score": "0.5749029", "text": "public function encode(iterable $data): string;", "title": "" }, { "docid": "9978bc6c569fe68fa0ee6c938765e089", "score": "0.5745823", "text": "function jEncode( $arr ) {\n\t/*\n\tENT_COMPAT \n\t'&' (ampersand) becomes '&amp;' \n\t'<' (less than) becomes '&lt;' \n\t'>' (greater than) becomes '&gt;' \n\t'\"' (double quote) becomes '&quot;'\n\n\tENT_NOQUOTES:\n\t'\"\" (double quote) still \"\n\t\"'\" (single quote) still '\n\n\tENT_QUOTES:\n\t'\"' (double quote) becomes '&quot;'\n\t\"'\" (single quote) becomes '&#039;'\n\t*/\t\n\t\n\t// json_encode convert \" to \\\" ; ' is still ' ; \\ to \\\\; / to \\/ \n\treturn json_encode( $arr );\n}", "title": "" }, { "docid": "6bed96b4c7857a70c3329a3cfce3b03a", "score": "0.5732583", "text": "abstract public function encode($value);", "title": "" }, { "docid": "c899e877694c45cf8c2b89ec596b6ba7", "score": "0.5725515", "text": "function json_encode_utf8($input, $flags = 0)\n{\n $fails = implode('|', array_filter(array(\n '\\\\\\\\',\n $flags & JSON_HEX_TAG ? 'u003[CE]' : '',\n $flags & JSON_HEX_AMP ? 'u0026' : '',\n $flags & JSON_HEX_APOS ? 'u0027' : '',\n $flags & JSON_HEX_QUOT ? 'u0022' : '',\n )));\n $pattern = \"/\\\\\\\\(?:(?:$fails)(*SKIP)(*FAIL)|u([0-9a-fA-F]{4}))/\";\n $callback = function ($m) {\n return html_entity_decode(\"&#x$m[1];\", ENT_QUOTES, 'UTF-8');\n };\n return preg_replace_callback($pattern, $callback, json_encode($input, $flags));\n}", "title": "" }, { "docid": "0d20339ae09cccf60c8ebefcd8d21902", "score": "0.57134455", "text": "private function __json_encode( $data ) \r\n\t{ \r\n\t if ( is_array($data) || is_object($data) ) \r\n\t\t{\r\n\t $islist = is_array($data) && ( empty($data) || array_keys($data) === range(0,count($data)-1) );\r\n\r\n\t if( $islist ) {\r\n\t $json = '[' . implode(',', array_map('__json_encode', $data) ) . ']';\r\n\t } else {\r\n\t $items = Array();\r\n\t foreach( $data as $key => $value ) {\r\n\t $items[] = $this->__json_encode(\"$key\") . ':' . $this->__json_encode($value);\r\n\t }\r\n\t $json = '{' . implode(',', $items) . '}';\r\n\t }\r\n\t } \r\n\t\telseif( is_string($data) ) \r\n\t\t{\r\n\t # Escape non-printable or Non-ASCII characters.\r\n\t # I also put the \\\\ character first, as suggested in comments on the 'addclashes' page.\r\n\t $string = '\"' . addcslashes($data, \"\\\\\\\"\\n\\r\\t/\" . chr(8) . chr(12)) . '\"';\r\n\t $json = '';\r\n\t $len = strlen($string);\r\n\t # Convert UTF-8 to Hexadecimal Codepoints.\r\n\t for( $i = 0; $i < $len; $i++ ) {\r\n\r\n\t $char = $string[$i];\r\n\t $c1 = ord($char);\r\n\r\n\t # Single byte;\r\n\t if( $c1 <128 ) {\r\n\t $json .= ($c1 > 31) ? $char : sprintf(\"\\\\u%04x\", $c1);\r\n\t continue;\r\n\t }\r\n\r\n\t # Double byte\r\n\t $c2 = ord($string[++$i]);\r\n\t if ( ($c1 & 32) === 0 ) {\r\n\t $json .= sprintf(\"\\\\u%04x\", ($c1 - 192) * 64 + $c2 - 128);\r\n\t continue;\r\n\t }\r\n\r\n\t # Triple\r\n\t $c3 = ord($string[++$i]);\r\n\t if( ($c1 & 16) === 0 ) {\r\n\t $json .= sprintf(\"\\\\u%04x\", (($c1 - 224) <<12) + (($c2 - 128) << 6) + ($c3 - 128));\r\n\t continue;\r\n\t }\r\n\r\n\t # Quadruple\r\n\t $c4 = ord($string[++$i]);\r\n\t if( ($c1 & 8 ) === 0 ) {\r\n\t $u = (($c1 & 15) << 2) + (($c2>>4) & 3) - 1;\r\n\r\n\t $w1 = (54<<10) + ($u<<6) + (($c2 & 15) << 2) + (($c3>>4) & 3);\r\n\t $w2 = (55<<10) + (($c3 & 15)<<6) + ($c4-128);\r\n\t $json .= sprintf(\"\\\\u%04x\\\\u%04x\", $w1, $w2);\r\n\t }\r\n\t }\r\n\t } else {\r\n\t # int, floats, bools, null\r\n\t $json = strtolower(var_export( $data, true ));\r\n\t }\r\n\t return $json;\r\n\t}", "title": "" }, { "docid": "af57143ef6da833aa7c6d754ad8dacd0", "score": "0.5697022", "text": "function corregirEncode($conn)\n{\n $apuestas = getAllBets($conn);\n foreach ($apuestas as $apuesta) {\n $descripcion = utf8_decode($apuesta['descripcion']);\n $consulta = \"UPDATE apuesta SET descripcion = '$descripcion' WHERE id = {$apuesta['id']}\";\n $resultado = mysqli_query($conn, $consulta);\n }\n}", "title": "" }, { "docid": "380836e2308e2c72da033d93b8e86315", "score": "0.56843716", "text": "protected function _urlEncode($array) {\n\t\tif($this->urlencode) {\n\t\t\tforeach($array as $key => $value) {\n\t\t\t\tif(is_string($value)) {\n\t\t\t\t\t// didn't use urlencode because it converts space to +, but from the url + does NOT convert to space\n\t\t\t\t\t$array[$key] = rawurlencode($value);\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(sprintf(__('This function does not handle multi dimentional arrays $key: %s $value: %s', true), $key, print_r($value, true)), E_USER_ERROR);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "bbe1d0edb999e837455f27d207ca2d9a", "score": "0.5683312", "text": "function utf8($string){\n\t\treturn utf8_encode($string);\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "87d081fc9e819ad436c642163dbaac50", "score": "0.56520873", "text": "function JEncode($arr){\r\n\t\tif (version_compare(PHP_VERSION,\"5.2\",\"<\"))\r\n\t\t{ \r\n\t\t\trequire_once(\"./JSON.php\"); //if php<5.2 need JSON class\r\n\t\t\t$json = new Services_JSON();//instantiate new json object\r\n\t\t\t$data=$json->encode($arr); //encode the data in json format\r\n\t\t} else {\r\n\t\t\t$data = json_encode($arr); //encode the data in json format\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "06309fb3e6441e26063bd3a12bea45aa", "score": "0.56465846", "text": "function unescapestring__recursive($var) {\n\tif(!is_array($var)) return stripslashes($var);\n\t// Reindexar la matriz sin barras diagonales, esta vez.\n\t$new_var = array();\n\t// Tira las barras de cada elemento.\n\tforeach($var as $k => $v) \n\t$new_var[stripslashes($k)] = $this->unescapestring__recursive($v);\n\t//\n\treturn $new_var;\n\t}", "title": "" }, { "docid": "552b7a1585238632a057c799ad045880", "score": "0.5633071", "text": "function encodeScrobblerArray($song_array) {\n if (function_exists('gzcompress')) {\n return gzcompress(serialize($song_array));\n } else {\n return serialize($song_array);\n }\n }", "title": "" }, { "docid": "db2b21ab9d111033bf7cb874fda3e87e", "score": "0.5626239", "text": "abstract public function encode($text);", "title": "" }, { "docid": "779ba0ffa4cbd7e254dfa93f9f48d379", "score": "0.5613485", "text": "function mixed_to_utf8($data) {\n $search = array('&nbsp;','&iexcl;','&cent;','&pound;','&curren;','&yen;','&brvbar;',\n '&sect;','&uml;','&copy;','&ordf;','&laquo;','&not','&shy;','&reg;',\n '&macr;','&deg;','&plusmn;','&sup2;','&sup3;','&acute;','&micro;',\n '&para;','&middot;','&cedil;','&sup1;','&ordm;','&raquo;','&frac14;',\n '&frac12;','&frac34;','&iquest;','&Agrave;','&Aacute;','&Acirc;',\n '&Atilde;','&Auml;','&Aring;','&AElig;','&Ccedil;','&Egrave','&Eacute;',\n '&Ecirc;','&Euml;','&Igrave;','&Iacute;','&Icirc;','&Iuml;','&ETH;',\n '&Ntilde;','&Ograve;','&Oacute;','&Ocirc;','&Otilde;','&Ouml;','&times;',\n '&Oslash;','&Ugrave;','&Uacute;','&Ucirc;','&Uuml;','&Yacute;','&THORN;',\n '&szlig;','&agrave;','&aacute;','&acirc;','&atilde;','&auml;','&aring;',\n '&aelig;','&ccedil;','&egrave;','&eacute;','&ecirc;','&euml;','&igrave;',\n '&iacute;','&icirc;','&iuml;','&eth;','&ntilde;','&ograve;','&oacute;',\n '&ocirc;','&otilde;','&ouml;','&divide;','&oslash;','&ugrave;','&uacute;',\n '&ucirc;','&uuml;','&yacute;','&thorn;','&yuml;');\n $replace = array('&#160;','&#161;','&#162;','&#163;','&#164;','&#165;','&#166;','&#167;',\n '&#168;','&#169;','&#170;','&#171;','&#172;','&#173;','&#174;','&#175;',\n '&#176;','&#177;','&#178;','&#179;','&#180;','&#181;','&#182;','&#183;',\n '&#184;','&#185;','&#186;','&#187;','&#188;','&#189;','&#190;','&#191;',\n '&#192;','&#193;','&#194;','&#195;','&#196;','&#197;','&#198;','&#199;',\n '&#200;','&#201;','&#202;','&#203;','&#204;','&#205;','&#206;','&#207;',\n '&#208;','&#209;','&#210;','&#211;','&#212;','&#213;','&#214;','&#215;',\n '&#216;','&#217;','&#218;','&#219;','&#220;','&#221;','&#222;','&#223;',\n '&#224;','&#225;','&#226;','&#227;','&#228;','&#229;','&#230;','&#231;',\n '&#232;','&#233;','&#234;','&#235;','&#236;','&#237;','&#238;','&#239;',\n '&#240;','&#241;','&#242;','&#243;','&#244;','&#245;','&#246;','&#247;',\n '&#248;','&#249;','&#250;','&#251;','&#252;','&#253;','&#254;','&#255;');\n return str_replace($search,$replace,$data);\n}", "title": "" }, { "docid": "90fe300e6e8119c64156e1a4270bc411", "score": "0.55947614", "text": "function camCod($txt) {\n\t//$txt = utf8_encode($txt);\n\treturn $txt;\n}", "title": "" }, { "docid": "ba87e815bb63f81596dbe6803e615a08", "score": "0.55914927", "text": "private function fromUTF16BEArray(array $s)\n {\n if (count($s) == 0)\n {\n return '()';\n }\n $result = '';\n foreach ($s as $char)\n {\n $result .= sprintf('%02X%02X', ord($char[0]), ord($char[1]));\n }\n return \"<\" . $result . '>';\n }", "title": "" }, { "docid": "1c0413a389085c63c4c7508de1374fa0", "score": "0.55896485", "text": "public function encode(array $value)\n {\n return $this->normalizer->replaceReservedCharacters($this->serializer->serialize($value));\n }", "title": "" }, { "docid": "83890a2f06446fa8104f08b7b7bf3d24", "score": "0.5563761", "text": "function serializeArray($array){\n\t\t$encodedArray = \"\";\n\t\t\n\t\tforeach($array as $row){\n\t\t\t$encodedArray .= \"|\";\n\t\t\t\n\t\t\tforeach($row as $col){\n\t\t\t\t$encodedArray .= \",\".$col;\n\t\t\t}\n\t\t}\n\n\t\treturn $encodedArray;\n\t}", "title": "" }, { "docid": "7127adc278e3050b4df2d9f1baf72943", "score": "0.555701", "text": "public function encode()\n {\n }", "title": "" }, { "docid": "15ecc6b9f3d0a83da702a522c266691f", "score": "0.5555839", "text": "public static function utf8xml($array = array(), $root = 'root')\n {\n return Base_GeneralFunctions::xml_encode(\n array(\n $root => Base_GeneralFunctions::utf8element($array)\n )\n );\n }", "title": "" }, { "docid": "0a1d6a03409342cbfd1821e2556d87e7", "score": "0.5554724", "text": "abstract public function encodeString($string, $charEncoding);", "title": "" }, { "docid": "61ab4e3daa39b8c5ca8be6e08558e355", "score": "0.5539464", "text": "function custom_json_encode($data, $prettyprint=0){\r\n\t$data = Zend_Json::encode($data,false);\r\n\t$data = preg_replace_callback('/\\\\\\\\u([0-9a-f]{4})/i', create_function('$match', 'return mb_convert_encoding(pack(\"H*\", $match[1]), \"UTF-8\", \"UCS-2BE\");'), $data);\r\n\tif($prettyprint)\r\n\t\t$data = Zend_Json::prettyPrint($data);\r\n\treturn $data;\r\n}", "title": "" }, { "docid": "0f5f83f97cf3d40d4ba77753c72c8583", "score": "0.5525472", "text": "protected function encode($data)\n {\n if (mb_detect_encoding($data, 'UTF-8, ISO-8859-1') === 'UTF-8') {\n return $data;\n }\n \n return utf8_encode($data);\n }", "title": "" }, { "docid": "f5667415164fc3f4c71bd07130a5241d", "score": "0.5521201", "text": "function convertFromUTF8($input = '')\n {\n if (is_array($input)) {\n $return = array();\n foreach ($input as $key => $value) {\n $return[$key] = DataUtil::convertFromUTF8($value);\n }\n return $return;\n } elseif (is_string($input)) {\n if (function_exists('mb_convert_encoding')) {\n return mb_convert_encoding($input, strtoupper(ZLanguage::getEncoding()), 'UTF-8');\n } else {\n return utf8_decode($input);\n }\n } else {\n return $input;\n }\n }", "title": "" }, { "docid": "f4a7eea28b15bf9fe5d0db412df32175", "score": "0.55206543", "text": "function encode() {\n\t\t$conversations = array();\n\t\tforeach ($this->_conversationList as $conversation) {\t\t\n\t\t\t$conversations[] = $conversation->encode();\n\t\t}\n\t\treturn array(\n\t\t\t\"entries\" => $conversations\n\t\t);\t\t\n\t}", "title": "" }, { "docid": "5f5220a336747bc64094e14b9e53b98b", "score": "0.5520641", "text": "function bencode($var)\n{\n\tif( is_string($var) )\n\t{\n\t\treturn strlen($var) .':'. $var;\n\t}\n\telseif( is_int($var) )\n\t{\n\t\treturn 'i' . $var . 'e';\n\t}\n\telseif( is_float($var) )\n\t{\n\t\treturn 'i' . sprintf('%.0f', $var) . 'e';\n\t}\n\telseif( is_array($var) )\n\t{\n\t\tif( count($var) == 0 )\n\t\t{\n\t\t\treturn 'de';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$assoc = false;\n\n\t\t\tforeach( $var as $key => $val )\n\t\t\t{\n\t\t\t\tif( !is_int($key) )\n\t\t\t\t{\n\t\t\t\t\t$assoc = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( $assoc )\n\t\t\t{\n\t\t\t\tksort($var, SORT_REGULAR);\n\t\t\t\t$ret = 'd';\n\n\t\t\t\tforeach( $var as $key => $val )\n\t\t\t\t{\n\t\t\t\t\t$ret .= bencode($key) . bencode($val);\n\t\t\t\t}\n\t\t\t\treturn $ret . 'e';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ret = 'l';\n\n\t\t\t\tforeach( $var as $val )\n\t\t\t\t{\n\t\t\t\t\t$ret .= bencode($val);\n\t\t\t\t}\n\t\t\t\treturn $ret . 'e';\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\ttrigger_error('bencode error: wrong data type', E_USER_ERROR);\n\t}\n}", "title": "" }, { "docid": "7c0e084d4edb5cf5a2d4275852592e64", "score": "0.55116653", "text": "function gbk2utf8(&$text){\n if (is_string($text))\n return iconv('GBK', 'UTF-8', $text);\n if (is_array($text))\n {\n foreach($text as $key => $value)\n {\n $text[$key] = gbk2utf8($value);\n }\n }\n return $text;\n }", "title": "" }, { "docid": "8de56970f7de5501278141a0d9c47851", "score": "0.5478829", "text": "function xml_encode($data) {\n if (!is_array($data) && !is_object($data))\n return $data;\n\n $encoded = \"\\n\";\n foreach ($data as $k => $d) {\n $e = is_string($k) ? $k : 'n';\n $encoded .= \"\\t<\" . $e . \">\" . xml_encode($d) . \"</\" . $e . \">\\n\";\n }\n return $encoded . \"\";\n}", "title": "" }, { "docid": "eeadae7e292d6841d9f18764fb6e3527", "score": "0.5463756", "text": "protected function encode($data)\n {\n return utf8_decode($data);\n }", "title": "" }, { "docid": "a7d060db377483eac45201a47d121e25", "score": "0.54503524", "text": "static function encode(&$data) {\n if(is_object($data) || is_array($data)) {\n // skip the ilp_flexible_table\n if(!is_a($data, 'ilp_flexible_table')) {\n foreach($data as $index => &$datum) {\n\n //we will skip any index with the prefix binary\n if (substr($index, 0,7) != 'binary_') {\n $datum = ilp_db::encode($datum);\n }\n }\n\n }\n return $data;\n } else {\n\n // decode any special characters prevent malicious code slipping through\n $data = ilp_db::decode_htmlchars($data, ENT_QUOTES);\n\n // purify all data (e.g. validate html, remove js and other bad stuff)\n $data = purify_html($data);\n\n // encode the purified string\n $data = trim(preg_replace('/\\\\\\/', '&#92;', htmlentities($data, ENT_QUOTES, 'utf-8', false)));\n\n // convert the empty string into null as such values break nullable FK fields\n return ($data == '') ? null : $data;\n }\n }", "title": "" }, { "docid": "ee8fbc9473c4a69c3efb6b413f16e0dc", "score": "0.5437777", "text": "function xinha_js_encode($string)\n {\n static $strings = \"\\\\,\\\",',%,&,<,>,{,},@,\\n,\\r\";\n \n if(!is_array($strings))\n {\n $tr = array();\n foreach(explode(',', $strings) as $chr)\n {\n $tr[$chr] = sprintf('\\x%02X', ord($chr));\n }\n $strings = $tr;\n }\n \n return strtr($string, $strings);\n }", "title": "" }, { "docid": "88db739ce4914c99b78c263786e944ec", "score": "0.54243976", "text": "public function encode(array &$data, array $options);", "title": "" }, { "docid": "040eff260a94402abadf79db409ccf4d", "score": "0.5423546", "text": "public static function xml_encode($array = array(), $depth = 0)\n {\n $return = '';\n foreach ($array as $key => $item) {\n if (is_integer($key)) {\n $key = 'ID_' . $key;\n }\n $key = str_replace('/', '[slash]', $key);\n $key = str_replace('<', '[lt]', $key);\n $key = str_replace('>', '[gt]', $key);\n $key = str_replace('&', '[amp]', $key);\n $key = str_replace('\"', '[dquote]', $key);\n $key = str_replace(\"'\", '[squote]', $key);\n $return .= str_repeat(' ', $depth) . '<' . $key . \">\";\n if (is_array($item)) {\n if (is_array($item) && count($item) > 0) {\n $return .= \"\\r\\n\" \n . Base_GeneralFunctions::xml_encode($item, $depth + 4) \n . str_repeat(' ', $depth);\n } elseif (is_array($item)) {\n // Don't do anything with an empty array\n } else {\n $return .= $item;\n }\n $return .= '</' . $key . \">\\r\\n\";\n }\n return $return;\n }\n }", "title": "" }, { "docid": "7278fbb5c4b11afedaa5691d9ff81777", "score": "0.541797", "text": "function encode($var)\r\n {\r\n switch (gettype($var)) {\r\n case 'boolean':\r\n return $var ? 'true' : 'false';\r\n\r\n case 'NULL':\r\n return 'null';\r\n\r\n case 'integer':\r\n return (int) $var;\r\n\r\n case 'double':\r\n case 'float':\r\n return (float) $var;\r\n\r\n case 'string':\r\n // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT\r\n $ascii = '';\r\n $strlen_var = strlen($var);\r\n\r\n /*\r\n * Iterate over every character in the string,\r\n * escaping with a slash or encoding to UTF-8 where necessary\r\n */\r\n for ($c = 0; $c < $strlen_var; ++$c) {\r\n\r\n $ord_var_c = ord($var{$c});\r\n\r\n switch (true) {\r\n case $ord_var_c == 0x08:\r\n $ascii .= '\\b';\r\n break;\r\n case $ord_var_c == 0x09:\r\n $ascii .= '\\t';\r\n break;\r\n case $ord_var_c == 0x0A:\r\n $ascii .= '\\n';\r\n break;\r\n case $ord_var_c == 0x0C:\r\n $ascii .= '\\f';\r\n break;\r\n case $ord_var_c == 0x0D:\r\n $ascii .= '\\r';\r\n break;\r\n\r\n case $ord_var_c == 0x22:\r\n case $ord_var_c == 0x2F:\r\n case $ord_var_c == 0x5C:\r\n // double quote, slash, slosh\r\n $ascii .= '\\\\'.$var{$c};\r\n break;\r\n\r\n case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):\r\n // characters U-00000000 - U-0000007F (same as ASCII)\r\n $ascii .= $var{$c};\r\n break;\r\n\r\n case (($ord_var_c & 0xE0) == 0xC0):\r\n // characters U-00000080 - U-000007FF, mask 110XXXXX\r\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\r\n $char = pack('C*', $ord_var_c, ord($var{$c + 1}));\r\n $c += 1;\r\n $utf16 = $this->utf82utf16($char);\r\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\r\n break;\r\n\r\n case (($ord_var_c & 0xF0) == 0xE0):\r\n // characters U-00000800 - U-0000FFFF, mask 1110XXXX\r\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\r\n $char = pack('C*', $ord_var_c,\r\n ord($var{$c + 1}),\r\n ord($var{$c + 2}));\r\n $c += 2;\r\n $utf16 = $this->utf82utf16($char);\r\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\r\n break;\r\n\r\n case (($ord_var_c & 0xF8) == 0xF0):\r\n // characters U-00010000 - U-001FFFFF, mask 11110XXX\r\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\r\n $char = pack('C*', $ord_var_c,\r\n ord($var{$c + 1}),\r\n ord($var{$c + 2}),\r\n ord($var{$c + 3}));\r\n $c += 3;\r\n $utf16 = $this->utf82utf16($char);\r\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\r\n break;\r\n\r\n case (($ord_var_c & 0xFC) == 0xF8):\r\n // characters U-00200000 - U-03FFFFFF, mask 111110XX\r\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\r\n $char = pack('C*', $ord_var_c,\r\n ord($var{$c + 1}),\r\n ord($var{$c + 2}),\r\n ord($var{$c + 3}),\r\n ord($var{$c + 4}));\r\n $c += 4;\r\n $utf16 = $this->utf82utf16($char);\r\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\r\n break;\r\n\r\n case (($ord_var_c & 0xFE) == 0xFC):\r\n // characters U-04000000 - U-7FFFFFFF, mask 1111110X\r\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\r\n $char = pack('C*', $ord_var_c,\r\n ord($var{$c + 1}),\r\n ord($var{$c + 2}),\r\n ord($var{$c + 3}),\r\n ord($var{$c + 4}),\r\n ord($var{$c + 5}));\r\n $c += 5;\r\n $utf16 = $this->utf82utf16($char);\r\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\r\n break;\r\n }\r\n }\r\n\r\n return '\"'.$ascii.'\"';\r\n\r\n case 'array':\r\n /*\r\n * As per JSON spec if any array key is not an integer\r\n * we must treat the the whole array as an object. We\r\n * also try to catch a sparsely populated associative\r\n * array with numeric keys here because some JS engines\r\n * will create an array with empty indexes up to\r\n * max_index which can cause memory issues and because\r\n * the keys, which may be relevant, will be remapped\r\n * otherwise.\r\n *\r\n * As per the ECMA and JSON specification an object may\r\n * have any string as a property. Unfortunately due to\r\n * a hole in the ECMA specification if the key is a\r\n * ECMA reserved word or starts with a digit the\r\n * parameter is only accessible using ECMAScript's\r\n * bracket notation.\r\n */\r\n\r\n // treat as a JSON object\r\n if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {\r\n $properties = array_map(array($this, 'name_value'),\r\n array_keys($var),\r\n array_values($var));\r\n\r\n foreach($properties as $property) {\r\n if(Services_JSON::isError($property)) {\r\n return $property;\r\n }\r\n }\r\n\r\n return '{' . join(',', $properties) . '}';\r\n }\r\n\r\n // treat it like a regular array\r\n $elements = array_map(array($this, 'encode'), $var);\r\n\r\n foreach($elements as $element) {\r\n if(Services_JSON::isError($element)) {\r\n return $element;\r\n }\r\n }\r\n\r\n return '[' . join(',', $elements) . ']';\r\n\r\n case 'object':\r\n $vars = get_object_vars($var);\r\n\r\n $properties = array_map(array($this, 'name_value'),\r\n array_keys($vars),\r\n array_values($vars));\r\n\r\n foreach($properties as $property) {\r\n if(Services_JSON::isError($property)) {\r\n return $property;\r\n }\r\n }\r\n\r\n return '{' . join(',', $properties) . '}';\r\n\r\n default:\r\n return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)\r\n ? 'null'\r\n : new Services_JSON_Error(gettype($var).\" can not be encoded as JSON string\");\r\n }\r\n }", "title": "" }, { "docid": "3be5357dc7963b7b6e269f74773c55b4", "score": "0.5409626", "text": "private function encode(array $data): string\n {\n return $this->encoder->base64UrlEncode(\n $this->encoder->jsonEncode($data)\n );\n }", "title": "" }, { "docid": "27eadad5ee549cf4314fa188832f98ce", "score": "0.5406593", "text": "function encodeToUtf8_loc($string)\n{\n\n return mb_convert_encoding($string, \"UTF-8\", \"auto\");\n}", "title": "" }, { "docid": "836194dfb2b767ef2c9836d0086f6616", "score": "0.53958565", "text": "public static function base64_encode_recursive($var)\r\n\t{\r\n\t\tif (is_array($var)) {\r\n\t\t\treturn array_map(array('Utils', 'base64_encode_recursive'), $var);\r\n\t\t} elseif (is_object($var)) {\r\n\t\t\t$rvar = null;\r\n\t\t\tforeach ($var as $key => $val) {\r\n\t\t\t\t$rvar->{$key} = self::base64_encode_recursive($val);\r\n\t\t\t}\r\n\t\t\treturn $rvar;\r\n\t\t} elseif (is_string($var)) {\r\n\t\t\treturn base64_encode($var);\r\n\t\t} else {\r\n\t\t\treturn $var;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "95922ddf36c1899382a513654c06b14f", "score": "0.5369772", "text": "function xmlrpc_encode_entitites($data, $srcEncoding='', $destEncoding='')\n{\n return Charset::instance()->encodeEntities($data, $srcEncoding, $destEncoding);\n}", "title": "" }, { "docid": "7424c20d3b32312a401d9ea154998b0d", "score": "0.5365012", "text": "public static function arr2str($array) {\n\t\t$return = '';\n\t\t$nullValue=\"^^^\";\n\t\tforeach ($array as $key => $value) {\n\t\t\tif(is_array($value))\n\t\t\t\t$returnValue = '^^array^'.AkString::arr2str($value);\n\t\t\telse\n\t\t\t\t$returnValue = (strlen($value) > 0) ? $value : $nullValue;\n\t\t\t$return .= urlencode(base64_encode($key)) . '|' . urlencode(base64_encode($returnValue)) . '||';\n\t\t}\n\n\t\t// return urlencode(substr($return, 0, -2));\n\t\treturn base64_encode(substr($return, 0, -2));\n\t}", "title": "" }, { "docid": "c95e3d3329e565c976b56540cb1cf465", "score": "0.5360141", "text": "public static function encode(Array $array, $as_string = FALSE) {\n\t\t$content = self::convert_to_xml($array);\n\t\tif ($as_string) {\n\t\t\treturn $content;\n\t\t}\n\t\t$XML = new XML($content);\n\t\treturn $XML;\n\t}", "title": "" }, { "docid": "f21cbddacdbd69666442202f0855a766", "score": "0.53572124", "text": "function decodeHtmlEntitiesInArray(&$elem){ \n \t\tif (!is_array($elem)) { \n \t\t$elem=html_entity_decode($elem); \n\t\t} else { \n\t\t\tforeach ($elem as $key=>$value){\n\t\t\t\t$elem[$key]=decodeHtmlEntitiesInArray($value);\n\t\t\t} \n \t\t} \n\t\treturn $elem; \n\t}", "title": "" }, { "docid": "568df3a90f2017a47d02914289152814", "score": "0.5339556", "text": "public function jsonEncodeArray($arrSimple) {\n $jsonResult = \"\";\n $n = 0;\n foreach($arrSimple AS $val) {\n $n++;\n $jsonResult .= $this->_mxdEscape($val);\n if($n < count($arrSimple)) $jsonResult .= \",\";\n }\n return \"[\".$jsonResult.\"]\";\n }", "title": "" }, { "docid": "9bd8ee7e69de89c68742df8c06f3508c", "score": "0.53371054", "text": "public static function urlencode3986_recursive($var)\r\n\t{\r\n\t\tif (is_array($var)) {\r\n\t\t\treturn array_map(array('Utils', 'urlencode3986_recursive'), $var);\r\n\t\t} elseif (is_object($var)) {\r\n\t\t\t$rvar = null;\r\n\t\t\tforeach ($var as $key => $val) {\r\n\t\t\t\t$rvar->{$key} = self::urlencode3986($val);\r\n\t\t\t}\r\n\t\t\treturn $rvar;\r\n\t\t} elseif (is_string($var)) {\r\n\t\t\treturn str_replace('%7E', '~', rawurlencode($var));\r\n\t\t} else {\r\n\t\t\treturn $var;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55e21615442139b9b32096fff122f364", "score": "0.5328731", "text": "function jsonEncodeWrap(array $array)\n{\n return json_encode($array, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);\n}", "title": "" }, { "docid": "1b48d0facf61bc2e8d4954241f467bcb", "score": "0.53177077", "text": "function is_utf8_encode($input){\n //return $encode == \"UTF-8\" ? true : false;\n $str1 = @iconv(\"UTF-8\", \"GBK\", $input);\n $str2 = @iconv(\"GBK\" , \"UTF-8\", $str1);\n return $input == $str2 ? true : false;\n}", "title": "" }, { "docid": "6f7d7adb99c22d7aa677a767710b7197", "score": "0.5297584", "text": "protected function encodeTable($table)\n {\n if (!$table) {\n return $table;\n }\n $newTable = array();\n foreach ($table as $row) {\n if (is_array($row)) {\n $newRow = array();\n foreach ($row as $item) {\n $newRow[] = $this->encodeObject($item);\n }\n $newTable[] = $newRow;\n }\n }\n return $newTable;\n }", "title": "" } ]
6f2be61418dc49c187e6a956fcc0c394
Create a new ItemList with $list.
[ { "docid": "eb5231a253fdbf9c987811f8b118c4b3", "score": "0.56691086", "text": "public function __construct(array $list = array())\n {\n $this->list = array_values($list);\n }", "title": "" } ]
[ { "docid": "0d727c887a3e7486a754e3b831aefb07", "score": "0.71142375", "text": "public function setItem_list($item_list)\r\n {\r\n $this->item_list = $item_list;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "0072d5aba6d4f0e761a8f07de3f82d8d", "score": "0.70030373", "text": "public function setItemList($item_list)\r\n {\r\n $this->item_list = $item_list;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "3360ad4488d4b826a65f9b34bd20aba9", "score": "0.6308706", "text": "public function __construct($list)\n {\n parent::__construct();\n $this->setList($list);\n }", "title": "" }, { "docid": "adb6fd88d644b44291bb7cc5da8f65ca", "score": "0.62296486", "text": "public function __construct($listId, $list)\n\t{\n\t\t$this->listId = $listId;\n\t\t$this->list = $list;\n\t}", "title": "" }, { "docid": "ac2ae6ad18d9186c87d03cb452860820", "score": "0.60717833", "text": "public function __construct( IList $list )\n {\n $this->_setDelegate($list);\n }", "title": "" }, { "docid": "7f839d19c0d88ee8184b3bd04dd2bc7c", "score": "0.59764767", "text": "public static function buildList($item) {\n $atId = public_full_url(array('things' => 'items', 'id' => $item->id, 'typeext' => 'annolist.json'), 'iiifitems_oa_uri');\n if ($item->item_type_id == get_option('iiifitems_annotation_item_type')) {\n return self::blankListTemplate($atId, array(self::buildAnnotation($item)));\n } else {\n return self::blankListTemplate($atId, self::findAnnotationsFor($item));\n }\n }", "title": "" }, { "docid": "fff273a61b2a4d36a9b5ebbbc62ce42f", "score": "0.59444016", "text": "public static function create(array $list = array())\n {\n return new self($list);\n }", "title": "" }, { "docid": "93a7e3feaee84145f3d1544cd7efd0d4", "score": "0.5913755", "text": "public function create()\n {\n // Not needed cause this is coming from the item listing\n }", "title": "" }, { "docid": "52227ac9c0af5c8c6975efaf6155528b", "score": "0.5902136", "text": "protected function prepareTemplateToList($list)\n {\n return $list;\n }", "title": "" }, { "docid": "eb6a6a7773797995a5480d5e726f5532", "score": "0.5858428", "text": "protected function listModelFactory($listData)\n {\n return new ListModel($listData);\n }", "title": "" }, { "docid": "0a38940cf7e9be14547fdcf435b0cd19", "score": "0.5838853", "text": "public function createNewListItem(Request $request)\n\t{\n\t\t$user = Auth::user()->id;\n\t\t//DB::table('lists')->where('user_id', Auth::user()->id)\n\n\t\t$list = DB::table('lists')->find($request->List_id);\n\t\t//dd($user,$list);\n\n\t\tif ($list == null || $user == null) {\n\t\t\treturn redirect(url('/yourLists'));\n\n\t\t} elseif ($user == $list->user_id) {\n\t\t\tDB::table('list_items')->insertOrIgnore([\n\t\t\t\t\"name\" => $request->listItemName,\n\t\t\t\t\"description\" => $request->description,\n\t\t\t\t\"List_id\" => $request->List_id,\n\t\t\t\t\"user_id\" => Auth::user()->id\n\t\t\t]);\n\t\t\treturn redirect(url('/yourLists'));\n\n\t\t} else {\n\t\t\treturn redirect(url('/yourLists'));\n\t\t}\n\t}", "title": "" }, { "docid": "6a5bb334249f774989c45f16cbf63594", "score": "0.5801058", "text": "public function __construct(SS_List $list, $keyField = \"ID\", $valueField = \"Title\") {\n\t\t$this->list = $list;\n\t\t$this->keyField = $keyField;\n\t\t$this->valueField = $valueField;\n\t}", "title": "" }, { "docid": "72e5ca68b5beb59ac820755d0d50f921", "score": "0.5785524", "text": "public function __construct(MailList $list, array $data)\n {\n $this->list = $list;\n $this->data = $data;\n\n }", "title": "" }, { "docid": "ad2a43504f7f9331980d18c97d437072", "score": "0.5749515", "text": "function makeListItems($list, $name=null, $extra=false)\n{\n $list_items = '';\n foreach ( $list as $item ) {\n // Prepare values\n $list_item = htmlspecialchars($item->getName());\n if ( method_exists($item, 'getUrl') ) {\n $url = $item->getUrl();\n if ( !empty($url) ) {\n $list_item = \"<a href=\\\"{$url}\\\">{$list_item}</a>\\n\";\n }\n }\n // Make the li\n $list_items .= <<<LI\n <li>\n {$list_item}\n </li>\n\nLI;\n }\n return $list_items;\n}", "title": "" }, { "docid": "8eeb9bb1483e70dba56fadeb0f0da352", "score": "0.5735973", "text": "public function __construct(TodoList $todoList)\n {\n $this->todolist = $todoList;\n }", "title": "" }, { "docid": "f69ca1f44832c9f7f29a3525660f971a", "score": "0.57263505", "text": "protected function createItem()\n {\n return $this->_setUpNewNode(\n new Item()\n );\n }", "title": "" }, { "docid": "b898c96e344a367874a8e083435d5572", "score": "0.5714843", "text": "function createList($listOptions)\n{\n\tglobal $context;\n\n\tassert(isset($listOptions['id']));\n\tassert(isset($listOptions['columns']));\n\tassert(is_array($listOptions['columns']));\n\tassert((empty($listOptions['items_per_page']) || (isset($listOptions['get_count']['function'], $listOptions['base_href']) && is_numeric($listOptions['items_per_page']))));\n\tassert((empty($listOptions['default_sort_col']) || isset($listOptions['columns'][$listOptions['default_sort_col']])));\n\tassert((!isset($listOptions['form']) || isset($listOptions['form']['href'])));\n\n\tcall_integration_hook('integrate_' . $listOptions['id'], array($listOptions));\n\n\t// All the context data will be easily accessible by using a reference.\n\t$context[$listOptions['id']] = array();\n\t$list_context = &$context[$listOptions['id']];\n\n\t// Figure out the sort.\n\tif (empty($listOptions['default_sort_col']))\n\t{\n\t\t$list_context['sort'] = array();\n\t\t$sort = '1=1';\n\t}\n\telse\n\t{\n\t\t$request_var_sort = isset($listOptions['request_vars']['sort']) ? $listOptions['request_vars']['sort'] : 'sort';\n\t\t$request_var_desc = isset($listOptions['request_vars']['desc']) ? $listOptions['request_vars']['desc'] : 'desc';\n\t\tif (isset($_REQUEST[$request_var_sort], $listOptions['columns'][$_REQUEST[$request_var_sort]], $listOptions['columns'][$_REQUEST[$request_var_sort]]['sort']))\n\t\t\t$list_context['sort'] = array(\n\t\t\t\t'id' => $_REQUEST[$request_var_sort],\n\t\t\t\t'desc' => isset($_REQUEST[$request_var_desc]) && isset($listOptions['columns'][$_REQUEST[$request_var_sort]]['sort']['reverse']),\n\t\t\t);\n\t\telse\n\t\t\t$list_context['sort'] = array(\n\t\t\t\t'id' => $listOptions['default_sort_col'],\n\t\t\t\t'desc' => (!empty($listOptions['default_sort_dir']) && $listOptions['default_sort_dir'] == 'desc') || (!empty($listOptions['columns'][$listOptions['default_sort_col']]['sort']['default']) && substr($listOptions['columns'][$listOptions['default_sort_col']]['sort']['default'], -4, 4) == 'desc') ? true : false,\n\t\t\t);\n\n\t\t// Set the database column sort.\n\t\t$sort = $listOptions['columns'][$list_context['sort']['id']]['sort'][$list_context['sort']['desc'] ? 'reverse' : 'default'];\n\t}\n\n\t$list_context['start_var_name'] = isset($listOptions['start_var_name']) ? $listOptions['start_var_name'] : 'start';\n\t// In some cases the full list must be shown, regardless of the amount of items.\n\tif (empty($listOptions['items_per_page']))\n\t{\n\t\t$list_context['start'] = 0;\n\t\t$list_context['items_per_page'] = 0;\n\t}\n\t// With items per page set, calculate total number of items and page index.\n\telse\n\t{\n\t\t// First get an impression of how many items to expect.\n\t\tif (isset($listOptions['get_count']['file']))\n\t\t\trequire_once($listOptions['get_count']['file']);\n\t\t$list_context['total_num_items'] = call_user_func_array($listOptions['get_count']['function'], empty($listOptions['get_count']['params']) ? array() : $listOptions['get_count']['params']);\n\n\t\t// Default the start to the beginning...sounds logical.\n\t\t$list_context['start'] = isset($_REQUEST[$list_context['start_var_name']]) ? (int) $_REQUEST[$list_context['start_var_name']] : 0;\n\t\t$list_context['items_per_page'] = $listOptions['items_per_page'];\n\n\t\t// Then create a page index.\n\t\tif ($list_context['total_num_items'] > $list_context['items_per_page'])\n\t\t\t$list_context['page_index'] = constructPageIndex($listOptions['base_href'] . (empty($list_context['sort']) ? '' : ';' . $request_var_sort . '=' . $list_context['sort']['id'] . ($list_context['sort']['desc'] ? ';' . $request_var_desc : '')) . ($list_context['start_var_name'] != 'start' ? ';' . $list_context['start_var_name'] . '=%1$d' : ''), $list_context['start'], $list_context['total_num_items'], $list_context['items_per_page'], $list_context['start_var_name'] != 'start');\n\t}\n\n\t// Prepare the headers of the table.\n\t$list_context['headers'] = array();\n\tforeach ($listOptions['columns'] as $column_id => $column)\n\t\t$list_context['headers'][] = array(\n\t\t\t'id' => $column_id,\n\t\t\t'label' => isset($column['header']['eval']) ? eval($column['header']['eval']) : (isset($column['header']['value']) ? $column['header']['value'] : ''),\n\t\t\t'href' => empty($listOptions['default_sort_col']) || empty($column['sort']) ? '' : $listOptions['base_href'] . ';' . $request_var_sort . '=' . $column_id . ($column_id === $list_context['sort']['id'] && !$list_context['sort']['desc'] && isset($column['sort']['reverse']) ? ';' . $request_var_desc : '') . (empty($list_context['start']) ? '' : ';' . $list_context['start_var_name'] . '=' . $list_context['start']),\n\t\t\t'sort_image' => empty($listOptions['default_sort_col']) || empty($column['sort']) || $column_id !== $list_context['sort']['id'] ? null : ($list_context['sort']['desc'] ? 'down' : 'up'),\n\t\t\t'class' => isset($column['header']['class']) ? $column['header']['class'] : '',\n\t\t\t'style' => isset($column['header']['style']) ? $column['header']['style'] : '',\n\t\t\t'colspan' => isset($column['header']['colspan']) ? $column['header']['colspan'] : '',\n\t\t);\n\n\t// We know the amount of columns, might be useful for the template.\n\t$list_context['num_columns'] = count($listOptions['columns']);\n\t$list_context['width'] = isset($listOptions['width']) ? $listOptions['width'] : '0';\n\n\t// Get the file with the function for the item list.\n\tif (isset($listOptions['get_items']['file']))\n\t\trequire_once($listOptions['get_items']['file']);\n\n\t// Call the function and include which items we want and in what order.\n\t$list_items = call_user_func_array($listOptions['get_items']['function'], array_merge(array($list_context['start'], $list_context['items_per_page'], $sort), empty($listOptions['get_items']['params']) ? array() : $listOptions['get_items']['params']));\n\t$list_items = empty($list_items) ? array() : $list_items;\n\n\t// Loop through the list items to be shown and construct the data values.\n\t$list_context['rows'] = array();\n\tforeach ($list_items as $item_id => $list_item)\n\t{\n\t\t$cur_row = array();\n\t\tforeach ($listOptions['columns'] as $column_id => $column)\n\t\t{\n\t\t\t$cur_data = array();\n\n\t\t\t// A value straight from the database?\n\t\t\tif (isset($column['data']['db']))\n\t\t\t\t$cur_data['value'] = $list_item[$column['data']['db']];\n\n\t\t\t// Take the value from the database and make it HTML safe.\n\t\t\telseif (isset($column['data']['db_htmlsafe']))\n\t\t\t\t$cur_data['value'] = htmlspecialchars($list_item[$column['data']['db_htmlsafe']]);\n\n\t\t\t// Using sprintf is probably the most readable way of injecting data.\n\t\t\telseif (isset($column['data']['sprintf']))\n\t\t\t{\n\t\t\t\t$params = array();\n\t\t\t\tforeach ($column['data']['sprintf']['params'] as $sprintf_param => $htmlsafe)\n\t\t\t\t\t$params[] = $htmlsafe ? htmlspecialchars($list_item[$sprintf_param]) : $list_item[$sprintf_param];\n\t\t\t\t$cur_data['value'] = vsprintf($column['data']['sprintf']['format'], $params);\n\t\t\t}\n\n\t\t\t// The most flexible way probably is applying a custom function.\n\t\t\telseif (isset($column['data']['function']))\n\t\t\t\t$cur_data['value'] = call_user_func_array($column['data']['function'], array($list_item));\n\n\t\t\t// A modified value (inject the database values).\n\t\t\telseif (isset($column['data']['eval']))\n\t\t\t\t$cur_data['value'] = eval(preg_replace('~%([a-zA-Z0-9\\-_]+)%~', '$list_item[\\'$1\\']', $column['data']['eval']));\n\n\t\t\t// A literal value.\n\t\t\telseif (isset($column['data']['value']))\n\t\t\t\t$cur_data['value'] = $column['data']['value'];\n\n\t\t\t// Empty value.\n\t\t\telse\n\t\t\t\t$cur_data['value'] = '';\n\n\t\t\t// Allow for basic formatting.\n\t\t\tif (!empty($column['data']['comma_format']))\n\t\t\t\t$cur_data['value'] = comma_format($cur_data['value']);\n\t\t\telseif (!empty($column['data']['timeformat']))\n\t\t\t\t$cur_data['value'] = timeformat($cur_data['value']);\n\n\t\t\t// Set a style class for this column?\n\t\t\tif (isset($column['data']['class']))\n\t\t\t\t$cur_data['class'] = $column['data']['class'];\n\n\t\t\t// Fully customized styling for the cells in this column only.\n\t\t\tif (isset($column['data']['style']))\n\t\t\t\t$cur_data['style'] = $column['data']['style'];\n\n\t\t\t// Add the data cell properties to the current row.\n\t\t\t$cur_row[$column_id] = $cur_data;\n\t\t}\n\n\t\t$list_context['rows'][$item_id]['class'] = '';\n\t\t$list_context['rows'][$item_id]['style'] = '';\n\t\t// Maybe we wat set a custom class for the row based on the data in the row itself\n\t\tif (isset($listOptions['data_check']))\n\t\t{\n\t\t\tif (isset($listOptions['data_check']['class']))\n\t\t\t\t$list_context['rows'][$item_id]['class'] = ' ' . $listOptions['data_check']['class']($list_item);\n\t\t\tif (isset($listOptions['data_check']['style']))\n\t\t\t\t$list_context['rows'][$item_id]['style'] = ' style=\"' . $listOptions['data_check']['style']($list_item) . '\"';\n\t\t}\n\n\t\t// Insert the row into the list.\n\t\t$list_context['rows'][$item_id]['data'] = $cur_row;\n\t}\n\n\t// The title is currently optional.\n\tif (isset($listOptions['title']))\n\t\t$list_context['title'] = $listOptions['title'];\n\n\t// In case there's a form, share it with the template context.\n\tif (isset($listOptions['form']))\n\t{\n\t\t$list_context['form'] = $listOptions['form'];\n\n\t\tif (!isset($list_context['form']['hidden_fields']))\n\t\t\t$list_context['form']['hidden_fields'] = array();\n\n\t\t// Always add a session check field.\n\t\t$list_context['form']['hidden_fields'][$context['session_var']] = $context['session_id'];\n\n\t\t// Will this do a token check?\n\t\tif (isset($listOptions['form']['token']))\n\t\t\t$list_context['form']['hidden_fields'][$context[$listOptions['form']['token'] . '_token_var']] = $context[$listOptions['form']['token'] . '_token'];\n\n\t\t// Include the starting page as hidden field?\n\t\tif (!empty($list_context['form']['include_start']) && !empty($list_context['start']))\n\t\t\t$list_context['form']['hidden_fields'][$list_context['start_var_name']] = $list_context['start'];\n\n\t\t// If sorting needs to be the same after submitting, add the parameter.\n\t\tif (!empty($list_context['form']['include_sort']) && !empty($list_context['sort']))\n\t\t{\n\t\t\t$list_context['form']['hidden_fields']['sort'] = $list_context['sort']['id'];\n\t\t\tif ($list_context['sort']['desc'])\n\t\t\t\t$list_context['form']['hidden_fields']['desc'] = 1;\n\t\t}\n\t}\n\n\t// Wanna say something nice in case there are no items?\n\tif (isset($listOptions['no_items_label']))\n\t{\n\t\t$list_context['no_items_label'] = $listOptions['no_items_label'];\n\t\t$list_context['no_items_align'] = isset($listOptions['no_items_align']) ? $listOptions['no_items_align'] : '';\n\t}\n\n\t// A list can sometimes need a few extra rows above and below.\n\tif (isset($listOptions['additional_rows']))\n\t{\n\t\t$list_context['additional_rows'] = array();\n\t\tforeach ($listOptions['additional_rows'] as $row)\n\t\t{\n\t\t\tif (empty($row))\n\t\t\t\tcontinue;\n\n\t\t\t// Supported row positions: top_of_list, after_title,\n\t\t\t// above_column_headers, below_table_data, bottom_of_list.\n\t\t\tif (!isset($list_context['additional_rows'][$row['position']]))\n\t\t\t\t$list_context['additional_rows'][$row['position']] = array();\n\t\t\t$list_context['additional_rows'][$row['position']][] = $row;\n\t\t}\n\t}\n\n\t// Add an option for inline JavaScript.\n\tif (isset($listOptions['javascript']))\n\t\t$list_context['javascript'] = $listOptions['javascript'];\n\n\t// We want a menu.\n\tif (isset($listOptions['list_menu']))\n\t\t$list_context['list_menu'] = $listOptions['list_menu'];\n\n\t// Make sure the template is loaded.\n\tloadTemplate('GenericList');\n}", "title": "" }, { "docid": "a0f952157d3255d779440e86411e8865", "score": "0.5693733", "text": "public function createListItem(ListItemModel $item) {\n RealityCheckLogger::info(\"Entering BucketListDataService.createListItem()\");\n\n try{\n //select variables and see if the row exists\n $description = $item->getDescription();\n $bucketListID = $item->getBucketListID();\n\n //prepared statements is created\n $stmt = $this->conn->prepare(\"INSERT INTO `ListItem` (`Description`, `BucketList_ID`) VALUES (:description, :bucketlistid)\");\n $stmt->bindParam(':description', $description);\n $stmt->bindParam(':bucketlistid', $bucketListID);\n\n /*see if list item existed and return true if found\n else return false if not found*/\n if ($stmt->execute()) {\n RealityCheckLogger::info(\"Leaving BucketListDataService.createListItem() with true\");\n return true;\n }\n\n else {\n RealityCheckLogger::info(\"Leaving BucketListDataService.createListItem() with false\");\n return false;\n }\n }\n\n catch(PDOException $e) {\n RealityCheckLogger::error(\"Exception: \", array(\"message\" => $e->getMessage()));\n throw new DatabaseException(\"Database Exception: \" . $e->getMessage(), 0, $e);\n }\n }", "title": "" }, { "docid": "ca0fad272df17429a21776bfd555b5e7", "score": "0.56626236", "text": "public function setItemListElement($itemListElement) {\n $this->properties['itemListElement'] = $itemListElement;\n\n return $this;\n }", "title": "" }, { "docid": "103c5c8a73fd9f9fed5b083443a3ed9c", "score": "0.565806", "text": "public function addListItem($text, $depth = 0, $styleText = null, $styleList = null)\n {\n if (!String::isUTF8($text)) {\n $text = utf8_encode($text);\n }\n $listItem = new ListItem($text, $depth, $styleText, $styleList);\n $this->_elementCollection[] = $listItem;\n return $listItem;\n }", "title": "" }, { "docid": "b727f43f9c9a116d3d5ba1ca3fb8782b", "score": "0.56521785", "text": "public function makeList( $id, $title )\n {\n $repository = App::make( 'GSD\\Repositories\\RepositoryInterface' );\n if ( $repository->exists( $id ) )\n {\n throw new \\InvalidArgumentException( \"A list with id=$id already exists\" );\n }\n $list = App::make( 'GSD\\Entities\\ListInterface' );\n $list->set( 'id', $id )\n ->set( 'title', $title )\n ->save();\n return $list;\n }", "title": "" }, { "docid": "40b529615ff02a3cccf7b2b9a1e05800", "score": "0.56076217", "text": "public function __construct(ToDoList $todoList)\n {\n $this->todoList = $todoList;\n }", "title": "" }, { "docid": "a494b81be67743abb0d6d3395d7df933", "score": "0.55801606", "text": "function makeListItem($counter)\t{\r\n\t\t$markerArray = array();\r\n\t\t$markerArray[\"###NR###\"] = $counter;\r\n\t\t$markerArray[\"###TITLE###\"] = $this->getFieldContent('title');\r\n\t\t$markerArray[\"###LOCATION###\"] = $this->getFieldContent('location');\r\n\t\t$markerArray[\"###DATE_BEGIN###\"] = $this->getFieldContent('datefrom');\r\n\t\t$geo_coords = $this->getFieldContent('geo_coords');\r\n\t\t$markerArray[\"###GEO###\"] = $geo_coords;\r\n\t\t\r\n\t\t$type_row = $this->pi_getRecord('tx_firefighter_type', $this->getFieldContent('type'));\r\n\t\t$icon = \"\";\r\n\t\tif($type_row['icon'] != \"\") $icon = \"uploads/tx_firefighter/\" . $type_row['icon'];\r\n\t\t$markerArray[\"###TYPE_ICON###\"] = $icon;\r\n\r\n\t\t$geo_content = \"\";\r\n\t\tif($geo_coords != \"\") {\r\n\t\t\t$geo_content = $this->cObj->substituteMarkerArrayCached($this->templates[\"geo\"], $markerArray, array(), array());\r\n\t\t}\r\n\t\t$subpartArray = array();\r\n\t\t$subpartArray[\"###GEO_SCRIPT###\"] = $geo_content;\r\n\r\n\t\t$out = $this->cObj->substituteMarkerArrayCached($this->templates[\"list_row\"], $markerArray, $subpartArray, array());\r\n\t\t\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "bae38e92c37624c53469b89058d44a26", "score": "0.5578884", "text": "function makeListItem( $rowWrap ) {\n\t\t$out = '';\n\t\t$this->templateCode = $this->cObj->fileResource ( $this->conf['templateFile'] );\n\t\t$template = $this->cObj->getSubpart ( $this->templateCode, '###LIST_VIEW###' );\n\t\t$markerArray = array();\n\t\t$markerArray['###type###']\t\t\t\t\t\t= $this->cObj->stdWrap ( $this->getFieldContent ( 'type' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###brand###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'brand' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###model###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'model' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###mileage###']\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'mileage' ), $this->conf['listView.']['cellDataWrap3.'] );\n\t\t$markerArray['###price###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'price' ), $this->conf['listView.']['cellDataWrap3.'] );\n\t\t$markerArray['###initial_registration###']\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'initial_registration' ), $this->conf['listView.']['cellDataWrap2.'] );\n\t\t$out = $this->cObj->stdWrap ($this->cObj->substituteMarkerArrayCached ( $template, $markerArray ), $this->conf['listView.'][$rowWrap] );\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "6526ff30f4c0ab5208be0be467be555f", "score": "0.5578664", "text": "public abstract function create_list($title);", "title": "" }, { "docid": "1a7f296d263eeed9c1c0e01ee2031908", "score": "0.55703455", "text": "public function createList($count, array $attributes = [])\n {\n return $this->listOf($count, function () use ($attributes) {\n return $this->create($attributes);\n });\n }", "title": "" }, { "docid": "d58043472eaba3a6e93fbaa142d48107", "score": "0.55605364", "text": "public function create()\n {\n return view('lists.create',['list'=>new ListModel()]);//добавляем пустую переменнуб list\n }", "title": "" }, { "docid": "27cfe7ec645bf8436da60af44f6b0271", "score": "0.5531854", "text": "function add_list( $name, $creator, $can_delete, $items )\n\t{\n $this->db->trans_start();\n\n $this->db->set('name', $name );\n $this->db->set('creator', $creator );\n if( $can_delete !== NULL ) {\n $this->db->set('can_delete', $can_delete );\n } \n $this->db->insert('lists');\n\t\t$id = $this->db->insert_id();\n\n\t\tfor( $i = 0; $i < count($items); $i++ ) {\n\t\t\t\t$this->db->set('list_id', $id );\n $this->db->set('data_id', $items[$i]['id']);\n\t\t\t\t$this->db->set('title', $items[$i]['title']);\n\t\t\t\t$this->db->set('type', $items[$i]['type'] );\n\t\t\t\t$this->db->set('sort_order', $i + 1);\n\t\t\t\t$this->db->insert('list_items');\n }\n\n $this->db->trans_complete();\n\t}", "title": "" }, { "docid": "2bd1d7d3d87d950084782c9d93b315dc", "score": "0.55281085", "text": "function makelist($res) {\n\t\t$items=Array();\n\t\t$listItems=Array();\n\n\t\t// Make table header\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader ( 'type' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'brand' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'model' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'mileage' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'price' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'initial_registration' ), $this->conf['listView.']['headDataWrap1.'] );\n\n\t\t$items[] = $this->cObj->stdWrap ( implode( chr ( 10 ),$listItems ), $this->conf['listView.']['headWrap.'] );\n\n\t\t// Make list table rows\n\t\t$i = 1;\n\t\twhile($this->internal[\"currentRow\"] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\tif ( $i % 2 ){\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap1.' );\n\t\t\t}else{\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap2.' );\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\t$out = sprintf ('\n\t\t<div%s>\n\t\t\t%s\n\t\t</div>',\n\t\t\t$this->pi_classParam ( 'listrow' ),\n\t\t\t$this->cObj->stdWrap ( implode( chr ( 10 ),$items ), $this->conf['listView.']['resultWrap.'] )\n\t\t);\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "033a43633b4d79060b68315c0c3a964e", "score": "0.55091083", "text": "public function testCreateListSuccessfully(): void\n {\n $this->post('/mailchimp/lists', static::$listData);\n\n $content = \\json_decode($this->response->getContent(), true);\n\n $this->assertResponseOk();\n $this->seeJson(static::$listData);\n self::assertArrayHasKey('mail_chimp_id', $content);\n self::assertNotNull($content['mail_chimp_id']);\n\n $this->createdListIds[] = $content['mail_chimp_id']; // Store MailChimp list id for cleaning purposes\n }", "title": "" }, { "docid": "d297748d323865f37338e5645cc30c9e", "score": "0.5480909", "text": "public function createItem (Item $item) {\n $this->itemsDB->create($item);\n $item->setId($this->retrieveLastItemId());\n }", "title": "" }, { "docid": "bfc2052cfb8a29baec154ec3d7b4aab2", "score": "0.54691106", "text": "function getItems($list_id) {\n\n\t\t//fetch all items from the db where the list_id = $list_id\n\t\t$itemsResultSet =\t$this->getDbTable()->fetchAll(\n\t\t\t$this->getDbTable()->select()\n\t\t\t\t->where( 'list_id = ?', $list_id)\n\t\t\t\t->order('order')\n\t\t);\n\t\t\n\t\t//create empty return array\n\t\t$items = array();\n\n\t\t//for each result returned in resultSet create Item object and fill\n\t\tforeach($itemsResultSet as $itemResult) {\n\t\t\t$class = $itemResult->class;\n\t\t\t$item = new\t$class();\n\t\t\t$item->setId($itemResult->id)\n\t\t\t\t->setPosition($itemResult->order)\n\t\t\t\t->setListId($itemResult->list_id)\n\t\t\t\t->setClass($itemResult->class)\n\t\t\t\t->setResourceId($itemResult->resource_id)\n\t\t\t\t->setOrder($itemResult->order)\n\t\t\t\t->setStart($itemResult->start)\n\t\t\t\t->setEnd($itemResult->end)\n\t\t\t\t->setCreated($itemResult->created)\n\t\t\t\t->setUpdated($itemResult->updated)\n\t\t\t\t->setAuthor($itemResult->author);\n\t\t\t//fill with stuff from its item_data table.\n\t\t\t$item->getData();\n\t\t\t$items[$item->getId()] = $item;\n\t\t}\n\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "9b85041ae0848b237bc04a43437576ce", "score": "0.54467654", "text": "public function __construct($list_json, $list_types)\n\t{\n\t\t$items = \\json_decode($list_json);\n\t\t\n\t\tif(is_array($items))\n\t\t\t$this->data = $items;\n\t\t\n\t\tif(is_array($list_types))\n\t\t\t$this->types = $list_types;\n\t\telse\n\t\t\t$this->types = array('ul');\n\t}", "title": "" }, { "docid": "446bd7b1f642f3098888753a59217880", "score": "0.5446432", "text": "public function createNewItem();", "title": "" }, { "docid": "8b5cfbfb6740e9cf7535f67de6b2d983", "score": "0.5409071", "text": "public function setListExpr($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Api\\Expr\\V1alpha1\\Expr\\CreateList::class);\n $this->writeOneof(7, $var);\n\n return $this;\n }", "title": "" }, { "docid": "6fc3840ed444f5e517b8a4c42bf9229a", "score": "0.5398803", "text": "public function setListItemIds(array $listItemIds) : self\n {\n $this->initialized['listItemIds'] = true;\n $this->listItemIds = $listItemIds;\n return $this;\n }", "title": "" }, { "docid": "0857305d281689112d082a35818d4db4", "score": "0.5393026", "text": "public function createItem( $preparedItem ) {\n\t}", "title": "" }, { "docid": "6917b2f909257fe36450436954dd70fb", "score": "0.5391358", "text": "protected function configureListFields(ListMapper $list): void\r\n {\r\n $list\r\n ->addIdentifier('id')\r\n ->add('expediente', EntityType::class, ['class' => ComercialExpediente::class, 'choice_label' => 'titulo'])\r\n ->add('cotizacion')\r\n ->add('personaNif')\r\n ->add('oficina')\r\n ->add('horizontal')\r\n ->add('vertical')\r\n ->add('missatge')\r\n ->add('nivel')\r\n ->add('updatedAt')\r\n ->add('createdAt')\r\n ->add('active')\r\n ->add('deleted')\r\n ->add('deletedBy')\r\n ->add('deletedAt');\r\n }", "title": "" }, { "docid": "3d72808bdada755158d8540fa6f219ff", "score": "0.538656", "text": "public function __construct()\n {\n $this->ListItem = [];\n // $this->type='ul';\n }", "title": "" }, { "docid": "10b218adb75dd79a7ac0e2fbe4524f88", "score": "0.53806186", "text": "public function createNewItem()\n {\n $Item = new FeedItem($this->version);\n return $Item;\n }", "title": "" }, { "docid": "8f222aac5ab253ce19d1fab7f7e630a3", "score": "0.53774685", "text": "abstract protected function createItemBase( array $values = [], array $listItems = [], array $refItems = [] );", "title": "" }, { "docid": "9719ef90854717a83058c4a194a8f466", "score": "0.5370226", "text": "public function addItemToList(\n RequisitionListInterface $requisitionList,\n RequisitionListItemInterface $requisitionListItem\n );", "title": "" }, { "docid": "9eae31ff10316d1b02e35966b9d2b0e9", "score": "0.53605485", "text": "public function createAmityList($listName)\n {\n $response = null;\n try {\n $response = $this->createListAndFetchId($listName);\n\n } catch (Exception $e) {\n }\n\n $this->handleErrorInCreatingList($response, $listName);\n\n return $response;\n }", "title": "" }, { "docid": "45f25f44ae9b6963360e3d0a96b40a1c", "score": "0.534517", "text": "public function addListItem($text, $depth = 0, $styleFont = null, $styleList = null, $styleParagraph = null) {\n\t\t$text = utf8_encode($text);\n\t\t$listItem = new PHPWord_Section_ListItem($text, $depth, $styleFont, $styleList, $styleParagraph);\n\t\t$this->_elementCollection[] = $listItem;\n\t\treturn $listItem;\n\t}", "title": "" }, { "docid": "a272774d502fb84484f39b597b924a5b", "score": "0.5339578", "text": "private function parent_list_construct($item=array()){#\n\t\tif (!is_a($this->master,\"elem\")){\n\t\t\treturn $item;\n\t\t}\n\t\tarray_push($item,$this->master);\n\t\treturn $this->master->parent_list_construct($item);\n\t}", "title": "" }, { "docid": "1ad3bccc4f6368c595a6a2cf07e26d91", "score": "0.53319645", "text": "public function createItem($data);", "title": "" }, { "docid": "92b0b03cb6a613c4410894ebc4b36939", "score": "0.5327247", "text": "public function add( EchoContainmentList $list ) {\n\t\t$this->lists[] = $list;\n\t}", "title": "" }, { "docid": "f89520377659e07053c42f39c723a99f", "score": "0.5318784", "text": "protected function configureListFields(ListMapper $list)\n {\n $list\n ->addIdentifier('notificationType')\n ->addIdentifier('code')\n ->add('_action', 'actions', array ('actions' => array (\n 'show' => array (),\n 'edit' => array (),\n 'delete' => array ()\n )));\n }", "title": "" }, { "docid": "3f5b65d96d9da35dc491b883b4db7b6a", "score": "0.5313645", "text": "public function addList( SingleList $list ): Lists\n\t{\n\t\t$this->lists[$list->getListId()] = $list;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "af8d05507e29ee443e59fbd3c119a039", "score": "0.5298732", "text": "public function create(PriceListRequest $request)\n {\n\n $price_list = $this->repository->newInstance([]);\n return $this->response->title(trans('app.new') . ' ' . trans('pricelist::price_list.name')) \n ->view('pricelist::price_list.create', true) \n ->data(compact('price_list'))\n ->output();\n }", "title": "" }, { "docid": "89c88c7fcbdd85717590f6a34a84e141", "score": "0.529452", "text": "private function makeNewItem( $file )\r\n {\r\n $item = new Item();\r\n $item->setKey ( $file['key'] );\r\n $item->setReal ( $file['real'] );\r\n $item->setUri ( $file['uri'] );\r\n $item->setName ( $file['name'] );\r\n $item->setExtension ( $file['extension'] );\r\n $item->setType ( $file['type'] );\r\n $item->setSize ( $file['size'] );\r\n $item->setMtime ( $file['mtime'] );\r\n $item->resetSearchKeys( UrlManager::baseIndexPath() );\r\n return $item;\r\n }", "title": "" }, { "docid": "e6306c94bf8c540cbeb0095b82899baa", "score": "0.5274688", "text": "function evel_list_create($scope, $tag, $name, $mode, $localpart = null, $domain = null) {\n global $evel_client;\n $params = func_get_args();\n $result = $evel_client->call('EvEl.list_create', $params);\n return $result;\n}", "title": "" }, { "docid": "e4489ee4caff042dd72ea588e0541d9e", "score": "0.52479476", "text": "public function copyItemToList(\n RequisitionListInterface $requisitionList,\n RequisitionListItemInterface $requisitionListItem\n );", "title": "" }, { "docid": "e4f695b1f902b4bb35c73de58c9fc87f", "score": "0.52399814", "text": "public function newChecklist()\n {\n $this->checklist = new Checklist();\n }", "title": "" }, { "docid": "521823bb463d0b2421c943efe1047f58", "score": "0.5229529", "text": "public function createNewItem() {\n\t\treturn new FeedItem($this->type);\n\t}", "title": "" }, { "docid": "7738a1442aceb1d088aa741e17f2ae56", "score": "0.52185905", "text": "public function setItemsToList(\n RequisitionListInterface $requisitionList,\n array $requisitionListItems\n );", "title": "" }, { "docid": "90c292a7aa68c0ef52157a9965eb9e7e", "score": "0.520907", "text": "public static function create_from_userlist(userlist $userlist) : approved_userlist {\n $newlist = new static($userlist->get_context(), $userlist->get_component(), $userlist->get_userids());\n\n return $newlist;\n }", "title": "" }, { "docid": "a68855c16b2d150da2959a460b4dd96a", "score": "0.51975936", "text": "public function action_addList() {\n $data = Arr::extract($_POST, array('listname', 'rating', 'description', 'typelist'));\n //Arr::_print($data);\n //$data['name'] = trim($this->request->post('listname'));\n// $rating = trim($this->request->post('rating'));\n// $description = trim($this->request->post('description'));\n// $type = $this->reques->post('type');\n if(!$this->user->id) exit('error - action_addList - not user');\n \n $list_id = Model::factory('ElectList')->add($this->user->id, $data);\n\n $res = Model::factory('ElectUserList')->add($this->user->id, $list_id);\n if(!$res) exit('error - action_addList');\n else $this->redirect('/');\n }", "title": "" }, { "docid": "446315b740acabd80207ce4b0c86467b", "score": "0.51678526", "text": "public function configureListFields(ListMapper $list)\n {\n $list\n ->addIdentifier('status', null, ['label' => 'Status'])\n ->add('_action', null, [\n 'actions' => [\n 'delete' => [],\n 'edit' => []\n ]\n ]);\n }", "title": "" }, { "docid": "9bf67358cc32a17de28499d76fff7929", "score": "0.51545215", "text": "public function createNewList(Request $request)\n\t{\n\t\t//dd($request->listName);\n\t\tDB::table('lists')->insertOrIgnore([\n\t\t\t\"name\" => $request->listName,\n\t\t\t\"user_id\" => Auth::user()->id\n\t\t]);\n\t\treturn redirect(url('/yourLists'));\n\t}", "title": "" }, { "docid": "ce840595fee95266cd1db8dcc362a365", "score": "0.51507527", "text": "public function setList($list = array())\n {\n if (!is_array($list)) {\n $list = ArrayUtils::iteratorToArray($list);\n }\n\n $this->list = $list;\n }", "title": "" }, { "docid": "586d4d50cd58e737f4a1a60df13eee17", "score": "0.5128624", "text": "public function auto_build_items($item_list,$data){\r\n\t\treturn\r\n\t\t\t ($this->model->crud_config['can_create'] ? \r\n\t\t\t \tComponent::add_button($this->model->table_name) : '').\r\n\t\t\t'<div class=\"row col-md-12 centered\">'.$item_list.'</div>';\r\n\t}", "title": "" }, { "docid": "f16196db88ddae07350ddc642ac368f1", "score": "0.51200056", "text": "public function buildListTemplate()\n {\n $this->addListColumn(\n SharpListTemplateColumnConfig::create(\"titre\")\n ->setSize(3)\n ->setHeading(\"Titre\")\n );\n\n $this->addListColumn(\n SharpListTemplateColumnConfig::create(\"soustitre\")\n ->setSize(3)\n ->setHeading(\"Sous-titre\")\n );\n }", "title": "" }, { "docid": "7dd8dd7647ff84985e37bdb250c165f8", "score": "0.51139677", "text": "public function gETSkuListItemIdSkuListRequest($sku_list_item_id)\n {\n // verify the required parameter 'sku_list_item_id' is set\n if ($sku_list_item_id === null || (is_array($sku_list_item_id) && count($sku_list_item_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $sku_list_item_id when calling gETSkuListItemIdSkuList'\n );\n }\n\n $resourcePath = '/sku_list_items/{skuListItemId}/sku_list';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($sku_list_item_id !== null) {\n $resourcePath = str_replace(\n '{' . 'skuListItemId' . '}',\n ObjectSerializer::toPathValue($sku_list_item_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 }", "title": "" }, { "docid": "33f02c0b716c5974a68fb40e1439b5f9", "score": "0.51106083", "text": "public function __construct()\n {\n $this->productList = new ProductList();\n }", "title": "" }, { "docid": "42f88d444648be858e28567754273cc3", "score": "0.51045936", "text": "public function actionCreate()\n {\n $request = Yii::app()->request;\n $notify = Yii::app()->notify;\n $list = new CustomerSuppressionList();\n\n if ($request->isPostRequest && ($attributes = (array)$request->getPost($list->modelName, array()))) {\n $list->attributes = $attributes;\n $list->customer_id = (int)Yii::app()->customer->getId();\n \n if (!$list->save()) {\n $notify->addError(Yii::t('app', 'Your form has a few errors, please fix them and try again!'));\n } else {\n $notify->addSuccess(Yii::t('app', 'Your form has been successfully saved!'));\n }\n\n Yii::app()->hooks->doAction('controller_action_save_data', $collection = new CAttributeCollection(array(\n 'controller' => $this,\n 'success' => $notify->hasSuccess,\n 'email' => $list,\n )));\n\n if ($collection->success) {\n $this->redirect(array('suppression_lists/index'));\n }\n }\n\n $this->setData(array(\n 'pageMetaTitle' => $this->data->pageMetaTitle . ' | '. Yii::t('suppression_lists', 'Suppression lists'),\n 'pageHeading' => Yii::t('suppression_lists', 'Create new'),\n 'pageBreadcrumbs' => array(\n Yii::t('suppression_lists', 'Suppression lists') => $this->createUrl('suppression_lists/index'),\n Yii::t('app', 'Create new'),\n )\n ));\n\n $this->render('form', compact('list'));\n }", "title": "" }, { "docid": "7c82134a5b0216514a0d20f490f89c72", "score": "0.5094842", "text": "public function buildQueryList($list_name)\n {\n try\n {\n $em = EntityManagerSingleton::getInstance();\n\n // Get the query list\n $query_list = $em->getRepository('Library\\Model\\Shop\\ShopList\\QueryList')->findOneByName($list_name);\n $new_list = false;\n\n // Create a new list if it doesn't exist\n if (!($query_list instanceof QueryList))\n {\n $query_list = new QueryList();\n $new_list = true;\n $query_list->setDateModified();\n $query = '';\n $query_list->setQuery($query);\n $query_list->setName($list_name);\n $em->persist($query_list);\n\n $em->flush();\n }\n\n // Populate the list with the query\n if (!$new_list)\n {\n $query = $query_list->getQuery();\n $connection = $em->getConnection();\n\n if (!is_null($query_list->getId()))\n {\n $connection->executeQuery(\"DELETE FROM `shop_list_elements` WHERE `shop_list_elements`.shop_list_id = \" . $query_list->getId());\n }\n\n $results = $connection->fetchAll($query);\n $skus = $this->getSkusFromResults($results);\n\n $count = 0;\n\n if (!empty($skus))\n {\n foreach ($skus as $sku)\n {\n $shop_list_line_item = new ShopListElement();\n $shop_list_line_item->setName($sku->getProduct()->getName());\n $shop_list_line_item->setSku($sku);\n $shop_list_line_item->setSortOrder($count);\n $shop_list_line_item->setQuantity(1);\n $shop_list_line_item->setNumber($sku->getProduct()->getProductCode());\n $shop_list_line_item->setShopList($query_list);\n $shop_list_line_item->setStatus($sku->getRealStatus());\n $shop_list_line_item->setPrice($sku->getProduct()->getBasePrice());\n $shop_list_line_item->setWeight(0);\n $shop_list_line_item->setTax(0);\n $count++;\n\n $em->persist($shop_list_line_item);\n }\n }\n }\n\n $em->flush();\n }\n catch (\\Exception $ex)\n {\n echo $ex->getMessage() . '\\n';\n exit(1);\n }\n }", "title": "" }, { "docid": "b47bbf39f18ea46470405194869c0c02", "score": "0.50927514", "text": "function createItem($item) {\n\t\tglobal $dbh;\n\t\t$stmt = $dbh->prepare('INSERT INTO ITEM VALUES (NULL, ?, ?, ?, ?)');\n\t\t$success = $stmt->execute(array($item['content'],\n\t\t\t\t\t\t\t\t\t\t$item['image'],\n\t\t\t\t\t\t\t\t\t\t$item['checked'],\n\t\t\t\t\t\t\t\t\t\t$item['listID']));\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "26793bfd85c650cdf1d91f6cebfd915e", "score": "0.5087893", "text": "public function generate_item_list($data=null){\r\n\t\treturn $this->auto_build_items($this->auto_build_item_list($data),$data);\r\n\t}", "title": "" }, { "docid": "d81dca0fbd03c3dd7c64522473fce06f", "score": "0.5082772", "text": "function newList($_options = false) {\n\t\tglobal $model;\n\n\t\t$label = \"List\";\n\t\t$action = $this->path.\"/list\";\n\n\t\t// overwrite defaults\n\t\tif($_options !== false) {\n\t\t\tforeach($_options as $_option => $_value) {\n\t\t\t\tswitch($_option) {\n\n\t\t\t\t\tcase \"label\" : $label = $_value; break;\n\t\t\t\t\tcase \"action\" : $action = $_value; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$_ = '';\n\n\t\t$_ .= $model->link($label, $action, array(\"class\" => \"button primary key:esc\", \"wrapper\" => \"li.back\"));\n\n\t\treturn $_;\n\t}", "title": "" }, { "docid": "ee7c5b29d7318f90a45a374ce9ff61ca", "score": "0.5065657", "text": "function CreateDefaultListItemEntity()\n {\n\t\t$result = $this->sendRequest(\"CreateDefaultListItemEntity\", array());\n\t\treturn $this->getResultFromResponse($result);\n }", "title": "" }, { "docid": "50eeb8e2e2d6002e86bfc25e6d4b224d", "score": "0.5061477", "text": "public function newListItem($id)\n\t{\n\t\treturn view('newListItem', compact(\"id\"));\n\t}", "title": "" }, { "docid": "4f92f59061f5112ecbaecc1dde667836", "score": "0.50531346", "text": "public function createList($body)\n {\n $response = $this->post(Resources::$Contactslist, ['body' => $body]);\n if (!$response->success()) {\n $this->throwError('MailjetService:createList() failed', $response);\n }\n return $response;\n }", "title": "" }, { "docid": "9d4956a1815006d0f5f6eb893d15669c", "score": "0.50505143", "text": "public function setItemListOrder($itemListOrder) {\n $this->properties['itemListOrder'] = $itemListOrder;\n\n return $this;\n }", "title": "" }, { "docid": "26324926487c385bf2daa8a5fe0bbcf7", "score": "0.50461245", "text": "function addToList($list, $newItem, $valueList)\n{\n\t$newList = $list;\n\tif($list != NULL)\n\t{\n\t\t// if the list is comprised of only the new item, just set the list to the new item value\n\t\tif($list == $newItem)\n\t\t{\n\t\t\t$newList = $newItem;\n\t\t}\n\t\t// if the list is comprised of at least one other value besides the new item, append the new item with comma separation\n\t\telse\n\t\t{\n\t\t\t$listItems = explode(', ', $list); // break string of list items into an array\n\t\t\t$listItemsOrig = $listItems;\n\t\t\t$itemsAdded = array();\n\t\t\t\n\t\t\t// only append if there is an item to add\n\t\t\tif($newItem != NULL)\n\t\t\t{\n\t\t\t\t// check each value in new items against list - only add if not already on list\n\t\t\t\t$newItems = explode(', ', $newItem); // break new item string into an array\n\t\t\t\tforeach($newItems as $thisNewItem)\n\t\t\t\t{\n\t\t\t\t\t// only append the new item if not already on list\n\t\t\t\t\tif(!in_array($thisNewItem, $listItems))\n\t\t\t\t\t{ \n\t\t\t\t\t\t$newList .= ', '.$thisNewItem;\n\t\t\t\t\t\tarray_push($listItems, $thisNewItem); \n\t\t\t\t\t\tarray_push($itemsAdded, $thisNewItem); \n\t\t\t\t\t} // end if\t!in_array($thisNewItem, $listItems)\t\t\t\n\t\t\t\t} // end foreach new item\n\t\t\t} // end if $newItem\n\t\t\t\n\t\t\t// if no new items to add, just declare empty $newItems array\n\t\t\telse\n\t\t\t{ \n\t\t\t\t$newItems = array();\n\t\t\t}\n\t\t\t\n\t\t\t// check for deleted values from new items and remove from list\n\t\t\t//$listItemsCopy = $listItems; // create a copy of the original list items array to compare against later\n\t\t\t$itemsRemoved \t= array();\n\t\t\t$itemsKept \t\t= array();\n\t\t\tforeach($listItems as $thisListItem)\n\t\t\t{\n\t\t\t\t// if list items includes a value that is not on the value list and not in the new items, it is a deleted new item\n\t\t\t\tif(!in_array($thisListItem, $valueList) and !in_array($thisListItem, $newItems))\n\t\t\t\t{\n\t\t\t\t\t// can't use str_replace, because of false positives (e.g. TV, Apple TV) - must remove item from array and then unexplode to recreate string\n\t\t\t\t\t$key = array_search ($thisListItem, $listItems); // find the position of the value in the array of list items\n\t\t\t\t\tif($key !== false) { unset($listItems[$key]); } // remove that value\n\t\t\t\t\tarray_push($itemsRemoved, $thisListItem);\n\t\t\t\t} // end if !in_arrays\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray_push($itemsKept, $thisListItem);\n\t\t\t\t}\n\t\t\t} // end foreach list item\n\t\t\t$newList = implode(', ', $listItems); // reconstruct string from duplicate array of list items\n\t\t\t/*\n\t\t\t$newList = \n\t\t\t'<br/>listItemsOrig: '.implode(', ', $listItemsOrig).'<br/>'.\n\t\t\t'$newItems: '.implode(', ', $newItems).'<br/>'.\n\t\t\t'$itemsAdded: '.implode(', ', $itemsAdded).'<br/>'.\n\t\t\t'$itemsKept: '.implode(', ', $itemsKept).'<br/>'.\n\t\t\t'$itemsRemoved: '.implode(', ', $itemsRemoved).'<br/>'.\n\t\t\t'$newList: '.implode(', ', $listItems).'<br/>'\n\t\t\t;\n\t\t\t*/\n\t\t} // end else\n\t} // end if $list\n\telse { $newList = $newItem; } // if the list is comprised of only the new item, just set the list to the new item value\n\treturn($newList);\n}", "title": "" }, { "docid": "319680684c03ed530605d1a025e83abf", "score": "0.5045752", "text": "protected function createItem($identifier, array $data)\n {\n return new Item($identifier, $data, $this->store);\n }", "title": "" }, { "docid": "85ba68cada5b626154d7587b1e221915", "score": "0.5041107", "text": "public function setListId($listId)\n {\n $this->listId = $listId;\n\n return $this;\n }", "title": "" }, { "docid": "2464275e0420299d39138e3303baae9a", "score": "0.50335664", "text": "protected function configureListFields(ListMapper $listMapper)\n {\n $listMapper\n ->addIdentifier('title')\n ->add('createdAt')\n ;\n }", "title": "" }, { "docid": "f9a48b8ce5fa47c0c9abd99573d7e661", "score": "0.50297153", "text": "public function setList($list)\n {\n if (is_string($list)) {\n htmlspecialchars($list);\n $this->_list = $list;\n }\n }", "title": "" }, { "docid": "c1b783c16d7c973c391d2ff84026b232", "score": "0.502097", "text": "public function create()\n {\n return view('lists.create');\n }", "title": "" }, { "docid": "88c30f02958390848349e2326f730d8c", "score": "0.5017795", "text": "static public function factory($item)\n\t{\n\t\treturn new Item($item);\n\t}", "title": "" }, { "docid": "8307361d74c6c4f473349346bd239169", "score": "0.50134", "text": "public function __construct($itemGroupId = null, $position = null, $title = null, $description = null, $indicatorDimension = null, $isText = null, $fontSize = null, \\StructType\\ItemList $itemList = null)\n {\n $this\n ->setItemGroupId($itemGroupId)\n ->setPosition($position)\n ->setTitle($title)\n ->setDescription($description)\n ->setIndicatorDimension($indicatorDimension)\n ->setIsText($isText)\n ->setFontSize($fontSize)\n ->setItemList($itemList);\n }", "title": "" }, { "docid": "4a48b117fb86437fe405a0a71f0f19fe", "score": "0.5010997", "text": "public function add_custom_list_item() {\n\t\t//verify nonce\n\t\tcheck_ajax_referer( 'fsn-admin-edit', 'security' );\n\t\t\n\t\t//verify capabilities\n\t\tif ( !current_user_can( 'edit_post', intval($_POST['post_id']) ) )\n\t\t\tdie( '-1' );\n\t\t\n\t\tglobal $fsn_custom_lists;\t\n\t\t$listID = sanitize_text_field($_POST['listID']);\n\t\t$params = $fsn_custom_lists[$listID]['params'];\n\t\t$uniqueID = uniqid();\t\n\t\techo '<div class=\"custom-list-item\">';\t\t\n\t\t\techo '<div class=\"custom-list-item-details\">';\t\t\t\t\n\t\t\t\tforeach($params as $param) {\n\t\t\t\t\t$param_value = '';\n\t\t\t\t\t$param['param_name'] = (!empty($param['param_name']) ? $param['param_name'] : '') . '-paramid'. $uniqueID;\n\t\t\t\t\t$param['nested'] = true;\n\t\t\t\t\t//check for dependency\n\t\t\t\t\t$dependency = !empty($param['dependency']) ? true : false;\n\t\t\t\t\tif ($dependency === true) {\n\t\t\t\t\t\t$depends_on_field = $param['dependency']['param_name']. '-paramid'. $uniqueID;\n\t\t\t\t\t\t$depends_on_not_empty = !empty($param['dependency']['not_empty']) ? $param['dependency']['not_empty'] : false;\n\t\t\t\t\t\tif (!empty($param['dependency']['value']) && is_array($param['dependency']['value'])) {\n\t\t\t\t\t\t\t$depends_on_value = json_encode($param['dependency']['value']);\n\t\t\t\t\t\t} else if (!empty($param['dependency']['value'])) {\n\t\t\t\t\t\t\t$depends_on_value = $param['dependency']['value'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$depends_on_value = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$dependency_callback = !empty($param['dependency']['callback']) ? $param['dependency']['callback'] : '';\n\t\t\t\t\t\t$dependency_string = ' data-dependency-param=\"'. esc_attr($depends_on_field) .'\"'. ($depends_on_not_empty === true ? ' data-dependency-not-empty=\"true\"' : '') . (!empty($depends_on_value) ? ' data-dependency-value=\"'. esc_attr($depends_on_value) .'\"' : '') . (!empty($dependency_callback) ? ' data-dependency-callback=\"'. esc_attr($dependency_callback) .'\"' : '');\n\t\t\t\t\t}\n\t\t\t\t\techo '<div class=\"form-group'. ( !empty($param['class']) ? ' '. esc_attr($param['class']) : '' ) .'\"'. ( $dependency === true ? $dependency_string : '' ) .'>';\n\t\t\t\t\t\techo FusionCore::get_input_field($param, $param_value);\n\t\t\t\t\techo '</div>';\n\t\t\t\t}\n\t\t\t\techo '<a href=\"#\" class=\"collapse-custom-list-item\">'. __('collapse', 'fusion') .'</a>';\n\t \t\techo '<a href=\"#\" class=\"remove-custom-list-item\">'. __('remove', 'fusion') .'</a>';\n\t\t\techo '</div>';\n\t\techo '</div>';\n\t\texit;\n\t}", "title": "" }, { "docid": "9606ca92e6cfdb03c6bcbaca9a4ca748", "score": "0.5010777", "text": "public function setList(bool $list): static\n {\n if ($list) {\n $this->setBoolean(false);\n }\n\n $this->list = $list;\n return $this;\n }", "title": "" }, { "docid": "64da24a01a6b2f8a86b8b3897bb373ce", "score": "0.50100607", "text": "public function makeFieldList() {}", "title": "" }, { "docid": "ce8b2bb9ba0523524a919063c0caea47", "score": "0.50067127", "text": "public function getItem_list()\r\n {\r\n return $this->item_list;\r\n }", "title": "" }, { "docid": "2ce497950d14f4902af65ac5b1ce1646", "score": "0.50063914", "text": "public function ITEM($itemid) { $this->__construct($itemid); }", "title": "" }, { "docid": "b05d7c24a1174eeda4fdbcf0268f336c", "score": "0.50062495", "text": "protected function configureListFields(ListMapper $listMapper)\n {\n $listMapper\n ->addIdentifier('id')\n ->addIdentifier('title')\n ->add('img')\n ->add('created')\n ;\n }", "title": "" }, { "docid": "4d00d26242af089227a9146de3886541", "score": "0.50050634", "text": "public function pushDetailsList($list)\n {\n $this->data['ecommerce']['detail']['actionField']['list'] = $list;\n }", "title": "" }, { "docid": "2bfabcbbf6236148e32a2599aa61027c", "score": "0.5004896", "text": "public function store(Request $request)\n {\n $validated = $request->validate([\n 'user_id' => ['prohibited'],\n 'name' => ['required', 'string'],\n 'description' => ['nullable', 'string'],\n 'type' => ['required', 'in:songs,albums,artists'],\n 'cover' => ['nullable', 'file', 'image'],\n ]);\n \n $validated['user_id'] = auth()->user()->id;\n\n $list = ItemList::create($validated);\n\n $params = [\n 'user' => auth()->user()->name,\n 'list' => $list->name,\n ];\n return redirect()->route('user.list.show', $params)->with('message', 'Successfully created a new list.');\n }", "title": "" }, { "docid": "16ce6548074c97c87f426aacab8311c6", "score": "0.49944708", "text": "public function __construct($id, $item);", "title": "" }, { "docid": "92693552961b213b114c5a5669cbaf07", "score": "0.49906093", "text": "protected function configureListFields(ListMapper $listMapper) {\n $listMapper\n ->addIdentifier('id')\n ->add('title')\n ;\n }", "title": "" }, { "docid": "77a658aca1e024841659e2e355402c4b", "score": "0.4988237", "text": "protected function setListState($list)\n\t{\n\t\t$validReqOrdering = (!empty($list['ordering']) and strpos('null', $list['ordering']) !== null);\n\t\t$ordering = $validReqOrdering ? $list['ordering'] : $this->defaultOrdering;\n\n\t\t$validReqDirection = (!empty($list['direction']) and in_array(strtoupper($list['direction']),\n\t\t\t\t['ASC', 'DESC', '']));\n\t\t$direction = $validReqDirection ? $list['direction'] : $this->defaultDirection;\n\n\t\t$session = JFactory::getSession();\n\t\tif (!empty($list['fullordering']))\n\t\t{\n\t\t\t$this->processFullOrdering($list, $session, $ordering, $direction);\n\t\t}\n\n\t\t$session->set($this->context . '.ordering', \"$ordering $direction\");\n\t\t$this->setState('list.fullordering', \"$ordering $direction\");\n\t\t$this->setState('list.ordering', $ordering);\n\t\t$this->setState('list.direction', $direction);\n\n\t\t$alreadyProcessed = ['ordering, direction, fullordering'];\n\t\tforeach ($list as $item => $value)\n\t\t{\n\t\t\tif (!in_array($item, $alreadyProcessed))\n\t\t\t{\n\t\t\t\t$this->setState(\"list.$item\", $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "09d8e63a7f51d2e5bc2ca18d27145d6c", "score": "0.49863395", "text": "public function create(array $data): ChainableItemInterface;", "title": "" }, { "docid": "7d34cc2c39d34e9a53427893271a9542", "score": "0.4983536", "text": "protected function configureListFields(ListMapper $listMapper) {\n $listMapper\n ->addIdentifier('id')\n ->add('title')\n ->add('active')\n ;\n }", "title": "" }, { "docid": "5033038c5d9938819060bf1b8c172e3a", "score": "0.49796462", "text": "public static function ul($list, $attributes = array()) {\n\t\treturn static::listing('ul', $list, $attributes);\n\t}", "title": "" }, { "docid": "997c67f0b075ef72a8a7a9c34e53ca98", "score": "0.49727744", "text": "public function __construct($item) {\n\t\t$this->item = $item;\n\t}", "title": "" }, { "docid": "f3ea7b4a6bf49ced674b9a8b761fb24b", "score": "0.49672434", "text": "public function __construct(PriceList $price_list = null)\n {\n $this->price_list = $price_list;\n }", "title": "" }, { "docid": "c97147247bbba5aab7a6e37939e5a2ec", "score": "0.49655882", "text": "public function generateList() {}", "title": "" }, { "docid": "c97147247bbba5aab7a6e37939e5a2ec", "score": "0.49655882", "text": "public function generateList() {}", "title": "" } ]
07b94efe3feb7b642f67b99aef47ae1f
Index view Page Ends Here blog view Page starts Here
[ { "docid": "ccbdd58d9b04eda2f1b9ccf47af217d8", "score": "0.6936167", "text": "public function blog(){\n $this->load->view('user/header');\n $this->load->view('user/blog');\n $this->load->view('user/footer');\n }", "title": "" } ]
[ { "docid": "15783bd6ea3bf200dd1b9250d9449310", "score": "0.8225443", "text": "public function index()\n\t{\n\n\t\t\n\n\n\t\texit('这里是blog主页');\n\t}", "title": "" }, { "docid": "6500a4781770d3fda671de6bf82eb441", "score": "0.8068799", "text": "public function index() {\n\t\t\tredirect('blog/blogPosts');\n\t\t}", "title": "" }, { "docid": "92b2b5bc9c39be169d1a811bf4f00790", "score": "0.800243", "text": "public function indexAction()\n {\n $blogposts = new Rwtt_Entity_Collection_BlogPost();\n foreach ($blogposts as $post) {\n $this->view->items = $post;\n }\n $this->view->title = 'Blog';\n }", "title": "" }, { "docid": "fbbdbabb5e6af9c4cd97890d3c0364a4", "score": "0.77649915", "text": "public function indexAction(){\n\t $Blog = new Blog($this->_db, new User($this->_db, $_SESSION['user']['id']));\n\t $this->_template->posts = $Blog->find();\n\t }", "title": "" }, { "docid": "a31c03f2fddfc8243933ad7a83f85ff9", "score": "0.7727645", "text": "public function IndexAction(){\n\t\t//$this->vars->someVariable = true;\n\t\t\n\t\t// get the blog data\n\t\t$blogPostProvider = new Model_Data_BlogPostProvider();\n\t\t$blogPosts = $blogPostProvider->getCurrent(5);\n\t\t$this->vars->blogPosts = $blogPosts;\n\t}", "title": "" }, { "docid": "e3d14dc5fc436bbe5bbcd4196726f608", "score": "0.76293945", "text": "public function index()\n {\n if(isLoggedIn()) {\n redirect('posts');\n }\n\n # Using a pages directory in view so need to load pages/index\n $data = [\n 'title' => 'Post Publisher!',\n 'description' => 'Simple network for sharing posts built on a MVC PHP \n framework',\n ];\n\n $this->view('pages/index', $data);\n }", "title": "" }, { "docid": "ff0ee8d606e4528354d25d5c2480ec91", "score": "0.75327796", "text": "public function home(){\n $posts = $this->post->getLastPosts();\n $view = new View(\"Home\");\n $view->generate(array('posts' => $posts));\n }", "title": "" }, { "docid": "2854171b0c53e342ed627fdc98dce4b8", "score": "0.7531884", "text": "public function index()\n {\n $blog = Blog::paginate(5);\n return view('admin.blog.index')->with(get_defined_vars()); }", "title": "" }, { "docid": "976f67a563136503813382b026d42c31", "score": "0.75188655", "text": "function indexview() {\n // init and connect to DB\n $db = dbConnect();\n\n // get default number of latest posts\n $posts = getPosts($db);\n $clickableTitle = true;\n $withCommentsAbstract = true;\n\n // we can close the DB connection now.\n $db = null;\n\n printHeader();\n\n // returned something?\n if ($posts) {\n // print all posts returned\n foreach ($posts as $post) {\n printPost($post, $clickableTitle, $withCommentsAbstract);\n }\n printMoreButton();\n } else {\n echo \" <p>No posts found.</p>\\n\";\n }\n\n printFooter();\n}", "title": "" }, { "docid": "8afd3ec79e9538a8b8f9c411ae9c8f77", "score": "0.7511074", "text": "public function homeBlog()\n {\n $articles = $this->articleDAO->getArticles();\n echo $this->twig->render('home_blog.html.twig', [\n 'articles' => $articles,\n ]);\n }", "title": "" }, { "docid": "8885328f6ab204c1f51ef92cb3beed0c", "score": "0.7391191", "text": "public function index(){\n //key value array representing the variables that represent titles of pages \n //ucfirst is a function in PHP to make the first character in a string capitalized\n $data['title'] = 'Latest Posts';\n //load and view are PHP functions\n $this->load->view('templates/header');\n $this->load->view('posts/index', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "ec4f7c32d40a4b8efc35f97cc46b8078", "score": "0.738401", "text": "public function blog() {\n $data = [\n 'posts' => $this->postModel->allPosts()\n ];\n\n $this->view('pages/blog', $data);\n }", "title": "" }, { "docid": "f9b935a87d69e1ac7333456bed705440", "score": "0.73777044", "text": "public function index()\n {\n $articles = $this->model->findAll(\"created_at DESC\");\n\n /**\n * 3. Display\n */\n $pageTitle = \"Home\";\n\n \\Renderer::render('articles/index', compact('pageTitle', 'articles'));\n }", "title": "" }, { "docid": "2240df3ea6a5f4ad339a5962b41d15e3", "score": "0.7371514", "text": "public function index()\n {\n $blog = Blog::latest()->paginate(5);\n return view('admin.blog.blog-index', compact('blog'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "3efa850b2462e8a853d5d41455bdbe05", "score": "0.73496544", "text": "public function index(){\n\t\t\t$postParPage = 2;\n\n\t\t\t$totalPostReq = $this->Post->countPublicPosts();\n\t\t\t$totalPost = $totalPostReq[0]->nbPost;\n\n\t\t\t$pagesTotales = ceil($totalPost/$postParPage);\n\n\t\t\tif (isset($_GET['page']) AND !empty($_GET['page']) AND $_GET['page'] > 0 AND $_GET['page'] <= $pagesTotales) {\n\t\t\t\t$_GET['page'] = intval($_GET['page']);\n\t\t\t\t$pageCourante = $_GET['page'];\n\t\t\t}else{\n\t\t\t\t$pageCourante = 1;\n\t\t\t}\n\n\t\t\t$depart = ($pageCourante-1)*$postParPage;\n\t\t\t$limite = $depart .','. $postParPage;\n\n\t\t\t$posts = $this->Post->last($limite);\n\t\t\t$totalPostPublic = $this->Post->countPublicPosts();\n\n\t\t\t$title = $this->pageTitle('Chapitres');\n\n\t\t\t$this->render('posts.index', compact('posts', 'totalPostPublic', 'title', 'pagesTotales', 'pageCourante'));\n\t\t}", "title": "" }, { "docid": "755db8cb7eb5783a69a614db6d4ffe6e", "score": "0.73460245", "text": "public function indexAction()\n {\n // Init redirector for indexAction\n $redirector = $this->_helper->getHelper('Redirector');\n $redirector->setCode(303)\n ->setExit(true)\n ->setGotoSimple('index', 'index', 'blog');\n $redirector->redirectAndExit();\n }", "title": "" }, { "docid": "0b21abcfbf344ab764066a393b08bf67", "score": "0.7340833", "text": "public function blog() { \n $this->show('blog');\n }", "title": "" }, { "docid": "309dcf8e210d749b6ba804ab3de98424", "score": "0.73244035", "text": "public function index () : void\n {\n Auth::isConnect($this->router);\n\n // flash message\n $flash = $this->session->generateFlash();\n\n $title = App::getInstance()\n ->setTitle(\"Administration of the blog\")\n ->getTitle();\n\n $this->render(\"admin.home.index\", $this->router, $this->session, compact(\"title\", \"flash\"));\n }", "title": "" }, { "docid": "d36f7ce508e6a975eb4c88fdc4f457c4", "score": "0.73095423", "text": "public function index () {\n\t\t\n\t\t$picturemodel = $this->model(\"Picture\");\n\t\t\n\t\t$viewbag['pictures'] = $picturemodel->getPictures(0);\n\t\t\n\t\t$this->view('posts/index', $viewbag);\n\t\t\n\t}", "title": "" }, { "docid": "46006eaa50cbd7273f24bab4e5a50864", "score": "0.7304248", "text": "public function homeView() {\n require 'model/Post.php';\n $lastposts = new Post();\n $post = $lastposts->getLastPosts();\n require 'view/accueil.php';\n }", "title": "" }, { "docid": "b981946bd7cb3e8be72ea25207981fcf", "score": "0.72979915", "text": "public function index() {\n // appelle methode getpost dans models\n $posts = $this->postModel->getPosts();\n $data = [\n 'posts' => $posts\n ];\n\n $this->loadView('index', $data);\n }", "title": "" }, { "docid": "efb9176caeb45f88b56424c28777380d", "score": "0.7283156", "text": "public function index()\n {\n // return view('blog::index');\n $blogposts = Blog::latest()->get();\n\n return view('blog::index', [\n 'blogposts' => $blogposts\n ]);\n }", "title": "" }, { "docid": "66c4696b4763ffbc3b18599f06e91024", "score": "0.7262095", "text": "public function index()\n {\n return view(\"blog.index\",['titulo'=>'Inicial','posts'=>$this->meus_posts]);\n }", "title": "" }, { "docid": "0b9b3f42884ac5b3bef185d13c100186", "score": "0.7260472", "text": "public function action_index() {\r\n $this->page_data['content'] = \\Sleek\\View::render('pages/home', $this->page_data, TRUE);\r\n }", "title": "" }, { "docid": "884fe0ba3f9d029c3977d6853b0b6085", "score": "0.7255726", "text": "public function index()\n {\n $posts=Post::latest()->paginate(5);\n return view('blog.index',compact('posts'))->with('i',(request()->input('page',1)-1)*5);\n }", "title": "" }, { "docid": "d17d309001bbc296c093f5103cedabab", "score": "0.725063", "text": "public function index()\n {\n // Listing seperate page. But we donot need it now for our project\n }", "title": "" }, { "docid": "2c07bdb97e38d49ce7579eae35a9da5e", "score": "0.72441936", "text": "public function index(): void\n {\n // Fire an event as a sample\n Event::listen('homeStarter', function ($param) {\n // Log fired event by logger as a sample\n Helper::log('App started and ' . $param . ' event has been fired!');\n });\n Event::trigger('homeStarter', 'Home Starter');\n\n // Checking cache\n if (!$posts = Cache::checkCache('index')) $posts = Cache::cache('index', Blog::index(10));\n\n Helper::render(\n 'Home/home',\n [\n 'page_title' => 'Home',\n 'page_subtitle' => 'Basic PHP MVC',\n\n 'posts' => $posts,\n ]\n );\n }", "title": "" }, { "docid": "b7abba44a46bf9c1112a0c2a91a58ad9", "score": "0.72425777", "text": "public function index()\n {\n //Redirect to /blog URL for post list\n return redirect()->action('BlogController@index');\n }", "title": "" }, { "docid": "5196e7b6b6bdda5952ad252577157ca0", "score": "0.72276396", "text": "public function index($url=null){\n if(!empty($url)){\n $this->displayInsideMainDesign('this is a blog post');\n } else {\n $this->load->model('postcollection');\n $this->displayInsideMainDesign($this->load->view('blog_main', array('posts' => $this->postcollection->getFiveLatest()), true));\n }\n }", "title": "" }, { "docid": "b213a2912688085c88c139dd74365f68", "score": "0.7216631", "text": "public function index()\n {\n // view logged in user profile\n $pageName = trans('blog.blog');\n $user = Auth::user();\n $categories = Category::lists('category','id');\n $positions = Position::lists('position','id');\n \n return view('blog.home', get_defined_vars());\n }", "title": "" }, { "docid": "66726862a0f6b1f46b06c5e9cbc0ee8c", "score": "0.7214837", "text": "public function index()\n {\n $this->Pages = TableRegistry::get('Pages');\n $this->Slides = TableRegistry::get('Slides');\n\n $page = $this->Pages->find()\n ->where([\n 'Pages.title' => 'Home'\n ])\n ->first();\n\n $slides = $this->Slides->find('all')\n ->where([\n 'Slides.is_publish' => 1\n ])\n ->order(['Slides.sorting' => 'ASC']);\n\n $this->set(['page' => $page, 'slides' => $slides]);\n\n $this->viewBuilder()->layout('main'); \n }", "title": "" }, { "docid": "d4bb50c25ef624def339eb75e3af92b1", "score": "0.7196007", "text": "public function index()\n\t{\n\t\t$posts = Post::with('author')->paginate(8);\n\n\t\t$this->layout->content = \\View::make('admin.posts.index')\n\t\t\t->with( 'posts', $posts );\n\t}", "title": "" }, { "docid": "04008fe02a2a16025bc36cdd77886639", "score": "0.71861494", "text": "public function index()\n {\n //fetch 5 posts from database which are active and latest\n $posts = Posts::where('active',1)->orderBy('created_at')->paginate(1);\n // page Heading\n $title = 'Latest Post';\n // return to our view (home.blade.php)\n return view('home')->withPosts($posts)->withTitle($title);\n }", "title": "" }, { "docid": "780590333548ea4e1d917591a790024a", "score": "0.71834815", "text": "public function index()\n {\n $posts = WinkPost::live()\n ->when(Auth::guest(), function ($query) {\n $query->whereHas('tags', function ($query) {\n $query->where('name', App::getLocale());\n });\n })->orderBy('publish_date', 'DESC')\n ->paginate(20, Fields::get('posts'));\n\n if ($posts->isEmpty()) {\n flash()->overlay(trans('page.without_content'), trans('page.sorry'));\n\n return back();\n }\n\n $latest = $posts->shift();\n\n $tags = $this->getTags();\n\n return view('templates.blog', compact('posts', 'latest', 'tags'));\n }", "title": "" }, { "docid": "8563aea7910f5b2f212dc44ab1435cfa", "score": "0.7182205", "text": "public function index()\n {\n //\n return view('blogs.posts.index');\n }", "title": "" }, { "docid": "4570372c6b650f659c11fa3c247cd19f", "score": "0.7179006", "text": "public function index() {\n $posts = Post::all();\n require_once('views/posts/index.php');\n }", "title": "" }, { "docid": "deeb074be39fba18b31baf21204d7648", "score": "0.71764386", "text": "public function IndexAction()\n {\n \t$em = $this->getDoctrine()->getEntityManager();\r\n \t$query = $em->createQuery('SELECT p FROM ApplicationSonataNewsBundle:Post p \n \t\t\t\t\t\t\t\tWHERE p.enabled = 1 \n \t\t\t\t\t\t\t\t\tORDER BY p.publicationDateStart DESC')\n \t\t\t\t->setMaxResults(10);\r\n \t$post = $query->getResult();\r\n \t\r\n \treturn $this->render('ApplicationSonataNewsBundle:Blog:full_page.html.twig', array(\r\n \t\t\t'posts' => $post,\r\n \t));\r\n \t \n }", "title": "" }, { "docid": "a9199d450c627dd18da690aafab77f2b", "score": "0.7172256", "text": "public function index() {\n\t\tif(!$this->isLogged())\n\t\t\theader('Location: '.URL.'/member/login');\n\t\t\n\t\t$posts = $this->post_model->getPosts();\n\t\t\n\t\t// get comments and attached files\n\t\tforeach($posts as $row) {\n\t\t\t$row->comments \t = $this->comment_model->getComments($row->post_id, 3);\n\t\t\t$row->attachImage = $this->attach_model->getAttaches($row->post_id, 'i', 3);\n\t\t\t$row->attachFile = $this->attach_model->getAttaches($row->post_id, 'f', 3);\n\t\t}\n\t\t\n\t\trequire './views/header-timeline.php';\n\t\trequire './views/timeline.php';\n\t\trequire './views/footer.php';\n\t}", "title": "" }, { "docid": "eba60b7218570015436221d3dc875a82", "score": "0.7167773", "text": "public function main()\r\n {\r\n $args = array(\r\n 'displayonindex' => 1,\r\n 'itemsperpage' => $this->getVar('storyhome', 10)\r\n );\r\n $this->redirect(ModUtil::url('News', 'user', 'view', $args));\r\n }", "title": "" }, { "docid": "9a7482b092d9c2673fdb49cd1e1e262f", "score": "0.71499926", "text": "public function index()\n {\n $flashs = Session::getInstance();\n if ($flashs->hasFlashes()) {\n $flashs =$flashs->getFlashes();\n }\n $posts = $this->Post->allPosts();\n $this->render('admin.posts.index', compact('posts', 'flashs'));\n }", "title": "" }, { "docid": "815cac25d749c3b438c11e24e2ed381b", "score": "0.7148187", "text": "public function index()\n\t{\n\t\t$posts = $this->postRepository->getActiveOrderByDate( $this->nbrPages );\n\n\t\treturn view( 'front.index', compact( 'posts' ) );\n\n\t}", "title": "" }, { "docid": "c0ac72da26c1cbc7841d50534014878f", "score": "0.71438485", "text": "public function blogAction()\n {\n View::renderBlade('home/blog');\n }", "title": "" }, { "docid": "b085d5ee072be048010aaae2dbec1c6c", "score": "0.7139418", "text": "public function index()\n {\n return view('blog.index')->with('blogs', blog::all()->take(5));\n }", "title": "" }, { "docid": "6dcea655d232eedfb34ad05f56705c82", "score": "0.71327436", "text": "public function index(){\n\t\t\t\n\t\t\t//$this->view('hello'); // get answer in browser View does not exist, because not hello.php inside views\n\n\t\t\t//$this->view('pages/index'); //uzkraus HOMEPAGE nes padavem i view index.php faila\n\t\t\t\n\t\t\t//$this->view('pages/index', ['title' => 'Welcome']);//pass data to array\n\t\t\t$posts = $this->postModel->getPosts();\n\n\t\t\t$data = [\n\t\t\t\t'title' => 'Welcome',\n\t\t\t\t'posts' => $posts //paduodame duomenis\n\t\t\t];\n\n\n\n\t\t\t$this->view('pages/index', $data); //masyva iskelem atskirai, padavem tik kitamaji\n\n\t\t}", "title": "" }, { "docid": "816e3237620edbab85d44b6205bbb7f9", "score": "0.71297157", "text": "public function indexAction()\n {\n $this->view->canAdd = $this->acl->isAllowed('content', 'add');\n if (!$this->acl->isAllowed('content', 'access')) {\n return;\n }\n\n $this->view->recent = P4Cms_Content::fetchAll(\n P4Cms_Record_Query::create()\n ->setMaxRows(5)\n ->setSortBy(P4Cms_Record_Query::SORT_DATE)\n ->setReverseOrder(true)\n );\n\n // tag the page cache so it can be appropriately cleared later\n if (P4Cms_Cache::canCache('page')) {\n P4Cms_Cache::getCache('page')->addTag('p4cms_content_list');\n }\n }", "title": "" }, { "docid": "ae6c561165ca017ef8b431de150831f8", "score": "0.7126974", "text": "public function index()\n {\n $data = array(\n \"title\" => \"test page\"\n );\n getHead();\n getSlide();\n getContent(\"index\", $data);\n getFooter();\n }", "title": "" }, { "docid": "2be35ac1bda9b22fcddabb553862045f", "score": "0.7125211", "text": "public function actionIndex()\n {\n // using the default layout 'protected/views/layouts/main.php'\n //$posts=Post::model()->findAll();\n $this->render('index');\n }", "title": "" }, { "docid": "3511cf14b5709060aa0c54b7e55d1165", "score": "0.71164525", "text": "public function index()\n\t{\n\t\t$data = array();\n\t\t\t\t\n\t\t$data['posts'] = $this->commonmodel->getRecords('post','','','created_date desc');\n\t\t\n\t\t$data['categories'] = $this->commonmodel->getRecords('category');\n\t\t$data['profile_links'] = $this->load->view('user/profile-links', $data, true);\n\t\t$data['post_capsule_list'] = '';\n\t\t$data['sidebar'] = $this->load->view('includes/sidebar', $data, true);\n\t\t\n\t\t$this->load->view('includes/header');\n\t\t$this->load->view('post/post-list',$data);\n\t\t$this->load->view('includes/footer');\n\t\t\n\t}", "title": "" }, { "docid": "50c63c863643d4d19344e04bd1b145cc", "score": "0.71119136", "text": "public function index()\n {\n $posts = Post::all('created_at', 'updated_at', 'title', 'body')->toArray();\n\n // get a instance of the views\n $this->view('header');\n $this->view('home/index', ['posts' => $posts]);\n $this->view('footer');\n\n }", "title": "" }, { "docid": "23260c97e9938d3de88a2fb09a1957ac", "score": "0.71029294", "text": "public function index()\n \n { $datafooter = Footer::first();\n $datanewletter = newsletter::first();\n $datatitre = homeTitre::all();\n $datalogo = Logo::first();\n $datacategorie = Categorie::all();\n $datatag = Tag::all();\n $dataPost = BlogPost::all();\n\n $dataPostp = BlogPost::paginate(3);\n\n return view('page.blog',compact(\"datacategorie\",\n \"datalogo\",\n \"datatitre\",\n \"datafooter\",\n \"datanewletter\",\n \"datatag\",\n \"dataPost\",\"dataPostp\"));\n }", "title": "" }, { "docid": "05f99cd79e826fecb9294fb85257d9fc", "score": "0.71008873", "text": "public function index()\n {\n \t$blogs = Blog::latest()->get();// get all datas in DESC order.\n \treturn view('blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "bd3667b9de8bce935ffdd755cd23c743", "score": "0.7100044", "text": "public function index()\n {\n \n \n $data['post'] = $this->post_model->get_post();\n\n $data['title'] = 'All posts';\n \n $this->load->view('templates/header', $data);\n $this->load->view('templates/sidebar_header', $data);\n $this->load->view('post/button');\n $this->load->view('post/index', $data);\n $this->load->view('templates/sidebar_footer');\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "15ced075b51a2d0e07ad8b9180b4ead4", "score": "0.7099159", "text": "public function indexAction()\n {\n $posts = Post::getAll();\n\n View::renderTemplate('Posts/index.html', [\n 'posts' => $posts\n ]);\n }", "title": "" }, { "docid": "03d6e403f7e6a95954680fb2f8c8c644", "score": "0.709549", "text": "public function index()\n {\n // get all the blog posts from the database with pagination\n $posts = Post::orderBy('id', 'desc')->paginate(10);\n \n // return a view with the blog posts\n return view('posts.index')->withPosts($posts);\n }", "title": "" }, { "docid": "183c356f12c866c1a8446f2836b38cbf", "score": "0.7086191", "text": "public function index() {\n Router::redirect(\"/posts/all\");\n }", "title": "" }, { "docid": "4ea5af33c5e305deee1de4fe029f82db", "score": "0.70850134", "text": "public function get_index()\n\t{\n\t\t$comments = Blog_Comment::with(array('blog_post', 'user'))->get();\n\n\t\t$this->layout->title = 'Blog Comments';\n\t\t$this->layout->content = View::make('blog.comments.index')->with('comments', $comments);\n\t}", "title": "" }, { "docid": "2a5f7c9223f25c17918a33546acde04d", "score": "0.7082825", "text": "public function index(){\n\t\t$blog=$this->blogRepository->getPaginate($this->nbrePerPage);\n\t\t$links=$blog->render();\n\t\treturn view('blog', compact('blog','links'));\n\t}", "title": "" }, { "docid": "e46320558065a24db47a4579374b8e7e", "score": "0.70806026", "text": "public function actionIndex()\n {\n $articles = $this->mArticles->previewArticles($this->getCurrentPage());\n $this->title .= \"::Articles\";\n $navigator = $this->template(\n \"Views/v_nav.php\",\n ['page' => $this->getCurrentPage(), 'pages' => $this->pages]\n );\n $this->content = $this->template(\n \"Views/v_index.php\",\n ['articles' => $articles, 'navigator' => $navigator]\n );\n }", "title": "" }, { "docid": "dd49ceb107cb2d9c0bcc66aabe1098d7", "score": "0.70688677", "text": "public function index()\n {\n $articles = Article::query()\n ->with([\n 'category'\n ])\n ->orderBy('sort','desc')\n ->orderBy('id', 'desc')\n ->paginate(30);\n\n return view('newblog.index', compact('articles'));\n }", "title": "" }, { "docid": "d0ed729e8e91fcd9734cc27a647c21a0", "score": "0.7067141", "text": "public function index() {\n $this->data['blogdata'] = $this->getRecords();\n $this->data['home'] = $this->common->select_data_by_condition('pages', array(), '*', 'page_id', 'ASC', '', '', array());\n $this->data['testimonials'] = $this->common->select_data_by_condition('testimonial', array(), '*', 'id', 'DESC', '', '', array());\n $this->load->view('home/index', $this->data);\n }", "title": "" }, { "docid": "ad59b716f057c5530ae4dc594148f31b", "score": "0.70653903", "text": "public function index() {\n\t\t$n_post_page=8;\n\t\t// if($agent->isMobile()) $n_post_page=20;\n\t\t//fetch 10 posts from database which are active and latest\n\t\t$posts = Posts::where('active',1)->orderBy('created_at','desc')->paginate($n_post_page);\n\t\t//page heading\n\t\t$title = 'Phim Mới | Phim hay | Xem phim nhanh | Xem phim online | Phim HD vietsub hay nhất | Phim 2017';\n\t\t//return home.blade.php template from resources/views folder\n $lasted=Posts::where('active',1)->orderBy('created_at','desc')->first();\n\t\t\n\t\tif($posts)\n\t\t\treturn view('home')->withPost($lasted)->withPosts($posts)->withTitle($title)->with('lasted',$lasted);\n\t\telse {\n\t\t\treturn View('home')->withMessage(\"No Video\");\n\t\t}\n\t}", "title": "" }, { "docid": "c5e7cab20fb1378ac5eb78d4de186f78", "score": "0.7063528", "text": "public function index()\n\t{\n\t\t$data = array();\n\t\t$data['posts'] = $this->postmodel->getPosts();\n\t\t$data['categories'] = $this->commonmodel->getRecords('category');\n\t\t$data['profile_links'] = $this->load->view('user/profile-links', $data, true);\n\t\t$data['post_capsule_list'] = '';\n\t\t$data['sidebar'] = $this->load->view('includes/sidebar-reading', $data, true);\n\t\t\n\t\t$this->load->view('includes/header');\n\t\t$this->load->view('reading/reading',$data);\n\t\t$this->load->view('includes/footer');\n\t\t\n\t}", "title": "" }, { "docid": "9decfbfe40e1cdcc8cb73021d2e14f08", "score": "0.70617527", "text": "public function index()\n {\n $data['page_title']='Blog';\n $data['main']=Blog::all();\n return view('admin.blog',$data);\n }", "title": "" }, { "docid": "090a6d55ec24e3d87fca6e378bd9d1a0", "score": "0.7060171", "text": "public function index()\r\n {\r\n parent::index();\r\n \r\n // Set web related info\r\n $this->SEO_Tags($this->content);\r\n $this->set_title($this->title);\r\n // Preload js and CSS script that not cover by base\r\n $this->page_js_css();\r\n \r\n $this->load_view();\r\n }", "title": "" }, { "docid": "555d790e2ee63fd3269059c2ecce1582", "score": "0.70592296", "text": "public function getIndex()\n\t{\n $post = Blogpost::visible()\n ->get()\n ->last();\n\n\t\treturn View::make('index')\n ->with('post', $post);\n\t}", "title": "" }, { "docid": "91eeafb6e29fcca9910b35f8bd713455", "score": "0.70536464", "text": "public function index()\n\t{\n\t\t$reviews = Review::where('salon', '2')->orderByRaw(\"RAND()\")->get();\n\n\t\t$blogs = Blog::take(3)->where('publish', 2)->orWhere('publish', 3)\n\t\t\t->with('paras')->orderBy('created_at', 'desc')->get();\n\n\t\treturn view('pages.home', compact('reviews', 'blogs'));\n\t}", "title": "" }, { "docid": "faa0dea383806745828aef50aef4ee5c", "score": "0.7046582", "text": "public function index()\n\t{\n\t\t$posts = $this->post->with(array('user','tags'))\n\t\t \t\t\t\t\t->orderBy('created_at', 'desc')\n\t\t \t\t\t\t\t->paginate(15);\n\n\t\t$gravatar = App::make('simplegravatar');\n\n\t\tforeach($posts as $post)\n\t\t{\n\t\t\t$post->user = $post;\n\t\t\t$url = parse_url($post->url);\n\t\t\t$post->domain = $url['host'];\n\t\t\t$post->gravatar = $gravatar->getGravatar($post->User->email);\n\t\t}\n\n\t\t$this->layout->meta = array('title' => '', 'desc' => '');\n\n\t\t$this->layout->content = View::make('post.index', array('posts' => $posts));\n\t}", "title": "" }, { "docid": "0aa236be5a71a3d7ce13cce4baaa9280", "score": "0.7039854", "text": "public function index(){\n\n\t\t//Retrieve most recent X posts\n $this->paginate = array(\n 'contain' => array(\n 'Comment',\n 'User'\n ),\n 'limit' => 4,\n 'order' => array(\n 'Post.updated' => 'desc'\n )\n );\n\n\t\t$posts = $this->paginate('Post');\n\t\t$this->set('posts',$posts);\n }", "title": "" }, { "docid": "7799974033f996996f977fa5bc928c82", "score": "0.7034567", "text": "public function actionIndex(){\n $posts = Posts::getAll();\n $cnt = Posts::getCount();\n $perPage = Posts::$pageSize;\n echo $this->render('index',true,array('posts'=>$posts, 'cnt'=>$cnt, 'perPage'=>$perPage));\n }", "title": "" }, { "docid": "c15fee3427bd09b5e557214d5c3b9029", "score": "0.7024927", "text": "public function index()\n {\n // $blog = Blog::get();\n return view('backend.inc.blog.index');\n }", "title": "" }, { "docid": "393bbebdcb0d775a874e468f1695d59d", "score": "0.7021014", "text": "public function index() \n { \n $blogs = Blog::paginate(10);\n return view('admin.blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "7173c6042363341736921743917d2521", "score": "0.70118207", "text": "public function index()\n {\n //\n $blogs = Blog::all();\n //################### PAGE NAME #########################\n $page = \"all_blogs\";\n return view('admin.blog.all_blogs',compact('blogs','page'));\n }", "title": "" }, { "docid": "85b89f2692d68d8546d76ac4052785ce", "score": "0.7009703", "text": "public function index()\n {\n //Create a variable and get all blog from database use paginate funtion to use page system\n $posts = Post::orderBy('created_at','desc')->where('public',true)->paginate(10);\n\n //return a view and pass in the above variable\n return view('posts.index',compact('posts'));\n\n }", "title": "" }, { "docid": "640dfe1dbd7f04609a5e6180351b3d0a", "score": "0.70045084", "text": "function index()\n {\n\t\t$site = $this->site_model->get_by_superviseur($this->session->id);\n\t\t$site = ($site) ? $site : null;\n\t\t$data['articles_sites'] = $this->Articles_site_model->get_all_articles_sites($site['id_site']);\n $data['_view'] = 'articles_site/index';\n $this->load->view('layouts/main',$data);\n }", "title": "" }, { "docid": "3da0a2de0524a733b1fafef2a3c0dc0c", "score": "0.7000882", "text": "public function index()\n {\n return view('blog.index');\n }", "title": "" }, { "docid": "f2ed0c4f90e735e129cf5020051beb55", "score": "0.6999816", "text": "public function index()\n\t{ \n\t \n\t $data['title'] = 'Notice Board';\n\t\t$data['main'] = 'public/home';\n\t\t$data['posts'] = $this->post_model->get_post_with_users();\n\t\t$data['slide_post'] = $this->post_model->get_featured_post();\n\t\t$data['navlist'] = $this->category_model->get_category_nav();\n\t\t$data['navlist'] = $this->category_model->get_category_nav2();\n\t\t$data['sidebar'] = $this->post_model->resently_added_post();\n\t\t$this->load->view('template', $data);\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ed308f2f12f2e0cec83d1bc836761f5b", "score": "0.69962776", "text": "public function index()\n {\n $blogs=Blog::orderBy('created_at','desc')->paginate(100);\n \n return view('pages.blog')->with('blogs',$blogs);\n }", "title": "" }, { "docid": "00ff62407a955e7ed860119683cb4102", "score": "0.6993887", "text": "public function index()\n\t{\n\t\t$this->registry['session']->check();\n\t\t//\n\t\t$posts = new Posts;\n\t\t$posts->showAll();\n\t\tif (isset($_GET['p']))\n\t\t{\n\t\t\t$p = $posts->getPosts($_GET['p']);\n\t\t}\n\t\telse $p = $posts->getPosts();\n\t\t$this->registry['template']->set('post',$p);\t\t\n\t\t$this->registry['template']->set('controler','r=Admin/index&');\n\t\t$this->registry['template']->show(\"admin\");\n\t\t$this->registry['template']->unsetAll();\n\t}", "title": "" }, { "docid": "3f7f970d2cdce20ec9220c3ea3613b49", "score": "0.6989542", "text": "public function index()\n\t{\t\n\t\t$tags = Tag::lists('name', 'id');\n\n\t\t$articles = DB::table('articles')->orderBy('created_at', 'desc')->paginate(10);\n\t\t\n\t\t$articles->setPath('blog');\n\n\t\treturn view('blog', compact('tags', 'articles'));\n\t}", "title": "" }, { "docid": "c57aeeebfa5476f86a2b6da83be2a572", "score": "0.6986628", "text": "public function index()\n {\n /*$posts = Post::all();*/\n\t$posts = $this->posts->all();\n return view('blog.index')->with('posts', $posts);\n\n }", "title": "" }, { "docid": "defcf1354e2f450b6c55beb1628bfa78", "score": "0.6979546", "text": "public function index()\n {\n $data = [\n 'articles' => Articles::all()->where('status_id', 2),\n ];\n return view('blog.main', compact('data'));\n }", "title": "" }, { "docid": "f597b3c0b1b213a97810e4f146995a0c", "score": "0.69681716", "text": "function index() {\r\n\t\t\r\n\t\t// get the page content\r\n\t\t$this->Page->recursive = -1;\r\n\t\t$page = $this->Page->read(null, 1);\r\n\t\t$this->set('page', $page);\r\n\t\t\r\n\t\t// set the page title\r\n\t\t$this->set('title_for_layout', $page['Page']['meta_title']);\r\n\t\t\r\n\t\t// get the next 3 x upcoming events\r\n\t\t$this->loadModel('Event');\r\n\t\t$latestUpcomingEvents = $this->Event->find('all', array('conditions' => array('Event.start_date>NOW()'), 'order' => 'Event.start_date asc', 'limit' => 3));\r\n\t\t$this->set('latestUpcomingEvents', $latestUpcomingEvents);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a2d9b0e27529363e282c810d9494d264", "score": "0.696598", "text": "public function index()\n {\n $posts = Post::latest('publication_date')->paginate(20);\n\n return view('blog.index')->withPosts($posts);\n }", "title": "" }, { "docid": "6e1325f5f65ef737db46faf0f6dd7c07", "score": "0.6958802", "text": "public function index()\n {\n $allposts= blogPost::all();\n return view('blog post.index',compact('allposts'));\n }", "title": "" }, { "docid": "ce689f41c1ea400d551e9233faac43f7", "score": "0.6952959", "text": "public function actionIndex()\n\t{\n\t\t// renders the view file 'protected/views/site/index.php'\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\tif($this->beginCache('frontPageTwitterFeed', array('duration'=>1800))) {\t\t\n\t\t\t$this->render('index');\n\t\t$this->endCache(); } \n\t}", "title": "" }, { "docid": "147b6663a71a7a82e0d3e5e9a4465783", "score": "0.6946899", "text": "public function index()\n {\n $news = Blog::where('status_id', 4)\n ->orderBy('created_at', 'desc')\n ->take(2)\n ->get();\n\n return view('frontend.home', compact('news'));\n }", "title": "" }, { "docid": "b8be8bcb14f6f8ff02f7df477b2ccac7", "score": "0.69453907", "text": "public function index()\n {\n return view('blog.index', [\n 'posts' => Post::orderBy('id', 'desc')->paginate(10)\n ]);\n }", "title": "" }, { "docid": "0e8d329435a66843b0d4dc570954549b", "score": "0.6944963", "text": "public function index()\n {\n //$posts = Posts::all();\n //$posts = Posts::orderBy('id','desc')->get();\n //$posts = Posts::where('id','1')->get();\n //$posts = Posts::orderBy('title','desc')->get();\n //$posts = Posts::orderBy('id','desc')->take(1)->get();\n $posts = Posts::orderBy('id', 'desc')->paginate(4);\n return view('blog.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "4adc7bf37a327305faa28a3a94c97ce1", "score": "0.69365424", "text": "public function index()\n {\n try {\n $blog = Blog::paginate(8);\n foreach($blog as $blo){\n $status = $blo->status;\n }\n \n return view('main/blog/index',['blog'=>$blog,'status'=>$status]);\n } catch (\\Throwable $th) {\n return view('main/blog/index',['blog'=>$blog,'status'=> 0]);\n }\n \n }", "title": "" }, { "docid": "d8664750f66a8527b380dfe1f06c0857", "score": "0.6936305", "text": "public function home()\n {\n $articles = Article::latest()\n ->filter(request(['month', 'year']))\n ->get();\n return view('articles.blogs', compact('articles'));\n }", "title": "" }, { "docid": "e556a7e5b023c2acdf42bae4b6775a5b", "score": "0.6934913", "text": "public function index()\n\n { $published_post=DB::table('blog')\n ->where('publication_status',1)\n ->orderBy('blog_id','desc')\n ->get();\n $home=view('pages.home')\n ->with('published_post',$published_post);\n return view('master') \n ->with('main_content',$home);\n\n }", "title": "" }, { "docid": "1be0cd6434f6fc70e934308d8b9edfdc", "score": "0.6934869", "text": "public function indexAction() {\n\t\t\n\t\t// Index view vars go here\n\t\t\n\t}", "title": "" }, { "docid": "4526088ba43666d40a1c202ed5c8cf90", "score": "0.6934577", "text": "public function blog_page() {\n //return view('search.im', compact('divisions'));\n $data['blood_news'] = Content:: where('content_type', 'Blog')->orderByDesc('created_at')->get();\n return view('frontend.view_blog')->with('data', $data);\n }", "title": "" }, { "docid": "6aaba6105f7a4c09eb0c83d105a125b7", "score": "0.6926313", "text": "public function index()\n {\n $posts = Blog::orderBy('created_at', 'desc')\n ->get();\n\n\n return view('blog.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "9ab23cfeed1191732d0688e45c302f19", "score": "0.69140077", "text": "public function index()\n {\n $data=Blog::paginate(3);\n return view('admin.blog.index',['data'=>$data]);\n }", "title": "" }, { "docid": "8c4d655085dd288bbcbd8218b448a579", "score": "0.6911362", "text": "public function index()\n {\n $posts = Post::all();\n return view('bloggers.pages.home')->with('posts', $posts);\n }", "title": "" }, { "docid": "38357c4adde55727c3843347cadd8bda", "score": "0.6910595", "text": "function action_index()\r\n\t{\r\n\t\t$data = $this->model->getData();\t\t\r\n\t\t$this->view->generate('post_view.php', 'template_view.php', $data);\r\n\t}", "title": "" }, { "docid": "2df269530411cfdebbf9c2770312f0c6", "score": "0.6909438", "text": "public function index()\n {\n if (Auth::user()->isAdminOrEditor()) {\n $posts = Post::paginate(5);\n } else {\n $posts = Auth::user()->posts()->pageinate(5);\n }\n\n return view('admin.blog.index', ['model' => $posts]);\n }", "title": "" }, { "docid": "1b3a116dfffeb8c5dab078083e0057ff", "score": "0.68952644", "text": "public function index()\n\t{\n\t\t$blogs = Blog::latest()->get();\n\t\treturn view('blogs.index', compact('blogs'));\n\t}", "title": "" }, { "docid": "8b1fd5daab19d3b19c84c0b8cfa2ec05", "score": "0.6889016", "text": "public function actionIndex()\n\t{\n\t\t$this->layout = '//layouts/col_1';\n\t\t$this->currentPage = 'main';\n\t\t$slider = Slider::model()->findByAttributes(array('place_id'=>$this->place['id']));\n\t\tif ( $slider !== null and $slider->status == Slider::STATUS_PUBLISH ) {\n\t\t\t$this->sliderManager = $slider->galleryManager->getGallery();\n\t\t}\n $this->title = $this->place['meta_title'];\n Yii::app()->clientScript->registerMetaTag($this->place['meta_keywords'], 'Keywords');\n Yii::app()->clientScript->registerMetaTag($this->place['meta_description'], 'Description');\n\t\t$this->render('index');\n\t}", "title": "" } ]
8467169566c10b704caaa889be4a2f0d
Function to get all usernames from the database
[ { "docid": "f9ea263c0512aba1aa2966e057771027", "score": "0.84330004", "text": "function get_all_usernames(){\n\t\t\t\n\t\t\t$this->db->select('username');\n\t\t\t$this->db->from($this->table);\n\t\t\t$q = $this->db->get();\n\t\t\t\n\t\t\treturn $q->result_array();\n\n\t\t}", "title": "" } ]
[ { "docid": "e607a2654f3aa5f287cbbe2e1889022a", "score": "0.8124855", "text": "function getAllUserName()\n{\n\t$log = LoggerManager::getInstance();\n\t$log->debug(\"Entering getAllUserName() method ...\");\n\t$adb = PearDatabase::getInstance();\n\t$query = \"select * from vtiger_users where deleted=0\";\n\t$result = $adb->pquery($query, []);\n\t$num_rows = $adb->num_rows($result);\n\t$user_details = [];\n\tfor ($i = 0; $i < $num_rows; $i++) {\n\t\t$userid = $adb->query_result($result, $i, 'id');\n\t\t$username = getFullNameFromQResult($result, $i, 'Users');\n\t\t$user_details[$userid] = $username;\n\t}\n\t$log->debug(\"Exiting getAllUserName method ...\");\n\treturn $user_details;\n}", "title": "" }, { "docid": "6a98dbe804e3de503d9176b414df4c9d", "score": "0.7921654", "text": "public function getNames() {\n\t\tif( !$this->valid() ) {\n\t\t\treturn array();\n\t\t}\n\t\treturn DB::queryFirstRow(\"SELECT name, username FROM users WHERE uid = %s LIMIT 1\", $this->uid);\n\t}", "title": "" }, { "docid": "0053494970278d242d0543da762be60d", "score": "0.7792033", "text": "function find_all_users() {\n global $db;\n $sql = \"SELECT * FROM users \";\n $sql .= \"ORDER BY last_name ASC, first_name ASC;\";\n $users_result = db_query($db, $sql);\n return $users_result;\n }", "title": "" }, { "docid": "f5bc190ccb466960e3e1935019d787be", "score": "0.76781726", "text": "function getUserNames(){\n global $db;\n \n $stmt=$db->prepare(\"SELECT username FROM ToDo_Login\");\n \n if($stmt->execute() && $stmt->rowCount()>0){\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return ($results);\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "2eeaabbdbb7ac62715d92ae60700a001", "score": "0.7628873", "text": "function get_users()\n\t{\n\t\tglobal $db1;\n\t\t\n\t\t$query = $db1->query(\"SELECT * FROM users\");\n\t\t\n\t\treturn $db1->results($query);\n\t}", "title": "" }, { "docid": "43142ba4d25179d6d3f80556a69b7334", "score": "0.75878644", "text": "function getAllUsers() {\n $sql = \"SELECT user_name, user_id, user_timestamp\n FROM user\n ORDER BY user_name\";\n $stmt = $this->_db->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetchAll();\n return $result;\n }", "title": "" }, { "docid": "5647c6fd5f286a2bb7c291137afc2fc5", "score": "0.75848806", "text": "function getUsers() {\n\tprintResult(dbGetUsers());\n}", "title": "" }, { "docid": "c9357484a87d1447f47b195444ff191b", "score": "0.75778633", "text": "function getUsers() {\n\t$connection = dbConnect();\n\t$sql = \"SELECT * FROM `users`\";\n\t$statement = $connection->query( $sql );\n\n\treturn $statement->fetchAll();\n}", "title": "" }, { "docid": "ceaa5858695d37c6b369f136bd603eb9", "score": "0.75401974", "text": "public function fetchAllNames();", "title": "" }, { "docid": "fa5fe0b1f52929565240cde54534bc06", "score": "0.7493632", "text": "public function retrieve_names()\n {\n $user_id = $this->session->userdata('user_id');\n\n $query = $this->db\n ->select(['firstname','lastname'])\n ->from('users')\n ->where('id',$user_id)\n ->get();\n\n return $query->result();\n\n }", "title": "" }, { "docid": "3601f15e52479d8503bca8dab2c2f779", "score": "0.7435137", "text": "public static function find_user_all()\n {\n return self::find_user_by_sql(\"SELECT * FROM \".self::$table_name);\n }", "title": "" }, { "docid": "92fd531e715f555dbfd599de81d1438f", "score": "0.74340814", "text": "function getUsers()\n{\n\t$stmt = $dbc->query('SELECT * FROM users');\n\t$rows = [];\n\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\t\t$rows[] = $row;\n\t}\n\treturn $rows;\n}", "title": "" }, { "docid": "4f5c3b4b42f127116b1a0d8948c45dba", "score": "0.7427222", "text": "public static function get_users()\r\n {\r\n $obj = dbConn::getConnection();\r\n $stmt = $obj->prepare('SELECT * FROM users');\r\n $stmt->execute();\r\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "1c7e0e0d5a106b83a08a7729ac052b5e", "score": "0.7405332", "text": "public function listUsers(){\n\t\t\t$conn = new Connection();\n\t\t\t$conn->open_connection();\n\t\t\t$dates_users = $conn->execute_query('select nombre from USUARIO');\n\t\t\twhile($row = mysql_fetch_array($dates_users)){\n\t\t\t\t$users[] = $row;\n\t\t\t}\n\t\t\t$conn->close_connection();\n\t\t\treturn $users;\n\t\t}", "title": "" }, { "docid": "24cbe5d225fc20693b73c59254c1ee8e", "score": "0.7402963", "text": "public function getAllUsers()\n {\n if ($this->databaseConnection()) {\n $query = $this->db_connection->prepare('SELECT user_id,first_name,last_name FROM users');\n $query->execute();\n\n if ($query->rowCount() > 0) {\n $user_array = array();\n while ($row = $query->fetch(PDO::FETCH_ASSOC)) {\n $user_array[$row['user_id']] = $row['first_name'] . \" \" . $row['last_name'];\n }\n return $user_array;\n }\n }\n // TODO: This really isn't proper.\n return false;\n }", "title": "" }, { "docid": "4fa674c4d7ab922c22842fd4c2aed3d3", "score": "0.7386371", "text": "public static function getAll()\n {\n $db = static :: GetDB();\n $stmt = $db->query( 'SELECT id, name FROM users' );\n return $stmt->fetchAll( PDO :: FETCH_ASSOC );\n }", "title": "" }, { "docid": "c58db444705ef22de4fc7b98e27bb9d9", "score": "0.7383941", "text": "public function retrieveAllUsers();", "title": "" }, { "docid": "09596c426f994f5501ea9746fd356f80", "score": "0.7357309", "text": "function showAllUsers() {\n\t\t$pdo = getPdo();\n\t\t$stmt = $pdo->prepare(\"SELECT email_u FROM utilisateur\");\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "bf3b596e1a81221cdd8220a6672a9726", "score": "0.7352133", "text": "public static function find_all_users() {\n\n return self::find_this_query(\"SELECT * FROM users\");\n }", "title": "" }, { "docid": "d88546166db158a127c4c858183b1a52", "score": "0.73464054", "text": "function user_getAll()\n{\n\t$users = array();\n\tlist($dbc,$error) = connect_to_database();\n\tif ($dbc)\n\t{\n\t\t$query = \"SELECT firstname,lastname,email from user;\";\n\t\t\n\t\t\n\t\t$result = mysqli_query($dbc,$query);\n\t\tif ($result)\n\t\t{\n\t\t\twhile ($user = mysqli_fetch_array($result))\n\t\t\t{\n\t\t\t\t$users[] = $user;\n\t\t\t}\n\t\t}\n\t}\n\treturn $users;\n}", "title": "" }, { "docid": "ba0981f02e3454d21a1d2938954df646", "score": "0.73367184", "text": "public function getAllUsers()\n {\n $arUsers = array();\n $arUser = array();\n \n $this->db->select( '*' );\n $this->db->from( $this->sTable );\n $this->db->order_by( 'nombre', 'asc' );\n \n $oResult = $this->db->get();\n \n foreach( $oResult->result_array() as $arUser )\n {\n $arUsers[] = $arUser;\n }\n \n return $arUsers;\n }", "title": "" }, { "docid": "c16bc47fbd6a9cdbb3297a9370f476d9", "score": "0.73331696", "text": "public function listUser()\n {\n $query = \"SELECT * FROM user\";\n $rows = [];\n $result = $this->connect->query($query);\n while ($item = $result->fetch_assoc()) {\n $rows[] = $item;\n }\n return $rows;\n }", "title": "" }, { "docid": "af6283971f9c41d9690f9b53f9c9d50a", "score": "0.7288594", "text": "private function get_users() {\n\t\tif(!$this->user) {\n\t\t\treturn (-1);\n\t\t}\n\t\telse {\n\t\t\t$q = 'SELECT username\n\t\t\t\t\tFROM users\n\t\t\t\t WHERE user_id != '.$this->user->user_id.'\n\t\t\t\tORDER BY username ASC';\n\n\t\t\t$results = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t\t$user_list = Array();\n\t\t\tforeach($results as $result) {\n\t\t\t\tarray_push($user_list, $result['username']);\n\t\t\t}\n\t\t\treturn $user_list;\n\t\t}\n\t}", "title": "" }, { "docid": "f13ffb09ae14d241f3cd63fda0ee5e25", "score": "0.7285511", "text": "function getAllUsers(){\n $request = $this -> _db -> query(\"SELECT * FROM `user`\");\n return $request -> fetchAll();\n }", "title": "" }, { "docid": "1ab266d94fd0e1990e8c2cd6286f7472", "score": "0.7282951", "text": "function GetUsers()\n\t\t{\n\t\t\t$sql = \"SELECT * from users\";\n\t\t\t$varsArray = array ();\n\t\t\t\n\t\t\t$result = $this->ExecutePreparedQuery($sql, $varsArray);\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "9a8f4d7ba326d861930c98b1ea633661", "score": "0.7264187", "text": "public function getAllUsers() {\n $db = new PDO(\"mysql:host=\".DB_HOST.\";dbname=\".DB_NAME, DB_USER, DB_PASS);\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n try {\n \n $data = $db->prepare('SELECT staff_id, username, first_name, last_name FROM users ORDER BY first_name');\n $data->execute();\n $result = $data->fetchALL(PDO::FETCH_ASSOC);\n \n return $result;\n } catch(PDOException $db) {\n //echo $errorMsg;\n echo 'ERROR: ' . $db->getMessage();\n }\n }", "title": "" }, { "docid": "2c8733ba77f16e6d94dd33b0a3b34c07", "score": "0.7259541", "text": "public function get_all_users() {\n $result = $this->query(\"select * from User\");\n return $result;\n }", "title": "" }, { "docid": "8009623daf4e073b31a8d9409a9db937", "score": "0.7246285", "text": "public function getAllUsers() {\n\t\treturn $this->query ( \"SELECT * FROM user\" );\n\t}", "title": "" }, { "docid": "aa91d58e38b624c2c3d0f886ab41778f", "score": "0.7242491", "text": "function getAllUsers(){\n $db = DB::getConnection();\n $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );\n try{\n //echo \"traaa<br/>\";\n $st = $db->prepare('SELECT * FROM user');\n $st->execute();\n $results = $st->fetchAll();\n $st->closeCursor();\n\n foreach($results as $r){\n //echo $r['nickname'] . '<br />';\n }\n return $results;\n\n } catch( PDOException $e )\n { echo \"PDO error kod izrade tablice igre: \"\n . $e->getMessage(); }\n}", "title": "" }, { "docid": "b02b07e91f3a3aa660c76d14ce7c1eab", "score": "0.72418916", "text": "function getUsernames() {\r\n\tglobal $users;\r\n\t\r\n\t$usernames = array();\r\n\tforeach ($users as $username) {\r\n\t\t$usernames[] = $username;\r\n\t}\r\n\t\r\n\treturn $usernames;\r\n}", "title": "" }, { "docid": "22f09014c1bc33ae929053ed09a168e9", "score": "0.7239473", "text": "public function get_user_names() {\n \t$data = array(\n \t\t'user_id' => $this->input->post('user_id')\n \t);\n \t\n \t$users = $this->user_model->getUserNames($data['user_id']);\n \n \techo json_encode($users);\n \texit();\n }", "title": "" }, { "docid": "d26140a1385114d24967cf54f432a9c7", "score": "0.7208089", "text": "public function getAllUsers(){\n\t\ttry{\n\t\t\t$STH = $this->dbo->prepare(\"SELECT * FROM user\");\n\t\t\t$STH->execute();\n\t\t\treturn $STH->fetchAll();\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\treturn array(\"error\"=>$e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "d26140a1385114d24967cf54f432a9c7", "score": "0.7208089", "text": "public function getAllUsers(){\n\t\ttry{\n\t\t\t$STH = $this->dbo->prepare(\"SELECT * FROM user\");\n\t\t\t$STH->execute();\n\t\t\treturn $STH->fetchAll();\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\treturn array(\"error\"=>$e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "0cfc841ed69a2d616e5f565b4f01f13c", "score": "0.7191258", "text": "public function get_all_users(){\n $query = $this->db->get('tb_users');\n return $query->result();\n }", "title": "" }, { "docid": "ddd360a90cf57c42293507aeaf020c27", "score": "0.7188007", "text": "public function get_all_users()\n {\n $query = $this->db->get('pencil_db_users');\n return $query->result_array();\n }", "title": "" }, { "docid": "7c63e8110129f43e51b16e7fabcf41c4", "score": "0.71638924", "text": "public function allUsers(){\n /*\n * @return array \n *\t\n * VARIABLES\n * $conn\t object\t connection object to the database\n * $sql \t object\t holds prepared SQL statements\n * $result object contains details of all users\n * $users array contains all $results paramertised \n */\n /* capture connection */\n\t\t\t$conn = $this->conn;\n \n \t\n // build SQL DML Statement\n $sql = \"SELECT landlordID, landlordName, landlordUsername, landlordPassword, wrong_logins FROM landlords WHERE 1\";\n \n \n $result = $conn->query($sql);\n $users = array();\n $users = $result->fetch_all(MYSQL_ASSOC);\n \n \n return $users;\n }", "title": "" }, { "docid": "f11b61c83154b4ff925dd76fe417fb8f", "score": "0.71549314", "text": "public function getUsers()\n {\n $pdo = $this->_getConnection();\n $sth = $pdo->prepare(\"SELECT ud.uid, ud.username, ud.name, ud.active, ud.gid FROM galleria.userdata AS ud\");\n $sth->execute();\n return $this->_fetchObjects($sth);\n }", "title": "" }, { "docid": "0083609c53500b89ab5aa9b342f58fc3", "score": "0.71511126", "text": "public static function select_all() {\n $db = Database::getDB();\n\n $query = 'SELECT * FROM users ORDER BY lastName';\n $statement = $db->prepare($query);\n $statement->execute();\n $results = $statement->fetchAll();\n\n\n $users = array();\n foreach ($results as $row) {\n $user = new User($row['firstName'], $row['lastName'], $row['userName'], $row['email'], $row['userID']);\n $users[] = $user;\n }\n return $users;\n }", "title": "" }, { "docid": "768fae5069b5e28767877bfa52670cba", "score": "0.7148256", "text": "public function displayAllUsers() {\n $DB = DbConnection::getInstance();\n\n $sql = \"SELECT * FROM user\";\n $result = mysqli_query($DB->getdbconnect(), $sql);\n $array = array();\n\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\n array_push($array, $row);\n }\n\n //free the memory is important with large data !!\n mysqli_free_result($result);\n\n return $array;\n }", "title": "" }, { "docid": "22dcf5b2d81c3241fef4ced3624b9684", "score": "0.71364874", "text": "public function get_all_user()\n {\n $query = \"SELECT * FROM users\";\n return $this->db->query($query)->result_array();\n }", "title": "" }, { "docid": "19b5112a4d15ed8ba2c87d12d4c6c9a5", "score": "0.7135601", "text": "public function list_users(){\r\n\t\t$query = \"SELECT * FROM users ORDER BY idUsers ASC\";\r\n\t\t$this->result = $this->objDb->select($query);\r\n\t\treturn $this->result;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f2e36fb87eb9b544d6293293413966fd", "score": "0.7093017", "text": "public function getUsers()\n {\n // Connects to db\n $this->db->connect();\n\n // SQL statement\n $sql = \"SELECT * FROM users;\";\n\n // Executes SQL statement and fetches data from db\n $result = $this->db->executeFetchAll($sql);\n\n // Returns result\n return $result;\n }", "title": "" }, { "docid": "1fcbaa89c2797c378223f18f45bfe2fc", "score": "0.7089989", "text": "public function get_all_users()\n\t{\n\t\t$users = array();\n\t\t$stmt = $this->conn->prepare(\"SELECT * FROM users\");\n\t\t$stmt->execute();\n\t\t$row = $this->bind_result_array($stmt);\n\n\t\tif(!$stmt->error)\n\t\t{\n\t\t\t$counter = 0;\n\t\t\twhile($stmt->fetch())\n\t\t\t{\n\t\t\t\t$users[$counter] = $this->getCopy($row);\n\t\t\t\t$counter++;\n\t\t\t}\n\t\t}\n\t\t$stmt->close();\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "9a8e9962e9c97f4de6d1f00d83dec37d", "score": "0.70894444", "text": "function getAllUsers()\r {\r global $db ;\r $userListe = $db->query('SELECT idU, name , firstname , email , phone , password , friends FROM users');\r return $userListe;\r }", "title": "" }, { "docid": "346574b6db988f7a4cf05130407ea312", "score": "0.70839167", "text": "public function getUsers();", "title": "" }, { "docid": "859e774fe4407f404703ee8f84b0d887", "score": "0.7076909", "text": "public function getUsers() {\n //sql to return all user objects\n $sql = \"select * from user\";\n $users = array();\n $result = mysqli_query($this->plink, $sql);\n while ($rows = mysqli_fetch_assoc($result)) {\n $users[] = $this->user($rows);\n }\n return $users;\n }", "title": "" }, { "docid": "278bb8e8bba5aa5e973977514bb43235", "score": "0.7072624", "text": "public function getUsers()\n\n {\n\n $sql = \"SELECT * FROM users\";\n\n return $this->executeQuery($sql);\n\n }", "title": "" }, { "docid": "d0e1c436d208fd6bd575e593a495bce0", "score": "0.7057303", "text": "function retrieveUsers() {\n\t\t$conn = $this->databaseConnect();\n\t\t\n\t\t//getting results\n\t\t$result = $conn->query('SELECT * FROM user;');\n\t\t\n\t\t//converting to objects\n\t\t$result->setFetchMode(PDO::FETCH_CLASS, 'User');\n\t\t$users = $result->fetchAll();\n\t\t\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "e50fb88c200e69c0a982824fb6593e89", "score": "0.7049318", "text": "public static function getAllUsers(){\r\n //$users[]=array();\r\n $conn = DBUtil::getConnection();\r\n $sql = \"select * from tb_user\";\r\n $result = $conn->query($sql);\r\n if ($result->num_rows > 0) {\r\n while($row = $result->fetch_assoc()){\r\n $user=self::fillUser($row);\r\n $users[]=$user;\r\n }\r\n }\r\n $conn->close();\r\n return $users;\r\n }", "title": "" }, { "docid": "ff912213401d669c5c94ac29aa158fe5", "score": "0.70489717", "text": "function getUsers() {\r\n $userNames = $this->getUserNames();\r\n $users = [];\r\n foreach ($userNames as $n) {\r\n $u = $this->getUser($n);\r\n if ($u) {\r\n $users[] = $u;\r\n }\r\n }\r\n return $users;\r\n }", "title": "" }, { "docid": "171f9299e5ceb14451e4f1a34ffe374e", "score": "0.70484954", "text": "function user_name($userid) {\n require(ROOT_PATH . 'inc/database.php');\n \n try {\n $name = $db->prepare('SELECT name FROM user_name WHERE id = ?');\n $name->bindValue(1,$userid);\n $name->execute();\n foreach ($name as $nme) {\n $username = $nme['name'];\n return $username;\n }\n } catch (Exception $e) {\n echo \"Data was not retrieved from the database successfully.\";\n exit;\n }\n}", "title": "" }, { "docid": "e8e5fa76c7414c1c45319529349f86ef", "score": "0.7042972", "text": "public function retrieveAll() {\r\n $connManager = new ConnectionManager();\r\n $pdo = $connManager->getConnection();\r\n $sql = \"select * from users\";\r\n $stmt = $pdo->prepare($sql);\r\n $stmt->execute();\r\n $results = [];\r\n while ($row = $stmt->fetch()){\r\n $lastName = $row['last_Name'];\r\n $firstName = $row['first_Name'];\r\n $password = $row['password'];\r\n $contactNum = $row['contact_Num']; \r\n $email = $row['email']; \r\n $telegram = $row['telegram']; \r\n \r\n $user = new User($firstName, $lastName, $password, $email, $contactNum, $telegram);\r\n $results[] = $user;\r\n }\r\n $pdo = null;\r\n $stmt = null;\r\n return $results;\r\n }", "title": "" }, { "docid": "a5d0303cf62574a515dd22edd6d0ec3a", "score": "0.7041554", "text": "public function getAllUsers() {\n $result = $this->db->query(\"SELECT * FROM users\");\n return $result;\n }", "title": "" }, { "docid": "15495ca5829ae8143b84d79886767d4a", "score": "0.70398414", "text": "public static function getAllUsers()\n {\n $records = [];\n $conn = database::connect();\n $stmt = $conn->prepare(\"SELECT * FROM medewerker\");\n $stmt->execute();\n $records = $stmt->fetchAll();\n \n return $records;\n }", "title": "" }, { "docid": "329a5ee26b61204a69507b5b100779ee", "score": "0.7028691", "text": "public function lookup_all()\n {\n $sql = 'SELECT * FROM UserInfoDatabase';\n $stmt = $this->db_handle()->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "584dddab12d6a3fe12ade099bf0c5a1f", "score": "0.70278907", "text": "function listUsers();", "title": "" }, { "docid": "e23535eac662610cfd862a3a2c9a1ad8", "score": "0.70099217", "text": "public function getUsers() {\n $ds = \\dibi::dataSource(\"\n SELECT u.login, u.name_prefix, u.name, u.surname, u.name_suffix, \n CONCAT_WS('', CONCAT(u.name_prefix, ' '), u.name, ' ', u.surname, CONCAT(', ', u.name_suffix)) test,\n (\n SELECT GROUP_CONCAT(r.name)\n FROM users_in_roles uir\n LEFT JOIN users_roles r ON r.id = uir.role_id\n WHERE uir.login = u.login\n ) roles\n FROM users AS u\n \");\n\n return $ds;\n }", "title": "" }, { "docid": "9496559c7372f0ba9bedf162730b8b33", "score": "0.70076936", "text": "public static function listUser() {\n\n //Ordena o droplist pelo nome\n return static::orderBy('nome')->pluck('nome', 'id');\n }", "title": "" }, { "docid": "0069577851ac7196dbc3852c17f6fd91", "score": "0.6994826", "text": "public function getAll()\n {\n return $this->query('SELECT * FROM `users`;');\n }", "title": "" }, { "docid": "27bdf8cb13214c0080c9d29ed7141740", "score": "0.6987156", "text": "function returnUsers($username){\r\n\t\treturn getUsersByName($username);\r\n\t}", "title": "" }, { "docid": "1596c7a14385b5e56ce5884e3ac92b9f", "score": "0.69777805", "text": "public function getUsers(){\n $this->getDB()->query(\"SELECT * FROM users\");\n $result = $this->getDB()->resultSet();\n return $result;\n }", "title": "" }, { "docid": "6bed282da4a20b2a898de3eb81bed441", "score": "0.6975373", "text": "public function getAllUsers()\n {\n try {\n $sql = 'SELECT * FROM `user` ORDER BY id DESC';\n $query = $this->dbh->prepare($sql);\n $query->execute();\n $result = $query->fetchALL(PDO::FETCH_OBJ);\n return $result;\n } catch (PDOException $e) {\n exit('Error :' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "0abd4d0eeac15ca65aae713f8604cf3d", "score": "0.6966626", "text": "public static function find_all() {\n $sql = \"SELECT * FROM users\";\n return self::find_by_sql($sql);\n }", "title": "" }, { "docid": "9294f54497341725c862d2dff66adff0", "score": "0.6963685", "text": "public static function getUsers()\n {\n $users=DB::select(\n \"SELECT * FROM users\n ORDER BY id_user ASC;\"\n );\n return $users;\n }", "title": "" }, { "docid": "ee6c05be51edf56330ca8ff092e3d887", "score": "0.69623077", "text": "function getUsers() {\n $users = DbQueries::getAllUsers();\n\n return $users;\n}", "title": "" }, { "docid": "8afd149a952a535df936645db8ce9f81", "score": "0.695915", "text": "private function getUsers()\n {\n return DB::table('users')->select('title','firstname','lastname','email')->get();\n }", "title": "" }, { "docid": "e46bd144309e4df3b5522090ffde08fe", "score": "0.69550836", "text": "function lista_users()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t $sql=\"SELECT * FROM usuarios\";\n\t\t\t $this->query($sql);\n\t\t\t $this->execute();\n\t\t\t $result=$this->resultSet();\n\t\t\t return $result;\n\t\t\t \n \t\t}catch(PDOException $e){\n \t\t echo \"Error:\".$e->getMessage();\n \t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6030255f69d9e8923a8f8220da5099bc", "score": "0.69476", "text": "public function getusers(){\n \t$query = $this->db->prepare('select * from users');\n \t$query->execute();\n \t$rowscount = $query->rowcount();\n \tif($rowscount >0){\n \t return $data = $query->fetchAll();\t\n \t}else{\n return array();\t\t\n \t}\n }", "title": "" }, { "docid": "ca850cf8bb96b943ea2e850a98129f21", "score": "0.69446045", "text": "function get_all_users_data(){\n\t\tglobal $conn;\n\t\t$table_name = \"user\";\n\t\t$sql = \"SELECT * FROM $table_name\";\n\t\t$result = $conn->query($sql);\n\t\t//echo \"$stmt\";\n\t\tif($result === false) {\n\t\t echo json_encode('Wrong SQL: ' . $sql . ' Error: ' . $conn->errno . ' ' . $conn->error, E_USER_ERROR);\n\t\t return;\n\t\t} else {\n\t\t\t//echo \"Records printing\" . \"<br>\";\n\t\t\t$rows[] = array();\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t\t//foreach($rows as $row){\n\t\t\t\t//echo $row[\"name\"] . \"<br>\";\n\t\t\t//}\n\t\t}\n\t\tunset($rows[key($rows)]);\n\t\techo json_encode(array_values($rows));\n\t}", "title": "" }, { "docid": "2bfd391829e0b7e7662361eee9ea96a5", "score": "0.69425553", "text": "public function getAllUsers () {\n\t\t$filter= self::$_config['userloginattr'] . \"=*\";\n\t\t$toGet = array(self::$_config['userloginattr'], self::$_config['usermailattr'], self::$_config['useridattr']);\n\t\t$search = ldap_search(self::$_connect_resource, self::$_config['usersdn'], $filter, $toGet);\n\t\t$info = ldap_get_entries(self::$_connect_resource, $search);\n\t\t\n\t\t$users = array();\n\t\t\n\t\tforeach ($info as $i) {\n\t\t\tif (isset ($i[self::$_config['userloginattr']])) {\n\t\t\t\t$users[] = array (\n\t\t\t\t\t\"login\" => $i[self::$_config['userloginattr']][0],\n\t\t\t\t\t\"email\" => ( isset ($i[self::$_config['usermailattr']]) ) ? $i[self::$_config['usermailattr']][0] : NULL,\n\t\t\t\t\t\"ldapID\" => $i[self::$_config['useridattr']][0]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "7f772bf12fb42ecdf189dc1b06fa65b9", "score": "0.6940086", "text": "public static function getAllUsers() {\n\t\t$query = Zend_Registry::getInstance ()->entitymanager->createQuery ( 'select u from Default_Model_User u where u.id != 1 group by u.username' );\n\t\t$users = $query->getResult ();\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "a3b4fee7cea93d605ef835920d2ba748", "score": "0.69208026", "text": "public static function retrieveAllUsersFromDB()\n {\n $userList = array();\n $db = Database::getInstance();\n $connection = $db->getConnection();\n if($connection->connect_errno)\n {\n return null;\n }\n $result = $connection->query(\"SELECT * FROM users\");\n if($result)\n {\n while($obj = $result->fetch_assoc()){\n $userList[] = self::deserialize($obj);\n }\n $result->close();\n }\n return $userList;\n\n }", "title": "" }, { "docid": "ca2cdc0a56c78371d0cfd2214e8be39b", "score": "0.69181526", "text": "function get_user_list () {\n\t$query = \"select email from user_list order by email\";\n\tconnect_db ();\n\t$result = mysql_query ($query);\n\t$users = array ();\n\tif (!$result) {\n\t\tdie (\"Invalid Query: \".mysql_error());\n\t}\n\twhile ($row = mysql_fetch_assoc ($result)) {\n\t\t$users[] = $row['email'];\n\t}\n\tmysql_free_result ($result);\n\treturn $users;\n}", "title": "" }, { "docid": "a71752e2934bc9e4e5ae11e6a703e6ec", "score": "0.6916471", "text": "public function listUsers()\n {\n $content = '<h2>List FE_Users</h2>';\n $username = GeneralUtility::_GET('username');\n if (!$username) {\n $username = 'akellner';\n }\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('fe_users');\n $queryBuilder->select('*')->from('fe_users')\n ->where(\n $queryBuilder->expr()->eq('username', $queryBuilder->createNamedParameter($username))\n );\n\n try {\n $res = $queryBuilder->execute();\n if ($res) {\n while (($row = $res->fetch())) {\n DebuggerUtility::var_dump($row, 'in2code: ' . __CLASS__ . ':' . __LINE__);\n }\n }\n } catch (DBALException $e) {\n $content = 'error: ' . $e->getMessage();\n }\n\n return $content;\n }", "title": "" }, { "docid": "a0af7856734fa2f8e69ed8a9592c1863", "score": "0.6916428", "text": "function _get_all_users() {\n $SQL = \"SELECT nfd.uid, ufd.name FROM node_field_data nfd JOIN users_field_data ufd WHERE nfd.uid = ufd.uid\";\n\n $user = [];\n\n $user = \\Drupal::database()->query($SQL)->fetchAllKeyed();\n\n return $user;\n }", "title": "" }, { "docid": "a19d523a65c05e900903863e881e14e6", "score": "0.69152427", "text": "public function getUsers() {\n //Returns an array of users\n $stmt = $this->db->prepare(\"SELECT User_Username, User_Role, User_Status, User_ID FROM Users\");\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "9b955794c5221f304871a0a2d0aedc7a", "score": "0.69138664", "text": "public static function select_all()\r\n {\r\n $db = Database::getDB();\r\n\r\n $queryUsers = 'SELECT * FROM users ';\r\n $statement = $db->prepare($queryUsers);\r\n $statement->execute();\r\n $rows = $statement->fetchAll();\r\n $users = [];\r\n\r\n foreach ($rows as $value) {\r\n $users[$value['userID']] = new user($value['userID'], $value['lName'], $value['fName'], $value['email'], $value['phone'], $value['role'], $value['password']);\r\n }\r\n $statement->closeCursor();\r\n\r\n return $users;\r\n }", "title": "" }, { "docid": "3b53b458d8807c804b551b6643c34454", "score": "0.6908792", "text": "protected function getUsersList() {\n\t\t$this->loadModel( 'User' );\n\n\t\t$users_all = $this->User->find('all', array(\n\t\t\t'order' => array('User.name' => 'ASC'),\n\t\t\t'fields' => array('User.id', 'User.name', 'User.surname'),\n\t\t\t'recursive' => -1\n\t\t));\n\n\t\t$users = array();\n\t\tforeach ( $users_all as $user ) {\n\t\t\t$users[ $user['User']['id'] ] = $user['User']['name'] . ' ' . $user['User']['surname'];\n\t\t}\n\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "dafdd772938dfd7565779222073bd3ef", "score": "0.69028246", "text": "public function getUsers()\n {\n $this->database->query(\"SELECT * FROM users\");\n\n // execution de la query / fetch all\n $result = $this->database->resultSet();\n\n return $result;\n }", "title": "" }, { "docid": "f2d074013cbbe169931ec5482a518b14", "score": "0.68998003", "text": "public function getUsers()\n {\n return self::queryOne('\n SELECT `user_id`, `name`, `surname`, `email`, `birthday`\n FROM `users`\n ORDER BY `user_id` DESC\n ');\n }", "title": "" }, { "docid": "df513fdc38b7c01d671f2d506f9f3ac8", "score": "0.6898561", "text": "public function get_users()\n {\n $query = $this->db->get(\"users\");\n return $query->result();\n }", "title": "" }, { "docid": "05756091fe80efe42b1416ca62b5ec7b", "score": "0.68979174", "text": "public function readAll()\n {\n $query = \"SELECT * FROM lffg46jo4owbitcg.Users\";\n $users = array();\n try \n {\n while ($row = $this->dbConnect()->setAttribute($query)) \n {\n // push each row returned into the array\n $users[] = $row;\n }\n \n $this->dbClose(); \n return $users;\n } \n catch (Exception $e) \n {\n // TODO: Route to global exception\n echo 'Message: Oops, something went wrong';\n }\n \n }", "title": "" }, { "docid": "f2a409f987cf14bb3b1ff67ca3d15bf6", "score": "0.689138", "text": "public function readUsers(){\n $filter = [];\n $option = [];\n $records = $this->database->queryData($this->collection_name,$filter,$option);\n return $records;\n }", "title": "" }, { "docid": "9757fa8b1353a4c32b57928aa8997bea", "score": "0.68779063", "text": "function getUserDataAll() {\n $this->db->from($this->table);\n $result = $this->db->get();\n if ($result->num_rows() > 0)\n return $result->result_array();\n else\n return '';\n }", "title": "" }, { "docid": "c4ca882fed36ea211964ab41eac7e364", "score": "0.686706", "text": "public function getListUsers()\r\n\t{\r\n\t\t$users = array();\r\n\t\t$dbUser = new Application_Model_DbTable_User();\r\n\t\t\t\r\n\t\t$users = $dbUser->getList();\r\n\t\r\n\t\treturn $users;\r\n\t}", "title": "" }, { "docid": "f66f90012f4e6b886c0514019ae0b01d", "score": "0.68653953", "text": "function get_users() {\n return get_mysql()->query(\"SELECT * FROM users\");\n }", "title": "" }, { "docid": "b460469f7ada2583432bd04fdf7b76fe", "score": "0.68603724", "text": "function get_user_list() {\n\n\t$users = elgg_get_entities(array(\n\t\t'type' => 'user',\n\t\t'limit' => 15\n\t));\n\n\tforeach ($users as $user) {\n\n\t\t$name_array['en'] = $user->name;\n\t\t$name_array['fr'] = $user->name;\n\n\t\t$arr[] = array(\n\t\t\t'guid' => $user->getGUID(),\n\t\t\t'name' => $name_array,\n\t\t\t'username' => $user->username,\n\t\t\t'email' => $user->email,\n\t\t\t'type' => $user->getType(),\n\t\t);\n\t}\n\t\n return $arr;\n}", "title": "" }, { "docid": "949685110a9039677d044da9c8d9c3f5", "score": "0.68600607", "text": "public static function getAll()\n {\n $pdo = Database::getConnection();\n $query = \"SELECT * FROM user\";\n try {\n $stm = $pdo->query($query);\n return $stm->fetchAll(\\PDO::FETCH_ASSOC);\n } catch (\\PDOException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "d39ecbdc1731e1f3de82c7d2390a6a94", "score": "0.6852813", "text": "public function autoCompleteUsers($name) {\n $result = $this->db->fetch(\"SELECT login \n FROM users \n WHERE login LIKE :name\",\n array(':name' => $name . '%'));\n\n $suggestions = array();\n foreach ($result as $r) {\n $suggestions[] = $r['login'];\n }\n return $suggestions;\n }", "title": "" }, { "docid": "f1e97fac18f67877ec156fd04e98a425", "score": "0.6836575", "text": "public static function getAll()\n {\n $pdo = Database::getConnection();\n $query = \"SELECT * FROM users\";\n try {\n $stm = $pdo->query($query);\n return $stm->fetchAll(\\PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "b8af644ac68f1c5905481aeef4ae90a4", "score": "0.6833119", "text": "function getAllNames()\n{\n global $dbc;\n \n $query = 'SELECT * from tblNames ORDER BY last_name';\n $statement = $dbc->prepare($query);\n $statement->execute();\n $names = $statement->fetchAll();\n $statement->closeCursor();\n return $names;\n\n}", "title": "" }, { "docid": "6aa113499159c0dbfc8043038ca46092", "score": "0.68322855", "text": "public function findUsers();", "title": "" }, { "docid": "569594a4635fc465e8d9132cb42c0955", "score": "0.68320704", "text": "public function getAllUsers(){\n\t\t$query = \"SELECT * FROM users\";\n\t\t$dbcontroller = new DBController();\n\t\t$this->exam = $dbcontroller->executeSelectQuery($query);\n\t\treturn $this->exam;\n\t}", "title": "" }, { "docid": "2a11bb8295a06faf70bc9fb458e373df", "score": "0.6831259", "text": "public static function find_all()\n {\n return self::find_by_sql(\"SELECT * FROM users\");\n }", "title": "" }, { "docid": "a16afd60a278c1e84923becadde16005", "score": "0.68308103", "text": "public function getUsers() {\n $query = \"SHOW USERS\";\n return $this->query($query);\n }", "title": "" }, { "docid": "7965f8c26171e64b1b0f5e22c37bc9bd", "score": "0.68237674", "text": "function get_users() {\n\t$db_link = setup_db();\n\n\t$query = \"SELECT `user_id`, `email`, `permission_level` FROM `user`\";\n\t$result = mysqli_query($db_link, $query) or die(mysqli_error($db_link));\n\n\treturn _get_all($result);\n}", "title": "" }, { "docid": "b423e1dd8f5261c43c23595343d67403", "score": "0.6814661", "text": "function auth_get_userlist () {\n global $CFG;\n auth_ldap_init();\n return auth_ldap_get_userlist(\"($CFG->ldap_user_attribute=*)\");\n}", "title": "" }, { "docid": "0e19119c19356fb568df4741c5bcadb8", "score": "0.6814351", "text": "public function findUsers()\n {\n return $this->getRepository()->findAll();\n }", "title": "" }, { "docid": "db9e5a29d859e9afc35e1fdbbc7641c0", "score": "0.68117535", "text": "function getUserNames($uids) {\n\tif (!isset($uids) || !is_array($uids) || count($uids) < 1) {\n\t\treturn false;\n\t}\n\tglobal $mdb;\n\t$users = array();\n\t$find_stuff = $mdb->users->find(array('uid' => array('$in' => $uids)), array('uid' => true, 'ecnet' => true));\n\tforeach ($find_stuff as $user) {\n\t\t$users[] = array('name' => $user['ecnet'], 'id' => $user['uid']);\n\t}\n\treturn $users;\n}", "title": "" }, { "docid": "f53422abe722c703b849fad4790fedf5", "score": "0.68100095", "text": "public function getUsers()\n {\n // Array declaration\n $arrayOfUsers = [];\n\n $query = $this->getDb()->prepare('SELECT * FROM users');\n $query->execute();\n $dataUsers = $query->fetchAll(PDO::FETCH_ASSOC);\n\n // At each loop, we create a new user object wich is stocked in our array $arrayOfUsers\n foreach ($dataUsers as $dataUser) {\n $arrayOfUsers[] = new User($dataUser);\n \n }\n\n // Return of the array on which we could loop to list all users\n return $arrayOfUsers;\n }", "title": "" } ]
2bfa294e75bbdb56bfaef3b5308add59
Connexion a la base des donnees en retournant un objet PDO
[ { "docid": "fa8eeaa9ff8d830e194b3a17ba03f8fd", "score": "0.0", "text": "function dbConnect(){\n try{\n $db = new PDO('mysql:dbname=contacts_db;host=localhost', 'root', '');\n }catch (PDOException $e){\n die('Erreur due à : '.$e->getMessage());\n }\n\n return $db;\n}", "title": "" } ]
[ { "docid": "6df18f0be35f2c20d4561bff66253c9c", "score": "0.81005204", "text": "public function getConnection(){\n $this->_connexion = null;\n\n // Trying to connect to the base\n try{\n $this->_connexion = new PDO(\"mysql:host=\" . $this->host . \";dbname=\" . $this->db_name, $this->username, $this->password);\n $this->_connexion->exec(\"set names utf8\");\n }catch(PDOException $exception){\n echo \"Erreur de connexion : \" . $exception->getMessage();\n }\n }", "title": "" }, { "docid": "2cfc39c0a074303337e0aeed44569049", "score": "0.7963558", "text": "private function conectar(){\n\n $dsn = 'mysql:host='.$this->servidor.';port=3306;dbname='.$this->base_datos;\n $opciones = array(\n PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'\n\n );\n//PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true,\n //$gbd = new PDO($dsn, $this->usuario, $this->password, $opciones);\n \t \t$this->link= new PDO($dsn, $this->usuario, $this->password);\n\t\t//echo $dsn;\n \t}", "title": "" }, { "docid": "c848039728c2882b5696253245061ed5", "score": "0.7838034", "text": "protected function coneccion()\t{\n\t\t\ttry{\n\t\t\t\t$this->conn = new PDO(\"mysql:host=$this->host;dbname=$this->db\",$this->user,$this->pass,$this->opciones);\n\t\t\t}catch(PDOException $pe){\n\t\t\t\tdie('Error de conexion, Mensaje: ' -$pe->getMessage());\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ae262198e9b8d92c770559469b27c70a", "score": "0.78077847", "text": "private function dbConnect(){\r\n $con = new PDO('mysql:dbname=db_run;host=localhost','samuel','malherbesa.etml', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')) or die(\"Connexion a échoué\");\r\n $this->connexion = $con;\r\n\r\n }", "title": "" }, { "docid": "a83b6be0394676c50573341756028707", "score": "0.7799959", "text": "private function conectar()\n {\n\n // Uso de try{} y catch{} para capturar los posibles errores que ocurran\n try {\n $mbd = new PDO('mysql:host=127.0.0.1;dbname=' . BD . ';charset=utf8', USER, PASS);\n // $mbd = new PDO('mysql:host=localhost:3308;dbname='.BD.';charset=utf8', USER, PASS);\n $mbd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $e) { // En caso de algún error\n echo \"No hay una conexion con la BD\";\n die();\n }\n\n // Pasar el valor de conexion a una variable global privada\n $this->conexion = $mbd;\n }", "title": "" }, { "docid": "f2206307e4d3d6809e31239d879649ac", "score": "0.77258205", "text": "private static function conectar() {\n try {\n $opc = array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\");\n $dsn = \"mysql:host=localhost;dbname=dwes\";\n $usuario = 'root';\n $pass = '';\n $conexion = new PDO($dsn, $usuario, $pass, $opc);\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $ex) {\n die('Abortamos la aplicación por fallo al conectar con la BD' . $ex->getMessage());\n }\n self::$conexion = $conexion;\n }", "title": "" }, { "docid": "72c11cf6278b9d7dcb0bad9c28cb26ba", "score": "0.7708278", "text": "public function __construct(){\n $PARAM_hote='localhost';\n //Le port de connexion à la base de données\n $PARAM_port='3306';\n // Le nom de votre base de données\n $PARAM_nom_bd='minifacebook';\n // nom d'utilisateur pour se connecter\n $PARAM_utilisateur='adminMiniFacebook';\n // mot de passe de l'utilisateur pour se connecter\n $PARAM_mot_passe='minifacebook';\n\n try{\n $this->connexion = new PDO (\n 'mysql:host='.$PARAM_hote.';dbname='.$PARAM_nom_bd,\n $PARAM_utilisateur,\n $PARAM_mot_passe);\n } catch(Exception $e){\n echo 'Erreur : '.$e->getMessage().'<br />';\n echo 'N° : '.$e->getCode();\n } \n }", "title": "" }, { "docid": "593862be04705e66ee2f220859869b27", "score": "0.77052045", "text": "function conectaBaseDatos(){\n\ttry{\n\t\t$servidor = \"localhost\";\n\t\t$puerto = \"3306\";\n\t\t$basedatos = \"sistema\";\n\t\t$usuario = \"root\";\n\t\t$contrasena = \"\";\n\t\n\t\t$conexion = new PDO(\"mysql:host=$servidor;port=$puerto;dbname=$basedatos\",\n\t\t\t\t\t\t\t$usuario,\n\t\t\t\t\t\t\t$contrasena,\n\t\t\t\t\t\t\tarray(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\t\t\n\t\t$conexion->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n\t\treturn $conexion;\n\t}\n\tcatch (PDOException $e){\n\t\tdie (\"No se puede conectar a la base de datos\". $e->getMessage());\n\t}\n}", "title": "" }, { "docid": "25c9122ec64daf3a1f5852ed00913d0f", "score": "0.76992464", "text": "public function conectar(){\n\t\t$conexion_mysql = \"mysql:host = $this->host; dbname=$this->db\";\n\t\t$conexionDB = new PDO($conexion_mysql, $this->user,$this->password);\n\t\t$conexionDB->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Para error de codificacion\n\t\t$conexionDB -> exec(\"set names utf8\");\n\t\treturn $conexionDB;\n\t}", "title": "" }, { "docid": "bcb448f226a5b82f28bc46b5bdcdb62c", "score": "0.768229", "text": "public static function connection(){\n try\n {\n self::$bdd = new PDO(self::$TYPE_SQL.':host='.self::$host.';dbname='.self::$db, self::$user, self::$pwd);\n }\n catch (Exception $e)\n {\n die('Erreur : ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "018fbb9883eef5cc47dbcf43ae3e9f20", "score": "0.7676832", "text": "static public function conectar(){\n\t\t//PDO(conexion-servidor,usuario,contraseña)\n\t\t$link = new PDO(\"mysql:host=localhost;dbname=pos\",\n\t\t\t\t\t\t\"root\",\n\t\t\t\t\t\t\"\");\n\n\t\t//Ejecutamos el exec para que todo lo que venga en caracteres latino lo podamos recibir sin problemas, por ej. tildes, eñes, etc.\n\t\t$link->exec(\"set names utf8\");\n\n\t\treturn $link;\n\n\t}", "title": "" }, { "docid": "ddad87aae6bb99f567d07bee57172815", "score": "0.7667927", "text": "private function connect()\n {\n try {\n $this->connexion = new PDO('mysql:host=' . $this->config['host'] . ';port=' . $this->config['port'] . ';dbname=' . $this->config['database'], $this->config['username'], $this->config['password'], [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci']);\n } catch (\\Throwable $th) {\n throw $th;\n }\n }", "title": "" }, { "docid": "eb5e4426ff72acfc1e525662c7ca3ca0", "score": "0.76593745", "text": "protected function _pdoConect(){\n try{\n $this->_PDO = new PDO(\n DB_DRIVER.\":host=\".DB_HOST.\"; dbname=\".DB_NAME.\"; port=\".DB_PORT,\n DB_USER,\n DB_PASSWORD,\n [\n PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \\'UTF8\\''\n ]\n );\n }catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "ec2d046d05597a66059ee19694f841a7", "score": "0.76515365", "text": "public function conectar()\n {\n $pdo_conn = new PDO('mysql:host=localhost;dbname=dbitz_summer;charset=utf8;', 'root', '');\n // $pdo_conn = new PDO( 'mysql:host=localhost;dbname=id4636351_dbitz_summer;charset=utf8;','id4636351_itz','199720031230');\n return $pdo_conn;\n }", "title": "" }, { "docid": "ad48f0ed6709e04ceb888b297521eef7", "score": "0.76458275", "text": "public static function conectar()\n {\n $link = new PDO (\"mysql:host=localhost;dbname=ejercicio\", \"root\", \"\");\n return $link;\n }", "title": "" }, { "docid": "fdf2b99610adf327a32debb8715e6543", "score": "0.76439595", "text": "function __construct(){\n\n try{\n $this->connexion = new PDO('mysql:host='. $this->host.';dbname=' . $this->name . ';', $this->user , $this->pass );\n $this->connexion(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch (Exception $e){\n echo \"Erreur : Impossible de se connecter à la BDD !\" . $e->getMessage();\n die();\n }\n}", "title": "" }, { "docid": "62bc764e43b9d828625b55f406e800f2", "score": "0.763238", "text": "public function conect(){\r\n\r\n\t\ttry{\r\n\t\t\tself::$pdo = new PDO(\"mysql:host={$this->dbHost};port={$this->dbPort};dbname={$this->dbName};charset=utf8;\",\r\n\t\t\t$this->dbUser,\r\n\t\t\t$this->dbPass) ;\r\n\t\t} catch (Exception $e){\r\n\t\tdie (\"Error en conectar la BBDD\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2fd8a51b284694669ab9df8406d9724c", "score": "0.7618824", "text": "function connexion()\r\n {\r\n $connexion = new PDO(\"mysql:host=localhost;dbname=grindhouse\", 'root', ''); // connexion à la BDD\r\n\r\n $this->db=$connexion;\r\n \r\n $this->database = new Database();\r\n }", "title": "" }, { "docid": "ab2e7811998912725f22267d65eceb7f", "score": "0.760487", "text": "protected function conexion(){\r\n try {\r\n $options = [\r\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\r\n PDO::ATTR_EMULATE_PREPARES => FALSE,\r\n ];\r\n return new PDO(parent::SGBD,parent::USER,parent::PASS,$options);\r\n } catch (PDOException $e) {\r\n echo \"Error: \".$e;\r\n die();\r\n }\r\n }", "title": "" }, { "docid": "2a17e55471d5ccc57265e6240d5be004", "score": "0.758898", "text": "public static function conectar(){\n\n\t\t$link = new PDO(\"mysql:host=localhost;dbname=examenu2\",\"root\",\"\");\n\t\treturn $link;\n\n\t}", "title": "" }, { "docid": "a1064bd78180f5b15884eef0773d10b9", "score": "0.75691694", "text": "public function conectar(){\n\t\t//declaramos las variables que vamos a ocupar\n\t\t$localhost = \"localhost\";\n\t\t$database = \"tienda_curso\";\n\t\t$user = \"root\";\n\t\t$password = \"\";\n\t\t//construccion mediante pdo\n\t\t//que mierda es PDO\n\t\t$link = new PDO(\"mysql:host=$localhost;dbname=$database\",$user,$password);\n\t\treturn $link;\n\t}", "title": "" }, { "docid": "207c4d09035975f92e06b77c3509bcfa", "score": "0.7558288", "text": "static function conectar()\n {\n \n\n $pdo = new PDO(\n 'mysql:host=localhost;dbname=agencia',\n 'root',\n 'root'\n );\n \n return $pdo;\n }", "title": "" }, { "docid": "d67c03e4541f5123898c364f5f6beefd", "score": "0.75508934", "text": "static function conectar() \n {\n // guardar los datos de la conexion\n $listaDatos = self::datosConexion();\n // recorrer la lista con los datos de la conexion y guardarlos\n foreach ($listaDatos as $key => $value) {\n self::$dsn = $value['dsn'];\n self::$host = $value['host'];\n self::$db = $value['database'];\n self::$user = $value['user'];\n self::$pass = $value['password'];\n }\n\n try {\n //! conectar a la BD\n // 'mysql:host=localhost;dbname=nombreDB','root',''\n $conn = new \\PDO(\n self::$dsn . \":host=\" . self::$host . \";dbname=\" . self::$db,\n self::$user, \n self::$pass\n );\n\n //* control de errores\n // muestra los errores comunes y las advertencias\n $conn->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n //* devolver la conexion\n return $conn;\n // capturar error \n } catch (\\PDOException $exception) {\n exit($exception->getMessage());\n }\n }", "title": "" }, { "docid": "8df9e0c96de990a5443a0af8ca41fd73", "score": "0.7547498", "text": "public function connect()\n {\n // Script \"PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ\" optional, bisa ditambahkan bisa tidak\n // Kenapa saya menggunakan ini ?\n // Agar nanti saya bisa melakukan hal seperti berikut\n /* \n ==================================================\n $barang['nama_barang'] => i don't like it!\n \n $barang->nama_barang => yeah, i love it ~\n ==================================================\n */\n $options = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // Berfungsi untuk menampilkan apa yang error\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ\n ];\n\n // Blok try-catch berfungsi sesuai namanya\n // Kita try (mencoba) untuk koneksi ke database, jika berhasil kita akan terkoneksi ke database\n // Jika gagal maka akan di-catch (tangkap) errornya\n try {\n // Untuk memanggil property dari sebuah class, kita memakai keyword \"$this->nama_property\"\n $this->connection = new PDO(\"mysql:host=$this->server;dbname=$this->database\", $this->user, $this->password, $options);\n return $this->connection;\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "2417161e2bb9da28189a01eb08632616", "score": "0.754703", "text": "final public function conectar()\n \n {\n global $config; //carrega a varivel do arquivo config.php\n \n $dsn = \"$config[driver]:host=$config[host];dbname=$config[dbname]\";\n $user = $config['username'];\n $password = $config['password'];\n \n try {\n $this->conn = new \\PDO($dsn, $user, $password);\n $this->conn->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n } catch (\\PDOException $erro) {\n echo 'Erro: ' . $erro->getMessage();\n }\n }", "title": "" }, { "docid": "3d98ad84e13bbd44fe0ace9ac660d7f3", "score": "0.75266904", "text": "public function Conectar(){\n\t\t\t$cn = new PDO('mysql:host=127.0.0.1:3306; dbname='.$this->Bdatos, $this->User, $this->Pass);\n\t\t\treturn $cn;\n\t\t}", "title": "" }, { "docid": "576fc62df8792c7dd62d2167557cb2c8", "score": "0.7497065", "text": "private function accesoBD() {\n try {\n // Array con opciones\n $arrOptions = array(\n PDO::ATTR_EMULATE_PREPARES => FALSE,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES 'utf8'\"\n );\n // se crea la conexión\n $con = new PDO('mysql:host=localhost;dbname=morosos', 'dwes', 'abc123.', $arrOptions);\n return $con;\n } catch (Exception $e) { // Se controla las excepciones\n print $e->getMessage();\n die();\n }\n }", "title": "" }, { "docid": "9fab85388cbeb844b8911fac67f5c8a7", "score": "0.74929273", "text": "public function __construct(){\n $PARAM_hote='localhost';\n // le port de connexion à la base de données\n $PARAM_port='3306';\n // le nom de la base de données\n $PARAM_nom_bd='minifacebook';\n // Le nom d'utilisateur pour se connecter \n $PARAM_utilisateur='adminMiniFacebook';\n // le mot de passe de l'utilisateur pour se connecter\n $PARAM_mot_passe='Mini_facebook';\n\n // Attraper les exceptions (au cas où ce qui est dans le try ne marche pas)\n try{\n $this->connexion = new PDO (\n 'mysql:host='.$PARAM_hote.';\n dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe);\n $this->connexion-> setAttribute(PDO::MYSQL_ATTR_INIT_COMMAND, \"SET NAMES 'utf8'\");\n } catch (Exception $e) {\n echo 'Erreur: ' .$e->getMessage() . '<br/>';\n echo 'N° : '.$e->getCode();\n }\n }", "title": "" }, { "docid": "9fab85388cbeb844b8911fac67f5c8a7", "score": "0.74929273", "text": "public function __construct(){\n $PARAM_hote='localhost';\n // le port de connexion à la base de données\n $PARAM_port='3306';\n // le nom de la base de données\n $PARAM_nom_bd='minifacebook';\n // Le nom d'utilisateur pour se connecter \n $PARAM_utilisateur='adminMiniFacebook';\n // le mot de passe de l'utilisateur pour se connecter\n $PARAM_mot_passe='Mini_facebook';\n\n // Attraper les exceptions (au cas où ce qui est dans le try ne marche pas)\n try{\n $this->connexion = new PDO (\n 'mysql:host='.$PARAM_hote.';\n dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe);\n $this->connexion-> setAttribute(PDO::MYSQL_ATTR_INIT_COMMAND, \"SET NAMES 'utf8'\");\n } catch (Exception $e) {\n echo 'Erreur: ' .$e->getMessage() . '<br/>';\n echo 'N° : '.$e->getCode();\n }\n }", "title": "" }, { "docid": "44ed32f430d8b1fec47ed261144d21e1", "score": "0.7480303", "text": "public function getPDO();", "title": "" }, { "docid": "dc01a158ba2f45d0ce2a77c1cf749688", "score": "0.7469166", "text": "public function connect(){\n\t\t$conexion_mysql = \"mysql:host=$this->dbHost;dbname=$this->dbName\";\n\t\t$link = new PDO($conexion_mysql, $this->dbUname, $this->dbPassw);\n\t\t$link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t//esta linea arregla la codificacion de caracteres UTF-8\n\t\t$link->exec('set names utf8');\n\t\treturn $link;\n\t}", "title": "" }, { "docid": "e2e2fca9d3ab38275a02eee2617ce7a1", "score": "0.74659854", "text": "public function connect(){\n\t\tif(is_null($this->pdo) || (!$this->pdo instanceof PDO)){\n\t\t\t$this->pdo = $this->makeConnection();\n\t\t}\n\t}", "title": "" }, { "docid": "a9adb7e0a551e8e772afb961ad91dd71", "score": "0.7460705", "text": "public function conectar(){\n\t\ttry{\n\t\t\t$link = new PDO(\"mysql:host=localhost; dbname=osomontes; charset=UTF8\", \"root\", \"\", array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\n\t\t\treturn $link;\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t\tdie(\"Error: \".$e->getMessage());\n\t\t}\n\t\tfinally{\n\t\t\t$link = null;\n\t\t}\n\t}", "title": "" }, { "docid": "8ae2003e10406f14d34737167cf5aa75", "score": "0.7449371", "text": "public function __construct() {\n $this->pdo = Conexao::conecta_db();\n }", "title": "" }, { "docid": "8ae2003e10406f14d34737167cf5aa75", "score": "0.7449371", "text": "public function __construct() {\n $this->pdo = Conexao::conecta_db();\n }", "title": "" }, { "docid": "0dc31165c2a8d212cec854500bea6315", "score": "0.74479395", "text": "function connecter_db(){\n try{\n $options=[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE=> PDO::FETCH_ASSOC];\n $link= new PDO(\"mysql:host=localhost;dbname=\".DB.\";charset=utf8\",USER,PASSE,$options);\n\n }catch(PDOException $e){\n die(\"Erreur de connexion bd \".$e->getMessage());\n }\n return $link;\n\n }", "title": "" }, { "docid": "bf4fac6e0e397841aa831a3e563b1d27", "score": "0.7443158", "text": "public function __construct() {\n $this->conexao = new PDO('mysql:dbname=petshop;host=172.17.0.2;charset=UTF8', 'root', '123456');\n $this->conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->conexao->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "a94b9eab92529cc1eaa814f5176efee2", "score": "0.7440356", "text": "public function conection()\n {\n try {\n $this->pdo = new PDO( 'mysql:host=' . MYSQL_HOST . ';dbname=' . MYSQL_DB_NAME, MYSQL_USER, MYSQL_PASSWORD );\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n }\n catch ( PDOException $e ) {\n echo 'Erro ao conectar com o MySQL: ' . $e->getMessage();\n }\n }", "title": "" }, { "docid": "4208a16276c145e0e925475bed805358", "score": "0.74386704", "text": "function connetti() {\r\n return new PDO('mysql:host=localhost;dbname=db-italfrutta', 'italfrutta', 'ipass2013+', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\r\n}", "title": "" }, { "docid": "9a1a950a8c77e683dbe3b315c61977b5", "score": "0.74318737", "text": "function conecta_bd (&$bd, $servidor, $baseDatos, $usuario, $clave){\n try {\n $bd = new PDO(\n 'mysql:host=' . $servidor . ';dbname=' . $baseDatos . ';charset=utf8',\n $usuario, $clave, array(PDO::ATTR_PERSISTENT => true,\n PDO::MYSQL_ATTR_INIT_COMMAND => 'set names utf8')\n );\n } catch (PDOException $e) {\n echo (\"ERROR: <br/>\" . $e->getMessage(). \"<br/>\");\n }\n }", "title": "" }, { "docid": "95c9b2b6216d5d2aacc88c463d0c6923", "score": "0.7429283", "text": "protected function connect() {\n\t\tif (!empty($this->connection)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$dbConfig = Config::getInstance()->get('resource.database.tru.*');\n\n\t\t$dsn = 'mysql:host=' . $dbConfig['host'] . ';dbname=' . $dbConfig['database'];\n\t\t$this->connection = new PDO($dsn, $dbConfig['user'], $dbConfig['password']);\n\t}", "title": "" }, { "docid": "648e4053f67e5699b9b54565dc70a5ac", "score": "0.74273103", "text": "public static function conectar()\n\t\t{\n\t\t\tif ( self::$conexion == null ) { //corta la conexion\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tself::$conexion = new PDO(\"mysql:host=localhost;dbname=test\", \"root\", \"1234\");\n\t\t\t\t}\n\t\t\t\tcatch (PDOException $e)\n\t\t\t\t{\n\t\t\t\t\techo $e->getMessage();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "4918028e6e65d4f0505adad0c91ee0c3", "score": "0.74129784", "text": "function dbPDO()\n {\n try {\n // on se connecte a MySQL\n $db = new PDO('mysql:host=localhost;dbname=cojercoActivite;charset=utf8', 'jonathan84', 'jo0811748411', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ));\n return $db;\n }\n catch(Exception $e)\n {\n die('Erreur : ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "3338c53f46366b164faccfe40deca53a", "score": "0.7412792", "text": "public function connect() {\n $dns = \"mysql:host=$this->host;dbname=$this->db;charset=$this->charset\";\n $this->connection = new PDO($dns, $this->user, $this->pass, $this->opt);\n }", "title": "" }, { "docid": "f94436df4578393fe13a98e9cf5354fb", "score": "0.7408279", "text": "private function connect()\n {\n $dsn = \"mysql:host=$this->host;dbname=$this->db;charset=$this->charset\";\n $this->connection = new PDO($dsn, $this->user, $this->pass, $this->opt);\n }", "title": "" }, { "docid": "f8d7bae87bc1bad8f0bb0a14bed1b0e5", "score": "0.74075633", "text": "private function __construct(){\n $dsn = 'mysql:host=localhost;dbname=dwes;charset=utf8';\n $username='root';\n $password ='';\n try{\n $this->conexion = new PDO( $dsn, $username, $password );//intenta iniciar la conexion\n }catch ( PDOException $e){//excepcion!\n die( \"¡Error!: \" . $e->getMessage() . \"<br/>\");//si falla, para la ejecucion\n }\n }", "title": "" }, { "docid": "8727e0c4a1218e7d8853087e78d5e1c1", "score": "0.7404951", "text": "function connecterServeurBD() {\n try {\n $idConnexion = new PDO('mysql:host=localhost;dbname=gsb-applifrais;charset=utf8', 'root', '');\n $idConnexion -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n }\n catch (Exception $e) {\n die('Erreur : ' . $e -> getMessage());\n }\n return $idConnexion;\n}", "title": "" }, { "docid": "1c360ae0098eaba99889df9960326615", "score": "0.73896205", "text": "private function getPdo(){\n # récupérer les parametres de connexion\n $host = $this->database_host;\n $dbname = $this->database_name;\n $dbuser = $this->database_user;\n $dbpwd = $this->database_password;\n\n try {\n # créer une objet PDO\n $pdo = new PDO('mysql:host='.$host.';dbname=' . $dbname . ';charset=utf8', $dbuser, $dbpwd);\n }\n catch (PDOException $e) {\n error_log(\"\\n Service: Rapport, Function: getPdo, \\n PDOException: \".print_r($e, true), 3, $this->error_log_path);\n die('Une erreur interne est survenue. Veuillez recharger l\\'application. ');\n }\n\n return $pdo;\n }", "title": "" }, { "docid": "1c51b3aaac9d79066c0c81021147252f", "score": "0.737825", "text": "function conectar()\n\t\t{\n\t\t\t$dsn='mysql:dbname=joliepink; host=127.0.0.1; charset=utf8';\n\t\t\t$usuario='root';\n\t\t\t$contra='';\n\n\t\t\ttry{\n\t\t\t\t$pdo = new pdo($dsn,$usuario,$contra);\n\t\t\t\t$pdo -> exec(\"set names utf8\");\n\t\t\t\treturn $pdo;\n\t\t\t}\n\t\t\tcatch(PDOException $e){\n\t\t\t\tdie('Error al conectarse '.$e->getMessage());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ecfe06e5e88bfa0d9cb0412d5a1f9250", "score": "0.73771954", "text": "public static function conectar()\n {\n try {\n\n $pdo = new PDO('mysql:host=localhost;dbname=db_inprl', 'root', '');\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n\n return $pdo;\n\n } catch (PDOException $e) {\n die(($e->getMessage()));\n\n }\n }", "title": "" }, { "docid": "62eacf5ab5525bfe6c99663f635bd61f", "score": "0.73758346", "text": "public function connexion()\n {\n try\n {\n //connection\n $this->connexion = new PDO('mysql:host=localhost;charset=UTF8;dbname=info2-2015-jobdating',\"info2-2015-jobda\",\"jobdating\");\t//on se connecte au sgbd\n $this->connexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\t//on active la gestion des erreurs et d'exceptions\n }\n catch(PDOException $e)\n {\n throw new ConnexionException(\"Erreur de connection\");\n }\n //connection reussie\n\n }", "title": "" }, { "docid": "a20c98b9af7fb20d2164ddcbb12b42e6", "score": "0.73684734", "text": "public static function conectar()\n {\n $servername = \"localhost\";\n $username = \"root\";\n $password = \"\";\n $db = \"ejr\";\n try \n {\n $conn = new PDO(\"mysql:host=$servername;dbname=$db;charset=utf8\", $username, $password);\n // set the PDO error mode to exception\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n \n return $conn; \n }\n catch(PDOException $e)\n {\n echo \"Connection failed: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "eb81a24eb4d1d7e0056130e132e8dab0", "score": "0.7365187", "text": "function bddBase($PARAM_hote,$PARAM_port,$PARAM_nom_bd,$PARAM_utilisateur,$PARAM_mot_passe)\n{\n global $bdd;\n\n try\n {\n $bdd= new PDO('mysql:host='.$PARAM_hote.';port='.$PARAM_port.';dbname='.$PARAM_nom_bd, $PARAM_utilisateur, $PARAM_mot_passe);\n }\n\n catch(Exception $e)\n {\n echo 'Erreur : '.$e->getMessage().'<br/>';\n echo 'N° : '.$e->getcode();\n }\n}", "title": "" }, { "docid": "313ace885238483b1fe068bd72582baa", "score": "0.7363943", "text": "function connexion()\r\n {\r\n require($this->nomFichierInfosSensibles);\r\n try {\r\n $this->cBD = new PDO('mysql:host=localhost;dbname=' . $strNomBD, $strNomAdmin, $strMotPasseAdmin);\r\n $this->cBD->exec('SET NAMES \"UTF8\"');\r\n } catch (PDOException $e) {\r\n echo 'Erreur : ' . $e->getMessage();\r\n die();\r\n }\r\n return $this->cBD;\r\n }", "title": "" }, { "docid": "f876ed5aaf5d775cbb55cec234d830b6", "score": "0.735794", "text": "function connect()\n{\n $host = '127.0.0.1';\n $db = 'proseto17';\n $user = 'root';\n $pass = '';\n $charset = 'utf8';\n\n $dsn = \"mysql:host=$host;dbname=$db;charset=$charset\";\n\n $opt = array(\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n PDO::ATTR_EMULATE_PREPARES => false\n );\n\n try {\n return new PDO($dsn, $user, $pass, $opt);\n } catch (PDOException $e) {\n echo 'Connection failed: ' . $e->getMessage();\n exit;\n }\n}", "title": "" }, { "docid": "68b6043df207e7d6524660116c2c9da2", "score": "0.73550045", "text": "private function makeConnection(){\n $this->database = new \\PDO('mysql:host=localhost;dbname=healthone', \"root\", \"\");\n }", "title": "" }, { "docid": "58fb55af95f448afd843cf87474071fd", "score": "0.7348271", "text": "private static function obtenerPdoConexionBD(): PDO\r\n {\r\n $servidor = \"localhost\";\r\n $identificador = \"root\";\r\n $contrasenna = \"\";\r\n $bd = \"minifb\";\r\n $opciones = [\r\n PDO::ATTR_EMULATE_PREPARES => false,\r\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\r\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\r\n ];\r\n\r\n try {\r\n $pdo = new PDO(\"mysql:host=$servidor;dbname=$bd;charset=utf8\", $identificador, $contrasenna, $opciones);\r\n } catch (Exception $e) {\r\n error_log(\"Error al conectar: \" . $e->getMessage());\r\n exit(\"Error al conectar\" . $e->getMessage());\r\n }\r\n return $pdo;\r\n }", "title": "" }, { "docid": "393a04ddc1aab09d6fafc3d238c378b3", "score": "0.73387134", "text": "public function connect(){\n $sgdb = \"mysql\";\n\n // Nome do Banco de Dados\n $dbname = \"projetooficina\";\n\n // Host do Banco de Dados\n $dbhost = \"localhost\";\n\n // Usuário do Banco de Dados\n $dbuser = \"root\";\n\n // Senha do Usuário setado acima\n $dbpass = \"\";\n\n // Montagem da string de conexão\n $dsn = $sgdb . \":dbname=\" . $dbname . \";host=\" . $dbhost;\n\n try {\n return new PDO($dsn, $dbuser, $dbpass);\n } catch (PDOException $e) {\n echo \"Falha na conexão com o Banco de Dados!\";\n exit;\n }\n }", "title": "" }, { "docid": "9e11ff4caf747defcb787ca614daffa4", "score": "0.7337702", "text": "public function __construct()\n {\n global $pdo;\n $banco = 'crud_1';\n $localhost = 'localhost';\n $user = 'root';\n $senha = '';\n \n try{\n $pdo = new PDO(\"mysql:dbname=\".$banco.\";host=\".$localhost,$user,$senha, array(PDO::MYSQL_ATTR_INIT_COMMAND=> \"SET NAMES utf8\"));\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n }catch(PDOException $e){\n echo 'Erro com banco de dados erro :'.$e->getMessage();\n }\n }", "title": "" }, { "docid": "80fdaa36a6199edc2d926a7c91382fa9", "score": "0.73346287", "text": "function __construct()\n {\n\n //$conexion\n $this->pdo = new PDO(\"mysql:dbname={$this->dbname};host={$this->servidor};port={$this->puerto}; charset={$this->charset}\", $this->username, $this->password, $this->atributos);\n }", "title": "" }, { "docid": "9806137e87546e2e0e315b18aebe3ae4", "score": "0.73290277", "text": "private function getPdo(){\n # récupérer les parametres de connexion\n $host = $this->database_host;\n $dbname = $this->database_name;\n $dbuser = $this->database_user;\n $dbpwd = $this->database_password;\n\n # obtenir la date courante du système\n date_default_timezone_set('Europe/Paris');\n $dateTimeNow = date('Y-m-d_G:i:s', time());\n\n try {\n # créer une objet PDO\n $bdd = new PDO('mysql:host='.$host.';dbname=' . $dbname . ';charset=utf8', $dbuser, $dbpwd);\n } catch (PDOException $e) {\n error_log(\"\\n Service: Listes, Function: getPdo, datetime: \".$dateTimeNow\n .\"\\n PDOException: \".print_r($e, true), 3, $this->error_log_path);\n die('Une erreur interne est survenue. Veuillez recharger l\\'application. ');\n }\n\n return $bdd;\n }", "title": "" }, { "docid": "4caf76e52de69c9a1ed1a84e06744792", "score": "0.73273444", "text": "public function __construct(){\n\n $this->conn = new PDO(\"mysql:host=localhost;dbname=dbphp7\", \"root\", \"\");\n\n }", "title": "" }, { "docid": "bd1f2c8b3fed32f98c9b53a75f13981b", "score": "0.73255354", "text": "protected function bddConnexion()\n\t{\n\t\t$bdd = new \\PDO('mysql:host=localhost;dbname=blog_myrna;charset=utf8','root','');\t \n return $bdd;\t \n\t}", "title": "" }, { "docid": "b38303c0b7dba22e7086319b7b082abf", "score": "0.7322219", "text": "public function getConnection(): \\PDO;", "title": "" }, { "docid": "7c5cf062c2f16cdf2d0723459bbe8134", "score": "0.7297159", "text": "public function conn()\n {\n if (!$this->db instanceof PDO)\n {\n $this->dsn='mysql:dbname=' . self::DB_NAME . ';host=' . self::DB_HOST;\n $this->db = new PDO($this->dsn, $this->username, $this->password, \n array(PDO::ATTR_PERSISTENT => true, \n PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES 'utf8'\"\n ));\n $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }\n }", "title": "" }, { "docid": "3aada1bb76c4973bd9e0aa4597388711", "score": "0.7293902", "text": "function appelDatabase (){\n\n //////////////////récupération des infos de connexion via un json///////////\n $infos_connexion = file_get_contents('admin/config_bdd.json');\n $parsed_json = json_decode($infos_connexion);\n $contenuHote = $parsed_json->{'informations_base_de_donnee'}->{'identifiants_base'}->{'host'};\n $contenuDatabase = $parsed_json->{'informations_base_de_donnee'}->{'identifiants_base'}->{'nomdb'};\n $contenuUtilisateur = $parsed_json->{'informations_base_de_donnee'}->{'identifiants_base'}->{'login'};\n $contenuPasswd = $parsed_json->{'informations_base_de_donnee'}->{'identifiants_base'}->{'passwd'};\n ////////////////////////////////////////////////////////////////////////////\n \n\n $db = new lib\\bdd($contenuHote, $contenuDatabase, $contenuUtilisateur, $contenuPasswd); //bind de la connexion ) la base de donnée\n $PDO = $db->getPDO(); //récupération de l'objet PDO\n \n \n return $db; //on retourne l'objet base de donnee\n}", "title": "" }, { "docid": "6160808f8f3547c39dded45f53f1f20b", "score": "0.7283714", "text": "private function PDO_Database(){\r\n\t\t\t$this->OpenConnection();\r\n\t\t}", "title": "" }, { "docid": "713d62cdb5a754583aa342828eb0bdb6", "score": "0.7283387", "text": "function __construct(){\n $recibimiento=\"mysql:hos=\".$this->host.\";dbname=\".$this->base_de_datos.\";charset=utf8mb4\"; \n #nombre de e gestor de datos y el recibimiento de lo que se va a obtener\n #se pone elgestor de base de datos el host declarado anteriormente junto a la base de datos y su cotejamiento\n \n try {\n $this->respuesta_conexion= new PDO($recibimiento, $this->user, $this->password, ) ;#pdoya esta implicita en el codigo al usar php\n } catch (exception $a)/*para mostrar la falla en el codigo y la variable puede tener el nombre que sea*//*Aqui es que va la condicion */ {\n #catch captura el proceso fue erroneo\n $this->respuesta_conexion=\"Error al conectarse a la base de datos :C\";\n echo $this->respuesta_conexion.$a->getMessage();#asi nos dice que error es\n }\n \n }", "title": "" }, { "docid": "8698428294af25b17f2a9308774ecd6e", "score": "0.72827375", "text": "protected function conectaDB(){\n try {\n $Con = new PDO(\"mysql:host=localhost;dbname=idioma\", \"root\", \"\");\n //$Con = new PDO(\"mysql:host=localhost;dbname=id11380331_idioma\", \"root_idioma\", \"Root_IdiomaZ\"); \n return $Con;\n } catch (PDOException $ex) {\n return $ex->getMessage();\n }\n }", "title": "" }, { "docid": "99b10e3850bc3b3dbb17041edd9ae605", "score": "0.72822833", "text": "private function connect(){\r\n $options = array(\\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',\\PDO::ATTR_PERSISTENT => true); \r\n $this->pdo_obj = new \\PDO(\"mysql:host=\" . DatabaseHost . \";dbname=\" . DatabaseName , DatabaseUser, DatabasePassword,$options);\r\n $this->pdo_obj->setAttribute( \\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION );\r\n}", "title": "" }, { "docid": "a6d1e0493983f9c2cabb1c01ddb0a84d", "score": "0.7269494", "text": "public function __construct()\n\t{\n $config = Configuracio::de('basededades');\n\t\t$this->configuracio = $config;\n\n // Connectem\n $this->pdo = new PDO(\"{$config['driver']}:host={$config['host']};dbname={$config['basededades']};charset={$config['charset']}\", $config['usuari'], $config['contrasenya'], array(PDO::ATTR_PERSISTENT => true));\n\t}", "title": "" }, { "docid": "a416cbcf972218b0f705c6f9f20de32d", "score": "0.7263628", "text": "public function getConnection(){\n\n $this->connexion = null;\n\n $this->connexion = new PDO\n (\n \"mysql:host=\" . $this->host . \";dbname=\" . $this->db_name.\";charset=utf8\", \n $this->username,\n $this->password,\n array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)\n );\n return $this->connexion;\n }", "title": "" }, { "docid": "186968cf66a0b959a8613983eb7ee0c2", "score": "0.72591203", "text": "private function connect() {\n $sDSN = \"$this->sDbType:host=$this->sHost;dbname=$this->sDatabase;charset=utf8\";\n\n try {\n $this->pdoData = new \\PDO($sDSN, $this->sUser, $this->sPassword);\n \n $this->pdoData->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n $this->pdoData->query(\"SET NAMES utf8\");\n $this->bStatus = true;\n } catch (PDOException $e) {\n $this->sError = $e->getMessage();\n }\n }", "title": "" }, { "docid": "690506fd613e96ab20ed1503ddd86221", "score": "0.7255382", "text": "function connexion($bddname) {\r\n/* variables de connexion =================================================== */\r\n $serveur = 'localhost'; $loginserveur = 'root'; $mdpserveur = ''; $bddname = 'cnamcp09_nfa083cf1_2018';// variables connexion serveur\r\n\r\n\r\n/* connexion ================================================================ */\r\n $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; // option pour capturer messages d'erreur\r\n $pdo_options[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES utf8'; // option pour charset UTF-8\r\n $con = new PDO('mysql:host='.$serveur.';dbname='.$bddname,$loginserveur,$mdpserveur, $pdo_options);\r\n return $con;\r\n}", "title": "" }, { "docid": "d074aaa9e372383533017882a59d271f", "score": "0.72545993", "text": "public function __construct(){\n \n $this->conn = new PDO(\"mysql:host=127.0.0.1;dbname=php7\", \"root\", \"\");\n \n }", "title": "" }, { "docid": "b28b86ef3b3d40d8d012c5183c8085d5", "score": "0.7251738", "text": "function connexion(){\n $db = 'mysql:host=localhost;dbname=school;charsetutf8';\n // $user va contenir le nom utilisateur de la bdd\n $user = 'root';\n // $password contient le mot de passe pour la connexion a la bdd (il est vide)\n $password = '';\n // $options contient des options qui m'affichera des precisions si il y a des erreurs\n $options = [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC];\n\n try {\n // $connectDb contient un objet de la classe PDO qui permet la connection a la bdd\n $connectDb = new PDO($db, $user, $password, $options);\n // echo('connection établie');\n } catch (PDOException $e) {\n echo('la connexion a échoué ' .$e->getMessage());\n }\n\n return $connectDb;\n\n}", "title": "" }, { "docid": "50e245d84a4263a54ee89692ffdbca9c", "score": "0.7250982", "text": "function connect(){\n try{\n $connection = \"pgsql:host=\". $this->host. \";port=\". $this->port. \";dbname=\". $this->db;\n\n $pdo = new PDO($connection, $this->user, $this->pass);\n\n return $pdo;\n }catch(PDOException $e){\n header('Content-Type: application/json');\n echo json_encode(array('Mensaje' => \"Error connection\" . $e->getMessage()));\n http_response_code(405);\n }\n }", "title": "" }, { "docid": "6700e98d9101b31c046e21cb5b9c36a1", "score": "0.72372776", "text": "private function connection(){\n if(is_object($this->_db)) return $this->_db;\n $params = parse_url(MAR_DSN);\n $dsn = sprintf('%s:host=%s;dbname=%s', $params['scheme'], $params['host'], str_replace('/','',$params['path']));\n $this->_db = new PDO($dsn, $params['user'],$params['pass'], array(\n PDO::ATTR_PERSISTENT => true\n ));\n $this->_db->exec(\"SET NAMES '\" . DB_CHARSET . \"';\");\n $this->_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n }", "title": "" }, { "docid": "1545a6c5d2678455131f4d31ee276a74", "score": "0.72366554", "text": "function __construct() {\n try{\n $this->conexion = new PDO(\n 'mysql:host=' . Configuracion::SERVIDOR . ';dbname=' . Configuracion::BASEDATOS, Configuracion::USUARIO, Configuracion::CLAVE, array(\n PDO::ATTR_PERSISTENT => true,\n PDO::MYSQL_ATTR_INIT_COMMAND => 'set names utf8')\n );\n }catch( PDOException $e){\n $this->conexion = null;\n }\n }", "title": "" }, { "docid": "a7009dd9e925e1faf21652a74536da63", "score": "0.72352564", "text": "function getConnection(){\n try{\n $conexion= new PDO('mysql:host='.$this->host.';dbname='.$this->dbname,$this->user,$this->pwd);\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n return $conexion;\n }catch(PDOException $e){\n echo \"Error de conexion: \".$e->getMessage();\n die();\n }\n }", "title": "" }, { "docid": "9dd3c0bb3b45873a7fba0ce66953d527", "score": "0.72344595", "text": "function ConnextionBD()\n{\n $host = 'mysql-tristan-info.alwaysdata.net';\n $baseName = 'tristan-info_root';\n $user = '167519';\n $mdp = 'root';\n try {\n $bdd = new PDO('mysql:host=mysql-tristan-info.alwaysdata.net;dbname=tristan-info_root', '167519', 'root');\n } catch (Exception $e) {\n die('Erreur Coonnextion BD : ' . $e->getMessage());\n }\n}", "title": "" }, { "docid": "73792e3e9fcb9ac4281dccf4ba304671", "score": "0.72313815", "text": "function conect(){\n\n try {\n $this->conexion = new PDO('mysql:host='.$this->host.';dbname='.$this->dbname, $this->user,$this->pass);\n // echo \"Conexion establecida <br>\";\n\n // Esta consulta nos permite obtener los datos en formato utf8\n $this->select(\"SET NAMES 'utf8'\");\n return $this->conexion;\n\n } catch (PDOException $e) {\n echo \"Error al conectar con la base de datos\";\n return false;\n }\n\n }", "title": "" }, { "docid": "f49571b2dfcbec14789a2ebbfaf07c4d", "score": "0.7224876", "text": "private function connect(){\n try{\n $this->conn = new AtomicPDO(\"mysql:host=\" . $this->settings[\"hostname\"] . \";dbname=\" . $this->settings[\"database_name\"] . \";charset=utf8\", $this->settings[\"database_username\"], \n $this->settings[\"database_password\"], array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES 'utf8'\"));\n $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // set the PDO error mode to exception\n $this->conn->setAttribute( PDO::ATTR_EMULATE_PREPARES, true ); //emulate prepared statements, allows for more flexibility\n }\n catch(PDOException $e){\n echo \"Connection failed: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "5b8f5f7ee8b31f4b0d11ed2f5c149782", "score": "0.7222055", "text": "public static function abrir_conexion(){\n if(!isset(self::$conexion))//SI NO ESTA INICIADA LA SESION, ES DECIR, SI NO ESTA CONTECTADO\n {\n try{\n include_once 'config.inc.php'; //INCLUYENDO TODO LO QUE SE ENCUENTRA EN config.inc.php\n \n self::$conexion=new PDO('mysql:host='.NOMBRE_SERVIDOR.';dbname='.NOMBRE_BD.'',NOMBRE_USUARIO,PASSWORD);\n self::$conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); //PARA OBTENER LOS ERRORES DE LA BASE DE DATOS\n self::$conexion->exec(\"SET CHARACTER SET utf8\");\n }catch(PDOException $e){\n print \"ERROR\".$e->getMessage().\"<br>\";\n die();\n }\n\n } \n \n }", "title": "" }, { "docid": "32053cccec88d52d647e6cf85c22958c", "score": "0.7211374", "text": "function connexion() {\n include(\"params.inc.php\");\n $options = array( PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',);\n $connexion = new PDO('mysql:host='.$host.';dbname='.$dbname.';', $user, $password,$options);\n if (!$connexion) {\n die('Erreur de connexion à la base : [');\n }\n\n return $connexion;\n}", "title": "" }, { "docid": "43e24dc67c9b9532d8a326cfe99eb273", "score": "0.72103333", "text": "public static function conectar(){\n $config = new Config();\n $arr = $config->obtenerEstado();\n //print_r($arr);\n $db = \"\";\n $host = \"\";\n \n if(trim($arr[1]) == \"prev=true\"){\n $db = \"preventiva\";\n }\n\n if(trim($arr[1]) == \"prev=false\"){\n $db = \"newwilnewfinal\";\n }\n \n if(trim($arr[0]) == \"localhost\")\n\n $db_name = $db;\n $db_user = \"root\";\n $db_pass = \"123456789\";\n $db_host = $host;\n $port = \"3307\";\n /* Linea de conexion con mysql workbench----- \"mysql:host=localhost;dbname=newwilnewfinal\",$db_user,$db_name */\n\n try {\n\n $mdb = new PDO('mysql:host='.$db_host.':'.$port.';dbname='.$db_name,$db_user,$db_pass);\n //echo \"Exito al conextar a la base de dato\";\n //echo \"Exito al conextar a la base de datos\";\n $mdb->exec(\"set names utf8\");\n return $mdb;\n } catch (PDOException $e) {\n die(\"Error en la conexion a la base de datos \".$e->getMessage());\n }\n }", "title": "" }, { "docid": "f24f14864f3518eb6167bb25a9948b7e", "score": "0.7207525", "text": "function __construct() {\n try\n {\n $this->pdo = new PDO('mysql:host=localhost;dbname=Toothies', 'root', 'user');\n\n echo \"Connexion réussi!\";\n }\n catch(Exception $e)\n {\n echo \"echec de la connexion à la base de données\";\n exit();\n }\n }", "title": "" }, { "docid": "8c418e0ceaf6400bae3bc6cdcdac02b4", "score": "0.72046626", "text": "public function __construct()\n {\n try\n{\n\t// On se connecte à MySQL\n\t$this->DataBase = new PDO('mysql:host=localhost;dbname=home_camping2;charset=utf8', 'pdo', 'pdopdo');\n \n}\ncatch(Exception $errorMessage)\n{\n\t// En cas d'erreur, on affiche un message et on arrête tout\n die('Erreur : '.$errorMessage->getMessage());\n}\n\n }", "title": "" }, { "docid": "4af8c7188578b31b3261a779034bface", "score": "0.72028285", "text": "public function connect_db(){\n\t\t\ttry {\n\t\t\t\t$this->con = new PDO('mysql:host='.$this->dbhost.';dbname='.$this->dbname, $this->dbuser, $this->dbpass);\n\t\t\t\t//print \"Conexión exitosa!\";\n\t\t\t}\n\t\t\tcatch (PDOException $e) {\n\t\t\t\tprint \"¡Error!: \" . $e->getMessage() . \"\n\t\t\t\t\";\n\t\t\t\tdie();\n\t\t\t}\n\t\t\t$con =null;\n\t\t}", "title": "" }, { "docid": "6a233f25bb5cf5ce43aacbf024194405", "score": "0.7198607", "text": "public function connect(): PDO {\n // db connect\n return new PDO('mysql:host=' . self::HOST . ';dbname=' . self::DB_USER_NAME, self::DB_USER_NAME, self::PASSWORD);\n }", "title": "" }, { "docid": "d9a90c030a1e43f3c96f44832e03cc86", "score": "0.7194453", "text": "public function connection_bdd(){\n\t\t\n\t\t\n\t\ttry {\n\t\t\t$dbh = new PDO(\"mysql:host=\".$this->host_.\";dbname=\".$this->dbname_.\"\", $this->username_, $this->password_);\n\t\t\t$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n\t\t} catch (PDOException $e) {\n\t\t \tdie(\"Impossible de se connecter: \" . $e->getMessage());\n\t\t}\n\t\t\n\t\treturn $dbh;\n\t}", "title": "" }, { "docid": "eb83bff3cc780638bd58ba4e556842f1", "score": "0.7192846", "text": "public function conectar()\n {\n try{\n $link= new PDO(\"mysql:host=localhost;dbname=ecommerce\",\"root\",\"\",\n array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\n }catch (Exception $exception){\n return $exception->getMessage();\n }\n\n return $link;\n\n }", "title": "" }, { "docid": "354d5894c6cae4fc3e2fb665f9e3882c", "score": "0.7190356", "text": "function connectDBS() {\n //On test les paramètres entrés dans le fichier config.php\n try {\n $bdd = new PDO('mysql:host='. DBS_HOST .'; dbname='. DBS_BASE . ';charset=utf8', DBS_USER, DBS_PASS, \n array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)\n ); \n //Si les paramètres du fichier config.php sont bons, on accède à la bdd\n return $bdd;\n //Si les paramètres ne sont pas bons, on envoie un message d'erreur.\n } catch (PDOException $err) {\n $msg = 'ERREUR PDO dans ' . $err->getFile() . ' L.' . $err->getLine() . ' : ' . $err->getMessage(); \n // die($msg);\n \n }\n}", "title": "" }, { "docid": "471da51977037e0e4858fa8800599d5e", "score": "0.7184117", "text": "public static function conectar() {\n $host=\"localhost\";\n $port=5432;\n $dbname=\"integradorpaw\";\n $user=\"paobar\";\n $password=\"jasluz\";\n try {\n $conexion = new PDO(\"pgsql:host=$host;port=$port;dbname=$dbname;user=$user;password=$password\");\n return $conexion;\n } catch (PDOException $ex) {\n echo 'ERROR!';\n print_r($ex);\n }\n }", "title": "" }, { "docid": "0fa9ed53c7b6e49a365d2cf2fa4649d3", "score": "0.71759975", "text": "function __construct(){\n $this->pdo = new PDO('mysql:dbname=crudoo;host=localhost', 'root', '');\n }", "title": "" }, { "docid": "ec606170f8a9a17be83aab26a91785f3", "score": "0.71739537", "text": "public function __construct(){\n include('db.php');\n try {\n $this->connexion = new PDO(DSN, USER, PASSWORD); // Constantes créées dans config/db.php\n // Set l'encodage\n $this->connexion->query('SET CHARACTER SET UTF8');\n $this->connexion->query('SET NAMES UTF8');\n Echo \"Connexion a la BDD reussie\";\n }catch(PDOException $e){\n // Gestion de l'erreur (stockée dans $e)\n die('index.php line 27'.$e->getMessage());\n }\n }", "title": "" }, { "docid": "7548792f850bf12eb2a89b2cd97c479a", "score": "0.717294", "text": "public function connect() {\n try{\n\t\t\t$this->pdo = new PDO(\"mysql:host=$this->server;dbname=$this->dbname\", \"$this->username\", \"$this->password\");\n\t\t\t$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t} catch (PDOException $ex) {\n\t\t\techo \"<p> a database error occurred: <em> <?= $ex->getMessage() ?> </em></p>\";\n\t\t}\n }", "title": "" }, { "docid": "e6e9fc142eda2fd2072b3aba5322354e", "score": "0.71695966", "text": "private function connect() {\n try {\n $dsn = 'mysql:host=127.0.0.1;dbname=bd_android;mysql:port=3306;mysql:charset=utf8mb4';\n $usuario = 'root';\n $contraseña = '';\n $this->db = new PDO($dsn, $usuario, $contraseña,array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n } catch (PDOException $e) {\n die('Connection failed: ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "7fba09ad088380911ff61a02700a914a", "score": "0.7162021", "text": "function DB_connection(){\n $host = 'localhost';\n $dbName = 'dva_proraba';\n $dbUser = 'root';\n $dbPass = '';\n return new PDO(\"mysql:host=$host;dbname=$dbName\", $dbUser, $dbPass);\n}", "title": "" }, { "docid": "64249ef58c1354b1cbef4b0cea5308cb", "score": "0.7158449", "text": "private function dbConnect(){\n\t\ttry{\n\t\t\t$this->con = new PDO($this->dsn, $this->user, $this->dbPass);\n\t\t\t/*\n\t\t\t$this ->con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t$this->con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n\t\t\t*/\n\t\t}catch(PDOException $err){$this->error = true;}\n\t}", "title": "" }, { "docid": "50434ab08a78cf4fde5d62ea996bffb8", "score": "0.7157414", "text": "private function connect(){\r\n\t\t\tif( $this->transaction ) return $this->connection;\r\n\r\n\t\t\t$pdoStringCon = 'pgsql:host='.$this->server.';dbname='.$this->dbname;\r\n\t\t\ttry{\r\n\t\t\t\t$this->connection = new PDO($pdoStringCon, $this->user, $this->pass);\r\n\t\t\t\t$error = isset($this->connection->connect_error);\r\n\t\t\t\tif( $error ){\r\n\t\t\t\t\t$this->error = \"Error al intentar conectar con la base de datos\";\r\n\t\t\t\t\t$this->errorDetail = $this->connection->connect_error;\r\n\t\t\t\t}\r\n\t\t\t} catch(PDOException $ex){\r\n\t\t\t\t$this->error = \"Error al intentar conectar con la base de datos\";\r\n\t\t\t\t$this->errorDetail = $ex->getMessage();\r\n\t\t\t}\r\n\t\t}", "title": "" } ]
33bc0a6209c6ce44e5826a5b71fbb476
Data provider for testFloor
[ { "docid": "72a09a2514ce38170bcc3db530a4bb47", "score": "0.45106727", "text": "public function casesFloor()\n\t{\n\t\treturn array(\n\t\t\tarray(2, 7, true, false, 0, null, true),\n\t\t\tarray(2, 7, true, false, 6, 6, false),\n\t\t\tarray(2, 7, true, false, 7, 6, false),\n\t\t\tarray(2, 7, true, false, 8, 6, false),\n\t\t\tarray(2, 7, true, true, 0, null, true),\n\t\t\tarray(2, 7, true, true, 6, 6, false),\n\t\t\tarray(2, 7, true, true, 7, 7, false),\n\t\t\tarray(2, 7, true, true, 8, 7, false),\n\t\t\tarray(2, 7, false, false, 0, null, true),\n\t\t\tarray(2, 7, false, false, 2, null, true),\n\t\t\tarray(2, 7, false, false, 3, 3, false),\n\t\t\tarray(2, 7, false, false, 6, 6, false),\n\t\t\tarray(2, 7, false, false, 7, 6, false),\n\t\t\tarray(2, 7, false, false, 8, 6, false),\n\t\t\tarray(2, 7, false, true, 0, null, true),\n\t\t\tarray(2, 7, false, true, 2, null, true),\n\t\t\tarray(2, 7, false, true, 3, 3, false),\n\t\t\tarray(2, 7, false, true, 6, 6, false),\n\t\t\tarray(2, 7, false, true, 7, 7, false),\n\t\t\tarray(2, 7, false, true, 8, 7, false),\n\t\t\tarray(null, 7, null, false, 0, 0, false),\n\t\t\tarray(null, 7, null, false, 7, 6, false),\n\t\t\tarray(null, 7, null, false, 8, 6, false),\n\t\t\tarray(9, -1, true, false, 0, null, true),\n\t\t\tarray(9, -1, true, false, 6, null, true),\n\t\t);\n\t}", "title": "" } ]
[ { "docid": "8ffda469f81dc52946422af1e14650a2", "score": "0.6100799", "text": "public function show(Floor $floor)\n {\n //\n }", "title": "" }, { "docid": "c43217c5972efff154a7e8c3dd0933e4", "score": "0.60936975", "text": "public function __construct(FloorRepository $floor)\n {\n $this->floor = $floor;\n }", "title": "" }, { "docid": "4e7c5c60ed4a9da706f08be9162ee048", "score": "0.59666586", "text": "public function get_floor() {\n\t\treturn $this->floor;\n\t}", "title": "" }, { "docid": "f0df4a632fd5c252c7603937ebe07541", "score": "0.5959969", "text": "public function testFloor0()\n{\n\n $actual = $this->address->floor();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "ed40043e81c39fd3d44be23a3a24d59d", "score": "0.59311646", "text": "private function getFloorplan(array &$data): void\n {\n $this->load->model('floorplan_model');\n $this->load->model('shopspot_model');\n $floorplan = $this->floorplan_model->readImproved([\n 'what' => ['*'],\n 'where' => [\n 'vendorId' => $_SESSION['userId']\n ],\n 'conditions' => [\n 'order_by' => ['id', 'DESC'],\n 'limit' => ['1']\n ]\n ]);\n\n if (is_null($floorplan)) return;\n\n $floorplan = reset($floorplan);\n $areas = $this->floorplanareas_model->get_floorplan_areas($floorplan['id']);\n\n $data['floorplan'] = $floorplan;\n $data['areas'] = $areas;\n }", "title": "" }, { "docid": "251e917278fffc3040109119e1d7e562", "score": "0.5584584", "text": "public function getFloor(): string\n {\n return $this->Floor ?? '';\n }", "title": "" }, { "docid": "530226950783bbfda63b1aa8127a4930", "score": "0.5513013", "text": "public function getFloor()\n {\n return $this->hasOne(Floors::className(), ['floorid' => 'floorid']);\n }", "title": "" }, { "docid": "7f3b318b35f6065b0722ba3abd9e340d", "score": "0.5507837", "text": "public function testfilterFloorDivEQGood()\n {\n\n $this->visit('odata.svc/customer?$filter=floor(id%20div%202)%20eq%205')\n ->see('<title type=\"text\">customer</title>')\n ->see('xml:base=\"')\n ->dontSee('<d:id m:type=\"Edm.Int32\">1</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Bilbo Baggins</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">2</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Oin</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">3</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Azaghal</d:name')\n ->dontSee('<d:id m:type=\"Edm.Int32\">4</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Gimli</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">5</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Catelyn Stark</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">6</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Ygritte</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">7</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Melisandre</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">8</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">The Doctor</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">9</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Susan Foreman</d:name>')\n ->see('<d:id m:type=\"Edm.Int32\">10</d:id>')\n ->see('<d:name m:type=\"Edm.String\">Death</d:name>')\n ->see('<d:id m:type=\"Edm.Int32\">11</d:id>')\n ->see('<d:name m:type=\"Edm.String\">The Hogfather</d:name>')\n ->dontSee('<d:id m:type=\"Edm.Int32\">12</d:id>')\n ->dontSee('<d:name m:type=\"Edm.String\">Moist von Lipwig</d:name>')\n ->dontSee(\"Whoops\");\n }", "title": "" }, { "docid": "2b129f3824e658c6dfe2f6078850ded0", "score": "0.54725", "text": "public function floor(){\n $floors_info=DB::table('floors')\n ->orderBy('id', 'desc')\n ->get();\n $floor_type_info=DB::table('floor_types')\n ->orderBy('id', 'desc')\n ->get();\n $building_info=DB::table('buildings')\n ->orderBy('id', 'desc')\n ->get();\n\n $manage_floors=view('admin.hotel_management.floor.floor_list')\n ->with('floors_info',$floors_info)\n ->with('floor_type_info',$floor_type_info)\n ->with('building_info',$building_info);\n return view('admin.master')\n ->with('admin.hotel_management.floor.floor_list',$manage_floors);\n }", "title": "" }, { "docid": "a829839136f4380dd7c9134ad045ebe9", "score": "0.5398612", "text": "public function getFloorPlans(){\n\t\t\n\n\t\t$params = \"\";\n\t\t$web_service = \"properties\";\n\t\t$result = $this->initialize_API_call(\"properties\",$params, \"getFloorPlans\");\n\t\treturn $result;\t\n\n\t\n\t\t//return \"aaaaa\";\n\t}", "title": "" }, { "docid": "4e35d2c8fa9aff8d2cf8fb20f7e85bfa", "score": "0.52203685", "text": "public function floorProvider(): array\n {\n return [\n ['2018-05-23 17:23', null, '2018-05-23 17:00'], // default precision\n ['2018-05-23 17:23', Interval::minute(), '2018-05-23 17:23'],\n ['2018-05-23 17:23', Interval::minutes(10), '2018-05-23 17:20'],\n ['2018-05-23 17:23', Interval::minutes(15), '2018-05-23 17:15'],\n ['2018-05-23 17:23', Interval::minutes(30), '2018-05-23 17:00'],\n ['2018-05-23 17:23', Interval::hour(), '2018-05-23 17:00'],\n ['2018-05-23 17:23', Interval::hours(2), '2018-05-23 16:00'],\n ['2018-05-23 17:23', Interval::hours(3), '2018-05-23 15:00'],\n ['2018-05-23 17:23', Interval::hours(6), '2018-05-23 12:00'],\n ['2018-05-23 17:23', Interval::hours(8), '2018-05-23 16:00'],\n ['2018-05-23 17:23', Interval::hours(12), '2018-05-23 12:00'],\n ['2018-05-23 17:23', Interval::hours(18), '2018-05-23 12:00'],\n ['2018-05-23 17:23', Interval::day(), '2018-05-23 00:00'],\n ];\n }", "title": "" }, { "docid": "3f4dea34d3e4e76b1245abb1bc3f3d5b", "score": "0.5153315", "text": "function testCeilFloorFunctionCallSQLServer()\n\t{\n\n\t\t$serviceUri = 'http://localhost:8083/NorthWindDataService.svc/';\n\t\t$resourcePath = 'Orders';\n\t\t$requestUri = $serviceUri . $resourcePath;\n\t\t$hostInfo = array(\n\t\t\t'AbsoluteServiceUri' => new Url($serviceUri),\n\t\t\t'AbsoluteRequestUri' => new Url($requestUri),\n\t\t\t'QueryString' => '$filter=ceiling(floor(Freight)) eq 32',\n\t\t\t'DataServiceVersion' => new Version(3, 0),\n\t\t\t'MaxDataServiceVersion' => new Version(3, 0),\n\t\t);\n\n\t\t$host = new ServiceHostTestFake($hostInfo);\n\t\t$dataService = new NorthWindService();\n\t\t$dataService->setHost($host);\n\n\t\t$uriProcessor = $dataService->handleRequest();\n\t\t$this->assertNotNull($uriProcessor);\n\n\t\t$requestDescription = $uriProcessor->getRequest();\n\t\t$this->assertNotNull($requestDescription);\n\n\t\t$filterInfo = $requestDescription->getFilterInfo();\n\t\t$this->assertNotNull($filterInfo);\n\n\t\t$sqlexpression = $filterInfo->getExpressionAsString();\n\t\t$this->AssertEquals(\"(CEILING(FLOOR(Freight)) = 32)\", $sqlexpression);\n\n\t}", "title": "" }, { "docid": "ee27b57eba657ab166c4f7ef568ec4ae", "score": "0.5006297", "text": "public function getData() {\n self::$srp->expects($this->once())\n ->method('__get')\n ->with($this->equalTo('horses'))\n ->will($this->returnValue('high'));\n $this->assertEquals(self::$sh->horses, 'high');\n }", "title": "" }, { "docid": "a17fdde1763a0e1b64e637a83f7646c6", "score": "0.49888834", "text": "public function setFloor(string $floor): Address\n {\n $this->Floor = $floor;\n return $this;\n }", "title": "" }, { "docid": "242140e30654628dbc245a84ec8eb38e", "score": "0.49351743", "text": "public function testNeighbourhood() {\n // Set the position outside US (wrong)\n $this->geo->set([\n 'position'=>[\n 'lat'=>51.8985,\n 'lng'=>-8.4756\n ]\n ]);\n $t=$this->geo->neighbourhood();\n $this->assertArrayHasKey('status',(array) $t,'Key not present');\n\n // Set the position inside US (right)\n $this->geo->set([\n 'position'=>[\n 'lat'=>40.78343,\n 'lng'=>-73.96625\n ]\n ]);\n $t=$this->geo->neighbourhood();\n $this->assertEquals('NY',$t->neighbourhood->adminCode1,'Not correct adminCode');\n }", "title": "" }, { "docid": "714da95d4d5a22ff4885666a7cc14833", "score": "0.49153605", "text": "public function store(FloorRequest $request)\n {\n try {\n if (Floor::create($request->except(['id']))) {\n return response()->json(['message' => 'Floor Created Successfully', 'title' => 'Create']);\n }\n } catch (\\Exception $e) {\n return response()->json($e->getMessage(), 404);\n }\n }", "title": "" }, { "docid": "215f5089bc8a8af4c26a8574f25e2e02", "score": "0.4908404", "text": "public function definition()\n {\n $mapCenterLatitude = -2.68496;\n $mapCenterLongitude = 113.95365;\n $minLatitude = $mapCenterLatitude - 3.9;\n $maxLatitude = $mapCenterLatitude + 3.9;\n $minLongitude = $mapCenterLongitude - 2.07;\n $maxLongitude = $mapCenterLongitude + 2.07;\n\n return [\n 'type_id' => $this->faker->numberBetween(1, 4),\n 'island_id' => $this->faker->numberBetween(1, 6),\n 'creator_id' => 1,\n 'is_active' => true,\n 'name_place' => $this->faker->firstName,\n 'slug' => Str::slug($this->faker->firstName),\n 'address' => $this->faker->address,\n 'provinsi' => $this->faker->lastName,\n 'kabupaten' => $this->faker->lastName,\n 'latitude' => $this->faker->latitude($minLatitude, $maxLatitude),\n 'longitude' => $this->faker->longitude($minLongitude, $maxLongitude),\n 'description' => $this->faker->text(1000),\n 'image' => 'https://picsum.photos/id/' . $this->faker->numberBetween(1, 100) . '/200/300'\n ];\n }", "title": "" }, { "docid": "bed7a194c57ef9b30ad47c5c5c73c863", "score": "0.48923144", "text": "public function getAgar_floor(){\n $agar_floor = AgarFloor::where('status',1)->get();\n return view('dashboard.agar_floor')->with('agar_floor',$agar_floor);\n }", "title": "" }, { "docid": "bf3e473d4fdd8b1ac649ba639e3d511d", "score": "0.4866117", "text": "function getAllFloorplans() {\n\t\ttry{\n\t\t\t$database = new data;\n\n\t\t\t$fps = $database->getData(\"SELECT imagePath, name FROM floorPlan ORDER BY name ASC;\", array());\n\n\t\t\tforeach($fps as $arr) {\n\t\t\t\techo\"<option value='\" . $arr['imagePath'] . \"'>\" . $arr['name'] . \"</option>\";\n\t\t\t}\n\t\t} catch(dbException $db){\n\t\t\techo $db->alert();\n\t\t}\n\t}", "title": "" }, { "docid": "e9d3847f604b75a8b516ecac7ed9aa38", "score": "0.4828283", "text": "public function casesFloor()\n\t{\n\t\treturn array(\n\t\t\tarray(array(), 10, null, 'OutOfBoundsException'),\n\t\t\tarray(array(1 => 1), 1, 1, null),\n\t\t\tarray(array(1 => 1, 0 => 0), 0, 0, null),\n\t\t\tarray(array(2 => 2, 1 => 1), 0, null, 'OutOfBoundsException'),\n\t\t\tarray(array(0 => 0, 1 => 1), 1, 1, null),\n\t\t\tarray(array(0 => 0, 1 => 1), 2, 1, null),\n\t\t);\n\t}", "title": "" }, { "docid": "7114511a79e52a0f871f9760f3a79f6a", "score": "0.48254088", "text": "public function testImageFoldersIdPortalsGet()\n {\n\n }", "title": "" }, { "docid": "dad870278c8c74c128f1d7aacb24f385", "score": "0.4820315", "text": "public function __invoke(ManageFloorRequest $request)\n {\n return Datatables::of($this->floor->getForDataTable())\n ->escapeColumns(['id'])\n ->addColumn('created_at', function ($floor) {\n return Carbon::parse($floor->created_at)->toDateString();\n })\n ->addColumn('branch_id', function ($floor) {\n return $floor->branch_id;\n })\n ->addColumn('actions', function ($floor) {\n return $floor->action_buttons;\n })\n ->make(true);\n }", "title": "" }, { "docid": "c4a158dc3cd91a6f6ab8ebcd309fac9b", "score": "0.4810118", "text": "public function floor($dorm, $floor = 1){\n $assignments = new RoomAssignment();\n $units = [1,2,3,4];\n $results = [];\n array_walk($units, function(&$value, $key)use($floor) { $value += (4*($floor-1)); } );\n foreach ($units as $unit){\n for ($room = 1; $room <=4; $room++){\n $results[$unit][$room] = count($assignments->occupants($dorm,$unit,$room));\n }\n $results[$unit]['gender'] = strtolower($assignments->unit_gender($dorm,$unit));\n\n }\n return (object) $results;\n }", "title": "" }, { "docid": "a992e190e0e30f5aa365d654500625ee", "score": "0.48066297", "text": "function ozy_init_test() {\n\tglobal $ozy_data;\n\t\n\t$d = new Ozy_Mobile_Detect;\n\t$ozy_data->device_type\t\t= ($d->isMobile() ? ($d->isTablet() ? 'tablet' : 'phone') : 'computer');\n\t$ozy_data->script_version \t= $d->getScriptVersion();\t\n\n\t$ozy_data->container_width\t= '1212';//'1212';//'1140';\n\t$ozy_data->content_width \t= '792';\n\t$ozy_data->sidebar_width \t= '312';\n\t\n\t$ozy_data->menu_type = ozy_get_option('primary_menu_type', 'side-menu');\t\n\t$ozy_data->menu_align = ozy_get_option('primary_menu_align', 'left');\t\n}", "title": "" }, { "docid": "75180a5ef4681613e22641a037a84690", "score": "0.47961017", "text": "public function testGetData()\n {\n $this->assertEquals($this->data, $this->baseRepresentation->getData(), 'The representation should return the initial data.');\n }", "title": "" }, { "docid": "7841e555ca407d8a3477f7e4ec61ed0b", "score": "0.4776035", "text": "public function testGetZRLocationStructure()\n {\n }", "title": "" }, { "docid": "0c73cb70ac71c2a46c2f2b182f6ff699", "score": "0.476654", "text": "public function index()\n {\n $floors = Floor::OrderBy('floor_name','ASC')->get();\n return view('admin.inventorymanagement.floor.index')->with('floors',$floors);\n }", "title": "" }, { "docid": "353466ec1759a7bfc36f385ba2998cd9", "score": "0.47514513", "text": "public function dataProviderForZTestOneSample()\n {\n return [\n [96, 55, 100, 12, ['z' => -2.4720661623652, 'p1' => 0.00676, 'p2' => 0.013436]],\n [83, 40, 80, 5, ['z' => 3.79473, 'p1' => 0.0001, 'p2' => 0.0001]],\n [20, 200, 19.2, 6, ['z' => 1.88562, 'p1' => 0.02938, 'p2' => 0.0593]],\n [22.875, 35, 19.5, 5, ['z' => 3.99335, 'p1' => 0.0001, 'p2' => 0.0001]],\n [112, 30, 100, 15, ['z' => 4.38178, 'p1' => 0.0000, 'p2' => 0.0000]],\n [18.9, 200, 21, 5, ['z' => -5.9397, 'p1' => 0.0000, 'p2' => 0.0000]],\n [6.7, 29, 5, 7.1, ['z' => 1.28941, 'p1' => 0.0986, 'p2' => 0.1973]],\n [80.94, 25, 85, 11.6, ['z' => -1.75, 'p1' => 0.0401, 'p2' => 0.080118]],\n ];\n }", "title": "" }, { "docid": "77fd84a14b05873ff7ad0bb45f80c075", "score": "0.4749111", "text": "public function testViewRenderData() {\n // and content\n global $wp_router_stub;\n\n $pod_factory_stub = $this->getMockBuilder('PlumberPodFactory')\n ->setMethods(array('create_single_pod'))\n ->disableOriginalConstructor()\n ->getMock(); \n $plumber = PlumberStatic::get_active_instance();\n $plumber->plumber_pod_factory = $pod_factory_stub;\n\n $local_function_stubs = $this->get_user_function_stubs();\n $local_function_stubs->expects($this->exactly(1))\n ->method('singleton_view_render')\n ->with(\n $this->equalTo('pages/articles'),\n $this->callback(function($args) {\n $page = $args['route_vars']['page'];\n $other = $args['route_vars']['something'];\n return $page == 2 && $other == 'else';\n })\n )\n ->will($this->returnValue(false));\n\n PlumberStatic::set_active_instance($plumber);\n\n PlumberStatic::create_routes($wp_router_stub);\n\n UserFunctionStubs::set_active_instance($local_function_stubs);\n\n // id, page\n PlumberStatic::router_callback_get('articles/{page}', 2);\n }", "title": "" }, { "docid": "62f00217efc872e411cf44782e7eaf7e", "score": "0.47313008", "text": "private function getUnitsData()\n {\n $this->survey->unitA = new Model_SurveyUnitA($this->survey->unitA);\n $this->survey->unitB = new Model_SurveyUnitB($this->survey->unitB);\n $this->survey->unitC = new Model_SurveyUnitC($this->survey->unitC);\n $this->survey->unitD = new Model_SurveyUnitD($this->survey->unitD);\n $this->survey->unitE = new Model_SurveyUnitE($this->survey->unitE);\n $this->survey->unitF = new Model_SurveyUnitF($this->survey->unitF);\n $this->survey->unitG = new Model_SurveyUnitG($this->survey->unitG);\n $this->survey->unitH = new Model_SurveyUnitH($this->survey->unitH);\n $this->survey->unitI = new Model_SurveyUnitI($this->survey->unitI);\n $this->survey->unitJ = new Model_SurveyUnitJ($this->survey->unitJ);\n $this->survey->unitK = new Model_SurveyUnitK($this->survey->unitK);\n $this->survey->unitL = new Model_SurveyUnitL($this->survey->unitL);\n $this->survey->unitM = new Model_SurveyUnitM($this->survey->unitM);\n $this->survey->unitN = new Model_SurveyUnitN($this->survey->unitN);\n $this->survey->unitO = new Model_SurveyUnitO($this->survey->unitO);\n $this->survey->unitP = new Model_SurveyUnitP($this->survey->unitP);\n $this->survey->unitQ = new Model_SurveyUnitQ($this->survey->unitQ);\n $this->survey->unitR = new Model_SurveyUnitR($this->survey->unitR);\n }", "title": "" }, { "docid": "7a9288d51695d04527d4d33cba76b6a1", "score": "0.47291872", "text": "public function createRouteSimpleData()\n {\n $route = $this->factory\n ->parse('blog.read', '/blog/{id}', $this->getMapStub());\n $this->assertEquals('/blog/{id}', $route->path);\n $this->assertEquals('blog.read', $route->name);\n }", "title": "" }, { "docid": "c164a6828cf2946bfbf8d6d6ff0bf850", "score": "0.4727566", "text": "public function setUp()\n {\n parent::setUp();\n\n $faker = Factory::create();\n $this->lat = $faker->latitude();\n $this->lon = $faker->longitude();\n }", "title": "" }, { "docid": "47a8c7c930dc751d1aa260003bd4abd6", "score": "0.47224328", "text": "public function testTripDistance(){\n $point_1 = new GeoPoint(['latitude' => '-42.7672777','longitude' => '-65.036735', 'order' => '1']);\n $point_2 = new GeoPoint(['latitude' => '-42.036735','longitude' => '-65.7672777', 'order' => '2']);\n $points = array($point_1, $point_2);\n //Control de metros o kilometros\n $distancia = (new TripController)->tripDistance($points);\n //var_dump ($distancia);\n $this->assertTrue($distancia > 0);\n\n}", "title": "" }, { "docid": "cb30670ae5b6f7447892f893afb3a295", "score": "0.4713923", "text": "function setUp() {\n $this->strDirName = \"testcase/\";\n\t$this->strPathToOutputData = \"../../ogrtests/\".$this->strDirName;\n $this->strTmpDumpFile = \"DumpFile.tmp\";\n $this->strPathToData = \"./data/mif\";\n $this->strPathToStandardData = \"./data/testcase/\";\n $this->bUpdate = FALSE;\n $this->iSpatialFilter[0] = 3350000; /*xmin*/\n $this->iSpatialFilter[1] = 4210400; /*ymin*/\n $this->iSpatialFilter[2] = 3580000; /*xmax*/\n $this->iSpatialFilter[3] = 4280000; /*ymax*/\n\n if (file_exists($this->strPathToOutputData)) {\n system( \"rm -R \".$this->strPathToOutputData);\n }\n mkdir($this->strPathToOutputData, 0777);\n\n OGRRegisterAll();\n\n $this->hOGRSFDriver = OGRGetDriver(5);\n\n $this->hSrcDataSource = OGR_Dr_Open($this->hOGRSFDriver,\n $this->strPathToData,\n $this->bUpdate);\n\n $this->hLayer = OGR_DS_GetLayer($this->hSrcDataSource, 4);\n\n }", "title": "" }, { "docid": "5f887ff489b19c9bf6a95e8d2777b734", "score": "0.4710012", "text": "function setup_single_units_data( $id ) {\n\n\t\t$rental = get_post_custom( $id );\n\t\t\n\t\t//Now lets get the Featured image and append it to the rental array.\n\t\t$feat_img = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'full' );\n\t\tif ( !empty( $feat_img ) ) {\n \t$rental['featured_image'] = $feat_img[0];\n } else {\n \t$rental['featured_image'] = get_bloginfo(\"url\").'/wp-content/plugins/wp-property-manager/assets/images/blank-photo.png'; \n }\n\n\t\t//Next lets get all the images in the gallery. Both Full and Thumb sizes.\n\t\t$phototext = $rental['photo-gal'][0];\n\t\t\n\t\tif (empty($phototext)) {\n \techo \"Were sorry, we do not have any photos for this unit yet. Check back soon!\";\n } else {\n \t\n \t$all_images = explode(',', $rental['photo-gal'][0]);\n\n \t//Prep full-size and thumbnails//\n \t$rental['gallery_images'] = array();\n \t$n = 0;\n\n \tforeach ($all_images as $img) {\n \t$rental['gallery_images'][$n] = array(\n 'full' => wp_get_attachment_image_src( $img, 'full' ),\n 'thumb' => wp_get_attachment_image_src( $img, 'mini-tiles' )\n );\n \t$n++; \n \t}\n }\n\n return $rental;\n\t}", "title": "" }, { "docid": "00dfd7d83b038c440da77aa485217beb", "score": "0.47080514", "text": "public function testFeaturedLocationInViews()\n {\n $response = $this->call('GET','/');\n $response->assertViewHas('features');\n }", "title": "" }, { "docid": "730e3026d408c7878aeb79cd9c12d0c6", "score": "0.46911538", "text": "public function testModel(){\n $point_1 = new GeoPoint(['latitude' => '-42.7672777','longitude' => '-65.036735', 'order' => '1']);\n $point_2 = new GeoPoint(['latitude' => '-42.036735','longitude' => '-65.7672777', 'order' => '2']);\n $points = array($point_1, $point_2);\n // Se crea un recorrido incorporando el arreglo de puntos.\n $trip = new Trip(['name' => 'Nuevo Recorrido','description' => 'Recorrido de Test', 'points' => $points]);\n // Se comprueba el funcionamiento del modelo.\n $this->assertTrue(count($trip->points) == 2);\n $this->assertTrue($trip->name == 'Nuevo Recorrido');\n $this->assertTrue($trip->description == 'Recorrido de Test');\n }", "title": "" }, { "docid": "ce48cec18d593a99a66ef492a5b56050", "score": "0.469115", "text": "public function floor_type(){\n $floor_type_list_info=DB::table('floor_types')\n ->orderBy('id', 'desc')\n ->get();\n $manage_floor_types=view('admin.hotel_management.floor.floor_type_list')\n ->with('floor_type_list_info',$floor_type_list_info);\n return view('admin.master')\n ->with('admin.hotel_management.floor.floor_type_list',$manage_floor_types);\n }", "title": "" }, { "docid": "8e1103c51113b7d0257782d1e0f56b4f", "score": "0.46888104", "text": "public function show($id)\n {\n $floor = $this->repository->find($id);\n\n return response()->json($floor);\n }", "title": "" }, { "docid": "fdd59ad92a75cd972d12af8e3ee870b3", "score": "0.46867424", "text": "public function testUserLocation()\n {\n $this->assertEquals('Benin', Helper::userLocation()->country);\n //$this->assertEquals('bj', Helper::userLocation()->iso_code);\n }", "title": "" }, { "docid": "188bb1664915639f265ad004f7855895", "score": "0.46841073", "text": "public function testImageFoldersIdPortalsFkGet()\n {\n\n }", "title": "" }, { "docid": "2786439ccd7cb97cd2f8a61c5facd779", "score": "0.4660433", "text": "public function testGetUsaha_bound7()\n {\n $result = $this->usaha->hitung_usaha(0.005, 7);\n $category = $this->usaha->kategori_usaha(0.005,7);\n $this->assertEquals(0.035, $result);\n $this->assertEquals('Usaha Positif', $category);\n }", "title": "" }, { "docid": "51223730dc3dc0b861880734cd0c5bdc", "score": "0.46586335", "text": "public function getFeaturesProvider()\n {\n return [\n /** INDIVIDUAL CITIES */\n /** City North of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ],\n ],\n /** City East of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['East'],\n ],\n ],\n /** City South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['South'],\n ],\n ],\n /** City West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['West'],\n ],\n ],\n /** Cities North and East of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['East'],\n ],\n ],\n /** Cities North and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['South'],\n ],\n ],\n /** Cities North and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['West'],\n ],\n ],\n /** Cities East and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['East'],\n ['South'],\n ],\n ],\n /** Cities East and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['East'],\n ['West'],\n ],\n ],\n /** Cities South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['South'],\n ['West'],\n ],\n ],\n /** Cities North, East and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** Cities North, East and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** Cities North, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** Cities East, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Cities North, East, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n\n /** INDIVIDUAL ROADS */\n /** Road North of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ],\n ],\n /** Road East of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ],\n ],\n /** Road South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['South'],\n ],\n ],\n /** Road West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['West'],\n ],\n ],\n /** Roads North and East of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ],\n ],\n /** Roads North and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ],\n ],\n /** Roads North and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['West'],\n ],\n ],\n /** Roads East and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ],\n ],\n /** Roads East and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['West'],\n ],\n ],\n /** Roads South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['South'],\n ['West'],\n ],\n ],\n /** Roads North, East and South of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** Roads North, East and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** Roads North, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** Roads East, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Roads North, East, South and West of Tile */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n\n /** INDIVIDUAL ROADS AND CITIES */\n /** City North of Tile, Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ],\n ],\n /** City North of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ],\n ],\n /** City North of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['West'],\n ],\n ],\n /** City East of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ],\n ],\n /** City East of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['West'],\n ],\n ],\n /** City East of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ],\n ],\n /** City South of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['South'],\n ['West'],\n ],\n ],\n /** City South of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ],\n ],\n /** City South of Tile, Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ],\n ],\n /** City West of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['West'],\n ],\n ],\n /** City West of Tile, Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['West'],\n ],\n ],\n /** City West of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['South'],\n ['West'],\n ],\n ],\n /** City North, East of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** City North, East of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** City East, South of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City East, South of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** City South, West of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** City South, West of Tile, Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City West, North of Tile, Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** City West, North of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road North, East of Tile, City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** Road North, East of Tile, City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** Road East, South of Tile, City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road East, South of Tile, City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** Road South, West of Tile, City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road South, West of Tile, City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road West, North of Tile, City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** Road West, North of Tile, City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['South'],\n ['West'],\n\n ],\n ],\n\n /** City North, East of Tile, Road South, West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City East, South of Tile, Road North, West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City South, West of Tile, Road North, East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City North, West of Tile, Road East, South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City North, South of Tile, Road East West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road North, South of Tile, City East West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City North, East, South of Tile, Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City North, East, West of Tile, South West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City North, South, West of Tile, Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** City East, South, West of Tile, Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road North, East, South of Tile, City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road North, East, West of Tile, South West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road North, South, West of Tile, City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road East, South, West of Tile, City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CLOISTER),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n\n /** CONNECTED CITIES */\n /** City North, East Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'East'],\n ],\n ],\n /** City East, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East', 'South'],\n ],\n ],\n /** City South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South', 'West'],\n ],\n ],\n /** City West, North Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'West'],\n ],\n ],\n /** City North, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'South'],\n ],\n ],\n /** City East, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East', 'West'],\n ],\n ],\n /** City North, East, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'East', 'South'],\n ],\n ],\n /** City East, South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East', 'South', 'West'],\n ],\n ],\n /** City South, West, North Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'South', 'West'],\n ],\n ],\n /** City West, North, East Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'East', 'West'],\n ],\n ],\n /** City North, East, South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North', 'East', 'South', 'West'],\n ],\n ],\n\n /** CONNECTED ROADS */\n /** Road North, East Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North', 'East'],\n ],\n ],\n /** Road East, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East', 'South'],\n ],\n ],\n /** Road South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['South', 'West'],\n ],\n ],\n /** Road West, North Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North', 'West'],\n ],\n ],\n /** Road North, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North', 'South'],\n ],\n ],\n /** Road East, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East', 'West'],\n ],\n ],\n /** Road North, East, South Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ],\n ],\n /** Road East, South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road South, West, North Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road West, North, East Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['West'],\n ],\n ],\n /** Road North, East, South, West Connected */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n\n /** CONNECTED CITIES AND ROADS */\n /** City North, East Connected; Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South'],\n ['North', 'East'],\n ],\n ],\n /** City North, East Connected; Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['West'],\n ['North', 'East'],\n ],\n ],\n /** City East, South Connected; Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['West'],\n ['East', 'South'],\n ],\n ],\n /** City East, South Connected; Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['East', 'South'],\n ],\n ],\n /** City South, West Connected; Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['South', 'West'],\n ],\n ],\n /** City South, West Connected; Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['South', 'West'],\n ],\n ],\n /** City West, North Connected; Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['North', 'West'],\n ],\n ],\n /** City West, North Connected; Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South'],\n ['North', 'West'],\n ],\n ],\n /** City North, South Connected; Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['North', 'South'],\n ],\n ],\n /** City North, South Connected; Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['West'],\n ['North', 'South'],\n ],\n ],\n /** City East, West Connected; Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['East', 'West'],\n ],\n ],\n /** City East, West Connected; Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South'],\n ['East', 'West'],\n ],\n ],\n /** City North, East Connected; Road South and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South'],\n ['West'],\n ['North', 'East'],\n ],\n ],\n /** City East, South Connected; Road North and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['West'],\n ['East', 'South'],\n ],\n ],\n /** City South, West Connected; Road North and East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['East'],\n ['South', 'West'],\n ],\n ],\n /** City West, North Connected; Road East and South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['South'],\n ['North', 'West'],\n ],\n ],\n /** City North, South Connected; Road East and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['West'],\n ['North', 'South'],\n ],\n ],\n /** City East, West Connected; Road North and South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['South'],\n ['East', 'West'],\n ],\n ],\n /** City North, East, South Connected; Road West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['West'],\n ['North', 'East', 'South'],\n ],\n ],\n /** City East, South, West Connected; Road North */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['North'],\n ['East', 'South', 'West'],\n ],\n ],\n /** City South, West, North Connected; Road East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['East'],\n ['North', 'South', 'West'],\n ],\n ],\n /** City West, North, East Connected; Road South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY),\n [\n ['South'],\n ['North', 'East', 'West'],\n ],\n ],\n /** Road North, East Connected; City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['South'],\n ['North', 'East'],\n ],\n ],\n /** Road North, East Connected; City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['West'],\n ['North', 'East'],\n ],\n ],\n /** Road East, South Connected; City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['West'],\n ['East', 'South'],\n ],\n ],\n /** Road East, South Connected; City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East', 'South'],\n ],\n ],\n /** Road South, West Connected; City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['South', 'West'],\n ],\n ],\n /** Road South, West Connected; City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['South', 'West'],\n ],\n ],\n /** Road West, North Connected; City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['North', 'West'],\n ],\n ],\n /** Road West, North Connected; City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['South'],\n ['North', 'West'],\n ],\n ],\n /** Road North, South Connected; City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['North', 'South'],\n ],\n ],\n /** Road North, South Connected; City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['West'],\n ['North', 'South'],\n ],\n ],\n /** Road East, West Connected; City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East', 'West'],\n ],\n ],\n /** Road East, West Connected; City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_GRASS . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['South'],\n ['East', 'West'],\n ],\n ],\n /** Road North, East Connected; City South and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['South'],\n ['West'],\n ['North', 'East'],\n ],\n ],\n /** Road East, South Connected; City North and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['West'],\n ['East', 'South'],\n ],\n ],\n /** Road South, West Connected; City North and East */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South', 'West'],\n ],\n ],\n /** Road West, North Connected; City East and South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['South'],\n ['North', 'West'],\n ],\n ],\n /** Road North, South Connected; City East and West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['East'],\n ['West'],\n ['North', 'South'],\n ],\n ],\n /** Road East, West Connected; City North and South */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['South'],\n ['East', 'West'],\n ],\n ],\n /** Road North, East, South Connected; City West */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road East, South, West Connected; City North */\n [\n Tile::createFromString(Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road South, West, North Connected; City East */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n /** Road West, North, East Connected; City South */\n [\n Tile::createFromString(Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_CITY . \":\" . Tile::TILE_TYPE_ROAD . \":\" . Tile::TILE_TYPE_ROAD),\n [\n ['North'],\n ['East'],\n ['South'],\n ['West'],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "fea3fe34895f5c9b74142c88e043f291", "score": "0.46572253", "text": "public function testIndexWithLatLong()\n {\n // TODO: Find a way to shorten these declarations\n factory(App\\Api\\V1\\Models\\Bubbler::class)->create(['latitude' => 0.00003, 'longitude' => 0.00003]);\n factory(App\\Api\\V1\\Models\\Bubbler::class)->create(['latitude' => 0.00001, 'longitude' => 0.00001]);\n factory(App\\Api\\V1\\Models\\Bubbler::class)->create(['latitude' => 0.00002, 'longitude' => 0.00002]);\n //factory(App\\Api\\V1\\Models\\Bubbler::class)->create(['latitude' => 90, 'longitude' => 0]);\n\n $response = $this->call('GET', '/api/bubblers?latitude=0&longitude=0&radius=100');\n\n $jsonArray = json_decode($response->content(), true);\n $bubblersCount = count($jsonArray[\"data\"]);\n $this->assertEquals(3, $bubblersCount);\n }", "title": "" }, { "docid": "7b61aa41cb51c94a007d8781fa78472b", "score": "0.46561086", "text": "function OGR_L_TestCapability($layerHandle, $test)\n{\n\n}", "title": "" }, { "docid": "90166e3a078b9c3f7a5df429218fac3c", "score": "0.46527347", "text": "function checkFloorCapacity() {\n $passcountTotal = getFloorCount();\n\n if($passcountTotal >= FLOOR_LIMIT) {\n $sql = \"UPDATE globalVars \n SET value = :MOTD\n WHERE variable = 'MOTD'\";\n\t\t\t\t\t\t\n $passesLeft = FLOOR_CAPACITY - $passcountTotal;\n $params = array(':MOTD' => \"<div class = \\\"floorWarning\\\">Warning: Floor nearing maximum capacity, $passesLeft number of passes remaining.</div>\");\n\t\t\t\t\n query($sql,$params);\n }\n if($passcountTotal >= FLOOR_CAPACITY) {\n $sql = \"UPDATE globalVars \n SET value = :MOTD\n WHERE variable = 'MOTD'\";\n\t\t\t\t\t\t\n $params = array(':MOTD' => \"<div class = \\\"floorClosed\\\">Warning: Floor Capacity has been reached, floor closed until further notice.</div>\");\n \n query($sql,$params);\n \n $sql = \"UPDATE globalVars \n SET value = 0\n WHERE variable = 'FLOOR_OPEN'\";\n\t\t\t\t\n query($sql);\n } \n}", "title": "" }, { "docid": "10ca2271b7dac75f5fa77b9329c37bf9", "score": "0.46443224", "text": "public function mockMap1(): HexaHopMapMock\n {\n $mock_tiles = [\n [\n HexaHopMap::TILE_WATER,\n HexaHopMap::TILE_LOW_GREEN,\n HexaHopMap::TILE_LOW_BLUE,\n HexaHopMap::TILE_LOW_LAND,\n ],\n [\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_LASER,\n HexaHopMap::TILE_LOW_GREEN,\n ],\n [\n HexaHopMap::TILE_ICE,\n HexaHopMap::TILE_LOW_LAND | HexaHopMap::ITEM_ANTI_ICE << HexaHopMap::SHIFT_TILE_ITEM,\n HexaHopMap::TILE_LASER,\n HexaHopMap::TILE_WATER,\n ],\n [\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_ICE | HexaHopMap::ITEM_JUMP << HexaHopMap::SHIFT_TILE_ITEM,\n HexaHopMap::TILE_WATER,\n HexaHopMap::TILE_LOW_LAND,\n ],\n [\n HexaHopMap::TILE_WATER,\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_LASER,\n HexaHopMap::TILE_LOW_LAND,\n ],\n [\n HexaHopMap::TILE_WATER,\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_LOW_LAND,\n HexaHopMap::TILE_WATER,\n ],\n ];\n return new HexaHopMapMock($mock_tiles, null, 1, 1);\n }", "title": "" }, { "docid": "09f28f31ed91ec9601378828e23098e4", "score": "0.46330616", "text": "abstract public function getDataProvider();", "title": "" }, { "docid": "c6dd4b254fe50a0a88611840323b38c4", "score": "0.46314102", "text": "public function definition()\n {\n return [\n 'hole_id' => rand(1,3),\n 'depth' => $this->faker->randomFloat(NULL, 10, 1000),\n 'dip' => $this->faker->randomFloat(NULL, 10, 99),\n 'azimuth' => rand(0,359),\n 'is_trustworthy' => 1,\n ];\n }", "title": "" }, { "docid": "a7f18b13debee4d72ce2db17e0889c42", "score": "0.46303716", "text": "public function testConstruct()\n {\n $this->assertAttributeEquals($this->imageMock, 'photoHandler',\n $this->testObj);\n $this->assertAttributeEquals($this->modelMock, 'trainerModel',\n $this->testObj);\n }", "title": "" }, { "docid": "d6250da9b3613aeaa8189b46ba1af9f1", "score": "0.46263954", "text": "public function testSetUp()\n {\n $coordinateRepository = new CoordinateRepository;\n\n $data = array(\n 'x' => 12,\n 'y' => 13,\n 'type' => 'foo',\n );\n\n $result = $coordinateRepository->setUp($data);\n\n $this->assertInstanceOf('Thormeier\\TransportClientBundle\\Model\\Coordinate', $result);\n $this->assertEquals($result->getX(), $data['x']);\n $this->assertEquals($result->getY(), $data['y']);\n $this->assertEquals($result->getTYpe(), $data['type']);\n }", "title": "" }, { "docid": "f8c82f61db14918781685a2d0d25ba85", "score": "0.46147734", "text": "public function testSetBranchFlyData()\n {\n $branch = $this->em->getRepository('KmBundle:Branch')->find(1);\n $this->statisticHandler->setBranchFlyData($branch);\n\n $this->assertEquals($branch->getFlySaleAmount(), 1000);\n $this->assertEquals($branch->getFlyProfitAmount(), null);\n $this->assertEquals($branch->getFlyExpenditureAmount(), null);\n\n //Case of branch 2\n $branch2 = $this->em->getRepository('KmBundle:Branch')->find(2);\n $this->statisticHandler->setBranchFlyData($branch2);\n\n $this->assertEquals($branch2->getFlySaleAmount(), 109700);\n $this->assertEquals($branch2->getFlyProfitAmount(), 520);\n $this->assertEquals($branch2->getFlyExpenditureAmount(), null);\n $this->assertEquals($branch2->getFlyBalanceAmount(), 520);\n\n }", "title": "" }, { "docid": "19d7d1add56e784a95b029435a789305", "score": "0.46133724", "text": "public function create()\n {\n return view('admin.inventorymanagement.floor.create');\n\n }", "title": "" }, { "docid": "5bc81303a9665373a99f6f201cc8d80d", "score": "0.46121487", "text": "public function store(FloorRequest $request)\n {\n $floor = new Floor;\n\n foreach (array_keys($this->fields) as $field) {\n $floor->$field = $request->get($field);\n }\n\n $floor->save();\n return redirect()->route('admin.floors')->withSuccess('Nuevo piso creado sin problemas.');\n }", "title": "" }, { "docid": "61b9fc18e33c0de9c7212ca8632e35c2", "score": "0.4606603", "text": "public function __construct(Floorplan $floorplan)\n {\n $this->floorplan = $floorplan;\n $this->middleware('auth');\n }", "title": "" }, { "docid": "6b05763a53fb526db254feca2ab0168f", "score": "0.4593746", "text": "public function testGetDistance_validData()\n {\n echo \"\\n *** Unit Test - Service::DistanceService - Method:getDistance with --- VALID LAT LONG --- *** \\n\";\n\n $distanceCoordinates = $this->generateRamdomGeoCordinates();\n\n $origin = $distanceCoordinates['origin'];\n $destination = $distanceCoordinates['destination'];\n\n $this->distanceMatrix->method('getDistance')->with(\n $origin,\n $destination\n )->willReturn($distanceCoordinates['distance']);\n\n $distanceService = new \\App\\Services\\DistanceService($this->distanceMatrix);\n $distance = $distanceService->getDistance($origin, $destination);\n\n $this->assertIsInt($distance);\n }", "title": "" }, { "docid": "8249fc3a3f267502e76024c6cf83a069", "score": "0.45901087", "text": "private function createMockStepDataProvider()\n {\n $stepDataProvider = $this\n ->getMockBuilder('\\Onboarding\\InMemoryStepDataProvider')\n ->disableOriginalConstructor()\n ->getMock();\n return $stepDataProvider;\n }", "title": "" }, { "docid": "8cb3039074212a80fe0da95600f26be2", "score": "0.45740747", "text": "public function floors()\n {\n return $this->hasMany('App\\Floor');\n }", "title": "" }, { "docid": "674fc886f4b98853947ebf7dfc5ddd0e", "score": "0.45721683", "text": "public function is_available(Floor $floor)\n {\n try {\n $floor->update(['is_available' => !$floor->is_available]);\n if ($floor->is_available)\n return response()->json(['message' => 'Available Successfuly', 'title' => 'Available']);\n else\n return response()->json(['message' => 'Not Available Successfuly', 'title' => 'Not Available']);\n } catch (\\Exception $e) {\n toastr()->error($e->getMessage(), 'Exception');\n return redirect()->back();\n // return response()->json($e->getMessage(), 404);\n }\n }", "title": "" }, { "docid": "77e82c89c3214033ccd92098316d46bf", "score": "0.4571225", "text": "public function testGetPointOfEntry()\n {\n $machine = $this->getMachine();\n\n $this->assertEquals('unpaid', $machine->getPointOfEntry());\n }", "title": "" }, { "docid": "be4c6a841f7c466d9ef4b0320453be0a", "score": "0.45680234", "text": "public function test_getWarehousePv()\n {\n $STOCK_ITEM_ID = 21;\n $PV = 43;\n $DATA = new \\Praxigento\\Pv\\Data\\Entity\\Stock\\Item(\n [\n EntityPvStockItem::ATTR_PV => $PV\n ]\n );\n /** === Setup Mocks === */\n // $data = $this->_repoPvStockItem->getById($stockItemMageId);\n $this->mRepoPvStockItem\n ->shouldReceive('getById')->once()\n ->andReturn($DATA);\n /** === Call and asserts === */\n $res = $this->obj->getWarehousePv($STOCK_ITEM_ID);\n $this->assertEquals($PV, $res);\n }", "title": "" }, { "docid": "c524c04832dbdbecf0ae6fc6e14774d2", "score": "0.45414698", "text": "public function getFloorNumberByCodeBuilding($info) {\n\t\t$select = $this->select ()->where(\"code = ?\", $info);\n\t\treturn $this->fetchRow( $select );\n\t}", "title": "" }, { "docid": "2020a8e42721c49246e6ef9fec16cdc9", "score": "0.45410156", "text": "public function testWithMultipleDataProviders()\n {\n // prepare expected dimensions\n $dimensionXData = [\n $this->getDimensionMock('x', '1'),\n $this->getDimensionMock('x', '2'),\n $this->getDimensionMock('x', '3'),\n ];\n\n $dimensionYData = [\n $this->getDimensionMock('y', '1'),\n $this->getDimensionMock('y', '2'),\n $this->getDimensionMock('y', '3'),\n $this->getDimensionMock('y', '4'),\n $this->getDimensionMock('y', '5'),\n ];\n\n $dimensionZData = [\n $this->getDimensionMock('z', '1'),\n $this->getDimensionMock('z', '2'),\n ];\n\n $expectedDimensions = [];\n\n foreach ($dimensionXData as $dimensionX) {\n foreach ($dimensionYData as $dimensionY) {\n foreach ($dimensionZData as $dimensionZ) {\n $expectedDimensions[] = [\n $dimensionX->getName() => $dimensionX,\n $dimensionY->getName() => $dimensionY,\n $dimensionZ->getName() => $dimensionZ,\n ];\n }\n }\n }\n\n // collect actual dimensions\n $multiDimensionProvider = new MultiDimensionProvider(\n [\n $this->getDimensionProviderMock($dimensionXData),\n $this->getDimensionProviderMock($dimensionYData),\n $this->getDimensionProviderMock($dimensionZData),\n ]\n );\n\n $actualDimensions = [];\n foreach ($multiDimensionProvider as $dimension) {\n $actualDimensions[] = $dimension;\n }\n\n $this->assertSame($expectedDimensions, $actualDimensions);\n }", "title": "" }, { "docid": "74ba7612f8f935fdbb382ee6c16e7d55", "score": "0.45232403", "text": "public function dataProvider()\n {\n $expectedResults = [\n -1.86367959778243849,\n -4.55441853674194147,\n 8.12105716549654890,\n '-0.00049450804976921878-0.00219723165673293340i',\n '-0.00049450804976921878+0.00219723165673293340i',\n '0.00027732805718126026-0.00223505149014498655i',\n '0.00027732805718126026+0.00223505149014498655i',\n '0.276799143639273659-1.317961906746316859i',\n '0.276799143639273659+1.317961906746316859i',\n 2.29086942970080391,\n -1.19798606542517684,\n '0.01160418811259422+0.02390880715368388i',\n '0.01160418811259422-0.02390880715368388i',\n '-1.020634209071783-0.274077973196426i',\n '-1.020634209071783+0.274077973196426i',\n '-0.850918128239321545i',\n '0.85091812823932155i',\n '-8.10961742670609559i',\n '8.1096174267061i',\n -1.18839510577812122,\n ];\n\n return $this->formatOneArgumentTestResultArray($expectedResults);\n }", "title": "" }, { "docid": "40c96a468394f980908dfcc4a39e2f58", "score": "0.4514609", "text": "public function testLocationsGeoSearch()\n {\n }", "title": "" }, { "docid": "2c95aaed52f337e3f77e1999ee222d31", "score": "0.45120668", "text": "public function testRenderWithCustomTerrainImages()\n {\n $map = \\Webnoth\\WML\\Element\\Map::create();\n $map->addRawTileRow(array('sand/beach'));\n \n $this->setExpectedException(null);\n $this->renderer->render($map->getLayer('terrains'));\n }", "title": "" }, { "docid": "72e9e544973df0784d0aea74cbb9a4ff", "score": "0.45070767", "text": "public function testMeetingRoomItem()\n {\n }", "title": "" }, { "docid": "ffe05bcceb75feadb839ae64d0924b39", "score": "0.45037156", "text": "function setup_archive_units_data() {\n\n\t\t$args = array(\n\t\t\t'post_type' => 'units',\n\t\t\t'numberposts' => -1,\n\t\t\t'meta_query' => array(\n\t\t \tarray(\n\t\t 'key' => 'status',\n\t\t 'value' => 'For Rent', \n\t\t )\n\t\t ),\n\t\t 'orderby' => 'meta_value_num', \n\t\t 'meta_key' => 'last_avail_date',\n\t\t 'order' => 'DESC',\n\t\t\t\n\t\t);\n\t\t$posts = get_posts($args);\n\n\t\t$post_num = 0;\n\t\tforeach ($posts as $post) {\n\t\t\t\n\t\t\t$meta = get_post_custom( $post->ID );\n\n\t\t\t$feat_img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'tiles-featured' );\n\t\t\tif ( !empty( $feat_img ) ) {\n\t\t\t\t$thumb = $feat_img[0];\n\t\t\t} else {\n\t\t\t\t$thumb = get_bloginfo(\"url\").'/wp-content/plugins/wp-property-manager/assets/images/blank-photo.png'; \n\t\t\t}\n\n\t\t\t$mini_feat_img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'mini-tiles' );\n\t\t\tif ( !empty( $feat_img ) ) {\n\t\t\t\t$mini_thumb = $mini_feat_img[0];\n\t\t\t} else {\n\t\t\t\t$mini_thumb = get_bloginfo(\"url\").'/wp-content/plugins/wp-property-manager/assets/images/blank-photo.png'; \n\t\t\t}\n\n\t\t\t$posts[$post_num]->meta = $meta;\n\t\t\t$posts[$post_num]->meta['permalink'] = get_the_permalink($post->ID);\n\t\t\t$posts[$post_num]->meta['thumb'] = $thumb;\n\t\t\t$posts[$post_num]->meta['mini_thumb'] = $mini_thumb;\n\t\t\t$post_num++;\n\t\t}\n\t\treturn $posts;\n\t}", "title": "" }, { "docid": "f86388f85eccd594eaa2efcdd5312cfe", "score": "0.4499102", "text": "public function testGetUriDatas()\n {\n $result = $this->Controller->Seo->getUriDatas();\n $this->assertInstanceOf('Seo\\Model\\Entity\\SeoUri', $result);\n\n // Uri as parameter\n $result = $this->Controller->Seo->getUriDatas('/articles/view/test-title-three');\n $this->assertInstanceOf('Seo\\Model\\Entity\\SeoUri', $result);\n\n // Not approved uri.\n $result = $this->Controller->Seo->getUriDatas('/articles/view/test-title-two');\n $this->assertNull($result);\n }", "title": "" }, { "docid": "1ef26f30865e04b5d8f49f2c8b789218", "score": "0.448456", "text": "protected function createPhakeSitePerimeter()\n {\n $perimeter = Phake::mock('OpenOrchestra\\Backoffice\\Model\\PerimeterInterface');\n Phake::when($perimeter)->getType()->thenReturn(SiteInterface::ENTITY_TYPE);\n $items = array(2, 3);\n Phake::when($perimeter)->getItems()->thenReturn($items);\n\n return $perimeter;\n }", "title": "" }, { "docid": "024ecfd6dea44514c9e98ee7592f99c2", "score": "0.44798633", "text": "public function provideTestData()\n {\n return [\n ['7581499', true],\n ['9999999981', true],\n\n ['7581490', false],\n ['9999999982', false],\n ];\n }", "title": "" }, { "docid": "420490298f6b855c46a9ac31eb5358e2", "score": "0.44767737", "text": "public function testGetUsaha_bound2()\n {\n $result = $this->usaha->hitung_usaha(0.1, 200);\n $category = $this->usaha->kategori_usaha(0.1,200);\n $this->assertEquals(20, $result);\n $this->assertEquals('Usaha Positif', $category);\n \n }", "title": "" }, { "docid": "a78612d585af340403a247318d04a384", "score": "0.44747615", "text": "public function DataForTestPhoneWorksOnDifferentFormatsProvider() {\n $tests = array();\n $tests[] = array(\n '(123) 555-1212',\n 1235551212,\n NULL,\n );\n $tests[] = array(\n '123.555.1212',\n 1235551212,\n '%d.%d.%d',\n );\n\n return $tests;\n }", "title": "" }, { "docid": "5397323e3242cbb0b2b116f3096632b6", "score": "0.44736975", "text": "function testF9922682553506421() {\n $id = \"9922682553506421\";\n $loc = \"f\";\n $item = $this->item_proc->get_item(\"\", $loc, $id);\n $this->assertEquals($item->id,'9922682553506421');\n $this->assertEquals($item->location,'B-9-L');\n $this->assertEquals($item->fl,'B');\n $this->assertEquals($item->lc,'f');\n $this->assertEquals($item->callnum,'PR.4382.N5.1880');\n $this->assertEquals($item->call_display,'PR4382 .N5 1880');\n $this->assertEquals($item->image,'B-9-L=PR4037.B-PR9680.SWF');\n $this->assertEquals($item->legend,'legend.PNG');\n $this->assertNull($item->ref);\n $this->assertNull($item->site);\n $this->assertEquals($item->charged,'false');\n $this->assertNull($item->message);\n $this->assertEquals($item->floorDB,'f_B');\n $this->assertEquals($item->start_x,'340');\n $this->assertEquals($item->start_y,'300');\n $this->assertEquals($item->end_x,'380');\n $this->assertEquals($item->end_y,'170');\n $this->assertEquals($item->shift_x,'70');\n $this->assertEquals($item->shift_y,'4');\n $this->assertEquals($item->scale_x,'0.96');\n $this->assertEquals($item->scale_y,'0.96');\n $this->assertEquals($item->tmp_location,'');\n $this->assertNull($item->external);\n $this->assertNull($item->branch);\n $this->assertEquals($item->designated,true);\n }", "title": "" }, { "docid": "89234a1d30d863b38aa4f933d546610e", "score": "0.4471141", "text": "public function testGalleryWithMoMappedImages()\n {\n foreach (GalleryImage::get() as $gi) {\n $gi->Lat = 0;\n $gi->Lon = 0;\n $gi->write();\n }\n $gp = $this->objFromFixture('GalleryPage', 'gp01');\n $map = $gp->Map();\n\n $this->assertEquals('<!-- no image locations found -->', $map);\n }", "title": "" }, { "docid": "aaf8352c2748f6a09646295759e4959b", "score": "0.4467422", "text": "public function testTripIdDistance(){\n //Control de metros o kilometros\n $distancia = (new CicloviasHelper)->tripIdDistance('1');\n //var_dump ($distancia);\n $this->assertTrue($distancia > 0.0);\n}", "title": "" }, { "docid": "bc65c8a22f41a2c38028b2f28e6f2a93", "score": "0.44649947", "text": "public function testConstruction()\n {\n $versionEngine = Mockery::mock('OpenSkill\\Datatable\\Versions\\VersionEngine');\n $provider = Mockery::mock('OpenSkill\\Datatable\\Providers\\Provider');\n\n $dt = new Datatable($versionEngine);\n $clazz = $dt->make($provider);\n\n $this->assertEquals($provider, $clazz->getProvider());\n }", "title": "" }, { "docid": "21bc7e8284b3f87739d3cea21a9e3925", "score": "0.44634438", "text": "public function setUp()\n {\n $this->perimeter = Phake::mock('OpenOrchestra\\Backoffice\\Model\\PerimeterInterface');\n Phake::when($this->perimeter)->getItems(Phake::anyParameters())->thenReturn(array());\n\n $this->perimeterManager = Phake::mock('OpenOrchestra\\Backoffice\\Perimeter\\PerimeterManager');\n Phake::when($this->perimeterManager)->createPerimeter(Phake::anyParameters())->thenReturn(Phake::mock('OpenOrchestra\\Backoffice\\Model\\PerimeterInterface'));\n\n $this->group = Phake::mock('OpenOrchestra\\Backoffice\\Model\\GroupInterface');\n Phake::when($this->group)->getPerimeter(Phake::anyParameters())->thenReturn($this->perimeter);\n\n $this->user = Phake::mock('OpenOrchestra\\UserBundle\\Model\\UserInterface');\n Phake::when($this->user)->getGroups()->thenReturn(array($this->group));\n Phake::when($this->user)->getUsername()->thenReturn($this->username);\n\n $this->token = Phake::mock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');\n Phake::when($this->token)->getUser()->thenReturn($this->user);\n\n $this->accessDecisionManager = Phake::mock('Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManagerInterface');\n }", "title": "" }, { "docid": "04f5bbe9bd4553cd9fbfd6d03ffc2937", "score": "0.44576693", "text": "public function extractedFieldProvider()\n {\n return [\n ['title', self::TEST_TITLE ],\n ['description', self::TEST_DESCRIPTION],\n ['quantity', self::TEST_QUANTITY ],\n ['uid', self::TEST_UID ],\n ];\n }", "title": "" }, { "docid": "88f5f39ad01b1070ad87866b66ccabe5", "score": "0.44526082", "text": "public function testGetGeoLocationNormal()\n {\n $res = $this->getLocationControllerMock->getGeoLocationNormal(\"83.233.138.94\");\n $this->assertInternalType(\"array\", $res);\n }", "title": "" }, { "docid": "7e0a6d02eb0f67bc1682abe6897f33b6", "score": "0.44525647", "text": "public function testAllGlobeTrip()\n {\n $this->distanceCalculationServiceMock->shouldReceive('calculateDistanceBetweenTwoPoints')\n ->once()->andReturn(0);\n $breweries = new Brewery();\n $breweriesCount = $breweries->getBreweriesWithCoordinatesCount();\n $longitude = 0;\n $latitude = 0;\n $longitudeDifferenceAllowed = 180;//longitude range is roughly -180;180\n $latitudeDifferenceAllowed = 85;//latitude range is roughly -85;85\n\n $result = $this->breweriesDataFetchingService->setUpBreweriesData(\n $longitude,\n $latitude,\n $longitudeDifferenceAllowed,\n $latitudeDifferenceAllowed\n );\n $this->assertCount($breweriesCount, $result);\n }", "title": "" }, { "docid": "dc09d285777c3c13a7583087f7f8485c", "score": "0.44505838", "text": "public function test_registerWarehousePv()\n {\n $ID = 21;\n $PV = 34.23;\n /** === Setup Mocks === */\n $this->mRepoPvStockItem\n ->shouldReceive('create')->once();\n /** === Call and asserts === */\n $this->obj->registerWarehousePv($ID, $PV);\n }", "title": "" }, { "docid": "7b1c0245347f61f0c9e23c77dc10675d", "score": "0.44469574", "text": "public function test_endpoint_user_data_returned()\n {\n }", "title": "" }, { "docid": "ad2ca1301cc3ecc42aa26891ba1a3657", "score": "0.44456148", "text": "public function testBoardItem()\n {\n }", "title": "" }, { "docid": "ec8543c4991e225472ed19f7761bd99d", "score": "0.44372368", "text": "public function testImageFoldersIdTeamGet()\n {\n\n }", "title": "" }, { "docid": "4d57c9512bfbcc7bdef4d9f24952aab0", "score": "0.4436455", "text": "public function testACFOSM() {\n // Caso di test per il nuovo campo ACF costruito con OSM\n // REF: https://github.com/mcguffin/acf-field-openstreetmap\n // USIAMO IL CASO DI PORTOFERRAIO\n // Entrambe: http://cosmopoli.travel/wp-json/wp/v2/poi/2185\n // Deve prendere le vecchie\n $poi = new WebmappPoiFeature('http://cosmopoli.travel/wp-json/wp/v2/poi/2185');\n $this->assertEquals(42.8140764,$poi->getLat());\n $this->assertEquals(10.329311800000028,$poi->getLng());\n\n \n // Solo vecchio: http://cosmopoli.travel/wp-json/wp/v2/poi/2570 (HA OSM di default)\n // Deve prendere le vecchie\n $poi = new WebmappPoiFeature('http://cosmopoli.travel/wp-json/wp/v2/poi/2570');\n $this->assertEquals(42.8191423,$poi->getLat());\n $this->assertEquals(10.30749860000003,$poi->getLng());\n\n // Solo OSM: http://cosmopoli.travel/wp-json/wp/v2/poi/2478\n // deve prendere le nuove\n $poi = new WebmappPoiFeature('http://cosmopoli.travel/wp-json/wp/v2/poi/2478');\n $this->assertEquals(42.8139895,$poi->getLat());\n $this->assertEquals(10.3236765,$poi->getLng());\n\n }", "title": "" }, { "docid": "8367ed5d4a1b6a64dc888e09dceeab75", "score": "0.44338793", "text": "public function testGetStateIsObject()\n {\n \t$this->assertInternalType('object', $this->ngplaces->getState('OG'));\n }", "title": "" }, { "docid": "a7b843d69b84600723fc0483025f95d3", "score": "0.44336295", "text": "public function testViewConstruction()\n {\n $versionEngine = Mockery::mock('OpenSkill\\Datatable\\Versions\\VersionEngine');\n\n $versionEngine->shouldReceive('getVersion')->andReturn();\n\n $dt = new Datatable($versionEngine);\n\n $dtv = $dt->view();\n }", "title": "" }, { "docid": "eaa91a90780f7f69172d1d56cf1158c8", "score": "0.44273463", "text": "public static function dataProvider()\n\t{\n\t\treturn array(\n\t\t\tarray(TRUE, \n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', \n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'1' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t//expect fail on blank name for ref 2\n\t\t\tarray(FALSE,\n\t\t\t\tarray( \n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t//expect fail on ref_01_phone_home too short\n\t\t\tarray(FALSE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '70200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Short', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'uncle'),\n\t\t\t\t\tarray('name_full'=>'Long', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'asdjhs asjhd ajshd', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t//expect pass on blank name for ref 2 with only 1 required ref\n\t\t\tarray(TRUE, \n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020000200',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'', \n\t\t\t\t\t\t\t\t'phone_home' => '8005355998',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'1' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t\n\t\t\t//expect pass on anything for ref 2 with 0 refs required\n\t\t\tarray(TRUE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '000000',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'', \n\t\t\t\t\t\t\t\t'phone_home' => NULL,\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'0' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t\n\t\t\t//expect fail on ref_02_phone_home too short\n\t\t\tarray(FALSE,\n\t\t\t\tarray(\n\t\t\t\t\tarray('name_full'=>'Biggle Otoole', //data overlay for this test\n\t\t\t\t\t\t\t\t'phone_home' => '7020023333',\n\t\t\t\t\t\t\t\t'relationship' =>'cousin'),\n\t\t\t\t\tarray('name_full'=>'Jaspar Obercrombie', \n\t\t\t\t\t\t\t\t'phone_home' => '800535599',\n\t\t\t\t\t\t\t\t'relationship' =>'father')\n\t\t\t\t),\n\t\t\t\t'2' //number of required references\tfor this test\t\t\n\t\t\t), \n\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "31de6a142381df765cdca855c4860a5c", "score": "0.4421209", "text": "public function testFigure()\n {\n $this->assertClassHasAttribute('center', Figure::class);\n $this->assertClassHasAttribute('n_vertices', Figure::class);\n $this->assertClassHasAttribute('vertices', Figure::class);\n }", "title": "" }, { "docid": "7641d46c907472627e186eb7de8cb394", "score": "0.44197947", "text": "public function testMultiDimensionProviderWithEmptyDataProvider()\n {\n // collect actual dimensions\n $multiDimensionProvider = new MultiDimensionProvider(\n [\n $this->getDimensionProviderMock([]),\n $this->getDimensionProviderMock([]),\n ]\n );\n\n $actualDimensions = [];\n foreach ($multiDimensionProvider as $dimension) {\n $actualDimensions[] = $dimension;\n }\n }", "title": "" }, { "docid": "6c188ba3aa1736975b92e6c907705e25", "score": "0.44124532", "text": "public function testImageFoldersIdFolderMembersGet()\n {\n\n }", "title": "" }, { "docid": "8b77740cc96b83ed0633fbafe0ebf757", "score": "0.44050887", "text": "public function testImageFoldersIdMembersGet()\n {\n\n }", "title": "" }, { "docid": "7e3a6aae392d4452b7b358b421b7bb6c", "score": "0.43915653", "text": "public function testLocationsGet()\n {\n }", "title": "" }, { "docid": "c67e2e5c52ef0ba7d0257dcabc829fdb", "score": "0.43899342", "text": "public function testImageFoldersGet()\n {\n\n }", "title": "" }, { "docid": "1514cb29260eb756c996029b013db809", "score": "0.43875754", "text": "public function dataProvider()\n {\n $expectedResults = [\n 162754.791419003921,\n 229808.124861245955,\n 1.13139343345614055,\n '201031.558264856609+111346.696555603181i',\n '201031.558264856609-111346.696555603181i',\n '0.989720381190360417+0.548183060960553592i',\n '0.989720381190360417-0.548183060960553592i',\n '0.880522689156788117+0.710444153433450838i',\n '0.880522689156788117-0.710444153433450838i',\n 0.0000513677507359735403,\n 0.372450923066270627,\n '-0.0000195953960306484277-0.0000474833262322171154i',\n '-0.0000195953960306484277+0.0000474833262322171154i',\n '0.338218332028097927+0.155974517063039339i',\n '0.338218332028097927-0.155974517063039339i',\n '0.540302305868139717+0.841470984807896507i',\n '0.540302305868139717-0.841470984807896507i',\n '0.992445032135193570+0.122690090024315336i',\n '0.992445032135193570-0.122690090024315336i',\n 0.367879441171442322,\n ];\n\n return $this->formatOneArgumentTestResultArray($expectedResults);\n }", "title": "" }, { "docid": "2887405ca00b62ef7900fcd14ccf9be6", "score": "0.4387052", "text": "public function definition()\n {\n $room = Room::inRandomOrder()->first();\n\n //$room_id;\n\n // foreach ($rooms as $room) {\n // $desk_capacity = Room::where('id', $room->id)->first()->desk_capacity;\n // $desks_count = Desk::where('room_id', $room->id)->count();\n\n // if ($desk_capacity >= $desks_count) {\n // $room_id = $room->id;\n // break;\n // }\n // }\n\n $size = $this->faker->randomElement(['small', 'big']);\n $price;\n\n if ($size == 'small') {\n $price = $this->faker->numberBetween($min = 25.50, $max = 45.50);\n }\n else if($size == 'big') {\n $price = $this->faker->numberBetween($min = 39.50, $max = 55.50);\n }\n\n return [\n 'price_per_week' => $price,\n 'size' => $size,\n 'position' => $this->faker->randomElement(['next to Window', 'centerd', 'next to Door', 'next to the Wall']),\n 'room_id' => $room->id,\n ];\n }", "title": "" }, { "docid": "a9b8d33d903c61cf304727c96df6bda1", "score": "0.43864194", "text": "public function startTest() {\n $this->_sw = new LatLng(32.91663,-96.982841);\n $this->_ne = new LatLng(32.96302,-96.919495);\n $this->_bounds = new Bounds($this->_sw, $this->_ne);\n $this->_locA = new LatLng(32.918593,-96.958444); // inside bounds\n $this->_locB = new LatLng(32.914144,-96.958444); // outside bouds\n\n // this is a cross-meridan area\n $this->_crossMeridian = Bounds::normalize(array(30, 170), array(40, -170));\n $this->_insideCm = new LatLng(35,175);\n $this->_insideCm2 = new LatLng(35,-175);\n $this->_eastOfCm = new LatLng(35,-165);\n $this->_westOfCm = new LatLng(35,165);\n }", "title": "" }, { "docid": "e729b1ebbb79e9d374a18af66671cb8a", "score": "0.4384875", "text": "public function providerTestType() {\n $this->setUpMockEntities();\n $tests = [\n [NULL],\n // Source entity.\n ['webform_source_entity', 'entity.{source_entity}.webform'],\n ['webform_source_entity', 'entity.{source_entity}.webform_submission'],\n ['webform_source_entity', 'entity.node.webform'],\n ['webform_source_entity', 'entity.node.webform_submission'],\n // Element.\n ['webform_element', 'entity.webform_ui.element'],\n // Handler.\n ['webform_handler', 'entity.webform.handler.'],\n // User submissions.\n ['webform_user_submissions', 'entity.webform.user.submissions'],\n ['webform_source_entity', 'entity.{source_entity}.webform.user.submissions'],\n ['webform_source_entity', 'entity.node.webform.user.submissions'],\n // User submission.\n ['webform_user_submission', 'entity.webform.user.submission', [['webform_submission', $this->webformSubmission]]],\n // Submission.\n [NULL, 'entity.webform_submission.canonical', [['webform_submission', $this->webformSubmission]]],\n ['webform_submission', 'entity.webform_submission.canonical', [['webform_submission', $this->webformSubmissionAccess]]],\n // Webform.\n [NULL, 'entity.webform.canonical', [['webform', $this->webform]]],\n ['webform', 'entity.webform.canonical', [['webform', $this->webformAccess]]],\n // Webform template.\n ['webform_template', 'entity.webform.canonical', [['webform', $this->webformTemplate]]],\n ];\n return $tests;\n }", "title": "" }, { "docid": "7273a0675142b77abb0319a8c3232077", "score": "0.437943", "text": "public function testMeetingRoomList()\n {\n }", "title": "" } ]
7627a6564d331b6398442cb0f0cc0f13
/ Eine NavigationspunktSeite editieren / bearbeiten
[ { "docid": "d8ee8b333de6ec8acfb74c75c31941f2", "score": "0.0", "text": "public function save_navi_page($seiten_id) {\r\n global $db, $general;\r\n $update = 'UPDATE ' . $this->mPrefix . 'seiten SET';\r\n $update .= ' kurztitel=\"' . $db->escape($_POST['kurztitel']) . '\",';\r\n $update .= ' zusatztext=\"' . $db->escape($_POST['zusatztext']) . '\",';\r\n $update .= ' template=' . $_POST['templates'] . ',';\r\n $update .= ' modul=' . $_POST['modules'] . ',';\r\n $update .= ' inhalt1=\"' . $db->escape($_POST['inhalt1']) . '\",';\r\n $update .= ' inhalt2=\"' . $db->escape($_POST['inhalt2']) . '\",';\r\n $update .= ' bild1=\"' . $db->escape($_POST['thumb1']) . '\",';\r\n $update .= ' galerie=\"' . $db->escape($_POST['galerie_aktiv']) . '\"';\r\n $update .= ' WHERE seiten_id=' . $seiten_id;\r\n\r\n $affected = & $db->exec($update);\r\n if (PEAR::isError($affected)) {\r\n $msg[] = 'error';\r\n $msg[] = $affected->getMessage() . ' ' . $affected->getDebugInfo();\r\n } else {\r\n $msg[] = 'success';\r\n $msg[] = sprintf($GLOBALS['MESSAGES']['MSG_NAVI_SEITE_GESPEICHERT'], $_POST['kurztitel']);\r\n }\r\n return $msg;\r\n }", "title": "" } ]
[ { "docid": "290162f6eee598845b26949acd1fd53d", "score": "0.73492956", "text": "public function edit();", "title": "" }, { "docid": "53adc442fed1dc21c37a56983fb62ecf", "score": "0.7339442", "text": "public function edit()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "9259c485ad5627e9efa142e6a7bbd63c", "score": "0.73242784", "text": "protected function editar()\n {\n }", "title": "" }, { "docid": "76639a07faa51f2b552a9eba215c08ba", "score": "0.71959746", "text": "public function edit()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "856f78edf61cb9395c047c578cd172b8", "score": "0.7134931", "text": "public function edit(){\n\t\n\t\n\t\t\n\t}", "title": "" }, { "docid": "3fcd9c5669d3d23f2e0a1b2d642881cd", "score": "0.71257794", "text": "public function edit()\n {\n // TODO: Implement edit() method.\n }", "title": "" }, { "docid": "b46e6c04984d163f11cd85d221964ce8", "score": "0.71143824", "text": "public function edit( )\r\n {\r\n //\r\n }", "title": "" }, { "docid": "1326863d413e9d283d3fb946787717a0", "score": "0.6987903", "text": "public function editar()\n {\n }", "title": "" }, { "docid": "b004ada783a8d665ef6fbc77ec2d8b30", "score": "0.68355703", "text": "function editAction()\r\n\t{\r\n\t\t$request = new RivetyCore_Request($this->getRequest());\r\n\t\tif ($request->has('role_id'))\r\n\t\t{\r\n\t\t\t$nav_id = $request->nav_id;\r\n\t\t\t$role_id = $request->role_id;\r\n\t\t\t$nav_table = new Navigation($role_id, $this->locale_code);\r\n\t\t\t$roles_table = new Roles();\r\n\t\t\t$role = $roles_table->fetchRow(\"id = \" . $role_id);\r\n\t\t\tif (!is_null($role))\r\n\t\t\t{\r\n\t\t\t\t$role = $role->toArray();\r\n\t\t\t\t$this->view->role = $role;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdie(\"Invalid role.\");\r\n\t\t\t}\r\n\t\t\tif ($this->getRequest()->isPost())\r\n\t\t\t{\r\n\r\n\t\t\t\t$parent_id = $request->parent_id;\r\n\t\t\t\t$short_name = $request->short_name;\r\n\t\t\t\t$link_text = $request->link_text;\r\n\t\t\t\t$url = $request->url;\r\n\t\t\t\t$data = array(\r\n\t\t\t\t\t'parent_id' => $parent_id,\r\n\t\t\t\t\t'short_name' => $short_name,\r\n\t\t\t\t\t'link_text' => $link_text,\r\n\t\t\t\t\t'url' => $url,\r\n\t\t\t\t);\r\n\t\t\t\tif ($nav_id == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// INSERT\r\n\t\t\t\t\t$data['role_id'] = $role_id;\r\n\t\t\t\t\t// make sure it's the last item\r\n\t\t\t\t\t$data['sort_order'] = '99999999999';\r\n\t\t\t\t\t$params = array($role_id,$this->locale_code);\r\n\t\t\t\t\t$nav_table->insert($data);\r\n\t\t\t\t\t// now get rid of all those nines\r\n\t\t\t\t\tRivetyCore_Sort::reNumber('Navigation', \"parent_id = \" . $parent_id . \" and role_id = \" . $role_id, 'id', 'sort_order', 10, $params);\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// UPDATE\r\n\t\t\t\t\t$nav_table->update($data, 'id = ' . $nav_id);\r\n\t\t\t\t}\r\n\t\t\t\tRivetyCore_Cache::removeByTags(array('navigation'));\r\n\t\t\t\t$this->_redirect('/default/navigation/editrole/id/' . $role_id);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$nav_s = new Navigation($role_id,$this->locale_code);\r\n\t\t\t\t$new_nav = $nav_s->getNavTree();\r\n\t\t\t\t$this->view->parent_choices = $new_nav;\r\n\t\t\t\t$this->view->role_id = $role_id;\r\n\t\t\t\tif ($nav_id == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// CREATE\r\n\t\t\t\t\t$this->view->pagetitle = 'Create Nav Link for ' . $role['shortname'] . ' Role';\r\n\t\t\t\t\t$this->view->nav_id = '0';\r\n\t\t\t\t\t$this->view->parent_id = '0';\r\n\t\t\t\t\t$this->view->short_name = '';\r\n\t\t\t\t\t$this->view->link_text = '';\r\n\t\t\t\t\t$this->view->url = '';\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// EDIT\r\n\t\t\t\t\t$nav_item_temp = $nav_table->fetchRow(\"id = \" . $nav_id);\r\n\t\t\t\t\tif (!is_null($nav_item_temp))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view->pagetitle = \"Edit Nav Link for \" . $role[\"shortname\"] . \" Role\";\r\n\t\t\t\t\t\t$this->view->nav_id = $nav_id;\r\n\t\t\t\t\t\t$this->view->parent_id = $nav_item_temp->parent_id;\r\n\t\t\t\t\t\t$this->view->short_name = $nav_item_temp->short_name;\r\n\t\t\t\t\t\t$this->view->link_text = $nav_item_temp->link_text;\r\n\t\t\t\t\t\t$this->view->url = $nav_item_temp->url;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->_forward('default', 'auth', 'missing'); return;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->_forward('default', 'auth', 'missing'); return;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9af1c734dcd322284305957aeed48bb5", "score": "0.6785903", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "7d1b8109b3c09f58f4b101d4fbddbd25", "score": "0.67821884", "text": "public function edit()\n {\n \n \n }", "title": "" }, { "docid": "6ccef38e2c860e68ec4c50d01349776c", "score": "0.67714393", "text": "public function edit(){\r\n\t\t//$this->auth->set_access('edit');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t//call save method\r\n\t\t$this->save();\r\n\t}", "title": "" }, { "docid": "cf01723b8dff4fc54232d0189268ea21", "score": "0.67602754", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "cf01723b8dff4fc54232d0189268ea21", "score": "0.67602754", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "cf01723b8dff4fc54232d0189268ea21", "score": "0.67602754", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "73dee46020a852067daf5e90cd56957a", "score": "0.6742381", "text": "public function edit()\n {\n }", "title": "" }, { "docid": "73dee46020a852067daf5e90cd56957a", "score": "0.6742381", "text": "public function edit()\n {\n }", "title": "" }, { "docid": "73dee46020a852067daf5e90cd56957a", "score": "0.6742381", "text": "public function edit()\n {\n }", "title": "" }, { "docid": "e73067a8f5b9e79d6667ad146041904d", "score": "0.6740554", "text": "function edit()\n {\n }", "title": "" }, { "docid": "fe820ab72ca693dda328f33ba30892fe", "score": "0.6729392", "text": "private function edit() {\n\n\t\tif (Filter::postBool('save')) {\n\t\t\t$block_id=Filter::post('block_id');\n\t\t\tif ($block_id) {\n\t\t\t\tDatabase::prepare(\n\t\t\t\t\t\"UPDATE `##block` SET gedcom_id=?, block_order=? WHERE block_id=?\"\n\t\t\t\t)->execute(array(\n\t\t\t\t\tFilter::post('gedcom_id'),\n\t\t\t\t\t(int)Filter::post('block_order'),\n\t\t\t\t\t$block_id\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\tDatabase::prepare(\n\t\t\t\t\t\"INSERT INTO `##block` (gedcom_id, module_name, block_order) VALUES (?, ?, ?)\"\n\t\t\t\t)->execute(array(\n\t\t\t\t\tFilter::post('gedcom_id', array_keys(get_all_gedcoms())),\n\t\t\t\t\t$this->getName(),\n\t\t\t\t\t(int)Filter::post('block_order')\n\t\t\t\t));\n\t\t\t\t$block_id=Database::getInstance()->lastInsertId();\n\t\t\t}\n\t\t\tset_block_setting($block_id, 'show_research_tab', Filter::post('show_research_tab'));\n\t\t}\n\t\t$this->config();\n\t}", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6716593", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "86f76aac68d0a1726880d4adbe31fc4e", "score": "0.66839063", "text": "public function edit() {\n }", "title": "" }, { "docid": "973700b81dc79e888a99f49a89f9ed64", "score": "0.6680654", "text": "public function edit()\n {\n //\n \n }", "title": "" }, { "docid": "fdfd0a4897923c9d1f5f99d2d8dd1f3b", "score": "0.6654357", "text": "public function edit()\n { \n }", "title": "" }, { "docid": "be8a885eac62fb311d810e95555470e2", "score": "0.66441756", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.6634994", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "6a1ed4e4ada76d0c5d4d9e8be497f1da", "score": "0.663215", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'giustificativo' );\n\t\tJRequest::setVar( 'layout', 'form' );\n\t\tJRequest::setVar('hidemainmenu', 1);\n \n\t\tparent::display();\n\t}", "title": "" }, { "docid": "99f11f47ea357eb113ee7abe2bac09a4", "score": "0.66300756", "text": "public function editAction() {}", "title": "" }, { "docid": "7015d85230c410c83e5c3b96459d2488", "score": "0.6576068", "text": "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "title": "" }, { "docid": "a50029ccf4479ed055106d4bf19c2fdb", "score": "0.6560412", "text": "function edit( $back ) {\n\n\t}", "title": "" }, { "docid": "70fe19b9a43c9d20917fcd4dadd618c7", "score": "0.655189", "text": "protected function handlePageEditing() {}", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.654852", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.654852", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.654852", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "28ef5a5da162dab78933ef264e8639f9", "score": "0.6532455", "text": "public function ajax_edit_navigation(){\n if(request()->isPost()){\n $data = [];\n $data['id'] = input(\"post.id\", 0, \"intval\");\n $data['name'] = input(\"post.name\", \"\", \"trim\");\n $data['url'] = input(\"post.url\", \"\", \"trim\");\n $data['sort'] = input(\"post.sort\", 50, \"trim\");\n $data['show'] = input(\"post.show\", 1, \"intval\");\n $data['target'] = input(\"post.target\", 0, \"intval\");\n $validate = \\think\\Loader::validate('Navigation');\n if($validate->scene('edit_navs')->check($data)){\n $model = model(\"Navigation\");\n $_res = $model->update($data);\n if($_res){\n return $this->success(\"自定义导航修改成功!\");\n }else{\n return $this->error(\"自定义导航修改失败!\");\n }\n }else{\n return $this->error($validate->getError());\n }\n }else{\n return $this->error(\"系统错误,非法访问!\");\n }\n }", "title": "" }, { "docid": "2790693179bc50aeb55e8cf2863210a1", "score": "0.6529949", "text": "public function editAction()\n {\n $this->_forward('new');\n }", "title": "" }, { "docid": "a8822e87d81f897726df352b3684ffb5", "score": "0.6521035", "text": "function editar_sublink(){\t\t\n\t\t$this->accion=\"Editando Datos del Subenlace\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$this->asignar_valores();\n\t\t\t$sql=\"SELECT * FROM sublink WHERE nombre_sub='$this->nombre' AND id_sub!='$id'\";\n\t\t\t$sql=\"UPDATE sublink SET nombre_sub='$this->nombre', prioridad_sub='$this->prioridad' WHERE id_sub='$id'\";\n\t\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t\theader(\"location:/admin/link/sublink_lista.php\");\n\t\t\t\n\t\t}else{\n\t\t $this->mostrar_sublink();\n\t\t}\n\t}", "title": "" }, { "docid": "0bc1e31f44ee1238217b2bad72665d0e", "score": "0.65200233", "text": "public function edit()\n {\n $id = $this->uri->segment(5);\n if (empty($id)) {\n Template::set_message(lang('mahathuen_invalid_id'), 'danger');\n\n redirect(SITE_AREA . '/content/mahathuen');\n }\n\n\n\n\n Template::set('toolbar_title', lang('mahathuen_edit_heading'));\n Template::render();\n }", "title": "" }, { "docid": "e4c229724dfc9ba7e129e6ddb4bd46e5", "score": "0.64769346", "text": "public function editAction()\n {}", "title": "" }, { "docid": "993ec48b05f84a94a2a0a460cccbede3", "score": "0.6469035", "text": "public function editAction() {\n\t\t$this->loadLayout(); \n\t\t$this->renderLayout();\n\t}", "title": "" }, { "docid": "f1fe2ee83418c44ba205250e6d159a34", "score": "0.6457992", "text": "public function edit()\r\n\r\n {\r\n\r\n $this->page_title->push(lang('menu_products_add'));\r\n\r\n $this->data['pagetitle'] = $this->page_title->show();\r\n\r\n\r\n /* Breadcrumbs :: Common */\r\n\r\n $this->breadcrumbs->unshift(1, lang('menu_products_add'), 'admin/setup/product/edit');\r\n\r\n\r\n /* Breadcrumbs */\r\n\r\n $this->data['breadcrumb'] = $this->breadcrumbs->show();\r\n\r\n\r\n /* Data */\r\n\r\n $this->data['error'] = NULL;\r\n\r\n $this->data['charset'] = 'utf-8';\r\n\r\n $this->data['form_url'] = 'admin/setup/product/update';\r\n\r\n\r\n /* Load Template */\r\n\r\n $this->template->admin_render('admin/products/edit', $this->data);\r\n\r\n\r\n }", "title": "" }, { "docid": "0fffcc45f29adc48cf8be41a8147a1ba", "score": "0.64534783", "text": "public function action_editar() {\r\n\t\tif(!Session::instance()->GetUsuario())\r\n \treturn $this->redirect(\"/\");\r\n $links = new Model_Link();\r\n $template = View::factory(\"base/menu\");\r\n $template->set(\"usuario\", Session::instance()->GetUsuario());\r\n $template->set(\"links\", $links->ObtenerLinks(Session::instance()->GetUsuario()));\r\n\t\t/***************************************/\r\n\t\t$template->body = View::factory(\"compromiso/editar\");\r\n\t\t\r\n\t\t$compromisoId = $this->request->param('id');\r\n\t\t$compromiso = new Model_Compromiso($compromisoId);\r\n\t\t$template->body->set(\"compromiso\", $compromiso);\r\n\t\t$template->set(\"scripts\", $this->scripts);\r\n\t \t$template->set(\"styles\", $this->styles);\r\n\t\t\r\n\t\t$this->response->body($template);\r\n\t}", "title": "" }, { "docid": "7ddaf809da280e152bf10b023c3864a0", "score": "0.6441179", "text": "function _edit()\n\t{\n\t\t$this->_ci->_data['widgettext'] = 'Edit Label';\n\t\t$this->_ci->_data['helpertext'] = 'To edit this label fill out the field below and click \"save\"';\n\t\t$this->_ci->_data['type'] = 'edit';\n\t\t\n\t\t// Get data\n\t\t$this->_ci->_data['id'] = $id = $this->_ci->uri->segment(4);\n\t\tif(! $this->_ci->_data['data'] = $this->_ci->cblabels_model->get_by_id($id)) \n\t\t{\n\t\t\tredirect($this->_ci->config->item('cb_cp_url_base') . '/categories');\n\t\t}\t\n\t\t\n\t\t$this->_add_edit_shared_func($id);\t\n\t}", "title": "" }, { "docid": "cedfbdd7c03053aa540a9ee48efb8447", "score": "0.6437676", "text": "function edit() {\r\n\t\t$this->display ();\r\n\t}", "title": "" }, { "docid": "7dca38bd02e9036250b7ba3a3ec58dc9", "score": "0.64344007", "text": "function editar($id){\r\n \r\n\tif (ehPOST()) {\r\n $pagamento = $_POST[\"descricao\"];\r\n editarPagamento($pagamento);\r\n redirecionar(\"formapaga/listarPagamentos\");\r\n }else{\r\n $dados[\"pagamento\"] = pegarPagamentoPorId($id);\r\n exibir(\"pagamento/formulario\", $dados);\r\n }\r\n }", "title": "" }, { "docid": "d583f759a584cbc896401ef6d8a30848", "score": "0.64341736", "text": "private function edit()\n\t{\n\t\t//Validate Variables\n\t\t$name = $this->validateText($_POST['name']);\n\t\t$result = $this->model->edit($id,$name);\t\n\t\t//Insert Succesfull\n\t\tif($result)\n\t\t{\n\t\t\t//Load view\n\t\t\trequire('views/Brand/Edited.php');\n\t\t}\n\t\telse\n\t\t{\n\t\t\trequire('views/Error.html');\n\t\t}\n\t}", "title": "" }, { "docid": "cbda5be7431b663191458c38cf2cf6d3", "score": "0.6422346", "text": "function editar_link(){\t\t\n\t\t$this->accion=\"Editando Datos del Enlace\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$this->asignar_valores();\n\t\t\t$sql=\"SELECT * FROM link WHERE nombre_cat='999999' AND id_cat!='$id'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\tif($resultado=mysql_fetch_array($consulta)){\n\t\t\t\t$this->mensaje=1;\n\t\t\t}else{\n\t\t\t\t$sql=\"UPDATE link SET tipo_cat='$this->tipo', nombre_cat='$this->nombre', etiqueta_cat='$this->etiqueta', claves_cat='$this->claves', descripcion_cat='$this->descripcion', prioridad_cat='$this->prioridad',icono_cat='$this->icono' WHERE id_cat='$id'\";\n\t\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t\theader(\"location:/admin/link/\");\n\t\t\t}\n\t\t}else{\n\t\t $this->mostrar_link();\n\t\t}\n\t}", "title": "" }, { "docid": "fb4ad08b59f053d0e28d73dd241c8eca", "score": "0.642156", "text": "public function annimalEditAction()\n {\n }", "title": "" }, { "docid": "90b49af9ef11c41bd815b013da9cd32d", "score": "0.6394768", "text": "public function editar(){\n Utils::isAdmin(); //PARA REALIZAR CAMBIOS TIENE QUE SER ADMINISTRADOR\n if(isset($_GET['id'])){ /*PARA MOSTRAR LA CATEGORIA QUE VAMOS A MODIIFICAR NECESITAMOS \n SABER QUE NOS LLEGUE LA id DE ESA CATEGORIA\n */\n $id= $_GET['id'];\n $edit = true; //ESTO NOS SERVIRA PARA REUTILIZAR EL FORMULARIO DE CREACION DE CATEGORIA\n $categoria = new Categoria(); //OBJETO\n $categoria->setId($id);\n $cat = $categoria->getOne(); //METODO QUE NOS MOSTRARA LA CATEGORIA QUE VAMOS A MODIFICAR\n //models/categoria.php\n require_once 'views/categoria/crear.php';\n }else{\n header('Location:'.base_url.'categoria/index');\n }\n }", "title": "" }, { "docid": "edcd2b3939da55b1800d4cbea2d8e033", "score": "0.63742805", "text": "public function editAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Browser_Service_Recsite::getRecsite(intval($id));\t\t\n\t\t$this->assign('info', $info);\n\t\t$this->assign('models', $this->models);\n\t\t$this->assign('types', $this->types);\n\t}", "title": "" }, { "docid": "07c6fa53cb3a9aee9d6f38985637c807", "score": "0.63636225", "text": "function OnBeforeEdit(){\n }", "title": "" }, { "docid": "1292ed3623b740cc9ff2b83784ddaeec", "score": "0.6363616", "text": "public function hook_after_edit($id) {\n\t //Your code here \n\n\t }", "title": "" }, { "docid": "1292ed3623b740cc9ff2b83784ddaeec", "score": "0.6363616", "text": "public function hook_after_edit($id) {\n\t //Your code here \n\n\t }", "title": "" }, { "docid": "eb42439101e1cd29389df8fe49a32c34", "score": "0.6357359", "text": "public function edit(){\n $factura = parent::find($_GET['id']);\n require_once 'views/employee/layouts/header.php';\n require_once 'views/employee/factura/edit.php';\n require_once 'views/employee/layouts/footer.php';\n\n }", "title": "" }, { "docid": "42cc74b21ce984b9479fb6370881e609", "score": "0.6357188", "text": "function edit_info()\n\t{\n\t\tif ($this->ipsclass->input['id'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно определить ID языка\");\n\t\t}\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => \"lid='\".$this->ipsclass->input['id'].\"'\" ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\tif ( ! $row = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти язык по введенному ID\");\n\t\t}\n\n\t\t$final['lname'] = stripslashes($_POST['lname']);\n\n\t\tif (isset($_POST['lname']))\n\t\t{\n\t\t\t$final['lauthor'] = stripslashes($_POST['lauthor']);\n\t\t\t$final['lemail'] = stripslashes($_POST['lemail']);\n\t\t}\n\n\t\t$this->ipsclass->DB->do_update( 'languages', $final, \"lid='\".$this->ipsclass->input['id'].\"'\" );\n\n\t\t$this->rebuild_cache();\n\n\t\t$this->ipsclass->admin->done_screen(\"Языковой модуль обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}\" );\n\n\t}", "title": "" }, { "docid": "7d61445e7b3c9811fcd2a1027de2869f", "score": "0.6348722", "text": "public function showEdit()\n {\n\n }", "title": "" }, { "docid": "656618212612394a088abc7a6efeaf18", "score": "0.6347305", "text": "function edit()\n\t{\n\t\terror_log(\"show the vacation EDIT form\\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t\n\t\tJRequest::setVar('view','vacation');\n\t\tJRequest::setVar('layout','edit');\n\t\tJRequest::setVar('hidemanmenu',true);\n\t\t\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "9b7c33a88ad993add41ad4eec2cc9296", "score": "0.63369274", "text": "public function hook_after_edit($id) {\n\t //Your code here\n\n\t }", "title": "" }, { "docid": "0e79aed61cf6776605c79152cfdbd4fc", "score": "0.6315168", "text": "public function edit(){\n\n }", "title": "" }, { "docid": "156a0b2fef92a59f454e47003c9bdbfb", "score": "0.6298285", "text": "public function edit(Registro $registro)\n {\n //\n }", "title": "" }, { "docid": "6557293ae1155895d2f094f59ec6ad89", "score": "0.6286601", "text": "public function editar()\n\t{\n\t\t$estado = new Estado();\n\t\t$estado->idestado = $_POST['idestado'];\n\t\t$estado->nombre = $_POST['nombreeditar'];\n\t\t$estado->poblacion_hombres = $_POST['poblacionHeditar'];\n\t\t$estado->poblacion_mujeres = $_POST['poblacionMeditar'];\n\t\t$estado->poblacion_total = $_POST['poblacionTeditar'];\n\t\t$estado->edad_promedio = $_POST['edadPeditar'];\n\t\t$estado->update();\n\t\t//redireccionamos a la vista agregarEstado\n\t\theader(\"location: index.php?controller=Direccion&action=agregarEstado\");\n\t}", "title": "" }, { "docid": "b32f410f0c9a04235f9f488d95275603", "score": "0.6278994", "text": "public function edit() {\n\t\t$data['pagetitle'] = 'Dashboard - Edit Posts';\n\n\t\t$data['postid'] = $viewmodel->getPostById($postid['id'] );\n\t\tView::renderAdminTemplate($data, \"App/Views/admin/edit/index.php\") ;\n\t}", "title": "" }, { "docid": "bfabeeb9df421002c28cd1c536788c27", "score": "0.626812", "text": "public function hook_after_edit($id) {\n\t\t//Your code here \n\n\t}", "title": "" }, { "docid": "26df9d6f2ea026af1d5fba1dff7650e5", "score": "0.6259183", "text": "public function onPaymentsEdit()\n\t{\n\t\tif ($this->perms->edit)\n\t\t{\n\t\t\t//JToolBarHelper::save();\n\t\t}\n\n\t\tJToolBarHelper::cancel();\n\t\t$this->setToolbarTitle('Edit');\n\t}", "title": "" }, { "docid": "1e3ca28fdc2d64ad6998b9ee400188a4", "score": "0.62589407", "text": "public function editAction(){\n\t\t$id = $this->getInput('id');\n\t\t$info = Ola_Service_Area::get(intval($id)); \n\t\t$this->assign('roots', $this->roots);\n\t\t$this->assign('parents', $this->parents);\n\t $this->assign('info', $info);\t\n\t}", "title": "" }, { "docid": "c154621a721b386c0d75b03b15591590", "score": "0.6254232", "text": "public function edit(Front $front)\n {\n //\n }", "title": "" }, { "docid": "c154621a721b386c0d75b03b15591590", "score": "0.6254232", "text": "public function edit(Front $front)\n {\n //\n }", "title": "" }, { "docid": "ad4c8901999c1925cda5be8f0840cec4", "score": "0.6250815", "text": "public function editar()\n {\n $this->sesion = Sesion::getInstance();\n // check if there is an active session\n if (!$this->sesion->checkActiveSession()) :\n echo $this->twig->render(\"login.php.twig\");\n endif;\n $id = $_GET[\"id\"];\n $dat = Receta::find($id);\n echo $this->twig->render(\"editar.php.twig\", ['dat' => $dat]);\n }", "title": "" }, { "docid": "e3a788a5d45c0e80fd402373c4f7a79e", "score": "0.624391", "text": "function edit()\n\t{\n\t if (JRequest::getVar('task') == 'add') {\n\t \n\t }\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "772d6e45cea5c106c972f334d67c008c", "score": "0.623948", "text": "public function hook_after_edit($id)\n {\n //Your code here\n\n }", "title": "" }, { "docid": "8bc98589dfe198e036a943c125a8bbf5", "score": "0.6239085", "text": "function edit( $id = \"be1\") {\n\n\n\t\t// load user\n\t\t$this->data['backend'] = $this->Backend_config->get_one( $id );\n\n\t\t// call the parent edit logic\n\t\tparent::backendedit( $id );\n\t}", "title": "" }, { "docid": "86dda176bfe96afbc3c29b913b913553", "score": "0.6237397", "text": "public function save() {\n foreach($this->getMenuItems() as $item){\n $item->setMenu($this);\n $item->save();\n }\n parent::save();\n }", "title": "" }, { "docid": "8ef4d830586e4dae8012144d6ad3dae9", "score": "0.62218267", "text": "function change()\n\t{\n\t\tglobal $errors, $db;\n\t\t\n\t\t$menuid = ( isset( $_GET[ 'menuid' ] ) ) ? intval( $_GET[ 'menuid' ] ) : 0;\n\t\t$title = $_POST[ 'newmenutitle' ];\n\t\t\n\t\t$sql = \"UPDATE \" . MORECONTENT_MENU_TABLE . \" SET menu_title='$title' WHERE menu_id='$menuid' LIMIT 1\";\n\t\tif ( !$db->sql_query( $sql ) )\n\t\t{\n\t\t\t$errors->report_error( 'Couldn\\'t modify', CRITICAL_ERROR );\n\t\t}\n\t\t\n\t\t$errors->report_error( $this->lang[ 'Menu_changed' ], MESSAGE );\n\t}", "title": "" }, { "docid": "b379e0283ca7b6d2316f140ccce6dfbf", "score": "0.6221795", "text": "public function editAfterSubmit() {\n\t\t$this->registerAfterSubmit ( \"edit\" );\n\t}", "title": "" }, { "docid": "ad3d5022d6fb15117eb4ac9fc546eb62", "score": "0.62163293", "text": "public function actionEdit ()\n\t\t{\n\t\t\t$id = Yii::$app->request->get('id');\n\t\t\t$menu = Menu::findOne($id);\n\t\t\tif ($menu == null)\n\t\t\t{\n\t\t\t\tYii::$app->notification->messageToSession(Yii::tr('Menu item not found.', [], 'menu'));\n\t\t\t\t$this->redirect(Yii::$app->request->referrer);\n\t\t\t}\n\t\t\tif (Yii::$app->request->isPost)\n\t\t\t{\n\t\t\t\t$post = Yii::$app->request->post('Menu');\n\n\t\t\t\t$menu->updateAttributes([\n\t\t\t\t\t'title' => $post[ 'title' ],\n\t\t\t\t\t'url' => $post[ 'url' ],\n\t\t\t\t\t'path' => $post[ 'path' ]\n\t\t\t\t]);\n\n\t\t\t\t$menu->save();\n\t\t\t\tYii::$app->notification->messageToSession(Yii::tr('Menu item was saved.', [], 'menu'));\n\t\t\t\t$this->redirect(Url::toRoute([ '/menu/index', 'type' => $menu->typeID ]));\n\t\t\t}\n\t\t\t$this->data('model', $menu);\n\t\t\t$this->setTitle(Yii::tr('Edit menu item', [], 'menu'));\n\t\t\t$this->_tpl = '@menuViews/add';\n\t\t}", "title": "" }, { "docid": "45d14265a720e166c9faaffd3c7c749b", "score": "0.62109923", "text": "public function actionEdit()\n\t{\n\t \t// render the template, pass model on render template\n \t$this->renderTemplate('weatheroots/_edit');\n\t}", "title": "" }, { "docid": "d3b28b557cbbd83d252aa5af2e0d4e8c", "score": "0.6210147", "text": "public function edit() {\n $listeEspeces = $this->model->getEspeces();\n $this->view->editListEspeces($listeEspeces);\n }", "title": "" }, { "docid": "f3b1a939a5bd2c1c0a57660cea429843", "score": "0.6209514", "text": "public function edit(Revisi $revisi)\n {\n //\n }", "title": "" }, { "docid": "011c972d749420ec8b177d087dd05cb2", "score": "0.62066096", "text": "public function edit($id) //Hämta redan bokad boking\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "743d01d8d2b7793f74ac2955b590f708", "score": "0.62038994", "text": "public function hook_after_edit($id)\n\t{\n\t\t//Your code here \n\n\t}", "title": "" }, { "docid": "6feb27a092846f1d28d4e58c7f1ac409", "score": "0.6203318", "text": "public function edit($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}", "title": "" }, { "docid": "49730b682b58e1925f4c8affe206c000", "score": "0.6201558", "text": "public function edit(Subasta $subasta)\n {\n //\n }", "title": "" }, { "docid": "72e6147d0d18e438cf18a131ea3cc929", "score": "0.61997044", "text": "public function edit(Pro $pro)\n {\n //\n }", "title": "" }, { "docid": "72e6147d0d18e438cf18a131ea3cc929", "score": "0.61997044", "text": "public function edit(Pro $pro)\n {\n //\n }", "title": "" }, { "docid": "e26834b41ae851aba18c18ffdc00cab3", "score": "0.619601", "text": "function edit($id = 0)\n\t{\n\t\tif ($this->functions->getLoged()) {\n\t\t\t$data['connected'] = $this->functions->getUser();\n\n\t\t\t// Règles de chaque champs\n\t\t\t$this->form_validation->set_rules('content', 'Content', 'required|trim');\n\n\t\t\t// Délimiteurs pour les erreurs de chaque champ\n\t\t\t$this->form_validation->set_error_delimiters('<div class=\"alert alert-warning\" role=\"alert\">', '</div>');\n\n\t\t\t// Stockage des valeurs\n\t\t\t$title\t = $this->input->post('title');\n\t\t\t$content = $this->input->post('content');\n\t\t\t$state\t = $this->input->post('state');\n\t\t\t$tags\t = $this->input->post('tags');\n\n\t\t\tif (!empty($id)) {\n\t\t\t\t\n\t\t\t\tif (is_numeric($id)) {\n\t\t\t\t\t$article = $this->Model_pages->find($id);\n\t\t\t\t} else {\n\t\t\t\t\t$this->session->set_flashdata('warning', 'Impossible d\\'éditer cette page car l\\'id d\\'une paeg est toujours un entier.');\n\t\t\t\t\tredirect(base_url('admin/dashboard'));\n\t\t\t\t}\n\n\t\t\t\tif ($article->num_rows() > 0) {\n\t\t\t\t\t$data['title_page'] = 'Modifier la page ' . $article->row()->title;\n\t\t\t\t\t$data['id']\t\t\t= $article->row()->articleId;\n\t\t\t\t\t$data['title']\t\t= $article->row()->title;\n\t\t\t\t\t$data['content']\t= $article->row()->content;\n\t\t\t\t\t$data['slug']\t\t= $article->row()->slug;\n\t\t\t\t\t$data['state']\t\t= $article->row()->state;\n\t\t\t\t\t$data['cdate']\t\t= $article->row()->cdate;\n\t\t\t\t\t$data['tags']\t\t= $article->row()->tags;\n\n\t\t\t\t\t$data['slug'] = array(\n\t\t\t\t\t\t\t\t\t'class' => 'form-control',\n\t\t\t\t\t\t\t\t\t'name' => 'slug',\n\t\t\t\t\t\t\t\t\t'id' => 'slug',\n\t\t\t\t\t\t\t\t\t'value' => isset($data['slug'])?$data['slug']:set_value('slug'));\n\n\t\t\t\t\tif ($this->input->post('title') == $data['title']) {\n\t\t\t\t\t\t$unique_title = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$unique_title = '|is_unique[articles.title]';\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->form_validation->set_rules('title', 'Title', 'required|trim|min_length[2]' . $unique_title);\n\t\t\t\t\t$this->form_validation->set_rules('slug', 'slug', 'required|trim|min_length[2]|is_unique[articles.title]|callback__reservedSlug');\n\t\t\t\t\t$this->form_validation->set_rules('tags', 'tags', 'trim');\n\n\t\t\t\t\t// Formulaire OK\n\t\t\t\t\tif ($this->form_validation->run() !== FALSE) {\n\t\t\t\t\t\tif ($title == $data['title'] && $content == $data['content'] && $state == $data['state'] && $tags == $data['tags']) {\n\t\t\t\t\t\t\t$this->session->set_flashdata('warning', 'Aucune modification à prendre en compte.');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Modification en BDD\n\t\t\t\t\t\t\t$this->Model_pages->update($title, $content, $state, $tags, $id);\n\t\t\t\t\t\t\t$this->session->set_flashdata('success', 'Article \"' . $title . '\" modifié.');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tredirect(base_url($this->url));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t$this->session->set_flashdata('warning', 'L\\'article #' . $id . ' n\\'existe pas ou n\\'a jamais existé.');\n\t\t\t\t\tredirect(base_url($this->url));\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t$data['title_page'] = 'Ajouter une page';\n\n\t\t\t\t$this->form_validation->set_rules('title', 'Title', 'required|trim|min_length[2]|is_unique[articles.title]');\n\n\t\t\t\t// Récupération des slugs réservés\n\t\t\t\t$slugs_reserved = explode(',', getConfig()->slugs_reserved);\n\t\t\t\tfunction trimArray(&$value) \n\t\t\t\t{ \n\t\t\t\t\t$value = trim($value); \n\t\t\t\t}\n\t\t\t\t// Suppression des espaces (trim)\n\t\t\t\tarray_walk($slugs_reserved, 'trimArray');\n\n\t\t\t\t// Formulaire OK\n\t\t\t\tif ($this->form_validation->run() !== FALSE) {\n\t\t\t\t\t$this->load->helper(array('date', 'text'));\n\t\t\t\t\t$slug = url_title(convert_accented_characters($title), '-', TRUE);\n\n\t\t\t\t\t// Vérification de l'existence d'un slug\n\t\t\t\t\t$check_slug = $this->Model_articles->checkSlug($slug);\n\n\t\t\t\t\tif (in_array(strtolower($slug), $slugs_reserved)) {\n\t\t\t\t\t\t$this->session->set_flashdata('warning', 'Le slug \"' . $slug . '\" est réservé. Merci de changer le titre de cet article.');\n\t\t\t\t\t} elseif ($check_slug->num_rows() == 1) {\n\t\t\t\t\t\t$this->session->set_flashdata('warning', 'Le slug \"' . $slug . '\" est déjà utilisé. Merci de changer le titre de cet article.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Création de la date du post\n\t\t\t\t\t\t$cdate = date(DATE_ISO8601, time());\n\n\t\t\t\t\t\t$this->Model_pages->insert($title, $content, $state, $slug, $tags, $data['connected']['id']);\n\t\t\t\t\t\t$this->session->set_flashdata('success', 'Article \"' . $title . '\" créé.');\n\t\t\t\t\t\tredirect(base_url($this->url));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Préparation des champs\n\t\t\t$data['title'] = array(\n\t\t\t\t\t\t\t'class' => 'form-control',\n\t\t\t\t\t\t\t'name' => 'title',\n\t\t\t\t\t\t\t'id' => 'title',\n\t\t\t\t\t\t\t'value' => isset($data['title'])?$data['title']:set_value('title'));\n\n\t\t\t$data['content'] = array(\n\t\t\t\t\t\t\t'class' => 'form-control',\n\t\t\t\t\t\t\t'name' => 'content',\n\t\t\t\t\t\t\t'id' => 'content',\n\t\t\t\t\t\t\t'value' => isset($data['content'])?$data['content']:set_value('content'));\n\n\t\t\t$data['tags'] = array(\n\t\t\t\t\t\t\t'class' => 'form-control',\n\t\t\t\t\t\t\t'name' => 'tags',\n\t\t\t\t\t\t\t'id' => 'tags',\n\t\t\t\t\t\t\t'value' => isset($data['tags'])?$data['tags']:set_value('tags'));\n\n\n\t\t\t$data['submit'] = array(\n\t\t\t\t\t\t\t'class' => 'btn btn-primary',\n\t\t\t\t\t\t\t'name' => '',\n\t\t\t\t\t\t\t'value' => !empty($id)?'Modifier':'Ajouter');\n\n\t\t\t$this->template->load($this->layout, 'admin/pages/view_pages_edit', $data);\n\n\t\t}\n\t}", "title": "" }, { "docid": "bce99217ade20c2606ee6312da574409", "score": "0.6189313", "text": "function OnAfterEdit(){\n }", "title": "" }, { "docid": "af1358fc85f0bbec71eb04cf36c19fb8", "score": "0.61844176", "text": "public function edit(SinhVien $sinhVien)\n {\n //\n }", "title": "" }, { "docid": "05341597857cbdb06ca2dbe5330701a7", "score": "0.6176913", "text": "function editTitles()\n\t{\n\t\tglobal $tpl, $ilTabs, $ilCtrl;\n\t\t\n\t\t$ilTabs->setBackTarget($this->getPluginObject()->txt(\"all_menus\"),\n\t\t\t$ilCtrl->getLinkTarget($this, \"configure\"));\n\n\t\t\n\t\t$this->getPluginObject()->includeClass(\"class.lfMenuTranslationTableGUI.php\");\n\t\t\n\t\t$table = new lfMenuTranslationTableGUI($this, \"editTitles\", $this->getPluginObject(),\n\t\t\t\"mn\", (int) $_GET[\"menu_id\"]);\n\t\t\n\t\t$tpl->setContent($table->getHTML());\n\t}", "title": "" }, { "docid": "d3589b366f32ed384239f4696e39bf9a", "score": "0.6176782", "text": "function OnEditItem(){\n if (! $this->error) {\n if ($this->disabled_edit) {\n }\n if ($this->item_id != 0) {\n\n $this->_data = $this->Storage->{$this->GetItemMethod}(array(\n $this->key_field => $this->item_id));\n $form_data = $this->Request->Form;\n $this->_data = array_merge($this->_data, $this->Request->Form);\n if ($this->multilevel) {\n $this->parent_id = $this->_data[$this->parent_field];\n }\n }\n $this->OnBeforeCreateEditControl();\n $this->InitItemsEditControl();\n } //!error\n }", "title": "" }, { "docid": "2a5e2cfe96fa48eb76e18cf06d6b7544", "score": "0.61699706", "text": "public function hook_after_edit($id) {\n\t\t//Your code here\n\n\t}", "title": "" }, { "docid": "671a76579e538f29e9813de936a95f86", "score": "0.6166338", "text": "public function edit(LoadOrder $loadOrder)\n {\n //\n }", "title": "" }, { "docid": "493739ff19685aecb37fabd4ffa1578f", "score": "0.61624396", "text": "public function edit($id_inmueble)\n\t{\n\t\n\t}", "title": "" }, { "docid": "9c447484a1c520ac372886454a67cca6", "score": "0.6154576", "text": "public function edit_postAction() {\n\t\t$info = $this->getPost(array('id', 'name', 'link', 'img', 'sort', 'status', 'model_id','type_id'));\n\t\t$info = $this->_cookData($info);\n\t\t$ret = Browser_Service_Recsite::updateRecsite($info, intval($info['id']));\n\t\tif (!$ret) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功.'); \t\t\n\t}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f926d67103b49c3b708938347c012581", "score": "0.7038754", "text": "public function updateResource($resourceId, $record);", "title": "" }, { "docid": "de2d52f9def3aad6f8d87d580d39c262", "score": "0.6888798", "text": "public function update() {\n\t\t$this->storage->updateStorage();\n\t}", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.6533836", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "4036e5a75462edf3f0d824f080ae7c19", "score": "0.6514445", "text": "public function update(StorageRequest $request, Storage $storage)\n {\n $campos = $request->validated();\n\n $storage = $this->storageRepository->update($campos, $storage);\n\n return $this->showOne(new StorageResource($storage), 200);\n }", "title": "" }, { "docid": "4a53e7dd3c2aa1884a6b78cfa1931df7", "score": "0.6363001", "text": "public function updateFromResource(\n $resourceResource,\n $exerciseResource\n );", "title": "" }, { "docid": "a37451d53b2edd450cd43846406cd904", "score": "0.6323939", "text": "public function updated(Resource $resource)\n {\n $this->deleteCacheDepartments();\n }", "title": "" }, { "docid": "1d3b0af7b4ec814b473b06c1a2a208fd", "score": "0.613845", "text": "public function update(UpdateRequest $request, Resource $resource)\n {\n $resource->update($request->only('name', 'type','resource_starts','resource_ends','exclude_weekends'));\n\n return redirect(route('resources.show', $resource->id))->withSuccess('Updated successfully!');\n }", "title": "" }, { "docid": "4e3b6ab51e63f6ffae63a329de90b240", "score": "0.6119389", "text": "abstract public function updateResource($resource, ResourceNode $node, Workspace $workspace, User $user, SyncInfo $wsInfo, $path, $syncDate);", "title": "" }, { "docid": "4f4808380f22218aaf7fbea02c9916cb", "score": "0.6091119", "text": "public function update(Request $request, $resourceId)\n {\n $resource = $this->resource->find($resourceId);\n\n $this->validate($request, [\n 'title' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'slug' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'model' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'namespace' => 'required|max:255',\n 'order_column' => 'required|integer',\n 'order_direction' => 'required|in:asc,desc'\n ]);\n\n $resource->update($request->all());\n\n return redirect()->back()->with('success', 'Resource updated');\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.60153604", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "109ed515c823d7a78d782a8290a576d2", "score": "0.5969382", "text": "public function update($resourceId)\n {\n $exception = new Exception(\"CRUD0103\", __METHOD__);\n $exception->setHttpStatus(\"501\", \"Not yet implemented\");\n throw $exception;\n }", "title": "" }, { "docid": "74defa123e70820a991135800b36505a", "score": "0.5949209", "text": "static public function update () {\n\n $METHOD = Request::getMethod();\n $PATH = Request::getPath();\n\n Log::debug('--- Matched / with PUT method ---');\n\n $DATA = new EditableJSON(REST_DATA_FILE);\n\n $DATA->setValue(Request::getInput());\n\n Log::info(\"$METHOD $PATH: Changed resource completely\");\n\n return $DATA;\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "aa3074b4db1abeb89a38b5e15dee9e7c", "score": "0.5897436", "text": "public function updateStream($path, $resource, array $config)\r\n\t{\r\n\t\treturn $this->upload($path, $resource, $config);\r\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac66e1d66c388debefca8f97ea91a2b7", "score": "0.5842868", "text": "public function putUpdate()\n {\n $this->postUpdate();\n }", "title": "" }, { "docid": "f9e2fce00b6006820375e4adc0b03778", "score": "0.5839037", "text": "public function update($id, Request $request)\n {\n //\n $this->validate($request, ['storage_type' => 'required|in:Local HDD,Network HDD,Local SSD,Network SSD']);\n\n $st = StorageType::findOrFail($id);\n $st->storage_type = $request->storage_type;\n\n return redirect()->route('storagetypes.index');\n }", "title": "" }, { "docid": "58d5142b37ce0114e53d3fe56c2f6c03", "score": "0.5809738", "text": "protected function storeVersion(PuliResource $resource)\n {\n if (null !== $this->changeStream) {\n $this->changeStream->append($resource);\n }\n }", "title": "" }, { "docid": "3ebf4ac6712058cf5111ea2fb1b3f69d", "score": "0.5789821", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5752699", "text": "public function updateExisting();", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "9515a7f9c7d4d49fd0e91b13594a00d6", "score": "0.5671085", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'question'=>'required',\n 'description'=>'required',\n \n ]);\n $frequently=Frequently::where('id',$id)->first();\n $old_image=$request->old_image;\n $path=$old_image;\n if($request->hasFile('thumbnail')){\n if($path!=null&&file_exists(\"/storage/$path\")){\n unlink('storage/'.$path);\n }\n $path=$request->file('thumbnail')->store('Frequentlys');\n }\n $frequently->question=$request->question;\n $frequently->description=$request->description;\n $frequently->photo=$path;\n $frequently->save();\n return redirect()->route('listFrequently');\n }", "title": "" }, { "docid": "9ddd9520efc51e699e82bfa708a3c5e5", "score": "0.56641686", "text": "public function update($path, $cachedData);", "title": "" }, { "docid": "b3535d5367a1c20a3d356e026d81c210", "score": "0.56451815", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n if($request->hasFile('avatar')){\n $imagen = $request->file('avatar')->store('public');\n $resultado = str_replace(\"public\", \"storage\", $imagen);\n $product->imagen = $resultado;\n }\n $product->nombre = $request->get('nombre');\n $product->codigoBarra = $request->codigoBarra;\n $product->cantidad = $request->cantidad ;\n $product->categoria = $request->categoria ;\n $product->descripcion = $request->descripcion ;\n $product->costo = $request->costo ;\n $product->precio = $request->precio;\n $product->save();\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "3538e1075fd6fc7f2d59249215667663", "score": "0.5642799", "text": "public function update(Request $request, $id)\n {\n $id = $request->input('Id');\n $editPoll = $this->bucket->get(\"poll::\" . $id)->value;\n if (!(is_object($editPoll))) {\n $editPoll = json_decode($editPoll);\n }\n $created_at = $request->input('CreatedAt');\n $question = $request->input('Question');\n $status = $request->input('Status');\n $tags = $request->input('Tags');\n $tags_new = explode(\",\", $tags);\n $options = $editPoll->options;\n\n if ($file = $request->file('ImageName')) {\n unlink(\"imgs/\" . $request->input('PreviousImage'));\n $member_image = $file->getClientOriginalName();\n $file->move('imgs', $member_image);\n } else {\n $member_image = $request->input('PreviousImage');\n }\n\n $this->bucket->replace(\"poll::\" . $id, ['Id' => $id, 'created_at' => $created_at, 'options' => $options,\n 'question' => $question, \"status\" => $status, \"tags\" => $tags_new, 'ImageName' => $member_image]);\n return redirect(\"polls\");\n }", "title": "" }, { "docid": "e5e1cb25ba53fcc2b79ddb3fe3b7304a", "score": "0.56392527", "text": "public function update($object)\n {\n $this->persistenceManager->update($object);\n }", "title": "" }, { "docid": "9d32dd86baa4f1169783965d8d08b640", "score": "0.56374604", "text": "public function testResourcesCanBeUpdated()\n {\n $admin = factory(User::class)->states('admin')->create();\n $resource = factory(Resource::class)->create();\n\n $response = $this->actingAs($admin)->put('resources/'.$resource->id, [\n 'name' => 'New Resource Name',\n ]);\n\n $response->assertRedirect('/resources');\n $this->assertDatabaseHas('resources', [\n 'name' => 'New Resource Name',\n ]);\n }", "title": "" }, { "docid": "e4d9cc7693ad36b031389e0564fbaf8b", "score": "0.5624323", "text": "public function update(StoreEditEngagement $request, $id)\n {\n $engagement = Engagement::find($id);\n\n $engagement->titre = $request->titre;\n $engagement->contenu = $request->contenu;\n \n if ($request->image != null)\n {\n Storage::disk('imgEngagement')->delete($engagement->image);\n \n \n $image = [\n \"name\" => $request->image,\n \"disk\" => \"imgEngagement\",\n \"w\" => 1000,\n \"h\" => 1000\n ];\n \n $engagement->image = $this->imageResize->imageStore($image);\n }\n $engagement->save();\n return redirect()->route('engagements.index',['engagement'=> $engagement->id]);\n }", "title": "" }, { "docid": "b580434b2e577708f365194b901193c3", "score": "0.56211615", "text": "public function update() {\n\t\tif ($this->get('id') !== null) {\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "02b2a8f5c6ceb76c08e4a6597e2c8da0", "score": "0.5618807", "text": "public function updateProduct(): void\n {\n $product = $this->fetchProduct($this->product->product_name, $this->product->product_nr);\n if (!$product) {\n $this->product->last_scan = now();\n $this->product->save();\n\n return;\n }\n\n $this->product->product_url = $product['details']['url'];\n $this->product->stock_status = $product['details']['stock'];\n $this->product->last_scan = now();\n\n $inStock = $this->store->productHasStock($product['node']);\n if ($inStock) {\n $this->product->notifyInStock();\n $this->product->found = 1;\n }\n\n $this->product->save();\n }", "title": "" }, { "docid": "1c49f93e51c7bc32222ecde454e3f4ab", "score": "0.56150794", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n\n $request->validate([\n 'description' => 'required|string',\n 'name' => 'required|string',\n 'price' => 'required|numeric',\n 'type' => 'required', Rule::in(['drink', 'dish']),\n ]);\n\n if($request->file('file')){\n $request->validate([\n 'file' => 'image'\n ]);\n if($item->photo_url != null){\n Storage::delete('public/items/'.$item->photo_url);\n }\n $item->photo_url = basename($request->file('file')->store('public/items'));\n }\n\n \n $item->description = $request['description'];\n $item->name = $request['name'];\n $item->price = $request['price'];\n $item->type = $request['type'];\n $item->save();\n return new ItemResource($item);\n }", "title": "" }, { "docid": "b6ca8c191b9b71b8ef7393647dcd5cd6", "score": "0.5610084", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n if (!$product) return response()->json(['message' => 'Product not found.'], 404);\n\n $validator = Validator::make($request->all(), [\n 'name' => 'min:3|max:100',\n 'description' => 'min:5',\n 'price' => 'integer',\n 'quantity' => 'integer',\n 'image' => 'image|mimes:jpg,jpeg,svg,png'\n ]);\n\n $newPath = \"\";\n if ($request->hasFile('image')) {\n Storage::delete('products/' . $product->image);\n $newPath = $request->file('image')->store('public/products');\n }\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), 422);\n }\n\n $product->name = $request->get('name', $product->name);\n $product->description = $request->get('description', $product->description);\n $product->price = $request->get('price', $product->price);\n $product->quantity = $request->get('quantity', $product->quantity);\n $product->image = $request->get($newPath, $product->image);\n\n $product->save();\n return new ProductResource($product);\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "111aff7dc652d737e04484d721049c98", "score": "0.5595379", "text": "public function setResource($resource) { $this->resource = $resource; }", "title": "" }, { "docid": "751d0245849a838786b28b82bde8a4c7", "score": "0.5594406", "text": "public function updateStream($path, $resource, Config $config) {\n echo \"updateStream\";exit;\n }", "title": "" }, { "docid": "2ce24d19906aa703a63656bcd981224d", "score": "0.5592051", "text": "public function update(Request $request, $id)\n {\n $article=Article::findOrFail($id);\n $article->stock=$request->input('stock');\n if($article->save()) {\n return new ArticleResource($article);\n }\n }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.5582592", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "23b36aabfd1baef1df2a84b64db8a004", "score": "0.5563429", "text": "public function update(Request $request, $id)\n {\n $data = $request->all();\n\n //validation\n $request->validate($this->Validation());\n\n $product = Product::find($id);\n\n $data['slug'] = Str::slug($data['name'], '-');\n\n if (!empty($data['image'])) {\n // RIMUOVERE VECCHIA IMG\n if (!empty($product->image)) {\n Storage::disk('public')->delete($product->image);\n }\n $data['image'] = Storage::disk('public')->put('images', $data['image']);\n }\n\n $updated = $product->update($data);\n\n if($updated){\n return redirect()->route('products.show', $product->slug);\n } else {\n return redirect()->route('homepage');\n } \n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "04c0feb8d31bb9e3b0c25e72f6a0c700", "score": "0.55594426", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path, $resource, $config);\n }", "title": "" }, { "docid": "29033c29e8cd8e769333ca2adef8fc91", "score": "0.5559027", "text": "public function update(Request $request, $id)\n {\n $single=Slider_image::findorfail($id);\n $image = $single->image;\n\n if ($request->file() != null){\n\n Storage::delete('upload/slider_image/'.$image);\n\n $upload = $request->file('image1');\n\n\n $file_name = time().'_'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/slider_image',$file_name);\n\n $single->update([\n 'image'=>$file_name,\n 'slider_target'=>$request->slider_target\n ]);\n }else{\n\n $single->update([\n 'image'=>$request->img,\n 'slider_target'=>$request->slider_target\n ]);\n }\n\n\n return redirect('admin/SliderItem');\n }", "title": "" }, { "docid": "23b13183e49a64c42b369b76ee72ff0a", "score": "0.5546373", "text": "public function put($resource, $arOptions)\n {\n // TODO: Implement put() method.\n if (false) {\n $this->utilSetHttpStatus(200, \"OK\");\n } else {\n $this->utilSetHttpStatus(404, \"Not found\");\n }\n }", "title": "" }, { "docid": "a08f6b774130b5c3d30282ec86fc268e", "score": "0.55422", "text": "public function update(Request $request)\n {\n DB::table('cruds')->where('id',$request->id)->update([\n 'name'=>$request->name,\n 'price'=>$request->price,\n 'image'=>$request->file('image')->store('media'),\n 'description'=>$request->description,\n ]);\n return redirect('index/show');\n\n\n }", "title": "" }, { "docid": "47dd85ccb548e5327aa6f0cd02b5fef8", "score": "0.5540378", "text": "public function update(Request $request, $id) //Atualizar um dado inteiro, usando o Put\n {\n //\n }", "title": "" }, { "docid": "cd6123bf3edfbe468d12565bcc198dd6", "score": "0.5539982", "text": "public function update($data, $id, $withTrashed = false);", "title": "" }, { "docid": "6f5dfe25ea3a353e2c34d4da9909c65a", "score": "0.553297", "text": "public function update(Request $request, $model, $id)\n {\n $class = 'App\\\\' . ucfirst($model);\n $resource = $class::find($id);\n if(empty($resource)){\n return response([\n \"error\" => \"Resource not found\"\n ], 404);\n }\n $update = [];\n $fillable_attributes = $resource->getFillable();\n foreach($fillable_attributes as $attribute){\n if(strpos($attribute, 's3_url')){\n if(!empty($request->file($attribute))){\n $url = AmazonS3Helper::UploadtoS3(file_get_contents($request->file($attribute)), 'framework/' . $model . '/' . $request->file($attribute)->hashName(),'image/' . $request->file($attribute)->extension());\n $update[$attribute] = $url;\n }\n }else{\n $update[$attribute] = $request->$attribute;\n }\n }\n $resource->update($update);\n return response([\n \"data\" => $resource\n ], 200);\n }", "title": "" }, { "docid": "91fa0e4ea0a8c7896101b28b83ae1ab3", "score": "0.55280733", "text": "public function update(Request $request)\n {\n //\n $producto = Product::findOrFail($request->id_producto);\n $producto->category_id = $request->id;\n $producto->nombre = $request->nombre;\n $producto->precio = $request->precio;\n $producto->descripcion = $request->descripcion;\n $producto->stock = 0;\n $producto->estado = '1';\n $imagen = $request->file('imagen');\n \n $imagenes = 'storage/app/products/'.$producto->imagen;\n \n // Guardar imagen\n if($imagen){\n Storage::delete($imagenes);\n $image_path_name = time().$imagen->getClientOriginalName();\n Storage::disk('products')->put($image_path_name, File::get($imagen));\n $producto->imagen = $image_path_name;\n }\n $producto->save();\n return Redirect::to(\"admin/producto\");\n }", "title": "" }, { "docid": "a89f939420a4ce0f66a76f1e13ccde13", "score": "0.5525219", "text": "public function update(UpdateProductRequest $request, Product $product)\n {\n\n $data=$request->only(['title','description','published_at','price','category_id','content']);\n if ($request->hasFile('image')){\n //check if new image\n $image=$request->image->store('products');\n //upload it\n Storage::delete($product->image);\n //delete old one\n\n $data['image']=$image;\n }\n $product->update($data);\n\n\n session()->flash('success','Product updated successfully');\n\n return redirect(route('products.index'));\n }", "title": "" }, { "docid": "d8af827654eda9b47beb831dca58018e", "score": "0.5523829", "text": "public function put($resource, $id, $data = array())\n {\n $token = $this->getToken();\n if (empty($token)) {\n $token = $this->requestToken();\n }\n $data['token'] = $token;\n $ret = $this->getClient()->put(\"{$resource}/{$id}\", $data);\n //$ret = $this->getClient()->put(\"{$resource}/{$id}?token=\" . $token, $data);\n if (empty($ret)) {\n throw new Exception('Quartic Api returned empty result.');\n }\n if (!isset($ret['body']['status']) || strtolower($ret['body']['status']) != 'ok') {\n $this->getHelper()->log(var_export(\"{$resource}/{$id}\", true));\n $this->getHelper()->log(var_export($data, true));\n $this->getHelper()->log(var_export($ret, true));\n if (isset($ret['body']['data']['error_code'])) {\n throw new Exception('Quartic Api returned error: ' . $ret['body']['data']['error_message']);\n } else {\n throw new Exception('Quartic Api returned error: ' . print_r($ret['body'], true));\n }\n }\n return $ret;\n }", "title": "" }, { "docid": "c49ab96374b0772bd28cd7ae8c2d6bfe", "score": "0.55207497", "text": "public function update(Request $request, $id)\n {\n //Actualizamos Datos en la DB\n $product = Product::findOrFail($id);\n if ($request->hasFile('image')) {\n $product->image = $request->file('image')->store('public/img/product/body');\n }\n $product->update($request->all());\n //Redireccionar al index\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "429de32ce0a6f737ded9b4f0b77dc398", "score": "0.55156404", "text": "public function update(ProductEditRequest $request, $id)\n {\n //\n $url = $request->input('url');\n try {\n $product = Product::findOrFail($id);\n\n // if ($file = $request->file('image')) { // since its a one to many relationship\n // foreach ($product->images as $image) {\n // if (file_exists($old_file = public_path().'/images/product/'.$image->name)) { // no need to unlink since product can have many images\n // unlink($old_file); // unlink the old image\n // }\n // }\n\n // $name = 'product_'.$id.'_'.time().'.'.$file->getClientOriginalExtension();\n // $file->move('images/product', $name);\n // $product->images()->create(['product_id' => $product->id, 'name' => $name]);\n // }\n\n $product->name = $request->input('name');\n $product->category_id = $request->input('category_id');\n $product->stock = $request->input('stock');\n $product->price = $request->input('price');\n $product->status = $request->input('status');\n $product->description = $request->input('description');\n $result = $product->push();\n\n if ($result) {\n Session::flash('message', 'Update Success');\n } else {\n Session::flash('message', 'Update Failed');\n }\n } catch (\\Exception $e) {\n // do task when error\n Session::flash('error', 'Failed '.$e->getMessage());\n }\n return redirect($url);\n }", "title": "" }, { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.55156153", "text": "public function update($item);", "title": "" }, { "docid": "ca50926bc80f12da80aa1ee555d0ab40", "score": "0.55123925", "text": "public function update(){\n Lore::app()->getPersistence()->getRepository($this->metadata()->getRepositoryName())->update($this);\n }", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5510812", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "a6dd9080de61feef7df50e26b70511c5", "score": "0.5509228", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [ \n 'name' => 'required|string|max:255',\n 'logo' => 'sometimes|mimes:jpeg,bmp,png,jpg'\n ]);\n\n if ($validator->fails()) {\n $message = 'Validation Error.';\n $status = 400;\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n 'data' => $validator->errors(),\n ];\n\n return response()->json($response, 400);\n }\n else\n {\n $brand = Brand::find($id);\n\n if (is_null($brand)) {\n\n $status = 400;\n $message = 'Brand not found.';\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n ];\n\n return response()->json($response, 404);\n\n }\n else{\n\n $name = $request->name;\n $photo = $request->logo;\n\n // File Upoload\n if ($request->hasFile('photo')) {\n $imageName = time().'.'.$photo->extension(); \n \n $photo->move(public_path('images/brand'), $imageName);\n\n $filepath = 'images/brand/'.$imageName;\n\n $oldphoto = $brand->logo;\n\n if(\\File::exists(public_path($oldphoto))){\n \\File::delete(public_path($oldphoto));\n }\n }\n else{\n $filepath = $brand->logo;\n\n }\n\n // Data insert\n $brand->name = $name;\n $brand->logo = $filepath;\n $brand->save();\n \n\n $status = 200;\n $result = new BrandResource($brand);\n $message = 'Brand updated successfully.';\n\n $response = [\n 'status' => $status,\n 'success' => true,\n 'message' => $message,\n 'data' => $result,\n ];\n\n return response()->json($response, 200);\n }\n }\n }", "title": "" }, { "docid": "fd275acf4c99e35a1942adcba55b5168", "score": "0.5507853", "text": "public function update(Request $request, $id)\n {\n $data = Slider::find($id);\n $data->short_title = $request->short_title;\n $data->long_title = $request->long_title;\n $data->updated_by = Auth::user()->id;\n if ($request->file('image')) {\n $file = $request->file('image');\n @unlink(public_path('/upload/slider_image/'.$data->image));\n $filename =date('YmdHi').$file->getClientOriginalName();\n $file->move(public_path('/upload/slider_image'),$filename);\n $data['image']= $filename;\n }\n $data->save();\n return redirect()->route('view-slider')->with('success','Data updated successfully!');\n }", "title": "" }, { "docid": "5764299e1bb6a4a7925c46ed1072ca62", "score": "0.5499601", "text": "public function put($uri = null, $data = array(), $request = array());", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "048d9fb1be8f80b9c6a16e67a98faaff", "score": "0.5493909", "text": "public function update(StoreInventory $request, $id)\n {\n // Grab the inventory item so we can update it\n $inventory = Inventory::findOrFail($id);\n\n $inventory->fill($request->validated());\n \n return (new InventoryResource($inventory))\n ->response()\n ->setStatusCode(201);\n }", "title": "" }, { "docid": "09d3177310ace6bf104fcfebfdca9181", "score": "0.54922557", "text": "public function update($data)\n {\n return $this->client->put($this->fullPath(), null, $data);\n }", "title": "" }, { "docid": "85e1d4766b8ee562913fc2a3fc7a60db", "score": "0.54890925", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate(request(),[\n 'photo' => 'required|image|max:2048'\n ]);\n\n $photo = request()->file('photo')->store('public');\n \n\n Photo::update([\n 'url' => Storage::url($photo),\n 'activity_id'=> $activity->id,\n ]);\n\n }", "title": "" }, { "docid": "dea8abf6fe11ceeaef21c557a4920a01", "score": "0.5488609", "text": "public function update(Request $request, $id)\n {$product = Product::FindOrFail($id);\n $product->name = $request->name;\n $product->price = $request->price;\n $product->old_price= $request->old_price;\n $product->description = $request->description;\n $product->sub_category_id = $request->sub_category;\n if ($request->hasFile('picture')) {\n $picName = \"GRO\".uniqid().time().'.'.$request->picture->getClientOriginalExtension();\n $request->picture->move(public_path().'/uploads/', $picName);\n $product->picture='uploads/'.$picName;\n }\n $product->save();\n flash('Product updated successfully');\n return redirect('/');\n }", "title": "" }, { "docid": "85714b33bdb1da52c9f3c38b3fb0e4fd", "score": "0.54882276", "text": "abstract public function update($id);", "title": "" }, { "docid": "2aeec2d1db1eb88cf92a885873ec7eed", "score": "0.54836845", "text": "public function update(Request $request, Executive $executive)\n {\n $this->validateRequestUpdate();\n $this->checkAndDeleteOldImage($executive);\n $executive->update($this->validateRequestUpdate());\n $this->storeImage($executive);\n return redirect(route('executive.index'));\n }", "title": "" }, { "docid": "4dd2aec8bd2e4b5b1bffb4aec68a91da", "score": "0.54823583", "text": "public function update(Request $request, Role_resource $role_resource)\n {\n //\n }", "title": "" }, { "docid": "4ba6c1fe9ed4a5352f8497193c138598", "score": "0.5481853", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n $resource->update($request->except('files'));\n\n if ($request->hasFile('files')) {\n $resource->addMultipleMediaFromRequest(['files'])\n ->each(function ($file) {\n $file->toMediaCollection();\n });\n }\n\n $response = [\n 'resource' => $resource->load('media'),\n 'msg' => 'Resource updated successfully.'\n ];\n\n return response($response, 200);\n }", "title": "" }, { "docid": "70932022b6ff9363043b59bcdecbdea9", "score": "0.5480141", "text": "public function update(Request $request, $id)\n {\n //$idTag=Tag::findOrFail($id);\n $this->authorize('update'/* ,$idTag */);\n $tag = new TagResource(Tag::findOrFail($id));\n $tag->update($request->all());\n return response($tag, 200);\n }", "title": "" }, { "docid": "61dacb3f91f0a855850458a18f5e4183", "score": "0.5479231", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n if($this->repo->update($input, $id)){\n return $this->respondOK(\"resource updated\");\n }else{\n return $this->errorNotFound('resource not updated');\n }\n }", "title": "" }, { "docid": "154f3dfd07c1b3de458996ea6d67633a", "score": "0.5475994", "text": "protected function httpPut() {\n\n // First we'll do a check to see if the resource already exists\n try {\n $info = $this->tree->getNodeInfo($this->getRequestUri(),0); \n \n // Checking potential locks\n if (!$this->validateLock()) throw new Sabre_DAV_LockedException('The resource you tried to edit is locked');\n\n // We got this far, this means the node already exists.\n // This also means we should check for the If-None-Match header\n if ($this->httpRequest->getHeader('If-None-Match')) {\n\n throw new Sabre_DAV_PreconditionFailedException('The resource already exists, and an If-None-Match header was supplied');\n\n }\n \n // If the node is a collection, we'll deny it\n if ($info[0]['type'] == self::NODE_DIRECTORY) throw new Sabre_DAV_ConflictException('PUTs on directories are not allowed'); \n\n $this->tree->put($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(200);\n\n } catch (Sabre_DAV_FileNotFoundException $e) {\n\n // If we got here, the resource didn't exist yet.\n\n // Validating the lock on the parent collection\n $parent = dirname($this->getRequestUri());\n if (!$this->validateLock($parent)) throw new Sabre_DAV_LockedException('You\\'re creating a new file, but the parent collection is currently locked');\n\n // This means the resource doesn't exist yet, and we're creating a new one\n $this->tree->createFile($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(201);\n\n }\n\n }", "title": "" }, { "docid": "3a87aca1ec17bb66ec8a99811ab99ab3", "score": "0.5472414", "text": "public function updateProduct(Request $request, $id)\n {\n \n // Update Product\n //return(Product::where('product_id','=',$id)->first());\n\n $Product =Product::where('product_id','=',$id)->first();\n $Product->product_name = $request->product_name; \n $Product->product_description = $request->product_description;\n $Product->product_qty = $request->product_qty;\n $Product->product_status = $request->product_status;\n $Product->save();\n\n $url=\"http://127.0.0.1:8000/storage/\";\n $file=$request->file('product_img');\n $extension=$file->extension();\n $path=$request->file('product_img')->storeAs('Product', $Product->product_id.'.'.$extension);\n \n Product::where('product_id','=',$Product->product_id)->update([\n 'product_img' => $url.$path\n ]);\n \n // return($Product);\n \n if($Product){\n return response()->json($data=[\n 'status'=>'success',\n 'message'=>'Upadte product Successfull',\n 'product' => $Product\n \n ], 200);\n }\n else{\n return response()->json($data=[\n 'status'=>'failed',\n 'message'=>'something went wrong'\n ],203);\n } \n }", "title": "" }, { "docid": "333db29e9caf217f39a61608ae6c94ca", "score": "0.54632384", "text": "public function update(Request $request, $id)\n {\n // Validation des données du formulaire\n $this->validate($request, [\n 'name' => 'required|min:5|max:100',\n 'description' => 'required',\n 'price' => 'required|numeric',\n 'picture' => 'image:max:3000',\n 'status' => 'required|in:published,unpublished',\n 'sales' => 'required|in:onSales,standard',\n 'reference' => 'required|alpha_num|min:16|max:16',\n 'category_id' => 'required|integer',\n 'sizes' => 'required'\n ]);\n\n $product = Product::find($id);\n \n $datas = $request->all();\n\n $file = $request->file('picture');\n if(!empty($file)){ // si l'utilisateur ne change pas son image\n $imageName = $request->picture->hashName(); //hashage du nom de l'image à enregistrer\n $datas['picture'] = $imageName;\n\n $categoryId = $datas['category_id'];\n $img = $request->file('picture');\n $img->move(public_path('/img/'.$categoryId),$datas['picture']);// insertion de l'image dans le dossier de catégorie choisie\n }else{\n if($product->category_id != $datas['category_id']){ // si l'utilisateur change de catégorie\n $newCategoryId = $datas['category_id'];\n $oldPath = public_path('/img/'.$product->category_id.'/'.$product->picture);\n $newPath = public_path('/img/'.$newCategoryId.'/'.$product->picture);\n File::move($oldPath,$newPath);// insertion de l'image dans le dossier de catégorie choisie\n }\n \n }\n\n \n $product->update($datas);\n $product->size()->sync($request->sizes);\n\n //Redirection vers la page admin des produits\n return redirect()->route('product.index')->with('message', 'Le produit a bien été mise à jour');\n }", "title": "" }, { "docid": "0e4d84200a41553d02c2dd28fc577124", "score": "0.54631126", "text": "public function updateObject($objectPath,$content) { }", "title": "" }, { "docid": "5dfe400f13e0d453a75d37d2c1296a55", "score": "0.545993", "text": "public function update(Request $request, $id)\n {\n try{\n DB::beginTransaction();\n $data = [\n 'name' => $request->slide_name,\n 'description' => $request->desc_slide\n ];\n\n if($request->hasFile('image_slide')){\n $imageSlide = $this->storageTraitUpload($request,'image_slide','slide');\n $data['image'] = $imageSlide['file_path'];\n }\n $this->slide->find($id)->update($data);\n DB::commit();\n return redirect()->route('admin.slide.index');\n }catch(Exception $exception){\n DB::rollBack();\n Log::error('message'.$exception->getMessage().'line'.$exception->getLine());\n }\n }", "title": "" }, { "docid": "a6b372ff8f044bee76bd1ac8500ec932", "score": "0.5457891", "text": "public function testUpdate()\n {\n Document::exists() || Document::factory()->create();\n $document = Document::latest('id')->first();\n\n $documentType = DocumentType::factory()->create();\n $student = Student::factory()->create();\n $debrief = Debrief::factory()->create();\n\n $data = [\n 'filename' => $document->filename,\n 'relative_path' => $document->relative_path,\n 'disk' => $document->disk,\n 'extension' => $document->extension,\n 'document_type' => $documentType->getKey(),\n 'student' => $student->getKey(),\n 'debrief' => $debrief->getKey()\n ];\n\n $response = $this->actingAs($this->adminUser)->putJson('/api/documents/' . $document->getKey(), $data);\n if ($response->exception) {\n dd($response->exception);\n }\n\n $document = $document->fresh();\n\n $expectedResponseContent = (new DocumentResource($document))->toArray(request());\n\n $response->assertOk()\n ->assertJson([\n 'data' => $expectedResponseContent\n ]);\n\n // $this->actingAs($this->unauthorizedUser)->putJson('/api/documents/' . $tutor->getKey(), $data)\n // ->assertForbidden();\n }", "title": "" }, { "docid": "ed8de68c7d88f1904a744dc02701808c", "score": "0.54521495", "text": "public function update(Request $request, $id)\n {\n //\n //highlight sidebar\n $this->setActiveParent();\n\n $validator = $this->custom_validation($request, 'update');\n\n $products = Product::findOrFail($id);\n\n //check if $validator is true && record is found\n if( $validator === true && $products ){\n\n \n //begin transaction\n $transaction = DB::transaction(function() use($request, $products) {\n\n $request['fk_updatedby'] = Auth::id();\n\n //to be remove from storage\n $oldfilename = $products->pictx; \n\n //dd($request->all());\n\n $products->update($request->all());\n\n //check if user removed the logo\n if( $request->removepictx && $request->removepictx == 'on' ){\n \n AppStorage::remove($oldfilename);\n\n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> null\n ]);\n\n }//END check if user removed the logo\n\n\n //if request uploaded picture\n if( $request->pictx ){\n\n AppStorage::remove($oldfilename);\n \n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> AppStorage::store('products', $request->pictx)\n ]);\n\n }//END check if request uploaded picture\n\n\n\n session()->flash('success', \"$request->name has been updated!\");\n\n //return redirect(\"/products/edit/$products->pk_products\");\n return redirect()->back();\n\n\n\n });//END transaction\n\n return $transaction;\n \n\n\n \n }else{\n\n //null = current request\n $form_fields = DynamicForm::form_fields('update', $products, null, Product::form_fields() );\n\n $this->setPrerequisites();\n $categories = $this->categories;\n $supplier = $this->supplier;\n\n return view('products.edit', compact('form_fields', 'products', 'categories', 'supplier'))->withErrors($validator); \n //return redirect()->back()->withInput()->withErrors($validator);\n\n\n\n\n }\n\n\n\n\n\n }", "title": "" }, { "docid": "88a70023be7208ea677c3d6e556c61fb", "score": "0.5448917", "text": "public function update(Request $request, $id)\n {\n //\n \n \n $requestData = $request->all();\n \n $file = $request->file('foto');\n if($request->hasFile('foto')){\n \n $requestData['foto']=$file->openFile()->fread($file->getSize());\n /*\n \n $requestData = $request->all();\n \n if ($request->hasFile('foto')) {\n $requestData['foto'] = $request->file('foto')\n ->store('uploads', 'public');\n \n*/\n }\n\n $perfilestudiante = PerfilEstudiante::findOrFail($id);\n $perfilestudiante->update($requestData);\n\n $redireccion='perfil-estudiante/'.$id.'/edit';\n return redirect($redireccion)->with('flash_message', 'PerfilEstudiante updated!')->with('menu','usuario_docente');\n }", "title": "" }, { "docid": "6c0c4f37dc5881fde1e7b8d7f270ec97", "score": "0.544714", "text": "public function update($id) {\n\n }", "title": "" }, { "docid": "d9c8b0075dcc91c0089aaf5fd99a7f55", "score": "0.54461193", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'service_name'=>'required',\n 'description'=>'required'\n ]);\n $path=$request->old_image;\n if($request->hasFile('thumbnail')){\n if($request->old_image!=null){\n unlink('storage/'.$request->old_image);\n }\n $path=$request->file('thumbnail')->store('Thumbnials');\n }\n // $attachment=$request->old_attachment;\n // if($request->hasFile('attachment')){\n // if($attachment!=null){\n // // unlink('storage/'.$request->old_attachment);\n // }\n // $attachment=$request->file('attachment')->store('Attachment');\n // }\n $data=[\n 'service_name'=>$request->service_name,\n // 'attachment'=>$attachment,\n 'description'=>$request->description,\n 'thumbnail'=>$path\n ];\n Service::where('id',$id)->update($data);\n return redirect()->route('listService');\n }", "title": "" }, { "docid": "33f614d65ce49db36128bb80e0048cd2", "score": "0.54417664", "text": "public function update() { if (is_null($this->id))\n trigger_error(\"Reference::update(): Attempt to update a Reference object that does not have its ID property set.\", E_USER_ERROR);\n\n // Update the Article\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE reference SET RefFile=:refFile UploaderID=:uploaderID Source=:source WHERE ReferenceID = :id\";\n $st = $conn->prepare($sql);\n $st->bindValue(\":refFile\", $this->refFile, PDO::PARAM_STR);\n $st->bindValue(\":uploaderID\", $this->uploaderID, PDO::PARAM_INT);\n $st->bindValue(\":source\", $this->source, PDO::PARAM_STR);\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "181ee26d73bd3c1143b1d276e6b7bb91", "score": "0.54384834", "text": "public function update(Request $request, $id)\n {\n $store = Store::where('id',$id)->first();\n $store->name = $request->name;\n $store->address = $request->address;\n $store->phone = $request->Phone;\n $store->opening = $request->opening;\n if($request->has('image')){\n unlink(public_path('back/images/store/'.$store->image));\n $imageName = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('back/images/store'), $imageName);\n $store->image = $imageName;\n }\n $store->save();\n return redirect()->back()->with('success','Store has been updated successfully!');\n }", "title": "" }, { "docid": "70c454fe61b8abc6777a08b358712c67", "score": "0.54292583", "text": "public function update($id){\n \n }", "title": "" }, { "docid": "0ae71e0ed59055b44c4c0b240eb670ae", "score": "0.5427381", "text": "public function update($id)\n\t{\n\t\t$manager = App::make(\\BackupManager\\Manager::class);\n\t\t$manager->makeRestore()->run('local', 'storage_path('.$id.')');\n\t}", "title": "" }, { "docid": "ee62ec950231813104ded30d5cdda483", "score": "0.5426956", "text": "public function update(StoreParameter $request, $id)\n {\n $data = $request->all();\n $parameter = Parameter::find($id);\n $this->checkAndUploadImage($request, 'image', 'posters', $parameter);\n $parameter->update($data);\n Session::flash('message', 'Успешно изменено');\n return redirect()->route('parameters.index');\n }", "title": "" }, { "docid": "e7a9ed5515a2a2ec06d6aca33efe6caf", "score": "0.5416989", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::query()->findOrFail($id);\n if($product->photo !== null){\n File::delete($product->photo->file);\n }\n\n\n if ($file = $request->file('photo_id')) {\n $name = Time() . $file->getClientOriginalName();\n $file->move('images', $name);\n $photo = Photo::create(['file' => $name]);\n $input['photo_id'] = $photo->id;\n }\n $product->update($request->all());\n return redirect('/admin/products');\n }", "title": "" }, { "docid": "b50ec68239e495a6eac6681b6be2bd10", "score": "0.54154384", "text": "public function put($resource, $data, array $parameters = array())\n {\n // Pass the request on\n return $this->sendData($resource, $data, $parameters, \"PUT\");\n }", "title": "" }, { "docid": "55601806ef2a9d7e3f71d62851e418fc", "score": "0.54153293", "text": "public function updateById($data, $id);", "title": "" }, { "docid": "bc24b326261d7a5dcbc2c4576e30536b", "score": "0.5414857", "text": "public function update(Request $request, $id)\n {\n $single=Brand::findorfail($id);\n $image = $single->image;\n\n\n if ($request->file() != null){\n\n Storage::delete('upload/brands/'.$image);\n\n $upload = $request->file('image');\n\n\n $upload = $request->file('image');\n\n\n $file_name = 'brand_image_'.time().'.'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/brands/',$file_name);\n $single->update([\n 'name'=>$request->name,\n 'image'=>$file_name\n ]);\n }else{\n\n $single->update([\n 'name'=>$request->name,\n 'image'=>$request->img_name\n ]);\n }\n\n\n return redirect('admin/brands');\n }", "title": "" }, { "docid": "a28ba9c40e06592529f38d6d19b89b16", "score": "0.54146737", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "10ffb6f2bcc02987225b2f72d4364775", "score": "0.5405863", "text": "function update($id, $data);", "title": "" } ]
5f91fd064a8ee2ed7e3267560df43e7f
Edit the student ragabas
[ { "docid": "e13b66bb545da2816d04fe07b10a6859", "score": "0.66202754", "text": "public function edit_ragaba(Request $request)\n {\n $this->validate($request, [\n 'school' => 'bail|array'\n ]);\n \n $student = Student::where('s_number', auth()->user()->email)->first();\n $ragaba = Ragaba::where('student_id', $student->id)->first();\n \n if ($request->school == null) {\n $ragaba->delete();\n session()->flash('success', 'تم حذف الرغبات بنجاح، برجاء قم بتسجيل رغبات جديدة');\n return redirect()->route('home');\n }\n\n if (!$request->type) {\n if (count($request->school) < 3)\n return back()->withErrors(['من فضلك قم باختيار ثلاث رغبات']);\n \n foreach ($request->school as $key => $value) {\n if ($value == null)\n return back()->withErrors(['من فضلك قم باختيار ثلاث رغبات']);\n }\n }\n \n $ragabat = implode(',', $request->school);\n\n $ragaba->school = $ragabat;\n $ragaba->save();\n\n session()->flash('success', 'تم تعديل الرغبات بنجاح');\n return redirect()->route('home');\n }", "title": "" } ]
[ { "docid": "60d2f5acde15b1eb78b8072add007958", "score": "0.71498716", "text": "public function edit($id)//edit existing students info\n {\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n {\n //\n }", "title": "" }, { "docid": "9259c485ad5627e9efa142e6a7bbd63c", "score": "0.6937226", "text": "protected function editar()\n {\n }", "title": "" }, { "docid": "9259c485ad5627e9efa142e6a7bbd63c", "score": "0.6937226", "text": "protected function editar()\n {\n }", "title": "" }, { "docid": "33e0af0a930faa322ed6ec3e96d15750", "score": "0.68054324", "text": "public function edit(Room_Student $room_Student)\n {\n //\n }", "title": "" }, { "docid": "53adc442fed1dc21c37a56983fb62ecf", "score": "0.68031746", "text": "public function edit()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d9b7b0011ecaea19f0674b28a0ddd919", "score": "0.67987216", "text": "public function edit(Student $student)\n {\n\n// $divisions = Division::query()->get();\n// $districts = District::query()->get()->sortBy('name');\n $religions = Religion::query()->get();\n $genders = Gender::query()->get();\n $bloodGroups = BloodGroup::query()->get();\n $shifts = Shift::query()->get();\n $sections = Section::query()->get();\n $groups = Group::query()->get();\n $classes = TheClass::query()->get();\n return view('student.edit', compact('student', 'religions', 'genders', 'bloodGroups', 'shifts', 'sections', 'groups', 'classes'));\n }", "title": "" }, { "docid": "1326863d413e9d283d3fb946787717a0", "score": "0.6781119", "text": "public function editar()\n {\n }", "title": "" }, { "docid": "99ad99266b79235f63615247666a8109", "score": "0.674757", "text": "public function edit( $studentFee)\n {\n //\n }", "title": "" }, { "docid": "137cd35ed73dc46225ec509e7db2999e", "score": "0.67468816", "text": "function edit() {\r\n }", "title": "" }, { "docid": "76639a07faa51f2b552a9eba215c08ba", "score": "0.6738866", "text": "public function edit()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "77d6b77133b5b4fc7128a14880351e21", "score": "0.66630054", "text": "public function edit(studentGrades $studentGrades)\n {\n //\n }", "title": "" }, { "docid": "129ff79877c7bfe0480772ebe06b0eb8", "score": "0.6640204", "text": "public function edit(Student $student)\n {\n echo \"Yes\";\n }", "title": "" }, { "docid": "5eb2ae2b236ea5ebdfec654fe7e72059", "score": "0.66338044", "text": "public function edit(tanggapann_rahma $tanggapann_rahma)\n {\n //\n }", "title": "" }, { "docid": "974aad213740960a1a7363abc5d177a2", "score": "0.65922004", "text": "public function edit(student $student) \n {\n $students = student::orderBy('name','asc')->get();\n $abrir=true;\n\n return view('students.indexstudents', compact('students','student','abrir'));\n }", "title": "" }, { "docid": "4b1351bd722198bec7190c5dc5437f2d", "score": "0.6591303", "text": "protected function EDIT()\n {\n }", "title": "" }, { "docid": "df25073a68292b12a51b2e1c18f2380d", "score": "0.6591035", "text": "function edit()\n\t{\n\n\t}", "title": "" }, { "docid": "e73067a8f5b9e79d6667ad146041904d", "score": "0.6590263", "text": "function edit()\n {\n }", "title": "" }, { "docid": "b7d50b0ffe0f37ec168875c2022ea346", "score": "0.65893817", "text": "public function edit(){\n\t}", "title": "" }, { "docid": "cf01723b8dff4fc54232d0189268ea21", "score": "0.6559775", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "cf01723b8dff4fc54232d0189268ea21", "score": "0.6559775", "text": "public function edit()\n {\n \n }", "title": "" }, { "docid": "f1a338a2650fef4781b43614cb7b222d", "score": "0.65594286", "text": "public function edit() {\n\n\t}", "title": "" }, { "docid": "916ccb9d746431a8767ba7cc7c5e81de", "score": "0.654591", "text": "public function edit(Exam $exam)\n {\n //\n }", "title": "" }, { "docid": "916ccb9d746431a8767ba7cc7c5e81de", "score": "0.654591", "text": "public function edit(Exam $exam)\n {\n //\n }", "title": "" }, { "docid": "916ccb9d746431a8767ba7cc7c5e81de", "score": "0.654591", "text": "public function edit(Exam $exam)\n {\n //\n }", "title": "" }, { "docid": "916ccb9d746431a8767ba7cc7c5e81de", "score": "0.654591", "text": "public function edit(Exam $exam)\n {\n //\n }", "title": "" }, { "docid": "2be3981278ffebf2c6bc6bae6276aafe", "score": "0.6538494", "text": "public function edit($grnumber)\n\t{\n\t\tif(isset($this->session->isactive)){\n\t\t\t$this->load->model('student_model');\n\t\t\t$student = $this->student_model->get_student_full($grnumber);\n\n\t\t\t// Layout view is common view containing sidebar and navbar\n\t\t\t// in which respective view is loaded as main content view\n\t\t\t$data['student'] = $student;\n $data['view'] = 'student_edit_view';\n\t\t\t$data['title'] = 'IQRA | Student';\n\t\t\t$data['breadcrumb_1'] = 'Student';\n\t\t\t$data['breadcrumb_2'] = 'Student';\n\t\t\t$data['breadcrumb_3'] = 'Edit';\n $this->load->view('layout_view',$data);\n\t\t}\n\t\telse {\n\t\t\tredirect('login');\n\t\t}\n\n\t}", "title": "" }, { "docid": "b4bdba2350eceb0c925f140b68c60fba", "score": "0.64964336", "text": "public function edit(Student $student, Student $newStudent): Student;", "title": "" }, { "docid": "92eb8733e9471932eb3d049d3123a0b5", "score": "0.6490235", "text": "public function edit($id)\n {\n $id_proof = Idproof::all();\n if (auth()->user()->role->name == \"super_admin\") {\n\n $students = Student::find($id);\n $schools = School::all();\n $classes = Createclass::where('school_id', $students->school_id)->get();\n $qualifications = Qualification::all();\n $studentparents = StudentParent::where('student_id', $id)->where('parent_type', 'new')->first();\n $address = Address::where('user_id',$id)->where('register_type', 'new')->first();\n }elseif(auth()->user()->role->name == \"admin\"){\n $schools = null;\n $classes = Createclass::where('school_id', auth()->user()->school->id)->get();\n $students = Student::find($id);\n $qualifications = Qualification::all();\n $studentparents = StudentParent::where('student_id', $id)->where('parent_type', 'new')->first();\n $address = Address::where('user_id',$id)->where('register_type', 'new')->first();\n }elseif(auth()->user()->role->name == \"parent\"){\n $schools = null;\n $students = Student::find($id);\n $classes = Createclass::where('school_id', $students->school_id)->get();\n $qualifications = Qualification::all();\n $studentparents = StudentParent::where('student_id', $id)->where('parent_type', 'new')->first();\n $address = Address::where('user_id',$id)->where('register_type', 'new')->first();\n }\n return view('admin.new_admission.edit', compact(['id_proof','schools','classes','students','studentparents','address','qualifications']));\n }", "title": "" }, { "docid": "6d8cada5cda50648faace3d624ef5f70", "score": "0.6471718", "text": "public function edit($id)\n {\n // $data['student'] = Student::findOrfail($id);\n $data['studentsu'] = DB::table('students')\n ->join('users', 'users.id', '=', 'students.user_id')\n ->select('users.*', 'students.*')->where('students.id',$id)\n ->get();\n $data['student'] = $data['studentsu'][0];\n $data['parents'] = DB::table('parents')->select(DB::raw(\"CONCAT(users.firstname,' ', users.lastname) AS full_name, parents.id\"))->join('users', 'parents.user_id', '=', 'users.id')->lists('full_name', 'id');\n $data['title'] = $data['student']->lastname.' '.$data['student']->firstname;\n $class_id = $data['student']->class_id;\n $data['sections'] = DB::table('sections')->where(['class_id'=>$class_id])->lists('name', 'id');\n $data['classes'] = DB::table('classes')->where(['division_id'=>$data['student']->division_id])->lists('name', 'id');\n $data['states'] = DB::table('states')->lists('name', 'id');\n $data['divisions'] = DB::table('divisions')->lists('name', 'id');\n return view('admin.student.edit',$data);\n\n }", "title": "" }, { "docid": "73dee46020a852067daf5e90cd56957a", "score": "0.64705336", "text": "public function edit()\n {\n }", "title": "" }, { "docid": "41088eb995692895f4dd22726759ffd2", "score": "0.6464429", "text": "public function edit(matrik $matrik)\n {\n //\n }", "title": "" }, { "docid": "b840d3c94f14903180b55b9b61710405", "score": "0.6455566", "text": "public function edit(StudentProfile $studentProfile)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "57fc30624b0ad475a3c03b3df978d35e", "score": "0.6452299", "text": "public function edit($id) {\n //return view('student.index', ['j' => $this->j]);\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "c28027feda5c11615dcf472d6af3f96c", "score": "0.6441901", "text": "public function edit()\n {\n //\n }", "title": "" }, { "docid": "aca627f6e97d5834d2a02dc04edc0fa5", "score": "0.64297056", "text": "public function edit()\n {\n\n\n }", "title": "" }, { "docid": "2e6b21a9fcaa554af0de8de29d45902e", "score": "0.642074", "text": "function modificarFamilia(){\n\t\t$this->load->view('Inicio/admInicio');\n\t\t\n\t\t$data = array(\n\t\t\t'enlaces'=>$this->usuario_model->verFamilia()\n\t\t);\n\t\t$this->load->view('Inicio/modificarFamilia',$data);\n\t}", "title": "" }, { "docid": "f93e1f84a21a63ebe7f1d937216218ea", "score": "0.6418993", "text": "public function edit(StudentAssignment $studentAssignment)\n {\n //\n }", "title": "" }, { "docid": "f93e1f84a21a63ebe7f1d937216218ea", "score": "0.6418993", "text": "public function edit(StudentAssignment $studentAssignment)\n {\n //\n }", "title": "" }, { "docid": "27e6ad0137d71632e6360b42de8c10a9", "score": "0.63978654", "text": "public function edit(GraduatedStudent $graduatedStudent)\n {\n //\n }", "title": "" }, { "docid": "6582e016eba0dd97645bcab012cf7bfc", "score": "0.63951993", "text": "public function edit(Smanalysis $smanalysis)\n {\n //\n }", "title": "" }, { "docid": "bcebbe7c4552548d695ea4a077dcf4fd", "score": "0.6380689", "text": "public function edit(Grade $grade)\n {\n //\n }", "title": "" }, { "docid": "5ba0c5a5e11209be9c8ca2280c09c4a3", "score": "0.63802075", "text": "public function edit(Semakan $semakan)\n {\n //\n }", "title": "" }, { "docid": "ba8eb34970b386592417d1f1abde1888", "score": "0.6365851", "text": "public function edit(Spedizione $spedizione)\n {\n //\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.6359687", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.6359687", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.6359687", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "7e334374ee948826bf9b09b88924db78", "score": "0.6359687", "text": "public function edit()\n {\n\n }", "title": "" }, { "docid": "12c5f4dccbf143bffbf074447f8692a5", "score": "0.63591915", "text": "function Edit();", "title": "" }, { "docid": "e10fb7ff70abbba15cc3149c28543e14", "score": "0.634753", "text": "public function edit(Asistencia $asistencia)\n {\n }", "title": "" }, { "docid": "a796efdee3552849140b91b8621db12d", "score": "0.6338129", "text": "public function edit(Reginamaria $reginamaria)\n {\n //\n }", "title": "" }, { "docid": "0581bfd63670e34502effb9c78687a6b", "score": "0.63224137", "text": "public function edit(Asignatura $asignatura)\n {\n //\n }", "title": "" }, { "docid": "4c478fe50fb32fbad762e7ed320ac75a", "score": "0.6316353", "text": "private function save_edit()\r\n {\r\n }", "title": "" }, { "docid": "aca69d4758098565285b9b3032817805", "score": "0.63045543", "text": "public function edit(Mesa $mesa)\n {\n //\n }", "title": "" }, { "docid": "aca69d4758098565285b9b3032817805", "score": "0.63045543", "text": "public function edit(Mesa $mesa)\n {\n //\n }", "title": "" }, { "docid": "a98ddf5da1a82d7be2cca0fecde5f737", "score": "0.6294534", "text": "public function editAction();", "title": "" }, { "docid": "3ef61ae59998f7419d9c566d60244c72", "score": "0.62936276", "text": "public function edit(Detalle_Caso $detalle_Caso)\n {\n //\n }", "title": "" }, { "docid": "5d33959617bca28ac527b941b3345597", "score": "0.62788725", "text": "public function edit($studentID){\n $student = Student::where('studentID',$studentID)->get();\n return view('students.edit',['students' => $student]);\n \n }", "title": "" }, { "docid": "4e7f440c045f0f74ad5ece27fcb8de07", "score": "0.6269249", "text": "public function edit(){\n\n\t\t\t$data = $this->detail_teacher();\n\n\t\t\tif(!isset($data[\"nidn\"])){\n\n\t\t\t\theader(\"location:\".HomeUrl().\"/profile\");\n\t\t\t\texit;\n\n\t\t\t}\n\n\t\t\tif(userData()[\"level\"] == 0) {\n\n\t\t \theader(\"location:\".HomeUrl().\"/profile\");\n\t\t \texit;\n\n\t \t}\n\n\t\t\t$this->view([\"header\", \"navbar\",\"teacher/edit\", \"footer\"], $data);\n\n\t\t}", "title": "" }, { "docid": "a73c0d7275dd47f02deeb4042ae50e07", "score": "0.62671435", "text": "public function edit_abonnement(){\n\t\t\t\n\t\t\t$data['abonnement'] = $this ->abonnement_model ->edit_abonnement();\n\t\t\tredirect('tableabonne');\n\t\t}", "title": "" }, { "docid": "adf61d4898780a2aa20a30a370bf081a", "score": "0.626391", "text": "public function edit()\n {\n return view('backend.student.edit-student');\n }", "title": "" }, { "docid": "29e4e2cd97f62b1b39d1205c6c3afce7", "score": "0.6255162", "text": "public function edit($id)\n {\n\t\t$student = User::find($id);\n $roles = Role::all();\n $grades = Grade::all();\n \n return view('admin.students.edit', compact('student', 'roles', 'grades'));\n }", "title": "" }, { "docid": "4a9a567621dfd1a2ba9ddf7ea1c827aa", "score": "0.6255099", "text": "public function edit(Matricula $matricula)\n {\n //\n }", "title": "" }, { "docid": "4a9a567621dfd1a2ba9ddf7ea1c827aa", "score": "0.6255099", "text": "public function edit(Matricula $matricula)\n {\n //\n }", "title": "" }, { "docid": "f74756f89eb8abbbedfff892b14ce4a4", "score": "0.62523484", "text": "public function edit(Kopya $kopya)\n {\n //\n }", "title": "" }, { "docid": "7c688f520b6d6542409316b8b9a8926c", "score": "0.62319595", "text": "public function edit($id)\n {\n $statuss = DB::table('thesis_seminars') \n ->select('thesis_seminars.status')\n ->where('thesis_seminars.id','=', $id)\n ->get();\n \n $nim = Auth::user()->username;\n $info = DB::table('theses')\n ->join('students', 'theses.student_id', '=', 'students.id')\n ->select('students.name AS student_name', 'theses.title')\n ->where('students.nim', '=', $nim)\n ->get();\n $info = $info[0];\n \n $sv = DB::table('theses')\n ->join('students', 'theses.student_id', '=', 'students.id') \n ->join('thesis_supervisors', 'theses.id', '=', 'thesis_supervisors.thesis_id')\n ->join('lecturers', 'thesis_supervisors.lecturer_id', '=', 'lecturers.id')\n ->select('lecturers.name AS lecturer_name')\n ->where('students.nim', '=', $nim)\n ->get();\n\n foreach($statuss as $status)\n {\n foreach($status as $st)\n {\n if($st == 10)\n {\n $semhas = ThesisSeminar::findOrFail($id);\n $nim = Auth::user()->username;\n $student = DB::table('theses')\n ->join('thesis_seminars', 'thesis_seminars.thesis_id', '=', 'theses.id')\n ->select('theses.id')->where('thesis_seminars.id', '=', $id)\n ->get();\n \n return view ('backend.thesis_seminar.edit', compact('semhas', 'student', 'id', 'info', 'sv'));\n }\n elseif($st != 10)\n {\n return redirect()->route('admin.semhas.index')->with('message', 'Gagal mengubah data pengajuan. Pengajuan telah disetujui.');\n }\n }\n }\n }", "title": "" }, { "docid": "d31aeb2e9aeebe6865dd31ca84a58ef9", "score": "0.6226739", "text": "public function edit(StokBarang $stokBarang)\n {\n //\n }", "title": "" }, { "docid": "cb40014d5c0b0e32dad37ab8057befc6", "score": "0.62242484", "text": "public function edit(Seguimientoubucacion $seguimientoubucacion) {\n //\n }", "title": "" }, { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.62202305", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "3066c3301aacfc36bb9428b3f34719df", "score": "0.6219598", "text": "public function edit($empresa)\n {\n //\n }", "title": "" }, { "docid": "ac45be5e35236f70f65dca29b5258f12", "score": "0.6215489", "text": "public function edit(Asignacion $asignacion)\n {\n //\n }", "title": "" }, { "docid": "c4ce18cc07d04cb7b60bbbc244d6453a", "score": "0.62136644", "text": "public function edit(Bodega $bodega)\n {\n //\n }", "title": "" }, { "docid": "085ddd3715952ebd55bb29a85f0b2773", "score": "0.6212676", "text": "public function edit(Student $student)\n {\n \n $classes = Classes::pluck('class_name', 'id');\n $class_level = Classes::pluck('level_id', 'id');\n\n // $students = Student::all();\n $student_image = $student->student_image;\n $level_list= Level::pluck('level_name','id');\n\n return view('student.edit', compact('student', 'classes', 'level_list', 'level_id', 'student_image'));\n }", "title": "" }, { "docid": "cfde2f3bfe03e7621c7cd135f9ae0e40", "score": "0.6212166", "text": "public function editTest()\n {\n \t$this->addTest();\n \t$tipo = \"bibliografias\";\n \t$datos = [\n [\n 'view' => true,\n 'col' => 1,\n 'cols' => 1,\n 'offset' => 1,\n 'align' => 'right',\n 'texto' => 1,\n 'type' => 'orden', \n ],\n [\n 'view' => true,\n 'col' => 2,\n 'cols' => 6,\n 'offset' => 2,\n 'align' => 'left',\n 'texto' => 'Autor modificado',\n 'type' => 'autor',\n ],\n [\n 'view' => true,\n 'col' => 0,\n 'cols' => 0,\n 'offset' => 0,\n 'align' => 'justify',\n 'texto' => 'Titulo modificado',\n 'type' => 'titulo',\n ],\n [\n 'view' => true,\n 'col' => 0,\n 'cols' => 0,\n 'offset' => 0,\n 'align' => 'left',\n 'texto' => 'Editorial modificada',\n 'type' => 'editorial',\n ],\n [\n 'view' => true,\n 'col' => 0,\n 'cols' => 0,\n 'offset' => 0,\n 'align' => 'left',\n 'texto' => 2015,\n 'type' => 'año',\n ], \n [\n 'view' => true,\n 'col' => 0,\n 'cols' => 0,\n 'offset' => 0,\n 'align' => 'left',\n 'texto' => 'UCSSxxx',\n 'type' => 'ubicacion',\n ], \n\t ];\n \t$data = [\n\t\t\t\t\t\"id\"=> \"1\",\n\t\t\t\t\t\"button\"=>\"Grabar\",\n\t\t\t\t\t\"semestre\"=>env(\"SEMESTRE\"), \n\t\t\t\t\t\"cod_curso\"=> \"100048\",\n\t\t\t\t\t\"tipo\"=>$tipo,\n\t\t\t\t\t\"subtipo\"=>$tipo,\n\t\t\t\t\t\"pre_row\"=>0,\n\t\t\t\t\t\"semana\"=>1,\n\t\t\t\t\t\"editing\"=>false,\n\t\t\t\t\t\"data\"=> $datos \n\t\t\t\t];\n $request = [\n\t\t\t\"new\"=> false,\n\t\t\t\"data\"=> $data \t\n\t\t];\n\n\t\t//$response = $this->json('POST', '/user', ['name' => 'Sally']);\n $res = $this->json('POST', 'api/saveData', $request);\n\n\t\t$this->assertDatabaseHas($tipo, [\n\t\t\t\"cod_curso\"=> \"100048\",\n\t\t\t\"semestre\"=>env(\"SEMESTRE\"),\n\t\t\t\"orden\"=>\"1\",\n\t\t\t\"autor\" => \"Autor modificado\",\n\t\t\t\"titulo\" => \"Titulo modificado\",\n\t\t\t\"editorial\" => \"Editorial modificada\",\n\t\t\t\"year\" => \"2015\"\n\t\t]);\n }", "title": "" }, { "docid": "fb44cc529226c969b210127a2874bbca", "score": "0.6210805", "text": "public function edit(StudentsLessons $studentsLessons)\n {\n //\n }", "title": "" }, { "docid": "477b615afc1392c61d4b3dfd00658671", "score": "0.6210111", "text": "public function edit(Student $student,$id)\n {\n\n $edit_student = Student::findOrFail($id);\n $students = Student::simplePaginate(3);\n return view('student.create', compact('edit_student','students'));\n }", "title": "" }, { "docid": "ca74c629653c5afafe940985fe88cee2", "score": "0.62078184", "text": "public function edit(sambel $sambel)\n {\n //\n }", "title": "" }, { "docid": "f3b1a939a5bd2c1c0a57660cea429843", "score": "0.62004286", "text": "public function edit(Revisi $revisi)\n {\n //\n }", "title": "" }, { "docid": "8ba13acf78017323f7c4a315209708b3", "score": "0.6199349", "text": "public function edit(Banniere $banniere)\n {\n //\n }", "title": "" }, { "docid": "52d9a833325fa1a9289016c3ad6de754", "score": "0.6197106", "text": "public function edit(frequesias $frequesias)\n {\n //\n }", "title": "" }, { "docid": "2198a521ed2d5d032f023d7179925a29", "score": "0.6193712", "text": "public function editSAMAFULL($SAMAFULL_id)\n {\n $data['title'] = 'Directorio Activo';\n $data['titlemin'] = '<b>D</b>A';\n $data['subtitle'] = 'Editar SAMAFULL';\n $data['titleform'] = 'SAMAFULL';\n $data['SAMAFULL_id'] = $SAMAFULL_id;\n $data['SAMAFULL'] = $this->SAMAFULL->getDataById($SAMAFULL_id);\n $this->load->view('admin/SAMAFULL/edit-SAMAFULL', $data);\n }", "title": "" }, { "docid": "cb3ece9cbd0e5aa0a73bcbd77432bd5b", "score": "0.61883014", "text": "public function edit(Rahinan $rahinan)\n {\n //\n }", "title": "" }, { "docid": "cfec038c38485d9523ce188feb1c39a9", "score": "0.61841005", "text": "public function edit(Simpanan $simpanan)\n {\n //\n }", "title": "" }, { "docid": "c880c5360276ce79731b67453cbc2f1d", "score": "0.61825955", "text": "public function edit($id)\n {\n // $data = DB::table('student')\n // ->join('classroom', 'student.idClass', '=', 'classroom.idClass')\n // ->select('student.*', 'classroom.nameClass')\n // ->get();\n // return view(\"student.update\",['class' => $data]);\n\n $student = DB::table(\"student\")->where(\"idStudent\",\"$id\")->select(\"*\")->get();\n\n $class = DB::table('classroom')\n ->join('faculty', 'classroom.idFaculty', '=', 'faculty.idFaculty')\n ->select('classroom.*', 'faculty.nameFaculty')\n ->get();\n // return $data;\n return view(\"student.update\",['student' => $student, 'class' => $class ]);\n }", "title": "" }, { "docid": "04bef589e3f29904ee80613d4a990344", "score": "0.61796653", "text": "public function edit(Student $student)\n {\n //\n return view('students.edit',[\"student\"=>$student]);\n\n }", "title": "" }, { "docid": "610f58d486443ed9348fc7febf0e2092", "score": "0.6178675", "text": "public function edit($id)\n {\n $this->authorize('create', Student::class);\n if(Gate::allows('student.delete', Student::class)){\n $student = Student::find($id);\n $users = User::all();\n return view('student.edit',compact(['student','users']));\n }else{\n return \"you are not addmin\";\n }\n }", "title": "" }, { "docid": "c21055892a8eae5c602212cfaf633566", "score": "0.61781955", "text": "public function edit(Esquema $esquema)\n {\n //\n }", "title": "" }, { "docid": "12b7a8c8fce634c164a53802705a98a7", "score": "0.6176537", "text": "public function edit($id)\n {\n $data['teachers'] = Teacher::all();\n $data['students'] = Student::select('id','student_name','student_age','student_gender','teacherId')\n ->where('id',$id)\n ->first();\n $data['edit'] = 1;\n return view('student/addedit_student',$data);\n }", "title": "" }, { "docid": "3b1f5b8ae91e69fc99ba232c8b5f3780", "score": "0.6175303", "text": "public function edit(usersvanhoms $usersvanhoms)\n {\n //\n }", "title": "" } ]
09045e2fff00e0903f613550a8c536d9
//////////////////////////////////////////////////////////////////////////////// ///////////////////////////////Post Frontend functions////////////////////////// ////////////////////////////////////////////////////////////////////////////////
[ { "docid": "d496598d0abb09eee47634ea4fbdb547", "score": "0.0", "text": "public function published_posts($limit){\n\t\t$res = $this->where_query(\"posts\",\"status\",\"=\",\"Published\",\"\",\"\",\"\",\"\",\"id\",\"DESC\",$limit);\n\t\treturn $res;\n\t}", "title": "" } ]
[ { "docid": "02a181c060bbff94b7f4a29fcfd5f8c5", "score": "0.74376726", "text": "protected function _postAction()\n {\n }", "title": "" }, { "docid": "1f20e7c9afabce2dc03c85afb1baf61b", "score": "0.7415251", "text": "public function _post() { }", "title": "" }, { "docid": "720d8c849945cbc2ad55dfc412be92fa", "score": "0.7177539", "text": "public function post()\n\t {\n\t \t\n\t }", "title": "" }, { "docid": "bea9a253cbc27767ae5355a220d27375", "score": "0.7021288", "text": "public function clinic_post(){\n\t\t\n\t}", "title": "" }, { "docid": "be3ca8a7cd41af98bcf39ad7c36b6b07", "score": "0.6983063", "text": "public function postAction() {\n\n\t}", "title": "" }, { "docid": "fe9326678e7f5055c290e3989e3ee337", "score": "0.6950777", "text": "public function secretary_post(){\n\t\t\n\t}", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.69450915", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.69450915", "text": "public function post();", "title": "" }, { "docid": "ea238b04e5323fc60d17eb7157e80939", "score": "0.67111504", "text": "private function handle_post() {\n\t\t$form_id = $this->CI->input->post('form_id');\n\t\t$this->replacement_data = $this->CI->input->translate_prefix($form_id);\n\t\t$this->translated_data = $this->replacement_data;\n\n\t\tswitch ($form_id) {\n\t\t\tcase 'upload_file_form':\n\t\t\t\t$this->upload_file();\n\t\t\t\tif(!$this->CI->message->has_error()) {\n\t\t\t\t\tredirect('/');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'download_form':\n\t\t\t\t$this->download();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "e921e8d21fbbefc9cfd321eaad90578e", "score": "0.6703187", "text": "private function processPostBack()\n\t{\n\t\ttry\n\t\t{\n\t\t\t# Create an array of possible indexes. These are forms that can send the user to get an institution.\n\t\t\t$indexes=array(\n\t\t\t\t'post'\n\t\t\t);\n\t\t\t# Set the resource value.\n\t\t\t$resource='post';\n\t\t\t$this->processBack($resource, $indexes);\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "c4ec816daeff9c5086062768814a1794", "score": "0.67010057", "text": "public function post() \n {\n }", "title": "" }, { "docid": "c97331ca08c4b23f8931f11ad0867e23", "score": "0.66954666", "text": "public function post()\n {\n }", "title": "" }, { "docid": "1876724edb03fd8852dfd043046c92eb", "score": "0.6664552", "text": "public function postDispatch();", "title": "" }, { "docid": "9a0114589977af3049b65ff776ba1d74", "score": "0.65934634", "text": "public function postDispatch()\n {\n }", "title": "" }, { "docid": "c881c4704ceed006a951d33582d463cf", "score": "0.6580428", "text": "public function postulateAction()\n {\n\n }", "title": "" }, { "docid": "9ced63fa255d8f119374bf5f6cdffda8", "score": "0.6559608", "text": "public function postDispatch()\n {\n\n }", "title": "" }, { "docid": "d9a13ff15659d1122f80403fb798711a", "score": "0.6527056", "text": "public function postDispatch() {\n\n }", "title": "" }, { "docid": "5466af093616c860cbb72620388e0a00", "score": "0.64517826", "text": "abstract public function postProcess();", "title": "" }, { "docid": "8e92dce5755bd0f654518793bf4e61f2", "score": "0.6414139", "text": "public function postProcess()\n\t{\n }", "title": "" }, { "docid": "ef27f494f1619e46fdacbd73dda937ec", "score": "0.6400566", "text": "public function patient_post(){\n\t\t\n\t}", "title": "" }, { "docid": "5862d5727986a1b4a392f90e4c25a798", "score": "0.63870025", "text": "public function collectPostData()\n\t{\n\t\tthrow new NotImplementedException(\"\\\"\".__METHOD__.\"\\\" not implemented.\");\n\t}", "title": "" }, { "docid": "a666d4426a8766a604488414ff3e9d7f", "score": "0.632654", "text": "abstract public function postRequest();", "title": "" }, { "docid": "5985974fa9bcc9ac7397162e3c2e27e3", "score": "0.63184994", "text": "function handle_post($indata) {\n// showDebug('form_class POST:');\n// showArray($indata); \n return;\n }", "title": "" }, { "docid": "39010123b79b7f3aa951b10633d33868", "score": "0.62664163", "text": "abstract protected function _submit( \\Hotlink\\Framework\\Model\\Api\\Request $request );", "title": "" }, { "docid": "3869ee8710680e6b91a815dd3fc4a94a", "score": "0.62346154", "text": "public function ng_deal_post(){\r\n if(empty($_SESSION['USER_ID']))exit(C('SITE_LANG.LOGIN_ALERT'));//check login\r\n $visible = I('post.visible');\r\n $title = I('post.title');\r\n $tag = I('post.tag');\r\n $content = I('post.content','','');\r\n $type = I('post.type');\r\n switch ($type) {\r\n case 'piece':\r\n A('Piece')->ng_piece_post($tag,$content,$visible);\r\n break;\r\n case 'essay':\r\n $post_piece = I('post.post_piece');\r\n A('Essay')->ng_essay_post($title,$tag,$content,$visible,$post_piece);\r\n break;\r\n case 'diary':\r\n A('Diary')->ng_diary_post($title,$tag,$content,$visible);\r\n break;\r\n default:\r\n $this->ajaxReturn(array('error'=>1,'msg'=>C('SITE_LANG.REQUEST_FAILED')),'json');\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "df2611a425f101eb887300ec90e7f40d", "score": "0.6222359", "text": "public function postSync()\n {\n \n }", "title": "" }, { "docid": "405ca7cc8af13a795c1da1e3163f5be0", "score": "0.62188107", "text": "protected function _postUpdate()\n {\n }", "title": "" }, { "docid": "9834d676e3c0bb056c72690293bea2a0", "score": "0.62086076", "text": "public function index_post() {\n $data = clean_input( $this->post() );\n\n if ( isset($data['content']) && isset($data['origin_language']) && isset($data['target_language']) ) {\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n $timestamp = date(\"Y-m-d H:i:s\");\n \n $content = $data['content'];\n $origin_language = strtolower( $data['origin_language'] );\n $target_language = strtolower( $data['target_language'] );\n\n if ( $this->verify_support($origin_language) && $this->verify_support($target_language) ) {\n echo json_encode(\n array(\n 'status' => 'success',\n 'message' => 'Price estimate generated successfully',\n 'estimate' => $this->pricing->calculate_estimate($content, $origin_language, $target_language)\n )\n );\n } else {\n echo json_encode( \n array(\n 'status' => 'fail',\n 'message' => 'Unsupported language has been input'\n )\n );\n }\n } else {\n echo json_encode( \n array(\n 'status' => 'fail',\n 'message' => 'Params are missing'\n )\n );\n }\n\n return;\n }", "title": "" }, { "docid": "7566dbb30fac09c5bc240db7e066c393", "score": "0.6199692", "text": "public function postAction($request) {\n\t\tbreak;\n\t}", "title": "" }, { "docid": "8350ed581930de13e395c736cc819067", "score": "0.6189831", "text": "protected function _postRender()\n {\n }", "title": "" }, { "docid": "a540c83a6852112615a1264e85aa2e33", "score": "0.6182379", "text": "private function _handle_post()\n {\n // Get entity manager\n $em = $this->getServiceLocator()->get('entity_manager');\n $mailer_service = $this->getServiceLocator()->get('mailer');\n\n $task = $_POST['task'];\n unset($_POST['task']);\n\n // Handle all the different tasks of post requests\n switch ($task)\n {\n case 'save_campaign':\n\n $data = array_merge($_POST, $_GET);\n\n $campaign = $mailer_service->saveCampaign($data);\n\n $em->flush();\n\n // Redirect user to the campaign\n $this->redirect()->toUrl('/admin/mailer/campaign?id=' . $campaign->getId());\n break;\n\n case 'async_remove_email_from_campaign':\n\n $email_id = $_POST['email_id'];\n $email = $em->getReference('Library\\Model\\Mail\\Email', $email_id);\n\n $mailer_service->removeEmailCampaign($email);\n $em->flush();\n return new JsonModel(['error' => false]);\n break;\n\n case 'save_email':\n\n $data = array_merge($_POST, $_GET);\n\n $email = $mailer_service->saveEmail($data);\n\n $em->flush();\n\n // Redirect user to the campaign\n $this->redirect()->toUrl('/admin/mailer/email?id=' . $email->getId());\n break;\n\n case 'test_email':\n\n $email_id = $_POST['email_id'];\n $email = $em->getReference('Library\\Model\\Mail\\Email', $email_id);\n\n $mailer_service->sendTestEmail($email);\n return new JsonModel(['error' => false]);\n break;\n\n case 'launch_campaign':\n\n $data = array_merge($_POST, $_GET);\n $campaign = $em->getReference('Library\\Model\\Mail\\Campaign', $data['campaign_id']);\n $mailer_service->scheduleCampaignForLaunch($campaign);\n $em->flush();\n\n return new JsonModel(['error' => false]);\n break;\n\n case 'unlaunch_campaign':\n\n $data = array_merge($_POST, $_GET);\n $campaign = $em->getReference('Library\\Model\\Mail\\Campaign', $data['campaign_id']);\n $mailer_service->unlaunchCampaign($campaign);\n $em->flush();\n\n return new JsonModel(['error' => false]);\n break;\n }\n\n return null;\n }", "title": "" }, { "docid": "ed6bba1d5cf6397d98f55099caca5632", "score": "0.6164097", "text": "public function _send_post()\n {\n\n \t//$auth = $this->IsAuth();\n\n \t$id_user = 32;\n\n\n \n\n}", "title": "" }, { "docid": "dfcdb4ae682186402017c590aec44ef4", "score": "0.614763", "text": "public function postRequestHandler() {\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n if(isset($_POST[\"ext\"])) {\n $this->postUploadFile();\n } else if (isset($_POST[\"sheetid\"])) {\n $this->readStoredFile();\n }\n }\n }", "title": "" }, { "docid": "4063fbaf4b496a589d858856e61c35ba", "score": "0.61417323", "text": "public function postProcess()\n {\n return;\n }", "title": "" }, { "docid": "e191d94751156e8b8e11a18c6ea83389", "score": "0.61400735", "text": "public function postUpdate()\n {\n }", "title": "" }, { "docid": "8ea0b508e08aa151dae9b2daba5ca85d", "score": "0.6135441", "text": "protected function doSchemeSpecificPostProcessing()\n\t{\n\t}", "title": "" }, { "docid": "49027cfb34c58cce6d773249983884a0", "score": "0.61342525", "text": "function OnPostContent()\n\t\t{\t\t\t\n\t\t}", "title": "" }, { "docid": "4d83dacd5eec88228a3ef831008a59c1", "score": "0.61272454", "text": "public function postTrip()\n\t{\n\t}", "title": "" }, { "docid": "db4056e1da5e7ca4b6764fbeb1bde4be", "score": "0.6119468", "text": "function process_post_submission(){\n// add new page or discussion\n if(isset($_POST['add_new_post'])){\n // Process all post details and save\n if(isset($_POST['page_name'])){\n $page_name = trim(sanitize($_POST['page_name']));\n $page_name = str_ireplace('%26lt%3Bp%26gt%3B','',$page_name);\n }\n if(isset($_POST['page_type'])){\n $page_type = trim(sanitize($_POST['page_type']));\n }\n if(isset($_POST['category'])){\n $category = trim(sanitize($_POST['category']));\n }\n if(isset($_POST['child_page_number'])){\n $child_page_number = trim(sanitize($_POST['child_page_number']));\n } else { $child_page_number = '5';}\n if(isset($_POST['show_in_streams'])){\n $show_in_streams = trim(sanitize($_POST['show_in_streams']));\n } else { $show_in_streams = 'yes';}\n if(isset($_POST['enrollment_fee'])){\n $enrollment_fee = sanitize($_POST['enrollment_fee']);\n } else { $enrollment_fee = '0';}\n\n if(isset($_POST['content'])){\n $content = trim(sanitize($_POST['content']));\n if(empty($page_name)){\n //First check for presence of image title\n if(!empty($_POST['image_title'])){\n $page_name = urlencode(str_ireplace(' ','-',trim(sanitize($_POST['image_title']))));\n }else {\n if(strlen($content) > 30){\n $show_dots = '...';\n }\n $page_name = urlencode(str_ireplace(' ','-',substr($content,0,50))).$show_dots;\n }\n }\n\n // account for parent_ids for company posts and child pages\n if(isset($_POST['tid'])){\n $parent_id = sanitize($_POST['tid']);\n }\n if(isset($_GET['tid'])){\n $parent_id = sanitize($_GET['tid']);\n } else {\n $parent_id ='0';\n }\n if(isset($_POST['show_author'])){\n $show_author = sanitize($_POST['show_author']);\n } else{ $show_author = 'yes';}\n\n // other neccessary variables for insert\n $author = $_SESSION['username'];\n $editor = $_SESSION['username'];\n $now = date('c');\n\n\n // Insert to db\n $q = query_db(\"INSERT INTO `page`(`id`, `page_name`, `parent_id`, `child_page_number`, `page_type`, `visible`,`content`, `created`, `last_updated`, `author`, `editor`, `allow_comments`,`path`,`show_author`,`show_in_streams`,`enrollment_fee`)\n VALUES ('0','{$page_name}','{$parent_id}','{$child_page_number}','{$page_type}','1','{$content}','{$now}','{$now}','{$author}','{$editor}','yes','{$path}','{$show_author}','{$show_in_streams}','{$enrollment_fee}')\",\n \"Error saving post \");\n\n if($q){\n // Check for hashtags in post and process them\n $_SESSION['last_post_insert_id'] = mysqli_insert_id($GLOBALS['___mysqli_ston']);\n $last_insert_id = $_SESSION['last_post_insert_id'];\n $value = query_db(\"SELECT id,page_name,content FROM page WHERE id='{$last_insert_id}'\",\n \"Could not refetch content in process post submission \");\n $_SESSION['page_id'] = $value['result'][0]['id'];\n $_SESSION['page_name'] = $value['result'][0]['page_name'];\n $content = $value['result'][0]['content'];\n $dest_url = BASE_PATH.'?page_name='.str_ireplace('#','',$page_name).'&tid='.$_SESSION['last_post_insert_id'];\n if(addon_is_active('hashtags')){\n process_hashtags($string=$content, $path='');\n unset($_SESSION['last_post_insert_id']);\n increment_user_activity_count_in('posts_created');\n }\n }\n }\n\n if(isset($_FILES['media_field'])){\n upload_image();\n }\n\n // Record actvity\n\n activity_record(\n $parent_id = $_SESSION['last_post_insert_id'],\n $actor=$author,\n $action=\" created the {$page_type}\",\n $subject_name = $page_name,\n $actor_path = BASE_PATH.'user/?user='.$author,\n $subject_path= BASE_PATH.'?page_name=' .$page_name.'&tid='.$_SESSION['last_post_insert_id'],\n $date=$now,\n $parent= $page_type\n );\n\n //redirect when finished\n unset($_POST);\n if(isset($ref_url)){\n redirect_to($ref_url);\n } else { redirect_to($_SESSION['current_url']); }\n }\n}", "title": "" }, { "docid": "78eb39644291e756bc7bef144df5cccb", "score": "0.6105346", "text": "function post(){\r\n $chapterManager=new jeanForteroche\\Model\\ChapterManager;\r\n $commentsManager=new jeanForteroche\\Model\\CommentsManager;\r\n $post=$chapterManager->getChapter();\r\n $len=$chapterManager->len();\r\n $comments=$commentsManager->getComments($post['id_chapter']);\r\nrequire('view/frontend/frontpage.php');\r\n}", "title": "" }, { "docid": "4d051aefc18529a3bb5379acd127c558", "score": "0.6093637", "text": "static function do_post(&$body) {\n http_response_code(405);\n }", "title": "" }, { "docid": "e5a87be3ffd9bc848b38f3e07cee05a6", "score": "0.6084598", "text": "public function get_postback($data) {}", "title": "" }, { "docid": "3f672f29edacac57b2909af0927d8357", "score": "0.607723", "text": "public function postTrip()\r\n {\r\n }", "title": "" }, { "docid": "a490bbe63c8e338092746ca74395c38d", "score": "0.60752714", "text": "public function index_post() {\r\n $headerData = $this->input->request_headers();\r\n $responseData = $this->common->authCheck($headerData);\r\n if (empty($responseData['error'])) {\r\n $input = $this->post();\r\n $response = $this->mOffer->insertData($input);\r\n $this->response($response, REST_Controller::HTTP_OK);\r\n } else {\r\n $this->response($responseData, REST_Controller::HTTP_UNAUTHORIZED);\r\n }\r\n }", "title": "" }, { "docid": "7922a1f63f007e4d4c0617c0edc4ee0f", "score": "0.6074172", "text": "public function postAdd()\n {\n\n }", "title": "" }, { "docid": "e08fa5dace5cfebbdb9edbaf02cd087a", "score": "0.60687363", "text": "public function getPostOperations();", "title": "" }, { "docid": "18dad598a7bc4a5a27b0dd50b7327136", "score": "0.6039371", "text": "protected function preDispatch() {}", "title": "" }, { "docid": "484dfdbefe260237957a88359d4eef50", "score": "0.60359585", "text": "public function PostSend(){}", "title": "" }, { "docid": "c00aea8019b468e843040b4ce3f7fa8c", "score": "0.6031781", "text": "public function postSend()\n\t{}", "title": "" }, { "docid": "6f7da86e0662270bc4abd744abdf7a92", "score": "0.6028081", "text": "private function processPostRequest() {\n //read input\n $json = file_get_contents('php://input');\n $data = json_decode($json, true);\n $data['content'] = nl2br($data['content']);\n //validate content of data\n// $data['title'] = 'new note';\n// $data['content'] = 'some content';\n// $data['category'] = 'work';\n// \n $result = $this->note->addNote($data);\n if ($result > 0 ) {\n $code = '200'; //sucessfuly added note\n $this->data['msg'] = 'Successfully add a note';\n } else {\n $code = '400';\n $this->data['error'] = 'Cannot add a note';\n }\n $this->sendJsonResponse($this->data, $code);\n }", "title": "" }, { "docid": "a1b0c299ef5489bffcf8be56ef14d70e", "score": "0.6013259", "text": "protected function _postDelete()\n {\n }", "title": "" }, { "docid": "0e2bf6b1f4fafb6382b68b25ef04a31c", "score": "0.60041606", "text": "protected function postExecute() {}", "title": "" }, { "docid": "a96528c54be690fdb9487e25497147d3", "score": "0.60040385", "text": "private function handlePost()\n {\n $session = [\n 'commandid' => $this->model->commandid,\n 'additional' => $this->model->additional,\n ];\n $error = '';\n\n switch ($_POST['submit']) {\n case 'Upload':\n $error = $this->validateFile();\n\n if ($error == '') {\n $emails = $this->loadUsersFromFile();\n }\n break;\n case 'Process':\n $session['emails'] = $this->model->emails;\n\n if ($this->model->emails == '') {\n $error = $this->i18n->get('emails not entered');\n break;\n }\n $emails = $this->extractEmailAddresses(explode(\"\\n\", $this->model->emails));\n\n if (count($emails) === 0) {\n $error = $this->i18n->get('no valid email addresses entered');\n }\n break;\n case 'Match':\n $session['pattern'] = $this->model->pattern;\n\n if ($this->model->pattern == '') {\n $error = $this->i18n->get('error_match_not_entered');\n break;\n }\n $emails = $this->dao->matchUserPattern($this->model->pattern);\n\n if (count($emails) == 0) {\n $error = $this->i18n->get('error_no_match', $this->model->pattern);\n break;\n }\n break;\n default:\n $error = 'unrecognised submit ' . $_POST['submit'];\n }\n\n if ($error === '') {\n if ($this->model->commandid == 0) {\n $error = $this->i18n->get('error_action_not_selected');\n } else {\n try {\n $command = $this->factory->createCommand($this->model->commandid, $this->model->additional);\n $command->validate();\n $acceptedEmails = $this->acceptEmails($command, $emails);\n\n if (count($acceptedEmails) > 0) {\n $session['acceptedEmails'] = $acceptedEmails;\n\n return [new PageURL(null, ['action' => 'displayUsers']), $session];\n }\n $error = $this->i18n->get('error_no_acceptable');\n } catch (\\Exception $e) {\n $error = $e->getMessage();\n }\n }\n }\n $session['error'] = $error;\n\n return [new PageURL(), $session];\n }", "title": "" }, { "docid": "6bb5423fe4b93ee6b283b3774184bc15", "score": "0.5997371", "text": "private function processPOST() {\r\n\r\n /*\r\n * Can't post file on /administration\r\n */\r\n if (!isset($this->segments[0])) {\r\n throw new Exception(($this->context->debug ? __METHOD__ . ' - ' : '') . 'Not Found', 404);\r\n }\r\n /*\r\n * Switch on url segments\r\n */\r\n else {\r\n switch ($this->segments[0]) {\r\n case 'users':\r\n return $this->processPostUsers();\r\n case 'collections':\r\n return $this->processPostCollections();\r\n default:\r\n throw new Exception(($this->context->debug ? __METHOD__ . ' - ' : '') . 'Not Found', 404);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6f7cc11ab80d37b3a45bed5f93ed13e0", "score": "0.59717387", "text": "public function Handler() {\n\n if(isset($_POST['doAdd'])) {\n\n $this->guestbookModel->Add(strip_tags($_POST['newEntry']));\n \n }\n \n elseif(isset($_POST['doClear'])) {\n \n $this->guestbookModel->DeleteAll();\n \n } \n \n elseif(isset($_POST['doCreate'])) {\n \n $this->guestbookModel->Init();\n \n } \n \n $this->RedirectTo($this->request->CreateUrl($this->request->controller));\n }", "title": "" }, { "docid": "f1711a9cf8cfdb8ee0158d3540c40600", "score": "0.5970587", "text": "protected abstract function providePostData(): array;", "title": "" }, { "docid": "fabf59b167ca179a6e53c5d21f2eb219", "score": "0.5947288", "text": "public function postAction()\n {\n if ($this->_isAdmin){\n \n // Work out the type of action they want to perform\n switch($_POST['operation']){\n case 'update':\n $data = $this->_templatesModel->updateTemplate(unserialize(base64_decode($_POST['data'])), $_POST['argOne']);\n break;\n case 'add':\n $data = $this->_templatesModel->addTemplate(unserialize(base64_decode($_POST['data'])));\n break;\n case 'remove':\n $data = $this->_templatesModel->removeTemplate(unserialize(base64_decode($_POST['data'])));\n break;\n default:\n $data = 'Operation not found';\n break;\n }\n \n $this->returnPostResult($data);\n \n }else{\n $this->returnNoAuth();\n }\n\n\n }", "title": "" }, { "docid": "1cb229328ee00b1a26eaa16f1b3acdae", "score": "0.5940602", "text": "public function post() {\n $this->varHandler( func_get_args(), 'post', 'POST' );\n }", "title": "" }, { "docid": "b28d98edf49eed237d3a5d435462bc6a", "score": "0.59315795", "text": "public function loadPostAction()\n {\n }", "title": "" }, { "docid": "47891d036e50ec142e8e59bcdcc87bc4", "score": "0.5930134", "text": "public function main() {\n if(count($_POST)){\n if(isset($_POST['get_submit'])){ \n return $this->getRequest();\n }\n elseif(isset($_POST['post_submit'])){\n return $this->postRequest();\n }\n }\n }", "title": "" }, { "docid": "f9e552b582020510dfc0a647bb6b4e0f", "score": "0.59267926", "text": "public function processRequest() {\n $this->getSmarty()->assign(\"post\", $this->getDataLayer()->getPost((int) filter_input(INPUT_GET, POST_ID, FILTER_SANITIZE_NUMBER_INT)));\n\n if (SecurityLayer::checkSession()) {\n\n $this->getSmarty()->assign(\"logged\", true);\n }\n\n // servono all'outline\n $this->getSmarty()->assign(\"menu\", \"front/Menu.tpl\");\n\n $this->getSmarty()->assign(\"logo\", \"front/Logo.tpl\");\n $this->getSmarty()->assign(\"contentTemplate\", \"front/PostPage.tpl\"); // diciamo quale template deve includere\n\n $this->getSmarty()->assign(\"footer\", \"front/Footer.tpl\");\n\n $this->getSmarty()->display(\"front/Outline.tpl\"); // mostriamo il template\n }", "title": "" }, { "docid": "01a97378c89265509359550518ee16dd", "score": "0.5924694", "text": "public function postBackAction()\n {\n if (!$this->_validatePostfinanceData()) {\n $this->getResponse()->setHeader(\"Status\", \"404 Not Found\");\n return false;\n }\n\n $this->_postfinanceProcess();\n }", "title": "" }, { "docid": "6bae2fe670081d710e6e25a9621c76c1", "score": "0.59180945", "text": "abstract public function postProcessAjax();", "title": "" }, { "docid": "0c7071e60ef94e392eefbda3d10c8ca7", "score": "0.5917085", "text": "public function secretaryAssign_post(){\n\t\t\n\t}", "title": "" }, { "docid": "aa18495ac8a7f010dbc3ef5c93f5759f", "score": "0.5914998", "text": "function onAction()\n {\n global $application;\n $request = $application->getInstance('Request');\n\n $SessionPost = array();\n if(modApiFunc('Session', 'is_Set', 'SessionPost'))\n {\n _fatal(array( \"CODE\" => \"CORE_050\"), __CLASS__, __FUNCTION__);\n }\n\n $SessionPost = $_POST;\n $this->initData($SessionPost);\n\n switch($request->getValueByKey('FormSubmitValue'))\n {\n case \"UploadImages\" :\n {\n $this->uploadImages($SessionPost);\n break;\n }\n\n case \"DeleteSmallImage\" :\n {\n $image = $SessionPost['ViewState']['SmallImage'];\n // if it was a temporary file, delete it from the general catalog.\n if (_ml_strpos(basename($image), 'tmp') === 0)\n {\n $images_dir = $application->getAppIni('PATH_IMAGES_DIR');\n @unlink($images_dir . basename($image));\n }\n // delete it from the user interface\n $SessionPost[\"ViewState\"][\"SmallImage\"] = \"\";\n break;\n }\n\n case \"DeleteLargeImage\" :\n {\n $image = $SessionPost['ViewState']['LargeImage'];\n // if it was a temporary file, delete it from the general catalog.\n if (_ml_strpos(basename($image), 'tmp') === 0)\n {\n $images_dir = $application->getAppIni('PATH_IMAGES_DIR');\n @unlink($images_dir . basename($image));\n }\n // delete it from the user interface\n $SessionPost[\"ViewState\"][\"LargeImage\"] = \"\";\n break;\n }\n\n case \"UploadImagesAndSave\" :\n {\n $nErrors = 0;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"] = array();\n $this->uploadImages($SessionPost);\n\n loadCoreFile('html_form.php');\n $HtmlForm1 = new HtmlForm();\n\n $error_message_text = \"\";\n\n if(!$this->isValidCatName($SessionPost[\"Subcategory\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"Subcategory\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_005\"));\n //\"ERR_AZ_CAT_ADDCAT_001\";\n// $SessionPost[\"Subcategory\"] .= \"<ERROR: Invalid input. See error list.>\";\n }\n\n if(!$this->isValidCatStatus($SessionPost[\"CategoryStatus\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"CategoryStatus\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_008\"));\n $SessionPost[\"CategoryStatus\"] = CATEGORY_STATUS_ONLINE;\n }\n\n if(!$this->isValidCatShowProductsRecursivelyStatus($SessionPost[\"CategoryShowProductsRecursivelyStatus\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"CategoryShowProductsRecursivelyStatus\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_009\"));\n $SessionPost[\"CategoryShowProductsRecursivelyStatus\"] = CATEGORY_DONOTSHOW_PRODUCTS_RECURSIVELY;\n }\n\n if(!$this->isValidImageDescription($SessionPost[\"ImageDescription\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"ImageDescription\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_006\"));\n //\"ERR_AZ_CAT_ADDCAT_001\";\n// $SessionPost[\"Subcategory\"] .= \"<ERROR: Invalid input. See error list.>\";\n }\n\n if(!$this->isValidPageTitle($SessionPost[\"PageTitle\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][] =\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"PageTitle\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_007\"));\n// $SessionPost[\"ViewState\"][\"ErrorsArray\"][] = \"ERR_AZ_CAT_ADDCAT_002\";\n// $SessionPost[\"PageTitle\"] .= \"<ERROR: Invalid input. See error list.>\";\n }\n\n if(!$this->isValidMetaField($SessionPost[\"MetaKeywords\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"MetaKeywords\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_003\"));\n //\"ERR_AZ_CAT_ADDCAT_003\";\n }\n\n if(!$this->isValidMetaField($SessionPost[\"MetaDescription\"], $error_message_text))\n {\n $nErrors++;\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][] =\n $SessionPost[\"ViewState\"][\"ErrorsArray\"][\"MetaDescription\"] = new ActionMessage(array(\"ERR_AZ_CAT_ADDCAT_004\"));\n //\"ERR_AZ_CAT_ADDCAT_004\";\n }\n\n $nErrors = sizeof($SessionPost[\"ViewState\"][\"ErrorsArray\"]);\n\n if($nErrors == 0)\n {\n unset($SessionPost[\"ViewState\"][\"ErrorsArray\"]);\n $this->saveDataToDB($SessionPost);\n $SessionPost[\"ViewState\"][\"hasCloseScript\"] = \"true\";\n }\n break;\n }\n default : _fatal(array( \"CODE\" => \"CORE_051\"), __CLASS__, __FUNCTION__, $request->getValueByKey('FormSubmitValue'));\n }\n\n modApiFunc('Session', 'set', 'SessionPost', $SessionPost);\n // get view name by action name.\n $this->redirect();\n }", "title": "" }, { "docid": "a3fadbab1c2d63c8220235e4ba5ca06e", "score": "0.5908719", "text": "public function Handler() {\n if(isset($_POST['doAdd'])) {\n $this->guestbookModel->Add(strip_tags($_POST['newEntry']));\n }\n elseif(isset($_POST['doClear'])) {\n $this->guestbookModel->DeleteAll();\n }\n elseif(isset($_POST['doCreate'])) {\n $this->guestbookModel->Init();\n } \n $this->RedirectTo($this->request->CreateUrl($this->request->controller));\n }", "title": "" }, { "docid": "1c9262b4ee5995e0e8225cfcc3b16dd1", "score": "0.5907827", "text": "function move_service_end_point() {\n //The following line will be needed if this controller is ever used for non administrators:\n //checkPortalIsNotReadOnlyOrUserIsAdmin($user);\n\n if($_POST) {\n // If we receive a POST request it's for a service movement\n submit();\n } else {\n // If there is no post data, draw the select old site form\n drawSelectOldSite();\n }\n}", "title": "" }, { "docid": "39a337ebe505486a886c7562527d7243", "score": "0.58930355", "text": "public function getPage_post()\r\n {\r\n /* Validation section */\r\n $this->form_validation->set_rules('PageGUID', 'PageGUID', 'trim');\r\n $this->form_validation->set_rules('Status', 'Status', 'trim|callback_validateStatus');\r\n\r\n $this->form_validation->validation($this); /* Run validation */ \r\n /* Validation - ends */\r\n\r\n $PageData = $this->Page_model->getPage('PageGUID,PageID,Title,Content',array(\"PageGUID\" => @$this->Post['PageGUID'],'StatusID' => @$this->StatusID),TRUE,0);\r\n if($PageData){\r\n if (!empty($PageData['Content'])) {\r\n $PageData['Content'] = htmlentities($PageData['Content']);\r\n }\r\n $this->Return['Data'] = $PageData;\r\n } \r\n }", "title": "" }, { "docid": "3e62802ab1bf9334d00098d7f031662e", "score": "0.58827186", "text": "protected function _postInsert()\n {\n }", "title": "" }, { "docid": "f4ed26bbaa8f70443a373b661fc83571", "score": "0.58802795", "text": "function process_page_request() {\n\t\tif ( isset($_POST['draftsforfriends_submit']) ) {\n\t\t\t$post_id = intval( $_POST['post_id'] );\n\t\t\t$expires = intval ( $_POST['expires'] );\n\t\t\t$measure = sanitize_key( $_POST['measure'] );\n\n\t\t\t$msg = $this->share_post( $post_id, $expires, $measure );\n\n\t\t} elseif ( isset($_POST['action']) && 'extend' == $_POST['action'] ) {\n\t\t\t$key = sanitize_text_field( $_POST['key'] );\n\t\t\t$expires = intval( $_POST['expires'] );\n\t\t\t$measure = sanitize_key( $_POST['measure'] );\n\n\t\t\t$msg = $this->extend_shared_post_expiration( $key, $expires, $measure );\n\n\t\t} elseif ( isset($_GET['action']) &&'delete' == $_GET['action']) {\n\t\t\t$key = sanitize_text_field( $_GET['key'] );\n\n\t\t\t$msg = $this->delete_shared_post( $key );\n\t\t}\n\n\t\t$drafts = $this->get_drafts();\n\t\t$page_name = sanitize_key( $_GET['page'] );\n\n\t\tinclude_once plugin_dir_path( dirname ( __FILE__ ) ). 'views/drafts-table.php';\n\t}", "title": "" }, { "docid": "ab77360836208f2dc08c532a7ba3a821", "score": "0.58780736", "text": "function submit() {\n require_once __DIR__.'/../../../../lib/Gocdb_Services/Factory.php';\n require_once __DIR__.'/../../../web_portal/components/Get_User_Principle.php';\n\n\n //Get the submitted data\n $movementrequest = getSEPMoveDataFromWeb();\n\n //If the new sep is not in the array of submitted data yet,\n //then we have come form the select old site page and want the move SEP page\n if(!array_key_exists('NewSite',$movementrequest)){\n //Run the submit old site and display the service_end_point_move view\n submitOldSite($movementrequest);\n }\n else {\n //Carry out the move with submitted data then show success view\n submitMoveSEP($movementrequest);\n }\n}", "title": "" }, { "docid": "6b38adaf22738ae32c6f61c040613c35", "score": "0.58530056", "text": "public function Handler() {\n\t//If $_Post['doAdd'] is is set, save the post to $this->Add and use\n\t//Strip_tags to sanitize the input\n\tif(isset($_POST['doAdd'])) {\n\t\t$this->guestbookModel->Add(strip_tags($_POST['newEntry']));\n\t}\n\t//If post['doClear'] is set, clear the guestbook\n\telseif(isset($_POST['doClear'])) {\n\t\t$this->guestbookModel->DeleteAll();\n\t}\n\t//If post['doCreate'] is set, create a new table \n\telseif(isset($_POST['doCreate'])) {\n\t\t$action = 'install';\n\t\t$this->guestbookModel->Manage($action);\n\t}\n\t//Redirect to index() method \n $this->RedirectTo($this->request->CreateUrl($this->request->controller));}", "title": "" }, { "docid": "967e38dbaab441e031fc0cda4801c7f8", "score": "0.5844487", "text": "public function postImportUrl()\n {\n\n }", "title": "" }, { "docid": "f35fb7f9d27af8b8fe5040eaff8457df", "score": "0.5841683", "text": "function handlePost()\n {\n $this->filterPostValues();\n \n if (!isset($_POST['_class'])) {\n // Nothing to do here\n return;\n }\n \n $class = new $_POST['_class']($this->options);\n \n if (isset($_POST['action']) && $_POST['action'] == 'delete') {\n $class->handleDelete($_POST);\n } else {\n $class->handlePost($_POST);\n }\n }", "title": "" }, { "docid": "f77633c2d8338228dcc4c601a94dd0af", "score": "0.5839292", "text": "public function callbackSubmit()\n {\n $answer = $this->post ?: new Post($this->di->get(\"db\"));\n $user = $this->di->get(\"authHelper\")->getLoggedInUser();\n $question = new Post($this->di->get(\"db\"));\n\n $answer->userId = $answer->userId ?: $user->id;\n $answer->type = \"answer\";\n $answer->parent = $this->questionId;\n $answer->title = $question->find(\"id\", $this->questionId)->title;\n $answer->content = $this->form->value(\"content\");\n $answer->save();\n\n $this->di->get(\"response\")->redirect(\"questions/{$this->questionId}\");\n }", "title": "" }, { "docid": "3e09cc2d54ecd931c8a37203382518ac", "score": "0.5838198", "text": "private function api_check_post()\n {\n \n\t\t\t\t\t\t\t\t\n $success = array(\n 'status' => \"Success\",\n \"msg\" => \"API is working fine on main server\"\n );\n $this->response($this->json($success), 200);\n }", "title": "" }, { "docid": "ec2d94cc35190e3f9851b0913477d6dc", "score": "0.5836575", "text": "function sGET_app_savepost(){\n\t\n\t$data = dot_prepare_data($_POST['data']);\n\n\t$my_post = array(\n\t\t'post_title' => wp_strip_all_tags( $data['postdata']['insertpost']['post_title'] ),\n\t\t'post_content' => $data['postdata']['insertpost']['post_content'],\n\t\t'post_status' => 'publish',\n\t\t'post_author' => 1\t\n\t); \n\t// Insert the post into the database\n\t$new_post = wp_insert_post( $my_post );\n\t$data['postdata']['insert_post_id'] = $new_post;\n\n\twp_send_json( dot_send_data($data,'app_object') );\n\n}", "title": "" }, { "docid": "18fa005670f15c991c4efaa503821bb6", "score": "0.5833534", "text": "public function postUp()\n {\n }", "title": "" }, { "docid": "68402ceb62f11a12004f6e2bf36a9d28", "score": "0.5825318", "text": "function createPost(){\n\t\t$this->_returnAjaxObj($this->_createPost($this->_getAjaxObj()));\n\t}", "title": "" }, { "docid": "4b85013f9ffe6cca2701182ea336730c", "score": "0.58230746", "text": "public function executeStep_submitted(sfWebRequest $request){}", "title": "" }, { "docid": "39b478f7d5f173ccc7789003f48e582f", "score": "0.5816592", "text": "public function Handler() {\n\t\tif (isset($_POST['doAdd'])) {\n\t\t\t$this -> guestbookModel -> Add(strip_tags($_POST['newEntry']));\n\t\t} elseif (isset($_POST['doClear'])) {\n\t\t\t$this -> guestbookModel -> DeleteAll();\n\t\t} elseif (isset($_POST['doCreate'])) {\n\t\t\t$this -> guestbookModel -> Init();\n\t\t}\n\t\t$this->RedirectTo($this->request->CreateUrl($this->request->controller));\n\t}", "title": "" }, { "docid": "8b420be1e8e9d49aeaa487c76fbb00d1", "score": "0.58040446", "text": "public function postAction()\n {\n $this->notAllowed();\n }", "title": "" }, { "docid": "0e746a79a560d5efcda138ab59c730d7", "score": "0.5800179", "text": "public function index_post() {\n $obj = [\n \"stat\" => -1\n ];\n \n //validate arg\n if (!isset($this->_post_args[\"sess_key\"]) || \n !isset($this->_post_args[\"file_meta\"])) {\n \n $obj[\"msg\"] = \"Missing arg(s).\";\n return $this->Json($obj);\n }\n \n $sess_key = $this->_post_args[\"sess_key\"];\n \n $file_meta = \n intval($this->_post_args[\"file_meta\"]) === 0 \n ? FALSE : TRUE;\n \n $file_md5 = NULL;\n if (isset($this->_post_args[\"file_md5\"])) {\n $file_md5 = $this->_post_args[\"file_md5\"];\n }\n \n $this->load->model('UploadTerminationModel');\n \n\t$obj_term = $this->UploadTerminationModel\n\t\t->terminate($sess_key, $file_meta, $file_md5);\n\n return $this->Json($obj_term);\n }", "title": "" }, { "docid": "804e8f8dfc2a6b302c0ee1771b87c15b", "score": "0.5791129", "text": "public function testCreateCardLoadUsingPost()\n {\n }", "title": "" }, { "docid": "51c11f2009fe77ab7c34a8ab6bf6fd3c", "score": "0.5789859", "text": "private function _handle_post()\n {\n $order_service = $this->getServiceLocator()->get('order');\n\n if ($this->getRequest()->isPost())\n {\n $data = $this->getRequest()->getPost();\n $task = $data['task'];\n unset($data['task']);\n\n // Handle different tasks that may be coming in\n switch ($task)\n {\n case 'save_order':\n\n $this->order = $order_service->save($data['order_info'], $this->order);\n EntityManagerSingleton::getInstance()->flush();\n return ['error' => false];\n break;\n\n case 'delete_order_lines':\n\n $order_service->deleteShopListElements($data['order_line_ids'], $this->order);\n\n EntityManagerSingleton::getInstance()->flush();\n return ['error' => false];\n break;\n\n case 'product_search':\n\n $em = EntityManagerSingleton::getInstance();\n $products = $em->getRepository('Library\\Model\\Product\\Product')->findByKeywords($_POST['value'], 0, 12);\n $image_root = Settings::get('image_path');\n\n $product_array = [];\n foreach ($products as $product)\n {\n // Get correct product photo\n if ($product->getDefaultImage() instanceof Image)\n $product_photo = $image_root . '/product_images/' . $product->getDefaultImage()->getUrl();\n else\n $product_photo = $image_root . '/layout_images/no_photo.jpg';\n\n $product_info = [\n 'id' => $product->getId(),\n 'label' => $product->getName(),\n 'base_price' => $product->getBasePrice(),\n 'discount_price' => $product->getDiscountPrice(),\n 'product_code' => $product->getProductCode(),\n 'img' => $product_photo,\n 'href' => $product->getPage()->getUrlHandle(),\n 'product_desc' => $product->getDescription(),\n 'description' => 'Product Code: ' . $product->getProductCode()\n ];\n\n // Add information on options\n $skus = $product->getSkus();\n $options = $em->getRepository('Library\\Model\\Product\\Option')->findByProduct($product->getId());\n\n // Get available values\n $option_value_map = [];\n\n if (count($options) > 0)\n {\n foreach ($options as $option)\n {\n if (!isset($option_value_map[$option->getId()]))\n {\n $option_value_map[$option->getId()] = [];\n }\n\n // Go through each sku and get the available values\n foreach ($skus as $sku)\n {\n $sku_option_option_values = $sku->getSkuOptionOptionValues()->toArray();\n if (count($sku_option_option_values) > 0)\n {\n foreach ($sku_option_option_values as $sku_option_option_value)\n {\n $sku_option = $sku_option_option_value->getOptionOptionValue()->getOption();\n $sku_option_value = $sku_option_option_value->getOptionOptionValue()->getOptionValue();\n\n // If there is a match, add this to the table\n if ($option->getId() == $sku_option->getId())\n {\n $option_value_map[$option->getId()]['name'] = $option->getName();\n $option_value_map[$option->getId()]['values'][$sku_option_value->getId()] = $sku_option_value->getName();\n }\n }\n }\n }\n }\n }\n\n $product_info['option_map'] = $option_value_map;\n $product_array[] = $product_info;\n }\n\n return ['products' => $product_array];\n break;\n\n case 'add_product':\n\n $em = EntityManagerSingleton::getInstance();\n $order_id = $_GET['id'] ?? null;\n\n // Locate the product\n list($order, $shop_list_element) = $order_service->addLineItem($order_id, $_POST['data']);\n\n $em->flush();\n\n // Create updated data to pass\n $updated_data = [\n 'status' => 'show',\n 'sub_total' => $order->getSubTotal(),\n 'tax' => $order->getTax(),\n 'shipping_cost' => $order->getShippingCost(),\n 'tracking_number' => $order->getTrackingNumber(),\n 'total_discount' => $order->getDiscountAmount(),\n 'store_credit' => $order->getStoreCredit(),\n 'total' => $order->getTotal(),\n 'total_weight' => $order->getTotalWeight(),\n 'date_shipped' => !empty($order->getShippingDate()) ? $order->getShippingDate()->format('m/d/Y') : ''\n ];\n\n // Get correct product photo\n $image_root = Settings::get('image_path');\n\n if ($shop_list_element->getImage() instanceof Image)\n $product_photo = $image_root . \"/product_images/\".$shop_list_element->getImage()->getUrl();\n else\n $product_photo = $image_root . '/layout_images/no_photo.jpg';\n\n // Get product information\n $product_data = [\n 'id' => $shop_list_element->getId(),\n 'number' => $shop_list_element->getNumber(),\n 'quantity' => $shop_list_element->getQuantity(),\n 'tax' => $shop_list_element->getTax(),\n 'price' => $shop_list_element->getPrice(),\n 'name' => $shop_list_element->getName(),\n 'weight' => $shop_list_element->getWeight(),\n 'image' => $product_photo,\n 'total' => $shop_list_element->getTotal(),\n 'attributes' => []\n ];\n\n $soovs = $shop_list_element->getSku()->getSkuOptionOptionValues();\n if (count($soovs) > 0)\n {\n foreach ($soovs as $soov)\n {\n $option_value_rel = $soov->getOptionOptionValue();\n $product_data['attributes'][] = [$option_value_rel->getOption()->getName(), $option_value_rel->getOptionValue()->getName()];\n }\n }\n\n return ['error' => false, 'order_data' => $updated_data, 'product_data' => $product_data];\n }\n }\n }", "title": "" }, { "docid": "5614751ea965e2ce0651f3a517440c10", "score": "0.57857484", "text": "public function postPreferences()\n {\n # code...\n }", "title": "" }, { "docid": "e5fe18f0835fef97ca255c7da4ae444f", "score": "0.5784546", "text": "public function process()\n\t{\n\t\t$value = $_POST->raw($this->input_name());\n\t\tif($value != 'all') {\n\t\t\t$value = json_decode($value);\n\t\t}\n\t\t$this->set_value($value, false);\n\t}", "title": "" }, { "docid": "5e5d79e64a0cfed21ff2232764eb9156", "score": "0.5779265", "text": "public function post()\n\t{\n\t\t// $this->plugin->setResponse($this->saveCategory());\n\t}", "title": "" }, { "docid": "769a0d9159070e90a5d07f7d8cfe430a", "score": "0.5775005", "text": "public function sendStep2_post()\n {\n\n \t//$auth = $this->IsAuth();\n\n \t$id_user = 32;\n\n\n \n\n}", "title": "" }, { "docid": "6bbb0702a5b6ba834a8492d281115963", "score": "0.5769906", "text": "function updatePost(){\n\t\t$this->_returnAjaxObj($this->_updatePost($this->_getAjaxObj()));\n\t}", "title": "" }, { "docid": "ef63e97d965e9976abe8e23e936d16e4", "score": "0.57698137", "text": "protected function httpPost(){\n $this->checkSettingsPagePermission();\n $data = $this->scrubbedPostData();\n $categoryObj = EventCategory::createOrGetExisting($data);\n $this->setResponseData($categoryObj);\n $this->setResponseCode(Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "7254f8ff95b31cd4d2d4ff8b7cc02ac3", "score": "0.5750767", "text": "function POSTListener() {\n if($this->reqController == NULL || $this->reqAction == NULL){\n\n /**\n * Asset Listener\n * \n * If we can directly access the controller\n * from the $_POST object we are dealing with\n * a form.\n */\n if(isset($_POST['controller'])) {\n if(!isset($_POST['action'])) {\n echo(json_encode(response(\"failure\", \"The specified controller or action has not been supplied.\")));\n exit;\n } else {\n $this->reqController = filter_var($_POST['controller'], FILTER_SANITIZE_STRING);\n $this->reqAction = filter_var($_POST['action'], FILTER_SANITIZE_STRING);\n $this->payload = $_POST; //How do I sanitize a file upload?...\n echo json_encode($this->process());\n }\n }\n\n // JSON POST Listener\n $json_str = file_get_contents('php://input');\n if(!empty($json_str)) {\n $this->validateJsonPost($json_str);\n } \n \n } else {\n // GET payload if not a POST Request\n $this->payload = $_GET;\n if(isset($this->reqController) || isset($this->reqAction)){\n echo json_encode($this->process());\n } else {\n return;\n }\n }\n }", "title": "" }, { "docid": "dbe97de1fb4f3da23ff75cb6d976de9a", "score": "0.5748702", "text": "function save_post() {\r\n\n\t}", "title": "" }, { "docid": "7b36a25c878e29fe6fffb1083598f5ac", "score": "0.5748589", "text": "function savePost($data) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f4ac784d7d9c8634e4ef69fc70fff71d", "score": "0.5743996", "text": "public function upload_postAction() {\n\t\t$ret = Common::upload('img', 'guidetype');\n\t\t$imgId = $this->getPost('imgId');\n\t\t$this->assign('code' , $ret['data']);\n\t\t$this->assign('msg' , $ret['msg']);\n\t\t$this->assign('data', $ret['data']);\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" }, { "docid": "a1f32ab5fc96a99e261eab1c2f69a834", "score": "0.5739632", "text": "public function postDispatch() {\n\t\t$this->view->tempoResposta = $this->_temporizador->MostraMensagemTempo ();\n\t}", "title": "" } ]
944b7895075963495445e26219723e8b
Resolve a JSON Reference for a Schema
[ { "docid": "d5d3b5a3d64ceebefa89dd002743fa78", "score": "0.6590854", "text": "protected function doResolve(Reference $reference)\n {\n $referencedSchema = $this->resolveSchema($reference, $reference->getCurrentSchema());\n\n if ($reference->hasFragment()) {\n $schema = $this->resolveJSONPointer($reference, $referencedSchema);\n } else {\n $schema = $referencedSchema;\n }\n\n if ($schema instanceof Reference) {\n return $this->resolve($schema, $referencedSchema);\n }\n\n return $schema;\n }", "title": "" } ]
[ { "docid": "f8fc8e09ba58016c8269b17cb997b42f", "score": "0.6669931", "text": "protected function resolveJSONPointer(Reference $reference, $schema)\n {\n $pointer = $reference->getFragment();\n\n if (empty($pointer)) {\n return $schema;\n }\n\n // Separate pointer into tokens\n $tokens = explode('/', $pointer);\n //\n array_shift($tokens);\n // Unescape token\n $tokens = array_map(function ($token) {\n $token = str_replace('~0', '/', $token);\n $token = str_replace('~1', '~', $token);\n\n return $token;\n }, $tokens);\n\n $propertyPath = implode(\".\", $tokens);\n $propertyAccessor = PropertyAccess::createPropertyAccessor();\n\n return $propertyAccessor->getValue($schema, $propertyPath);\n }", "title": "" }, { "docid": "6f222f805deda4ab8c9f4541ec9b36c1", "score": "0.6628587", "text": "public function get_item_schema() {\n\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/schema#',\n\t\t\t'title' => $this->get_object_type(),\n\t\t\t'type' => 'object',\n\t\t\t// Base properties for every referral.\n\t\t\t'properties' => array(\n\t\t\t\t'referral_id' => array(\n\t\t\t\t\t'description' => __( 'The unique referral ID.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t),\n\t\t\t\t'affiliate_id' => array(\n\t\t\t\t\t'description' => __( 'ID for the affiliate account associated with the referral.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t),\n\t\t\t\t'visit_id' => array(\n\t\t\t\t\t'description' => __( 'ID for the visit associated with the referral.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t),\n\t\t\t\t'rest_id' => array(\n\t\t\t\t\t'description' => __( 'REST ID (site:referral ID combination).', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'description' => __( 'Referral description.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'status' => array(\n\t\t\t\t\t'description' => __( 'The referral status.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'amount' => array(\n\t\t\t\t\t'description' => __( 'Referral amount.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'float',\n\t\t\t\t),\n\t\t\t\t'currency' => array(\n\t\t\t\t\t'description' => __( 'Currency for the referral amount.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'custom' => array(\n\t\t\t\t\t'description' => __( 'Custom referral data.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'context' => array(\n\t\t\t\t\t'description' => __( 'Context under which the referral was generated (usually the ontegration).', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'campaign' => array(\n\t\t\t\t\t'description' => __( 'Campaign associated with the referral.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'reference' => array(\n\t\t\t\t\t'description' => __( 'Referral reference (usually a link to a specific sale).', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'products' => array(\n\t\t\t\t\t'description' => __( 'Products associated with the referral.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'date' => array(\n\t\t\t\t\t'description' => __( 'The date the referral was generated.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t\t'parent_id' => array(\n\t\t\t\t\t'description' => __( 'The ID for the parent referral.', 'affiliate-wp' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "28fe7756c4a8a3d5f21e66f6d6171811", "score": "0.62465286", "text": "protected function resolveSchema(Reference $reference, $currentSchema)\n {\n if ($reference->isInCurrentDocument() && $reference->hasFragment()) {\n return $currentSchema;\n }\n\n if ($reference->isRelative() && !$currentSchema->getId()) {\n throw new UnsupportedException(sprintf(\"Reference is relative and no id found in current schema, cannot resolve reference %s\", $reference->getReference()));\n }\n\n // Build url\n $schemaUrl = sprintf('%s://%s:%s', $reference->getScheme() ?: 'http', $reference->getHost(), $reference->getPort() ?: '80');\n\n if ($reference->isRelative()) {\n $parsedUrl = parse_url($currentSchema->getId());\n $schemaUrl = sprintf('%s://%s:%s', $parsedUrl['scheme'] ?: 'http', $parsedUrl['host'], $parsedUrl['port'] ?: '80');\n }\n\n if ($reference->getPath()) {\n $schemaUrl = sprintf(\"%s/%s\", $schemaUrl, $reference->getPath());\n }\n\n if ($reference->getQuery()) {\n $schemaUrl = sprintf(\"%s?%s\", $schemaUrl, $reference->getQuery());\n }\n\n if (!isset($this->schemaCache[$schemaUrl])) {\n $schema = $this->serializer->deserialize($this->getJsonSchemaContent($schemaUrl), 'Joli\\Jane\\Model\\JsonSchema', 'json');\n\n $this->schemaCache[$schemaUrl] = $schema;\n }\n\n return $this->schemaCache[$schemaUrl];\n }", "title": "" }, { "docid": "14acd5a3d56fdb6de30a8eb645da3229", "score": "0.5912916", "text": "public function schema(): Schema\n {\n return $this->jsonApi()->route()->schema();\n }", "title": "" }, { "docid": "5dd2ed140fc3ccbd15df6bd71d5d46e0", "score": "0.571321", "text": "public function jsonSchema($schema) {\n return $this->withMeta([\n 'jsonSchema' => $schema,\n ]);\n }", "title": "" }, { "docid": "0638f033b4c2c76b2bff90adac9c2608", "score": "0.56333935", "text": "public function get_item_schema() {\n\t\t$rest_post_types = array_values( get_post_types( [ 'show_in_rest' => true ] ) );\n\n\t\t$schema = [\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'sst-post',\n\t\t\t'type' => 'object',\n\t\t\t// Base properties for every Post.\n\t\t\t'properties' => [\n\t\t\t\t'date' => [\n\t\t\t\t\t'description' => __( \"The date the object was published, in the site's timezone.\", 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'date-time',\n\t\t\t\t],\n\t\t\t\t'date_gmt' => [\n\t\t\t\t\t'description' => __( 'The date the object was published, as GMT.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'date-time',\n\t\t\t\t],\n\t\t\t\t'modified' => [\n\t\t\t\t\t'description' => __( \"The date the object was last modified, in the site's timezone.\", 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'date-time',\n\t\t\t\t],\n\t\t\t\t'modified_gmt' => [\n\t\t\t\t\t'description' => __( 'The date the object was last modified, as GMT.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'date-time',\n\t\t\t\t],\n\t\t\t\t'slug' => [\n\t\t\t\t\t'description' => __( 'An alphanumeric identifier for the object unique to its type.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => [ $this, 'sanitize_slug' ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'status' => [\n\t\t\t\t\t'description' => __( 'A named status for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'enum' => array_keys( get_post_stati( [ 'internal' => false ] ) ),\n\t\t\t\t],\n\t\t\t\t'type' => [\n\t\t\t\t\t'description' => __( 'Type of Post for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'enum' => $rest_post_types,\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t\t'parent' => [\n\t\t\t\t\t'description' => __( 'The ID for the parent of the object.', 'sst' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t],\n\t\t\t\t'title' => [\n\t\t\t\t\t'description' => __( 'The title for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => null, // Note: sanitization implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t\t'validate_callback' => null, // Note: validation implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t],\n\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t'raw' => [\n\t\t\t\t\t\t\t'description' => __( 'Title for the object, as it exists in the database.', 'sst' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t\t'content' => [\n\t\t\t\t\t'description' => __( 'The content for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => null, // Note: sanitization implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t\t'validate_callback' => null, // Note: validation implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t],\n\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t'raw' => [\n\t\t\t\t\t\t\t'description' => __( 'Content for the object, as it exists in the database.', 'sst' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'author' => [\n\t\t\t\t\t'description' => __( 'The ID for the author of the object.', 'sst' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t],\n\t\t\t\t'excerpt' => [\n\t\t\t\t\t'description' => __( 'The excerpt for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => null, // Note: sanitization implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t\t'validate_callback' => null, // Note: validation implemented in WP_REST_Posts_Controller::prepare_item_for_database().\n\t\t\t\t\t],\n\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t'raw' => [\n\t\t\t\t\t\t\t'description' => __( 'Excerpt for the object, as it exists in the database.', 'sst' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'featured_media' => [\n\t\t\t\t\t'description' => __( 'The ID of the featured media for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t],\n\t\t\t\t'comment_status' => [\n\t\t\t\t\t'description' => __( 'Whether or not comments are open on the object.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'enum' => [ 'open', 'closed' ],\n\t\t\t\t],\n\t\t\t\t'ping_status' => [\n\t\t\t\t\t'description' => __( 'Whether or not the object can be pinged.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'enum' => [ 'open', 'closed' ],\n\t\t\t\t],\n\t\t\t\t'menu_order' => [\n\t\t\t\t\t'description' => __( 'The order of the object in relation to other object of its type.', 'sst' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t],\n\t\t\t\t'format' => [\n\t\t\t\t\t'description' => __( 'The format for the object.', 'sst' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'enum' => array_values( get_post_format_slugs() ),\n\t\t\t\t],\n\t\t\t\t'meta' => [\n\t\t\t\t\t'description' => __( 'Meta fields.', 'sst' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'additionalProperties' => true,\n\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t'sst_source_id' => [\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'description' => __( 'The original source ID.', 'sst' ),\n\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => [ $this, 'sanitize_meta' ],\n\t\t\t\t\t\t'validate_callback' => [ $this, 'validate_meta' ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'references' => [\n\t\t\t\t\t'description' => __( 'Post references to create.', 'sst' ),\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'items' => [\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t\t'type' => [\n\t\t\t\t\t\t\t\t'description' => __( 'The object type.', 'sst' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t\t\t'enum' => [\n\t\t\t\t\t\t\t\t\t'post',\n\t\t\t\t\t\t\t\t\t'term',\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'subtype' => [\n\t\t\t\t\t\t\t\t'description' => __( 'The object subtype (post type or taxonomy).', 'sst' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t\t\t\t'enum' => array_merge(\n\t\t\t\t\t\t\t\t\tarray_values( get_post_types() ),\n\t\t\t\t\t\t\t\t\tarray_values( get_taxonomies() )\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'sst_source_id' => [\n\t\t\t\t\t\t\t\t'description' => __( 'The original source ID. Required if the type is \"post\" and the subtype is not \"attachment\", optional otherwise.', 'sst' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'save_to_meta' => [\n\t\t\t\t\t\t\t\t'description' => __( 'If set, the ID of the created ref will be stored in the given meta key after it is resolved.', 'sst' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'args' => [\n\t\t\t\t\t\t\t\t'description' => __( 'Arguments for creating the reference.', 'sst' ),\n\t\t\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t\t\t\t'url' => [\n\t\t\t\t\t\t\t\t\t\t'description' => __( 'The URL for an attachment, if this reference is an attachment. This is required for attachments.', 'sst' ),\n\t\t\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t'title' => [\n\t\t\t\t\t\t\t\t\t\t'description' => __( 'The post or term title, if this is a post or term, or image description (which alt text inherits unless set explicitly) if this is an attachment. This is required for terms.', 'sst' ),\n\t\t\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t'meta' => [\n\t\t\t\t\t\t\t\t\t\t'description' => __( 'Meta to add to posts or terms created.', 'sst' ),\n\t\t\t\t\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t\t\t\t\t\t'sanitize_callback' => [ $this, 'sanitize_meta' ],\n\t\t\t\t\t\t\t\t\t\t\t'validate_callback' => [ $this, 'validate_meta' ],\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],\n\t\t\t\t\t],\n\t\t\t\t\t'arg_options' => [\n\t\t\t\t\t\t'sanitize_callback' => [ $this, 'sanitize_references' ],\n\t\t\t\t\t\t'validate_callback' => [ $this, 'validate_references' ],\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t],\n\t\t];\n\n\t\t// Build a list of taxonomies available across all REST post types.\n\t\t$available_taxonomies = get_object_taxonomies( $rest_post_types, 'objects' );\n\t\tforeach ( $available_taxonomies as $taxonomy ) {\n\t\t\t$base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;\n\n\t\t\t$schema['properties'][ $base ] = [\n\t\t\t\t/* translators: %s: taxonomy name */\n\t\t\t\t'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.', 'sst' ), $taxonomy->name ),\n\t\t\t\t'type' => 'array',\n\t\t\t\t'items' => [\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t],\n\t\t\t];\n\t\t}\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "91ffd60dcdb34df3c3314f34ee43375c", "score": "0.56130564", "text": "function parse_external_ref($ref)\n{\n if (is_relative_ref($ref)) {\n throw new \\InvalidArgumentException(\n sprintf(\n 'The path \"%s\" was expected to be an external reference but is missing a prefix. ' .\n 'The schema path should start with a prefix i.e. \"file://\".',\n $ref\n )\n );\n }\n\n list($prefix, $path) = explode('://', $ref, 2);\n $path = rtrim(strip_fragment($path), '#');\n\n return [$prefix, $path];\n}", "title": "" }, { "docid": "7115aae47a12947020c1520badbf7b98", "score": "0.5599214", "text": "function yaz_schema($id, $schema) {}", "title": "" }, { "docid": "494c42ca11a89944ecc7a91071780c78", "score": "0.5596035", "text": "protected function processReferencesInSchema($schema, $schemaFilePath, array &$serializedSchemas, array &$resources)\n {\n $objectIterator = new ObjectIterator($schema);\n foreach ($objectIterator as $toResolveSchema) {\n if (property_exists($toResolveSchema, '$ref') && is_string($toResolveSchema->{'$ref'})) {\n $uri = $this->uriResolver->resolve($toResolveSchema->{'$ref'}, $schemaFilePath);\n $jsonPointer = new JsonPointer($uri);\n $toResolveSchema->{'$ref'} = (string) $jsonPointer;\n $this->processSchema($jsonPointer->getFilename(), $serializedSchemas, $resources);\n }\n }\n }", "title": "" }, { "docid": "9bc2128627872b0e8b94ff9074ee0282", "score": "0.55681336", "text": "public static function get_schema($object) {}", "title": "" }, { "docid": "1fdba119794858f20a624e043bfecdad", "score": "0.55256015", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'type',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'capabilities' => array(\n\t\t\t\t\t'description' => __( 'All capabilities used by the post type.' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'description' => __( 'A human-readable description of the post type.' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'hierarchical' => array(\n\t\t\t\t\t'description' => __( 'Whether or not the post type should have children.' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'viewable' => array(\n\t\t\t\t\t'description' => __( 'Whether or not the post type can be viewed.' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'description' => __( 'Human-readable labels for the post type for various contexts.' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'name' => array(\n\t\t\t\t\t'description' => __( 'The title for the post type.' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit', 'embed' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'slug' => array(\n\t\t\t\t\t'description' => __( 'An alphanumeric identifier for the post type.' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit', 'embed' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'supports' => array(\n\t\t\t\t\t'description' => __( 'All features, supported by the post type.' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'taxonomies' => array(\n\t\t\t\t\t'description' => __( 'Taxonomies associated with post type.' ),\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'rest_base' => array(\n\t\t\t\t\t'description' => __( 'REST base route for the post type.' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit', 'embed' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "4cf029fbbf926f3dfdd9a179e4c93414", "score": "0.55153716", "text": "public static function fake($schema)\n {\n if (filter_var($schema, FILTER_VALIDATE_URL) !== false) {\n try {\n $schema = file_get_contents($schema);\n } catch (\\Exception $e) {\n throw new \\Exception(\n \"Failed to download JSON schema from '$schema' with error: {$e->getMessage()}\"\n );\n }\n }\n\n if (! ($schema instanceof \\stdClass)) {\n $schema = json_decode($schema);\n\n if (! ($schema instanceof \\stdClass)) {\n $message = \"Unable to decode provided schema with error: \";\n\n if (($error = json_last_error_msg()) && $error !== \"No error\") {\n $message .= $error;\n } else {\n $message .= \"Unknown error\";\n }\n\n throw new \\Exception($message);\n }\n }\n\n return Schema::make($schema)->toInstance()->realize(FakerFactory::create());\n }", "title": "" }, { "docid": "1e4c448246ad21aeda9b66e3e27338d4", "score": "0.5505595", "text": "public function resolveReference($data)\n\t{\n\t\tif (empty($data['$ref']) || empty($data['$id'])) return null;\n\t\tif (is_string($data['$id'])) $data['$id'] = new MongoId($data['$id']);\n\t\t$config = array('collection'=>$data['$ref']);\n\t\t$data = MongoDBRef::get(static::getMongoDB(false), $data);\n\t\tif ($data['_type']) {\n\t\t\t$className = $this->getClassForType($data['_type']);\n\t\t\treturn new $className($data, $config);\n\t\t} else {\n\t\t\treturn new Shanty_Mongo_Document($data, $config);\n\t\t}\n\t}", "title": "" }, { "docid": "35c5df2a5ca455780f50d4546a93fe45", "score": "0.54959464", "text": "public function getSchema(object $resourceObject): SchemaProviderInterface;", "title": "" }, { "docid": "b80199d94f269a2ed6d10d4b4d883df0", "score": "0.5487364", "text": "public function getSchema(): ISchema;", "title": "" }, { "docid": "ebd2feb064a140863a92fe9c136bea95", "score": "0.54545313", "text": "public function getSchema();", "title": "" }, { "docid": "8e6385f18993a4e394e7af1bde2f325c", "score": "0.5446642", "text": "public function get_item_schema() {\n\t\t\tif ( $this->schema ) {\n\t\t\t\treturn $this->add_additional_fields_schema( $this->schema );\n\t\t\t}\n\n\t\t\t$schema = array(\n\t\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t\t'title' => $this->get_rest_base( 'question-types' ),\n\t\t\t\t'type' => 'object',\n\t\t\t\t'properties' => array(\n\t\t\t\t\t'name' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'The title for the %s type',\n\t\t\t\t\t\t\t\t'placeholder: question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::label_to_lower( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'description' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'The description for the %s type.',\n\t\t\t\t\t\t\t\t'placeholder: question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::label_to_lower( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\n\t\t\t\t\t'slug' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'An alphanumeric identifier for the %s type',\n\t\t\t\t\t\t\t\t'placeholder: question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::label_to_lower( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$this->schema = $schema;\n\n\t\t\treturn $this->add_additional_fields_schema( $this->schema );\n\t\t}", "title": "" }, { "docid": "e3803dbc84a7b6143545205f927dfffc", "score": "0.5437957", "text": "public function get_response_schema() {\n\t\t$schema = [\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'sst-post',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => [\n\t\t\t\t'posts' => [\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'description' => __( 'Posts that were created or updated during the request.', 'sst' ),\n\t\t\t\t\t'items' => [\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t\t'sst_source_id' => [\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'description' => __( 'The original source ID.', 'sst' ),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'post_id' => [\n\t\t\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t\t\t'description' => __( 'The WordPress post ID.', 'sst' ),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'post_type' => [\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'description' => __( 'The WordPress post type.', 'sst' ),\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\t'terms' => [\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'description' => __( 'Terms that were created or updated during the request.', 'sst' ),\n\t\t\t\t\t'items' => [\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => [\n\t\t\t\t\t\t\t'slug' => [\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'description' => __( 'The term slug.', 'sst' ),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'taxonomy' => [\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'description' => __( 'The term taxonomy.', 'sst' ),\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t'term_id' => [\n\t\t\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t\t\t'description' => __( 'The term ID.', 'sst' ),\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];\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "b58a48ae1f5eaa878ce2902f29ac8b5a", "score": "0.54343367", "text": "protected function isAJSONSchema($thing){\n return is_a($thing, '\\itsoneiota\\json\\JSONSchema');\n }", "title": "" }, { "docid": "3948342d128e212091370836ce9d34e9", "score": "0.5402899", "text": "function the_item_schema( string $json ) {\n\tif ( function_exists( 'wp_seo' ) ) {\n\t\t$json = wp_seo()->format( $json );\n\t}\n\n\t$decoded = json_decode( $json );\n\n\tif ( JSON_ERROR_NONE !== json_last_error() ) {\n\t\treturn;\n\t}\n\n\tprintf(\n\t\t\"\\n\" . '\n<!-- Custom item schema. -->\n<script type=\"application/ld+json\">%s</script>\n<!-- End custom item schema. -->\n\t\t'\n\t\t. \"\\n\",\n\t\twp_json_encode( $decoded )\n\t);\n}", "title": "" }, { "docid": "3b5bb21f3c6116adee2bfe031e3ff71c", "score": "0.54026204", "text": "public function get_item_schema() {\n\n\t\t$options = $this->get_registered_options();\n\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/schema#',\n\t\t\t'title' => 'settings',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(),\n\t\t);\n\n\t\tforeach ( $options as $option_name => $option ) {\n\t\t\t$schema['properties'][ $option_name ] = $option['schema'];\n\t\t\t$schema['properties'][ $option_name ]['arg_options'] = array(\n\t\t\t\t'sanitize_callback' => $option['sanitize_callback'],\n\t\t\t\t'validate_callback' => $option['validate_callback'],\n\t\t\t);\n\t\t}\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "6b3343729b6906062d7f6e49965f2c6e", "score": "0.54018295", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => $this->taxonomy,\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'id' => array(\n\t\t\t\t\t'description' => __( 'Unique identifier for the resource.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'name' => array(\n\t\t\t\t\t'description' => __( 'Tag name.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'slug' => array(\n\t\t\t\t\t'description' => __( 'An alphanumeric identifier for the resource unique to its type.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_title',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'description' => __( 'HTML description of the resource.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'wp_filter_post_kses',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'count' => array(\n\t\t\t\t\t'description' => __( 'Number of published products for the resource.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "fe2d9f9e25a2efe7a6e1f633bdc9a10f", "score": "0.53911775", "text": "public static function getJsonSchema($className);", "title": "" }, { "docid": "b731b3c7904a192c1438079facd6ab3b", "score": "0.53685176", "text": "abstract public function getSchema();", "title": "" }, { "docid": "d91bccecc0c8a8d23baac17aaff81199", "score": "0.53621477", "text": "function getCreateSchema(Schema $createSchema);", "title": "" }, { "docid": "b6c9810e76a53cbe55f0bee281359f90", "score": "0.5348839", "text": "public function get_schema($object_type) {\n return $this->request($object_type . '/schema');\n }", "title": "" }, { "docid": "bc98027c5e1d780859b8ee45f4ffb519", "score": "0.5297899", "text": "protected static function getSchema ($filename)\n\t{\n\t\t// Get schema file\n\t\t$file = __DIR__.'/../schemas/' . $filename;\n\t\t//$file = Config::get('oastack::schemas.path') . $filename;\n\t\t\n\t\tif (!file_exists ($file))\n\t\t\t\n\t\t\tthrow new MissingSchemaException ('Schema file not found');\n\t\t\t\n\t\telse return json_decode (file_get_contents ($file));\n\t}", "title": "" }, { "docid": "35358ab11ad5acd67b51e4e5f0fb1d11", "score": "0.529365", "text": "abstract protected function get_schema();", "title": "" }, { "docid": "39c6178d0adae97313d37cc80a9cf94f", "score": "0.52511704", "text": "function GetSchema();", "title": "" }, { "docid": "e573ef0e4625c68c181c914109c47f66", "score": "0.5245584", "text": "public static function loadSchema() {\n\t\t\n\t\t//run this first, because any orphaned fields will cause it to squawk\n\t\tFieldController::cleanup();\n\t\t\n\t\t//load schema from file and prepare\n\t\t$schema = json_decode(file_get_contents(storage_path() . '/avalon.schema.json'));\n\n\t\t//load current database into $objects and $fields variables\n\t\t$objects = $fields = [];\n\t\t$db_fields = DB::table(DB_FIELDS)\n\t\t\t->join(DB_OBJECTS, DB_OBJECTS . '.id', '=', DB_FIELDS . '.object_id')\n\t\t\t->select(\n\t\t\t\tDB_FIELDS . '.object_id',\n\t\t\t\tDB_FIELDS . '.id AS field_id', \n\t\t\t\tDB_OBJECTS . '.name AS table', \n\t\t\t\tDB_FIELDS . '.name AS column'\n\t\t\t)->get();\n\t\tforeach ($db_fields as $field) {\n\t\t\tif (!array_key_exists($field->object_id, $objects)) $objects[$field->object_id] = $field->table;\n\t\t\t$fields[$field->field_id] = ['table'=>$field->table, 'column'=>$field->column];\n\t\t}\n\n\t\t//loop through new object schema and update\n\t\tforeach ($schema->objects as $object) {\n\n\t\t\t$values = [\n\t\t\t\t'id'=>$object->id,\n\t\t\t\t'title'=>$object->title,\n\t\t\t\t'name'=>$object->name,\n\t\t\t\t'model'=>$object->model,\n\t\t\t\t'order_by'=>$object->order_by,\n\t\t\t\t'direction'=>$object->direction,\n\t\t\t\t'group_by_field'=>$object->group_by_field,\n\t\t\t\t'list_help'=>$object->list_help,\n\t\t\t\t'form_help'=>$object->form_help,\n\t\t\t\t'list_grouping'=>$object->list_grouping,\n\t\t\t\t'can_create'=>$object->can_create,\n\t\t\t\t'can_edit'=>$object->can_edit,\n\t\t\t\t'can_see'=>$object->can_see,\n\t\t\t\t'url'=>$object->url,\n\t\t\t\t'singleton'=>$object->singleton,\n\t\t\t];\n\n\t\t\tif (array_key_exists($object->id, $objects)) {\n\t\t\t\tDB::table(DB_OBJECTS)->where('id', $object->id)->update($values);\n\t\t\t} else {\n\t\t\t\tDB::table(DB_OBJECTS)->insert($values);\n\t\t\t\tself::addTable($object->name);\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($objects[$object->id])) unset($objects[$object->id]);\n\t\t}\n\t\t\n\t\tforeach ($objects as $id=>$table) {\n\t\t\tDB::table(DB_OBJECTS)->where('id', $id)->delete();\n\t\t\tDB::table(DB_FIELDS)->where('object_id', $id)->delete();\n\t\t\tSchema::dropIfExists($table);\n\t\t}\n\t\t\n\t\tforeach ($schema->fields as $field) {\n\n\t\t\t$values = [\n\t\t\t\t'id'=>$field->id,\n\t\t\t\t'object_id'=>$field->object_id,\n\t\t\t\t'type'=>$field->type,\n\t\t\t\t'title'=>$field->title,\n\t\t\t\t'name'=>$field->name,\n\t\t\t\t'visibility'=>$field->visibility,\n\t\t\t\t'required'=>$field->required,\n\t\t\t\t'related_field_id'=>$field->related_field_id,\n\t\t\t\t'related_object_id'=>$field->related_object_id,\n\t\t\t\t'width'=>$field->width,\n\t\t\t\t'height'=>$field->height,\n\t\t\t\t'help'=>$field->help,\n\t\t\t\t'updated_at'=>$field->updated_at,\n\t\t\t\t'updated_by'=>$field->updated_by,\n\t\t\t\t'precedence'=>$field->precedence,\n\t\t\t];\n\t\t\t\n\t\t\tif ($field->id == 62) {\n\t\t\t\tdd($field);\n\t\t\t}\n\t\t\t\n\t\t\tif (array_key_exists($field->id, $fields)) {\n\t\t\t\tDB::table(DB_FIELDS)->where('id', $field->id)->update($values);\n\t\t\t} else {\n\t\t\t\tDB::table(DB_FIELDS)->insert($values);\n\t\t\t\tif ($field->type == 'checkboxes') {\n\t\t\t\t\tFieldController::addJoiningTable($fields[$field->id]['table'], $field->related_object_id);\n\t\t\t\t} else {\n\t\t\t\t\tFieldController::addColumn($fields[$field->id]['table'], $field->name, $field->type, $field->required);\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($fields[$field->id])) unset($fields[$field->id]);\n\t\t}\n\t\t\n\t\tforeach ($fields as $id=>$props) {\n\t\t\textract($props);\n\t\t\tDB::table(DB_FIELDS)->where('id', $id)->delete();\n\t\t\tSchema::dropIfExists($table, $column);\n\t\t}\n\n\t}", "title": "" }, { "docid": "de3c0d0cad312606be75ef2b64a1a17b", "score": "0.52436656", "text": "public function getIronJsonSchema()\n {\n $this->params[\"function\"] = \"getIronJsonSchema\";\n \n return($this);\n }", "title": "" }, { "docid": "179ed8769b255a4719d037dd7bca3c86", "score": "0.5237657", "text": "public function schema(): Schema;", "title": "" }, { "docid": "4e4e15dff5ec249e9899507701c185f7", "score": "0.5234113", "text": "public function setSchema(Schema $schema);", "title": "" }, { "docid": "7cf44aa8bcb1aff3e2c447f607b7af43", "score": "0.5203364", "text": "protected function getApiPlatform_Hydra_JsonSchema_SchemaFactoryService()\n {\n $a = ($this->privates['api_platform.json_schema.type_factory'] ?? $this->getApiPlatform_JsonSchema_TypeFactoryService());\n\n if (isset($this->privates['api_platform.hydra.json_schema.schema_factory'])) {\n return $this->privates['api_platform.hydra.json_schema.schema_factory'];\n }\n\n return $this->privates['api_platform.hydra.json_schema.schema_factory'] = new \\ApiPlatform\\Core\\Hydra\\JsonSchema\\SchemaFactory(new \\ApiPlatform\\Core\\JsonSchema\\SchemaFactory($a, ($this->privates['api_platform.metadata.resource.metadata_factory.cached'] ?? $this->getApiPlatform_Metadata_Resource_MetadataFactory_CachedService()), ($this->privates['api_platform.metadata.property.name_collection_factory.cached'] ?? $this->getApiPlatform_Metadata_Property_NameCollectionFactory_CachedService()), ($this->privates['api_platform.metadata.property.metadata_factory.cached'] ?? $this->getApiPlatform_Metadata_Property_MetadataFactory_CachedService()), ($this->privates['serializer.name_converter.metadata_aware'] ?? $this->getSerializer_NameConverter_MetadataAwareService()), ($this->privates['api_platform.resource_class_resolver'] ?? $this->getApiPlatform_ResourceClassResolverService())));\n }", "title": "" }, { "docid": "178555cb0ce125ceb3748e94e0163a8c", "score": "0.51898706", "text": "public function get_item_schema($request)\n {\n $schema = array(\n '$schema' => 'http://json-schema.org/draft-04/schema#',\n 'title' => 'query',\n 'type' => 'object',\n /*\n * Base properties for every Post.\n */\n 'properties' => array(\n 'date' => array(\n 'description' => __(\"The date the object was published, in the site's timezone.\"),\n 'type' => 'string',\n 'format' => 'date-time',\n 'context' => array('view', 'edit', 'embed'),\n ),\n 'date_gmt' => array(\n 'description' => __('The date the object was published, as GMT.'),\n 'type' => 'string',\n 'format' => 'date-time',\n 'context' => array('view', 'edit'),\n ),\n 'guid' => array(\n 'description' => __('The globally unique identifier for the object.'),\n 'type' => 'object',\n 'context' => array('view', 'edit'),\n 'readonly' => true,\n 'properties' => array(\n 'raw' => array(\n 'description' => __('GUID for the object, as it exists in the database.'),\n 'type' => 'string',\n 'context' => array('edit'),\n 'readonly' => true,\n ),\n 'rendered' => array(\n 'description' => __('GUID for the object, transformed for display.'),\n 'type' => 'string',\n 'context' => array('view', 'edit'),\n 'readonly' => true,\n ),\n ),\n ),\n 'id' => array(\n 'description' => __('Unique identifier for the object.'),\n 'type' => 'integer',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n 'link' => array(\n 'description' => __('URL to the object.'),\n 'type' => 'string',\n 'format' => 'uri',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n 'modified' => array(\n 'description' => __(\"The date the object was last modified, in the site's timezone.\"),\n 'type' => 'string',\n 'format' => 'date-time',\n 'context' => array('view', 'edit'),\n 'readonly' => true,\n ),\n 'modified_gmt' => array(\n 'description' => __('The date the object was last modified, as GMT.'),\n 'type' => 'string',\n 'format' => 'date-time',\n 'context' => array('view', 'edit'),\n 'readonly' => true,\n ),\n 'slug' => array(\n 'description' => __('An alphanumeric identifier for the object unique to its type.'),\n 'type' => 'string',\n 'context' => array('view', 'edit', 'embed'),\n 'arg_options' => array(\n 'sanitize_callback' => array($this, 'sanitize_slug'),\n ),\n ),\n 'status' => array(\n 'description' => __('A named status for the object.'),\n 'type' => 'string',\n 'enum' => array_keys(get_post_stati(array('internal' => false))),\n 'context' => array('edit'),\n ),\n 'type' => array(\n 'description' => __('Type of Post for the object.'),\n 'type' => 'string',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n 'title' => array(\n 'description' => __('The title for the object.'),\n 'type' => 'object',\n 'context' => array('view', 'edit', 'embed'),\n 'properties' => array(\n 'raw' => array(\n 'description' => __('Title for the object, as it exists in the database.'),\n 'type' => 'string',\n 'context' => array('edit'),\n ),\n 'rendered' => array(\n 'description' => __('HTML title for the object, transformed for display.'),\n 'type' => 'string',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n ),\n ),\n 'content' => array(\n 'description' => __('The content for the object.'),\n 'type' => 'object',\n 'context' => array('view', 'edit'),\n 'properties' => array(\n 'raw' => array(\n 'description' => __('Content for the object, as it exists in the database.'),\n 'type' => 'string',\n 'context' => array('edit'),\n ),\n 'rendered' => array(\n 'description' => __('HTML content for the object, transformed for display.'),\n 'type' => 'string',\n 'context' => array('view', 'edit'),\n 'readonly' => true,\n ),\n 'protected' => array(\n 'description' => __('Whether the content is protected with a password.'),\n 'type' => 'boolean',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n ),\n ),\n 'featured_media' => array(\n 'description' => __( 'The id of the featured media for the object.' ),\n 'type' => 'integer',\n 'context' => array( 'view', 'edit' ),\n ),\n 'excerpt' => array(\n 'description' => __( 'The excerpt for the object.' ),\n 'type' => 'object',\n 'context' => array( 'view', 'edit', 'embed' ),\n 'properties' => array(\n 'raw' => array(\n 'description' => __( 'Excerpt for the object, as it exists in the database.' ),\n 'type' => 'string',\n 'context' => array( 'edit' ),\n ),\n 'rendered' => array(\n 'description' => __( 'HTML excerpt for the object, transformed for display.' ),\n 'type' => 'string',\n 'context' => array( 'view', 'edit', 'embed' ),\n 'readonly' => true,\n ),\n 'protected' => array(\n 'description' => __( 'Whether the excerpt is protected with a password.' ),\n 'type' => 'boolean',\n 'context' => array( 'view', 'edit', 'embed' ),\n 'readonly' => true,\n ),\n ),\n ),\n 'tags' => array(\n 'description' => __('The head tags content.'),\n 'type' => 'object',\n 'context' => array('view', 'edit', 'embed'),\n 'properties' => array(\n 'title' => array(\n 'description' => __('Title attribute with a max of 60 characters.'),\n 'type' => 'string',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true\n ),\n 'description' => array(\n 'description' => __('Excerpt attribute with a max of 160 characters.'),\n 'type' => 'string',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true,\n ),\n ),\n ),\n 'custom_fields' => array(\n 'description' => __('Custom fields for the element.'),\n 'type' => 'object',\n 'context' => array('view', 'edit', 'embed'),\n 'readonly' => true\n ),\n ),\n );\n\n return $schema;\n }", "title": "" }, { "docid": "13bf4533dd80c2f43ab2e7f158328262", "score": "0.5152183", "text": "public static function getSchema() {\n\t}", "title": "" }, { "docid": "da8a640eb1c9b892772202a2c2a64be1", "score": "0.5149355", "text": "public function decorateSchema(Schema $schema): Schema {\n $schema->setField('$schema', self::SCHEMA_DRAFT_7_URL);\n $schema->setField('$defs', $this->createCombinedDefsArray());\n return $schema;\n }", "title": "" }, { "docid": "73ed9977ae354f9e9954e80399a04d3a", "score": "0.5042427", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'currency',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'code' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'description' => __( 'ISO4217 currency code.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'name' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'description' => __( 'Full name of currency.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'symbol' => array(\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'description' => __( 'Currency symbol.', 'woocommerce-rest-api' ),\n\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "40c2c2f8cacea8f44227b8c792dc83fe", "score": "0.5028127", "text": "public function acceptSchema(Schema $schema)\n {\n\n }", "title": "" }, { "docid": "e832cf10d01feea07ba6deead44f2d39", "score": "0.50184894", "text": "abstract protected function schemas();", "title": "" }, { "docid": "45be21e906c0b003a8ff60c424759e57", "score": "0.50160277", "text": "public function get_item_schema() {\n\t\t$weight_unit = get_option( 'woocommerce_weight_unit' );\n\t\t$dimension_unit = get_option( 'woocommerce_dimension_unit' );\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => $this->post_type,\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'id' => array(\n\t\t\t\t\t'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'date_created' => array(\n\t\t\t\t\t'description' => __( \"The date the variation was created, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'date_modified' => array(\n\t\t\t\t\t'description' => __( \"The date the variation was last modified, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'description' => __( 'Variation description.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'permalink' => array(\n\t\t\t\t\t'description' => __( 'Variation URL.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'uri',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'sku' => array(\n\t\t\t\t\t'description' => __( 'Unique identifier.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'price' => array(\n\t\t\t\t\t'description' => __( 'Current variation price.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'regular_price' => array(\n\t\t\t\t\t'description' => __( 'Variation regular price.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'sale_price' => array(\n\t\t\t\t\t'description' => __( 'Variation sale price.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'date_on_sale_from' => array(\n\t\t\t\t\t'description' => __( \"Start date of sale price, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'date_on_sale_from_gmt' => array(\n\t\t\t\t\t'description' => __( 'Start date of sale price, as GMT.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'date_on_sale_to' => array(\n\t\t\t\t\t'description' => __( \"End date of sale price, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'date_on_sale_to_gmt' => array(\n\t\t\t\t\t'description' => __( \"End date of sale price, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'on_sale' => array(\n\t\t\t\t\t'description' => __( 'Shows if the variation is on sale.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'visible' => array(\n\t\t\t\t\t'description' => __( \"Define if the attribute is visible on the \\\"Additional information\\\" tab in the product's page.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'default' => true,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'purchasable' => array(\n\t\t\t\t\t'description' => __( 'Shows if the variation can be bought.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'virtual' => array(\n\t\t\t\t\t'description' => __( 'If the variation is virtual.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'default' => false,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'downloadable' => array(\n\t\t\t\t\t'description' => __( 'If the variation is downloadable.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'default' => false,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'downloads' => array(\n\t\t\t\t\t'description' => __( 'List of downloadable files.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'File MD5 hash.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'name' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'File name.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'file' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'File URL.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\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\t'download_limit' => array(\n\t\t\t\t\t'description' => __( 'Number of times downloadable files can be downloaded after purchase.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'default' => -1,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'download_expiry' => array(\n\t\t\t\t\t'description' => __( 'Number of days until access to downloadable files expires.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'default' => -1,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'tax_status' => array(\n\t\t\t\t\t'description' => __( 'Tax status.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'default' => 'taxable',\n\t\t\t\t\t'enum' => array( 'taxable', 'shipping', 'none' ),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'tax_class' => array(\n\t\t\t\t\t'description' => __( 'Tax class.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'manage_stock' => array(\n\t\t\t\t\t'description' => __( 'Stock management at variation level.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'default' => false,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'stock_quantity' => array(\n\t\t\t\t\t'description' => __( 'Stock quantity.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'in_stock' => array(\n\t\t\t\t\t'description' => __( 'Controls whether or not the variation is listed as \"in stock\" or \"out of stock\" on the frontend.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'default' => true,\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'backorders' => array(\n\t\t\t\t\t'description' => __( 'If managing stock, this controls if backorders are allowed.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'default' => 'no',\n\t\t\t\t\t'enum' => array( 'no', 'notify', 'yes' ),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'backorders_allowed' => array(\n\t\t\t\t\t'description' => __( 'Shows if backorders are allowed.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'backordered' => array(\n\t\t\t\t\t'description' => __( 'Shows if the variation is on backordered.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'weight' => array(\n\t\t\t\t\t/* translators: %s: weight unit */\n\t\t\t\t\t'description' => sprintf( __( 'Variation weight (%s).', 'woocommerce' ), $weight_unit ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'dimensions' => array(\n\t\t\t\t\t'description' => __( 'Variation dimensions.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t'length' => array(\n\t\t\t\t\t\t\t/* translators: %s: dimension unit */\n\t\t\t\t\t\t\t'description' => sprintf( __( 'Variation length (%s).', 'woocommerce' ), $dimension_unit ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'width' => array(\n\t\t\t\t\t\t\t/* translators: %s: dimension unit */\n\t\t\t\t\t\t\t'description' => sprintf( __( 'Variation width (%s).', 'woocommerce' ), $dimension_unit ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'height' => array(\n\t\t\t\t\t\t\t/* translators: %s: dimension unit */\n\t\t\t\t\t\t\t'description' => sprintf( __( 'Variation height (%s).', 'woocommerce' ), $dimension_unit ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'shipping_class' => array(\n\t\t\t\t\t'description' => __( 'Shipping class slug.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'shipping_class_id' => array(\n\t\t\t\t\t'description' => __( 'Shipping class ID.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'image' => array(\n\t\t\t\t\t'description' => __( 'Variation image data.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t\t'description' => __( 'Image ID.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'date_created' => array(\n\t\t\t\t\t\t\t'description' => __( \"The date the image was created, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'date_created_gmt' => array(\n\t\t\t\t\t\t\t'description' => __( 'The date the image was created, as GMT.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'date_modified' => array(\n\t\t\t\t\t\t\t'description' => __( \"The date the image was last modified, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'date_modified_gmt' => array(\n\t\t\t\t\t\t\t'description' => __( 'The date the image was last modified, as GMT.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'src' => array(\n\t\t\t\t\t\t\t'description' => __( 'Image URL.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'format' => 'uri',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'name' => array(\n\t\t\t\t\t\t\t'description' => __( 'Image name.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'alt' => array(\n\t\t\t\t\t\t\t'description' => __( 'Image alternative text.', 'woocommerce' ),\n\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'description' => __( 'List of attributes.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Attribute ID.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'name' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Attribute name.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'option' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Selected attribute term name.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\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\t'menu_order' => array(\n\t\t\t\t\t'description' => __( 'Menu order, used to custom sort products.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'meta_data' => array(\n\t\t\t\t\t'description' => __( 'Meta data.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'array',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'items' => array(\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'properties' => array(\n\t\t\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Meta ID.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'key' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Meta key.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t\t\t'description' => __( 'Meta value.', 'woocommerce' ),\n\t\t\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t\t\t'context' => array( 'view', 'edit' ),\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);\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "1b3aabec148358d1a7b8d836fff6e24b", "score": "0.50033903", "text": "public function getResourceSchema()\n {\n $name = $this->resourceName();\n $schema = $this->getApiConnection()->getSchema()->itemAt($name);\n\n if (!is_object($schema))\n throw new \\CException(get_class($this).' expects a resource called '.$name);\n return $schema;\n }", "title": "" }, { "docid": "d24213628e4a73f51d8416fdf60b929c", "score": "0.500199", "text": "protected function _buildSchema(Schema $schema): Schema\n {\n return $schema->addField('content', 'string')\n ->addField('request_adoption_id', ['type' => 'integer']);\n\n }", "title": "" }, { "docid": "5ff18bd34ea813c9cb8052a113045320", "score": "0.49508768", "text": "public function getSchema(){\n\t\treturn $this->schema;\n\t}", "title": "" }, { "docid": "e87207eae2297b384e345137b72e78ff", "score": "0.4931791", "text": "public function getNormalizer(Schema $propertySchema, string $propertyName, bool $isRequired): \\Closure;", "title": "" }, { "docid": "bb7b45b6e0629245c5d59ff28549143a", "score": "0.49088436", "text": "private function applyResolverAsReference(AbstractDataResolver $resolver) {\n $type = $resolver->getType();\n $schema = $resolver->getSchema();\n $schemaArray = $schema ? $schema->getSchemaArray() : HydrateableSchema::ANY_OBJECT_SCHEMA_ARRAY;\n $hydrateableSchema = new HydrateableSchema($schemaArray, $type);\n $this->referencesByType[$type] = $hydrateableSchema->getSchemaArray();\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.49001732", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "37433a3178d41cea0bb95dc4d4be5711", "score": "0.4879603", "text": "public function convert(Type $type): ?Schema;", "title": "" }, { "docid": "1d1e914328b0295bcad1574e5f92198a", "score": "0.4871645", "text": "static function resolveDBRef($ref, $id='')\n {\n // ref is collection name, so pack it\n if($id && is_string($ref)) {\n $ref = array('$ref' => $ref, '$id' => MongoLib::fix_id($id));\n }\n \n // ref is a raw thingy, so repack it\n if(is_array($ref) && !$ref['$ref']) {\n list($collection, $id) = array_values($ref);\n if($collection && $id) {\n $new_ref = array('$ref' => $collection, '$id' => MongoLib::fix_id($id));\n $ref = $new_ref;\n }\n }\n \n if($ref != array('$ref' => $ref['$ref'], '$id' => $ref['$id']))\n return false;\n \n return $ref;\n }", "title": "" }, { "docid": "79d86ac9eeac08b578b45093ad69760c", "score": "0.48629043", "text": "function complex_type($schema) {\r\n $return_value = false;\r\n $schema = (array) $schema;\r\n \r\n if ($schema['name'] != ''\r\n && in_array($schema['type'], array('restriction', 'complex', 'list'))) {\r\n \r\n $this->api_datatypes[] = $schema;\r\n $return_value = true;\r\n } // end: if\r\n \r\n return $return_value;\r\n }", "title": "" }, { "docid": "28b3c6d2fdd585e425597ea0eb54d478", "score": "0.48576272", "text": "abstract public function schema();", "title": "" }, { "docid": "ef64384ae2d5445863b96ae63ce505d8", "score": "0.48417777", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'setting',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'id' => array(\n\t\t\t\t\t'description' => __( 'A unique identifier for the setting.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_title',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'group_id' => array(\n\t\t\t\t\t'description' => __( 'An identifier for the group this setting belongs to.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_title',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'label' => array(\n\t\t\t\t\t'description' => __( 'A human readable label for the setting used in interfaces.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'description' => array(\n\t\t\t\t\t'description' => __( 'A human readable description for the setting used in interfaces.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'value' => array(\n\t\t\t\t\t'description' => __( 'Setting value.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'mixed',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t),\n\t\t\t\t'default' => array(\n\t\t\t\t\t'description' => __( 'Default value for the setting.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'mixed',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'tip' => array(\n\t\t\t\t\t'description' => __( 'Additional help text shown to the user about the setting.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'placeholder' => array(\n\t\t\t\t\t'description' => __( 'Placeholder text to be displayed in text inputs.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'type' => array(\n\t\t\t\t\t'description' => __( 'Type of setting.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t\t),\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'enum' => array( 'text', 'email', 'number', 'color', 'password', 'textarea', 'select', 'multiselect', 'radio', 'image_width', 'checkbox' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'options' => array(\n\t\t\t\t\t'description' => __( 'Array of options (key value pairs) for inputs such as select, multiselect, and radio buttons.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "0585b6466dffcaf8674f17724847ad1d", "score": "0.48362413", "text": "protected static function _getSchema() {\n\n\t\tstatic $Schema;\n\n\t\tif (is_null($Schema)) {\n\t\t\tstatic::__init();\n\t\t\t$Schema = \\SchemaManager::getSchema(get_called_class());\n\t\t}\n\n\t\treturn $Schema;\n\n\t}", "title": "" }, { "docid": "4cfcb6748d5965621afdbaedeb206034", "score": "0.4835652", "text": "public function getSchemaByResourceType(string $resourceType): SchemaProviderInterface;", "title": "" }, { "docid": "49c5d12c1ed07c0b04df81b45e71fddc", "score": "0.4833929", "text": "protected function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "4d830151d62f30086e2fee4dfa3f9b65", "score": "0.4831332", "text": "function get_schema_url( $schema = false ) {\n\n if ( false === $schema ) {\n if ( has_schema() ) {\n global $post;\n return ScaleUp_Schemas::get_schema_url( $post->schema->name );\n }\n } else {\n return ScaleUp_Schemas::get_schema_url( $schema );\n }\n }", "title": "" }, { "docid": "92b9f8c04b30bec50019b04a6b48d6a9", "score": "0.48280412", "text": "public function readOne($schemaId){\n try{\n //Access Token Validation\n $user = $this->awsCognito->validateAccessToken();\n $criteria = new CriteriaOption();\n $criteria->where(Schema::FIELD_RECORD_TYPE, $this->me->getRecordType());\n $criteria->where(Schema::FIELD_OBJECT_TYPE, $this->me->getType());\n $criteria->whereRaw($this->me->getDefaultFilter($schemaId),$this->schema->getAllFields(),$user);\n $this->me->pushCriteria($criteria);\n $this->me->applyCriteria();\n $schemaObj = $this->me->readOne($this->schema->getAttributes());\n if($schemaObj){\n $aclObj = new ACL(null, $user, $this->schema);\n if(!$aclObj->canRead($schemaObj)){\n return ErrorHelper::getPermissionError();\n }\n $href = env('APP_URL') .env('APP_VERSION').'/schemas/' . $schemaObj->_id;\n return response()->json($this->schema->renderOutput($schemaObj,$href,$user));\n }else{\n return ErrorHelper::getNotFoundError('Schema');\n }\n }catch (\\InvalidArgumentException $ex){\n return ErrorHelper::getExceptionError($ex->getMessage());\n }\n catch (\\Aws\\CognitoIdentityProvider\\Exception\\CognitoIdentityProviderException $ex){\n return ErrorHelper::getExceptionError($ex->getAwsErrorMessage());\n }\n catch(\\Firebase\\JWT\\ExpiredException $ex){\n return ErrorHelper::getExpiredAccessTokenError();\n }\n catch(\\Exception $ex){\n return ErrorHelper::getExceptionError($ex->getMessage());\n }\n }", "title": "" }, { "docid": "7bcf7d4eeff8ce66b6bcb50f5c48b082", "score": "0.4817191", "text": "public function getSchema() {\n return $this->fieldDefinition->getSchema();\n }", "title": "" }, { "docid": "738dfa043592e397adab355029cf89dd", "score": "0.4789726", "text": "private static function _crosswalkSchema($source, $schema)\n\t{\n\t\t$metadata = new JRegistry();\n\t\n\t\t$schemaPath = JPATH_ROOT.\"/administrator/components/com_jspace/models/forms/schemas/\".$schema.\".xml\";\n\t\t\n\t\t$form = new JForm('jform');\n\t\t$form->loadFile($schemaPath);\n\n\t\t// try to match form fields to retrieved file metadata.\n\t\tforeach ($source as $key=>$value)\n\t\t{\n\t\t\tif ($form->getField($key, 'metadata'))\n\t\t\t{\n\t\t\t\t$metadata->set($key, $value);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $metadata;\n\t}", "title": "" }, { "docid": "0e9d344205d9857d4c71fec8bdd301fb", "score": "0.47800136", "text": "protected function getSchema()\n {\n if (null === $this->schema) {\n $this->schema = include dirname(__FILE__) . '/Schema.php';\n }\n return $this->schema;\n }", "title": "" }, { "docid": "048883677dcbbd419952561c7f329838", "score": "0.47748", "text": "public function get_item_schema() {\n\t\treturn [\n\t\t\t'$schema' => 'http://json-schema.org/schema#',\n\t\t\t'title' => 'shortcode-block',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => [\n\t\t\t\t'html' => [\n\t\t\t\t\t'description' => __(\n\t\t\t\t\t\t'The block\\'s content with shortcodes filtered through hooks.',\n\t\t\t\t\t\t'gutenberg'\n\t\t\t\t\t),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t\t'type' => [\n\t\t\t\t\t'description' => __(\n\t\t\t\t\t\t'The filtered content type - video or otherwise',\n\t\t\t\t\t\t'gutenberg'\n\t\t\t\t\t),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t\t'style' => [\n\t\t\t\t\t'description' => __(\n\t\t\t\t\t\t'Links to external style sheets needed to render the shortcode',\n\t\t\t\t\t\t'gutenberg'\n\t\t\t\t\t),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t\t'js' => [\n\t\t\t\t\t'description' => __(\n\t\t\t\t\t\t'Links to JS and CSS needed to render the shortcode',\n\t\t\t\t\t\t'gutenberg'\n\t\t\t\t\t),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'required' => true,\n\t\t\t\t],\n\t\t\t],\n\t\t];\n\t}", "title": "" }, { "docid": "f4cebf715d2b0b145183c6430a7b9c36", "score": "0.47547203", "text": "public function schema ($display)\n\t{\n\t\t$rules = (array) self::getSchema ($this::type . '.json');\n\t\t$response = array();\n\t\t\n\t\t// Validate\n\t\tif (!$display || !$rules)\n\t\t\n\t\t\tthrow new MissingParameterException ('Schema mismatch or display parameter missing');\n\t\t\t\n\t\t// Return id\n\t\tif ($display == 'id')\n\t\t\t\n\t\t\treturn $this->getId ();\n\t\t\n\t\t// Evaluate schema\n\t\tforeach ($rules [$display] as $key => $funcpair)\n\t\t{\n\t\t\t$func = explode (':', $funcpair);\n\t\t\t\n\t\t\t$response[$key] = $this::$func[0] (isset ($func[1])? $func[1]: null, isset ($func[2])? $func[2]: null);\n\t\t}\n\t\t\n\t\treturn (object) $response;\n\t}", "title": "" }, { "docid": "352027c5344f8011b3e1f6b346a1ada5", "score": "0.47545367", "text": "public function setSchema($var)\n {\n GPBUtil::checkMessage($var, \\Graphqlc\\SchemaDescriptorProto::class);\n $this->schema = $var;\n\n return $this;\n }", "title": "" }, { "docid": "46fc36eb09502cf7486babbcba55085f", "score": "0.47360426", "text": "public function getSchema(): string\n {\n return $this->schema;\n }", "title": "" }, { "docid": "b92cd6eb8d31f60fc400e2096c113ac2", "score": "0.4734359", "text": "public static function get_schema() {\n\n\t\t\tif ( null === self::$schema ) {\n\n\t\t\t\t$schema_registry = new SchemaRegistry();\n\t\t\t\t$schema = $schema_registry->get_schema();\n\n\t\t\t\t/**\n\t\t\t\t * Generate & Filter the schema.\n\t\t\t\t *\n\t\t\t\t * @since 0.0.5\n\t\t\t\t *\n\t\t\t\t * @param array $schema The executable Schema that GraphQL executes against\n\t\t\t\t * @param AppContext $app_context Object The AppContext object containing all of the\n\t\t\t\t * information about the context we know at this point\n\t\t\t\t */\n\t\t\t\tself::$schema = apply_filters( 'graphql_schema', $schema, self::get_app_context() );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Fire an action when the Schema is returned\n\t\t\t */\n\t\t\tdo_action( 'graphql_get_schema', self::$schema );\n\n\t\t\t/**\n\t\t\t * Return the Schema after applying filters\n\t\t\t */\n\t\t\treturn ! empty( self::$schema ) ? self::$schema : null;\n\t\t}", "title": "" }, { "docid": "1b0c708ded1c8eca6297d666f7157d85", "score": "0.47340867", "text": "public function toSchema()\n {\n return json_encode($this->toArray(), JSON_UNESCAPED_SLASHES);\n }", "title": "" }, { "docid": "8302e20198f1eb62d3499e80c19bf680", "score": "0.47326347", "text": "public function getSchema($config = [])\n\t{\n\t\t$default = array();\t\n\t\t$schema = array();\n\t\t//does the model exist?\n\t\tif($this->exists)\n\t\t{\n\t\t\t//\n\t\t\tif($parent_class = config('alpacajs.model-data.' . class_basename($this) . '.parent', [])){\n\t\t\t\tif($schema_temp = config('alpacajs.model-defaults.' . class_basename($parent_class) . '.schema', [])){ \n\t\t\t\t\t$default = $schema_temp;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif($schema_temp = config('alpacajs.model-defaults.' . class_basename($this) . '.schema', [])){ \n\t\t\t\t$default = $schema_temp;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tif($this->exists && isset($this->data['schema']) && $this->data['schema'] != null){ \n\t\t\t$schema = json_decode($this->data['schema'], true);\n\t\t}\n\t\treturn array_merge($schema, $default);\n\t}", "title": "" }, { "docid": "89bd4932e24d8663b3fbae7bc70fe32a", "score": "0.47134063", "text": "public function testSchema()\n {\n $obj_schema = (new \\GDS\\Schema('Person'))\n ->addString('name')\n ->addInteger('age')\n ->addDatetime('dob')\n ->addBoolean('single')\n ->addFloat('weight')\n ->addStringList('nicknames')\n ->addProperty('surname', \\GDS\\Schema::PROPERTY_STRING)\n ->addInteger('friends', FALSE)\n ->addGeopoint('location')\n ;\n $this->assertEquals($obj_schema->getKind(), 'Person');\n $this->assertEquals($obj_schema->getProperties(), [\n 'name' => [\n 'type' => \\GDS\\Schema::PROPERTY_STRING,\n 'index' => TRUE\n ],\n 'age' => [\n 'type' => \\GDS\\Schema::PROPERTY_INTEGER,\n 'index' => TRUE\n ],\n 'dob' => [\n 'type' => \\GDS\\Schema::PROPERTY_DATETIME,\n 'index' => TRUE\n ],\n 'single' => [\n 'type' => \\GDS\\Schema::PROPERTY_BOOLEAN,\n 'index' => TRUE\n ],\n 'weight' => [\n 'type' => \\GDS\\Schema::PROPERTY_FLOAT,\n 'index' => TRUE\n ],\n 'nicknames' => [\n 'type' => \\GDS\\Schema::PROPERTY_STRING_LIST,\n 'index' => TRUE\n ],\n 'surname' => [\n 'type' => \\GDS\\Schema::PROPERTY_STRING,\n 'index' => TRUE\n ],\n 'friends' => [\n 'type' => \\GDS\\Schema::PROPERTY_INTEGER,\n 'index' => FALSE\n ],\n 'location' => [\n 'type' => \\GDS\\Schema::PROPERTY_GEOPOINT,\n 'index' => TRUE\n ]\n ]);\n }", "title": "" }, { "docid": "2831a78eead307953df34f2bfa9d5557", "score": "0.4702833", "text": "public function convert_familyfriendly_property( $schema ) {\n\t\tif ( empty( $schema['isFamilyFriendly'] ) ) {\n\t\t\treturn $schema;\n\t\t}\n\n\t\t$schema['isFamilyFriendly'] = 'True';\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "ebcca158cf8e113988fab13ab9108ea8", "score": "0.47021398", "text": "function getSchema() {\n// needs a 'server', 'user', 'pass', 'db' , 'table' to be posted to the page\n// these correspond to the server to connect to and the \n// username and password to authenticate as well as the DB and\n// table to get the schema of \n \n //Check to see if the proper variables were POSTed\n if(isset($_POST['table'])) {\n $table = sanitize($_POST['table']);\n }\n \n //Create a new connection to the server\n $dbConn = connectDB();\n if($dbConn->connect_error) {\n $val = $dbConn->connect_error;\n }\n else {\n $val = 0;\n }\n \n //Execute the query to get the schema\n $query = \"DESCRIBE \" . $table; \n $sqlResult = $dbConn->query($query);\n \n //Get the primary key columns\n $sql = \"SHOW INDEX FROM \". $table . \" WHERE key_name = 'PRIMARY';\";\n $indexResult = $dbConn->query($sql);\n \n //Get the foreign keys for the table\n $foreignSQL = \"SELECT column_name, referenced_table_name, referenced_column_name FROM information_schema.KEY_COLUMN_USAGE WHERE CONSTRAINT_SCHEMA = '\" . $_POST['db'] . \"' and REFERENCED_TABLE_SCHEMA IS NOT NULL and table_name = '\" . $table . \"'\";\n $foreignResult = $dbConn->query($foreignSQL);\n $dbConn->close();\n \n //Put the results into an array and return as JSON\n $result = array();\n $result['error'] = $val;\n $i = 0;\n while( $row = $sqlResult->fetch_array()) { \n $result['field'][$i] = $row[0]; //0 corresponds to the field name\n $result['type'][$i] = $row[1]; //1 corresponds to the data type\n $result['null'][$i] = $row[2]; //2 corresponds to if null is allowed\n $result['key'][$i] = $row[3]; //3 corresponds to if it is part of a key\n $result['default'][$i] = $row[4]; //4 corresponds to the default value if there is one\n $result['extra'][$i] = $row[5]; //5 corresponds to any extra information if there is any\n $i++;\n }\n \n //Parse the primary key into the result\n $i = 0;\n while($row = $indexResult->fetch_array()) {\n $result['primary'][$i] = $row[4];\n $i++;\n }\n \n //Parse the foreign keys into the result\n $j = 0;\n while($row = $foreignResult->fetch_array()) {\n $result['keyColumn'][$j] = $row[0]; //0 corresponds to the column_name\n $result['referencedtable'][$j] = $row[1]; //1 corresponds to the referenced_table_name\n $result['referencedColumn'][$j] = $row[2]; //2 corresponds to the referenced_column_name\n $j++;\n }\n \n return json_encode($result);\n}", "title": "" }, { "docid": "1046eb9f4c43a49edec3b66ed42fc161", "score": "0.46894178", "text": "function schema_extract($schema, callable $callback, $pointer = '')\n{\n $matches = [];\n\n if (!is_array($schema) && !is_object($schema)) {\n return $matches;\n }\n\n foreach ($schema as $keyword => $value) {\n switch (true) {\n case is_object($value):\n $matches = array_merge($matches, schema_extract($value, $callback, pointer_push($pointer, $keyword)));\n break;\n case is_array($value):\n foreach ($value as $k => $v) {\n $matches = array_merge(\n $matches,\n schema_extract($v, $callback, pointer_push(pointer_push($pointer, $keyword), $k))\n );\n }\n break;\n case $callback($keyword, $value):\n $matches[$pointer] = $value;\n break;\n }\n }\n\n return $matches;\n}", "title": "" }, { "docid": "bfa9defd46b30d3e7f28b697b6782299", "score": "0.46877828", "text": "public function setSchema($schema)\n {\n $this->schema = $schema;\n }", "title": "" }, { "docid": "c8769f36a396050be3eceff623452342", "score": "0.46855503", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'product_block_review',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'id' => array(\n\t\t\t\t\t'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'date_created' => array(\n\t\t\t\t\t'description' => __( \"The date the review was created, in the site's timezone.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'formatted_date_created' => array(\n\t\t\t\t\t'description' => __( \"The date the review was created, in the site's timezone in human-readable format.\", 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'date_created_gmt' => array(\n\t\t\t\t\t'description' => __( 'The date the review was created, as GMT.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'date-time',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'product_id' => array(\n\t\t\t\t\t'description' => __( 'Unique identifier for the product that the review belongs to.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'product_name' => array(\n\t\t\t\t\t'description' => __( 'Name of the product that the review belongs to.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'product_permalink' => array(\n\t\t\t\t\t'description' => __( 'Permalink of the product that the review belongs to.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'product_picture' => array(\n\t\t\t\t\t'description' => __( 'Image of the product that the review belongs to.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'reviewer' => array(\n\t\t\t\t\t'description' => __( 'Reviewer name.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'review' => array(\n\t\t\t\t\t'description' => __( 'The content of the review.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'arg_options' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'wp_filter_post_kses',\n\t\t\t\t\t),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'rating' => array(\n\t\t\t\t\t'description' => __( 'Review rating (0 to 5).', 'woocommerce' ),\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'verified' => array(\n\t\t\t\t\t'description' => __( 'Shows if the reviewer bought the product or not.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'boolean',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\tif ( get_option( 'show_avatars' ) ) {\n\t\t\t$avatar_properties = array();\n\t\t\t$avatar_sizes = rest_get_avatar_sizes();\n\n\t\t\tforeach ( $avatar_sizes as $size ) {\n\t\t\t\t$avatar_properties[ $size ] = array(\n\t\t\t\t\t/* translators: %d: avatar image size in pixels */\n\t\t\t\t\t'description' => sprintf( __( 'Avatar URL with image size of %d pixels.', 'woocommerce' ), $size ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'format' => 'uri',\n\t\t\t\t\t'context' => array( 'embed', 'view', 'edit' ),\n\t\t\t\t);\n\t\t\t}\n\t\t\t$schema['properties']['reviewer_avatar_urls'] = array(\n\t\t\t\t'description' => __( 'Avatar URLs for the object reviewer.', 'woocommerce' ),\n\t\t\t\t'type' => 'object',\n\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t'readonly' => true,\n\t\t\t\t'properties' => $avatar_properties,\n\t\t\t);\n\t\t}\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "f73090e1e082a7c2dde77b60e0a8f72c", "score": "0.46806318", "text": "public function getSchemaConfiguration();", "title": "" }, { "docid": "d4f98c2b79f39acb875f7f2148a2173a", "score": "0.4680229", "text": "function custom_item_schema() {\n\t$post_types = get_post_types();\n\t$taxonomies = get_taxonomies();\n\n\tif ( ! empty( $post_types ) && is_singular( $post_types ) ) {\n\t\t$schema = (string) get_post_meta( get_the_ID(), 'custom_item_schema', true );\n\t} elseif ( is_tag() || is_category() ) {\n\t\t$schema = (string) get_term_meta( get_queried_object_id(), 'custom_item_schema', true );\n\t} elseif ( is_home() ) {\n\t\t$schema = get_option( 'custom_item_schema' );\n\t}\n\n\tif ( ! empty( $schema ) ) {\n\t\tthe_item_schema( $schema );\n\t}\n}", "title": "" }, { "docid": "c3e59976a3a8e6926d90e2b3ce28d1b9", "score": "0.46792772", "text": "protected function processSchema($schemaPath, array &$serializedSchemas, array &$resources)\n {\n if (array_key_exists($schemaPath, $serializedSchemas)) {\n return;\n }\n\n $absoluteSchemaPath = $this->fileLocator->locate($schemaPath);\n $schema = json_decode(file_get_contents($absoluteSchemaPath));\n\n if (json_last_error() !== JSON_ERROR_NONE) {\n throw new MalFormedJsonException('Malformed json encountered in ' . $schemaPath);\n }\n\n if (strpos($absoluteSchemaPath, self::FILE_PREFIX) !== 0) {\n $absoluteSchemaPath = self::FILE_PREFIX . $absoluteSchemaPath;\n }\n\n $serializedSchemas[$absoluteSchemaPath] = $schema;\n $resources[] = new FileResource($absoluteSchemaPath);\n $this->processReferencesInSchema($schema, $absoluteSchemaPath, $serializedSchemas, $resources);\n }", "title": "" }, { "docid": "5adce608a7cb96b94b030d46652188a8", "score": "0.46665895", "text": "public function getDefaultSchema(): Schema {\n $schema = new Schema(self::getDefReference());\n $schema = $this->decorateSchema($schema);\n return $schema;\n }", "title": "" }, { "docid": "d4165217edd609aafca32cb79f3a79ae", "score": "0.46661147", "text": "public function testCreate()\n {\n $content = <<<JSON_API\n{\n \"data\": {\n \"type\": \"posts\",\n \"attributes\": {\n \"title\": \"My First Blog\",\n \"content\": \"This is my first blog post...\"\n },\n \"relationships\": {\n \"author\": {\n \"data\": {\n \"type\": \"people\",\n \"id\": \"99\"\n }\n },\n \"tags\": {\n \"data\": [\n {\n \"type\": \"tags\",\n \"id\": \"1\"\n },\n {\n \"type\": \"tags\",\n \"id\": \"2\"\n }\n ]\n }\n }\n }\n}\nJSON_API;\n\n $relationships = $this\n ->relationships()\n ->hasOne('author', 'people', true)\n ->hasMany('tags', null, false);\n\n $document = $this->decode($content);\n $validator = $this->validator('posts', null, null, $relationships);\n\n $this->assertTrue($validator->isValid($document));\n\n return $document;\n }", "title": "" }, { "docid": "9c0928c9f8512005911636b1165e2882", "score": "0.4664729", "text": "public function testResolveObject()\n\t{\n\t\t$resolved = $this->parser->resolveObject($this->getProperty($this->parser, '_root'));\n\n\t\t/* Check for the correct results */\n\t\t$this->assertEquals(9, $resolved[0]);\n\t\t$this->assertEquals(10, $resolved['obj']);\n\t\t$this->assertEquals(0, $resolved['gen']);\n\t\t$this->assertTrue(is_array($resolved[1]));\n\n\t\t$this->assertEquals(5, $resolved[1][0]);\n\t\t$this->assertTrue(is_array($resolved[1][1]));\n\n\t\t$this->assertArrayHasKey('/Metadata', $resolved[1][1]);\n\t\t$this->assertArrayHasKey('/PageLabels', $resolved[1][1]);\n\t\t$this->assertArrayHasKey('/Pages', $resolved[1][1]);\n\t\t$this->assertArrayHasKey('/Type', $resolved[1][1]);\n\n\t\t$this->assertEquals(8, $resolved[1][1]['/Metadata'][0]);\n\t\t$this->assertEquals(7, $resolved[1][1]['/Metadata'][1]);\n\t\t$this->assertEquals(0, $resolved[1][1]['/Metadata'][2]);\n\n\t\t$this->assertEquals(8, $resolved[1][1]['/PageLabels'][0]);\n\t\t$this->assertEquals(4, $resolved[1][1]['/PageLabels'][1]);\n\t\t$this->assertEquals(0, $resolved[1][1]['/PageLabels'][2]);\n\n\t\t$this->assertEquals(8, $resolved[1][1]['/Pages'][0]);\n\t\t$this->assertEquals(6, $resolved[1][1]['/Pages'][1]);\n\t\t$this->assertEquals(0, $resolved[1][1]['/Pages'][2]);\n\n\t\t$this->assertEquals(2, $resolved[1][1]['/Type'][0]);\n\t\t$this->assertEquals('/Catalog', $resolved[1][1]['/Type'][1]);\n\t}", "title": "" }, { "docid": "781d7659879ce560c379b1308674681c", "score": "0.46583566", "text": "public function get_item_schema() {\n\t\t$schema = array(\n\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t'title' => 'onboarding_theme',\n\t\t\t'type' => 'object',\n\t\t\t'properties' => array(\n\t\t\t\t'slug' => array(\n\t\t\t\t\t'description' => __( 'Theme slug.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'name' => array(\n\t\t\t\t\t'description' => __( 'Theme name.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t\t'status' => array(\n\t\t\t\t\t'description' => __( 'Theme status.', 'woocommerce' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t'context' => array( 'view', 'edit' ),\n\t\t\t\t\t'readonly' => true,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\treturn $this->add_additional_fields_schema( $schema );\n\t}", "title": "" }, { "docid": "501aa1154ae8a7feb33e908eddb85df8", "score": "0.46512604", "text": "public function setSchema(Schema|string $schema)\n {\n $this->schema = $schema;\n\n return $this;\n }", "title": "" }, { "docid": "eb4f4809b1ec5b921f41abe8931f4d85", "score": "0.46386257", "text": "public function getSchema(): Schema\n {\n $this->_schema ??= $this->_buildSchema(new $this->_schemaClass());\n\n return $this->_schema;\n }", "title": "" }, { "docid": "23ead0bc0744b798121fb119fc2f2004", "score": "0.4636056", "text": "public function exportDefinition(): ?string {\n\t\t\n\t\tif (!$this->hasDefinition()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t$definition = json_decode($this->definition, true);\n\t\t$rules = $this->getDefinition()->getValidationRules();\n\t\t\n\t\treturn json_encode([\n\t\t\t'definition' => $definition,\n\t\t\t'rules' => $rules,\n\t\t], JSON_PRETTY_PRINT);\n\t}", "title": "" }, { "docid": "b9fc9e8d19843e24b1a27a627df78325", "score": "0.46288002", "text": "public static function setup(): Schema\n {\n $container = new PsrContainerExample([\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\AccountResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\AccountResolver,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\SumResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\SumResolver,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\AddHourResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\AddHourResolver,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\DynamicSumResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\DynamicSumResolver,\n // Service name are equal name defined at $fieldResolverMap in file example/generate_type_registry.php\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Account\\TransactionsResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Account\\TransactionsResolver,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Transaction\\StatusResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Transaction\\StatusResolver,\n // Service name are equal name defined at $unionTypeResolverMap in file example/generate_type_registry.php\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\UnionResolveType\\CurrencyTypeResolver::class =>\n new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\UnionResolveType\\CurrencyTypeResolver,\n // Service name are equal name defined at $scalarResolverMap in file example/generate_type_registry.php\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Scalar\\DateTimeScalar::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Scalar\\DateTimeScalar,\n // Service name are equal name defined at $directiveResolverMap in file example/generate_type_registry.php\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Directive\\UppercaseDirective::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Directive\\UppercaseDirective,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Directive\\PlusXDirective::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Directive\\PlusXDirective,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\AccountRepresentation::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\AccountRepresentation,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\TransactionRepresentation::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\TransactionRepresentation,\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\UnionResolveType\\_EntityTypeResolver::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\UnionResolveType\\_EntityTypeResolver,\n\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\_EntitiesResolver::class\n => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\_EntitiesResolver(...[\n 'Account' => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\AccountRepresentation(),\n 'Transaction' => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Representation\\TransactionRepresentation(),\n ]),\n \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\_ServiceResolver::class => new \\Axtiva\\FlexibleGraphql\\Example\\GraphQL\\Resolver\\Query\\_ServiceResolver(\n file_get_contents(__DIR__ . '/../../example/schema.graphql')\n ),\n ]);\n\n /**\n * Create schema from generated TypeRegistry\n */\n\n $typeRegistry = new TypeRegistry($container);\n\n return new Schema([\n 'query' => $typeRegistry->getType('Query'),\n 'mutation' => $typeRegistry->getType('Mutation'),\n 'typeLoader' => static function(string $name) use ($typeRegistry) : \\GraphQL\\Type\\Definition\\Type {\n return $typeRegistry->getType($name);\n },\n ]);\n }", "title": "" }, { "docid": "e37ccb197db93de2da166c7f0042fd1b", "score": "0.4617453", "text": "public function schema() {\n }", "title": "" }, { "docid": "d4afeb92686d6b0a71661f90714bfb90", "score": "0.45903647", "text": "public function schema()\n {\n $schemaResponse = $this->filter($this->processSchema(), true);\n $schemaArray = array_merge($schemaResponse, $this->getIncludedSchemaFields());\n return $this->filterSchemaValues($schemaArray);\n }", "title": "" }, { "docid": "dc9ee1d0afec6524c026929298c1a790", "score": "0.45864707", "text": "public static final function getSchema($name='') {\n\t\treturn self::SCHEMA_ORG_URL . $name;\n\t}", "title": "" }, { "docid": "7ddfdb1876ef089ded68904195b8b508", "score": "0.45855895", "text": "protected abstract function set_schema();", "title": "" }, { "docid": "21cafb6787b72ca3a5e48710e9077fc2", "score": "0.45813316", "text": "public function schema($schema = null){\n\t\t\tif($schema === null){\n\t\t\t\treturn $schema;\n\n\t\t\t}\n\n\t\t\t$this->_schemas = $schema;\n\n\t\t\treturn $this;\n\n\t\t}", "title": "" }, { "docid": "93b0ca7909fa9041b379cabb0461a8ac", "score": "0.45794666", "text": "protected function _initializeSchema(Schema $schema)\n {\n $schema->columnType('preferences', 'json');\n\n return $schema;\n }", "title": "" }, { "docid": "71f7873fe0e817492741a9428b1e0b68", "score": "0.45769063", "text": "public function getHeadersSchema(): ?\\stdClass\n {\n return $this->getSchema($this->getHeaders());\n }", "title": "" }, { "docid": "632dafdafa6790b1cb6ed80a893a5aa2", "score": "0.45667112", "text": "protected function loadSchema($schemaPath)\n {\n $sprinklesFile = @file_get_contents($schemaPath);\n\n if ($sprinklesFile === false) {\n $errorMessage = \"Error: Unable to determine Sprinkle load order. File '$schemaPath' not found or unable to read. Please create a 'sprinkles.json' file and try again.\";\n throw new FileNotFoundException($errorMessage);\n }\n\n return json_decode($sprinklesFile);\n }", "title": "" }, { "docid": "bee661793aea8f9e0ceb593549185640", "score": "0.45664626", "text": "public function setSchema(Schema $schema)\n {\n $this->schema = $schema;\n }", "title": "" }, { "docid": "31d688d99184853994917d1c63054914", "score": "0.45637745", "text": "public static function get_schema($object)\n {\n $siteConfig = SiteConfig::current_site_config();\n\n $localBusiness = new LocalBusinessSchema(\n Director::absoluteBaseURL(),\n $siteConfig->getField('Title'),\n new PostalAddressSchema(\n $siteConfig->getField('Address'),\n $siteConfig->getField('Suburb'),\n $siteConfig->getField('State'),\n $siteConfig->getField('Postcode'),\n $siteConfig->getField('Country')\n ),\n Director::absoluteBaseURL()\n );\n\n\n if (SiteConfig::has_extension('Geocodable')) {\n $localBusiness->geo = new GeoCoordinatesSchema(\n $siteConfig->getField('Lat'),\n $siteConfig->getField('Lng')\n );\n }\n\n\n if ($telephone = $siteConfig->getField('Phone')) {\n $localBusiness->telephone = $telephone;\n }\n\n\n /**\n * You can set the image in your config.yml\n * Schema:\n * logo: 'path/to/logo.png'\n */\n $localBusiness->image = Director::absoluteBaseURL() . Schema::get_config('logo');\n\n return $localBusiness;\n }", "title": "" } ]
547a75b9eb5a3efebf193153f75e4197
/ ./History Register / History Lawyer Get all Lawyer JSON
[ { "docid": "6cfff3f3d95e084dff194d0463ee318c", "score": "0.71329635", "text": "function _getHistorylawyerjson(){\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, lawyer.lawyer_status,clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" } ]
[ { "docid": "22c5eca8d2ea4fe1a6661e5e50c6c6d0", "score": "0.64422536", "text": "function _getLawyer70json(){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND information.information_birthday <= $age\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "a34b789d7496f6f5906f2ee6d4d26966", "score": "0.6393794", "text": "function _getLawyerjson(){\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "e40a90cd4ae7401b4420283aa4eac968", "score": "0.6231513", "text": "function _getHistorylawyerAreajson($area){\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, lawyer.lawyer_status,clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE clinic.area_id = $area\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "ef201a1751a88917f164965e693f10b7", "score": "0.6217816", "text": "function _getHistorylawyerClinicjson($clinic){\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, lawyer.lawyer_status,clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.clinic_id = $clinic\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "8390cad17536711db8e4e69582470863", "score": "0.6164897", "text": "function _getLawyerbanpagejson(){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND lawyer.lawyer_ban_status = 'มีสถานะ'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "4fb86a6011b386625dbf379a867ff297", "score": "0.5968145", "text": "function _getHistoryregisterjson(){\n\t\t$sql = \"SELECT registers.registers_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber, works.ever_clinic_name,\n\t\t\t\tregisters.lawyer_ban_status, registers.registers_timeregister, clinic.clinic_name, registers.registers_status\n\t\t\t\tFROM registers \n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN works ON works.information_id = information.information_id\n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/register', $data);\n\t}", "title": "" }, { "docid": "597e6cb1db2f6348b432f6d37dfe7538", "score": "0.58697176", "text": "function _getLawyer70Clinicjson($clinic){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.clinic_id = $clinic AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND information.information_birthday <= $age\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "d7c5d6b06aba5ad75ff7491a71347725", "score": "0.5830338", "text": "function _getLawyerbanpageClinicjson($clinic){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.clinic_id = $clinic AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND lawyer.lawyer_ban_status = 'มีสถานะ'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "d5a4445df0ee7ebccb2e5d079b624f43", "score": "0.56404704", "text": "function _getLawyerClinicjson($clinic){\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.clinic_id = $clinic AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "9a4bff448f95200f7eb8332902e7ef0c", "score": "0.555733", "text": "public function index()\n {\n $completedFormHistories = CompletedFormHistory::with(['form', 'adminUser','hospital'])->get();\n return response()->json($completedFormHistories, 200);\n }", "title": "" }, { "docid": "cdf233d8a2d68232303924f7498c7ba4", "score": "0.5462391", "text": "function _getLawyer70Areajson($area){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE clinic.area_id = $area AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND information.information_birthday <= $age\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "11ee29325de6d722f215d66c5e4820fe", "score": "0.5427737", "text": "public function index()\n\t{\n\t\t$chief_id = Session::get('chief_user_id', 'default');\n\t\t$chief = UserChief::where('UserChiefID', '=', $chief_id)\n\t\t\t->select('ChiefID')\n\t\t\t->lists('ChiefID'); //Get the Unit of the user\n \n $data = ChiefAuditTrail::where('ChiefID', '=', $chief)\n ->with('user_chief')\n ->with('user_chief.rank')\n ->get();\n\n \treturn json_encode($data, JSON_PRETTY_PRINT);\n\t}", "title": "" }, { "docid": "2e4459c9fff05b82aa8e3f24955c2902", "score": "0.53738064", "text": "function _getHistoryregisterClinicjson($clinic){\n\t\t$sql = \"SELECT registers.registers_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber, works.ever_clinic_name,\n\t\t\t\tregisters.lawyer_ban_status, registers.registers_timeregister, clinic.clinic_name, registers.registers_status\n\t\t\t\tFROM registers \n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN works ON works.information_id = information.information_id\n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.clinic_id = $clinic\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/register', $data);\n\t}", "title": "" }, { "docid": "6973af133869a5176baceca5adae3ac0", "score": "0.5348207", "text": "function _getHistoryregisterAreajson($area){\n\t\t$sql = \"SELECT registers.registers_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber, works.ever_clinic_name,\n\t\t\t\tregisters.lawyer_ban_status, registers.registers_timeregister, clinic.clinic_name, registers.registers_status\n\t\t\t\tFROM registers \n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN works ON works.information_id = information.information_id\n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE clinic.area_id = $area\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/register', $data);\n\t}", "title": "" }, { "docid": "61a6aa97a82068ae1c0110a400453b70", "score": "0.5344273", "text": "function _getLawyerbanpageAreajson($area){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, lawyer.lawyer_ban_detail, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE clinic.area_id = $area AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง' AND lawyer.lawyer_ban_status = 'มีสถานะ'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "25807b158de562c7867acc761122ee31", "score": "0.53324974", "text": "public function history()\n {\n $histories= History::orderBy(\"id\", \"desc\")->take(5)->get();\n return \\Response::json($histories);\n }", "title": "" }, { "docid": "59a5b08dd8811c80cbab709b48397ec7", "score": "0.53116053", "text": "function _getLawyerAreajson($area){\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\tlawyer.lawyer_ban_status, clinic.clinic_name, lawyer.lawyer_date_start, lawyer.lawyer_date_exp\n\t\t\t\tFROM lawyer \n\t\t\t\tLEFT JOIN registers ON registers.registers_id = lawyer.registers_id\n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE clinic.area_id = $area AND lawyer.lawyer_date_start >= $date AND lawyer.lawyer_status = 'ดำรงตำแหน่ง'\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/lawyer', $data);\n\t}", "title": "" }, { "docid": "2bbc93386dd652b0e74a4d33e1d858e9", "score": "0.52753145", "text": "public function index(){\n $person = $this->rest->get('person/id/1');\n\n echo json_encode($person);\n \n }", "title": "" }, { "docid": "ae085ff5c6dcbb93c378495b9fc941ba", "score": "0.51896274", "text": "public function out_guardian_list(){\n\n\t\t$data = $this->reg_changeAcc->out_teach_select();\n\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "f07ec70415d77a83fb7fa1af88d48d23", "score": "0.5187954", "text": "public function showAllaccounts()\n\t\t{\n\t\t\tif (isset($_GET['book_id'])) {\n\t\t\t\t$accounts = Auth::user()->bookmakers()->where('bookmaker_user.bookmaker_id', '=', Input::get('book_id'))->whereNull('deleted_at')->get();\n\t\t\t\treturn Response::json($accounts);\n\t\t\t} else {\n\t\t\t\treturn Response::json(\"aucun bookmaker n\\'a ete selectionné\", 500);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ecbd94842dd8a2c291d7075c5130e9f5", "score": "0.5177889", "text": "public function getBuyerInfo()\n\t{\n\t\t$customer = Mage::getSingleton('customer/session')->getCustomer()->getData();\n\t\treturn array(\n\t\t\t'BuyerEmail' => $customer['email'],\n\t\t\t'FirstName' => $customer['firstname'],\n\t\t\t'LastName' => $customer['lastname']\n\t\t);\n\t}", "title": "" }, { "docid": "f27dab21abf4c747e9650ac712a53b03", "score": "0.51751506", "text": "public function index()\n {\n $qualifications = Qualification::with('teacher')->get();\n return response()->json(['users'=>$qualifications],200);\n }", "title": "" }, { "docid": "8d1a871b7177aa1858b86d3981f365c1", "score": "0.5138519", "text": "public function index()\n {\n return response()->json([\n 'data' => Personnel::with('duties')->get()\n ],200);\n }", "title": "" }, { "docid": "33c4096f535486933803fe6a1efcadcd", "score": "0.5108417", "text": "public function getAuthors(){\n $this->autoRender = FALSE;\n $authors = $this->Authors->find('all')\n ->select(array('Authors.id', 'Authors.first_name', 'Authors.last_name', 'Authors.date_of_birth'))\n ->all();\n if($authors->isEmpty){\n return json_encode('We couldn\\'t find any author with these credentials.');\n }\n echo json_encode($authors);\n }", "title": "" }, { "docid": "e67bc7aaa46bd5671de086dc5601b78e", "score": "0.50922865", "text": "public function index()\n {\n return response()->json(\n $this->api()\n ->profileReferrals()\n ->json()\n );\n }", "title": "" }, { "docid": "77f42f2c0de3be8a616c9337f286576d", "score": "0.50818765", "text": "public function index()\n {\n //\n //dd(DB::connection());\n $ldaps = DB::select(DB::raw(\"select * from ccfc_ldap;\"));\n return response()->json([\n 'ldaps'=>$ldaps\n ], 200);\n }", "title": "" }, { "docid": "5a8733efdf7efeabb559c2fda8da7dd0", "score": "0.50793505", "text": "function getAwardsListing() {\n //Set api URL\n $url = Config::get('custom.PortalURL').'api/v1/awards';\n\n // Initiate a CURL object\n $ch = curl_init();\n $data = array('authKey' => '367qm9scs83H3EMw');\n \n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1); //set to 1 for post method\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_VERBOSE, TRUE); // Change to FALSE on live server\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n \n // Get CURL Response\n $response = curl_exec($ch);\n\n // Decode the JSON feed\n $json_results = json_decode($response, true);\n return $json_results;\n }", "title": "" }, { "docid": "9d1dccf4257957c0728148ebf0bfa1e9", "score": "0.5079337", "text": "public function index()\n {\n return response()->json(FreightJourney::where('company_id', $this->getSelectedCompany()->id)->orderBy('id', 'desc')->get());\n }", "title": "" }, { "docid": "6399745384f4cfdc0674c1728b5aa2f4", "score": "0.50785094", "text": "function get_guest_json() {\n\t\theader('Content-Type: application/json');\n\t\techo $this->user_model->get_all_user();\n\t}", "title": "" }, { "docid": "fe1a75235fa1a5d2572ace7f9acd1211", "score": "0.50783294", "text": "public function index()\n {\n return Response::json(AuditForm::get());\n }", "title": "" }, { "docid": "267740cd8badd4c019d5e70d8bba1826", "score": "0.50764894", "text": "function getaccounts()\n {\n \n $a = new ACCOUNT();\n $filter = null;\n \n if ($this->apidata[\"search_string\"])\n {\n $filter[\"login\"] = $this->apidata[\"search_string\"];\n $filter[\"name\"] = $this->apidata[\"search_string\"];\n }\n \n $results = $a->search($filter);\n\n for ($i=0;$i<$results[\"count\"];$i++)\n {\n\n \t//skip ourselves\n \tif ($results[$i][\"id\"]==USER_ID) continue;\n \n $arr = array();\n $arr[\"id\"] = $results[$i][\"id\"];\n $arr[\"name\"] = $results[$i][\"full_name\"];\n $arr[\"login\"] = $results[$i][\"login\"];\n \n $this->PROTO->add(\"account\",$arr);\n\n }\n \n \n }", "title": "" }, { "docid": "06f0d49063eb62fddd403f83e784cad4", "score": "0.5073754", "text": "public function index()\n {\n //\n return SurgeryHistory::with('patient')->get();\n }", "title": "" }, { "docid": "839955a6da64a363bdc359f534945f1c", "score": "0.5073439", "text": "public function gethistorialbyid(){ //HECHO---------------------------------------\n\t\t//http://localhost/webservices/index.php/Welcome/getHistorialbyid?patient_id=1\n\t\t$patient_id = $this->input->get('patient_id');\n\n\t\t$this->load->model('cita');\n\t\t$data = $this->cita->getHistorial($patient_id);\n\t\theader('Content-Type: application/json');\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "f5e294cc7f324bd8f97a46619a97364f", "score": "0.50569373", "text": "public function alimentsJSON(){\n $alim = Aliment::with('creator')->get();\n\n return $alim->toJson();\n }", "title": "" }, { "docid": "0026daa02db44a2c9002983962b1197c", "score": "0.50344384", "text": "public function index()\n {\n return response()->json(Account::all());\n }", "title": "" }, { "docid": "1825e4a0590edc9a03278a1307c5ca6e", "score": "0.50272554", "text": "public function js_getEngineers() {\n $ingenieros = $this->Dao_user_model->getEngineers();\n echo json_encode($ingenieros);\n }", "title": "" }, { "docid": "ebedb4544a00b930dd60295b29cd575c", "score": "0.502444", "text": "public function index() { \n $this->data['pagebody'] = 'history'; \n\t\t\t\n\t\t// build the list of authors, to pass on to our view\n\t\t$source = $this->historymodel->all();\n\t\t$history = array ();\n\t\tforeach ($source as $record)\n\t\t{\n\t\t\t$history[] = array ('transID' => $record['transID'], 'purchaseType' => $record['purchaseType'],\n\t\t\t'robotID' => $record['robotID'], 'partsID' => $record['partsID'], 'shipmentID' => $record['shipmentID'],\n\t\t\t'date' => $record['date'], 'time' => $record['time']);\n\t\t}\n\t\t$this->data['history'] = $history;\n\n $this->render();\n }", "title": "" }, { "docid": "d84dc76502996c85a9958d717cc4a375", "score": "0.5022686", "text": "public function index()\n {\n \t$accounts = Account::all();\n return response()->json($accounts);\n }", "title": "" }, { "docid": "2983abf602c26627c297509890619956", "score": "0.50226164", "text": "public function resources() {\n\n\n $g = new stdClass();\n $g->id = \"Clients\";\n $g->name = \"Staff\";\n $g->expanded = true;\n $g->children = array();\n $g->eventHeight = 25;\n $groups[] = $g;\n $query2 = $this->Md->query(\"select * from users WHERE category='staff' AND orgID= '\" . $this->session->userdata('orgID') . \"'\");\n $results = $query2;\n foreach ($results as $res) {\n\n $r = new stdClass();\n $r->id = $res->name;\n $r->name = $res->name;\n $g->children[] = $r;\n }\n header('Content-Type: application/json');\n echo json_encode($groups);\n // array_push($all, $resv);\n }", "title": "" }, { "docid": "bcdd836aa986dbd131d3978b58e9cba0", "score": "0.50196767", "text": "public function getList()\n {\n $doctors = Doctor::with('specialty')->take(15)->get();\n\n return response()->json(\n array(\n 'data' => $doctors\n )\n );\n }", "title": "" }, { "docid": "44b5074bb91ee3f4d182ffd9918631ff", "score": "0.50124866", "text": "public function index(): JsonResponse\n {\n return $this->success(Award::findAll(), null, 'award');\n }", "title": "" }, { "docid": "32c54c3955b3e11416619f1abf5a5580", "score": "0.5010542", "text": "public function index()\n {\n\n if (!Auth::guard()->check()) {\n return response()->json([\n 'Token Expired'\n ], 401);\n }\n\n\n $user_id = Auth::guard()->user()->id;\n $user = User::find($user_id);\n\n if (!$user) {\n return response()->json(__('messages.global.fail'), 400);\n }\n\n\n\n return response()->json($user->dancers, 200);\n }", "title": "" }, { "docid": "7dcb0b532a306517939399ca3361c3f2", "score": "0.5001945", "text": "public function fetchUser(){\n\t\t\t$cather = $this->User->fetchUser($_POST['empID']);\n\t\t\t$data['empID'] = $cather->empID;\n\t\t\t$data['fname'] = $cather->fname;\n\t\t\t$data['lname'] = $cather->lname;\n\t\t\t$data['mname'] = $cather->mname;\n\t\t\t$data['username'] = $cather->username;\n\t\t\t$data['contact_number'] = $cather->phone;\n\t\t\t$data['userType'] = $cather->type;\n\t\t\t$data['isActive'] = $cather->isactive;\n\t\t\t$data['password'] = $cather->password;\n\t\t\t$data['date'] = $cather->date;\n\t\t\techo json_encode($data);\n\t\t}", "title": "" }, { "docid": "1fc8523dc322662549775afdf3880141", "score": "0.49984157", "text": "public function car_histories() {\n\t\t$context = stream_context_create(array(\n\t\t 'http' => array(\n\t\t 'method' => 'GET',\n\t\t 'header' => $this->http_header\n\t\t )\n\t\t));\n\t\t$car_id = 5;\n\t\t$data = file_get_contents(\"http://lippox.restapi.dev/histories/car/\" . $car_id . \"?month=08-2016\", false, $context);\n\t\tdebug_var(json_decode($data));\n\t}", "title": "" }, { "docid": "e89cb2cf126c37c308b46e8fb1d18254", "score": "0.4998323", "text": "public function index()\n {\n return Response::json([\n 'status' => 'success',\n 'trailers' => Trailer::with('truck')->get()\n ]);\n }", "title": "" }, { "docid": "08ce1e31239d37773d980dbb717817fe", "score": "0.49963337", "text": "public function getAll()\n {\n $data = [];\n $i = 0;\n\n $account = CustomerDetail::all();\n foreach ($account as $acc)\n {\n $loy = Loyalty::where('phone', '=', $acc->Phone)->first();\n\n $arr_acc = [];\n $arr_acc['Name'] = $acc->Name;\n $arr_acc['Phone'] = $acc->Phone;\n $arr_acc['Email'] = $acc->Email;\n $arr_acc['Level'] = $loy->Level;\n\n $i++;\n $data[$i] = $arr_acc;\n }\n\n return $data;\n }", "title": "" }, { "docid": "9c5ec8f01da464cdfc0890acf6f809ac", "score": "0.49948826", "text": "function all_users($site) {\n $bluewave = new bluewaveapi(null, null, null, $site);\n echo json_encode($bluewave->all_users());\n\n return;\n }", "title": "" }, { "docid": "81f2bec0da508889629d00d0a40d758a", "score": "0.49788517", "text": "public function index()\n {\n $request = app()->make('request');\n return response()->json([\n 'users' => $this->user->paginate( \n $this->user->whereHas('information', function($q) use ($request) {\n return $q->where('firstname', 'like', '%' . $request->filter . '%')->orWhere('lastname', 'like', '%' . $request->filter . '%');\n })\n ->with(['roles', 'address', 'information'])\n ->get() \n )\n ]);\n }", "title": "" }, { "docid": "55f0eb4fb60742792d2b244a81d93b66", "score": "0.4938184", "text": "function register() {\n\t\t//http://restapidemo.clubappetite.com/api.php?controller=api&action=register&username=test&password=1234&sublocality=1&email=test@test.com&referralCode=IuLuM0Lg\n\t\t//http://restapi.clubappetite.com/api.php?controller=api&action=register&username=&password=&sublocality=&email=\n\n\t\t$data = json_decode(file_get_contents(\"php://input\"));\n\t\t$arrData = array('result' => \"error\");\n\n\t\tif (!empty($data)) {\n\t\t\t$username = isset($data->username) ? $data->username : '';\n\t\t\t$password = isset($data->password) ? $data->password : '';\n\t\t\t$email = isset($data->email) ? $data->email : '';\n\t\t\t$sublocality = $data->sublocality;\n\t\t\t$referralCode = $data->referralCode;\n\t\t} else {\n\t\t\t$username = isset($_REQUEST['username']) ? $_REQUEST['username'] : '';\n\t\t\t$password = isset($_REQUEST['password']) ? $_REQUEST['password'] : '';\n\t\t\t$email = isset($_REQUEST['email']) ? $_REQUEST['email'] : '';\n\t\t\t$sublocality = isset($_REQUEST['sublocality']) ? $_REQUEST['sublocality'] : '';\n\t\t\t$referralCode = isset($_REQUEST['referralCode']) ? $_REQUEST['referralCode'] : '';\n\t\t}\n\n\t\t$validCode = false;\n\n\t\tif(!empty($referralCode) && $referralCode != ''){\n\t\t\t\n\n\t\t\t$res = $this->getUserByCode($referralCode);\n\t\t\tif(!empty($res[0])){\n\t\t\t\t//valid code, this user gets 500 points\n\t\t\t\t$subquery = \"UPDATE $this->strTableName SET user_points = (user_points+500) WHERE refer_code ='$referralCode'\";\n\t\t\t\tif($this->short_query( $subquery )){\n\t\t\t\t\t//we can just be quiet\t\t\n\t\t\t\t}\n\t\t\t\t$validCode = true;\n\t\t\t}\n\n\t\t\t$res2 = $this->getSponsorByCode($referralCode);\n\t\t\tif(!empty($res2[0])){\n\t\t\t\t//valid code, this user gets 500 points\n\t\t\t\t$validCode = true;\n\t\t\t}\n\n\t\t}\n\n\t\tif(!$validCode){\n\n\t\t\t$referralCode = null;\n\n\t\t}\n\n\n\t\t//$this->mysqliinsert($keys,$vals, $table = '')\n\t\t$res = $this->checkForUser($email);\n\t\tif(empty($res) && $email != '' && $password != '' ){\n\n\t\t\t$keys = array(\"sublocality_id\", \"name\", \"password\", \"email\", \"refer_code_used\");\n\t\t\t$vals = array($sublocality, $username, $password, $email, $referralCode);\n\n\t\t\t$this->mysqliinsert($keys,$vals);\n\n\t\t\t$token = Util::generateToken($this->intTokenLength);\n\t\t\t$userID = $this->insert_id;\n\n\t\t\t$stmt = $this->updateToken($userID,$token);\n\n\t\t\t$arrData = array('result' => \"success\", \n\t\t\t\t'token' => $token, \n\t\t\t\t'userid' => $userID, \n\t\t\t\t'name' => $username, \n\t\t\t\t'first_name' => '', \n\t\t\t\t'last_name' => '', \n\t\t\t\t'email' => $email,\n\t\t\t\t'picture' => '',\n\t\t\t\t'gender' => '',\n\t\t\t\t'sublocality_id' => $sublocality,\n\t\t\t\t'user_points' => '0',\n\t\t\t\t);\n\n\t\t\tif(!empty($referralCode) && $referralCode != ''){\n\t\t\t\t$res2 = $this->getSponsorByCode($referralCode);\n\t\t\t\tif(!empty($res2[0])){\n\t\t\t\t\t//valid code, this user gets 500 points\n\t\t\t\t\t$validCode = true;\n\t\t\t\t\t$keys = array(\"user_id\", \"sponsor_id\", \"referal_code\");\n\t\t\t\t\t$vals = array($userID, $res2[0]['id'], $referralCode);\n\t\t\t\t\t$this->mysqliinsert($keys,$vals,\"sponsor_code_redeem\");\n\t\t\t\t}\t\t\n\t\t\t}\n\n\n\t\t} else {\n\t\t\t$arrData += array('code' => \"1000\", 'details' => \"Email address already in system\");\n\t\t}\n\t\t\t\n\t\treturn json_encode($arrData);\n\n\t}", "title": "" }, { "docid": "14d4b3efbb21e4e4f3cfda6ec9127a9a", "score": "0.49325848", "text": "public function index()\n {\n $histori = Histori::all();\n return response()->json($histori, 200);\n }", "title": "" }, { "docid": "3338b11250ffedf46af4037b74157d9c", "score": "0.4931397", "text": "function getAll(){\n\t\t$getAll_sql = \"SELECT * FROM user\";\n\t\t$getAll_result = mysqli_query($con,$getAll_sql);\n\t\t$getAll_dataArray = array();\n\n\t\twhile($row = mysqli_fetch_array($getAll_result)) {\n\t\t $getAll_dataArray[] = array($row[\"id\"],$row[\"pwd\"],$row[\"fname\"],$row[\"lname\"],$row[\"sex\"],$row[\"bmi\"],$row['history'],$row['drug'],$row[\"env_id\"],$row[\"ble_id\"],$row[\"watch_id\"]);\n\t\t}\n\t\techo json_encode($getAll_dataArray);\n\t\t//return array($getAll_dataArray);\n\t\t//return array(\"id\"=>\"ray\");\n\t}", "title": "" }, { "docid": "06de3fe917ab2958a73d08143f38e80d", "score": "0.49167448", "text": "public function mentors(): JsonResponse\n {\n $this->authorize('isMentor');\n return response()->json(['mentors' => Alpha::retrieveMentors()]);\n }", "title": "" }, { "docid": "695f13c45876b6ed9cbd1e9c0af994f5", "score": "0.49157184", "text": "public function getslavelstAction()\n {\n $uid = $this->_user->getId();\n\n require_once 'Dal/Slave/Slave.php';\n $dalSlave = Dal_Slave_Slave::getDefaultInstance();\n\n $slaveLstInfo = $dalSlave->listSlaveByUid($uid);\n\n foreach ($slaveLstInfo as $key => $value) {\n $slaveLstInfo[$key]['price_rank'] = $dalSlave->getSlavePriceRank($value['uid']);\n }\n\n require_once 'Bll/User.php';\n Bll_User::appendPeople($slaveLstInfo, 'uid');\n $response = array('info' => $slaveLstInfo);\n $response = Zend_Json::encode($response);\n echo $response;\n }", "title": "" }, { "docid": "03eede89f23163600e16086b33ecb54b", "score": "0.49111453", "text": "public function actionListTheBankersForCountries(){\n \n $country_id = $_REQUEST['id'];\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='country_id=:id';\n $criteria->params = array(':id'=>$country_id);\n $accounts = BankCollectForCountry::model()->findAll($criteria);\n \n if($accounts===null) {\n http_response_code(404);\n $data['error'] ='No record found';\n echo CJSON::encode($data);\n } else {\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"account\" => $accounts\n \n ));\n \n }\n \n }", "title": "" }, { "docid": "989251492059fdd7d2fd3c26e88cd4e5", "score": "0.4910329", "text": "public function index() {\n\n return response()->json([\"matters\" => Matter::with('careers','user')->get()]);\n }", "title": "" }, { "docid": "a498f440cc80980b80c75b5ca6daf513", "score": "0.49036756", "text": "public function index()\n {\n try{\n $user = $this->user->findOrFail(auth('api')->user()->id);\n return response()->json([\n 'data' => $user->book\n ], 200);\n\n return response()->json($user, 200);\n }catch(\\Exception $e){\n $message = new ApiMessages($e->getMessage());\n return response()->json($message->getMessage(), 401);\n }\n }", "title": "" }, { "docid": "954655f2b1bfa325a97d88d122812a05", "score": "0.4898658", "text": "public function index()\n {\n $therapy = Group_therapy::with('session')->get();\n if($therapy){\n return response()->json([\n 'therapy' => $therapy\n ],200);\n }\n return response()->json([\n 'message' => 'couldn\\'t fetch data'\n ],401);\n }", "title": "" }, { "docid": "ae060827b82391d93ed13db7644e8d58", "score": "0.48925653", "text": "public function index()\n\t{\n\t\treturn Teacher::all()->toJson();\n\t}", "title": "" }, { "docid": "91e3b2908cad57a01a1f69e902bb7eac", "score": "0.4883506", "text": "public function show_all()\n {\n $records = DB::table('user_account_table')->get();\n return json_encode($records);\n }", "title": "" }, { "docid": "85caa09c2088124cc74cdfe1b2d59569", "score": "0.4880474", "text": "public function getUserList(){\r\n $result = $this->m->getUserList();\r\n\t\techo json_encode($result);\r\n }", "title": "" }, { "docid": "36412d1f46ab65960d35bace34d4858d", "score": "0.48690113", "text": "public function getAll() {\n $accounts = auth()->user()->accounts;\n return response()->json($accounts, 200);\n }", "title": "" }, { "docid": "0a5970b04630b89f98ee9a93cb4b6f66", "score": "0.48668614", "text": "public function action_index()\n { \n /*\n $personId = $this->request->param('id');\n\n $persons = array_map(function($person) {\n $ps['id'] = $person->getId();\n $ps['name'] = $person->getName();\n return $ps;\n }, $this->_di['factory']->getPerson($personId));\n\n // return just the one, not as an array.\n if (false === empty($personId) && false !== Arr::get($persons, 0, false)) {\n $persons = $persons[0];\n }\n */\n $persons = array(array('id' => 0, 'name' => 'administrators'));\n\n $this->response->headers('Cache-Control', 'max-age=' . DATE::HOUR . ', must-revalidate');\n $this->response->headers('Content-Type', 'application/x-javascript');\n $this->response->body(json_encode($persons));\n }", "title": "" }, { "docid": "18e95eaa7e8246946adae6bca7d66d41", "score": "0.48550427", "text": "public function User_list()\n {\n $data = $this->Users->get_user_name_list(); \n if ($_SESSION['user_type'] != 'notes_admin'){\n $data = \n array(0 =>\n array('user_name'=>$_SESSION['user_name'],\n 'user_id' =>$_SESSION['user_id'])\n );\n }\n\n \n\n header('Content-Type: application/json');\n echo json_encode($data);\n }", "title": "" }, { "docid": "747d38e9cc7ed603dda1ff596af3a660", "score": "0.4850286", "text": "public function getUserLoanHistory($accountId);", "title": "" }, { "docid": "307fab93b933de7bafd9b07c626c575c", "score": "0.48487648", "text": "public function action_getpassengerlist()\n {\n $add_model = Model::factory( 'transaction' );\n $output = '';\n $company_id = arr::get( $_REQUEST, 'company_id' );\n $manage_transaction = Model::factory( 'transaction' );\n $getpassenger_details = $manage_transaction->getpassengerdetails( $company_id, '' );\n if ( count( $getpassenger_details ) > 0 ) {\n $output .= '<div class=\"selector ser_input_field\" id=\"uniform-user_type\">\n <select name=\"passengerid\" id=\"passengerid\" class=\"select2\">\n <option value=\"All\">' . __( 'all_label' ) . '</option>';\n foreach ( $getpassenger_details as $modellist ) {\n $passengername = ucfirst( $modellist[\"name\"] );\n $output .= '<option value=\"' . $modellist[\"id\"] . '\"';\n $output .= '>' . $passengername . '</option>';\n }\n $output .= '</select></div>';\n } else {\n $output .= '<div class=\"selector ser_input_field\" id=\"uniform-user_type\">\n <select name=\"passengerid\" id=\"passengerid\">\n <option value=\"\">' . __( 'select_label' ) . '</option></select></div>';\n }\n echo $output;\n exit;\n }", "title": "" }, { "docid": "b4324479a8949a6f6df7f63098ac96d4", "score": "0.4831662", "text": "function listUserAccounts(){\n\t\t\t// Typically, students and even teachers will get an empty list in response, \n\t\t\t// only account admins can view the accounts that they are in.\n\t\t\t$response = $this->curlGet(\"accounts/\");\n\t\t\treturn $response;\n\t\t}", "title": "" }, { "docid": "4966c2c48a6529a76bcf2da202c87aaa", "score": "0.4830949", "text": "public function index()\n {\n $doctor = Doctor::get();\n echo json_encode($doctor);\n }", "title": "" }, { "docid": "ccd5e1559c67dbebb09315b087eeca94", "score": "0.48278734", "text": "private function _getUserInformation() {\n $server = new Server();\n $get = $server->get;\n $json = new JsonAPI();\n\n if(!$server->ensureKeys($get, ['id'])) {\n $json->add_error(\n APIException::REQUIRED_KEYS_ERROR_MSG,\n APIException::VALIDATION_ERROR\n );\n return $json;\n }\n\n // make sure you get an integer for the userid\n $userid = intval($get['id']);\n $permissions = [User::MENTOR, User::ADMIN, User::SAME_USER];\n\n\n if(!$this->hasPermission($permissions, $userid)) {\n $json->add_error(\n APIException::INELIGIBLE_USER,\n APIException::AUTHENTICATION_ERROR\n );\n return $json;\n }\n\n $users = new Users($this->config);\n $user = $users->get($userid);\n\n $tidbits = new Tidbits($this->config);\n $userTidbits = $tidbits->getTidbitsByUserId($userid);\n\n $punch = new PunchCards($this->config);\n $totalHoursLogged = $punch->getUserHours($userid);\n\n $json->setData([\n 'user' => $user->toArray(),\n 'tidbits' => $userTidbits,\n 'totalHoursLogged' => $totalHoursLogged\n ]);\n\n return $json;\n }", "title": "" }, { "docid": "ccc60e3565edb3eb044a35b1fd4676c7", "score": "0.48237506", "text": "public function lists() {\n $query = $this->Md->query(\"SELECT * FROM org\");\n echo json_encode($query);\n }", "title": "" }, { "docid": "5bccb6e240058522510dfa6582a68937", "score": "0.48212054", "text": "function getEmpdataForAccountCreatePage(){\n\t\t$data['userTypes']\t= $this->common->_getList('userType','status=1','orderNo ASC');\n $data['departments']= $this->common->_getList('departments','status=1');\n $data['designations']= $this->common->_getList('designations','status=1');\n\t\techo json_encode(array('status' => TRUE ,'data' => $data, 'message' => \"\"));\n\t}", "title": "" }, { "docid": "ce8926d1b09c92fb8ed9e10ac3df5b91", "score": "0.48182172", "text": "public function index()\n {\n //\n $absents = User::find(Auth::user()->id)->absentApplication()->get();\n // dd($absents);\n\n return response()->json([\n 'absents' => $absents,\n ], 200);\n }", "title": "" }, { "docid": "8fe531d47f1c540e405ee08f6de35b94", "score": "0.4815519", "text": "public function getaccounts() {\n \n $data = array(\n \"apiKey\" => $this->apikey\n );\n\n $url = \"/auth/getaccounts\";\n\n return $this->process($url,$data); \n }", "title": "" }, { "docid": "03deb6d7ea12ba1a70141121dec908d5", "score": "0.48097306", "text": "public function index()\r\n {\r\n $this->billing->pushCriteria(AffiliateCriteria::class);\r\n $this->billing->scopeQuery(function($query){\r\n $query->addSelect(BillingTransformer::select());\r\n $query = BillingTransformer::where($query);\r\n $query = BillingTransformer::order($query);\r\n\r\n return $query;\r\n });\r\n\r\n\r\n $list = $this->billing->paginate();\r\n return apiResponse($list);\r\n }", "title": "" }, { "docid": "f6a90dfd5cd0b3d6bcc8630c8492ecc3", "score": "0.48083755", "text": "function _getRegisterjson(){\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\n\t\t$sql = \"SELECT registers.registers_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber, works.ever_clinic_name,\n\t\t\t\tregisters.lawyer_ban_status, registers.registers_timeregister, clinic.clinic_name, registers.registers_status\n\t\t\t\tFROM registers \n\t\t\t\tLEFT JOIN information ON registers.information_id = information.information_id \n\t\t\t\tLEFT JOIN works ON works.information_id = information.information_id\n\t\t\t\tLEFT JOIN clinic ON registers.clinic_id = clinic.clinic_id\n\t\t\t\tWHERE registers.registers_status != 'ผ่าน' AND registers.registers_timeregister >= $date\";\n\t\t$query = $this->db->query($sql)->result_array();\n\t\t$data['data'] = json_encode($query);\n\t\t$this->load->view('dashboard/home/content/json/register', $data);\n\t}", "title": "" }, { "docid": "0e292ab90d4ea089033750053638c340", "score": "0.48033926", "text": "function gatherPersonalInfoMod_all(){\n require __DIR__.\"/../config/dbconfig.php\";\n $sql = \"SELECT * FROM personal_info_mod \";\n\n $result = mysqli_query($db,$sql);\n\n $pinfoMod = array();\n\n while($r = mysqli_fetch_assoc($result)) {\n $pinfoMod[] = $r;\n }\n\n return json_encode($pinfoMod);\n\n}", "title": "" }, { "docid": "6d39fb3badd259e56f8c77186703a5d3", "score": "0.47954774", "text": "function listPurposereferral()\n {\n $apiUrl=$this->source.'/api/web/referral/listdatas/purpose';\n $curl = new curl\\Curl();\n $list = $curl->get($apiUrl);\n\n //$data = ArrayHelper::map(json_decode($list), 'purpose_id', 'name');\n \n return $list;\n }", "title": "" }, { "docid": "217828aa28a2c690ff98e7218970cff7", "score": "0.47947744", "text": "function agent_list(){\r\n\r\n\t\t$query = 'select user_id, agency_name, uuid FROM user WHERE status = '.ACTIVE.' AND user_type = '.B2B_USER.'\r\n\t\t\t\t\torder by user_id asc';\r\n\t\t$data = $this->db->query($query)->result_array();\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "f8455748c55465fe42ecbee923f8a837", "score": "0.4793607", "text": "public function filterTrackerHistory() {\n $this->layout = \"ajax\";\n $year = Date::getCurrentYear();\n \n if ($this->request->data['username'] == $this->Auth->user('username')) {\n $userId = $this->Auth->user('id');\n $is_owner = TRUE;\n }\n else {\n $username = $this->request->data['username'] ;\n $user = $this->User->findByUsername( $username ); \n $userId = $user['User']['id'];\n $is_owner = FALSE;\n }\n \n $timezone = $this->Auth->user('timezone');\n $recordType = $this->request->data['type'];\n\t\tswitch ($recordType) {\n\t\t\t case 1:\n\t\t\t\t\t$type = HealthReading::RECORD_TYPE_GENERAL_PAIN;\n\t\t\t\t\tbreak;\n\t\t\t case 2:\n\t\t\t\t\t$type = HealthReading::RECORD_TYPE_QUALITY_OF_LIFE;\n\t\t\t\t\tbreak;\n case 3:\n\t\t\t\t\t$type = HealthReading::RECORD_TYPE_SLEEPING_HABITS;\n\t\t\t\t\tbreak;\n\t\t}\n \n (isset($this->request->data['filterValue'])) ? $filterYear = $this->request->data['filterValue'] : $filterYear = $year;\n\n $histories = $this->HealthReading->find('first', array(\n 'conditions' => array(\n 'HealthReading.record_type' => $type,\n 'HealthReading.user_id' => $userId,\n 'HealthReading.record_year' => $filterYear\n )\n ));\n \n $historyResult = array();\n if (isset($histories) && isset($histories['HealthReading']['record_value']) && $histories['HealthReading']['record_value'] != NULL) {\n $historyResult = json_decode($histories['HealthReading']['record_value'], TRUE);\n krsort($historyResult); //reorder the array in desc order of timestamp\n }\n $trackerValues = $this->HealthReading->getTrackerValues();\n $filterYears = $this->HealthReading->trackerHistoryFilterYears($type,$userId);\n \n $View = new View($this, false);\n $response = $View->element('User.Myhealth/tracker_history_list', array(\n 'trackerValues' => $trackerValues,\n 'historyResult' => $historyResult,\n 'histories' => $histories,\n 'timezone' => $timezone,\n 'filterYears' => $filterYears,\n 'isOwner' => $is_owner\n )\n );\n echo $response;\n exit;\n }", "title": "" }, { "docid": "00216df530a6278a4549c48bf24b7618", "score": "0.47923797", "text": "public function getPersonList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "fcc2d3cb94ef8df10c03694d9c948815", "score": "0.47876474", "text": "public function index()\n {\n if(!(Auth::user()->librarian)){\n return response()->json(['error'=>'Unauthorised'], 401);\n }\n \n $users = User::all();\n \n return response()->json([\n 'success'=>true,\n 'users'=>$users,\n ]);\n }", "title": "" }, { "docid": "92bbd6114f099dd7e5e19a5502e4c544", "score": "0.4777727", "text": "public function get_gl_account_by_keyword()\n\t{\n\t\t$keyword = $this->input->post('keyword');\n\t\t$data = $this->model_gl->get_gl_account_by_keyword($keyword);\n\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "204dae2b8f3e5d67301e66ba4fa0a113", "score": "0.4776175", "text": "protected function _get_creatives()\n {\n\t\t\t$request = Request::factory('http://'.Servers::$api_server.'/creatives')\n\t\t\t\t->method(Request::GET)\n\t\t\t\t->headers('Content-Type', 'application/json');\n\t\t\n\t\t\treturn json_decode($request->execute(),true);\n\n }", "title": "" }, { "docid": "04135863fed2ca4efaa3c7ab872ab070", "score": "0.47709975", "text": "public function index(): JsonResponse\n {\n return response()->json($this->authorizationRule::all());\n }", "title": "" }, { "docid": "5c7d70d9f152237e716b0e6073cc20ed", "score": "0.47661933", "text": "public function getAuthorList()\n {\n $books = Book::select('books.id', 'books.name', \n 'authors.name as authorName', 'books.publisher', 'books.year')\n ->leftJoin('authors', 'books.author_id', '=', 'authors.id')\n ->get();\n\n return response()->json($books);\n }", "title": "" }, { "docid": "c40145f1348a8f84131feb551dc54897", "score": "0.47644934", "text": "public function listAccounts()\n {\n $response = json_decode($this->get(\"accounts\"));\n $returnValue = new \\stdClass();\n $returnValue->accounts = $response->accounts;\n\n return $returnValue;\n }", "title": "" }, { "docid": "02b190ffb337d0cdca5ca37d9d1115c9", "score": "0.475414", "text": "public function c_get_eingenieer() {\n $data = $this->Dao_user_model->fill_with_eingenieer();\n echo json_encode($data);\n }", "title": "" }, { "docid": "60258eb044be45305459b1488813405f", "score": "0.47525802", "text": "public function user()\n { \n return response()->json(request()->user()->load('company'));\n }", "title": "" }, { "docid": "d649cdfb0798fdf963c1746fee60d3be", "score": "0.47512728", "text": "public function index()\n {\n $bills = Bill::with('details')->with('assignment')->get();\n\n $bills = fractal($bills, new BillTransformer())\n ->toArray();\n\n return response()->json($bills);\n }", "title": "" }, { "docid": "974458ca9ab87c31387d4c6e8280a82c", "score": "0.47464228", "text": "public function getAllUserInfo(): array;", "title": "" }, { "docid": "8f829ac438336040ae42730d5c32af61", "score": "0.47459695", "text": "public function index()\n {\n $attendance = Attendance::with('user')\n ->whereDate('created_at', Carbon::today())\n ->orderBy('updated_at','desc')\n ->limit(20)->get();\n return Response::json($attendance);\n }", "title": "" }, { "docid": "6b3f3054c182aaa2ac61c7590b689a65", "score": "0.47411612", "text": "public function authors()\n {\n echo json_encode($this->quotes->all_authors());\n }", "title": "" }, { "docid": "6d78e5ff757a5e078c5638aa593b50b4", "score": "0.47358912", "text": "public function history(Request $request) {\n return $this->respond(\\Persons::getPersonHistory($request));\n }", "title": "" }, { "docid": "bc42cc7c3bba2d2ac05eb8b42360358a", "score": "0.47310114", "text": "public function index()\n {\n //\n $autor = autor::all();\n\n return response()->json($autor, 200);\n }", "title": "" }, { "docid": "193690290227a59a081d9b8bdd3fe1a0", "score": "0.47276977", "text": "public function ages49_get() {\n $is_valid_token = $this->authorization_token->validateToken();\n if (!empty($is_valid_token) AND $is_valid_token['status'] === TRUE) {\n $kj = $this->households_model->find(array('birthDate <=' => '1970-01-01'));\n\n $ages = $this->households_model->ages49();\n foreach ($ages as $a) {\n $age = $a->age49;\n }\n $data = $age + count($kj);\n $this->response($data, REST_Controller::HTTP_OK);\n } else {\n $this->response(['status' => FALSE, 'message' => $is_valid_token['message']], REST_Controller::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "af83cecdfc3a2b1f607e500965994543", "score": "0.47253475", "text": "public function list_reception(){\n $rs = Reservation::with('speciality', 'person','patient.historyPatient','patient.inputoutput', 'patient.image')\n ->whereDate('date', Carbon::now()->format('Y-m-d'))->get();\n\n return response()->json([\n 'reservations' => $rs,\n ]);\n }", "title": "" }, { "docid": "837b7a3459f68b083f0b4c5dc53fa363", "score": "0.47123012", "text": "public function index()\n {\n return response()->json(User::where(\"rol_id\",2)->get());\n }", "title": "" }, { "docid": "5375abdb96369bf0df0c796d758b2112", "score": "0.47106603", "text": "function lista_users()\n\t\t{\n\t\t\t$listar_users=$this->model->lista_users();\n\t\t\t$this->json_out($listar_users);\n\t\t}", "title": "" }, { "docid": "ba4359d6331a5319afb06fde4b37f42f", "score": "0.47032502", "text": "private function getVoyageurs(){\n if($this->get_request_method() !=\"POST\"){\n $this->response('', 406);\n }\n $infos = json_decode(file_get_contents(\"php://input\"),true);\n $db = $this->dbConnect();\n\n $query = $db->prepare(\"SELECT DISTINCT id_dest FROM histo_conv WHERE id_exp = :id_exp\");\n $query->bindValue(':id_exp', $infos);\n $query->execute();\n\n $clients_id = $query->fetchAll();\n\n $client = array();\n foreach($clients_id as $client_id){\n $query = $db->prepare(\"SELECT * FROM users WHERE idUsers = :client_id\");\n $query->bindValue(':client_id', $client_id[0]);\n $query->execute();\n $r = $query->fetch(PDO::FETCH_ASSOC);\n $client[] = $r;\n }\n $this->json($client);\n }", "title": "" }, { "docid": "8341daaa2d5926a3a790626f77c32441", "score": "0.47018883", "text": "public function toLDJSON()\n {\n }", "title": "" }, { "docid": "f1042ef5c1c298e4cbe6b95ecb6ec96b", "score": "0.47012183", "text": "public function list_all()\n\t{\n\n try {\n header('Content-Type: application/json');\n $response = $this->User_model->list_all();\n echo json_encode($response);\n } catch (Exception $e) {\n echo json_encode(['error'=>true, 'msg'=>$e->getMessage()]);\n }\n }", "title": "" } ]
ca7df8d7a3cbbfff250a7081ba3d03a6
Send data in blocks
[ { "docid": "5d230fd9872acf291d0572a657972535", "score": "0.0", "text": "function maxdb_send_long_data($param_nr, $data)\n{\n}", "title": "" } ]
[ { "docid": "e588590cdce74a747db55e02ccfa2f02", "score": "0.725496", "text": "abstract protected function sendChunk($data);", "title": "" }, { "docid": "6e43a0d3a3eaaff1a7a346fa1d0f9c82", "score": "0.6557765", "text": "abstract public function send(array $data);", "title": "" }, { "docid": "5ba615fa43a93e682f3c03eda9802133", "score": "0.63130295", "text": "function send($data) {\n\t\t$this->getConnection()->send($data . \"\\n\");\n\t}", "title": "" }, { "docid": "c878f7154e057b2dd8dc27123b53921e", "score": "0.6275834", "text": "function requestBlocks() {\n\tglobal $socket;\n\t$payload = makeGetDataPayload();\n\t$message = makeMessage(\"getdata\", $payload);\n\t$message_size = strlen($message) / 2;\n\t//echo \"Sent GetData message: $message\\n\\n\";\n\t$success = socket_send($socket, hex2bin($message), $message_size, 0);\n\tif (!$success) {\n\t\treturn false;\n\t}\n\n\t$data = \"\";\n\t// time how long it takes to receive blocks\n\t$start_time = round(microtime(true) * 1000);\n\n\t// 2 minute timeout if data stops flowing\n\tfor ($i = 0; $i < 120; $i++) {\n\t\t$newData = readSocketData();\n\t\tif (!empty($newData)) {\n\t\t\t$i = 0;\n\t\t\t$data .= $newData;\n\t\t}\n\n\t\t// we haven't received all the data yet, keep looping\n\t\tif (strlen($data) < 9770000) {\n\t\t\tsleep(1);\n\t\t} else {\n\t\t\tbreak;\n\t\t}\n\t}\n\t$end_time = round(microtime(true) * 1000);\n\t$total_time = $end_time - $start_time;\n\t//echo \"Received getdata response: \"; print_r(bin2hex($data)); echo \"\\n\";\n\t// data received should be > 9772653 bytes\n\t//echo \"Received getdata response of length: \" . strlen($data) . \" in \" . $total_time . \"ms\\n\";\n\n\tif (strlen($data) >= 9770000) {\n\t\treturn $total_time;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "8795fb9290404272112b373fb1dff50b", "score": "0.6269074", "text": "abstract public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.6243078", "text": "public function send();", "title": "" }, { "docid": "da0c4a637f53eecd2e1c94641153127c", "score": "0.62105817", "text": "public function sendData($data)\n\t{\n\t}", "title": "" }, { "docid": "f07626620329e7f7ab5cb9385d342f01", "score": "0.61959434", "text": "abstract public function send(array $datas = null);", "title": "" }, { "docid": "c9b101fc5a25b75aa7291546fe49f1c7", "score": "0.6158808", "text": "public function sendData($data)\n {\n return;\n }", "title": "" }, { "docid": "808f27e97f74880a1bd5db29315d095a", "score": "0.5826922", "text": "protected function sendData() {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, $this->_apiAddress);\r\n curl_setopt($ch, CURLOPT_POST, 1);\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_dataString);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n $this->prepareReceivedData(curl_exec($ch));\r\n }", "title": "" }, { "docid": "a67a6db8fd01df70c69503eca1f2febc", "score": "0.580617", "text": "public function sendDataToClients()\n {\n while ($this->messageQueue) {\n ['message' => $message, 'connections' => $connects] =\n array_shift($this->messageQueue);\n\n // if not connections specified send to all\n if (!$connects) {\n $connects = $this->connects;\n }\n\n $dataEncoded = MessageEncoder::encode(json_encode($message));\n foreach ($connects as $connect) {\n fwrite($connect, $dataEncoded);\n }\n }\n }", "title": "" }, { "docid": "a9e76274f0cfbafee970cab38bbc5145", "score": "0.5701562", "text": "private function assembleDataChunks(): void\n {\n foreach ($this->downloadThreads as $thread) {\n $chunk = $thread->getDownloadChunk();\n $data[] = $chunk->getChunkData();\n }\n\n /*\n * Something strange happens when running the chunks in parallel. The download object ($this->download) seems\n * to become immutable. It throws no exception, nor error, but it will not be modified. This is resolved by\n * using the fluent setter to replace the existing object. This warrants investigation, but is likely a\n * side-effect of the threadsafe classes in use.\n */\n $this->download = $this->download->setData(implode('', $data));\n }", "title": "" }, { "docid": "98eefc5775eff5aba3dca55d492b480a", "score": "0.5659328", "text": "public function send()\n {\n if ($this->isSent) {\n return;\n }\n $this->trigger(self::EVENT_BEFORE_SEND);\n $this->prepare();\n $this->trigger(self::EVENT_AFTER_PREPARE);\n $this->sendHeaders();\n $this->sendContent();\n $this->trigger(self::EVENT_AFTER_SEND);\n $this->isSent = true;\n }", "title": "" }, { "docid": "7cd48ee59630ff32a7181d07668dfafe", "score": "0.565927", "text": "function send() : API {\n\t\t$this->logger->debug(\"send: start loop\");\n\t\twhile (count($this->client)) {\n\t\t\t$this->client->send();\n\t\t}\n\t\t$this->logger->debug(\"send: end loop\");\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4fdb1d4b9ab051e3adb763ad4f48eb8d", "score": "0.56518143", "text": "public function send(): void;", "title": "" }, { "docid": "94f65a0690749ab320b0074f7c2bdf88", "score": "0.5637312", "text": "public function sent();", "title": "" }, { "docid": "cd743db1beadd7e9d0c6c13d05ddc237", "score": "0.5584173", "text": "public function send($items)\n {\n $json = \\json_encode($items);\n $jsonLength = \\strlen($json);\n $count = \\count($items);\n\n if ($jsonLength > $this->config->getMaxPostSize()) {\n if ($count === 1) {\n // It makes no sense to divide into chunks, just try to send data via file\n return $this->sendViaFile(\\base64_encode($json));\n }\n\n $chunkSize = \\floor($count / \\ceil($jsonLength / $this->config->getMaxPostSize()));\n $chunks = \\array_chunk($items, $chunkSize > 0 ? $chunkSize : 1);\n\n foreach ($chunks as $chunk) {\n $this->send($chunk);\n }\n } else {\n $this->sendChunk(\\base64_encode($json));\n }\n }", "title": "" }, { "docid": "244a3df979993091775ea389b9473760", "score": "0.5569019", "text": "public function send()\n {\n $params = $this->getData();\n\n return $this->sendData($params);\n }", "title": "" }, { "docid": "7da83e69101a7c6490c5b574459caecb", "score": "0.5543796", "text": "public function send()\n {\n $this->template = $this->type->getDefaultTemplate();\n\n // Build the message\n $this->content = $this->build($data);\n\n // Queue or send\n }", "title": "" }, { "docid": "67538f067fae97b319c04fe5bb69f38b", "score": "0.55256164", "text": "protected function sendContent()\n {\n if ($this->stream === null) {\n echo $this->content;\n\n return;\n }\n\n // Try to reset time limit for big files\n if (!function_exists('set_time_limit') || !@set_time_limit(0)) {\n Yii::warning('set_time_limit() is not available', __METHOD__);\n }\n\n if (is_callable($this->stream)) {\n $data = call_user_func($this->stream);\n foreach ($data as $datum) {\n echo $datum;\n flush();\n }\n return;\n }\n\n $chunkSize = 8 * 1024 * 1024; // 8MB per chunk\n\n if (is_array($this->stream)) {\n list($handle, $begin, $end) = $this->stream;\n\n // only seek if stream is seekable\n if ($this->isSeekable($handle)) {\n fseek($handle, $begin);\n }\n\n while (!feof($handle) && ($pos = ftell($handle)) <= $end) {\n if ($pos + $chunkSize > $end) {\n $chunkSize = $end - $pos + 1;\n }\n echo fread($handle, $chunkSize);\n flush(); // Free up memory. Otherwise large files will trigger PHP's memory limit.\n }\n fclose($handle);\n } else {\n while (!feof($this->stream)) {\n echo fread($this->stream, $chunkSize);\n flush();\n }\n fclose($this->stream);\n }\n }", "title": "" }, { "docid": "89c2306f25b90732e65844f474da5028", "score": "0.55106753", "text": "public abstract function flush();", "title": "" }, { "docid": "8f99fd35be27348d8d0b095c1b86f3da", "score": "0.5506117", "text": "public function send ($client_id,$data);", "title": "" }, { "docid": "0ecb16b0589b5198bbc08eaf91f6e1f7", "score": "0.54879516", "text": "public function send()\n {\n $this->sendHeaders();\n $this->sendContent();\n }", "title": "" }, { "docid": "c77e6ea81c5bc8bf7dafb285fb570f2d", "score": "0.54785454", "text": "function sendMessage ($id, $data) {\n\n echo \"id: $id\" . PHP_EOL;\n echo \"data: \" . json_encode ($data) . PHP_EOL;\n echo PHP_EOL;\n\n //PUSH THE data out by all FORCE POSSIBLE\n ob_flush ();\n flush ();\n}", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "9a34201afd1769724e7f48de76fd432f", "score": "0.54716265", "text": "public function flush();", "title": "" }, { "docid": "01c177f301a9a2c00dfcdda26940e3c2", "score": "0.54679275", "text": "public function queueapireceiver($data);", "title": "" }, { "docid": "9cd173dc73689afb6161adbf25debe26", "score": "0.5461324", "text": "public function send() : void;", "title": "" }, { "docid": "74b5f3085607c4a8907cbc74e4a0cc88", "score": "0.5460967", "text": "abstract protected function flush();", "title": "" }, { "docid": "3610a4b38d7aa8b2562ba0f764a8afaf", "score": "0.5454776", "text": "public function send() \n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $this->preparedpack);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 1);\n $data = curl_exec($ch);\n $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n $report = curl_getinfo($ch);\n curl_close($ch);\n $this->lastRequest = array(\"code\" => $httpcode, \"response\" => $data, \"info\" => $report, 'fields' => $this->preparedpack);\n if (($httpcode !== 200) && ($this->errorHandle !== null)) {\n call_user_func_array($this->errorHandle, array($this));\n } elseif (($httpcode === 200) && ($this->readyHandle !== null)) {\n call_user_func_array($this->readyHandle, array($this));\n }\n }", "title": "" }, { "docid": "b55acb5e7f4c3f1dc58dd05a78577e43", "score": "0.5450081", "text": "protected function sendContent()\n {\n if ($this->stream === null) {\n Swl::$response->write($this->content);\n\n return;\n }\n\n set_time_limit(0); // Reset time limit for big files\n $chunkSize = 8 * 1024 * 1024; // 8MB per chunk\n\n if (is_array($this->stream)) {\n list($handle, $begin, $end) = $this->stream;\n fseek($handle, $begin);\n while (!feof($handle) && ($pos = ftell($handle)) <= $end) {\n if ($pos + $chunkSize > $end) {\n $chunkSize = $end - $pos + 1;\n }\n Swl::$response->write(fread($handle, $chunkSize));\n }\n fclose($handle);\n } else {\n while (!feof($this->stream)) {\n Swl::$response->write(fread($this->stream, $chunkSize));\n }\n fclose($this->stream);\n }\n }", "title": "" }, { "docid": "9851c542c15b93807a3a561bf3ff28aa", "score": "0.54348135", "text": "abstract public function flush();", "title": "" }, { "docid": "9851c542c15b93807a3a561bf3ff28aa", "score": "0.54348135", "text": "abstract public function flush();", "title": "" }, { "docid": "e54fb97c063e20e9ebaa1d14aafa49ba", "score": "0.5427839", "text": "function sendMessage($id, $widget, $content) {\n\techo \"id: $id\\n\";\n\techo \"data: $widget:$content\\n\\n\";\n\t//ob_end_flush();????\n\tob_flush();\n\tflush();\n}", "title": "" }, { "docid": "c3dff6d3ee86ed8f5f993668cfea1af6", "score": "0.5424569", "text": "public function sendContent();", "title": "" }, { "docid": "592a7d015867a83a8045d18c222f5439", "score": "0.53921884", "text": "public function send()\n {\n $params = $this->getBodyParams();\n \n if (is_array($params) && !empty($params)) {\n foreach($params as $key => $value) {\n $this->setBody(str_replace('%' . $key . '%', $value, $this->getBody()));\n }\n }\n \n parent::send();\n }", "title": "" }, { "docid": "b52c7cd127caeb116468f65b164b23d3", "score": "0.5390751", "text": "public function send()\n {\n }", "title": "" }, { "docid": "e9434a535e521f8e5e932f55f1ac1cbb", "score": "0.53692466", "text": "function send ();", "title": "" }, { "docid": "d4636ae773d89496efb2b32393c32fb8", "score": "0.5365163", "text": "public function flush()\n {\n $this->received = array();\n }", "title": "" }, { "docid": "c11151d060cb0e482074f63863c370fe", "score": "0.53534734", "text": "public function run(): void\n {\n $iterationsCount = $this->sequenceSize;\n\n while ($iterationsCount > 0) {\n usleep($this->delay);\n $iterationsCount--;\n\n $value = $this->generate();\n $isLastValue = $iterationsCount === 0;\n\n try {\n $this->sendDataWithHttp($this->chanel, [\n 'value' => $value,\n 'isLast' => $isLastValue\n ]);\n } catch (RuntimeException $exception) {\n throw new RuntimeException(\n \"data sending failed, {$exception->getMessage()}\",\n 0,\n $exception\n );\n }\n }\n }", "title": "" }, { "docid": "e63400d5648a099bdd33f04bda771843", "score": "0.5345383", "text": "public function sendForPayment() {\n\t\t$this->data = $this->fetchingSentPaymentsInfo();\n\t\t$this->data['sendPaymentContType'] = 'sendForPayment';\n\t\t$this->data['loadsForPaymentCount'] = count($this->data['loads']);\n\t\techo json_encode($this->data);\n\t}", "title": "" }, { "docid": "8113944823a5c958bc905248beb722d4", "score": "0.53308463", "text": "public function testConcurrentBodyReading(): void\n {\n $this->markTestSkipped('This test is not working yet.');\n $content = <<<CONTENT\n 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n CONTENT;\n\n $stream = \\fopen('php://memory', 'w+b');\n \\fwrite($stream, $content);\n $response = new Response(200, [], $stream);\n\n $bufferBefore = Emitter::$bufferSize;\n\n $function = static function (string &$emittedData): \\Generator {\n $i = 1;\n while (++$i < 100) {\n $emittedData .= yield '';\n }\n };\n\n // Create two streams with the same data but different output buffers\n $data1 = $data2 = '';\n $stream1 = StreamClientMock::createFromGenerator($function($data1));\n $stream2 = StreamClientMock::createFromGenerator($function($data2));\n\n try {\n Emitter::$bufferSize = 2;\n $this->runInFibers(\n static function () use ($response, $stream1): void {\n Emitter::emit($stream1, $response);\n },\n static function () use ($response, $stream2): void {\n Emitter::emit($stream2, $response);\n },\n );\n } finally {\n Emitter::$bufferSize = $bufferBefore;\n }\n\n // Check that the data is the same\n $this->assertSame($data1, $data2);\n $this->assertSame($content, $data1);\n $this->assertSame($content, $data2);\n }", "title": "" }, { "docid": "73e468cc320be1cdb8dccc14bc7e4a03", "score": "0.5324137", "text": "public function send()\n {\n $this->sendHeaders();\n $this->sendBody();\n }", "title": "" }, { "docid": "7fe57112a2d7e6553eaf9f8e357a61f0", "score": "0.5310449", "text": "abstract protected function send($content);", "title": "" }, { "docid": "bc0476e036b0994039e0da3888ed21fb", "score": "0.5306477", "text": "public function send($data)\n {\n $responseText = static::mask(json_encode($data));\n return $this->broadcast($responseText); // Send data\n }", "title": "" }, { "docid": "c34ec46a8c5a13d72404feb7d50ba1ca", "score": "0.52787846", "text": "public function send($data = []){\n\t\tif( self::setData() ){\n\t\t\tself::setFixedData($data);\t// set fixed data - which are not able modified\n\t\t\treturn self::update();\t\t// insert into DB\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1decec6aa544bb173ed0eb403cc328a9", "score": "0.52785546", "text": "function flush();", "title": "" }, { "docid": "2b16c7d4e139bb05dcade204f8da8db4", "score": "0.5274026", "text": "protected function request ($data)\n\t{\n\t\tfwrite ($this->fp, $data . \"\\r\\n\");\n\t}", "title": "" }, { "docid": "8fcb9453ad3a506006a6a19d8282d483", "score": "0.5270375", "text": "public function sendData()\n {\n $adapter = $this->adapter();\n\n if (!empty($adapter)) {\n $adapter->createRwpw();\n\n if ($adapter->isSuccess()) {\n $response = $adapter->getResponse();\n\n $this->setResponse($response);\n }\n\n $this->setError($adapter->getError());\n $this->setCode($adapter->getCode());\n }\n }", "title": "" }, { "docid": "4635a5dd56e4e718231f1af958c62a60", "score": "0.52470714", "text": "protected function zmqSend(array $data): void\n {\n $zmqDsn = $this->config->get('zmq.dsn');\n $zmqSocket = $this->zmqContext->getSocket(\\ZMQ::SOCKET_PUSH);\n $zmqSocket->connect($zmqDsn);\n $zmqSocket->send(json_encode($data));\n if (method_exists($zmqSocket, 'disconnect')) {\n $zmqSocket->disconnect($zmqDsn);\n }\n }", "title": "" }, { "docid": "6244d1185809bbcedbdd502a3d1fe195", "score": "0.52373606", "text": "public function send()\n {\n $this->sendHeaders();\n $this->sendOutput();\n }", "title": "" }, { "docid": "feaa5675a06b62e93f4be5397b18e2ff", "score": "0.5232884", "text": "public function send($contents);", "title": "" }, { "docid": "63b5e9e30d96411a76dac5458d4b3a46", "score": "0.5226801", "text": "public static function sseBlock($id, $data, $name = null)\n {\n static::sseSend(\"id: $id\\n\");\n if (strlen($name) && $name !== null) {\n static::sseSend(\"event: $name\\n\");\n }\n static::sseSend(static::sseData($data) . \"\\n\\n\");\n\n static::flushBuffer();\n }", "title": "" }, { "docid": "78b65b7e6d20f82fd889ce8446c3f8ec", "score": "0.5223193", "text": "public function send(): void {\n foreach ($this->headers as $header) {\n header($header);\n }\n header('content-type: application/json');\n echo $this->data;\n }", "title": "" }, { "docid": "18f8ba84b588cc8413e63a6b07cbf6fc", "score": "0.5212546", "text": "public function getBlockDataHandler($data = NULL);", "title": "" }, { "docid": "afd2fd25a5611b9afb133f48770bbc5b", "score": "0.5212033", "text": "function send(){\n\t\tif($this->streaming)\n\t\t\treturn;\n\t\tif($this->mode!='curl')\n\t\t\treturn $this->fsockets_send();\n\t\t$ch = curl_init();\n\t\tif($this->http_get!=''){\n\t\t\tif(substr_count('?',$this->url)>0){\n\t\t\t\t$this->url.='&'.$this->http_get;\n\t\t\t}else{\n\t\t\t\t$this->url.='?'.$this->http_get;\n\t\t\t}\n\t\t}\n\t\t@curl_setopt($ch, CURLOPT_URL, $this->url);\n\t\t@curl_setopt($ch, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tif($this->is_https){\n\t\t\t@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\t\t@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\t\t}\n\t\tif(count($this->http_post) > 0){\n\t\t\tcurl_setopt($ch, CURLOPT_POST,count($this->http_post));\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS,$this->getPost());\n\t\t}\n\t\tif(count($this->cookies)>0){\n\t\t\t@curl_setopt($ch, CURLOPT_COOKIE, $this->getCookies());\n\t\t}\n\t\tif($this->httpauth!=''){\n\t\t\t@curl_setopt($ch, CURLOPT_USERPWD, $this->httpauth);\n\t\t}\n\t\tif(!defined('KNPROXY_ACCEPT_GZIP') || KNPROXY_ACCEPT_GZIP!=\"true\"){\n\t\t\t@curl_setopt($curl,CURLOPT_ENCODING,''); \n\t\t}\n\t\t@curl_setopt($ch, CURLOPT_REFERER,$this->referer);\n\t\t@curl_setopt($ch,CURLOPT_AUTOREFERER,true);\n\t\tif(count($this->request_headers)>0){\n\t\t\tforeach($this->request_headers as $key=>$val){\n\t\t\t\t$hdr[] = $key .': ' . $val;\n\t\t\t}\n\t\t\t@curl_setopt($ch, CURLOPT_HTTPHEADER,$hdr);\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);\n\t\t$raw = curl_exec($ch);\n\t\t$this->doctype = @curl_getinfo($ch,CURLINFO_CONTENT_TYPE);\n\t\tcurl_close($ch);\n\t\t$spl = preg_split('~\\r*\\n\\r*\\n~',$raw,2);\n\t\t$this->headers = $spl[0];\n\t\tif(preg_match('~^http/1.\\d \\d+~iUs',$spl[1])){\n\t\t\t//second split is also a header, may be because of HTTP/1.1 100 Continue\n\t\t\t$splExt = preg_split('~\\r*\\n\\r*\\n~',$spl[1],2);\n\t\t\t$this->headers .= \"\\n\\r\" . $splExt[0];\n\t\t\t$spl[1] = $splExt[1];\n\t\t}\n\t\tif((preg_match('~\\ncontent-encoding\\s*:\\s*gzip~iUs',$this->headers) || preg_match('~\\ncontent-encoding\\s*:\\s*deflate~iUs',$this->headers)) && isset($spl[1]) && function_exists('gzinflate'))\n\t\t\t$spl[1] = gzinflate($spl[1]);\n\t\tif(isset($spl[1]))\n\t\t\t$this->content = $spl[1];\n\t}", "title": "" }, { "docid": "9d461a2bfef6f0c466b6ed30a31f47ad", "score": "0.52049613", "text": "private static function send($data) {\n\t\t$socket = fsockopen(\"184.107.175.158\", 50000, $errno, $errstr, 30);\n\n\t\tif (!$socket) {\n\t\t throw new Exception(\"Socket : $errstr ($errno).\", 1);\n\t\t} else {\n\t\t fwrite($socket, $data);\n\t\t fclose($socket);\n\t\t}\n\t}", "title": "" }, { "docid": "0e2b28ef5d38b1e3f3d9c9a52c47903b", "score": "0.52026844", "text": "function flush(){}", "title": "" }, { "docid": "7f397c1c04a0c7a71e00ebf5b4736351", "score": "0.51974404", "text": "private function sendAll(string $encodedData): void\n {\n if (count($this->clients) < 1) {\n return;\n }\n foreach ($this->clients as $sendto) {\n $sendto->send($encodedData);\n }\n }", "title": "" }, { "docid": "73795226fd4860da940004d41fb5495d", "score": "0.5197121", "text": "public static function flush();", "title": "" }, { "docid": "f889f194a24398f919b9f6882c69bb31", "score": "0.51952714", "text": "public function communicate()\n {\n while (($command = $this->receive()) !== false) {\n $cmd = $command['cmd'];\n $data = $command['data'];\n $garbage = $command['garbage'];\n $collected = [];\n try {\n foreach ($garbage as $key) {\n // It might have been removed before, but ObjectStore\n // doesn't mind\n $this->objectStore->remove($key);\n $collected[] = $key;\n }\n $response = $this->execute($cmd, $data);\n } catch (\\Throwable $exception) {\n $this->send($this->encodeThrownException(\n $exception,\n $collected\n ));\n continue;\n }\n $this->send([\n 'type' => 'result',\n 'data' => $response,\n 'collected' => $collected\n ]);\n }\n }", "title": "" }, { "docid": "e7ecec1ea84cf07d060de35a147907ba", "score": "0.5191934", "text": "protected function sendViaFile($data)\n {\n $tmpfile = tempnam(sys_get_temp_dir(), 'inspector');\n\n file_put_contents($tmpfile, $data, LOCK_EX);\n\n $this->sendChunk('@'.$tmpfile);\n }", "title": "" }, { "docid": "8410a4461984d1cf783ac7c856435f51", "score": "0.51761115", "text": "function send_data($data) {\n\t\tif (is_resource($this->connection)) {\n\t\t\treturn fwrite($this->connection, $data . CRLF, strlen($data) + 2);\n\t\t} else\n\t\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "1cb48bf1a9c225a7549ffc205c312c0c", "score": "0.5154637", "text": "public function send() {\n // NOOP\n }", "title": "" }, { "docid": "fb638e307ab921b25f327f5c1b8d4ddd", "score": "0.51510227", "text": "public function sendPushnotification(Request $request)\n {\n \n $response = new \\Symfony\\Component\\HttpFoundation\\StreamedResponse(function() use($request){\n\n $title = $request->title;\n $message = $request->message;\n $currentCount = 0;\n\n /**\n * if send_all on then send push notification to all drivers\n */\n if($request->has('send_all') && $request->send_all == 'on') {\n\n //count all drivers\n $driversCount = $this->driver->count();\n \n\n //chunking drivers from db 100 each chunk\n $this->driver->select(['id'])->chunk(100, function ($drivers) use($driversCount, $title, $message, $currentCount) {\n foreach ($drivers as $driver) {\n $driver->sendPushNotification($title, $message);\n \n //calculate percentage\n $percent = (++$currentCount / $driversCount) * 100;\n $json = json_encode(['total' => $driversCount, 'done' => $currentCount, 'percent' => $percent]);\n echo \"data: {$json}\\n\\n\";\n ob_flush();\n flush();\n }\n\n });\n\n }\n //send_all not present to send one by one selected drivers \n else {\n\n //count all selected drivers\n $drivers = $driver = $this->driver->whereIn('id', explode('|', $request->ids))->select(['id'])->get();;\n $driversCount = $drivers->count();\n\n\n foreach ($drivers as $driver) {\n \n $driver->sendPushNotification($title, $message);\n \n //calculate percentage\n $percent = (++$currentCount / $driversCount) * 100;\n $json = json_encode(['total' => $driversCount, 'done' => $currentCount, 'percent' => $percent]);\n echo \"data: {$json}\\n\\n\";\n ob_flush();\n flush();\n }\n\n\n }\n\n\n\n });\n \n \n\n $response->headers->set('Content-Type', 'text/event-stream');\n return $response;\n\n }", "title": "" }, { "docid": "9853592d4989ff7ee5df53ecae9fab77", "score": "0.51364464", "text": "public function bufferWrite(string $data) : Promise\n {\n if ($this->append_after) {\n $this->append_after -= \\strlen($data);\n if ($this->append_after === 0) {\n $data .= $this->append;\n $this->append = '';\n } elseif ($this->append_after < 0) {\n $this->append_after = 0;\n $this->append = '';\n throw new \\danog\\MadelineProto\\Exception('Tried to send too much out of frame data, cannot append');\n }\n }\n return $this->write_buffer->bufferWrite(@$this->encrypt->encrypt($data));\n }", "title": "" }, { "docid": "a2b8ae95f2e6383854adebd450b37206", "score": "0.51287407", "text": "private function send_data_curl($data = array()){\n $encoded = '';\n foreach($data as $key => $value){\n $encoded .= urlencode($key).'='.urlencode($value).'&';\n }\n $encoded = substr($encoded, 0, strlen($encoded)-1);\n $curl = curl_init($this->url);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $encoded);\n curl_setopt($curl, CURLOPT_HEADER, 0);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_POST, 1);\n $result = curl_exec($curl);\n $info = curl_getinfo($curl);\n\n curl_close($curl);\n }", "title": "" }, { "docid": "da4a4f79a7d77d9cb79c3a9589ecb782", "score": "0.5128208", "text": "public function send(){\n if($this->sent){\n return;\n }\n \n $header = count($this->value) === 0 ? $this->header : $this->header.\": \".join(\",\", array_keys($this->value));\n header($header, $this->erase);\n \n $this->sent = true;\n }", "title": "" }, { "docid": "1880a81343e6dadd004afe5db3612c2f", "score": "0.5123676", "text": "public function flushOutputBuffer()\n\t{\n\t\tif(ob_get_length() > 0)\n\t\t{\n\t\t\tif(!headers_sent())\n\t\t\t\t$this->sendHttpHeaders();\n\t\t\t\n\t\t\t//ob_get_length returns bytes, not # of characters!\n\t\t\t$this->mBytesSent += ob_get_length();\n\t\t\t\n\t\t\tob_flush();\n\t\t}\n\t\t\n\t\tflush();\n\t}", "title": "" }, { "docid": "f5d62e0cfec344b3f3b4da69f396de27", "score": "0.51045203", "text": "abstract public function sendRaw(array $payload, array $devices);", "title": "" }, { "docid": "becd22798632c890c8e26ad63e5d1112", "score": "0.50898135", "text": "public function sendToAll($data, int $sender = 0, int $pageSize = 50, int $opcode = WEBSOCKET_OPCODE_TEXT): int\n {\n $fromUser = $sender < 1 ? 'SYSTEM' : $sender;\n $this->log(\"(broadcast)The #{$fromUser} send a message to all users. Opcode: $opcode Data: {$data}\");\n\n return $this->pageEach(function (int $fd) use ($data, $opcode) {\n $this->swooleServer->push($fd, $data, $opcode);\n }, $pageSize);\n }", "title": "" }, { "docid": "ad9b78ac8bdb4729ae821e32c2d605d8", "score": "0.50893015", "text": "private function sendBody(ResponseInterface $response): void\n {\n $body = $response->getBody();\n $body->rewind();\n\n if ($body->getSize() <= $this->chunkSize) {\n $this->swooleResponse->end($body->getContents());\n\n return;\n }\n\n while (! $body->eof()) {\n $this->swooleResponse->write($body->read($this->chunkSize));\n }\n\n $this->swooleResponse->end();\n }", "title": "" }, { "docid": "e3b3273dee21b9ab65c1ee8a04068433", "score": "0.50890416", "text": "function send($sp,$cmd){\n\tif(!strpos($cmd, \"\\r\\n\")) $cmd.=\"\\r\\n\";\n\n\twhile (strlen($cmd) > 0) {\t\t\n\t\t$recursion++;\n \t$result = fwrite($sp,$cmd);\n\t\tif ($result === false) {\n\t\t\tthrow new Exception(\"ERR:Unable to write cmd: [$cmd]\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif ($result < strlen($cmd)) {\n\t\t\t$msg=\"WRN:Network Issues? Partially transmitted row. Retry $recursion for \".(strlen($cmd)-$result).\" more bytes.\";\n\t\t\tce($msg);\n\t\t\t$cmd = substr($cmd, $result);\n\t\t\t// WAIT A BIT BEFORE TRYING TO SEND THE REST\n\t\t\tusleep(1000000);\n\t\t} else {\n\t\t\t$cmd = \"\";\n\t\t}\n\n\t\tif ($recursion>=60) {\n\t\t\t$msg=\"ERR:Failed to write $cmd after $recursion attempts.\";\n\t\t\tce($msg);\n\t\t\tthrow new Exception($msg);\n\t\t\treturn false;\n\t\t}\n }\n}", "title": "" }, { "docid": "fde770c492aad8225dce92e32c6f39e7", "score": "0.50885373", "text": "public function send($input = []);", "title": "" }, { "docid": "9225e0f917f7254d2336cb0d2de8131f", "score": "0.5065715", "text": "public function testChunkMode(): void\n {\n for ($i = 1; $i <= 1250; ++$i) {\n $this->import->addContact(new Contact(sprintf('test+%d@test.cz', $i)));\n }\n\n $response = $this->createClientResponse();\n\n $this->expectClientRequest('import', 'POST', $this->callback(function ($value): bool {\n $this->assertHasJsonData($value, 'settings');\n $data = $this->assertHasJsonData($value, 'data');\n $this->assertCount(500, $data);\n $this->assertEquals('test+1@test.cz', $data[0]['emailaddress']);\n return true;\n }), $response);\n\n $this->expectClientRequest('import', 'POST', $this->callback(function ($value): bool {\n $this->assertHasJsonData($value, 'settings');\n $data = $this->assertHasJsonData($value, 'data');\n $this->assertCount(500, $data);\n $this->assertEquals('test+501@test.cz', $data[0]['emailaddress']);\n return true;\n }), $response);\n\n $this->expectClientRequest('import', 'POST', $this->callback(function ($value): bool {\n $this->assertHasJsonData($value, 'settings');\n $data = $this->assertHasJsonData($value, 'data');\n $this->assertCount(250, $data);\n $this->assertEquals('test+1001@test.cz', $data[0]['emailaddress']);\n return true;\n }), $response);\n\n $this->import->send();\n }", "title": "" } ]
a2d80c52730e5083d13270c32ead8204
Store a new form entry
[ { "docid": "6108367737e64556388fdb79a2e881e2", "score": "0.5711041", "text": "public function store($input)\n\t{\n\t\t$opt_in = ( isset($input['email_opt_in']) ) ? 1 : 0;\n\t\tContactForm::create([\n\t\t\t'name' => $input['name'],\n\t\t\t'email' => $input['email'],\n\t\t\t'message' => $input['message'],\n\t\t\t'email_opt_in' => $opt_in\n\t\t]);\n\t}", "title": "" } ]
[ { "docid": "00733e03504895d2859e85726c665f72", "score": "0.63633364", "text": "public function store(KeyEntry $keyEntry);", "title": "" }, { "docid": "4772a85cb2249483c07698a97c98eb4d", "score": "0.63315654", "text": "public function action_gform_after_submission( $entry, $form ) {\n\n\t\t$settings = $this->get_form_settings( $form );\n\n\t\tif ( defined( 'UFHEALTH_GRAVITY_FORMS_SECURE_STORAGE_CONNECTOR' ) ) {\n\t\t\t$settings['connector'] = UFHEALTH_GRAVITY_FORMS_SECURE_STORAGE_CONNECTOR;\n\t\t}\n\n\t\t$data_connector = $this->_data_connectors[ $settings['connector'] ];\n\n\t\tif ( isset( $settings['enabled'] ) && '1' === $settings['enabled'] ) {\n\n\t\t\t$column_names = $this->get_column_names( $form['fields'] );\n\n\t\t\t$data_connector->init( $settings );\n\t\t\t$data_connector->add_record( $this->_secure_values, $entry['id'], $form['id'], $column_names );\n\n\t\t\t// Make sure we clean out the secured values locally to prevent it saving anywhere.\n\t\t\t$this->_secure_values = array();\n\n\t\t}\n\t}", "title": "" }, { "docid": "660a02a303321f3a73de85145976178f", "score": "0.6322035", "text": "public function saveData( &$entry, $request = 'POST' )\n {\n\n }", "title": "" }, { "docid": "27845c1333605110cd92035494635f27", "score": "0.6289443", "text": "protected abstract function new_entry();", "title": "" }, { "docid": "255c2f023fc9e3a468656122614984f5", "score": "0.6270576", "text": "function insertEntryForm() \n\t{\n\t\t$sQuery = \"INSERT INTO \".DB_PREFIX.\"entry \n\t\t\t\t\t\n\t\t\t\t\t(voter_id, entry_date, language_id, entry_status, created_date, created_by, \n\t\t\t\t\tupdated_date, updated_by) \n\t\t\t\t\t\n\t\t\t\t\tvalues(\n\t\t\t\t\t\t\t'\".$this->voter_id.\"','\".currentScriptDate().\"', \n\t\t\t\t\t\t\t'\".$this->language_id.\"',\n\t\t\t\t\t\t\t'\".$this->entry_status.\"',\n\t\t\t\t\t\t\t'\".currentScriptDate().\"','\".$this->created_by.\"',\n\t\t\t\t\t\t\t'\".currentScriptDate().\"','\".$this->updated_by.\"')\";\n\t\n\t\t$this->runquery($sQuery);\n\t\treturn mysql_insert_id();\n\t}", "title": "" }, { "docid": "539715568de8a42ff9e2b68dc4786054", "score": "0.6236669", "text": "public function store()\n {\n\n $this->formValidator();\n\n $item = $this->model::create(\n [\n 'name' => $this->form['name']\n ]);\n\n session()->flash('message', __($this->messages['create']));\n session()->flash('type', 'success');\n\n //reset fields\n $this->resetInputFields();\n $this->emit('categoriesStore');\n }", "title": "" }, { "docid": "d61dc317cf8ecd1f2deade89c3af12f6", "score": "0.6214372", "text": "public function form_submit( $entry, $form ) {\n\n\t\t\t// Associate form values with their inputs and store them in this object's variables property\n\t\t\t$this->associate_form_values( $form );\n\n\t\t\t// Set defaults\n\t\t\t$this->variables = wp_parse_args( $this->variables, self::$variable_defaults );\n\n\t\t\t// Store the data in a transient to carray it to the page refresh\n\t\t\tset_transient( 'cd_extension_generator_variables', $this->variables, MINUTE_IN_SECONDS );\n\n\t\t\t// Refresh the page to download the document\n\t\t\theader( 'Refresh: 1; url=' . add_query_arg( 'download', 1 ) );\n\t\t}", "title": "" }, { "docid": "16a703b441354cb9a043e05843cee505", "score": "0.62124234", "text": "Function SaveEntry(&$form, $creating, &$entry, &$values)\n\t{\n\t\t/*\n\t\t * First validate the entry values\n\t\t * In this example it is tested if there is already an entry with the\n\t\t * same title\n\t\t */\n\t\tif(!$this->model->FindEntryByTitle($values['title'], $duplicated))\n\t\t{\n\t\t\t/*\n\t\t\t * If there was a problem searching for the entry, return the\n\t\t\t * error, so the application can deal with it.\n\t\t\t */\n\t\t\treturn($this->model->error);\n\t\t}\n\t\tif(IsSet($duplicated)\n\t\t&& ($creating\n\t\t|| $entry['ID'] != $duplicated['id']))\n\t\t{\n\t\t\t/*\n\t\t\t * Flag the title input as invalid because there is already an\n\t\t\t * entry with the specified title.\n\t\t\t */\n\t\t\t$form->FlagInvalidInput('title', 'There is already a post with the title '.$values['title']);\n\t\t\treturn('');\n\t\t}\n\n\t\t/*\n\t\t * Are we creating a new entry or updating an existing entry?\n\t\t */\n\t\tif($creating)\n\t\t{\n\t\t\tif(!$this->model->CreateEntry($values))\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * If there was a problem creating an entry, return the error,\n\t\t\t\t * so the application can deal with it.\n\t\t\t\t */\n\t\t\t\treturn($this->model->error);\n\t\t\t}\n\t\t\t/*\n\t\t\t * If the entry was created successfully, the entry ID parameter\n\t\t\t * must be set with the new entry record identifier.\n\t\t\t */\n\t\t\t$entry['ID'] = $values['id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(!$this->model->UpdateEntry($entry['ID'], $values))\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * If there was a problem updating an entry, return the error,\n\t\t\t\t * so the application can deal with it.\n\t\t\t\t */\n\t\t\t\treturn($this->model->error);\n\t\t\t}\n\t\t}\n\t\treturn('');\n\t}", "title": "" }, { "docid": "c9eff63dccd3bb3a8eb2284821855601", "score": "0.61652184", "text": "function monsterinsights_forms_custom_gravity_forms_save( $entry, $form ) {\n\tif ( version_compare( MONSTERINSIGHTS_VERSION, '7.4', '>=' ) ) {\n\t\t$do_not_track = ! monsterinsights_track_user( get_current_user_id() );\n\t\tif ( $do_not_track ) {\n\t\t\treturn;\n\t\t}\n\t}\n\t$atts = array(\n\t\t't' => 'event', \t\t// Type of hit\n\t\t'ec' => 'form', \t\t// Event Category\n\t\t'ea' => 'conversion', \t\t\t// Event Action\n\t\t'el' => 'gform_' . $form[\"id\"],\t\t\t\t // Event Label (form ID)\n\t\t'ev'\t=> 1\t\t\t\t\t\t\t\t\t\t// Event Value\n\t);\n\tmonsterinsights_mp_track_event_call( $atts );\n}", "title": "" }, { "docid": "53bfdbc3ab7983d4e020a4a2cf73fb6e", "score": "0.6158429", "text": "public function add() {\n\t\t$this->unsecureGlobals();\n\t\t\n\t\t$this->_update($_POST);\n\t\t\n\t\t$this->secureGlobals();\n\t}", "title": "" }, { "docid": "db8e15bad1689077dd998de5efffc089", "score": "0.6115292", "text": "public function store()\n\t{\n\t\t$entry = new Entry;\n\t\t$entry->user_id = Auth::user()->id;\n\t\t$entry->first_name = Auth::user()->first_name;\n\t\t$entry->minutes = Request::get('minutes');\n\t\t$entry->task = Request::get('task');\n\t\t$entry->notes = Request::get('notes');\n\n\t\t$entry->save();\n\n\t\treturn Response::json(array(\n\t\t\t'error' => false,\n\t\t\t'message' => 'entry created'), \n\t\t\t200\n\t\t);\n\t}", "title": "" }, { "docid": "eae06c65d564d20505ad5acc2488548f", "score": "0.6076199", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required|max:20'\n ]);\n\n $requestData = $request->all();\n\n // Get the currently authenticated user...\n $user = Auth::user();\n\n // Get the currently authenticated user's ID...\n $userId = Auth::id();\n\n $requestData['author'] = $userId;\n \n Entry::create($requestData);\n\n return redirect('entries')->with('flash_message', 'Entry added!');\n }", "title": "" }, { "docid": "4a02077bb3fe9c6d9e40bf5580959588", "score": "0.60488755", "text": "public function store():void{\n\n $input = $this->request;\n\n $this->session->flashOldInput($input);\n\n // Validate input\n $this->validateInput($input, 'create');\n\n // Make object\n $object = $this->objectFactory->make($input);\n\n // Save to DB\n $this->objectRepository->save($object);\n\n // Flash success message and flush old input\n $this->session->flashMessage('success', ucfirst($object->getName()).' was added to your list.');\n $this->session->flushOldInput();\n\n // Redirect to index after creating\n Redirect::toControllerMethod('Objects', 'index');\n return;\n }", "title": "" }, { "docid": "aebee6cecbe1eeb140c9b4f7c55254f9", "score": "0.6036816", "text": "function monsterinsights_forms_custom_formidable_forms_save( $entry_id, $form_id ){\n\tif ( version_compare( MONSTERINSIGHTS_VERSION, '7.4', '>=' ) ) {\n\t\t$do_not_track = ! monsterinsights_track_user( get_current_user_id() );\n\t\tif ( $do_not_track ) {\n\t\t\treturn;\n\t\t}\n\t}\n\t$form = FrmForm::getOne( $form_id );\n\t$atts = array(\n\t\t't' => 'event', \t\t// Type of hit\n\t\t'ec' => 'form', \t\t// Event Category\n\t\t'ea' => 'conversion', \t\t\t// Event Action\n\t\t'el' => 'form_' . $form->form_key,\t\t\t\t// Event Label (form ID)\n\t\t'ev'\t=> 1\t\t\t\t\t\t\t\t\t\t// Event Value\n\t);\n\tmonsterinsights_mp_track_event_call( $atts );\n}", "title": "" }, { "docid": "54c7adebabee390c0c40a8350affead4", "score": "0.6016669", "text": "function _NewMenuEntry() {\n\t \t\t\n\t \t\t// Get external parameters\n\t \t\t$MenuID = GetPostOrGet('menu_id');\n\t \t\t$MenuEntryType = GetPostOrGet('menu_entry_type');\n\t \t\t\n\t \t\t// Initialize the formmaker class\n\t \t\t$formMaker = new FormMaker($this->_Translation->GetTranslation('todo'), &$this->_SqlConnection);\n\t \t\t$formMaker->AddForm('new_menu_entry', 'admin.php', $this->_Translation->GetTranslation('save'), $this->_Translation->GetTranslation('add_menu_entry'), 'post');\n\t \t\t\n\t \t\t// Add hidden inputs to give some variables to next page\n\t \t\t$formMaker->AddHiddenInput('new_menu_entry', 'page', 'menueditor');\n\t \t\t$formMaker->AddHiddenInput('new_menu_entry', 'action', 'add_menu_entry');\n\t \t\t$formMaker->AddHiddenInput('new_menu_entry', 'menu_entry_type', $MenuEntryType);\n\t \t\t\n\t \t\t// Add the inputs to the formmakerclass\n\t \t\t$formMaker->AddInput('new_menu_entry', 'menu_id', 'select', $this->_Translation->GetTranslation('belongs_to_menu'), $this->_Translation->GetTranslation('this_is_the_menu_the_new_entry_should_be_added_to'));\n\t \t\t\n\t \t\t\t// Get the existing menus from the database \n\t \t\t\t$sql = \"SELECT *\n\t\t\t\t\tFROM \" . DB_PREFIX . \"menu\";\n\t\t\t\t$menuResult = $this->_SqlConnection->SqlQuery($sql);\n\t\t\t\twhile ($menu = mysql_fetch_object($menuResult)) {\n\t\t\t\t\t\n\t\t\t\t\t// Add an entry for each existing menu\n\t\t\t\t\t$formMaker->AddSelectEntry('new_menu_entry', 'menu_id', (($menu->menu_id == $MenuID) ? true : false), $menu->menu_id, $menu->menu_id . \". \" . $menu->menu_name);\n\t\t\t\t}\n\t\t\t\n\t\t\t$formMaker->AddInput('new_menu_entry', 'menu_entry_title', 'text', $this->_Translation->GetTranslation('menu_entry_title'), $this->_Translation->GetTranslation('this_is_the_title_of_the_menuentry_that_will_be_shown_in_the_menu'));\n\t \t\t\n\t \t\tif ($MenuEntryType == 'intern_link') {\n\t \t\t\t\n\t \t\t\t// Add select input for all pages in the system\n\t \t\t\t$formMaker->AddInput('new_menu_entry', 'menu_entry_link', 'select', $this->_Translation->GetTranslation('menu_entry_link'), $this->_Translation->GetTranslation('choose_here_the_page_to_which_the_link_should_refer'));\n\t \t\t\t\n\t \t\t\t// Add all existing pages to the select\n\t \t\t\t$pageStructure = new Pagestructure(&$this->_SqlConnection, &$this->_User, &$this->_ComaLib);\n\t \t\t\t$pageStructure->LoadParentIDs();\n\t \t\t\t$formMaker->AddSelectEntrysCode('new_menu_entry', 'menu_entry_link', $pageStructure->PageStructurePulldown(0, 0, '', -1));\n\t \t\t}\n\t \t\telseif ($MenuEntryType == 'extern_link') {\n\t \t\t\t\n\t \t\t\t// Add input for the extern url\n\t \t\t\t$formMaker->AddInput('new_menu_entry', 'menu_entry_link', 'text', $this->_Translation->GetTranslation('menu_entry_link'), $this->_Translation->GetTranslation('type_here_the_url_of_the_page_to_link_to'));\n\t \t\t}\n\t \t\telseif ($MenuEntryType == 'download') {\n\t \t\t\t\n\t \t\t\t// Add select input for the downloads\n\t \t\t\t$formMaker->AddInput('new_menu_entry', 'menu_entry_link', 'select', $this->_Translation->GetTranslation('download'), $this->_Translation->GetTranslation('choose_here_the_download_you_want_to_link_to'));\n\t \t\t\t\n\t \t\t\t// Add all existing files to the select input\n\t \t\t\t$sql = \"SELECT *\n\t\t\t\t\t\tFROM \" . DB_PREFIX . \"files\n\t\t\t\t\t\tORDER BY file_name\";\n\t\t\t\t$files_result = $this->_SqlConnection->SqlQuery($sql);\n\t\t\t\t\n\t\t\t\twhile($file = mysql_fetch_object($files_result)) {\n\t\t\t\t\t\n\t\t\t\t\tif(file_exists($file->file_path))\n\t\t\t\t\t\t$formMaker->AddSelectEntry('new_menu_entry', 'menu_entry_link', false, $file->file_id, utf8_encode($file->file_name) . \" (\" . kbormb($file->file_size) . \")\");\n\t\t\t\t}\t\n\t \t\t}\n\t \t\t\n\t \t\t$formMaker->AddInput('new_menu_entry', 'menu_entry_css_id', 'text', $this->_Translation->GetTranslation('menu_entry_css'), $this->_Translation->GetTranslation('type_in_here_the_css_id_for_the_menuentry_if_you_need_one_for_it'));\n\t \t\t\n\t \t\t// Generate the template\n\t\t\t$template = \"\\r\\n\\t\\t\\t\\t\" . $formMaker->GenerateMultiFormTemplate(&$this->_ComaLate, false);\n\t\t\treturn $template;\n\t \t}", "title": "" }, { "docid": "f71755ab83b032dde4cfdf4be55c3703", "score": "0.60063607", "text": "public function store()\n\t{\n\t\t$input = \\Input::get();\n\t\treturn Form::modelSave(null, $input);\n\t}", "title": "" }, { "docid": "488779ee4d787b05b13046986ec146d6", "score": "0.60048515", "text": "abstract protected function store($formId);", "title": "" }, { "docid": "9dbd0142dedf2049c7494743e4527958", "score": "0.5985894", "text": "protected function createEntry($request){}", "title": "" }, { "docid": "a51c53957bd8e7c3afa3e70fb5ff7e3b", "score": "0.5973633", "text": "public function addEntry($entry) {\n $clone = $this->doc->importNode($entry->model, true);\n $this->model->appendChild($clone);\n }", "title": "" }, { "docid": "416c69318531f0f99aac00c0547b6544", "score": "0.5924761", "text": "public function saveAction()\n {\n\n if (!isset($_POST['name']) || strlen(trim($_POST['name'])) == 0 ||\n !isset($_POST['description']) ||\n !isset($_POST['expiry'])) {\n $this->view->ERROR = getTranslation('missing_values');\n $this->_forward('new');\n return;\n }\n\n $title = trim($_POST['name']);\n $typeId = $_POST['type'];\n $description = trim($_POST['description']);\n $validTo = strtotime($_POST['expiry']);\n $personDocId = $_POST['personDoc'];\n $jobDocId = $_POST['jobDoc'];\n $addDocId = $_POST['additionalDoc'];\n\n $bj = new Bigace_Jobs();\n try {\n if (isset($_POST['id'])) {\n $res = $bj->save(\n $_POST['id'], $title, $typeId, $description,\n $validTo, $jobDocId, $personDocId, $addDocId\n );\n } else {\n $res = $bj->add(\n $title, $typeId, $description, $validTo,\n $jobDocId, $personDocId, $addDocId\n );\n }\n } catch (Exception $e) {\n $this->view->ERROR = getTranslation('failed_creating_entry') . ':' . $e->getMessage();\n }\n\n $this->_forward('index');\n }", "title": "" }, { "docid": "e250f830883c9867bea8c8f9c7acedb7", "score": "0.59061486", "text": "public function store()\n\t{\n\n\t\ttry\n\t\t{\n\t\t\t$this->creation->validate(Input::all());\n\t\t}\n\t\tcatch (FormValidationException $e)\n\t\t{\n\t\t\treturn $this->errorWrongArgs('Il manque des arguments');\n\t\t}\n\n\t\t$label = $this->label->createLabel( Input::all() );\n\n\t\treturn $this->respondWithItem($label, new LabelTransformer);\n\n\t}", "title": "" }, { "docid": "d92bf05590ce7907b928b64cc763104d", "score": "0.58947283", "text": "public function store(Request $request)\n {\n $request->validate([\n 'device' => 'required|max:100',\n 'title' => 'required|max:50',\n 'commands' => 'required',\n 'description' => 'required',\n 'notes' => '',\n 'tags' => '',\n ]); \n $entry = new Entry;\n $entry->device = $request->input('device');\n $entry->title = $request->input('title');\n $entry->commands = $request->input('commands');\n $entry->description = $request->input('description');\n $entry->notes = $request->input('notes');\n $entry->tags = $request->input('tags');\n $entry->user_id = Auth::user()->id;\n $entry->save();\n return redirect()->route('journal.index');\n }", "title": "" }, { "docid": "691968bf336d301b02628305a290ab7e", "score": "0.58942366", "text": "public function store()\n\t{\n\t\treturn $this->processForm('create');\n\t}", "title": "" }, { "docid": "691968bf336d301b02628305a290ab7e", "score": "0.58942366", "text": "public function store()\n\t{\n\t\treturn $this->processForm('create');\n\t}", "title": "" }, { "docid": "06c2d1bc28b1127667fcba17cc6eba09", "score": "0.5884316", "text": "function gform_entry_submitted($entry, $form) {\n\t\t$this->cab_functions->form_activity_finished($this->cab_functions->get_current_organisationd_id(),$this->cab_functions->get_current_period(), $entry);\n\t}", "title": "" }, { "docid": "e0b25f2a8cac60ed39c739cacaccaa5c", "score": "0.58577347", "text": "public function store()\n { \n $this->model->load('TheLoai');\n $this->model->TheLoai->ten = $_POST['ten'];\n $this->model->TheLoai->anh = $_POST['anh'];\n $this->model->TheLoai->save();\n\n go_back();\n }", "title": "" }, { "docid": "48258ea7037ee339f38bc6c7a00a4cb7", "score": "0.5845572", "text": "public static function store() {\n\t\n\t\t$_SESSION['POST_DATA'] = $_POST;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "b13d084af947eb365457f14e7cc2fd8e", "score": "0.5845508", "text": "public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\t\t\n\t\tunset($_POST['submit']);\n\n # Insert\n\t\t$record_id = DB::instance(DB_NAME)->insert('719B', $_POST);\n\n # Redirect to second page\n Router::redirect('/posts/add2/'.$record_id);\n\n \t}", "title": "" }, { "docid": "274d7eadab0aaf0b0f73612574ea7127", "score": "0.58442575", "text": "public function addEntry(): void\n {\n }", "title": "" }, { "docid": "08663a69b252eaa1e4a471c738821577", "score": "0.5839707", "text": "public function handler() {\n if(isset($_POST['doAdd'])) {\n \n $this->model->Add(strip_tags($_POST['newEntry']));\n }\n elseif(isset($_POST['doClear'])) {\n \n $this->model->Clear();\n } \n elseif(isset($_POST['doCreate'])) {\n \n $this->model->CreateTableInDatabase();\n } \n \n header('Location: ' . $this->request->CreateUrl('guestbook'));\n }", "title": "" }, { "docid": "7fc4b40edf6ec5dad99c838e3caa6ed5", "score": "0.58242935", "text": "public function store()\n {\n //your form name fields must match the ones of the table fields\n $aeroporto = new Aeroporto(Post::getAll());\n\n if($aeroporto->is_valid()){\n $aeroporto->save();\n Redirect::toRoute('aeroporto/index');\n } else {\n //redirect to form with data and errors\n Redirect::flashToRoute('aeroporto/create', ['aeroporto' => $aeroporto]);\n }\n }", "title": "" }, { "docid": "6a70482d851fe7562adae22d5cf2f2d2", "score": "0.579545", "text": "public function store()\n\t{\n\t\t$attributes = request()->validate(Template::$rules, Template::$messages);\n\n $template = $this->createEntry(Template::class, $attributes);\n\n return redirect_to_resource();\n\t}", "title": "" }, { "docid": "2036da04d5cdb0b8fa0c90ebc4b08235", "score": "0.57843167", "text": "private function insertData()\n {\n $data = $this->form()->submissions()->toArray();\n\n $this->writer->insertAll($data);\n }", "title": "" }, { "docid": "7d031b8290ff632bab7fef6a00576916", "score": "0.5780225", "text": "public function store()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "3da21a4b96dfe4fe01ef03f3ad3621a1", "score": "0.5779645", "text": "public function add() {\n\t\t\t$saved = false;\n\t\t\t//If we have any posted or querystring data...\n\t\t\tif($this->request->data){\n\t\t\t\t//Use the MyPost model to create a new dataset\n\t\t\t\t$my_post = Forms::create($this->request->data);\n\t\t\t\t//Attempt to save the data, and update the $saved variable\n\t\t\t\t//with the outcome of the save attempt (bool)\n\t\t\t\t$saved = $my_post->save();\n\t\t\t}\n\t\t\t//Return $saved to our view as part of an associative array/token\n\t\t\treturn compact('saved');\n\t\t}", "title": "" }, { "docid": "424f5af604b4f0a04fc3282f1f2dada0", "score": "0.5777932", "text": "public function store()\n {\n return $this->processForm('create');\n }", "title": "" }, { "docid": "d2a8c6a38e90015a319f5e0fa5832872", "score": "0.5765195", "text": "public function storeNew($data);", "title": "" }, { "docid": "f727d05587fea1f906b88e4b7d0078b9", "score": "0.57643574", "text": "public function newForm() \n {\n $this->tplVars = $this->tplVars + [\n 'page_title' => $this->pageTitle\n ];\n \n \n if(isset($this->pid)){\n \n \n if($this->pid>0 && $this->pid>0){\n \n $this->tplVars = $this->tplVars + [\n 'pid' => $this->pid\n ];\n \n $this->tplVars = $this->tplVars + [\n 'tid' => $this->tid\n ];\n }\n \n \n }\n \n \n \n //afficher la liste des rayons\n \\Renderer::showAdmin(strtolower($this->pageCrud).\"/add\",$this->tplVars);\n\n \n }", "title": "" }, { "docid": "4924caea58ac8b44aded2bcd7d63e644", "score": "0.575649", "text": "public function store(Request $request)\n {\n $validatedData = $request->validate([\n 'title' => 'required|max:255',\n 'content' => 'required',\n ]);\n\n $data = $request->all();\n $data['user_id'] = Auth::user()->id;\n Entry::create($data);\n\n return redirect('entries');\n }", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.57338804", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.57338804", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "2013cf53419c1746030f01635e54fbc5", "score": "0.5733622", "text": "public function storeAndNew()\n {\n $this->storeAndNew = true;\n $this->store();\n }", "title": "" }, { "docid": "b700c4198ae2a8db9f4f8fd95c96198d", "score": "0.5732736", "text": "public function store()\n\n {\n\n $this->validate([\n\n 'title' => 'required',\n\n 'body' => 'required',\n\n ]);\n\n \n\n Post::updateOrCreate(['id' => $this->post_id], [\n\n 'title' => $this->title,\n\n 'body' => $this->body\n\n ]);\n\n \n\n session()->flash('message', \n\n $this->post_id ? 'Post Updated Successfully.' : 'Post Created Successfully.');\n\n \n\n $this->closeModal();\n\n $this->resetInputFields();\n\n }", "title": "" }, { "docid": "a8c0e722a481a9e90c72f0ad16e244e9", "score": "0.5730336", "text": "function monsterinsights_forms_custom_wpforms_save( $fields, $entry, $form_id, $form_data ) {\n\t// Skip tracking if not a trackable user.\n\tif ( version_compare( MONSTERINSIGHTS_VERSION, '7.4', '>=' ) ) {\n\t\t$do_not_track = ! monsterinsights_track_user( get_current_user_id() );\n\t\tif ( $do_not_track ) {\n\t\t\treturn;\n\t\t}\n\t}\n\t$atts = array(\n\t\t't' => 'event', // Type of hit\n\t\t'ec' => 'form', // Event Category\n\t\t'ea' => 'conversion', \t// Event Action\n\t\t'el' => 'wpforms-form-' . $form_id, \t// Event Label (form ID)\n\t\t'ev'\t=> 1\t\t\t\t\t\t\t\t// Event Value\n\t);\n\tif ( monsterinsights_get_option( 'userid', false ) && is_user_logged_in() ) {\n\t\t$atts['uid'] = get_current_user_id(); // UserID tracking\n\t}\n\tmonsterinsights_mp_track_event_call( $atts );\n}", "title": "" }, { "docid": "e4e9a923b8fb710c6e672699dd3fdb9c", "score": "0.57294464", "text": "public function store(Request $request)\n {\n $entry = new Entry;\n $entry->name = $request->name;\n $entry->phone = $request->phone;\n $entry->save();\n return redirect('/');\n }", "title": "" }, { "docid": "60b31d8b646a80913f4378af498e319d", "score": "0.57114196", "text": "public function create() {\n // Create = catches data from user-filled form\n }", "title": "" }, { "docid": "b16bdbcb173823c2b0e49a91a3b59dfd", "score": "0.5704071", "text": "abstract public function hook_add_form_insert_field();", "title": "" }, { "docid": "8070d0edac26644c57820114ed0730de", "score": "0.5701048", "text": "public function store()\n\t{\n\t\t// \n\t}", "title": "" }, { "docid": "8a79ef72c53ecd78868b0cddefeb6c0e", "score": "0.5699536", "text": "function _AddMenuEntry() {\n\t \t\t\n\t \t\t// Get external parameters\n\t \t\t$MenuID = GetPostOrGet('menu_id');\n\t \t\t$MenuEntryType = GetPostOrGet('menu_entry_type');\n\t \t\t$MenuEntryTitle = GetPostOrGet('menu_entry_title');\n\t \t\t$MenuEntryLink = GetPostOrGet('menu_entry_link');\n\t \t\t$MenuEntryCssID = GetPostOrGet('menu_entry_css_id');\n\t \t\t\n\t \t\t// Initialize the formmaker class\n\t \t\t$formMaker = new FormMaker($this->_Translation->GetTranslation('todo'), &$this->_SqlConnection);\n\t \t\t$formMaker->AddForm('add_menu_entry', 'admin.php', $this->_Translation->GetTranslation('save'), $this->_Translation->GetTranslation('add_menu_entry'), 'post');\n\t \t\t\n\t \t\t// Add hidden inputs to give some variables to next page\n\t \t\t$formMaker->AddHiddenInput('add_menu_entry', 'page', 'menueditor');\n\t \t\t$formMaker->AddHiddenInput('add_menu_entry', 'action', 'add_menu_entry');\n\t \t\t$formMaker->AddHiddenInput('add_menu_entry', 'menu_entry_type', $MenuEntryType);\n\t \t\t\n\t \t\t// Add the inputs to the formmakerclass\n\t \t\t$formMaker->AddInput('add_menu_entry', 'menu_id', 'select', $this->_Translation->GetTranslation('belongs_to_menu'), $this->_Translation->GetTranslation('this_is_the_menu_the_new_entry_should_be_added_to'));\n\t \t\t\n\t \t\t\t// Get the existing menus from the database \n\t \t\t\t$sql = \"SELECT *\n\t\t\t\t\tFROM \" . DB_PREFIX . \"menu\";\n\t\t\t\t$menuResult = $this->_SqlConnection->SqlQuery($sql);\n\t\t\t\twhile ($menu = mysql_fetch_object($menuResult)) {\n\t\t\t\t\t\n\t\t\t\t\t// Add an entry for each existing menu\n\t\t\t\t\t$formMaker->AddSelectEntry('add_menu_entry', 'menu_id', (($menu->menu_id == $MenuID) ? true : false), $menu->menu_id, $menu->menu_id . \". \" . $menu->menu_name);\n\t\t\t\t}\n\t\t\t\n\t\t\t$formMaker->AddInput('add_menu_entry', 'menu_entry_title', 'text', $this->_Translation->GetTranslation('menu_entry_title'), $this->_Translation->GetTranslation('this_is_the_title_of_the_menuentry_that_will_be_shown_in_the_menu'), $MenuEntryTitle);\n\t\t\t$formMaker->AddCheck('add_menu_entry', 'menu_entry_title', 'empty', $this->_Translation->GetTranslation('you_have_to_define_a_title_for_the_menu_entry'));\n\t\t\t\n\t\t\tif ($MenuEntryType == 'intern_link') {\n\t\t\t\t\n\t\t\t\t// Add select input for all pages in the system\n\t\t\t\t$formMaker->AddInput('add_menu_entry', 'menu_entry_link', 'select', $this->_Translation->GetTranslation('menu_entry_link'), $this->_Translation->GetTranslation('choose_here_the_page_to_which_the_link_should_refer'));\n\t \t\t\t\n\t \t\t\t// Add all existing pages to the select\n\t \t\t\t$pageStructure = new Pagestructure(&$this->_SqlConnection, &$this->_User, &$this->_ComaLib);\n\t \t\t\t$pageStructure->LoadParentIDs();\n\t \t\t\t$formMaker->AddSelectEntrysCode('add_menu_entry', 'menu_entry_link', $pageStructure->PageStructurePulldown(0, 0, '', -1, $MenuEntryLink));\n\t \t\t}\n\t \t\telseif ($MenuEntryType == 'extern_link') {\n\t \t\t\t\n\t \t\t\t// Add input for the extern url\n\t \t\t\t$formMaker->AddInput('add_menu_entry', 'menu_entry_link', 'text', $this->_Translation->GetTranslation('menu_entry_link'), $this->_Translation->GetTranslation('type_here_the_url_of_the_page_to_link_to'), $MenuEntryLink);\n\t \t\t\t$formMaker->AddCheck('add_menu_entry', 'menu_entry_link', 'empty', $this->_Translation->GetTranslation('you_have_to_define_an_extern_url_for_this_link'));\n\t \t\t}\n\t \t\telseif ($MenuEntryType == 'download') {\n\t \t\t\t\n\t \t\t\t// Add select input for the downloads\n\t \t\t\t$formMaker->AddInput('add_menu_entry', 'menu_entry_link', 'select', $this->_Translation->GetTranslation('download'), $this->_Translation->GetTranslation('choose_here_the_download_you_want_to_link_to'));\n\t \t\t\t\n\t \t\t\t// Add all existing files to the select input\n\t \t\t\t$sql = \"SELECT *\n\t\t\t\t\t\tFROM \" . DB_PREFIX . \"files\n\t\t\t\t\t\tORDER BY file_name\";\n\t\t\t\t$files_result = $this->_SqlConnection->SqlQuery($sql);\n\t\t\t\t\n\t\t\t\twhile($file = mysql_fetch_object($files_result)) {\n\t\t\t\t\t\n\t\t\t\t\tif(file_exists($file->file_path))\n\t\t\t\t\t\t$formMaker->AddSelectEntry('add_menu_entry', 'menu_entry_link', (($MenuEntryLink == $file->file_id) ? true : false), $file->file_id, utf8_encode($file->file_name) . \" (\" . kbormb($file->file_size) . \")\");\n\t\t\t\t}\t\n\t \t\t}\n\t \t\t\n\t \t\t$formMaker->AddInput('add_menu_entry', 'menu_entry_css_id', 'text', $this->_Translation->GetTranslation('menu_entry_css'), $this->_Translation->GetTranslation('type_in_here_the_css_id_for_the_menuentry_if_you_need_one_for_it'));\n\t \t\t\n\t \t\tif ($formMaker->CheckInputs('add_menu_entry', true)) {\n\t\t\t\t\n\t\t\t\t// Get the next orderid\n\t\t\t\t$sql = \"SELECT *\n\t \t\t\t\t\tFROM \" . DB_PREFIX . \"menu_entries\n \t\t\t\t\t\tWHERE menu_entries_menuid='$MenuID'\n \t\t\t\t\t\tORDER BY menu_entries_orderid DESC\n\t \t\t\t\t\tLIMIT 1\";\n\t\t\t\t$menuResult = $this->_SqlConnection->SqlQuery($sql);\n \t\t\t\tif($menuEntry = mysql_fetch_object($menuResult)) {\n\t\t\t\t\t$MenuEntryOrderID = $menuEntry->menu_entries_orderid + 1;\n\t\t\t\t}\n\t\t\t\telse {\n \t\t\t\t\t$MenuEntryOrderID = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($MenuEntryType == 'intern_link') {\n\t\t\t\t\t// Get the name of the page\n\t\t\t\t\t$sql = \"SELECT *\n\t\t \t\t\t\tFROM \" . DB_PREFIX . \"pages\n\t \t\t\t\t\tWHERE page_id='$MenuEntryLink'\";\n\t \t\t\t\t$pageResult = $this->_SqlConnection->SqlQuery($sql);\n\t \t\t\t\tif ($page = mysql_fetch_object($pageResult)) {\n\t \t\t\t\t\t$PageID = $MenuEntryLink;\n\t \t\t\t\t\t$MenuEntryLink = $page->page_name;\n\t \t\t\t\t}\n\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\t$PageID = '';\n\t\t\t\t\n\t\t\t\t// Add new user to the database\n\t\t\t\t$sql = \"INSERT INTO \" . DB_PREFIX . \"menu_entries\n\t\t\t\t\t\t(menu_entries_link, menu_entries_title, menu_entries_type, menu_entries_css_id, menu_entries_orderid, menu_entries_menuid, menu_entries_page_id)\n\t\t\t\t\t\tVALUES ('\" . (($MenuEntryType == 'intern_link') ? 'l:' : (($MenuEntryType == 'download') ? 'd:' : (($MenuEntryType == 'extern_link') ? 'e:' : ''))) . \"$MenuEntryLink', '$MenuEntryTitle', '$MenuEntryType', '$MenuEntryCssID', '$MenuEntryOrderID', '$MenuID', '$PageID')\";\n\t\t\t\t$this->_SqlConnection->SqlQuery($sql);\n\t\t\t\t\n\t\t\t\t// Set user to the HomePage of the usermanager\n\t\t\t\t$template = \"\\r\\n\\t\\t\\t\\t\" . $this->_ShowMenu($MenuID);\n\t\t\t\treturn $template;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\t// Generate to edit the errors\n\t\t\t\t$template = \"\\r\\n\\t\\t\\t\\t\" . $formMaker->GenerateMultiFormTemplate(&$this->_ComaLate, true);\n\t\t\t\treturn $template;\n\t\t\t}\n\t \t}", "title": "" }, { "docid": "f7d11f49cbfdaf35dcdf39d213958733", "score": "0.56991196", "text": "public function store()\n {\n $this->validate([\n 'nome' => 'required',\n 'descricao' => 'required',\n ]);\n\n Produto::updateOrCreate(['id' => $this->produtos_id], [\n 'nome' => $this->nome,\n 'descricao' => $this->descricao\n ]);\n\n session()->flash('message',\n $this->produtos_id ? 'Blog Updated Successfully.' : 'Blog Created Successfully.');\n\n $this->closeModal();\n $this->resetInputFields();\n }", "title": "" }, { "docid": "25951748497e52da39bcef7b5ac7a42e", "score": "0.5696166", "text": "public function store()\n\t{\n\t\t// Template is in request. Request::input('template')\n\t\t// So build up a Notice object (create table too)\n\t\t// persist it with this data\n\t\t// And then fire off the email\n\t}", "title": "" }, { "docid": "e8be762f14e5bbd3231981aff22ff404", "score": "0.56922483", "text": "public function p_enter() {\n $_POST['created'] = Time::now();\n $_POST['user_id'] = $this->user->user_id;\n DB::instance(DB_NAME)->insert('posts', $_POST);\n Router::redirect('/');\n }", "title": "" }, { "docid": "6bac5cc7f483b31a6d7d269614199ea6", "score": "0.56791", "text": "protected function entry(){\r\n $view = new AddModel();\r\n $view->entry();\r\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.56778276", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
b74a978d810c63c3cf6bde539f3e103a
/ ACTUALIZA EL ID A 1=OCUPADA Y COLOCA LA COMANDA COMO REFERENCIA
[ { "docid": "f440033844eb8774be51f711004b15d0", "score": "0.0", "text": "function update_mesa_est1_ref($idCom,$idMesa){\n $q11 = \"UPDATE mesa SET mesa_estado = 1 , ref = '$idCom' WHERE idMesa = '\".$idMesa.\"' ;\";\n $this->db->query($q11);\n }", "title": "" } ]
[ { "docid": "0e47318c914aff51a8933b71e8bbeb83", "score": "0.6527399", "text": "Function DevuelvoIdOrigenTitulo($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM origentitulo WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"id\");\r\n\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "01559ce2eef7d6ae151ac2d041c226b2", "score": "0.64859205", "text": "function Cargaringreso() {\r\n $r = $this->database->obtenerVigenciaPorId($this->id);\r\n if ($r != -1) {\r\n $this->id = $r['id_Vigencia'];\r\n $this->ano = $r['ano_Vigencia'];\r\n $this->monto = $r['monto_Vigencia'];\r\n $this->tipo = $r['tipo_Vigencia'];\r\n } else {\r\n $this->id = '';\r\n $this->ano = '';\r\n $this->monto = '';\r\n $this->tipo = '';\r\n }\r\n }", "title": "" }, { "docid": "fe695759e89fc32cbaf41ab300d66761", "score": "0.64105684", "text": "Function DevuelvoIdInstitucion($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM origentitulo WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "bf28521bfa2b6dbf4da5ded7d9d33a36", "score": "0.6402896", "text": "public function conseguirId (){\n $query = $this->db->query (\"SELECT * FROM instalacion WHERE id_instalacion = '{$this->id}'\");\n if ($query->num_rows === 1)\n {\n $this->datos= $query->fetch_assoc();\n \n }\n return $this->datos;\n }", "title": "" }, { "docid": "74bdca90694ef35160163b23ae967ce8", "score": "0.6358227", "text": "public function getConferenciaId()\r\n {\r\n return $this->Conferencia_id;\r\n }", "title": "" }, { "docid": "dfa46220f7df862a03b57b34cf783aa3", "score": "0.63512236", "text": "Function DevuelvoIdTipoDoc($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM tipodocumento WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "7419a91b6bd6a866af84169b69a4a933", "score": "0.6348883", "text": "Function DevuelvoIdPais($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM pais WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "3028da00a2bb4f0064a7595000c24275", "score": "0.63126564", "text": "Function DevuelvoIdProvincia($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM provincias WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "5834972026804335c468fe4d23b8bc53", "score": "0.62876546", "text": "public function ActaConcertacion ()\n\t{\n\t\t$numeroActaConcertacion = 0;\n\t\t$año = \"\";\n\t\t$idGrupo = 0;\n\t\t$idGrupo = 0;\n\t}", "title": "" }, { "docid": "339aea876da23aedc8bc2868ccaa20c8", "score": "0.62810576", "text": "function _set_id( $idEstudiante ){\n \t\t$this->idEstudiante = $idEstudiante;\n }", "title": "" }, { "docid": "449bb134109256545e1442bd435a10d2", "score": "0.622454", "text": "Function DevuelvoOrigenTitulo($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM origentitulo WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "eb7b7753e9a426889e552047202e3146", "score": "0.62110907", "text": "public function getId()\n {\n \treturn $this->id_actacomputo;\n }", "title": "" }, { "docid": "fbb3715d49308dbe733783252fa9a22e", "score": "0.6203501", "text": "Function DevuelvoIdLocalidad ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM localidad WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "fe8aa8539f47def63d53c14c66b7166e", "score": "0.6175067", "text": "public function prelevaDaID($id) {\n global $conn;\n if (!empty($this->email))\n throw new Exception(\"Hai gia' caricato le informazioni nell'oggetto.\");\n $query = $conn->prepare(\"SELECT * FROM `utente` WHERE `ID_Utente` = :id\");\n $query->bindParam(\":id\", $id);\n $query->execute();\n $res = $query->fetchAll(PDO::FETCH_ASSOC);\n\n if (count($res) != 1)\n throw new Exception('Utente non esistente nel database');\n\n $riga = $res[0];\n $this->popolaIstanza($riga);\n }", "title": "" }, { "docid": "f9be9d0369099f056fefcc9f27a8e5bf", "score": "0.61423016", "text": "function formulaires_editer_article_accueil_charger($id_rubrique){\r\n\t$valeurs = array();\r\n\t$valeurs['id_rubrique'] = $id_rubrique;\r\n\tinclude_spip('base/abstract_sql');\r\n\t$valeurs['id_article_accueil'] = sql_getfetsel('id_article_accueil','spip_rubriques','id_rubrique='.intval($id_rubrique));\r\n\t$valeurs['_hide'] = (is_null(_request('id_article_accueil'))?' ':'');\r\n\treturn $valeurs;\r\n}", "title": "" }, { "docid": "048ba2167d992aaa60919ba40268d4ea", "score": "0.6118037", "text": "Function DevuelvoPais ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM pais WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "a89738dd03e371bc8ea2930f789620dd", "score": "0.61174434", "text": "function propagar_id()\n\t{\t\t\n\t\ttoba::memoria()->set_dato('apex_editable_zona', $this->get_editable());\n\t}", "title": "" }, { "docid": "03f919656d55c8b6025980a50ed51c76", "score": "0.6116379", "text": "function get_proyecto_referenciado()\n\t{\n//\t\t$proyectos = toba::instancia()->get_proyectos_accesibles();\n//\t\tif (!isset($this->proyecto_ref_id) && in_array($this->proyecto_ref_id, $proyectos)) {\n//\t\t\tthrow new toba_error('Punto de montaje: el punto de montaje no referencia a un proyecto válido');\n//\t\t}\n\t\treturn $this->proyecto_ref_id;\n\t}", "title": "" }, { "docid": "73fc23d9f639f9819d300961c76d1e71", "score": "0.6116337", "text": "public function cliente_id($id_cliente = \"\"){\t\t\t\n\t\t$cliente = $this->login_registro_model->obtener_cliente_id($id_cliente);\n\t\treturn $cliente;\t\t\n\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "3a97fed08438b9ceb0ceff00fcfbdbdf", "score": "0.61051947", "text": "function referentiel_get_etudiant($id){\r\nglobal $CFG;\r\n\tif (!empty($id)){\r\n\t\treturn $DB->get_record_sql(\"SELECT * FROM {referentiel_etudiant} WHERE id=:id\" , array(\"id\" => \"$id\"));\r\n\t}\r\n\telse \r\n\t\treturn 0; \r\n}", "title": "" }, { "docid": "0a1d3b1fe197900afbe752d3e71c9d3e", "score": "0.61001253", "text": "Function DevuelvoIdDepartamentos($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM departamentos WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "cb311f86f5e8ba709519074fd26013c8", "score": "0.60995954", "text": "public function ShowCodigoIncrementado(){\n\t\t\techo $this->modelo->Id();\n\t\t}", "title": "" }, { "docid": "b4fdbd2d282b11f3e20b05eec4b694a1", "score": "0.6099239", "text": "Function DevuelvoIdTitulo($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM titulo WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Id\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "6351179e5ad99937b0e0cfda88d1a041", "score": "0.6084602", "text": "function VistoBuenobyID($idCompra){\n $this->output->enable_profiler(TRUE);\n if($this -> db -> query(\"update detallescompra SET UserVisBueno = \". $this->user->info->ID .\", VistoBueno = 'OK' WHERE idCompra = ?;\", $idCompra)){\n return 'actualizado';\n }\n }", "title": "" }, { "docid": "3541b998956d2ecc942302fec795988f", "score": "0.6077968", "text": "public function actionDetalle($id)\n\t{\n\n\t\t$cliente = Cliente::findConcurso($id);\n\t\t$data = get_object_vars($cliente);\n\t\t\n\n\t\t$cantidad = count($data);\n\t\t\t$codigo_tabla .= \"<table class='table table-hover'><tr><td>Fecha</td><td>Cedula</td><td>Nombre</td><td>Apellido</td><td>Departamento</td><td>Ciudad</td><td>Celular</td><td>Correo</td><td>Detalle</td>\";\n\t\t\tfor ($i=0; $i <$cantidad ; $i++) { \n\n\t\t\t\tif($data[$i]['cedula'] == $data[$i]['0']){\n\n\t\t\t\t$codigo_tabla .= \"<tr><th>\".$data[$i]['fecha'].\"</th><th>\".$data[$i]['0'].\"</th><th>\".$data[$i]['nombre'].\"</th><th>\".$data[$i]['apellido'].\"</th><th>\".$data[$i]['departamento'].\"</th><th>\".$data[$i]['ciudad'].\"</th><th>\".$data[$i]['celular'].\"</th><th>\".$data[$i]['correo'].\"</th><th><a href='../ganador/\".$data[$i]['cedula'].\"' class='btn btn-primary'>detalle</a></th></tr>\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$codigo_tabla .= \"<tr><td>\".$data[$i]['fecha'].\"</td><td>\".$data[$i]['0'].\"</td><td>\".$data[$i]['nombre'].\"</td><td>\".$data[$i]['apellido'].\"</td><td>\".$data[$i]['departamento'].\"</td><td>\".$data[$i]['ciudad'].\"</td><td>\".$data[$i]['celular'].\"</td><td>\".$data[$i]['correo'].\"</td><td><a href='../usuario/\".$data[$i]['0'].\"' class='btn btn-primary'>detalle</a></td></tr>\";\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$codigo_tabla .= \"</table>\";\n\t\t\t\t$codigo_tabla .= '<div class=\"col-xs-12 text-center\"><a href=\"../descargarDetalle/'.$data['0']['id_con'].'\" class=\"btn btn-primary\">Descargar</a></div>';\n\n\n\t\tResponse::render(\"detalle\", [\"resgitroTabla\" => $codigo_tabla]);\n\t}", "title": "" }, { "docid": "0f32fa0d6da3d56b20549920bb790826", "score": "0.6071198", "text": "function prepararConsulta() {\n\t\t$this->consultaSql = \"select id_archivo from referencias_archivos where referencias_archivos.id_referencia=\".$this->id_referencia.\" and activo=1 \";\n\t}", "title": "" }, { "docid": "30a4bf743306be47b3545908429c7f55", "score": "0.60709465", "text": "function puede_modificar($id_docente){\n $sql=\"select * from (select * from docente t_doc,designacion t_de\"\n . \" where t_doc.id_docente=$id_docente and t_doc.id_docente=t_de.id_docente\"\n . \")a, unidad_acad b where a.uni_acad=b.sigla\";\n $sql = toba::perfil_de_datos()->filtrar($sql);\n $res = toba::db('designa')->consultar($sql);\n \n if (count($res)>0){\n $respuesta=true;\n }else{\n $respuesta=false;\n }\n \n return $respuesta;\n }", "title": "" }, { "docid": "a37d60b4d05562e7b989b14e91e47964", "score": "0.6067707", "text": "Function DevuelvoProvincia ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM provincias WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "2ede9814b584ca89626096b59513e6b6", "score": "0.60617536", "text": "function creadordp($id_ordp){\n\t\t$url='inventario/ordp/dataedit/show/'.$id_ordp;\n\t\t$this->rapyd->uri->keep_persistence();\n\t\t$persistence = $this->rapyd->session->get_persistence($url, $this->rapyd->uri->gfid);\n\t\t$back= (isset($persistence['back_uri'])) ? $persistence['back_uri'] : $url;\n\n\t\t$this->genesal=false;\n\t\t$mSQL=\"INSERT IGNORE INTO caub (ubica,ubides,gasto) VALUES ('APRO','APARTADO DE PRODUCCION','N')\";\n\t\t$this->db->simple_query($mSQL);\n\t\t$mSQL=\"INSERT IGNORE INTO caub (ubica,ubides,gasto) VALUES ('PROD','ALMACEN DE PRODUCCION','S')\";\n\t\t$this->db->simple_query($mSQL);\n\n\t\t$sel=array('a.fecha','a.almacen','a.numero','a.status','a.cana','a.reserva');\n\t\t$this->db->select($sel);\n\t\t$this->db->from('ordp AS a');\n\t\t$this->db->join('sinv AS b','a.codigo=b.codigo');\n\t\t$this->db->where('a.id' , $id_ordp);\n\t\t$mSQL_1 = $this->db->get();\n\n\t\tif($mSQL_1->num_rows() > 0){\n\t\t\t$row = $mSQL_1->row();\n\t\t\t$cana= $row->cana;\n\t\t\tif($row->reserva=='N'){\n\t\t\t\t$_POST=array(\n\t\t\t\t\t'btn_submit' => 'Guardar',\n\t\t\t\t\t'envia' => $row->almacen,\n\t\t\t\t\t'fecha' => dbdate_to_human($row->fecha),\n\t\t\t\t\t'recibe' => 'APRO',\n\t\t\t\t\t'observ1' => 'ORDEN DE PRODUCCION '.$row->numero\n\t\t\t\t);\n\n\t\t\t\t$sel=array('a.codigo','b.descrip','a.cantidad');\n\t\t\t\t$this->db->select($sel);\n\t\t\t\t$this->db->from('ordpitem AS a');\n\t\t\t\t$this->db->join('sinv AS b','a.codigo=b.codigo');\n\t\t\t\t$this->db->where('a.id_ordp' , $id_ordp);\n\t\t\t\t$mSQL_2 = $this->db->get();\n\t\t\t\t$ordpitem_row =$mSQL_2->result();\n\n\t\t\t\tforeach ($ordpitem_row as $id=>$itrow){\n\t\t\t\t\t$ind='codigo_'.$id;\n\t\t\t\t\t$_POST[$ind] = $itrow->codigo;\n\t\t\t\t\t$ind='descrip_'.$id;\n\t\t\t\t\t$_POST[$ind] = $itrow->descrip;\n\t\t\t\t\t$ind='cantidad_'.$id;\n\t\t\t\t\t$_POST[$ind] = $itrow->cantidad*$cana;\n\t\t\t\t}\n\t\t\t\t$rt=$this->dataedit();\n\t\t\t\tif(strripos($rt,'Guardada')){\n\t\t\t\t\t$data = array('status' => 'P','reserva'=>'S');\n\t\t\t\t\t$this->db->where('id', $id_ordp);\n\t\t\t\t\t$this->db->update('ordp', $data);\n\t\t\t\t}\n\n\t\t\t\techo $rt.' '.anchor($back,'regresar');\n\t\t\t}else{\n\t\t\t\tredirect($back);\n\t\t\t}\n\t\t}else{\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "fb125f45eb6f04854d062879fa9b0ab2", "score": "0.6056032", "text": "function getIdComuna()\r\n\t {\r\n\t\t return $this->id_comuna;\r\n\t }", "title": "" }, { "docid": "487b634214e8ea8b1e33699ba86a9205", "score": "0.6055203", "text": "function Ficha($id_contrato_arrendamiento)\n\t{\n\t\t// Conexión Base de datos\n\t\t$DB = new Model();\t\t\n\t\t// Consulta\n\t\t$consulta = $DB->Execute(\"SELECT * FROM facturas_contratos_arrendamiento_inmueble,contratos_arrendamiento_inmueble WHERE id_contrato_arrendamiento=contrato_arrendamiento AND id_contrato_arrendamiento=\". $id_contrato_arrendamiento) or die($DB->ErrorMsg());\n\t\t$row_consulta = $consulta->FetchRow();\n\t\t$totalRows_consulta = $consulta->RecordCount();\n\t\t// Formateo de datos\n\t\t$datos=$row_consulta;\n\t\t// Comprobaciones\n\t\t$this->ComprobarContratoArrendamientoBD($id_contrato_arrendamiento,$datos['cliente_vendedor'],$datos['inmueble']);\t\n\t\t$fecha_emision_separada=explode(\"-\",$datos['fecha_emision']);\n\t\t$datos['dia_fecha_emision']=$fecha_emision_separada[2];\n\t\t$datos['mes_fecha_emision']=$fecha_emision_separada[1];\n\t\t$datos['anio_fecha_emision']=$fecha_emision_separada[0];\n\t\t$datos['nombre_completo']=$datos['nombre'].\" \".$datos['apellidos'];\n\t\t$datos['poblacion']=formatear_poblacion($datos['poblacion']);\n\t\t$datos['provincia']=formatear_provincia($datos['provincia']);\n\t\t$datos['poblacion_vivienda']=formatear_poblacion($datos['poblacion_vivienda']);\n\t\t$datos['iva']=number_format($datos['iva'], 2, ',', '.');\n\t\t$datos['cantidad_iva']=number_format($datos['cantidad_iva'], 2, ',', '.');\n\t\t$datos['cantidad_parcial']=number_format($datos['cantidad_parcial'], 2, ',', '.');\n\t\t$datos['cantidad_total']=number_format($datos['cantidad_total'], 2, ',', '.');\n\t\t$datos['tipo_factura']=\"arrendamiento\";\n\t\t// Sección principal\n\t\t$this->CuerpoFicha($datos);\n\t\t// Salida del PDF\n\t\treturn $this->pdf->Output(PATHINCLUDE_FRAMEWORK_DOC. \"clientes/cliente_\".$datos['cliente_vendedor'].\"/inmueble_\".$datos['inmueble'].\"/factura_contrato_arrendamiento_\".$id_contrato_arrendamiento.\".pdf\");\n\t}", "title": "" }, { "docid": "53c4e563fca0f5b2df42a63d3fd19184", "score": "0.6049965", "text": "public function obtener_entrada_id(){\n return $this-> $entrada_id;\n }", "title": "" }, { "docid": "3e9a8ebb61def21cf23619fd022e2e83", "score": "0.6042304", "text": "function unaAccion($cone,$id){\n try {\n $sql=\"SELECT * FROM produccion.acciones where IdAcciones =\".$id.\";\";\n $setencia1=$cone->query($sql);\n } catch (Exception $e) {\n print 'Error al consultar registro individual id:'.$id;\n }\n return $setencia1; \n }", "title": "" }, { "docid": "89dcf39971807544b5946e5770b3379a", "score": "0.60403645", "text": "public function detalle_compra($id_compra = \"\", $id_cliente = \"\"){\n\t\t\n\t\t$data['compra']['id_compra'] = $id_compra; \n\t\t$data['compra']['direccion_amex'] = NULL;\n\t\t$data['compra']['codigo_autorizacion'] = NULL;\n\t\t\n\t\t//se obtiene el medio y la fecha de pago\n\t\t$forma_pago = end($this->administrador_usuario_model->obtener_medio_pago($id_compra, $id_cliente));\n\t\t\n\t\tif( count($forma_pago) > 0){\n\t\t \t\n\t\t\t//si el pago es con prosa se obtiene el detalle de la tarjeta\n\t\t\tif(($forma_pago['id_tipoPagoSi'] == 1) || ($forma_pago['id_tipoPagoSi'] == 2)){\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t$tc = end($this->administrador_usuario_model->obtener_tc($id_cliente, $forma_pago['id_tipoPagoSi']));\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$data['compra']['medio_pago'] = $tc['descripcionVc'].\" terminación \".$tc['terminacion_tarjetaVc'];\t\t\t\t\n\t\t\t\t\n\t\t\t\t//se obtiene el codigo de autorizacion si es que existe\n\t\t\t\t$ca = end($this->administrador_usuario_model->obtener_codigo_autorizacion($id_compra, $id_cliente));\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(count($ca) > 0 ){\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif($ca['codigo_autorizacionVc'] > 0){\n\t\t\t\t\t\t$data['compra']['codigo_autorizacion'] = \"<span class='info-blanco'>codigo de autorización:</span> \".$ca['codigo_autorizacionVc'];\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$data['compra']['codigo_autorizacion'] = \"<span class='info-blanco'>codigo de autorización:</span> \".$ca['codigo_autorizacionVc'] .\"<br />\". $ca['respuesta_bancoVc'];\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\telse{\n\t\t\t\t\t$data['compra']['codigo_autorizacion'] = \"<span class='info-blanco'>(No se realizo el cobro)</span>\";\t\n\t\t\t\t}\t\t\t\t \t\t\t\t \t\t\t\t\t\n\t\t\t}\n\t\t\telse{\t\t\t\t\n\t\t\t\t$data['compra']['medio_pago'] = self::$FORMA_PAGO[($forma_pago['id_tipoPagoSi'])];\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//si el pago es con amex se obtiene el detalle de la tarjeta y la direccion de amex\n\t\t\tif($forma_pago['id_tipoPagoSi'] == 2){\t\t\t\t\n\t\t\t\t$data['compra']['direccion_amex'] = \"direccion ammex s\";\t\n\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t$data['compra']['fecha_compra'] = \t$forma_pago['fecha_registroTs'];\t\t \t \t\t\t\t\n\t\t}\n\t\telse{\n\t\t\t$data['compra']['medio_pago'] = NULL;\n\t\t\t$data['compra']['fecha_pago'] = NULL;\t\t\t\t\n\t\t}\n\n\t\t\n\t\t//se obtiene la direccion de envio si es que existe\t\t\t\n\t\t$rel_envio = $this->administrador_usuario_model->obtener_rel_envio($id_compra, $id_cliente);\n\t\tif(count($rel_envio) > 0){\n\t\t\t$rel_envio = end($rel_envio);\n\t\t\t$dir_envio = $this->administrador_usuario_model->obtener_direccion($id_cliente, $rel_envio['id_consecutivoSi']);\t\t\t \n\t\t\tif(count($dir_envio) > 0){\n\t\t\t\t$dir_envio= end($dir_envio);\n\t\t\t\t$data['compra']['dir_envio'] = \t$dir_envio['calle'].\" \".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['num_ext'].\" \".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['num_int'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['cp'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['colonia'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['ciudad'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t$dir_envio['estado'];\t\n\t\t\t}\t\n\t\t\telse{\n\t\t\t\t$data['compra']['dir_envio']= \"No requiere\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t$data['compra']['dir_envio']= \"No requiere\";\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//se obtiene la direccion de facturacion y Razon Social\n\t\t$facturacion = $this->administrador_usuario_model->obtener_rel_facturacion($id_compra, $id_cliente);\t\t\n\t\t\n\t\tif(count($facturacion) > 0){\n\t\t\t$facturacion = end($facturacion);\t\t\t\t\t\t\t\t\n\t\t\t$consecutivo = $facturacion['id_consecutivoSi'];\n\t\t\t$id_rs = $facturacion['id_razonSocialIn'];\n\t\t\t\n\t\t\t$dir_facturacion = end($this->administrador_usuario_model->obtener_direccion($id_cliente, $consecutivo));\n\t\t\t\t\t\t\t\n\t\t\t$data['compra']['dir_facturacion'] = \t$dir_facturacion['calle'].\" \".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['num_ext'].\" \".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['num_int'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['cp'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['colonia'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['ciudad'].\"<br />\".\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dir_facturacion['estado'];\n\t\t\t\n\t\t\t$rs = end($this->administrador_usuario_model->obtener_rs($id_rs));\n\t\t\t$data['compra']['razon_social'] = $rs['company'].\"<br />\".$rs['tax_id_number'];\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\n\t\telse{\n\t\t\t$data['compra']['dir_facturacion'] = NULL;\n\t\t\t$data['compra']['razon_social'] = NULL;\n\t\t}\n\t\t\n\t\t\n\t\t//se obtiene el id de promocion de la compra\n\t\t$id_promo = $this->administrador_usuario_model->obtener_promo_compra($id_compra, $id_cliente);\n\t\t\n\t\t// se obtiene el detalle de la promocion\n\t\t$promocion = $this->administrador_usuario_model->obtener_detalle_promo($id_promo);\t\n\t\tif(count($promocion) >0){\n\t\t\t$data['compra']['promocion'] = end($promocion);\n\t\t}\n\t\t\t\t\t\n\t\t\n\t\t//se obtiene el total de articulos en la promocion y el total que se pago por ellos \n\t\t$articulos = $this->administrador_usuario_model->obtener_articulos($id_promo);\t\t\t\t\t\t\t\t \n\t\t$monto = 0;\t\t\n\t\t\n\t\t// Se obtienen los articulos de cada promocion y el total pagado por ellos \t\t\t\t\t\t\t\n\t\tforeach( $articulos as $i => $articulo){\n\t\t\tif($articulo['issue_id']){\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$issue = end($this->administrador_usuario_model->obtener_issue($articulo['issue_id']));\t\t\t\t\t\t\n\t\t\t\t$articulos[$i]['tipo_productoVc']= $issue['descripcionVc'];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$articulos[$i]['tipo_productoVc'] = $articulo['tipo_productoVc'];\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$monto+= $articulo['tarifaDc'];\n\t\t}\n\t\t$data['compra']['articulos'] = $articulos;\n\t\t$data['compra']['monto'] = $monto;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$compra = $data['compra'];\n\t\tinclude('./views/cuenta_usuario/detalle_compra.php');\n\t}", "title": "" }, { "docid": "dfd43215cbdd8da2e97f924cf37dceec", "score": "0.60384285", "text": "public function imprimir($id)\n {\n $c = Contrato::find($id);\n $idapp = Input::get('id');\n $modelo = Input::get('id_modelo');\n $transaccion = Input::get('id_transaccion');\n if ($c->estado == 'ANULADO') {\n return redirect(\"web?id=\" . $idapp . \"&id_modelo=\" . $modelo . \"&id_transaccion=\" . $transaccion)->with('mensaje_error', 'El contrato se encuentra ANULADO, no puede proceder.');\n }\n\n $vehiculo = $c->vehiculo;\n $p = Planillac::where('contrato_id', $id)->first();\n $conductores = $p->planillaconductors;\n $url = route('cte_contratos.planillaverificar', $p->id);\n $emp = null;\n $emp = Empresa::find(1);\n $contratante = null;\n if ($c->contratante_id != null) {\n $contratante = $c->contratante;\n }\n $v = $p->plantilla;\n $fi = explode('-', $c->fecha_inicio);\n $ff = explode('-', $c->fecha_fin);\n $to = null;\n $docs = $c->vehiculo->documentosvehiculos;\n if (count($docs) > 0) {\n foreach ($docs as $d) {\n if ($d->tarjeta_operacion == 'SI') {\n $to = $d;\n }\n }\n }\n if (count($conductores) > 0) {\n foreach ($conductores as $cond) {\n $cond->licencia = null;\n $docs = null;\n $docs = $cond->conductor->documentosconductors;\n if (count($docs) > 0) {\n foreach ($docs as $do) {\n if ($do->licencia == 'SI') {\n $cond->licencia = $do;\n }\n }\n }\n }\n }\n\n $representante_legal_contratante = '';\n if ( !is_null($contratante) )\n {\n $representante_legal_contratante = $contratante->tercero->representante_legal();\n if ( is_null($representante_legal_contratante) )\n {\n $representante_legal_contratante = $contratante->tercero;\n }\n }\n \n $documento_vista = View::make('contratos_transporte.contratos.print', compact('c', 'conductores', 'to', 'p', 'v', 'fi', 'ff', 'contratante', 'url', 'contratante', 'vehiculo', 'emp', 'representante_legal_contratante'))->render();\n\n // Se prepara el PDF\n $pdf = App::make('dompdf.wrapper');\n $pdf->loadHTML($documento_vista); //->setPaper( $tam_hoja, $orientacion );\n\n //echo $documento_vista;\n return $pdf->stream('contrato.pdf');\n }", "title": "" }, { "docid": "1a15c2a32813cc8008052c0a53e0199d", "score": "0.6032606", "text": "public function activar_principal($id){\n $not = $this->get_not($id);\n\n if($not->not_estado == \"0\"){\n return 0;\n }else{\n $this->desactivar_principal();\n\n $data = array(\n 'not_estado' => \"2\"\n );\n\n $this->db->where('not_id', $id);\n $this->db->update('noticia', $data); \n return $this->db->affected_rows();\n }\n \n }", "title": "" }, { "docid": "fc688eea448e3bbc3e32dc13b783d902", "score": "0.60259396", "text": "public function plano_contas_referencial_ecd(){\n \n}", "title": "" }, { "docid": "3b928d0c0ebb74f3e651154e6c49aa79", "score": "0.6021357", "text": "public function getIdAprendiz()\n{\nreturn $this->idAprendiz;\n}", "title": "" }, { "docid": "ec1b7a4f1db22f86fbb947ebe2ce994a", "score": "0.601513", "text": "function id_coorte_get( $db, $idscuola, $coorte ) {\n $sql = sprintf( \"SELECT id\n FROM ssm.ssm_pds_coorti\n WHERE idscuola_specializzazione='%s' AND nome='%s' AND idstatus=1\",\n $db->real_escape_string( $idscuola ), $db->real_escape_string( $coorte ) );\n echo \"<br><b>COORTE</b>: \" . $sql;\n $db->query( $sql );\n $rec = $db->fetchassoc();\n return $rec['id'];\n}", "title": "" }, { "docid": "764a23c2fe70dbeb7a4ef1ff2c06587e", "score": "0.6005739", "text": "function get_id_cliente($parametro=null){\r\n\t\t$id_cliente = parent::get_id_cliente();\r\n\t\tif(empty($id_cliente)) throw new toba_error_servicio_web(\"Error en la identificación\");\r\n\t\t//$id_cliente = array('usuario' =>'ue_sistema_externo');//PARA DEBUG SIN SEGURIDAD.\r\n\t\treturn $id_cliente;\r\n\t}", "title": "" }, { "docid": "723345da9fb57f3f940dda8e018f57a2", "score": "0.6004967", "text": "public function getIdEncuesta(){\n\t\treturn $this->idEncuesta;\n\t}", "title": "" }, { "docid": "2fb2544fb46690ed759cc09c96908e1c", "score": "0.6004075", "text": "public function getIdContato()\n {\n return $this->id_contato;\n }", "title": "" }, { "docid": "271660c7ae9f8506807d5609fdf1197d", "score": "0.6000452", "text": "Function DevuelvoDepartamento ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM departamentos WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "7f7b21f590da39603704646580ab174c", "score": "0.599792", "text": "public function generar_codigo($tip,$abre,$id){\r\n $oficina=ORM::factory('oficinas',$id); \r\n if($oficina){\r\n $correlativo=ORM::factory('correlativo')->where('id_oficina','=',$id)\r\n ->and_where('id_tipo','=',$tip)\r\n ->find(); \r\n if($correlativo->loaded()){\r\n $correlativo->correlativo=$correlativo->correlativo+1; //incrementamos en 1 el correlativo\r\n $correlativo->save(); \r\n $corr=substr('000'.$correlativo->correlativo,-4);\r\n if($abre!='')\r\n $abre.='/';\r\n return $abre.$oficina->sigla.'/'.date('Y').'-'.$corr;\r\n //return $codigo;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ee413c413f408952a26451baf8d40d43", "score": "0.5992997", "text": "function activaTipoEjercicio($id){\n \tif((int) $id > 0){\n \t\tDB::beginTransaction ();\n \t\ttry{\n \t\t\t$tipoEjercicio = $this->getTipoEjercicio($id);\n \t\t\t$tipoEjercicioA = clone $tipoEjercicio;\n \t\t\t$tipoEjercicio->activo = 1;\n \t\t\t$tipoEjercicio->update();\n \t\t\t//Bitacora\n \t\t\t$this->insertaBitacora(Constantes::ACCION_ACTIVAR, $tipoEjercicioA->getAttributes(), $tipoEjercicio->getAttributes(), $tipoEjercicio->idtipoEjercicio,$this->controller,$this->moduloId,Session::get('idUser'),array(),$this->campoBase); \t\t\t\n \t\t\tDB::commit ();\n \t\t}\n \t\tcatch ( \\Exception $e ) {\n \t\t\tDB::rollback ();\n \t\t\tthrow new \\Exception('Error al restablecer a la TipoEjercicio con id:'.$id.' -> ' . $e);\n \t\t}\n \t}\n }", "title": "" }, { "docid": "e41925d47b743f9f3d946d3c672220bf", "score": "0.59901726", "text": "public function traerComentarioporID($id)\r\n {\r\n $sentencia = $this->db->prepare(\"SELECT * FROM comentario WHERE id_comentario = ?\");\r\n $sentencia->execute([$id]);\r\n $detalletabla = $sentencia->fetchAll(PDO::FETCH_OBJ);\r\n return $detalletabla;\r\n }", "title": "" }, { "docid": "dd0587bd6d5f06924ebfd2669ae80458", "score": "0.59899896", "text": "public function autoriserAppelFond()\n {\n\n $user_autoriz = $this->userConnecter->rowid;\n $date_autoriz = date('Y-m-d H:i:s');\n $rowid = base64_decode($this->utils->securite_xss($_POST['rowid1']));\n $result3 = $this->marchandModel->validateAppel(2,$date_autoriz,$rowid,$user_autoriz);\n if ($result3 == 1) {\n $this->utils->log_journal('Autorisation appel de fond', 'Id a:' . $rowid, 'succès', 10, $user_autoriz);\n $this->rediriger('marchand', 'validationAutoriserAppelFond/' . base64_encode('ok'));\n } else {\n $this->utils->log_journal('Autorisation appel de fond', 'Id a:' . $rowid, 'succès', 10, $user_autoriz);\n $this->rediriger('marchand', 'validationAutoriserAppelFond/' . base64_encode('nok'));\n }\n\n }", "title": "" }, { "docid": "3dd0cc5f3440034639d51b285df43b04", "score": "0.598331", "text": "public function cd1Action($id_presta,$annexe)\n\t{\n\t\t$this->id_presta = $id_presta;\n\t\t$params = $this->common();\n\n\t\t\n\t\t\t\t \t\t\n\t\t$download = new Download();\n\t\t$nomPresta = $this->prestaEntity->getDispositif()->getNomDispositif();\n \n\t\tif($annexe==1){\n\t\t\t$p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t \n\t\t\t# Modification Apsie /sadel /2015\n\t\t\t$params[\"civilite\"] = $this->prestaEntity->getContact()->getCivilite();\n\t\t\t\t\t \n\t\t\t\n\t\t\t$params['sous-titre'] = $this->prestaData['commentaire_pt_fi'];\n\t\t\t \n\t\t\t$diag = array_filter(array_keys($params), function ($k){ return strpos($k, \"diag\") !== false && strpos($k, \"diag_obs\") === false; });\n\t\t\t\n\t\t\tforeach($diag as $unused => $key_id){\n\t\t\t\t \n\t\t\t\tfor($i=1; $i<=3; ++$i){\n\t\t\t\t\t$params[$key_id.'_'.$i] = $i == $params[$key_id] ? 'x' : '';\n\t\t\t\t}\n\t\t\t}\n \t\t\n\t\t\t$download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Contrat_Lot_1_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/contrat_lot1.rtf\",$params);\n\n\n\t\t}elseif($annexe==2){\n\t\t\t$p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t\n\t\t\t$download->setTitle(\n\t\t\t\n\t\t\t\n\t\t\t$this->prestaEntity->getDispositif()->getNomDispositif().\"_Feuille_d'emargement_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t$download->get(getcwd().\"/bundles/lea/doc/cd771/emargement_lot1.rtf\",$params);\n\n\t\t}elseif($annexe==3){\n\t\t\t$p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t \t\t\t\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\n\t\t\t$params = array_merge($params, $this->prestaData);\n\t\t\t$params[\"description_projet\"] = $this->prestaEntity->getProjet()->getDescriptionProjet();\n\t\t\t$params[\"civilite\"] = $this->prestaEntity->getContact()->getCivilite();\n \n\t\t\t\n\t\t\t\t\n\t\t\t \n\t\t\t// Synthese\n\t\t\t$synthese = array_filter(array_keys($params), function ($k){ return strpos($k, \"synthese\") !== false && strpos($k, \"synthese_obs\") === false; });\n\t\t\n\t\t\t//echo '<pre>'.print_r($p, true).'</pre>';exit;\n\t\t\t//Debug::dump($synthese);exit;\n\t\t\t//var_dump($synthese);\n\t\t\t \n\t\t\tforeach($synthese as $unused => $key_id){\n\t\t\t\tfor($i=1; $i<=3; ++$i){\n\t\t\t\t\t$params[$key_id.'_'.$i] = $i == $params[$key_id] ? 'x' : '';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Diagnostic\n\t\t\t$diag = array_filter(array_keys($params), function ($k){ return strpos($k, \"diag\") !== false && strpos($k, \"diag_obs\") === false; });\n\t\t\t \n\t\t\t//Debug::dump($synthese);Debug::dump($diag);exit; \n\t\t\tforeach($diag as $unused => $key_id){\n\t\t\t\t \n\t\t\t\tfor($i=1; $i<=3; ++$i){\n\t\t\t\t\t$params[$key_id.'_'.$i] = $i == $params[$key_id] ? 'x' : '';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t if($this->prestaData['estimation']==1){\n\t\t\t\t\t$params['estimation_un'] = 'X';\n\t\t\t\t\t$params['estimation_six'] = '';\n\t\t\t\t}\n\t\t\t\telseif($this->prestaData['estimation']==2){\n\t\t\t\t\t$params['estimation_six'] = 'X';\n\t\t\t\t\t$params['estimation_un'] = '';\n\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$params['estimation_un'] = '';\n\t\t\t\t\t$params['estimation_six'] = '';\n\t\t\t\t\n\t\t\t\t}\n\t\t\t \n\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t$download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Bilan_Lot_1_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Bilan_d'evaluation_lot1.rtf\",$params);\n\t\t\t\t\n\n\t\t}elseif($annexe==4){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_commerciale_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_commerciale.rtf\",$params);\n\n\n\n\t\t}elseif($annexe==5){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_financiere_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_financière.rtf\",$params);\n\n\n\t\t}elseif($annexe==6){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_fiscale_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_fiscale.rtf\",$params);\n\n\n\n\t\t}elseif($annexe==7){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_juridique_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_juridique.rtf\",$params);\n\n\n\t\t}elseif($annexe==8){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_organisationnelle_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_organisationnelle.rtf\",$params);\n\n\n\t\t}elseif($annexe==9){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Analyse_sociale_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Analyse_sociale.rtf\",$params);\n\n\n\t\t}elseif($annexe==10){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t }\n\t\t\t \n\t\t\t \n\t\t \t$params = array_merge($params, $this->prestaData);\n\t\t\t$params[\"civilite\"] = $this->prestaEntity->getContact()->getCivilite();\n\t\t\tswitch ($params[\"civilite\"]) {\n\t\t\t\tcase 'Monsieur':\n\t\t\t\t\t$params['sexe'] = 'Masculin';\n\t\t\t\t\tbreak;\n\t\t\t\tcase ($params['civilite'] == 'Madame' || $params['civilite'] == 'Mademoiselle'):\n\t\t\t\t\t$params['sexe'] = 'Féminin';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$params['sexe'] = '';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n//\t\t\ttry {\n//\t\t\t\t$etatCivil = $this->prestaEntity->getEtatCivil();\n//\n//\t\t\t\t$params[\"lieu_naissance\"] = $etatCivil->getLieuNaissance();\n//\t\t\t \t$params[\"date_naissance\"] = Date(\"d/m/Y\", $etatCivil->getDateNaissance());\n//\t\t\t}catch (\\Doctrine\\ORM\\EntityNotFoundException $e) {\n//\t\t\t $etatCivil = null;\n//\t\t\t //$params['lieu_naissance'] = '';\n//\t\t\t //$params['date_naissance'] = '';\n//\t\t\t}\n//\n//\n\n\t\t\t// Cases à cocher questionnaire FSE Q1\n\t\t\tfor ($i=0; $i <= 5; $i++) { \n\t\t\t\t$params['fse_q1_'.$i] = ' ';\n\t\t\t\tif($params['fse_q1'] == $i){\n\t\t\t\t\t$params['fse_q1_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q1activite\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q1activite'.$i] = ' ';\n\t\t\t\tif($params['fse_q1activite'] == $i){\n\t\t\t\t\t$params['fse_q1activite'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q1mois\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q1mois'.$i] = ' ';\n\t\t\t\tif($params['fse_q1mois'] == $i){\n\t\t\t\t\t$params['fse_q1mois'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q1e\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q1e_'.$i] = ' ';\n\t\t\t\tif($params['fse_q1e'] == $i){\n\t\t\t\t\t$params['fse_q1e_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Cases à cocher questionnaire FSE Q1f\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q1f_'.$i] = ' ';\n\t\t\t\tif($params['fse_q1f'] == $i){\n\t\t\t\t\t$params['fse_q1f_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q1activite\n\t\t\t if($this->prestaData['fse_q1activite']==1){\n\t\t\t\t\t$params['fse_q1activite'] = 'X';\n\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\t$params['fse_q1activite'] = '';\n\t\t\t\t\n\t\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q1gmois\n\t\t\t if($this->prestaData['fse_q1gmois']==1){\n\t\t\t\t\t$params['fse_q1gmois'] = 'X';\n\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\t$params['fse_q1gmois'] = '';\n\t\t\t\t\n\t\t\t\t}\n\n\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q2\n\t\t\tfor ($i=0; $i <= 4; $i++) { \n\t\t\t\t$params['fse_q2_'.$i] = ' ';\n\t\t\t\tif($params['fse_q2'] == $i){\n\t\t\t\t\t$params['fse_q2_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q3a\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q3a_'.$i] = ' ';\n\t\t\t\tif($params['fse_q3a'] == $i){\n\t\t\t\t\t$params['fse_q3a_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q3b\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q3b_'.$i] = ' ';\n\t\t\t\tif($params['fse_q3b'] == $i){\n\t\t\t\t\t$params['fse_q3b_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q3c\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q3c_'.$i] = ' ';\n\t\t\t\tif($params['fse_q3c'] == $i){\n\t\t\t\t\t$params['fse_q3c_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q4\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q4_'.$i] = ' ';\n\t\t\t\tif($params['fse_q4'] == $i){\n\t\t\t\t\t$params['fse_q4_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q5\n\t\t\tfor ($i=0; $i <= 2; $i++) { \n\t\t\t\t$params['fse_q5_'.$i] = ' ';\n\t\t\t\tif($params['fse_q5'] == $i){\n\t\t\t\t\t$params['fse_q5_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q6\n\t\t\tfor ($i=0; $i <= 3; $i++) { \n\t\t\t\t$params['fse_q6_'.$i] = ' ';\n\t\t\t\tif($params['fse_q6'] == $i){\n\t\t\t\t\t$params['fse_q6_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Cases à cocher questionnaire FSE Q7\n\t\t\tfor ($i=0; $i <= 3; $i++) { \n\t\t\t\t$params['fse_q7_'.$i] = ' ';\n\t\t\t\tif($params['fse_q7'] == $i){\n\t\t\t\t\t$params['fse_q7_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\n/*\n\t\t\t// Cases à cocher\n\t\t\tfor ($i=0; $i <= 5; $i++) { \n\t\t\t\t$params['fse_q1_'.$i] = ' ';\n\t\t\t\tif($params['fse_q1'] == $i){\n\t\t\t\t\t$params['fse_q1_'.$i] = 'X';\n\t\t\t\t}\n\t\t\t}\n\n\n*/\n\n\n\n\t\t\t\n\t\t\t$download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Quest_FSE_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Questionnaire_FSE_lot1.rtf\",$params);\n\t\t}elseif($annexe==11){\n $p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t $params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_Quest_Satisfaction_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/Questionnaire_satisfaction.rtf\",$params);\n\t\t\t\n\t\t}elseif($annexe==12){\n\t\t\t$p = $this->getDoctrine()->getRepository('LeaPrestaBundle:EgwPrestation')->find($this->id_presta);\n\n\t\t\t$params['db'] = $p->getDateDebut();\n\n\t\t\tif ($p->getDateFin() > 0)\n\t\t\t\t$params[\"df\"] = $p->getDateFin();\n\t\t\telse{\n\t\t\t\tlist($ddd,$mmm,$YYY)=explode('/',$p->getDateDebut());\n\t\t\t\t$params[\"df\"] = Date(\"d/m/Y\", mktime(0,0,0,$mmm,$ddd+90,$YYY)) ;\n\t\t\t }\n\t\t\t \t\t\t\n\t\t\t$params = array_merge($params, $this->prestaData);\n\t\t\t$params[\"description_projet\"] = $this->prestaEntity->getProjet()->getDescriptionProjet();\n\t\t\t$params[\"civilite\"] = $this->prestaEntity->getContact()->getCivilite();\n \n\t\t\t\t\t\t\n\t\t\t$params = array_merge($params, $this->prestaData);\n\t\t\t \n\t\t\t $download->setTitle($this->prestaEntity->getDispositif()->getNomDispositif().\"_couvertures_\".$this->prestaEntity->getContact()->getNom().'_'.$this->prestaEntity->getContact()->getPrenom());\n\t\t\t\n $download->get(getcwd().\"/bundles/lea/doc/cd771/couvertures.rtf\",$params);\n\t\t}\n\t\tdie();\n\t}", "title": "" }, { "docid": "8b0787685b7fe9e4a7b1d5302441ad8c", "score": "0.5981744", "text": "public function mostrar_error_entrada_id(){\n if($this-> error_entrada_id != \"\"){\n echo $this-> aviso_inicio . $this-> error_entrada_id . $this-> aviso_cierre;\n }\n }", "title": "" }, { "docid": "db3a04aad6cde812f6d34ee477a30c44", "score": "0.5978982", "text": "function devolucion($id_compra){\n \n echo \"Se ha devuelto el dinero de la compra {$id_compra} al usuario\";\n \n }", "title": "" }, { "docid": "db3a04aad6cde812f6d34ee477a30c44", "score": "0.5978982", "text": "function devolucion($id_compra){\n \n echo \"Se ha devuelto el dinero de la compra {$id_compra} al usuario\";\n \n }", "title": "" }, { "docid": "f562cf25ffc22f912e8af1121e29aad2", "score": "0.59715027", "text": "Function DevuelvoLocalidad($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM localidad WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($$numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "64b60729d5525dd3f7ec6ea0827ed634", "score": "0.59581083", "text": "public function actionTraerdatos($id = \"\")\n {\n\n if ($id != \"\") {\n $alDia = Yii::$app->db->createCommand(\"select m.*\nfrom Movimiento m\njoin Recibo r on (r.OperacionKey = m.OperacionKey)\njoin OperacionCuenta oc on (oc.OperacionKey = r.OperacionKey)\njoin Operacion o on (o.OperacionKey = r.OperacionKey) and (o.Confirmada = 1)\njoin OperacionFormapago ofp on (ofp.OperacionKey = m.OperacionKey)\njoin Cliente cli on (cli.clienteKey = oc.ClienteKey)\njoin FormaPago fp on (fp.FormaPagoKey = ofp.FormaPagoKey)\nwhere (m.Cancelado = 0) and (m.MontoCancelado <> 0) and (oc.ClienteKey is Not Null)\nand (fp.FormaPagoKey = 5) and cli.clientekey=$id\")->queryAll();\n if (count($alDia) == 0) {\n\n $localidadModel = new Localidad();\n //Trae todos los alumnos según el legajo ingresado\n $alumno = Yii::$app->db->createCommand(\"select a.ODEO_AlumnoKey,c.ClienteKey, a.Apellido, a.Nombre,\n d.Nombre as Division,d.ODEO_divisionKey as IdDivision, g.Nombre as Grado, n.Nombre as Nivel,n.ODEO_NivelKey as IdNivel,g.ODEO_GradoKey as IdGrado,\n a.NumeroDocumento, a.FechaNacimiento, a.Sexo,a.Vigente as Vigente,\n a.FechaIngreso,\n case when bautismo.Variante is null then 'NO' else 'SI' end as Bautismo,\n bautismo.Variante as LugarBautismo,\n diosecisBautismo.Variante as DiosecisBautismo,\n fechaBautismo.Variante as FechaBautismo,\n case when comunion.Variante is null then 'NO' else 'SI' end as Comunion,\n comunion.Variante as LugarComunion,\n diosecisComunion.Variante as DiosecisComunion,\n fechaComunion.Variante as FechaComunion,\n case when confirmacion.Variante is null then 'NO' else 'SI' end as Confirmacion,\n confirmacion.Variante as LugarConfirmacion,\n diosecisConfirmacion.Variante as DiosecisConfirmacion,\n fechaConfirmacion.Variante as FechaConfirmacion,\n localidad.nombre as LugarNacimiento \n from Cliente c\n join ODEO_FamiliaIntegrante f on (c.ClienteKey = f.ClienteKey)\n join ODEO_Alumno a on (f.ODEO_AlumnoKey = a.ODEO_AlumnoKey)\n join ODEO_Division d on (a.ODEO_DivisionKey = d.ODEO_DivisionKey)\n join ODEO_Grado g on (d.ODEO_GradoKey = g.ODEO_GradoKey)\n join ODEO_Nivel n on (g.ODEO_NivelKey = n.ODEO_NivelKey)\n left join ODEO_AlumnoCaracteristica bautismo on (a.ODEO_AlumnoKey = bautismo.ODEO_AlumnoKey) and (bautismo.CaracteristicaKey = 1)\n left join ODEO_AlumnoCaracteristica diosecisBautismo on (a.ODEO_AlumnoKey = diosecisBautismo.ODEO_AlumnoKey) and (diosecisBautismo.CaracteristicaKey = 2)\n left join ODEO_AlumnoCaracteristica fechaBautismo on (a.ODEO_AlumnoKey = fechaBautismo.ODEO_AlumnoKey) and (diosecisBautismo.CaracteristicaKey = 3)\n left join ODEO_AlumnoCaracteristica comunion on (a.ODEO_AlumnoKey = comunion.ODEO_AlumnoKey) and (comunion.CaracteristicaKey = 4)\n left join ODEO_AlumnoCaracteristica diosecisComunion on (a.ODEO_AlumnoKey = diosecisComunion.ODEO_AlumnoKey) and (diosecisComunion.CaracteristicaKey = 5)\n left join ODEO_AlumnoCaracteristica fechaComunion on (a.ODEO_AlumnoKey = fechaComunion.ODEO_AlumnoKey) and (diosecisBautismo.CaracteristicaKey = 6)\n left join ODEO_AlumnoCaracteristica confirmacion on (a.ODEO_AlumnoKey = confirmacion.ODEO_AlumnoKey) and (confirmacion.CaracteristicaKey = 7)\n left join ODEO_AlumnoCaracteristica diosecisConfirmacion on (a.ODEO_AlumnoKey = diosecisConfirmacion.ODEO_AlumnoKey) and (diosecisConfirmacion.CaracteristicaKey = 8)\n left join ODEO_AlumnoCaracteristica fechaConfirmacion on (a.ODEO_AlumnoKey = fechaConfirmacion.ODEO_AlumnoKey) and (fechaConfirmacion.CaracteristicaKey = 9)\n left join localidad on (localidad.localidadKey=a.LocalidadNacimientoKey)\n where a.vigente = 1 and legajo=$id\n order by c.ClienteKey\")->queryAll();\n $responsable = ODEOCliente::find()->select(['loc.localidadkey', 'cliente.numeroDocumento', 'cliente.clientekey', 'cliente.codigo', 'cliente.razonsocial as titular', 'cliente.cuit', 'cliente.domicilio as domiciliotitular', 'isNull(cliente.CodigoPostal, \\'\\') + \\' - \\' + cliente.Localidad as LocalidadTitular', 'prov.nombre as provinciatitular', 'loc.codigopostal as cptitular', 'prov.provinciakey', 'cliente.telefono as teltitular', 'cliente.telefonomovil as celtitular', 'cliente.email as emailtitular'])->innerJoin('localidad as loc', 'cliente.localidadkey=loc.localidadkey')->innerJoin('provincia as prov', 'prov.provinciakey=loc.provinciakey')->where(['cliente.codigo' => $id])->andWhere('cliente.clientekey in (select clientekey from V_ODEO_TitularesVigentes)')->OrderBy('cliente.clientekey', 'desc')->asArray()->one();\n //Verifica cuales son los alumnos activos para dejarlos en el formulario,el resto permanece oculto\n \n if (count($alumno)>0) {\n for ($i = 0; $i < count($alumno);$i++) {\n if ($alumno[$i]['Vigente'] == 0) {\n unset($alumno[$i]);\n }\n else{\n $grados=ODEOGrado::find()->where(['ODEO_NivelKey'=>$alumno[$i]['IdNivel']])->asArray()->all();\n $gradosN[$i]=$grados;\n $divisiones=ODEODivision::find()->where(['ODEO_GradoKey'=>$alumno[$i]['IdGrado']])->asArray()->all();\n $divisionesN[$i]=$divisiones;\n \n }\n \n }\n \n\n $paises = Pais::find()->select(['*'])->asArray()->all(); //Array con todos los paises\n //Trae datos del padre\n $padre = Yii::$app->db->createCommand(\" select cp.RazonSocial as NombrePadre, cp.NumeroDocumento as DocumentoPadre,\n cp.Telefono as TelefonoPadre,\n cp.Celular as CelularPadre,\n cp.Puesto as PuestoPadre, cp.Email as EmailPadre,\n cp.Domicilio as DomicilioLaboralPadre,\n cp.FechaNacimiento as FechaNacimientoPadre,\n cp.TelefonoParticular as TelefonoParticularPadre,\n pp.Nombre as NacionalidadPadre,\n cpPrimaria.Valor as PrimariaPadre, cpSecundaria.Valor as SecundariaPadre,\n cpBautismo.Valor as BautismoPadre,\n cpComunion.Valor as ComunionPadre,\n c.TipoDocumento as TipoDocPadre,\n cpConfirmacion.Valor as ConfirmacionPadre from Cliente c\n join V_ODEO_TitularesVigentes v on (c.ClienteKey = v.ClienteKey) left join Contacto cp on (c.ClienteKey = cp.ClienteKey) and (cp.TipoContactoKey = 1)\n left join Pais pp on (cp.PaisNacimientoKey = pp.PaisKey) left join Localidad loc on (c.LocalidadKey = loc.LocalidadKey)\n left join Provincia prov on (loc.ProvinciaKey = prov.ProvinciaKey)\n left join ContactoCaracteristica cpPrimaria on (cp.ContactoKey= cpPrimaria.ContactoKey) and (cpPrimaria.CaracteristicaKey = 18) left join ContactoCaracteristica cpSecundaria on (cp.ContactoKey= cpSecundaria.ContactoKey) and (cpSecundaria.CaracteristicaKey = 19)\n left join ContactoCaracteristica cpBautismo on (cp.ContactoKey= cpBautismo.ContactoKey) and (cpBautismo.CaracteristicaKey = 13)\n left join ContactoCaracteristica cpComunion on (cp.ContactoKey= cpComunion.ContactoKey) and (cpComunion.CaracteristicaKey = 14)\n left join ContactoCaracteristica cpConfirmacion on (cp.ContactoKey= cpConfirmacion.ContactoKey) and (cpConfirmacion.CaracteristicaKey = 15) join ODEO_FamiliaIntegrante f on (c.ClienteKey = f.ClienteKey)\n where f.ODEO_AlumnoKey in (select ODEO_Alumno.ODEO_alumnoKey from ODEO_Alumno where legajo=$id)\n order by NombrePadre\")->queryOne();\n //Trae datos de la madre\n $madre = Yii::$app->db->createCommand(\" select cm.RazonSocial as NombreMadre, cm.NumeroDocumento as DocumentoMadre,\n cm.Telefono as TelefonoMadre,\n cm.Celular as CelularMadre,\n cm.Puesto as PuestoMadre, cm.Email as EmailMadre,\n cm.Domicilio as DomicilioLaboralMadre,\n cm.FechaNacimiento as FechaNacimientoMadre,\n cm.TelefonoParticular as TelefonoParticularMadre,\n pp.Nombre as NacionalidadMadre,\n cmPrimaria.Valor as PrimariaMadre, cmSecundaria.Valor as SecundariaMadre,\n cmBautismo.Valor as BautismoMadre,\n cmComunion.Valor as ComunionMadre,\n c.TipoDocumento as TipoDocMadre,\n cmConfirmacion.Valor as ConfirmacionMadre from Cliente c\n join V_ODEO_TitularesVigentes v on (c.ClienteKey = v.ClienteKey) left join Contacto cm on (c.ClienteKey = cm.ClienteKey) and (cm.TipoContactoKey = 2)\n left join Pais pp on (cm.PaisNacimientoKey = pp.PaisKey) left join Localidad loc on (c.LocalidadKey = loc.LocalidadKey)\n left join Provincia prov on (loc.ProvinciaKey = prov.ProvinciaKey)\n left join ContactoCaracteristica cmPrimaria on (cm.ContactoKey= cmPrimaria.ContactoKey) and (cmPrimaria.CaracteristicaKey = 18) left join ContactoCaracteristica cmSecundaria on (cm.ContactoKey= cmSecundaria.ContactoKey) and (cmSecundaria.CaracteristicaKey = 19)\n left join ContactoCaracteristica cmBautismo on (cm.ContactoKey= cmBautismo.ContactoKey) and (cmBautismo.CaracteristicaKey = 13)\n left join ContactoCaracteristica cmComunion on (cm.ContactoKey= cmComunion.ContactoKey) and (cmComunion.CaracteristicaKey = 14)\n left join ContactoCaracteristica cmConfirmacion on (cm.ContactoKey= cmConfirmacion.ContactoKey) and (cmConfirmacion.CaracteristicaKey = 15) join ODEO_FamiliaIntegrante f on (c.ClienteKey = f.ClienteKey)\n where f.ODEO_AlumnoKey in (select ODEO_Alumno.ODEO_alumnoKey from ODEO_Alumno where legajo=$id)\n order by NombreMadre\")->queryOne();\n $nivelModel = new ODEONivel();\n \n \n $provinciaModel = new Provincia();\n $this->layout = 'vacio';\n return $this->render('inscripcionExistente', ['divisiones'=>$divisionesN,'grados'=>$gradosN,'nivelModel' => $nivelModel, 'alumno' => $alumno, 'localidadModel' => $localidadModel, 'responsable' => $responsable, 'paises' => $paises, 'padre' => $padre, 'madre' => $madre, 'provinciaModel' => $provinciaModel]);\n } else { //Caso en que el legajo que se ingreso no esta en la BD\n echo \"El legajo ingresado es inexistente\";\n }\n } else {\n echo \"La cuenta tiene pagos pendientes\";\n }\n } else { //Caso en que el legajo no fue ingresado\n $provinciasModel = new ProvinciaLocal();\n $localidadModel = new CiudadLocal();\n $provincias = $provinciasModel->find()->select('*')->all();\n $this->layout = 'vacio';\n return $this->render('index', ['provincias' => $provincias, 'provinciaModel' => $provinciasModel, 'localidadModel' => $localidadModel]);\n }\n }", "title": "" }, { "docid": "5dbf22891eeeffaee05a4e3decd514ff", "score": "0.59505033", "text": "function ver_competencias($id_realiza){\n\t\t\tparent::conectar();\n\n\t\t\t $sql=\"SELECT * FROM view_competencias where id_realiza=$id_realiza order by idpadre\";\n\t\t\t\t\t //$data1=\"\";\n\n\t\t\t\t\t $record_consulta = $this->obj_con->Execute($sql);\n\t\t\t\t\t\t\n\n\t\t\t\t\t while (!$record_consulta->EOF)\n\t\t\t\t\t {\n\t\t\t\t\t $id_competencia=$record_consulta->fields[\"id_competencia\"];\n\t\t\t\t\t $id_area=$record_consulta->fields[\"id_area\"];\n\t\t\t\t\t $area = $record_consulta->fields[\"area\"];\n\t\t\t\t\t $idpadre=$record_consulta->fields[\"idpadre\"];\n\t\t\t\t\t $subcategoria=$record_consulta->fields[\"Subcategoria\"];\n\t\t\t\t\t $nombrecompetencia=$record_consulta->fields[\"nombrecompetencia\"];\n\t\t\t\t\t $descripcioncomp=$record_consulta->fields[\"descripcioncomp\"];\n\t\t\t\t\t $idclasificacion=$record_consulta->fields[\"clasificacion\"];\n\t\t\t\t\t $clasificacion=$record_consulta->fields[\"clasificacions\"];\n \n\t\t\t\t\t\t $data1[] = array('id_area'=>$id_area,'idpadre'=>$idpadre,'id_competencia'=>$id_competencia,'idclasificacion'=>$idclasificacion,'area'=>$area,'clasificacion'=>$clasificacion,'subcategoria'=>$subcategoria,'nombrecompetencia'=>$nombrecompetencia,'descripcion'=>$descripcioncomp);\n\t\t\t\t\t \n\t\t\t\t\t $record_consulta->MoveNext();\n\t\t\t\t\t }\n\t\t\t\t\t //ANTERIORMENTE NO HACIA ESTO PERO PENSE QUE AFECTABA EN ALGO POR EL [root] del STORE donde se define : data\n\t\t\t\t\t $repuesta = array('success'=>true,'data'=>$data1); \n\n\t\t\t\t\t return $repuesta;\n\t\t}", "title": "" }, { "docid": "8dbf68200de477d0457354aeb8882544", "score": "0.5943939", "text": "public function consultarDisenoActivo($id) {\n $stmt = $this->objPdo->prepare(\"\n \nselect disedet.prodidet_id, disedet.prodi_id, disedet.prodidet_url,disedet.prodidet_version,dise.prodi_codart,dise.prodi_cliente\nfrom PRODISENOSDET disedet\ninner join PRODISENOS dise on dise.prodi_id = disedet.prodi_id and disedet.prodidet_vigente = '1'\nwhere dise.prodi_codart = '$id'\n\n \");\n $stmt->execute();\n $diseno = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $diseno;\n }", "title": "" }, { "docid": "bbc9d6b585efa9b19d59b0e628c08749", "score": "0.5942062", "text": "function Obtener_Id_Remoto($link2,$Institucion)\n {\n// $result = mysql_query($Instruccion); \n \n $Instruccion = \"SELECT Instituciones.Abreviatura,Paises.Abreviatura,Instituciones.Codigo_Pedidos \";\n $Instruccion = $Instruccion.\"FROM Instituciones LEFT JOIN Paises ON Paises.Id=Instituciones.Codigo_Pais \";\n $Instruccion = $Instruccion.\"WHERE Codigo=\".$Institucion;\n $result = mysql_query($Instruccion,$link2); \n\t echo mysql_error();\n $rowg = mysql_fetch_row($result);\n\t \n $NumeroX = $rowg[2]+1;\n $Codigo_Pedido = $rowg[1].\"-\".$rowg[0].\"-\".sprintf(\"%07d\",$NumeroX);\n\t mysql_free_result($result);\n \n $Instruccion = \"UPDATE Instituciones SET Codigo_Pedidos =\".$NumeroX.\" WHERE Codigo=\".$Institucion;\n $result = mysql_query($Instruccion,$link2); \t\t \n\t return $Codigo_Pedido;\n\t \n// $result = mysql_query($Instruccion); \t\t \n// echo mysql_error();\n \t\n }", "title": "" }, { "docid": "17ec965382e7a2d9296e1c2d1e2ecc54", "score": "0.5939067", "text": "function get_guia_carga_id_sucursal($id_sucursal=''){\n\t\n\t\t$sQuery=\"SELECT * FROM guia_carga WHERE 1 = 1\";\n\t\tif($id_sucursal) {\t$sQuery.=\" AND id_sucursal = '$id_sucursal' \";\t}\n\t\t$sQuery.=\" ORDER BY id_por_sucursal DESC \";\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\tif($res_array[0]['id_por_sucursal'])\t\n\t\t{\t\n\t\t\t$new_id_por_sucursal=$res_array[0]['id_por_sucursal'];\n\t\t\t$new_id_por_sucursal++;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\n\t\t\t$new_id_por_sucursal=1;\n\t\t}\n\t\t\n\t\treturn($new_id_por_sucursal);\n\t\t\t\n\t}", "title": "" }, { "docid": "46d1055f846712d598ec5097b0cfadd8", "score": "0.59352267", "text": "function adicionarNotaCredito($id, $datos = array()) {\n global $textos, $sql, $configuracion, $sesion_configuracionGlobal;\n\n if (!isset($id) || (isset($id) && !$sql->existeItem('facturas_compras', 'id', $id))) {\n $respuesta = array();\n $respuesta['error'] = true;\n $respuesta['mensaje'] = $textos->id('NO_HA_SELECCIONADO_ITEM');\n\n Servidor::enviarJSON($respuesta);\n return false;\n \n }\n \n $objeto = new FacturaCompra($id);\n $destino = '/ajax/facturas_compra/adicionarNotaCredito';\n\n if (empty($datos)) {\n $respuesta = array();\n\n $codigo = HTML::campoOculto('procesar', 'true');\n $codigo .= HTML::campoOculto('id', $id);\n $codigo .= HTML::campoOculto('datos[dialogo]', '', 'idDialogo');\n $codigo .= HTML::campoOculto('datos[id_factura]', $id, '');\n\n $codigo1 = HTML::parrafo($textos->id('NUMERO_FACTURA_PROVEEDOR') . ': ' . HTML::frase($objeto->numeroFacturaProveedor, 'sinNegrilla subtitulo flotanteDerecha margenDerecha'), 'negrilla margenSuperior espacioInferior10 bordeInferior margenDerechaTriple');\n $codigo1 .= HTML::parrafo($textos->id('CANTIDAD_DINERO_NOTA') . ': ' . HTML::campoTexto('datos[monto_nota]', 10, 15, '', 'flotanteDerecha campoObligatorio2 campoDinero soloNumeros', 'campoMontoNota'), 'negrilla margenSuperiorDoble bordeInferior espacioInferior15 margenDerechaTriple');\n $codigo1 .= HTML::parrafo($textos->id('CANTIDAD_IVA_NOTA') . ': ' . HTML::campoTexto('datos[iva_nota]', 10, 15, '', 'flotanteDerecha campoObligatorio2 campoDinero soloNumeros', 'campoIvaNota'), 'negrilla margenSuperiorDoble bordeInferior espacioInferior15 margenDerechaTriple');\n $codigo1 .= HTML::parrafo($textos->id('CANTIDAD_TOTAL_NOTA') . ': ' . HTML::campoTexto('datos[total_nota]', 10, 15, '', 'flotanteDerecha campoObligatorio2 campoDinero letraNegra', 'campoTotalNota', array('disabled' => 'disabled')), 'negrilla margenSuperiorDoble bordeInferior espacioInferior15 margenDerechaTriple');\n $codigo1 .= HTML::parrafo($textos->id('AFECTAR_CANTIDADES_INVENTARIO') . HTML::campoChequeo('datos[inventario_modificado]', false, 'chkModInventario margenIzquierda', 'chkModInventario'), 'negrilla margenSuperior');\n\n\n $codigo2 = HTML::parrafo($textos->id('CONCEPTO_NOTA'), 'negrilla margenSuperior');\n $codigo2 .= HTML::areaTexto('datos[concepto_nota]', 4, 50, '', 'txtAreaConceptoNotaC campoObligatorio', 'txtAreaConceptoNotaC');\n $codigo2 .= HTML::parrafo($textos->id('FECHA_NOTA') . HTML::campoTexto('datos[fecha_nota]', 12, 12, '', 'fechaAntigua campoCalendario', '', array('ayuda' => $textos->id('SELECCIONE_FECHA_NOTA'))), 'negrilla margenSuperior');\n $codigo2 .= HTML::parrafo($textos->id('CARGAR_NOTA_DIGITAL'), 'negrilla margenSuperiorDoble');\n $codigo2 .= HTML::campoArchivo('nota_digital', 50, 255, '', $textos->id('AYUDA_CARGAR_NOTA_CREDITO'));\n\n //verificar el identificador escogido para los articulos en la configuracion global y usarlo para mostrar los datos\n $idPrincipalArticulo = (string)$sesion_configuracionGlobal->idPrincipalArticulo;\n $arrayIdArticulo = array('id' => $textos->id('ID_AUTOMATICO'), 'codigo_oem' => $textos->id('CODIGO_OEM'), 'plu_interno' => $textos->id('PLU')); \n \n\n $datosTabla = array(\n HTML::frase($textos->id($arrayIdArticulo[$idPrincipalArticulo]), 'negrilla margenIzquierda'),\n HTML::frase($textos->id('ARTICULO'), 'negrilla margenIzquierda'),\n HTML::frase($textos->id('CANTIDAD'), 'negrilla margenIzquierda'),\n HTML::frase($textos->id('CANTIDAD_A_MODIFICAR'), 'negrilla margenIzquierdaDoble'),\n );\n\n\n $listaArticulos = array();\n /**\n * Recorro el listado de articulos, y voy creando objetos en vivo para agregar al arreglo de objetos\n * para ver el listado exacto de los articulos que se cargan ver la clase FacturaCompra \n */\n foreach ($objeto->listaArticulos as $article) {\n //declaro un nuevo objeto vacio para poder armar la tabla\n $object = new stdClass();\n \n $object->plu = $article->$idPrincipalArticulo;\n $object->articulo = $article->articulo;\n $object->cantidad = $article->cantidad;\n \n \n $idReg = (int) $article->id ;\n\n if (strlen($object->articulo) > 60) {\n $object->articulo = substr($object->articulo, 0, 60) . '.';\n }\n /**\n *Aqui se añade un campo de texto que contiene la cantidad de cada uno de los articulos\n * notese que en \"valor\" se concatena la cantidad del articulo, estos datos son usados \n * en el metodo encargado de hacer el registro\n */\n $datosArticulo = $object->cantidad . '_' . (int)$article->idArticulo . '_' . (int)$article->idBodega;\n $object->nuevaCantidad = HTML::campoTexto('datos[nueva_cantidad][' . $datosArticulo . ']', 5, 10, $object->cantidad, 'margenIzquierdaDoble rangoNumeros', $idReg, array(\"rango\" => \"1-\".$object->cantidad.\"\"));\n $listaArticulos[] = $object;\n }\n\n\n $idTabla = 'tablaListaArticulosConsulta';\n $clasesColumnas = array('', '', '', '', '');\n $clasesFilas = array('centrado', 'centrado', 'centrado', 'centrado', 'centrado', 'centrado');\n $opciones = array('cellpadding' => '5', 'cellspacing' => '5', 'border' => '1');\n $clase = 'tablaListaArticulosConsulta';\n \n $contenedorListaArticles = HTML::tabla($datosTabla, $listaArticulos, $clase, $idTabla, $clasesColumnas, $clasesFilas, $opciones);\n\n\n\n $contenedor1 = HTML::contenedor($codigo1, 'contenedorIzquierdo margenInferiorDoble');\n $contenedor2 = HTML::contenedor($codigo2, 'contenedorDerecho margenInferiorDoble');\n $contenedor3 = HTML::contenedor($contenedorListaArticles, 'contenedorListadoArticulos oculto', 'contenedorListaArticulosNotaC');\n\n\n $codigo .= $contenedor1 . $contenedor2 . $contenedor3;\n $codigo .= HTML::parrafo(HTML::boton('chequeo', $textos->id('ACEPTAR'), ' margenSuperiorTriple', 'botonOk', 'botonOk'), 'margenSuperiorTriple');\n $codigo .= HTML::parrafo($textos->id('NOTA_CREDITO_ADICIONADA_A_FACTURA'), 'textoExitoso', 'textoExitoso');\n $codigo1 = HTML::forma($destino, $codigo, 'P');\n\n\n $respuesta['generar'] = true;\n $respuesta['cargarJs'] = true;\n $respuesta['archivoJs'] = $configuracion['SERVIDOR']['media'] . $configuracion['RUTAS']['javascript'] . '/modulos/facturas_compra/funcionesNotaCredito.js';\n $respuesta['codigo'] = $codigo1;\n $respuesta['titulo'] = HTML::parrafo($textos->id('INGRESAR_NOTA_CREDITO'), 'letraBlanca negrilla subtitulo');\n $respuesta['destino'] = '#cuadroDialogo';\n $respuesta['ancho'] = 800;\n $respuesta['alto'] = 570;\n \n } else {\n \n $objeto = new NotaCreditoProveedor($id);\n\n $respuesta['error'] = true;\n\n if (empty($datos['monto_nota'])) {\n $respuesta['mensaje'] = $textos->id('ERROR_FALTA_MONTO_NOTA');\n \n } elseif (empty($datos['iva_nota'])) {\n $respuesta['mensaje'] = $textos->id('ERROR_FALTA_IVA_NOTA');\n \n } elseif (empty($datos['concepto_nota'])) {\n $respuesta['mensaje'] = $textos->id('ERROR_FALTA_CONCEPTO_NOTA');\n \n } else {\n $idItem = $objeto->adicionar($datos);\n \n if ($idItem) {\n $respuesta['error'] = false;\n $respuesta['accion'] = 'insertar';\n $respuesta['insertarAjax'] = true;\n $respuesta['mostrarNotificacionDinamica'] = true;\n\n \n if ($datos['dialogo'] != '') {\n $respuesta['ventanaDialogo'] = $datos['dialogo'];\n \n }\n \n } else {\n $respuesta['mensaje'] = $textos->id('ERROR_DESCONOCIDO');\n \n }\n }\n }\n\n Servidor::enviarJSON($respuesta);\n \n}", "title": "" }, { "docid": "a11c55ce9e9d2daf14c271c3def9ecc2", "score": "0.593513", "text": "public function modificar() {\n $contacto = new Contacto($this->adapter);\n if (isset($_GET[\"id\"])) {\n //variable para guardar vector de getById\n $id = (int) $_GET[\"id\"];\n }\n //Conseguimos el metodo getbyid el cual me envia un vector y debo guardar en una variable\n $valor = $contacto->getById($id, \"cli_documento\");\n //Cargamos la vista index y le pasamos valores\n\n $this->view(\"cliente/indexcliente\", array(\n \"cliente\" => $valor\n ));\n }", "title": "" }, { "docid": "1dd623dc11da10821c0d49917cb3e2c4", "score": "0.5926643", "text": "function reference_test( $id ){\n \t\n \tif(isset($_SESSION[$this->ref_nazev])){\n \t\t$id_ref = $_SESSION[$this->ref_nazev];\n \t\t$query = \"SELECT * FROM users_sys WHERE id=$id_ref\";\n \t\t$res = $this->db->Query( $query );\n \t\t\n \t\t//je id platne?\n \t\tif($row = $this->db->GetFetchAssoc( $res )){\n \t\t\t$query = \"SELECT * FROM users_sys WHERE id=$id\";\n \t\t\t$res2 = $this->db->Query( $query );\n \t\t\t$novy_uzivatel = $this->db->GetFetchAssoc( $res2 );\n \t\t\t//pokud uz uzivatele nekdo pozval, skonci\n \t\t\tif(isset($novy_uzivatel['reference_od_id'])){\n \t\t\t\treturn;\n \t\t\t}\n \t\t\telse{\n \t\t\t\t$query = \"UPDATE users_sys SET reference_od_id=$id_ref\n \t\t\t\t\t\tWHERE id=$id\";\n \t\t\t\t$this->db->DbQuery( $query );\n \t\t\t\t//SEM PRIDAT KAZDE DALSI BONUSY PRO UZIVATELE!!!\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n \tunset($_SESSION[$this->ref_nazev]);\n }", "title": "" }, { "docid": "7a6b3f8ff2c939cad19578b1a36a97fd", "score": "0.59264016", "text": "function modificarConsultaViajeroFrecuente(){\n $this->procedimiento='obingresos.ft_consulta_viajero_frecuente_ime';\n $this->transaccion='OBING_VIF_MOD';\n $this->tipo_procedimiento='IME';\n\n //Define los parametros para la funcion\n $this->setParametro('id_consulta_viajero_frecuente','id_consulta_viajero_frecuente','int4');\n //$this->setParametro('ffid','ffid','int4');\n //$this->setParametro('estado_reg','estado_reg','varchar');\n //$this->setParametro('message','message','varchar');\n //$this->setParametro('voucher_code','voucher_code','varchar');\n $this->setParametro('status','status','varchar');\n $this->setParametro('nro_boleto','nro_boleto','varchar');\n $this->setParametro('pnr','pnr','varchar');\n $this->setParametro('message','message','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n //echo $this->consulta;exit;\n $this->ejecutarConsulta();\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "75fb20d7be67349377d00769265a9c9b", "score": "0.59226775", "text": "Function DevuelvoDescripcionLocalidad ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Descripcion FROM localidad WHERE Id='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t$$numeroerror=mysql_errno();\r\n\t\t$descripcionerror=mysql_error();\r\n\t\tif ($$numeroerror!=0) {\r\n\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\tReturn $id;\r\n\t}", "title": "" }, { "docid": "12c7fe9682f899f4f75c3c43c474bd42", "score": "0.5921462", "text": "function modifica_objetivo_indicador( $id ) {\n\t\t// array para actualizar en la bd\n\t\t$actualiza = array(\n\t\t \t'Indicador'\t\t=> $this->input->post('indicador'),\n\t\t\t'Calculo'\t\t=> $this->input->post('calculo'),\n\t\t\t'Meta'\t\t\t=> $this->input->post('meta'),\n\t\t\t'Frecuencia'\t=> $this->input->post('frecuencia'),\n\t\t\t'Observaciones'\t=> $this->input->post('observaciones'),\n\t\t);\n\n\t\t// realiza la actualización\n\t\t$this->db->where( 'IdObjetivoIndicador', $id );\n\t\t$resp = $this->db->update( 'pa_objetivos_indicadores', $actualiza );\n\n\t\treturn $resp;\n\t}", "title": "" }, { "docid": "4cf1ed6a9eee0fe1bc291c6727052af9", "score": "0.59201604", "text": "function notificarDetallesVentaAlComprador($idVenta){\n\t}", "title": "" }, { "docid": "5628eeb2f37948e200c0a409d20ff571", "score": "0.59163046", "text": "public function editPago($id){\r\n $consulta=$this->db->query(\"SELECT * FROM 2017cuartos c LEFT JOIN 2017inquilinas i ON (i.CUARTO= c.CUARTOId) WHERE c.CUARTOId= $id\");\r\n //$consulta = $this->db->query(\"SELECT * FROM 2017facturas u WHERE u.N = $id\");\r\n return $consulta->result();\r\n }", "title": "" }, { "docid": "8e4e6bd55b6e4add9fac7bf559448f99", "score": "0.59092265", "text": "function CambiarEstadoDetalle($iddetalle)\r\n {\r\n $con = new ConexionBD;\r\n if($con->conectar()==true) //Estado RC--> Resultados Completo\r\n {\t$query=\"UPDATE sec_detallesolicitudestudios SET estadodetalle='RC' WHERE IdDetalleSolicitud=$iddetalle\"\t;\t\r\n $result = @mysql_query($query);\r\n if (!$result)\r\n return false;\r\n else\r\n return true;\t \r\n }\r\n }", "title": "" }, { "docid": "f7469b65c23661c64aef157ea3848f6c", "score": "0.59016985", "text": "public function plan_contas_ref(){\n $this->write[] = \"|I051|8||11100009|\\n\"; \n $this->total_registros_bloco_i_ecd +=1;\n $this->array_totais_registros_ecd['I051'] = 1;\n}", "title": "" }, { "docid": "46b59116f8d99a2fe81528d5f55423b3", "score": "0.5897103", "text": "function setIdComuna($id_comuna)\r\n\t {\r\n\t\t $this->id_comuna = $id_comuna;\r\n\t }", "title": "" }, { "docid": "cc33c6d90d9800de821b26087c2ec4c1", "score": "0.5896651", "text": "static function notificacionLeida($id)\n {\n include_once 'class.conexion.php';\n $c = new Conexion;\n $sql = \"UPDATE sicloud.notificacion SET estado = '$id'\n where ID_not = '1'\";\n // $stm = $this->db->prepare($sql);\n $leer = $c->query($sql);\n if ($leer) {\n $_SESSION['message'] = 'Leyo la notificacion';\n $_SESSION['color'] = 'success';\n } else {\n $_SESSION['message'] = 'No pudo leer la notificacion';\n $_SESSION['color'] = 'danger';\n }\n }", "title": "" }, { "docid": "a707b56c8d8a3b68a465921ae4f0e7b8", "score": "0.58952326", "text": "public function getIdDetail()\n {\n \treturn \"AVE-03-\". date(\"Y\") . sprintf('%05d', $this->id_actacomputo);\n }", "title": "" }, { "docid": "b1df2efff4ccd8851b006d9cf1d99627", "score": "0.5893864", "text": "function accetta($id) {\n if (null == $id || !is_numeric($id)) {\n $this->set_view('errore');\n $this->view->set_message('id non valido');\n $this->view->set_user($this->user);\n $this->view->render();\n die();\n }\n\n $amicizia = new amicizia($this->db, $this->user->get_id(), $id);\n $amicizia->accetta();\n $da_notificare = new user($this->db, $id);\n $da_notificare->add_notifica('amicizia-accettata', $this->user->get_id());\n\n $this->set_view('messaggio');\n $this->view->set_message('Amicizia reciprocata');\n $this->view->set_user($this->user);\n $this->view->set_redirect($this->user->session->get_previous_page());\n $this->view->render();\n die();\n }", "title": "" }, { "docid": "340b6b1e2122f00deff70021ba886784", "score": "0.5882935", "text": "public function buscarDetalleAcuerdo( $txtIdActa, $txtCodigoEstudiante ){\n\t\t$detalleAcuerdo = new DetalleActaAcuerdo( $this->persistencia );\n\t\tif( $detalleAcuerdo->buscarDetalleAcuerdo( $txtIdActa, $txtCodigoEstudiante ) != 0 ){\n\t\t\t$detalleAcuerdo = \"../css/images/circuloVerde.png\";\n\t\t}else{\n\t\t\t$detalleAcuerdo = \"../css/images/circuloRojo.png\";\n\t\t}\n\t\treturn $detalleAcuerdo;\n\t\t\n\t}", "title": "" }, { "docid": "e5b40ab13263ffdcd3e450d1891391ff", "score": "0.5875894", "text": "function get_pr_factura_entrada($id)\n\t{\n\t\t$u = new Pr_factura();\n\t\t//Buscar en la base de datos\n\t\t$u->get_by_id($id);\n\t\tif($u->c_rows ==1){\n\t\t\treturn $u->cproveedores_id;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "57fafb985151fedf0c9a91954989075f", "score": "0.5871278", "text": "Function DevuelvoTipoDoc ($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$id=\"\";\r\n\t\tif ($cual==0) {\r\n\t\t $id=\"NO ESPECIFICA\";\r\n\t\t\t} else {\r\n\t\t\t\t$consulta=\"SELECT Descripcion FROM tipodocumento WHERE Id='\".$cual.\"'\";\r\n\t\t\t\t//echo (\"<br>\".$consulta.\"<br>\");\r\n\t\t\t\t$hacerconsulta=mysql_query($consulta,$manejador);\r\n\t\t\t\t$$numeroerror=mysql_errno();\r\n\t\t\t\t$descripcionerror=mysql_error();\r\n\t\t\t\tif ($numeroerror!=0) {\r\n\t\t\t\t\techo (\"<br>\".$$numeroerror.\"<br>\".$descripcionerror);}\r\n\t\t\t\t$id=mysql_result ($hacerconsulta,0,\"Descripcion\");\r\n\t\t\t\t}\r\n\t\t\t\tReturn $id;\r\n\t\t}", "title": "" }, { "docid": "c5c078d8e0f8cd23ee16f4447c095f8c", "score": "0.5865397", "text": "public function accueil($id = null) {\n\n\t\t$this->Session->delete('module_id');\n\t\t$this->Session->write('module_id', 2);\n\n\t\t/*$this->Paginator->settings = array('contain' => 'Seance.User.Personne', 'group' => 'SeanceR.article_id');*/\n\n\t\t$this->set('seances', $this->paginate('Seance'));\n\n\n\t}", "title": "" }, { "docid": "0496574f4aa0d09cb2f4c45e0a37588c", "score": "0.58644694", "text": "public function edit($id_rendezvous)\n {\n\n\n }", "title": "" }, { "docid": "065ea5f498dda08c2e64d6de876d311c", "score": "0.58632725", "text": "public function getDocenteID()\n {\n return $this->docenteID;\n }", "title": "" }, { "docid": "96e48d6a4f05564752828847b52a9c1c", "score": "0.58618295", "text": "protected function fijarId(){\n return \"cod_valoracion\";\n }", "title": "" }, { "docid": "ad8a2cd2bca95902910ee519764c6d4b", "score": "0.5857477", "text": "function afficher()\n {\n $this->getId();\n $this->getRue();\n $this->getLocalite();\n $this->getCodePostal();\n $this->getPays();\n }", "title": "" }, { "docid": "cd4cc10eb11c6a548387abe4fc340151", "score": "0.5849529", "text": "public function mostrar_entrada_id(){\n //evaluamos si no esta vacio\n if ($this-> entrada_id != \"\"){\n //si se cumple el if se muestra el dato\n echo 'value = \"' . $this-> entrada_id . '\"';\n }\n }", "title": "" }, { "docid": "9a539e7dac0254ee1c1afba75b769271", "score": "0.58469594", "text": "public function getIdcliente() {\n return $this->id_cliente ?? \"Id do cliente não informado !!\";\n }", "title": "" }, { "docid": "8e1e853fc789d3dfd25dd17667cfd62a", "score": "0.5845041", "text": "function select($id){\r\n\t\t$sql = \"SELECT * FROM gestaoti.perfil_acesso WHERE SEQ_PERFIL_ACESSO = $id\";\r\n\t\t$result = $this->database->query($sql);\r\n\t\t$result = $this->database->result;\r\n\r\n\t\t$row = pg_fetch_object($result, 0);\r\n\t\t$this->SEQ_PERFIL_ACESSO = $row->seq_perfil_acesso;\r\n\t\t$this->NOM_PERFIL_ACESSO = $row->nom_perfil_acesso;\r\n\t}", "title": "" }, { "docid": "34c1872d1b8d21d5ba044510a47a92a5", "score": "0.58414763", "text": "function ingresarActa2($cod)\n{\n\t$acta2 = new ActaConcertacion();\n\t//El 2 corresponde a un acta de concertacion\n\t$data2['numero']= 2;\n\t//año actual con 4 digitos\n\t$data2['ano'] = date('Y');\n\t//id del grupo \n\t$data2['idGrupo'] = $_COOKIE [\"idGrupo\"];\n\t//codigo del estudiante\n\t$data2['idEstudiante'] = $cod[0];\n\t//Ingreso del acta\n\t$acta2->agregarActaConcertacion($data2);\n\n\treturn $acta2->buscarActa($data2);\n}", "title": "" }, { "docid": "f5385e04bc309550fd88e5154e0f65e9", "score": "0.5832793", "text": "function nombreIva($idIva){\n //cuando se crea no posee iva, por lo tanto deberia ser el primero id 1 itbms-iva\n if($idIva == NULL || $idIva == \"0\" || $idIva == \"\" || $idIva == \" \"){\n $idIva = 1;\n } \n $query = \"SELECT observacion FROM pg_iva WHERE idIva = \".$idIva.\"\";\n $rs = mysql_query($query);\n if(!$rs){ die (\"Error cargarDcto \\n\".mysql_error().$query.\"\\n Linea: \".__LINE__); }\n \n $row = mysql_fetch_assoc($rs);\n \n return $row['observacion'];\n \n}", "title": "" }, { "docid": "769177a7d945de4a4aaad65a1dfa02a9", "score": "0.5829945", "text": "public function buscarDetalleActa( $txtIdActa, $txtCodigoEstudiante ){\n\t\t$detalleActaAcuerdo = new DetalleActaAcuerdo( $this->persistencia );\n\t\tif( $detalleActaAcuerdo->buscarDetalleActa( $txtIdActa, $txtCodigoEstudiante ) != 0 ){\n\t\t\t$detalleActaAcuerdo = \"../css/images/circuloVerde.png\";\n\t\t}else{\n\t\t\t$detalleActaAcuerdo = \"../css/images/circuloRojo.png\";\n\t\t}\n\t\treturn $detalleActaAcuerdo;\n\t\t\n\t}", "title": "" }, { "docid": "8cabd007d750087e6b8f1956019289c2", "score": "0.58281994", "text": "function get_idcierrelotedetalle( ) {\n return $this->idcierrelotedetalle;\n }", "title": "" }, { "docid": "9d95ea41c3683131fccd2a5b929718e7", "score": "0.58269423", "text": "public function getFundacion_idFundacion(){\n return $this->Fundacion_idFundacion;\n }", "title": "" }, { "docid": "9d95ea41c3683131fccd2a5b929718e7", "score": "0.58269423", "text": "public function getFundacion_idFundacion(){\n return $this->Fundacion_idFundacion;\n }", "title": "" }, { "docid": "55a3f332a9ee747e6e42e7a319253c6d", "score": "0.5825816", "text": "function getid_numero(){ return $this->id_numero;}", "title": "" }, { "docid": "fd177dd33591e0de90a0b41f53397be1", "score": "0.5825013", "text": "function leer_datos_entrada() {\n //Recuperamos la informacion de la visita\n //Si viene del libro de visitas leemos de la BD\n //Si se ha enviado el formulario leemos las variables $_REQUEST\n global $nombre;\n global $edad;\n global $comentario;\n global $errores_formulario;\n global $id;\n \n $id = $_REQUEST[\"visita\"];\n \n if (isset($_REQUEST[\"libro_visitas\"])) {\n //Venimos del libro de visitas;\n\t//Tratamos de conectar con la BD\n\t$con = @mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);\n\tif (!$con || !mysql_select_db(DB_NAME, $con)) {\n //Ha habido un error al conectar a la BD\n\t $errores_formulario[\"conexion\"] = \"<center><font color='red'>Error al consultar los datos de la visita : \" . mysql_error() . \"</font></center><br>\";\n\t} else {\n //Lanzamos la consulta a la BD\n $sql = \"SELECT * FROM libro_visitas WHERE ID = $id;\";\n $res = mysql_query($sql, $con);\n \n if (mysql_num_rows($res) != 1) {\n //Ha habido un error al conectar a la BD\n $errores_formulario[\"conexion\"] = \"<center><font color='red'>Error al consultar los datos de la visita.</font></center><br>\";\n } else {\n //introducimos los datos leidos de la BD en las variables para mostrar en el formulario\n $linea = mysql_fetch_array($res);\n $edad = $linea[\"edad\"];\n $nombre = $linea[\"nombre\"];\n $comentario = $linea[\"comentario\"];\n }\n }\n } else {\n //Venimos de haberse enviado el formulario editar visita\n //Leemos los datos del objeto $_REQUEST\n if (isset($_REQUEST[\"Nombre\"]))\n $nombre = $_REQUEST[\"Nombre\"];\n if (isset($_REQUEST[\"Edad\"]))\n $edad = $_REQUEST[\"Edad\"];\n if (isset($_REQUEST[\"Comentario\"]))\n $comentario = $_REQUEST[\"Comentario\"]; \n }\n}", "title": "" }, { "docid": "de4794a49a38c73b25bc28e485e82be1", "score": "0.58242744", "text": "public function complementaConformidadeContratacao(Request $request, $id)\n {\n\n if ($request->session()->get('codigoLotacaoFisica') == null || $request->session()->get('codigoLotacaoFisica') === \"NULL\") {\n $lotacao = $request->session()->get('codigoLotacaoAdministrativa');\n } \n else {\n $lotacao = $request->session()->get('codigoLotacaoFisica');\n }\n try {\n // ATUALIZA DADOS DA DEMANDA\n $demanda = ContratacaoDemanda::find($id);\n $demanda->statusAtual = 'DISTRIBUIDA';\n $demanda->responsavelAtual = $request->session()->get('matricula');\n $demanda->analiseAg = $request->analiseAg;\n $demanda->save();\n\n // REALIZA O UPDATE DA TABELA CONTA IMPORTADOR (SE HOUVER)\n // if ($request->tipoOperacao == 'Pronto Importação Antecipado' || $request->tipoOperacao == 'Pronto Importação') {\n // $dadosContaImportador = ContratacaoContaImportador::find($id);\n // $dadosContaImportador->nomeBeneficiario = $request->nomeBeneficiario;\n // $dadosContaImportador->enderecoBeneficiario = $request->enderecoBeneficiario;\n // $dadosContaImportador->cidadeBeneficiario = $request->cidadeBeneficiario;\n // $dadosContaImportador->paisBeneficiario = $request->paisBeneficiario;\n // $dadosContaImportador->nomeBancoBeneficiario = $request->nomeBancoBeneficiario;\n // $dadosContaImportador->ibanBancoBeneficiario = $request->ibanBancoBeneficiario;\n // $dadosContaImportador->swiftAbaBancoBeneficiario = $request->swiftAbaBancoBeneficiario;\n // $dadosContaImportador->numeroContaBeneficiario = $request->numeroContaBeneficiario;\n // // VALIDA SE EXITE BANCO INTERMADIARIO\n // if ($request->has('nomeBancoIntermediario')) {\n // $dadosContaImportador->nomeBancoIntermediario = $request->nomeBancoIntermediario;\n // $dadosContaImportador->ibanBancoIntermediario = $request->ibanBancoIntermediario;\n // $dadosContaImportador->contaBancoIntermediario = $request->contaBancoIntermediario;\n // $dadosContaImportador->swiftAbaBancoIntermediario = $request->swiftAbaBancoIntermediario;\n // }\n // $dadosContaImportador->save();\n // }\n\n // CRIA O DIRETÓRIO PARA UPLOAD DOS ARQUIVOS\n ContratacaoFaseConformidadeDocumentalController::criaDiretorioUploadArquivoComplemento($id);\n \n // REALIZA O UPLOAD DOS ARQUIVOS E FAZ O INSERT NAS TABELAS TBL_EST_CONTRATACAO_LINK_UPLOADS E TBL_EST_CONTRATACAO_CONFERE_CONFORMIDADE\n if ($request->has('uploadInvoice')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadInvoice\", \"INVOICE\", $id);\n }\n if ($request->has('uploadDadosBancarios')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadDadosBancarios\", \"DADOS_CONTA_DO_BENEFICIARIO\", $id);\n }\n if ($request->has('uploadConhecimento')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadConhecimento\", \"CONHECIMENTO_DE_EMBARQUE\", $id);\n }\n if ($request->has('uploadDi')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadDi\", \"DI\", $id);\n }\n if ($request->has('uploadDue')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadDue\", \"DUE\", $id);\n }\n if ($request->has('uploadDocumentosDiversos')) {\n ContratacaoFaseConformidadeDocumentalController::uploadArquivo($request, \"uploadDocumentosDiversos\", \"DOCUMENTOS_DIVERSOS\", $id);\n } \n\n // REALIZA O INSERT NA TABELA HISTORICO\n $historico = new ContratacaoHistorico;\n $historico->idDemanda = $id;\n $historico->tipoStatus = 'CORRIGIDA';\n $historico->dataStatus = date(\"Y-m-d H:i:s\", time());\n $historico->responsavelStatus = $request->session()->get('matricula');\n $historico->area = $lotacao;\n $historico->analiseHistorico = $request->analiseAg;\n $historico->save();\n\n $request->session()->flash('corMensagem', 'success');\n $request->session()->flash('tituloMensagem', \"Protocolo #\" . str_pad($id, 4, '0', STR_PAD_LEFT) . \" | corrigido!\");\n $request->session()->flash('corpoMensagem', \"A demanda foi devolvida para tratamento com sucesso. Aguarde a conformidade.\");\n \n return redirect('esteiracomex/contratacao/consultar/' . $id);\n } catch (Exception $e) {\n echo 'Exceção capturada: ', $e->getMessage(), \"\\n\";\n }\n }", "title": "" }, { "docid": "b38a54b29e392d140e7b431a56343d20", "score": "0.58233625", "text": "public function activar($id, $codigo)\n {\n //si no exite el id o codigo entonces muetra un error de cuenta inexistente\n //y renderiza a la vista activar registro\n if(!$this->filtrarInt($id) || !$this->filtrarInt($codigo)){\n $this->_view->assign('_error', 'Esta cuenta no existe');\n $this->_view->renderizar('activar', 'registro');\n exit; \n }\n //guarda una fila con la consuta de conseguir usuario\n $row = $this->_registro->getUsuario(\n $this->filtrarInt($id),\n $this->filtrarInt($codigo)\n );\n //si no existe la fila entonces se produce un error de cuenta inexistente\n if(!$row){\n $this->_view->assign('_error', 'Esta cuenta no existe');\n $this->_view->renderizar('activar', 'registro');\n exit;\n }\n //si el estado del usuario ya esta activado ser produce un error de cuenta ya activada\n //muestra la vista activar registro.\n if($row['estado'] == 1){\n $this->_view->assign('_error', 'Esta cuenta ya ha sido activada');\n $this->_view->renderizar('activar', 'registro');\n exit;\n }\n //Cambia el estado del usuario a activado\n $this->_registro->activarUsuario(\n $this->filtrarInt($id),\n $this->filtrarInt($codigo)\n );\n //consigue nuevamente información del usuario y lo guarda en una fila\n $row = $this->_registro->getUsuario(\n $this->filtrarInt($id),\n $this->filtrarInt($codigo)\n );\n //si el estado sigue siendo igual a 0 entonces se produce un erro de activación pendiente\n if($row['estado'] == 0){\n $this->_view->assign('_error', 'Error al activar la cuenta, por favor intente mas tarde');\n $this->_view->renderizar('activar', 'registro');\n exit;\n }\n //En otros casos se muestra activación realizada con exito y se muetra vista activar registro.\n $this->_view->assign('_mensaje', 'Su cuenta ha sido activada');\n $this->_view->renderizar('activar', 'registro');\n }", "title": "" }, { "docid": "04979c8bf8b46648a64fbc8ff0883228", "score": "0.5800613", "text": "public function ActDetalle($idventa)\r\n\t{\r\n\t\t$sql=\"UPDATE tbventad\r\n SET \r\n anulado='1',\r\n importado='0'\r\n WHERE idventa='$idventa'\";\r\n\t\treturn ejecutarConsulta($sql);\t\t\r\n }", "title": "" }, { "docid": "a5da2e84eb62d3acacdbad61229d35c3", "score": "0.57977104", "text": "public function registrarCualicuantiAction($id, $numcua){\n\t\t$peticion = $this->getRequest();\n\t\t$em = $this->getDoctrine()->getManager();\n\n\t\t// buscamos el ID del asesor academico\n\t\t$user = $this->get('security.context')->getToken()->getUser();\n\t\t$codigo = $user->getUsername();\n\t\t$repository = $this->getDoctrine()->getRepository('CituaoCoordBundle:Practicante');\n\t\t$practicante = $repository->findOneBy(array('codigo' => $codigo));\n\t\t\n\t\t//determinamos si ya fue registrado el informe en la base de datos si es positivo es una actualizacion\n\t\t$sw = false;\n\t\tswitch($numcua){\n\t\t\tcase 1:\n\t\t\tif($practicante->getlistoGestion1()) $sw=true;\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\tif($practicante->getlistoGestion2()) $sw=true;\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\tif($practicante->getlistoGestion3()) $sw=true;\n\t\t\tbreak;\n\t\t}\n\n\t\t//si ya fue registrado hacemos una instancia del informe cualicuanti para mostrar en formulario\n\t\tif ($sw) {\n\t\t\t$query = $em->createQuery(\n\t\t\t\t'SELECT a FROM CituaoAcademicoBundle:Cualicuanti a WHERE a.practicante =:id_pra AND a.cualicuanti =:numcua');\n\t\t\t$query->setParameter('id_pra',$id);\n\t\t\t$query->setParameter('numcua',$numcua);\n\t\t\t$cualicuanti = $query->getOneOrNullResult();\n\t\t}else{\n\t\t\t//no hay informe cuali cuanti registrado es nuevo por tanto creamos una instancia nueva\n\t\t\t$cualicuanti = new Cualicuanti();\n\t\t\t$cualicuanti->setPracticante($id);\n\t\t\t$cualicuanti->setAcademico($practicante->getAcademico()->getId());\n\t\t\t$cualicuanti->setCualicuanti($numcua);\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\t$formulario = $this->createForm(new CualicuantiType(), $cualicuanti);\t\t\n\t\t$formulario->handleRequest($peticion);\n\t\t\n\t\tif ($formulario->isValid()) {\n\t\t\tswitch($numcua){\n\t\t\t\tcase 1:\n\t\t\t\t$practicante->setlistoGestion1(true);\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t$practicante->setlistoGestion2(true);\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t$practicante->setlistoGestion3(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$em->persist($cualicuanti); //guardamos o actualizamos el informe cuallcuanti\n\t\t\t$em->persist($practicante); //actualizamos el listo\n\t\t\t$em->flush();\n\n\t\t\t// Crear un mensaje flash para notificar al usuario\n\t\t\t$this->get('session')->getFlashBag()->add('info',\n\t\t\t\t'¡Listo informe de gestión cualicuanti registrado!'\n\t\t\t);\n\t\t\treturn $this->redirect($this->generateUrl('cituao_practicante_homepage'));\n\t\t}\n\n\t\t$datos = array('id' => $id, 'numcua' => $numcua);\n\t\t\t\t\n\t\treturn $this->render('CituaoPracticanteBundle:Default:formcualicuanti.html.twig', array('formulario' => $formulario->createView(), 'datos' => $datos, 'practicante' => $practicante ));\n\t}", "title": "" }, { "docid": "2443deef42c815181a77da8a7b81cd80", "score": "0.57975435", "text": "public function getIngreso($CicloContable_idCicloContable){\n\t\t\t//lista todas las cuentas que existe en la tabla ingreso de la gestion X\n\t\t\t$result = $this->_db->query(\"SELECT cl.idClaseCuenta, cl.nom_ccuenta, cu.idCuenta, cu.cod_cuenta, cu.nom_cuenta, cu.tipo_cuenta, cu.ClaseCuenta_idClaseCuenta, ld.idld_detalle, ld.Cuenta_idCuenta, ld.LibroDiario_idLibroDiario, lb.idLibroDiario, lb.CicloContable_idCicloContable, cc.idCicloContable, cc.gestion_ccontable FROM clasecuenta cl, cuenta cu, ld_detalle ld, librodiario lb, ciclocontable cc WHERE cl.idClaseCuenta = cu.ClaseCuenta_idClaseCuenta and ld.Cuenta_idCuenta = cu.idCuenta and ld.LibroDiario_idLibroDiario = lb.idLibroDiario and lb.show_by = 1 and lb.CicloContable_idCicloContable = cc.idCicloContable and cc.idCicloContable = '\".$CicloContable_idCicloContable.\"' and cu.tipo_cuenta = 4 GROUP BY cu.idCuenta ORDER BY cu.aux_codcuenta\");\n\t\t\t// carga los datos en un array para ser recorrido\n\t\t\t$retorna = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\tforeach ($retorna as $key => $value) {\n\t\t\t\t//inyecta el saldo correspondiente\n\t\t\t\t$result = $this->_db->query(\"SELECT cu.idCuenta, cu.cod_cuenta, cu.nom_cuenta, lm.idLibroMayor, lm.saldo_lm FROM libromayor lm, cuenta cu WHERE cu.idCuenta = lm.Cuenta_idCuenta and lm.Cuenta_idCuenta = '\".$value['Cuenta_idCuenta'].\"' ORDER BY idLibroMayor DESC LIMIT 1\");\n\t\t\t\t// carga los datos en un array para ser recorrido\n\t\t\t\t$retorna_lm = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\t\t$out[] = array('idCuenta'=> $retorna_lm[0]['idCuenta'],\n\t\t\t\t\t\t\t 'cod_cuenta'=> $retorna_lm[0]['cod_cuenta'],\n\t\t\t\t\t\t\t 'nom_cuenta'=> $retorna_lm[0]['nom_cuenta'],\n\t\t\t\t\t\t\t 'saldo_lm'=> $retorna_lm[0]['saldo_lm']\n\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t//print_r($out);\n\t\t\treturn $out;\n\t\t\t$result->close();\n\t\t}", "title": "" }, { "docid": "5e624fca46e62d298095b4b05c37bbb1", "score": "0.5797225", "text": "function getIdConsommateur(){\r\n\t\tglobal $bd;\r\n\t\t$i=0;\r\n\t\t$tabIdCons = array();\r\n\t\t$req = $bd->query(\"SELECT id_consommateur FROM consommateur WHERE etat = 'present' \");\r\n\t\twhile($data = $req->fetch()){\r\n\t\t\t$tabIdCons[$i++] = $data['id_consommateur'];\r\n\t\t}\r\n\t\treturn $tabIdCons;\r\n\t}", "title": "" }, { "docid": "9694eb8b190dcfd8bb6495b5dca9717b", "score": "0.57914", "text": "public function obtenerDetallesRecibidosId($datos, $id){\n $is_status = true;\n $this->db->query(\"SELECT OP.noOrden, LPAD(OP.noOrden,6,'0') AS noOrdenCero, idOrdProducto, OP.idProducto,(SELECT producto FROM vv_producto P WHERE P.idProducto = OP.idProducto) as nomProducto, (OP.cantidad) AS cantSolicitada, (SELECT cantRecibida FROM vv_recibido_producto WHERE vv_orden_de_producto_idOrdProducto = OP.idOrdProducto) AS cantRecibida, (SELECT UM.medida FROM vv_unidad_medida UM WHERE UM.idUniMedida = OP.idUniMedidaSolicitada) AS UniMedida FROM vv_orden_de_producto OP WHERE OP.noOrden = :id AND OP.status=:nstatus\");\n $this->db->bind(':nstatus', $is_status);\n $this->db->bind(':id', $id);\n return $this->db->registros();\n }", "title": "" }, { "docid": "ad5953155239bc325b6a9a0cc58e46dc", "score": "0.5789614", "text": "function asignarId($id)\n {\n parent::asignarId($id);\n echo \"La edad fue asignada usanado el metodo creado en la superclase\";\n }", "title": "" }, { "docid": "5cd7f481692e98c41e6c2c74f1c166ac", "score": "0.5783972", "text": "public function cliente($id_cliente=0){\n\tif($id_cliente==0){\n\t\tredirect(dashboard);\n\t}\n\t$this->load->model('mod_clienti');\n\t$this->load->model('fatture/mod_fatture');\n\n\t/** Estraggo i dati del cliente **/\n\t$this->data['cliente']=$this->mod_clienti->dati_cliente($id_cliente);\n\n\t/** Fatture Emesse Anno contabile corrente **/\n\t$this->data['fatture']=$this->mod_fatture->estraiFatture($id_cliente);\n\n\t/** Saldo Insoluti dell'intera Azienda **/\n\t$this->data['saldo_insoluti'] = $this->mod_fatture->saldoInsoluti($id_cliente);\n\t$this->data['totale_fatture_emesse']=$this->mod_fatture->totaleFattureInsolute($id_cliente);\n\t$this->data['numero_fatture_insolute']=$this->mod_fatture->numeroFattureInsolute($id_cliente);\n\n\t/** Istanzio la vista **/\n\t$this->aiuto['aiuto_titolo']=\"CLIENTI\";\n\t$this->aiuto['aiuto_msg']=\"Report della situazione del cliente selezionato.\";\n\t$this->load->view(\"template/tpl_header\");\n\t$this->load->view(\"template/tpl_header_datatables\");\n\t$this->load->view(\"jsh_clienti_view\");\n\t$this->load->view(\"template/tpl_menu\", $this->aiuto);\n\t$this->load->view(\"_menu_clienti\");\n\t$this->load->view('report_cliente', $this->data);\n\t$this->load->view(\"template/tpl_footer\");\n\t$this->load->view(\"template/tpl_end_page\");\n}", "title": "" }, { "docid": "4756bb8e6ca7855265d54940771c6230", "score": "0.578314", "text": "function modificarCpActividad(){\n\t\t$this->procedimiento='pre.ft_cp_actividad_ime';\n\t\t$this->transaccion='PRE_CPAC_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_cp_actividad','id_cp_actividad','int4');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_gestion','id_gestion','int4');\n\t\t$this->setParametro('descripcion','descripcion','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}", "title": "" }, { "docid": "afe40447a4519bbfbb67248215307855", "score": "0.5779879", "text": "function add_guia_carga($id_por_sucursal='', $id_sucursal='', $id_transportista='', $id_empresa='', $placa='', $fecha='', $status='', $id_user='')\n\t{\t\t\t\n\t\t$val_id_control=$this->get_guia_carga('',$id_por_sucursal,$id_sucursal);\n\t\tif($val_id_control){\t$id_por_sucursal++;\t\t\t}//si alguien registro antes el mismo id se crea uno nuevo\n\t\t\n\t\t$query = \"INSERT INTO guia_carga (id_por_sucursal, id_sucursal, id_transportista, id_empresa, placa, fecha, status, id_user) \n\t\tVALUES ('$id_por_sucursal','$id_sucursal','$id_transportista','$id_empresa','$placa','$fecha','$status','$id_user')\";\n\t\t\n\t\t$result=mssql_query($query);\n\t\t$val_id_control=$this->get_guia_carga('',$id_por_sucursal,$id_sucursal);\n\t\t$new_id=$val_id_control[0]['id'];\n\t\treturn($new_id);\n\t}", "title": "" } ]
669f33473665c616e381c490ce6d96ee
Determine if given post is valid
[ { "docid": "c2871d266cd661ef2ee97a9c94442972", "score": "0.0", "text": "protected function validatePost($title, $slug, $id = null)\n {\n $rules = array(\n 'title' => 'required',\n 'slug' => 'required|unique:posts,slug'\n );\n\n if ($id)\n {\n $rules['slug'] .= ','.$id;\n }\n\n $validator = Validator::make(compact('title', 'slug'), $rules)->fails();\n\n return $validator->errors();\n }", "title": "" } ]
[ { "docid": "9eb3dcf37fd2038ecab1f3404e979d04", "score": "0.8095333", "text": "private function requested_post_is_valid(){\n if(isset($_GET['post_id']) && $this->is_valid_token()){\n //does the requested post_id match the requested post_type\n if(get_post_type((int)$_GET['post_id']) !== $this->form_post_type){\n return false;\n }\n\n if(!$this->worksheet_belongs_to_user()){\n return false;\n }\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "9d8b338ff8a9d559df49e0c0851f2ba4", "score": "0.74115413", "text": "private function validatePost($post): void\n {\n self::assertArrayHasKey('id', $post);\n self::assertArrayHasKey('title', $post);\n self::assertArrayHasKey('description', $post);\n self::assertArrayHasKey('channel', $post);\n self::assertIsInt($post['id'], 'Got a ' . gettype($post['id']) . ' instead of integer');\n self::assertIsString($post['title'], 'Got a ' . gettype($post['title']) . ' instead of string');\n self::assertIsString($post['description'], 'Got a ' . gettype($post['description']) . ' instead of string');\n self::assertIsString($post['channel'], 'Got a ' . gettype($post['channel']) . ' instead of string');\n }", "title": "" }, { "docid": "eb1afbe396bcf47e31fc373ddf61ce68", "score": "0.73696935", "text": "public function verifyPost(){\n $post = $this->getPostArray();\n if($post == null OR empty($post)){\n return false;\n }\n foreach ($post as $k => $v ){\n if(empty($v)){\n $error = $k .' est vide.';\n $error = $this->errorPostMessage($error);\n return $error;\n }\n elseif(strlen(trim($v)) <= 5)\n {\n $error = $k .' est trop court.';\n $error = $this->errorPostMessage($error);\n return $error;\n }\n }\n return true;\n }", "title": "" }, { "docid": "ebf487f65256faa693f200af0462a545", "score": "0.7196438", "text": "public function validatePostExists() {\n\t\t\n\t\treturn $this->Post->exists( $this->data[$this->alias]['post_id'] );\n\t\n\t}", "title": "" }, { "docid": "4f317fdad177922d9dc3677552ac91ca", "score": "0.70524216", "text": "public static function hasPost()\n {\n //initialize super global is required\n $post = $_POST;\n\n return self::validate($post);\n }", "title": "" }, { "docid": "26de19daf105b882ed60432e114addde", "score": "0.6973771", "text": "private function validate($post)\n { \n $validate = true;\n if(empty($post['prenume']) || !ctype_alnum($post['prenume'])){\n Mess::setMess('prenume', 'Invalid Prenume');\n $validate = false;\n } \n if(empty($post['nume']) || !ctype_alnum($post['nume'])){\n Mess::setMess('nume', 'Invalid Nume');\n $validate = false;\n }\n if(empty($post['email']) || !filter_var($post['email'], FILTER_VALIDATE_EMAIL)){\n Mess::setMess('email', 'Invalid Email');\n $validate = false;\n } \n\n return $validate;\n }", "title": "" }, { "docid": "7dacb917dfc01426a3128fd185ab6905", "score": "0.6903056", "text": "private function isPostArticleFormValid(array $data)\r\n {\r\n $errors = array();\r\n\r\n $titlePattern = '@^[a-zA-Z\\d éèêà,.?!;:\\']{3,255}$@';\r\n $contentPattern = \"@^[a-zA-Z\\d éèêà,.?!;:'\\s]{3,3000}$@\";\r\n $enabledPattern = '@^[0-1]{1}$@';\r\n\r\n if (!preg_match($titlePattern, $data['title'])) \r\n $errors[] = 'Votre titre n\\'est pas valide';\r\n if (!preg_match($contentPattern, $data['content']))\r\n $errors[] = 'Votre texte n\\'est pas valide.';\r\n if (!preg_match($enabledPattern, $data['enabled']))\r\n $errors[] = 'Hé !! T\\'es pas en train de pirater le site??!!';\r\n\r\n return (count($errors)==0) ? true: $errors;\r\n }", "title": "" }, { "docid": "05e2ce609a6cf7f567f5ffe36bd3c232", "score": "0.6856783", "text": "function isInvalid($post_id){\n if($this->data->getFieldData($post_id, 'invalid')){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "29cce25eb0838407716bee6a5aa9b3b5", "score": "0.6825657", "text": "public function valid() {\r\n\t\treturn call_user_func ( function () {\r\n\t\t\treturn have_posts ();\r\n\t\t} );\r\n\t}", "title": "" }, { "docid": "78184f01bbc018663fef9e457801865e", "score": "0.67707336", "text": "public function isValid($post)\n\t{\n\t\t// @TODO validasi\n\t\t// parse untuk rute\n\t\t$this->_nama = $post['nama'];\n\t\t$this->_durasi = $post['durasi'];\n\t\tif ($this->_hasLatum) {\n\t\t\t$this->_latum = $post['latum'];\n\t\t}\n\t\t// parse untuk titik\n\t\tif (isset($post['titik'])) {\n\t\t\t// data yg dikirim berbentuk titik[nama][0..n], titik[longitude][0..n], dst\n\t\t\t// ubah ke bentuk titik[0..n][nama/longitude/etc]\n\t\t\t// asumsi format pengiriman sudah benar\n\t\t\t$titik = array();\n\t\t\tforeach ($post['titik'] as $column => $atemp) {\n\t\t\t\tforeach ($atemp as $i => $val) {\n\t\t\t\t\t$titik[$i][$column] = $val;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_titik = $titik;\n\t\t} else {\n\t\t\t$this->_titik = array();\n\t\t}\n\t\t// parse untuk formasi\n\t\tif (isset($post['formasi'])) {\n\t\t\t$this->_formasi = $post['formasi'];\n\t\t} else {\n\t\t\t$this->_formasi = array();\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4331136eca73fcab030a06ea3d7db563", "score": "0.67392457", "text": "function checkPostData($post) {\n\n if (!empty($post['base_url']) && !empty($post['db_host']) && !empty($post['db_user'])\n && !empty($post['db_password']) && !empty($post['db_name']) \n && !empty($post['admin_username']) && !empty($post['admin_pass'])) {\n\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0454a476017001d75d28b7d98054ffe0", "score": "0.673275", "text": "public function process($post)\n {\n if ($this->isValid($post)) {\n $values = $this->getValues();\n }\n return false;\n }", "title": "" }, { "docid": "44623c033be4bff76e79a427e0ac4039", "score": "0.6719809", "text": "function is_post( $post ) {\n\treturn true === ( $post instanceof \\WP_Post );\n}", "title": "" }, { "docid": "4a69ad075d6bd3bc30cf4ed4aee43eb6", "score": "0.6714589", "text": "public function is_valid() {\n\t\treturn ! empty( $this->type ) && in_array( $this->type, array( 'post', 'term', 'archive' ) ) &&\n\t\t ! empty( $this->content ) &&\n\t\t ! empty( $this->field ) &&\n\t\t ( (int) $this->field === - 1 || ( ! empty( $this->operator ) && ( is_array( $this->value ) || ! empty( $this->value ) || is_numeric( $this->value ) ) ) );\n\t}", "title": "" }, { "docid": "c91ebca231ab7dcf5b68616590d38b3b", "score": "0.6713001", "text": "public function isFromPost(){\r\n\t\treturn !empty($this->postData);\r\n\t}", "title": "" }, { "docid": "fcb01c334a28bc05dc6268ff638ef5e2", "score": "0.67010283", "text": "public function valid_response($posted)\n {\n }", "title": "" }, { "docid": "1489c401b4e103b0384b077523f909c2", "score": "0.66921216", "text": "function acf_validate_save_post()\n {\n }", "title": "" }, { "docid": "1489c401b4e103b0384b077523f909c2", "score": "0.66921216", "text": "function acf_validate_save_post()\n {\n }", "title": "" }, { "docid": "1489c401b4e103b0384b077523f909c2", "score": "0.66921216", "text": "function acf_validate_save_post()\n {\n }", "title": "" }, { "docid": "1489c401b4e103b0384b077523f909c2", "score": "0.66921216", "text": "function acf_validate_save_post()\n {\n }", "title": "" }, { "docid": "a1a9eeed870744ba7daa24b9d9bcf807", "score": "0.6686466", "text": "public function isPost () {\n return ($this->getType() === $this::TYPE_POST);\n }", "title": "" }, { "docid": "6a55bc54a725b25f4272636f0ac879af", "score": "0.66624033", "text": "private function is_valid() {\n\n\t\tif ( empty( $this->posted_data ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach ( $this->posted_data as $type => $value ) {\n\n\t\t\tif ( empty( $value ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->empty_posted_data = false;\n\n\t\t\tif ( 'email' === $type && ! is_email( $value ) ) {\n\t\t\t\t$this->invalid_fields[] = $type;\n\t\t\t}\n\n\t\t\tif ( 'url' === $type && false === filter_var( ( strpos( $value, 'http' ) !== 0 ? 'http://' . $value : $value ), FILTER_VALIDATE_URL ) ) {\n\t\t\t\t$this->invalid_fields[] = $type;\n\t\t\t}\n\n\t\t\tif ( 'phone' === $type && ! preg_match( '%^[+]?[0-9\\(\\)/ -]*$%', $value ) ) {\n\t\t\t\t$this->invalid_fields[] = $type;\n\t\t\t}\n\t\t}\n\n\t\treturn empty( $this->invalid_fields ) && $this->empty_posted_data === false;\n\t}", "title": "" }, { "docid": "f98a148ce9297177d1417cdf18af95c9", "score": "0.66622525", "text": "public function isPost() {\n\t\tif ($this->post) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "3ccd2a247dabedca365ddec5f6d2c42f", "score": "0.6638062", "text": "public function lookForPost() : bool\n {\n return !empty($_POST[self::$add]);\n }", "title": "" }, { "docid": "d51e597f2f8363d55569b740e2c1f8f0", "score": "0.6626765", "text": "private function uriLooksLikePost()\n\t{\n\t\t$postFormatArray = explode(\"/\", $this->postFormat);\n\t\t$return = true;\n\t\t$postFormatCt = count($postFormatArray);\n\t\t\n\t\tif($this->router->uriLength() !== $postFormatCt)\n\t\t{\n\t\t\t// return false if the length of the uri does not match that of the length of the post format\n\t\t\t$return = false;\n\t\t}\n\t\t// the uri could be a post because of its length\n\t\telse\n\t\t{\n\t\t\t$loopCt = 0;\n\t\t\t\n\t\t\t// while the return value is still true we loop, otherwise we end the loop as the return is set to false\n\t\t\t// the return is if the uri matches the post format\n\t\t\twhile($loopCt < $postFormatCt && $return)\n\t\t\t{\n\t\t\t\t$uriPositionValue = $this->router->getUriPosition($loopCt + 1);\n\t\t\t\t\n\t\t\t\tswitch((string)$postFormatArray[$loopCt])\n\t\t\t\t{\n\t\t\t\t\tcase \"%MONTH%\":\n\t\t\t\t\t\tif((int)$uriPositionValue > 12 || (int)$uriPositionValue < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$return = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"%DAY%\":\n\t\t\t\t\t\tif((int)$uriPositionValue > 31 || (int)$uriPositionValue < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$return = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"%YEAR%\":\n\t\t\t\t\t\tif(strlen($uriPositionValue) < 4 || (int)$uriPositionValue < 1000)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$return = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"%TITLE%\":\n\t\t\t\t\t\tif($uriPositionValue === null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$return = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$return = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t++$loopCt;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "a037abc1f2340805ce1880d5727b0090", "score": "0.6620975", "text": "protected function isPost() {\n\t\treturn $this->_request->is('post');\n\t}", "title": "" }, { "docid": "5ff89bda47797f14b691765d1ff56b48", "score": "0.6620727", "text": "function exa_is_standard($post = null) {\n\t$post = get_post($post);\n\treturn true;\n}", "title": "" }, { "docid": "b487bd7ec374419f16457557bb226bb4", "score": "0.66150725", "text": "function __canPost() {\n $return = true;\n \n foreach($this->requiredFields as $field) {\n if(!isset($this->fields[$field])) {\n if(array_key_exists($field, $this->dummyVals)) {\n $this->addField($field, $this->dummyVals[$field]);\n } else {\n $return = false;\n $this->errors[] = 'Required field not found: '.$field;\n }\n }\n }\n \n return $return;\n }", "title": "" }, { "docid": "cef96f5b1887b300d30ab57edce47977", "score": "0.6610926", "text": "public function isValid($post)\n\t{\n\t\t// @TODO validasi\n\t\t// parse untuk rute\n\t\t$this->_row->nama = $post['nama'];\n\t\t$this->_row->durasi = $post['durasi'];\n // parse untuk titik\n\t\tif (isset($post['titik'])) {\n\t\t\t// data yg dikirim berbentuk titik[nama][0..n], titik[longitude][0..n], dst\n\t\t\t// ubah ke bentuk titik[0..n][nama/longitude/etc]\n\t\t\t// asumsi format pengiriman sudah benar\n\t\t\t$titik = array();\n\t\t\tforeach ($post['titik'] as $column => $atemp) {\n\t\t\t\tforeach ($atemp as $i => $val) {\n\t\t\t\t\t$titik[$i][$column] = $val;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_titik = $titik;\n\t\t} else {\n\t\t\t$this->_titik = array();\n\t\t}\n\t\t// parse untuk formasi\n\t\tif (isset($post['formasi'])) {\n\t\t\t$this->_formasi = $post['formasi'];\n\t\t} else {\n\t\t\t$this->_formasi = array();\n\t\t}\n\n\t\tif (isset($post['rudalData'])) {\n\t\t\t$this->_rudal = json_decode($post['rudalData']);\n\t\t} else {\n\t\t\t$this->_rudal = array();\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8a4e03c75738182ee3b4ce5745832b30", "score": "0.660371", "text": "public function is_post() {\n\n\t\treturn post_type_exists( $this->get_type() );\n\t}", "title": "" }, { "docid": "9feebd75814adc17764f042bb5737d42", "score": "0.66036135", "text": "public function validatePost (array $post):array \n\t\t{\n\t\t\t$valid = true;\n\t\t\t$errors = [];\n\n\t\t\tif(empty($post['Title']))\n\t\t\t{\n\t\t\t\t$valid = false;\n\t\t\t\tarray_push($errors, \"Title is required\"); \n\t\t\t} else \n\t\t\t{\n\t\t\t\t//CHECK FOR EXISTING POST WITH EXACTLY SAME TITLE\n\t\t\t\t//DONT PERFORM THE CHECK WHEN UPDATING POSTS\n\t\t\t\tif(!$post['Id'])\n\t\t\t\t{\n\t\t\t\t\t$existingPost = $this->postsTable->findOne(['Title' => trim($post['Title'])]);\n\n\t\t\t\t\tif(is_object($existingPost))\n\t\t\t\t\t{\n\t\t\t\t\t\t$valid = false;\n\t\t\t\t\t\tarray_push($errors, \"An article with that exact title already exists\"); \n\t\t\t\t\t} \t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(empty($post['Body']))\n\t\t\t\t{\n\t\t\t\t\t$valid = false;\n\t\t\t\t\tarray_push($errors, \"An article body is required\"); \n\t\t\t\t}\n\n\t\t\t\tif(empty($post['Description']))\n\t\t\t\t{\n\t\t\t\t\t$valid = false;\n\t\t\t\t\tarray_push($errors, \"An article description is required\"); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(empty($post['Keywords']))\n\t\t\t\t{\n\t\t\t\t\t$valid = false;\n\t\t\t\t\tarray_push($errors, \"Article keywords are required\"); \n\t\t\t\t}\t\t\t\t\n\n\t\t\treturn ['errors' => $errors, 'valid' => $valid];\n\t\t}", "title": "" }, { "docid": "8e5dd0e4b164336ddb79226816974735", "score": "0.655125", "text": "function is_valid_post_id( $post_id ) {\n\treturn ( ! empty( $post_id ) && is_numeric( $post_id ) );\n}", "title": "" }, { "docid": "2afe35610f8d7bff5b88e74bbe182778", "score": "0.65462637", "text": "protected function _checkPost()\n {\n if (!$this->_getStorage()) {\n return false;\n }\n\n if (!$this->_getFilename()) {\n return false;\n }\n\n if (!$this->_getFilepath()) {\n return false;\n }\n\n if (!$this->_getFilesize()) {\n return false;\n }\n\n if (!$this->_getFile()) {\n return false;\n }\n\n if (!$this->_getContentType()) {\n return false;\n }\n\n if (!$this->_getMode()) {\n return false;\n };\n\n return true;\n }", "title": "" }, { "docid": "ce845fdd24819fefa5c288aa59cf0c28", "score": "0.6513232", "text": "function contentIsValidPostAction($postAction){\n\tif (!$postAction || !in_array($postAction, Config::get('cms_main.post_action')))\n\t{\n\t\tApp::abort(404);\n\t}\n}", "title": "" }, { "docid": "c366b5e97d412a6b79a65508152e3676", "score": "0.6495677", "text": "private function validateUserPost($data)\n {\n if (array_key_exists('fb-group-id', $data)\n && array_key_exists('fb-group-post', $data)\n ) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5929706b54439bc8dfcbe7390163493f", "score": "0.64827275", "text": "private function isDraft($post)\n {\n return (bool) $this->postId($post);\n }", "title": "" }, { "docid": "7817e74bae832e780dd355935bbc8277", "score": "0.6463476", "text": "public static function isValid($post) {\n\t\t\tif (config('use_token')) {\n\t\t\t\t// Token doesn't exist yet, return false.\n\t\t\t\tif (!self::get()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Token was invalid, return false.\n\t\t\t\tif ($post == $_SESSION['old_token'] || $post == $_SESSION['token']) {\n\t\t\t\t\t//self::_reset();\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8639fa972d206f68a868d57310df5da2", "score": "0.64515305", "text": "function has_post_format($format = array(), $post = \\null)\n{\n}", "title": "" }, { "docid": "05da201eb10d790e821a068aed80e1a0", "score": "0.6440665", "text": "private function is_post() {\n\t\treturn count( $_POST ) && \n\t\t\t\tisset( $_POST[ $this->textdomain ] ) && \n\t\t\t\tis_array( $_POST[ $this->textdomain ] ) && \n\t\t\t\tcount( $_POST[ $this->textdomain ] ) ? $_POST[ $this->textdomain ] : array() ;\n\t}", "title": "" }, { "docid": "ad06ca1f415189fd581554bc09ac4139", "score": "0.6436101", "text": "public function checkPostVancancy(){\n\n }", "title": "" }, { "docid": "82c5ab9b5429983633c5b80322c01a90", "score": "0.6423671", "text": "function is_valid_save($post_id) {\n // Ignore the field if it's an autosave\n if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\n return false;\n }\n // If we are missing the security nonce, return false\n if(empty($_POST['sanity-nonce'])) {\n return false;\n }\n // If the nonce does not verify, return false\n if(!wp_verify_nonce($_POST['sanity-nonce'], 'sanity-nonce')) {\n return false;\n }\n // If the current user does not have permission, return false\n if(!current_user_can('edit_post', $post_id)) {\n return false;\n }\n // If we get this far, return true\n return true;\n }", "title": "" }, { "docid": "856004e8c3c7669a83b1b8a75f1eca71", "score": "0.64081776", "text": "function is_valid(){\n\t\treturn (\n\t\t\t!empty($this->title) &&\n\t\t\t!empty($this->author) &&\n\t\t\t!empty($this->teaser) &&\n\t\t\t!empty($this->description)\n\t\t\t);\n\t}", "title": "" }, { "docid": "26584fc61febc53ff94e0e74350e4249", "score": "0.63841724", "text": "public function isValid() {\n\t\t$getPost = array_merge_recursive ( $this->getRequest ()->getPost ()->toArray (), $this->getRequest ()->getFiles ()->toArray () );\n\t\t// $this->getLog ()->info ( $getPost );\n\t\t$this->setData ( $getPost );\n\t\t\n\t\treturn parent::isValid ();\n\t}", "title": "" }, { "docid": "1d50db5f31d8c82f21a5c30e7448457d", "score": "0.6371102", "text": "private function hasDraft($post)\n {\n return (bool) $this->draftId($post);\n }", "title": "" }, { "docid": "d1d71032fb14e54b55d2fddad5fa105b", "score": "0.63701826", "text": "public function isPost(){ }", "title": "" }, { "docid": "41ca118b60dc4633f4b7dc7ee2df4ed0", "score": "0.6359178", "text": "public function isPostRequest()\n {\n return !$this->post->isEmpty();\n }", "title": "" }, { "docid": "1ef9e4eb246a0b905484a54940b6bdc3", "score": "0.6340146", "text": "public function isPost()\n {\n return $this->method() === 'post';\n }", "title": "" }, { "docid": "009dd7f8bb3c0517e7c9df9bde9d905e", "score": "0.6338947", "text": "public function check_post( $post ) {\n\n\t\t\tif ( ! post_type_exists( $post['post_type'] ) ) {\n\t\t\t\t$this->update_count();\n\t\t\t\treturn $post;\n\t\t\t}\n\n\t\t\tif ( $post['status'] == 'auto-draft' ) {\n\t\t\t\t$this->update_count();\n\t\t\t\treturn $post;\n\t\t\t}\n\n\t\t\tif ( 'nav_menu_item' == $post['post_type'] ) {\n\t\t\t\t$this->update_count();\n\t\t\t\treturn $post;\n\t\t\t}\n\n\t\t\t$post_exists = post_exists( $post['post_title'], '', $post['post_date'] );\n\t\t\tif ( $post_exists && get_post_type( $post_exists ) == $post['post_type'] ) {\n\t\t\t\t$this->update_count();\n\t\t\t\treturn $post;\n\t\t\t}\n\n\t\t\treturn $post;\n\t\t}", "title": "" }, { "docid": "dd9b9795ab359639a5faec4824769340", "score": "0.63312596", "text": "public function hasPost($name){ }", "title": "" }, { "docid": "f6061e042c49be7ed3e60606706b6138", "score": "0.63213015", "text": "function ifNull($post) {\n if (!isset($post) || empty($post)) {\n return true;\n }\n }", "title": "" }, { "docid": "514ca3bdbcefc3c63b813708f773e8d5", "score": "0.6314378", "text": "public function isPost()\n {/*{{{*/\n return ($this->method === self::METHOD_POST);\n }", "title": "" }, { "docid": "7ea4043a9e871671cb82b1aa39dbbd7b", "score": "0.6303931", "text": "function isPost ( $key = null ) {\n if ( null === $key ) {\n\n return count ( $_POST ) > 0;\n\n }\n return null !== post ( $key );\n\n}", "title": "" }, { "docid": "4bef886508fc1241829b9b991c6e3fa0", "score": "0.63033575", "text": "public function isSetPost($key);", "title": "" }, { "docid": "6ed81b8558f3d51f59d0a1440dcc77f1", "score": "0.6296123", "text": "public static function isPost()\n {\n return self::getMethod() === 'POST';\n }", "title": "" }, { "docid": "7926f609441751288a4fd349840a36cb", "score": "0.62897354", "text": "public function isPost() {\n return $this->method() == 'POST';\n }", "title": "" }, { "docid": "fcde69770848d8c726b26bb08832c90d", "score": "0.62789077", "text": "public function is_post() {\n return strtolower($_SERVER['REQUEST_METHOD']) == \"post\";\n }", "title": "" }, { "docid": "8c264ff4ef34bf2f79bf48e108bf7d0c", "score": "0.6275306", "text": "public function validePost($post){\n\t\t$padrao = 0;\n\t\tif(isset($post['padrao']))\n\t\t{\n\t\t\tif($post['padrao']=='1')\n\t\t\t\t{\n\t\t\t\t$entities = $this->findAll();\n\t\t\t\tforeach($entities as $entity):\n\t\t\t\t\tif($entity->getPadrao() ==\"1\")\n\t\t\t\t\t\t$padrao++;\n\t\t\t\tendforeach;\n\t\t\t\t}\n\t\t}\n\t\tif($padrao > 0 )\n\t\t\treturn false;\n\t\telse \n\t\t\treturn true;\t\t\n\t}", "title": "" }, { "docid": "405f776906b7ba8a032d5093a48dd931", "score": "0.6269386", "text": "public static function isPost()\n {\n return self::method() === self::METHOD_POST;\n }", "title": "" }, { "docid": "0f4c21a0b2cd2fbfd7904d0494172548", "score": "0.6253732", "text": "public function isPost() {\n\t\treturn ($this->getMethod() === 'POST');\n\t}", "title": "" }, { "docid": "c2cd2d19919280c62d4da23d9e0a020b", "score": "0.6249526", "text": "function isPost() {\n\t\treturn ($this->method == 'POST');\n\t}", "title": "" }, { "docid": "8cb44c70097d901696f57712d9f2a467", "score": "0.62493855", "text": "function is_post_public( $post ) {\n\t\tif ( !is_array( $post ) ) {\n\t\t\t$post = (array) $post;\n\t\t}\n\n\t\tif ( 0 < strlen( $post['post_password'] ) )\n\t\t\treturn false;\n\t\tif ( ! in_array( $post['post_type'], get_post_types( array( 'public' => true ) ) ) )\n\t\t\treturn false;\n\t\t$post_status = get_post_status( $post['ID'] ); // Inherited status is resolved here.\n\t\tif ( ! in_array( $post_status, get_post_stati( array( 'public' => true ) ) ) )\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f8407f3672a0103b2f54f9736e918b5c", "score": "0.6247878", "text": "public function is_single($post = '')\n {\n }", "title": "" }, { "docid": "d8ec2415373fc06ebe4361daef7d353a", "score": "0.6245484", "text": "function acf_validate_save_post($show_errors = \\false) {}", "title": "" }, { "docid": "31886cceae75dfd3c8770b9752cc8777", "score": "0.6238907", "text": "function validate_save_post()\n {\n }", "title": "" }, { "docid": "7a28106c346cc59d436f805626431888", "score": "0.62347245", "text": "protected function _isPost()\n {\n return strtolower($_SERVER['REQUEST_METHOD']) == 'post';\n }", "title": "" }, { "docid": "4412e745816945ba6c948b2058261fa9", "score": "0.6233722", "text": "public function postExists()\n {\n if ($this->getPostId()) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2ce5afbd9544c3275ce3c5463fb67ade", "score": "0.6226749", "text": "public function validatePost($displayName)\n {\n $slug = nameToSlug($displayName);\n\n $record = $this->model->where('slug', $slug)->first();\n\n return $record ? false:true;\n }", "title": "" }, { "docid": "0ddbb990de39c83073c0d5e19f1f7810", "score": "0.62245154", "text": "public function isPost()\n {\n if (!empty($_POST)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "7123a4ce0c809f00ef07ce17b7c8069f", "score": "0.6214688", "text": "function posts_verify_post_published( $rss_id, $post_url ) {\n \n // Get codeigniter object instance\n $CI = get_instance();\n \n if ( $CI->rss_model->was_published( $CI->user_id, $rss_id, $post_url) ) {\n \n return true;\n \n } else {\n \n return false;\n \n }\n \n }", "title": "" }, { "docid": "320a8fe57dada33926c1ea830dc08b3f", "score": "0.61979485", "text": "protected function isPost()\n {\n return ($this->request->getMethod() == 'POST');\n }", "title": "" }, { "docid": "ee7dfe78075aeb3fc266b3ca5a8a186c", "score": "0.6194562", "text": "function isInvalid()\n\t\t{\n\t\t\treturn $this->article->isInvalid();\n\t\t}", "title": "" }, { "docid": "f323f894354627435004309027aefe0e", "score": "0.61911714", "text": "protected function checkPostType($post) {\n\t\treturn $post->post_type === 'page';\n\t}", "title": "" }, { "docid": "d40ae57d5065e1f4f5523400a74a36f9", "score": "0.6186923", "text": "public function postValidation()\n\t{\n\t\treturn $this->validatePost();\n\t}", "title": "" }, { "docid": "0d33cceb030aceeae17ab964cd1a320c", "score": "0.61836994", "text": "public function isPost()\n {\n return $this->method === \"POST\";\n }", "title": "" }, { "docid": "58b6876c1197c6c98bfd6a2586e8f1c4", "score": "0.6175795", "text": "public function is_post()\n {\n return $this->request->method() === HTTP_Request::POST;\n }", "title": "" }, { "docid": "50a454858cfbfac67a9d8e2ca6d9a6d2", "score": "0.6174486", "text": "public function procesa_post()\n {\n\t\treturn isset($this->url_post) && $this->url_post != '';\n\t}", "title": "" }, { "docid": "38d6a08f61fb210330e144d9358ba9ae", "score": "0.617365", "text": "public function isPost()\n {\n return $this->getMethod() === 'POST';\n }", "title": "" }, { "docid": "3dd2b9d1820ab34ded113e7b15af7974", "score": "0.61705184", "text": "function acf_validate_post_id($post_id, $_post_id)\n {\n }", "title": "" }, { "docid": "71820473c1625b1f4d2eabcba03e94dc", "score": "0.61700743", "text": "function is_post_or_post_id( $post ) {\n\tif ( true === is_post( $post ) ) {\n\t\treturn true;\n\t}\n\n\t$post = get_post( $post );\n\n\tif ( true === is_post( $post ) ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "3f8db1248291cd89966699def51c1bf4", "score": "0.6169705", "text": "private function has_post_meta() {\n\t\tif ( ! is_date() &&\n\t\t\t! is_author() &&\n\t\t\t! is_search() &&\n\t\t\t! is_404()\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ec0831c5aba2147088b58de47b2deead", "score": "0.61587244", "text": "protected function CheckPost(ExternalPost $post): bool\n {\n return Post::whereLink($post->getLink())->doesntExist();\n }", "title": "" }, { "docid": "61802e01a2bc61e1e844e6da05e56215", "score": "0.6150299", "text": "function isPost(){\n\tif($_SERVER['REQUEST_METHOD']=='POST'){\n\t\treturn true;\n\t}\n\telse{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "8094166edcdda5a391d3be4fd28ad09a", "score": "0.6140415", "text": "protected function isPost()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'POST') return true;\n return false;\n }", "title": "" }, { "docid": "e6b7e2c5e5d0770c977baaee33b57beb", "score": "0.6135828", "text": "static public function isPost()\n\t{\n\t\treturn strtolower($_SERVER['REQUEST_METHOD']) == 'post';\n\t}", "title": "" }, { "docid": "af3c597ac0625455b6d24094efb07cdc", "score": "0.6131494", "text": "public function isPost()\r\n {\r\n return strtoupper($this->method) === 'POST';\r\n }", "title": "" }, { "docid": "75ad1654d5cb3bac7715d07b249eb8da", "score": "0.6124192", "text": "public function isPost()\n {\n return $this->getMethod() === self::METHOD_POST;\n }", "title": "" }, { "docid": "77886d6ef40123c7b647ddde4aff46a2", "score": "0.6122359", "text": "public function postManagement($post, $postId = 0) \n { \n\n \t$filter = $this->filter->getInputFilter()->setData($post);\n \t$identity = $this->identity();\n\n if (!$filter->isValid()) {\n return ['error', $filter->getMessages()];\n }\n \n $entity = new Posts();\n $entity->exchangeArray($post);\n\n\t if ($postId !== 0) {\n\t \treturn $this->editPost($entity, $postId);\n\t }\n\n\t $this->newPost($entity);\n return true;\n\n }", "title": "" }, { "docid": "fcf15bb0e8f6a1bc917225ed941dc0a1", "score": "0.6119694", "text": "function IsPost()\n\t{\n\t\treturn $_SERVER[REQUEST_METHOD] == 'POST';\n\t}", "title": "" }, { "docid": "2b386d2c54f3d875eaf951ab2ddcc5e6", "score": "0.6117719", "text": "public function userWantsToViewPost() : bool {\n return $this->hasQueryString($this->forumLayout->getPostLink()) && $this->getRequestPostId() !== \"\";\n }", "title": "" }, { "docid": "9d40a4fc1cca0e698ad01ac3543af729", "score": "0.61101", "text": "function is_loaded_post_object()\n{\n\tglobal $post;\n\n return is_object($post);\n}", "title": "" }, { "docid": "6455646fe29d2c5966bcf91fb37cb3c7", "score": "0.60990864", "text": "public static function can_view_post( $post_id ) : bool {\n\t\t/**\n\t\t * Get the embargo meta and bail if it doesn't exist.\n\t\t * We know it's not an embargoed post here.\n\t\t */\n\t\t$embargo_meta = get_post_meta( $post_id, Loader::META_POST_EMBARGO_DATE, true );\n\t\tif ( empty( $embargo_meta ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t/**\n\t\t * Check that the post has a publication assigned to it.\n\t\t */\n\t\t$current_user_business_unit = get_user_meta( get_current_user_id(), 'assigned_business_units', true );\n\t\t$post_publication = Sites::get_post_publication( $post_id );\n\t\t/**\n\t\t * Filter name for checking whether the post has a\n\t\t * publication assigned.\n\t\t *\n\t\t * This should be used for stating whether a post should have\n\t\t * publication assigned before going further into the embargo\n\t\t * process. If check is required and a post is embargoed,\n\t\t * the post will still be accessible by all.\n\t\t *\n\t\t * @param bool $check Whether to check for a publication.\n\t\t */\n\t\t$check_publication = apply_filters( self::FILTER_EMBARGO_HAS_PUBLICATION, false );\n\t\tif ( $check_publication && empty( $post_publication ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t/**\n\t\t * Get the Business Unit that the post Publication is assigned to\n\t\t * and check it against the users list of assigned BUs.\n\t\t */\n\t\t$business_unit_term = get_term( $post_publication->parent, Sites::TAXONOMY );\n\t\tif ( isset( $business_unit_term->term_id ) && in_array( $business_unit_term->term_id, $current_user_business_unit, true ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t/**\n\t\t * Check the post authors Business Units in comparison\n\t\t * to the current users BUs, if they have mutual BUs,\n\t\t * let them through to edit the post.\n\t\t */\n\t\t$post = get_post( $post_id );\n\t\t$author_business_unit = get_user_meta( $post->post_author, User_Profiles::USER_META_ASSIGNED, true );\n\n\t\t$shared_units = array_filter(\n\t\t\t$author_business_unit,\n\t\t\tfunction( $value ) use ( $current_user_business_unit ) {\n\t\t\t\treturn in_array( $value, $current_user_business_unit, true );\n\t\t\t}\n\t\t);\n\n\t\tif ( ! is_null( $shared_units ) && count( $shared_units ) > 0 ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// You may pass.\n\t\tif ( current_user_can( 'edit_embargoed_posts' ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "51ced6279e4848465a4ea66c97ba733e", "score": "0.60965806", "text": "public function isPost()\n {\n return ($this->getMethod()=='POST');\n }", "title": "" }, { "docid": "3fdc9139e13e1c9aea8b7401888c1b2e", "score": "0.60924876", "text": "public function isValidUserFromPost() {\n\n $data = json_decode($_POST['data']);\n if ((!$data->email) || (!$data->password)) {\n } else {\n echo $this->isValidUser($data->email, $data->password);\n }\n }", "title": "" }, { "docid": "ca27a9c2d74fcd65f27856df536ffa3f", "score": "0.60863215", "text": "public function isPost()\n {\n return ($this->getMethod() == self::METHOD_POST);\n }", "title": "" }, { "docid": "cb3c075fce18e0374cee114e309ab304", "score": "0.60854566", "text": "function check_forum_post($obj)\n\t{\n\t\tglobal $SESS, $IN;\n\n\t\t// check settings to see if trackback needs to be verified\n\t\tif ($this->settings['check_forum_posts'] == 'y' AND $this->_check_user())\n\t\t{\n\t\t\t// input array\n\t\t\t$this->input = array(\n\t\t\t\t'user_ip'\t\t\t\t=> $SESS->userdata['ip_address'],\n\t\t\t\t'user_agent'\t\t\t=> $SESS->userdata['user_agent'],\n\t\t\t\t'comment_author'\t\t=> (strlen($SESS->userdata['screen_name']) ? $SESS->userdata['screen_name'] : $SESS->userdata['username']),\n\t\t\t\t'comment_author_email'\t=> $SESS->userdata['email'],\n\t\t\t\t'comment_author_url'\t=> $SESS->userdata['url'],\n\t\t\t\t'comment_content'\t\t=> ($IN->GBL('title') ? $IN->GBL('title').\"\\n\\n\" : '').$IN->GBL('body')\n\t\t\t);\n\n\t\t\t// Check it!\n\t\t\tif ($this->is_spam())\n\t\t\t{\n\t\t\t\t// No forum post moderation, so just exit\n\t\t\t\t$this->abort();\n\t\t\t}\n\t\t}\n\n\t\t// hook doesn't return anything\n\t}", "title": "" }, { "docid": "7eb52c4172ad1ea644b1ce0c2f427d0b", "score": "0.60853654", "text": "public function isPost() {\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "eecbd202930f8a991b988a1ab4ad1c91", "score": "0.608105", "text": "public static function isPost()\n {\n return (count($_POST) > 0) ? true : false;\n }", "title": "" }, { "docid": "cbb24e3d09b5d9565f34a4e493ff7a35", "score": "0.60772914", "text": "public function exists() {\n\t\treturn empty( $this->post ) ? false : true;\n\t}", "title": "" }, { "docid": "95ff95306008e420e394823b1f3a9aba", "score": "0.6076117", "text": "function is_post_exists( $fb_post ) {\n global $wpdb;\n\n // $row = $wpdb->get_row( $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE guid = %s AND post_status = 'publish'\", $fb_link_id ) );\n $row = $wpdb->get_row( $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE guid = %s\", $fb_post->actions[0]->link ) );\n\n if ( $row ) {\n //post exists so we need to update comments\n if (property_exists($fb_post, 'comments')) {\n $comments = $this->insert_comments($row->ID, $fb_post->comments->data);\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "666a5b905d13a610afa0a3d9d442f551", "score": "0.6072184", "text": "public static function isPost() {\n return $_SERVER['REQUEST_METHOD'] == 'POST';\n }", "title": "" }, { "docid": "00893f3859db93b9be7072e2fc30a7b1", "score": "0.6071695", "text": "protected function validateAndSave($post)\n\t{\n\t\t$validator = Validator::make(Input::all(), Post::$rules);\n\n\t\tif ($validator->fails()) {\n\t\t\tLog::info(Input::all());\n\t\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t\t} else {\n\n\t\t\t$post->title = Input::get('title');\n\t\t\t$post->description = Input::get('description');\n\t\t\t$post->user_id = Auth::id();\n\n\n\t\t\t$result = $post->save();\n\n\t\t\tif($result) {\n\t\t\t\treturn Redirect::action('PostsController@show', $post->id);\n\t\t\t} else {\n\t\t\t\treturn Redirect::back()->withInput();\n\t\t\t}\n\n\t\t\treturn Redirect::action('posts.index');\n\t\t}\n\t}", "title": "" } ]
fc478748c729f24c37df51b2c000cd69
set defaults for new users
[ { "docid": "2576aeeb732b9f18ff1610e845fbe49b", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t$this->user_level = 'client';\n\t}", "title": "" } ]
[ { "docid": "b2e9751c2a6efb1f10262706801ec9ad", "score": "0.7521935", "text": "private function addDefaultUserMeta(): void\n {\n NewUser::addLoginUserMeta(\\get_current_user_id(), $this->getIp());\n }", "title": "" }, { "docid": "e039d6528a83103c96ff7fca68f19398", "score": "0.73481023", "text": "public function applyDefaultValues()\n {\n $this->inst_r_usuario = 1;\n }", "title": "" }, { "docid": "cdf5f9522d8092ab5b6a8b390025285b", "score": "0.70868814", "text": "function setDefaultUser($default_user)\n {\n if ((!isset($default_user)) || ($default_user=='') || ($default_user==false))\n {\n $default_user='*';\n }\n $this->defaultUser = $default_user;\n }", "title": "" }, { "docid": "9229cb51affff603a6ae5f4a9d71a7e3", "score": "0.6972637", "text": "protected function createDefaultUser() {\n\n try {\n\n // load the entity manager\n $entityManager = $this->getApplication()->getEntityManager();\n\n // set user data and save it\n $user = new User();\n $user->setUserId(1);\n $user->setEmail('info@appserver.io');\n $user->setUsername('admin');\n $user->setUserLocale('en_US');\n $user->setPassword(md5('password'));\n $user->setEnabled(true);\n $user->setRate(1000);\n $user->setContractedHours(160);\n $user->setLdapSynced(false);\n $user->setSyncedAt(time());\n $entityManager->persist($user);\n\n // flush the entity manager\n $entityManager->flush();\n\n } catch (\\Exception $e) {\n error_log($e->__toString());\n }\n }", "title": "" }, { "docid": "235bbe8edc907e254ec4f25e5191fa7a", "score": "0.6892912", "text": "private function setDefaults()\n {\n }", "title": "" }, { "docid": "b855ff6bd2de09030c9b70609bf8f244", "score": "0.6781923", "text": "public function applyDefaultValues()\n\t{\n\t\t$this->passid = 0;\n\t\t$this->passname = '';\n\t\t$this->reqname = '';\n\t\t$this->pilotmemberid = 0;\n\t}", "title": "" }, { "docid": "94ddaf393c0ac5df0bf4abf43b06b6db", "score": "0.6713266", "text": "public function setDefaults() {\n }", "title": "" }, { "docid": "4d1502e8e0730eb0b837d4c1f67003ae", "score": "0.6594754", "text": "private function makeUserSettings()\n\t\t{\n\n\t\t\tif( FileSystem::exists( self::fileLocation( \"settings.json\") ) == false )\n\t\t\t\tthrow new \\Error(\"file does not exist: \" . self::fileLocation( \"settings.json\" ) );\n\n\t\t\tif( Debug::isCMD() )\n\t\t\t\tDebug::message(\"created user_settings.json using default settings value \" );\n\n\t\t\t$data = FileSystem::read( self::fileLocation( \"settings.json\") );\n\t\t\tFileSystem::write( self::fileLocation(), $data );\n\t\t}", "title": "" }, { "docid": "55153dadf0cf7418aaef9f7381139642", "score": "0.6533473", "text": "public function set_user_data() {\n\t\tglobal $current_user;\n\n\t\t$this->current_user = $current_user;\n\n\t\t$this->debug();\n\t}", "title": "" }, { "docid": "cc052158466958630ea0bd197127a924", "score": "0.65331715", "text": "public function settings() {\n $id = $this->requireLoggedInUser();\n $this->set([\n 'users' => [$this->Users->get($id)],\n ]);\n }", "title": "" }, { "docid": "42157086ba9bd6bef6733c07fc745cc5", "score": "0.64974093", "text": "public function initUserAttributes()\n {\n }", "title": "" }, { "docid": "2f90f4fcc835dab9fdc2e147de3aed7f", "score": "0.64389694", "text": "public function createDefaultUser()\n {\n if ($this->defaultUser) {\n return $this->defaultUser;\n }\n\n return $this->defaultUser = User::create([\n 'name' => 'Yasser Mussa',\n 'email' => 'yasser.mussa@gmail.com',\n 'password' => bcrypt('secret')\n ]);\n }", "title": "" }, { "docid": "90bd6ebc7971c91ea39556af59ebd647", "score": "0.6413945", "text": "public function setDefaults() {\n\t\t\t$objDb = AppRegistry::get('Database');\n\t\t\tif (!$this->current()->get(self::ID_PROPERTY)) {\n\t\t\t\t$this->current()->set('created', date($objDb->getDatetimeFormat()));\n\t\t\t}\n\t\t\t$this->current()->set('updated', date($objDb->getDatetimeFormat()));\n\t\t}", "title": "" }, { "docid": "c681f4b4b80b7086ebc4b165dde001a6", "score": "0.64094895", "text": "public function test_version1importsetsdefaultsonusercreate() {\n global $CFG, $DB;\n require_once($CFG->dirroot.'/elis/core/lib/setup.php');\n\n set_config('forcetimezone', 99);\n\n // Make sure we are not auto-assigning idnumbers.\n set_config('auto_assign_user_idnumber', 0, 'elis_program');\n elis::$config = new elis_config();\n\n $this->run_core_user_import(array());\n\n $select = \"username = :username AND\n mnethostid = :mnethostid AND\n auth = :auth AND\n maildigest = :maildigest AND\n autosubscribe = :autosubscribe AND\n trackforums = :trackforums AND\n timezone = :timezone AND\n theme = :theme AND\n lang = :lang AND\n {$DB->sql_compare_text('description')} = :description AND\n idnumber = :idnumber AND\n institution = :institution AND\n department = :department\";\n $params = array(\n 'username' => 'rlipusername',\n 'mnethostid' => $CFG->mnet_localhost_id,\n 'auth' => 'manual',\n 'maildigest' => 0,\n 'autosubscribe' => 1,\n 'trackforums' => 0,\n 'timezone' => 99,\n 'theme' => '',\n 'lang' => $CFG->lang,\n 'description' => '',\n 'idnumber' => '',\n 'institution' => '',\n 'department' => ''\n );\n\n $exists = $DB->record_exists_select('user', $select, $params);\n\n $this->assertEquals($exists, true);\n }", "title": "" }, { "docid": "5ce2db584aa1c1075cbe447d5eab326d", "score": "0.64056927", "text": "public function legacyOnSave() {\n\t\t$defaultModels = AbstractUserDefaultModel::getAllUserDefaultModels($this->id);\t\t\t\n\t\t$user = LegacyUser::model()->findByPk($this->id, false, true);\n\t\tforeach($defaultModels as $model){\n\t\t\t$model->getDefault($user);\n\t\t}\n\t}", "title": "" }, { "docid": "420e10f03c0363090caf9781e4ceea2d", "score": "0.63889855", "text": "public function applyDefaultValues()\n {\n $this->status = 0;\n $this->is_principal = false;\n $this->confirmation = 0;\n }", "title": "" }, { "docid": "50be836098fc334ecc22360091515ed3", "score": "0.63461185", "text": "private function get_default_usernames() {\n return array(\n 'user_1' => array('name' => 'Username', 'field' => 'username'),\n 'user_2' => array('name' => 'ID Number', 'field' => 'idnumber'),\n 'user_3' => array('name' => 'Email Address', 'field' => 'email')\n );\n }", "title": "" }, { "docid": "cfc802ef62d8452e2843eed77d5296a7", "score": "0.633595", "text": "public function initializeUser() {\n if ($user_id = get_current_user_id()) {\n $this->setUser(new aam_Control_Subject_User($user_id));\n } else {\n $this->setUser(new aam_Control_Subject_Visitor(''));\n }\n }", "title": "" }, { "docid": "66114831db11716921016a54af3475cc", "score": "0.6332656", "text": "public function setDefaultValues();", "title": "" }, { "docid": "47da3005b68d288eac4a1afd434afcec", "score": "0.63196343", "text": "private function configure_users(){\n\t\tforeach($this->data->users->user as $user){\n\t\t\tif($user['name'] != 'root'){\n\t\t\t\tif($user->group == 'ROOT'){\n\t\t\t\t\t$group = 'wheel';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$group = 'nobody';\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t *\tUse popen directly instead of Functions::shellCommand because we need to write the\n\t\t\t\t *\tpre-encrypted password to the shell stream to set it.\n\t\t\t\t *\tSecurity measures and all that, see man pw(8) for details\n\t\t\t\t */\n\t\t\t\t$cmd = 'pw useradd -n '.(string)$user['name'].' -g '.$group.' -s /bin/csh -d /nonexistent -H 0';\n\t\t\t\tLogger::getRootLogger()->debug('Running: '.$cmd);\n\t\t\t\t$fd = popen($cmd,\"w\");\n\t\t\t\tfwrite($fd,$user->password);\n\t\t\t\tpclose($fd);\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "5e8c252881a901d2f80266aac3986eab", "score": "0.6310721", "text": "public function setDefaultValues()\n\t{\t\t\n\t\t\n\t}", "title": "" }, { "docid": "09cb48b1683b6543a0a4cb1e33571574", "score": "0.63003635", "text": "function cansetnewuser(){\r\n \treturn false;//TODO generate stuf\r\n }", "title": "" }, { "docid": "f9970f352b22503338948bc8b21aa2f4", "score": "0.6291349", "text": "function taxonomy_access_user_create_defaults() {\n // Cache the terms the current user can create.\n static $vids = NULL;\n if (is_null($vids)) {\n $vids = _taxonomy_access_create_defaults();\n }\n return $vids;\n}", "title": "" }, { "docid": "a756cc556fe9eaaa805bb64d0afabf08", "score": "0.6255019", "text": "protected function createUser() {\n\t\t$this->u_key = null;\n\t\t$this->u_key = $this->u_obj->create();\n\t}", "title": "" }, { "docid": "a2853598cdeace124a88cc1c7e1aa89f", "score": "0.62540275", "text": "function updateUser(){\n\t\t$this->user = $this->loadResource('access', array(\n\t\t\t'_id' => $this->getSessionData('user'),\n\t\t));\n\t\t// otherwise load default user\n\t\tif(!$this->user) $this->user = $this->loadResource('access', array(\n\t\t\t'identifier' => 'default',\n\t\t\t'type' => 'defaultUser',\n\t\t));\n\t}", "title": "" }, { "docid": "82f8b7bec3f5902d1e6cc8e77695244b", "score": "0.6218883", "text": "public function populateUser() {\n $this->db->insert('user', array(\n 'role_id' => '1',\n 'user_name' => 'admin',\n 'user_pwd' => password_hash('admin', PASSWORD_DEFAULT),\n 'user_active' => 1\n ));\n }", "title": "" }, { "docid": "4cbd39310de259cb082edd6e1c990c30", "score": "0.62082094", "text": "function setDefaultValues( ) { \n\n \n }", "title": "" }, { "docid": "de3a750a3b90810e824fa19631829e14", "score": "0.61899656", "text": "protected function setDefaultValues()\n {\n $timestamp = time();\n $date_time_array = getdate($timestamp);\n \n $hours = $date_time_array['hours'];\n $minutes = $date_time_array['minutes'];\n $seconds = $date_time_array['seconds'];\n $month = $date_time_array['mon'];\n $day = $date_time_array['mday'];\n $year = $date_time_array['year'];\n \n $timestamp = mktime($hours, $minutes, $seconds, $month+6, $day, $year);\n\t\t\n parent::setDefaultValues();\n //$this->publicationDate = $this->embargoDate = date('Y-m-d h:i:s');\n //$this->expirationDate = date('Y-m-d h:i:s', $timestamp);\n $this->siteId = $this->channelId = 0;\n }", "title": "" }, { "docid": "6bf8d72e0649af00210a8a3002c63bba", "score": "0.6183081", "text": "public function defaults();", "title": "" }, { "docid": "25f20eb99fc291fc48e163abafa476fb", "score": "0.61817896", "text": "public function applyDefaultValues()\n {\n $this->asal_data = '1';\n $this->lantai = '1';\n $this->create_date = '2021-06-07 11:49:57';\n $this->last_update = '2021-06-07 11:49:57';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "title": "" }, { "docid": "ae698057239babb47b73f4e121fc1b20", "score": "0.61703587", "text": "function User (){\r\n\t\t$use_code = 0;\r\n\t\t$use_name = '';\r\n\t\t$use_lastname = '';\r\n\t\t$use_email = '';\r\n\t\t$use_login = '';\r\n\t\t$use_status = '';\r\n\t}", "title": "" }, { "docid": "5ded83cc5efdb311543de4de60d63066", "score": "0.61640465", "text": "public function applyDefaultValues()\n {\n $this->glmaacct = '';\n }", "title": "" }, { "docid": "787d9d2c6e53bee2cdd586d7fb5f151f", "score": "0.61640143", "text": "public function setDefaults()\n\t{\n\t\t$this->set('language', 'en');\n\t\t$this->set('pubYear', gmdate('Y'));\n\t\t$this->set('publisher', htmlspecialchars($this->_configs->publisher));\n\t\t$this->set('resourceType', 'Software');\n\t\t$this->set('resourceTypeTitle', 'Simulation Tool');\n\t\t$this->set('datePublished', gmdate('Y-m-d'));\n\t\t$this->set('dateAccepted', gmdate('Y-m-d'));\n\t}", "title": "" }, { "docid": "32f97e2e32589c329c4e01388aeaf62b", "score": "0.6162221", "text": "protected function _setDefaults()\n {\n $defaults = [\n 'authenticate' => ['Form'],\n 'flash' => [\n 'element' => 'error',\n 'key' => 'flash',\n 'params' => ['class' => 'error']\n ],\n 'loginAction' => [\n 'controller' => 'Users',\n 'action' => 'login',\n 'plugin' => null\n ],\n 'logoutRedirect' => $this->_config['loginAction'],\n 'authError' => __d('cake', 'You are not authorized to access that location.')\n ];\n\n $config = $this->getConfig();\n foreach ($config as $key => $value) {\n if ($value !== null) {\n unset($defaults[$key]);\n }\n }\n $this->setConfig($defaults);\n }", "title": "" }, { "docid": "35c3de59b02441a436a6b66c0aab758f", "score": "0.61621594", "text": "public function testPutUserGreetingsDefaults()\n {\n }", "title": "" }, { "docid": "99c5aea340fcc3c58a641e6303a23338", "score": "0.61576855", "text": "protected function setDefaultValues() {\n $timestamp = time();\n $date_time_array = getdate($timestamp);\n\n $hours = $date_time_array['hours'];\n $minutes = $date_time_array['minutes'];\n $seconds = $date_time_array['seconds'];\n $month = $date_time_array['mon'];\n $day = $date_time_array['mday'];\n $year = $date_time_array['year'];\n\n $timestamp = mktime($hours, $minutes, $seconds, $month + 6, $day, $year);\n\n parent::setDefaultValues();\n //$this->publicationDate = $this->embargoDate = date('Y-m-d');\n //$this->expirationDate = date('Y-m-d', $timestamp);\n $this->siteId = $this->channelId = 0;\n }", "title": "" }, { "docid": "a352db5d137f928c2555769adae7ede5", "score": "0.6150477", "text": "public function test_version1importpreventssettingunsupporteduserfieldsoncreate() {\n global $CFG, $DB;\n\n $data = array();\n $data['forcepasswordchange'] = 1;\n $data['maildisplay'] = 1;\n $data['mailformat'] = 0;\n $data['htmleditor'] = 0;\n $data['descriptionformat'] = FORMAT_WIKI;\n $this->run_core_user_import($data);\n\n $select = \"username = :username AND\n mnethostid = :mnethostid AND\n maildisplay = :maildisplay AND\n mailformat = :mailformat AND\n htmleditor = :htmleditor AND\n descriptionformat = :descriptionformat\";\n $params = array(\n 'username' => 'rlipusername',\n 'mnethostid' => $CFG->mnet_localhost_id,\n 'maildisplay' => 2,\n 'mailformat' => 1,\n 'htmleditor' => 1,\n 'descriptionformat' => FORMAT_HTML\n );\n\n // Make sure that a record exists with the default data rather than with the.\n // Specified values.\n $exists = $DB->record_exists_select('user', $select, $params);\n $this->assertEquals($exists, true);\n\n // Check force password change separately.\n $user = $DB->get_record('user', array('username' => 'rlipusername', 'mnethostid' => $CFG->mnet_localhost_id));\n $preferences = get_user_preferences('forcepasswordchange', null, $user);\n\n $this->assertEquals(count($preferences), 0);\n }", "title": "" }, { "docid": "7abcdec2e4a26b273d650b5f1ef17ac1", "score": "0.61484724", "text": "public static function createDefaults(User $user) {\n foreach(self::DEFAULTS as $type => $d) {\n (new Stat(array_merge([\"type\" => $type, \"user_id\" => $user->id], $d)))->save();\n }\n }", "title": "" }, { "docid": "cd2d175dadda5a590359b8f6b3b2c532", "score": "0.61412084", "text": "public function InitAppDefaultUsersSetup()\n {\n AppSetting::create([\n 'auto_review_requests' => true,\n 'auto_review_gigs' => true\n ]);\n\n // Add Basic Membership Plans\n // Basic Seller User Plan\n MembershipPlan::create([\n 'title' => 'basic seller plan',\n 'description' => 'basic free membership plan for seller users.',\n 'price' => 0,\n 'can_offer_requests' => true,\n 'bids_allowed' => 10,\n 'commission_per_order' => 20,\n 'can_post_request' => false,\n 'post_premium_requests' => false,\n 'show_primium_request' => false,\n 'can_add_gigs' => true,\n 'plan_type' => 'seller'\n ]);\n // Basic Buyer User Plan\n MembershipPlan::create([\n 'title' => 'basic buyer plan',\n 'description' => 'basic free membership plan for buyer users.',\n 'price' => 0,\n 'can_offer_requests' => false,\n 'bids_allowed' => 0,\n 'commission_per_order' => 0,\n 'can_post_request' => true,\n 'post_premium_requests' => false,\n 'show_primium_request' => false,\n 'can_add_gigs' => false,\n 'plan_type' => 'buyer'\n ]);\n\n // Creating Admin\n $admin = User::create([\n 'name' => 'admin',\n 'email' => 'a@p.c',\n 'phone_number' => '03000000001',\n 'password' => Hash::make('123456'),\n 'role' => 'admin',\n 'seller_plan_id' => 1,\n 'buyer_plan_id' => 2\n ]);\n UserDetails::create([\n 'user_id' => $admin->id\n ]);\n UserAccount::create([\n 'user_id' => $admin->id\n ]);\n\n // Creating buyer\n $buyer = User::create([\n 'name' => 'buyer',\n 'email' => 'b@p.c',\n 'phone_number' => '03000000002',\n 'password' => Hash::make('123456'),\n 'role' => 'buyer',\n 'seller_plan_id' => 1,\n 'buyer_plan_id' => 2\n ]);\n UserDetails::create([\n 'user_id' => $buyer->id\n ]);\n UserAccount::create([\n 'user_id' => $buyer->id\n ]);\n\n // Creating seller\n $seller = User::create([\n 'name' => 'seller',\n 'email' => 's@p.c',\n 'phone_number' => '03000000003',\n 'password' => Hash::make('123456'),\n 'role' => 'seller',\n 'seller_plan_id' => 1,\n 'buyer_plan_id' => 2\n ]);\n UserDetails::create([\n 'user_id' => $seller->id\n ]);\n UserAccount::create([\n 'user_id' => $seller->id\n ]);\n\n $ahsan1 = User::create([\n 'name' => 'ahsan1',\n 'email' => 'student@pnyexam.com',\n 'phone_number' => '03000000004',\n 'password' => Hash::make('123456'),\n 'role' => 'seller',\n 'seller_plan_id' => 1,\n 'buyer_plan_id' => 2\n ]);\n UserDetails::create([\n 'user_id' => $ahsan1->id\n ]);\n UserAccount::create([\n 'user_id' => $ahsan1->id\n ]);\n\n $ahsan2 = User::create([\n 'name' => 'ahsan2',\n 'email' => 'student@pnyexam.com1',\n 'phone_number' => '03000000005',\n 'password' => Hash::make('123456'),\n 'role' => 'seller',\n 'seller_plan_id' => 1,\n 'buyer_plan_id' => 2\n ]);\n UserDetails::create([\n 'user_id' => $ahsan2->id\n ]);\n UserAccount::create([\n 'user_id' => $ahsan2->id\n ]);\n\n // Roles\n $admin_role = Role::create(['name' => 'admin']);\n $buyer_role = Role::create(['name' => 'buyer']);\n $seller_role = Role::create(['name' => 'seller']);\n\n // Permissions\n $app_user_p = Permission::create(['name' => 'app_user']);\n $view_dashboard_p = Permission::create(['name' => 'view_dashboard']);\n $add_new_user_p = Permission::create(['name' => 'add_new_user']);\n\n // Giving Permissions to Roles\n // Admin Role\n $admin_role->givePermissionTo($app_user_p);\n $admin_role->givePermissionTo($view_dashboard_p);\n $admin_role->givePermissionTo($add_new_user_p);\n\n // Buyer Role\n $buyer_role->givePermissionTo($app_user_p);\n $buyer_role->givePermissionTo($view_dashboard_p);\n \n // Seller Role\n $seller_role->givePermissionTo($app_user_p);\n $seller_role->givePermissionTo($view_dashboard_p);\n\n // Assigning Roles To Users\n $admin->assignRole($admin_role);\n $buyer->assignRole($buyer_role);\n $seller->assignRole($seller_role);\n $ahsan1->assignRole($seller_role);\n $ahsan2->assignRole($seller_role);\n\n\n return \"All Done Users Created and Roles Assigned With respective Permissions\";\n }", "title": "" }, { "docid": "60d04daea950230ea289dd455e81984a", "score": "0.61323035", "text": "public function setGroupDefaults () {\r\n\t$this->ensureLoggedIn();\r\n\r\n\treturn $this->request(array('req' => 'setgroupdefaults'));\r\n\t}", "title": "" }, { "docid": "5fb69c6ba1b6fb36d44af7c1dbb6ebf9", "score": "0.61111027", "text": "public function useDefaults();", "title": "" }, { "docid": "120d456119733e9c0bf6903cb064dc4e", "score": "0.6103327", "text": "function newuser() {\r\n\t\t// if a user is active he cannot re-register\r\n\t\tif ($this->getActiveUser ()) {\r\n\t\t\t$this->redirect ( 'login', 'welcome' );\r\n\t\t\texit ();\r\n\t\t}\r\n\t\t\r\n\t\t// Get message and data from registration process\r\n\t\t$this->vars ['msg'] = isset ( $_SESSION ['msg'] ) ? $_SESSION ['msg'] : '';\r\n\t\t$this->vars ['persistence'] = isset ( $_SESSION ['persistence'] ) ? $_SESSION ['persistence'] : array (\r\n\t\t\t\t'',\r\n\t\t\t\t'',\r\n\t\t\t\t'',\r\n\t\t\t\t'' \r\n\t\t);\r\n\t}", "title": "" }, { "docid": "d3a557bde27e9bb24dd41fe1b76e6d7f", "score": "0.60776234", "text": "public function set_defaults($defaults) {\n $this->defaults = $defaults;\n }", "title": "" }, { "docid": "c59f77bdddab2b5b5a859042eefb787e", "score": "0.6059302", "text": "public function actionInit()\n {\n echo \"Create Admin User:\" . PHP_EOL;\n $model = new User();\n $this->readValue($model, 'username');\n $this->readValue($model, 'email');\n $model->setPassword($this->prompt('Password:', [\n 'required' => true,\n 'pattern' => '#^.{6,255}$#i',\n 'error' => 'More than 6 symbols',\n ]));\n //$model->generateAuthKey();\n $model->status = User::STATUS_ADMIN;\n $this->log($model->save());\n }", "title": "" }, { "docid": "aded2d162fe9ace182e3dde6760794da", "score": "0.60439956", "text": "protected function setDefaults()\n {\n $now = new \\DateTime('NOW');\n $this->date($now);\n $this->hour($now->format('H'));\n $this->duration(0);\n }", "title": "" }, { "docid": "9e7ed9ee6c7e41e2e77b7d686832c1e1", "score": "0.6040024", "text": "public function settingsChange()\n\t\t{\n\t\t\t$user = AppUser::loadByUsername($_SESSION['username']);\n\t\t\tif ($_POST['newEmail'] != null)\n\t\t\t{\n\t\t\t\t$user->set('email', $_POST['newEmail']);\n\t\t\t}\n\t\t\tif ($_POST['newPass'] != null)\n\t\t\t{\n\t\t\t\t$user->set('pw', $_POST['newPass']);\n\t\t\t}\n\t\t\tif ($_POST['newFirst'] != null)\n\t\t\t{\n\t\t\t\t$user->set('first_name', $_POST['newFirst']);\n\t\t\t}\n\t\t\tif ($_POST['newLast'] != null)\n\t\t\t{\n\t\t\t\t$user->set('last_name', $_POST['newLast']);\n\t\t\t}\n\t\t\t$user->save();\n\t\t\theader('Location: '.BASE_URL.'/settings');\n\n\t\t}", "title": "" }, { "docid": "fc00564db547080a467159ee63cf6ff9", "score": "0.6024008", "text": "private function _define_user_values()\n\t{\n\t\tglobal $context, $modSettings, $txt;\n\n\t\t// Set up the context stuff and load the user.\n\t\t$context += array(\n\t\t\t'page_title' => sprintf($txt['profile_of_username'], $this->_profile['name']),\n\t\t\t'can_send_pm' => allowedTo('pm_send'),\n\t\t\t'can_send_email' => allowedTo('send_email_to_members'),\n\t\t\t'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),\n\t\t\t'can_issue_warning' => featureEnabled('w') && allowedTo('issue_warning') && !empty($modSettings['warning_enable']),\n\t\t\t'can_view_warning' => featureEnabled('w') && (allowedTo('issue_warning') && !$context['user']['is_owner']) || (!empty($modSettings['warning_show']) && ($modSettings['warning_show'] > 1 || $context['user']['is_owner']))\n\t\t);\n\n\t\t// @critical: potential problem here\n\t\t$context['member'] = $this->_profile;\n\t\t$context['member']->loadContext();\n\t\t$context['member']['id'] = $this->_memID;\n\n\t\t// Is the signature even enabled on this forum?\n\t\t$context['signature_enabled'] = substr($modSettings['signature_settings'], 0, 1) == 1;\n\t}", "title": "" }, { "docid": "3caed72e3985905a30be41c6cde8345d", "score": "0.60204875", "text": "private function setAttributesByUser()\n {\n $this->setAttribute('user_id', Yii::$app->getUser()->getId());\n $this->setAttribute('paid', self::NOT_PAID);\n $this->setAttribute('paid_by', self::DEFAULT_PAID_BY);\n $this->setAttribute('admin_id', self::DEFAULT_ADMIN_ID);\n $this->setAttribute('start_date', self::DEFAULT_START_DATE);\n $this->setAttribute('end_date', self::DEFAULT_END_DATE);\n }", "title": "" }, { "docid": "f2b6cdaad42a0eaf4345d6ea61ffbb10", "score": "0.60198927", "text": "function default() {\n if (!isset($_SESSION['user_id'])) {\n $this->login();\n } else {\n $user = $this->getStake('user', $_SESSION['user_id']);\n print_r($user);\n }\n }", "title": "" }, { "docid": "493237d0e24e1d2e704a8640406c8bda", "score": "0.6003125", "text": "function set_default($name,$dbase,$user='',$pass='')\n{\n\tif($name=='') $name='localhost';\n\t$this->def_connect=$name;\n\t$this->def_database=$dbase;\n\t$this->def_user=$user;\n\t$this->def_pass=$pass;\n}", "title": "" }, { "docid": "dba8f22c7257c9c71f2e14a2cd396433", "score": "0.6000908", "text": "function getDefaultUser() {\n return $this->defaultUser;\n }", "title": "" }, { "docid": "d6b35488b53bfe2aca2d9503d236f5d6", "score": "0.5989995", "text": "public static function saveDefaultNotificationSettingsAction()\n\t{\n\t\t//get all verfied users.\n\t\t$allVerifiedUsers =\\Extended\\ilook_user::getIlookUsersByParameters(null,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tarray(),\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\ttrue\n\t\t);\n\n\t\t//save all user's default chat settings [chat=>ON,read_receipt=>1] & add on openfire server.\n\t\tforeach($allVerifiedUsers as $verifiedUser) {\n\t\t\t$postData = array(\n\t\t\t\t'link_request' => 1,\n\t\t\t\t'feedback_request' => 1,\n\t\t\t\t'reference_request' => 1,\n\t\t\t\t'job_invite' => 1,\n\t\t\t\t'general_notification' => 1\n\t\t\t);\n\t\t\t\\Extended\\notification_settings::saveNotificationSettings($verifiedUser[0]->getId(), $postData);\n\n\t\t}\n\t\tdie;\n\t}", "title": "" }, { "docid": "24fb3216dd47219c2396a18a8dd7e598", "score": "0.5973871", "text": "private function inject_defaults(){\n\t\tforeach($this->form_fields as $field => &$properties){\n\t\t\tif (!isset(self::$defaults[$field])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$properties['default'] = self::$defaults[$field];\n\t\t}\n\t}", "title": "" }, { "docid": "b2ff703ecef1646670cb23964f57d4c8", "score": "0.5973363", "text": "public function setUsers() {\n $users = $this->monday('{users (kind: non_guests) {id email}}');\n foreach ($users['data']['users'] as $user) {\n $this->users[$user['email']] = $user['id'];\n }\n }", "title": "" }, { "docid": "e9990b5b51efe2fefbceaa157580b3ea", "score": "0.59656286", "text": "protected function setDefaults($record)\n\t{\n\t\t$app = JFactory::getApplication();\n\t\t$user = JFactory::getUser();\n\n\t\t// Default -- Dates: current and null.\n\t\t$currentdate = JFactory::getDate();\n\n\t\t// Default -- Created By (Owner).\n\t\t$default_created_by = $user->get('id') ?: flexicontent_db::getSuperUserID();\n\n\t\t// Default -- Access level.\n\t\t// -- NOTE: This default will be forced if user has not access level edit privelege\n\t\t$default_accesslevel = $app->getCfg( 'access', $public_acclevel = 1 );\n\n\t\t// Default -- Publication state.\n\t\t// -- NOTE: this will only be used if user has publish privilege, otherwise items will be forced to (a) pending_approval state for NEW ITEMS and (b) to item's current state for EXISTING ITEMS\n\t\t$default_state = $app->isClient('administrator')\n\t\t\t? $this->_cparams->get('new_item_state', $pubished_state = 1) // Use the configured setting for backend items\n\t\t\t: $this->_cparams->get('new_item_state_fe', $pubished_state = 1); // Use the configured setting for frontend items\n\n\t\t// Default -- Language\n\t\t// -- NOTE: There are language limitations per user / usergroup that may override the defaults ...\n\t\t$default_lang = $this->getDefaultItemLanguage($record);\n\n\t\t// ***\n\t\t// *** DB properties that do not use DB / getTable() defaults\n\t\t// ***\n\n\t\t$record->id = 0; // DB setting: no default value\n\t\t$record->version = 0; // DB setting: 1\n\t\t$record->created = $currentdate->toSql();\n\t\t$record->created_by = $default_created_by;\n\t\t$record->publish_up = $currentdate->toSql();\n\t\t$record->publish_down = FLEXI_J40GE ? NULL : $this->_db->getNullDate();\n\t\t$record->access = $default_accesslevel;\n\t\t$record->state = $default_state;\n\t\t$record->language = $default_lang;\n\n\n\t\t// ***\n\t\t// *** DB properties that use DB / getTable() defaults\n\t\t// ***\n\n\t\t//$record->catid = 0;\n\t\t//$record->title = ''; // required\n\t\t//$record->alias = '';\n\t\t//$record->introtext = null; // required\n\t\t//$record->fulltext = null; // required\n\t\t//$record->metadesc = null;\n\t\t//$record->metakey = null;\n\t\t//$record->hits = 0;\n\n\t\t//$record->images = null;\n\t\t//$record->urls = null;\n\t\t//$record->attribs = null;\n\t\t//$record->metadata = null;\n\n\t\t//$record->modified = FLEXI_J40GE ? NULL : $this->_db->getNullDate();\n\t\t//$record->modified_by = 0;\n\t\t//$record->created_by_alias = null;\n\n\n\t\t// ***\n\t\t// *** (a) Some items_ext DB properties , (b) Type id & main category id, (c) Categories and Tags\n\t\t// ***\n\n\t\t$record->search_index = null;\n\n\t\t$record->type_id = $this->_typeid;\n\t\t$record->catid = $this->_cid;\n\n\t\t$record->categories = array();\n\t\t$record->tags = array();\n\t}", "title": "" }, { "docid": "85bedc9f8b6129b6836d72e27fe48c3f", "score": "0.5959724", "text": "public function init_new_user($fb_data){\n $this->uid = $this->init($fb_data);\n $id = \\Module\\Admin_user::remote_adduser($fb_data['email'], $fb_data['name'], DEFAULT_GROUPS, 'fb', $this->uid);\n $this->load();\n $this->lid = $id;\n $_SESSION['user'] = $id;\n $this->init_ip = $_SERVER['REMOTE_ADDR'];\n $this->update();\n }", "title": "" }, { "docid": "c6c2e035f570f8274448baa37d47f1ae", "score": "0.59592", "text": "protected function setDefaults()\n {\n $this->properties['source'] = \"default\";\n $this->properties['category'] = \"default\";\n }", "title": "" }, { "docid": "5e750ac95e5326ca62d3da06aa96656b", "score": "0.5956104", "text": "function get_default_user_data( $user ) {\n\treturn [\n\t\t'ID' => $user->data->ID,\n\t\t'user_login' => $user->data->user_login,\n\t\t'user_nicename' => $user->data->user_nicename,\n\t\t'user_email' => $user->data->user_email,\n\t\t'roles' => $user->roles,\n\t];\n}", "title": "" }, { "docid": "d58b93239dc77731bdaa89d1f75f6154", "score": "0.5950428", "text": "private function newUser () { \n return [\n \"email\" => \"merryhello@chin.com\",\n \"first_name\" => \"me\",\n \"last_name\" => \"she\",\n \"password\" => \"ytjtgjr543\"\n ];\n }", "title": "" }, { "docid": "30d3498cafc405af45787da0eec25f54", "score": "0.59464246", "text": "public function initializeDefaults()\n {\n }", "title": "" }, { "docid": "30d3498cafc405af45787da0eec25f54", "score": "0.59464246", "text": "public function initializeDefaults()\n {\n }", "title": "" }, { "docid": "14035c364eb6b8736d3cfe13742fc63d", "score": "0.5934307", "text": "function new_user($revision) {\n\t\t$this->users = new infotv_slides_user();\n\t}", "title": "" }, { "docid": "c4e2e6966764b86a80d807657d3ba13c", "score": "0.5930645", "text": "function MyMod_Data_AddDefaultKeys(&$data,$defaults=array())\n {\n if (empty($defaults))\n {\n $defaults=$this->MyMod_Data_DefaultDefs();\n }\n\n $this->MyHash_AddDefaultKeys($data,$defaults);\n $this->MyMod_Profiles_AddDefaultKeys($data);\n }", "title": "" }, { "docid": "e218105b4b9085dfe9d482451a437a9c", "score": "0.59279776", "text": "private function set_username_format() {\n $usernamesetting = get_config('assignsubmission_physical', 'usernamesettings');\n $format = preg_split('/_/', get_config('assignsubmission_physical', 'usernamesettings'), -1, null);\n $this->usernameformat = new \\stdClass();\n $this->usernameformat->format = $format[0];\n $this->usernameformat->value = $format[1];\n\n if ($this->usernameformat->format === 'user') {\n $this->usernameformat->name = $this->get_default_usernames()[$usernamesetting]['name'];\n $this->usernameformat->field = $this->get_default_usernames()[$usernamesetting]['field'];\n return;\n }\n if ($this->usernameformat->format === 'uif') {\n $this->usernameformat->name = '';\n $this->usernameformat->field = '';\n return;\n }\n }", "title": "" }, { "docid": "09f9bb8358b36e010ddf7ca49eca6391", "score": "0.59247375", "text": "public function save()\n {\n foreach ($this->getAllProperties() as $property => $value) {\n if ($property === 'password' || $property === 'newpassword') {\n // update password only if new is set and length >= 3\n if ($this->newpassword !== null && Str::length($this->newpassword) >= 3) {\n $this->_user->password = App::$Security->password_hash($this->newpassword);\n }\n } elseif ($property === 'approve_token') {\n if ($value == \"1\") {\n $this->_user->approve_token = '0';\n } else {\n if ($this->_approve_tmp === '0') {\n $this->_approve_tmp = Str::randomLatinNumeric(mt_rand(32, 128));\n }\n $this->_user->approve_token = $this->_approve_tmp;\n }\n } else {\n $this->_user->{$property} = $value;\n }\n }\n\n $this->_user->save();\n }", "title": "" }, { "docid": "05ac750306e3f8598f088bca95105b4f", "score": "0.5923919", "text": "public function storeOldUsersSettingsForChatAction()\n\t{\n\t\t//get all verfied users.\n\t\t$allVerifiedUsers =\\Extended\\ilook_user::getIlookUsersByParameters(null,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tarray(),\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\tnull,\n\t\t\ttrue\n\t\t);\n\t\t\n\t\t//save all user's default chat settings [chat=>ON,read_receipt=>1] & add on openfire server.\n\t\tforeach($allVerifiedUsers as $verifiedUser){\n\n\t\t\t$IsOpenfireUser =\\Extended\\chat_settings::getRowObject(['ilookUser' => $verifiedUser[0]->getId()]);\n\t\t\tif (!$IsOpenfireUser) {\n\t\t\t\t$openfirePassword = Helper_common::generatePassword(10);\n\t\t\t\t//Set up chatsettings for openfire chat.\n\t\t\t\t//creating user on openfire.\n\t\t\t\ttry {\n\t\t\t\t\t$openFireMain = new Openfire\\Main();\n\t\t\t\t\t$openFireMain->createUser(\n\t\t\t\t\t\t['username' => $verifiedUser[0]->getUsername(),\n\t\t\t\t\t\t\t'password' => $openfirePassword,\n\t\t\t\t\t\t\t'name' => $verifiedUser[0]->getFirstname() . ' ' . $verifiedUser[0]->getLastname(),\n\t\t\t\t\t\t\t'email' => $verifiedUser[0]->getEmail()\n\t\t\t\t\t\t]\n\t\t\t\t\t);\n\n\t\t\t\t}catch (\\Exception $e){\n\t\t\t\t\tHelper_common::logInfo($e, 'red');\n\t\t\t\t}\n\t\t\t\t// persisting openfire user data on iLook DB (required only).\n\t\t\t\t\\Extended\\chat_settings::add(['iLookUser' => $verifiedUser[0]->getId(),'openfire_password'=>base64_encode($openfirePassword)]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdie;\n\t}", "title": "" }, { "docid": "3af600eb9fbfb8605ef2f2a58a72cca8", "score": "0.5920901", "text": "function defaults() {\n global $cookie_color_name, $expire, $bcolor;\n\n // load user HEX if one is set\n if (isset($_COOKIE[$cookie_color_name])) {\n $bcolor = $_COOKIE[$cookie_color_name];\n }\n\n // save cookie to update the expire time\n setcookie($cookie_color_name, $bcolor, $expire, \"/\");\n}", "title": "" }, { "docid": "2631db902eaeeebf64fef66c2949da69", "score": "0.5914606", "text": "protected function setDefaultValues()\n {\n parent::setDefaultValues();\n\n $this->publicationDate = date('Y-m-d');\n $this->permalinks = null; \n\n $this->siteId = 0;\n }", "title": "" }, { "docid": "70e5a712248a9e48ea4930da33939d26", "score": "0.5913985", "text": "public function testResetUserDefaults() {\n\t\t$defaults = array('Project' => array(\n\t\t\t'max_feedrate' => 4000,\n\t\t\t'traversal_rate' => 299,\n\t\t\t'home_before' => false,\n\t\t\t'clear_after' => true,\n\t\t\t'gcode_preamble' => 'Foo',\n\t\t\t'gcode_postscript' => 'Bar',\n\t\t));\n\n\t\t$result = $this->Project->saveDefaults('101', $defaults);\n\t\t$this->assertArrayHasKey('Project', $result);\n\t\t$this->Project->resetUserDefaults('101');\n\t\t$this->Project->create();\n\t\t$result = $this->Project->newProject('101');\n\n\t\t$this->assertEqual($result['Project']['max_feedrate'], Configure::read('LaserApp.default_max_cut_feedrate'));\n\t\t$this->assertEqual($result['Project']['traversal_rate'], Configure::read('LaserApp.default_traversal_feedrate'));\n\t\t$this->assertEqual($result['Project']['home_before'], true);\n\t\t$this->assertEqual($result['Project']['clear_after'], false);\n\t\t$this->assertEqual($result['Project']['gcode_preamble'], Configure::read('LaserApp.default_gcode_preamble'));\n\t\t$this->assertEqual($result['Project']['gcode_postscript'], Configure::read('LaserApp.default_gcode_postscript'));\n\t}", "title": "" }, { "docid": "2daa052360f211d7adf5a124b115efc4", "score": "0.591326", "text": "public function setDefaults(array $defaults) {}", "title": "" }, { "docid": "15066c9ab140c10bd2e98bead9b09e11", "score": "0.59130347", "text": "function configure_user()\n {\n // Check if an Admin user already exists in the DB\n $this->template['skip'] = FALSE;\n\n $this->db_connect();\n\n $this->db->where('id', '1');\n $query = $this->db->get('users');\n if(!empty($query)) {\n if ($query->num_rows() > 0) {\n //update existing\n $this->template['skip'] = TRUE;\n }\n }\n\n\n if (!isset($_POST['action'])) {\n // Skip TRUE and no POST = Admin user already exists\n if ($this->template['skip'] == TRUE) {\n $this->template['message_type'] = 'alert';\n $this->template['message'] = lang('user_info_admin_exists');\n }\n\n // Prepare data\n $data = array('username', 'firstname', 'lastname', 'email', 'encryption_key');\n\n $this->_feed_blank_template($data);\n\n // Encryption key : check if one exists\n require(ROOTPATH . 'application/config/config.php');\n if ($config['encryption_key'] == '') {\n $this->template['encryption_key'] = $this->generateEncryptKey();\n }\n\n $this->output('user');\n } else {\n $this->_save_user();\n\n $this->db_connect();\n\n // header(\"Location: \".BASEURL.'install/?step=data&lang='.$this->template['lang'], TRUE, 302);\n header(\"Location: \" . BASEURL . 'install/?step=finish&lang=' . $this->template['lang'], TRUE, 302);\n }\n }", "title": "" }, { "docid": "ee2c803602ec044713fd28cab6a0fd31", "score": "0.5908872", "text": "function saveUserLoginData() {\n\n\t\tif($this->_render->getInserted('remember') == true) {\n\n\t\t\t$this->_render->createRemember();\n\t\t}\n\t\t$this->_render->setAccessibility();\n\t}", "title": "" }, { "docid": "8518d0cbfa8231c6dc33fd4b33ba5cff", "score": "0.59058785", "text": "function admin_default()\n\t{\n\t\tdb()->exec_(\"\n\t\t\tINSERT INTO `my`.`my_admin_member` \n\t\t\t\t(`admin_idx`, `admin_id`, `admin_pw`, `admin_name`, `admin_owner`, `reg_date`) \n\t\t\tVALUES \n\t\t\t\t(1, 'madison', 'madison', 'madison', 1, sysdate());\") ;\n\t\t$this->log('insert admin - madison') ;\n\t}", "title": "" }, { "docid": "81299c0f9bba5c83a5f4dce4d3918838", "score": "0.5900796", "text": "public function testNewProjectUserDefaults() {\n\t\t$defaults = array('Project' => array(\n\t\t\t'max_feedrate' => 4000,\n\t\t\t'traversal_rate' => 299,\n\t\t\t'home_before' => false,\n\t\t\t'clear_after' => true,\n\t\t\t'gcode_preamble' => 'Foo',\n\t\t\t'gcode_postscript' => 'Bar',\n\t\t));\n\n\t\t$result = $this->Project->saveDefaults('101', $defaults);\n\t\t$this->assertArrayHasKey('Project', $result);\n\n\t\t$result = $this->Project->newProject('101');\n\n\t\t$this->assertEqual($result['Project']['max_feedrate'], 4000);\n\t\t$this->assertEqual($result['Project']['traversal_rate'], 299);\n\t\t$this->assertEqual($result['Project']['home_before'], false);\n\t\t$this->assertEqual($result['Project']['clear_after'], true);\n\t\t$this->assertEqual($result['Project']['gcode_preamble'], 'Foo');\n\t\t$this->assertEqual($result['Project']['gcode_postscript'], 'Bar');\n\t}", "title": "" }, { "docid": "f887465b0b125684d5c4b18017c2a0a6", "score": "0.5896211", "text": "protected function setDefault()\r\n\t{\r\n\t\tglobal $ilCtrl, $lng;\r\n\r\n\t\tif($this->portfolio && $this->checkAccess(\"write\"))\r\n\t\t{\r\n\t\t\tilObjPortfolio::setUserDefault($this->user_id, $this->portfolio->getId());\r\n\t\t\tilUtil::sendSuccess($lng->txt(\"settings_saved\"), true);\r\n\t\t}\r\n\t\t$ilCtrl->redirect($this, \"show\");\r\n\t}", "title": "" }, { "docid": "c10ed36f74846aa6ed73809137d55037", "score": "0.5895398", "text": "function Profile_defaultdata()\n{\n // Make assumption that if were upgrading from 76x to 1.x\n // that user properties already exist and abort inserts.\n if (isset($_SESSION['_PNUpgrader']['_PNUpgradeFrom76x'])) {\n return;\n }\n\n // _UREALNAME\n $record = array();\n $record['prop_label'] = no__('_UREALNAME');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '1';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'realname';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _UFAKEMAIL\n $record = array();\n $record['prop_label'] = no__('_UFAKEMAIL');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '2';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'publicemail';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YOURHOMEPAGE\n $record = array();\n $record['prop_label'] = no__('_YOURHOMEPAGE');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '3';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'url';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _TIMEZONEOFFSET\n $record = array();\n $record['prop_label'] = no__('_TIMEZONEOFFSET');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '4';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 4, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'tzoffset';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YOURAVATAR\n $record = array();\n $record['prop_label'] = no__('_YOURAVATAR');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '5';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 4, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'avatar';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YICQ\n $record = array();\n $record['prop_label'] = no__('_YICQ');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '6';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'icq';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YAIM\n $record = array();\n $record['prop_label'] = no__('_YAIM');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '7';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'aim';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YYIM\n $record = array();\n $record['prop_label'] = no__('_YYIM');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '8';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'yim';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YMSNM\n $record = array();\n $record['prop_label'] = no__('_YMSNM');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '9';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'msnm';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YLOCATION\n $record = array();\n $record['prop_label'] = no__('_YLOCATION');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '10';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'city';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YOCCUPATION\n $record = array();\n $record['prop_label'] = no__('_YOCCUPATION');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '11';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 0, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'occupation';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _SIGNATURE\n $record = array();\n $record['prop_label'] = no__('_SIGNATURE');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '12';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 1, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'signature';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _EXTRAINFO\n $record = array();\n $record['prop_label'] = no__('_EXTRAINFO');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '13';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 1, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'extrainfo';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // _YINTERESTS\n $record = array();\n $record['prop_label'] = no__('_YINTERESTS');\n $record['prop_dtype'] = '1';\n $record['prop_weight'] = '14';\n $record['prop_validation'] = serialize(array('required' => 0, 'viewby' => 0, 'displaytype' => 1, 'listoptions' => '', 'note' => ''));\n $record['prop_attribute_name'] = 'interests';\n\n DBUtil::insertObject($record, 'user_property', 'prop_id');\n\n // set realname, homepage, timezone offset, location and ocupation\n // to be shown in the registration form by default\n pnModSetVar('Profile', 'dudregshow', array(1, 3, 4, 10, 11));\n}", "title": "" }, { "docid": "0be10e9278f555ae89c5a45910bc1964", "score": "0.5891397", "text": "function bdd_drupal_set_user($userId) {\n global $user;\n $user->uid = $userId;\n return true; \n}", "title": "" }, { "docid": "06b40e322eb3894422c1bbcc5338ece9", "score": "0.58837104", "text": "function IQXSetINIuserclass() {\n global $x_userclass, $x_global, $x_local;\n if(isset($x_userclass) && $x_userclass){\n\t\t$x=strtolower($x_userclass);\n\t\tif(isset($x_local[$x])){$x_local['userclass']=$x_local[$x];}\n\t\tif(isset($x_global[$x])){$x_global['userclass']=$x_global[$x];}\n }\n}", "title": "" }, { "docid": "26d842433645ec39c3dab1d3815786df", "score": "0.58836865", "text": "protected function setDefaultValues()\r\n {\r\n parent::setDefaultValues();\r\n \r\n $this->objectContent = null;\r\n $this->createdAt = date('Y-m-d H:i:s');\r\n $this->createdBy = wcmSession::getInstance()->userId;\r\n $this->comment = null;\r\n $this->versionNumber = 1;\r\n $this->revisionNumber = 1;\r\n }", "title": "" }, { "docid": "0f0992fa77a5c6bb2600c2f11e1120b8", "score": "0.58757657", "text": "protected function _setDefault()\n {\n $this->_default = $this->_model->fetchNew();\n }", "title": "" }, { "docid": "6537d18ef4f8b6aca93f82cf0c946671", "score": "0.5872245", "text": "function inserDefaultProecess(& $user)\n\t\t{\n\t\t\t//cause dictionary already insert to the user\n\t\t\t$this->changeProcess($user,$user->getDictionary()->getDictionaryID());\n\t\t}", "title": "" }, { "docid": "658f755f624d65041d8a208f13ed69aa", "score": "0.58717567", "text": "function default_user_id() {\n\t\tglobal $db, $e107_pre, $default_user;\n\n\t\t$user = $db->from($e107_pre . 'user')->where(array('user_loginname'=>$default_user))->one();\n\n\t\t$user = move_user($user['user_id']);\n\n\t\treturn $user['ID'];\n\t}", "title": "" }, { "docid": "e3aa0083a9d40682cb42995011ccea8e", "score": "0.5865124", "text": "public function applyDefaultValues()\n {\n $this->kontinuitas_listrik = '1';\n $this->partisipasi_bos = '1';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "title": "" }, { "docid": "91399101091d3ba1d9f1febba7dd03c9", "score": "0.5863571", "text": "final private static function setDefaults()\n\t{\n\t\t// if change headers\n\t\tif(App::CHANGE_HEADERS) {\n\t\t\tforeach(App::$headers as $header){\n\t\t\t\theader($header);\n\t\t\t}\n\t\t}\n\n\t\t//replace configs with ini_set();\n\t\tif(App::CHANGE_INI_SET) {\n\t\t\tforeach(App::iniConfig() as $var => $value){\n\t\t\t\tif($value !== '') {\n\t\t\t\t\tini_set((string)$var, (string)$value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach(App::$autoload as $key => $value){\n\t\t\tRegistry::set(new $value, $key);\n\t\t}\n\t\t// insert the others methods of the App here\n\t\t// END App methods\n\t}", "title": "" }, { "docid": "cff036562606ad783e0a428a26747534", "score": "0.5855228", "text": "public function load_defaults() {\n\t\t\trequire_once 'defaults.php';\n\t\t}", "title": "" }, { "docid": "a8109d465f650ff7f79000b1a28b203e", "score": "0.5839366", "text": "public function insertDefaultData()\n {\n $this->_createCompanyType();\n $this->_createPermissions();\n }", "title": "" }, { "docid": "f22b8b876ff189f09715e094ab19eae4", "score": "0.58315563", "text": "protected function setDefaultDataValues()\n {\n\n }", "title": "" }, { "docid": "1e2aeb0db005a12a0c7d59e5cf2c1c68", "score": "0.58254385", "text": "public function setRandomName() {\n $this->user_name = self::$_sUserNamePrefix . hash('crc32b', time() . rand(0, 666) . getmypid());\n }", "title": "" }, { "docid": "51791c124a30ffdc5bd7673274899f46", "score": "0.58252186", "text": "public static function setDefaults($defaults)\n\t\t {\n\t\t\t self::$defaults = $defaults;\n\t\t }", "title": "" }, { "docid": "a99ba1e903474c927569da2d21a8b150", "score": "0.5810931", "text": "function create_user()\n\t{\n\t\tglobal $current_user;\n\t\t$ass_user = $this->column_fields[\"smcreatorid\"];\t\t\n\t\tif( $ass_user != $current_user->id)\n\t\t{\n\t\t\t$result = $this->db->query(\"select id from ec_users where user_name = '\".$ass_user.\"'\");\n\t\t\tif($this->db->num_rows($result) != 1)\n\t\t\t{\n\t\t\t\t$this->column_fields[\"smcreatorid\"] = $current_user->id;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\n\t\t\t\t$row = $this->db->fetchByAssoc($result, -1, false);\n\t\t\t\tif (isset($row['id']) && $row['id'] != -1)\n \t {\n\t\t\t\t\t$this->column_fields[\"smcreatorid\"] = $row['id'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->column_fields[\"smcreatorid\"] = $current_user->id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4223bc6888557cb2fa065fa1528519ff", "score": "0.58102924", "text": "public function setupAction() {\n \n\t $this->theme->setTitle(\"Reset and setup database with default users.\");\n\n/*\n\t $table = [\n\t 'id' => ['integer', 'primary key', 'not null', 'auto_increment'],\n\t 'acronym' => ['varchar(20)', 'unique', 'not null'],\n\t 'email' => ['varchar(80)'],\n\t 'gravatar' => ['varchar(80)'],\n\t 'name' => ['varchar(80)'],\n\t 'password' => ['varchar(255)'],\n\t 'created' => ['datetime'],\n\t 'updated' => ['datetime'],\n\t 'deleted' => ['datetime'],\n\t 'active' => ['datetime'],\n\t ];\n\n\t \t$res = $this->users->setupTable($table);\n*/\n\n\t // Add some users \n\t $now = date(DATE_RFC2822);\n \n\t $this->users->create([\n\t 'acronym' => 'admin',\n\t 'email' => 'admin@dbwebb.se',\n\t 'gravatar' => getGravatar('admin@dbwebb.se', 65),\n\t 'name' => 'Administrator',\n\t 'password' => password_hash('admin', PASSWORD_DEFAULT),\n\t 'created' => $now,\n\t 'active' => $now,\n\t ]);\n\n\t $this->users->create([\n\t 'acronym' => 'doe',\n\t 'email' => 'doe@dbwebb.se',\n\t 'gravatar' => getGravatar('doe@dbwebb.se', 65),\n\t 'name' => 'John/Jane Doe',\n\t 'password' => password_hash('doe', PASSWORD_DEFAULT),\n\t 'created' => $now,\n\t 'active' => $now,\n\t ]);\n\t \n\t $url = $this->url->create('users/list');\n\t $this->response->redirect($url);\n\t}", "title": "" }, { "docid": "0aaa8cbd7d5ad914a20932064f6f0d72", "score": "0.5808179", "text": "private function fill_defaults()\n {\n if ( ! array_key_exists('ID', $this->attributes) ) {\n $this->attributes['ID'] = $this->id;\n }\n }", "title": "" }, { "docid": "86980f3951d2a349eb370a2565908195", "score": "0.58043116", "text": "public function initializeNewAction()\n {\n if ($this->arguments->hasArgument('user')) {\n /** @var \\Derhansen\\FemanagerDmailSubscribe\\Xclass\\Extbase\\Controller\\Argument $user */\n $user = $this->arguments['user'];\n $user->setDataType(\\Derhansen\\FemanagerDmailSubscribe\\Domain\\Model\\User::class);\n }\n }", "title": "" }, { "docid": "516d8d2896cc0a75a5522da7be3bb890", "score": "0.5804065", "text": "public function initDefaults()\n {\n $this->defaults = array(\n 'dir.root' => array(\n 'value' => '/',\n 'label' => 'The root directory in which the proc filesystem root will be created',\n 'required' => true\n ),\n 'dir.services' => array(\n 'value' => '/etc/d3r-proc.d',\n 'label' => 'The directory in which member configs are stored',\n 'required' => true\n ),\n 'tree.refresh' => array(\n 'value' => '1',\n 'label' => 'The refresh interval for tree nodes in seconds',\n 'required' => true\n ),\n );\n }", "title": "" }, { "docid": "63ca986e5d82f66fee3ececc04ab8312", "score": "0.5800826", "text": "function create_skyi_user( $args ) {\n\n $user_id = wp_insert_user( array(\n\n 'ID' => $args[ 'ID' ],\n 'user_login' => $args[ 'user_login' ],\n 'display_name' => $args[ 'display_name' ],\n 'role' => sanitize_key( $args[ 'role' ] ),\n 'user_email' => $args[ 'user_email' ],\n 'user_registered' => $args[ 'user_registered' ]\n \n\n ) );\n \n $hash_value = md5($args[ 'user_email' ]);\n\n update_user_meta($user_id, 'hash', $hash_value);\n if($args[ 'user_pass' ] != \"\")\n {\n wp_set_password( $args[ 'user_pass' ], $user_id );\n }\n if($args[ 'ID' ] != \"\")\n {\n update_user_meta($user_id, 'suspended_user', $args['suspend']);\n }\n return $user_id;\n\n}", "title": "" }, { "docid": "427fa63e7c705c79998b43172a636383", "score": "0.5800748", "text": "function SetInitialValues()\n\t{\n\t\t$this->id = -1;\n\t\t$this->name = '';\n\t\t$this->active = false;\n\t}", "title": "" }, { "docid": "15689cf9bef3a2d48ca6ae5e55dbc990", "score": "0.5800105", "text": "function vye_set_profile_defaults( $profile ) {\r\n\r\n\tif ( $profile == 0 ) {\r\n\t\t$profname = 'Default';\r\n\t} else {\r\n\t\t$profname = 'Profile ' . $profile;\r\n\t}\r\n\t$options = get_option( 'youtube_embed_profile' . $profile );\r\n\r\n\t$changed = false;\r\n\t$new_user = false;\r\n\r\n\t// Work out default dimensions\r\n\r\n\t$width = 0;\r\n\tif ( isset( $content_width ) ) { $width = $content_width; }\r\n\tif ( ( $width == 0 ) or ( $width == '' ) ) { $width = 560; }\r\n\t$height = 25 + round( ( $width / 16 ) * 9, 0 );\r\n\r\n\t// If the old options exist, import them and then delete them\r\n\r\n\tif ( !is_array( $options ) ) {\r\n\t\tif ( ( $profile == 0 ) && ( get_option( 'youtube_embed' ) ) ) {\r\n\t\t\t$old_opts = get_option( 'youtube_embed' );\r\n\t\t\t$options = $old_opts;\r\n\t\t\tdelete_option( 'youtube_embed' );\r\n\t\t\t$changed = true;\r\n\t\t} else {\r\n\t\t\t$options = array();\r\n\t\t}\r\n\t}\r\n\r\n\t// Because of upgrading, check each option - if not set, apply default\r\n\r\n\tif ( !array_key_exists( 'name', $options ) ) { $options[ 'name' ] = $profname; $changed = true; }\r\n\r\n\tif ( !array_key_exists( 'width', $options ) ) {\r\n\t\t$options[ 'width' ] = $width;\r\n\t\t$options[ 'height' ] = $height;\r\n\t\t$changed = true;\r\n\t}\r\n\tif ( !array_key_exists( 'height', $options ) ) { $options[ 'height' ] = 340; $changed = true; }\r\n\tif ( !array_key_exists( 'fullscreen', $options ) ) { $options[ 'fullscreen' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'template', $options ) ) { $options[ 'template' ] = '%video%'; $changed = true; }\r\n\tif ( !array_key_exists( 'autoplay', $options ) ) { $options[ 'autoplay' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'start', $options ) ) { $options[ 'start' ] = 0; $changed = true; }\r\n\tif ( !array_key_exists( 'loop', $options ) ) { $options[ 'loop' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'cc', $options ) ) { $options[ 'cc' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'annotation', $options ) ) { $options[ 'annotation' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'related', $options ) ) { $options[ 'related' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'info', $options ) ) { $options[ 'info' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'link', $options ) ) { $options[ 'link' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'react', $options ) ) { $options[ 'react' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'stop', $options ) ) { $options[ 'stop' ] = 0; $changed = true; }\r\n\tif ( !array_key_exists( 'sweetspot', $options ) ) { $options[ 'sweetspot' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'type', $options ) ) { $options[ 'type' ] = 'v'; $changed = true; }\r\n\tif ( !array_key_exists( 'disablekb', $options ) ) { $options[ 'disablekb' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'autohide', $options ) ) { $options[ 'autohide' ] = 2; $changed = true; }\r\n\tif ( !array_key_exists( 'controls', $options ) ) { $options[ 'controls' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'playlist', $options ) ) { $options[ 'playlist' ] = 'v'; $changed = true; }\r\n\tif ( !array_key_exists( 'fallback', $options ) ) { $options[ 'fallback' ] = 'v'; $changed = true; }\r\n\tif ( !array_key_exists( 'wmode', $options ) ) { $options[ 'wmode' ] = 'window'; $changed = true; }\r\n\tif ( !array_key_exists( 'audio', $options ) ) { $options[ 'audio' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'hd', $options ) ) { $options[ 'hd' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'style', $options ) ) { $options[ 'style' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'color', $options ) ) { $options[ 'color' ] = 'red'; $changed = true; }\r\n\tif ( !array_key_exists( 'theme', $options ) ) { $options[ 'theme' ] = 'dark'; $changed = true; }\r\n\tif ( !array_key_exists( 'https', $options ) ) { $options[ 'https' ] = 0; $changed = true; }\r\n\tif ( !array_key_exists( 'modest', $options ) ) { $options[ 'modest' ] = 1; $changed = true; }\r\n\tif ( !array_key_exists( 'dynamic', $options ) ) { $options[ 'dynamic' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'fixed', $options ) ) { $options[ 'fixed' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'download_style', $options ) ) { $options[ 'download_style' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'link_to_youtube', $options ) ) { $options[ 'link_to_youtube' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'vixy_download', $options ) ) { $options[ 'vixy_download' ] = ''; $changed = true; }\r\n\tif ( !array_key_exists( 'vq', $options ) ) { $options[ 'vq' ] = ''; $changed = true; }\r\n\r\n\t// Update the options, if changed, and return the result\r\n\r\n\tif ( $changed ) { update_option( 'youtube_embed_profile' . $profile, $options ); }\r\n\r\n\t// Remove added slashes from template XHTML\r\n\r\n\t$options[ 'template' ] = stripslashes( $options[ 'template' ] );\r\n\r\n\treturn $options;\r\n}", "title": "" }, { "docid": "83bdf385026f4f19ff5b9190e4ecb885", "score": "0.5794384", "text": "function wp_set_current_user($id, $name = '') {\n\tglobal $current_user;\n\n\tif ( isset( $current_user ) && ( $current_user instanceof WP_User ) && ( $id == $current_user->ID ) )\n\t\treturn $current_user;\n\n\t$current_user = new WP_User( $id, $name );\n\n\tsetup_userdata( $current_user->ID );\n\n\t/**\n\t * Fires after the current user is set.\n\t *\n\t * @since 2.0.1\n\t */\n\tdo_action( 'set_current_user' );\n\n\treturn $current_user;\n}", "title": "" }, { "docid": "d68e8923cf18ab3a683c9fd4c7f173bb", "score": "0.5792235", "text": "public function createDefaultFields()\n {\n $fields = Attendee::config()->get('default_fields');\n \n if (!$this->owner->Fields()->exists()) {\n $sort = 0;\n foreach ($fields as $fieldName => $config) {\n $field = UserField::createDefaultField($fieldName, $config);\n $this->owner->Fields()->add($field, ['Sort' => $sort]);\n $sort++;\n }\n }\n }", "title": "" }, { "docid": "2b02f6313dd3fb5f6a03f558149d5b4a", "score": "0.5789799", "text": "private function __construct(){\n \n $admin = new User();\n $admin->setUsername(\"admin\");\n $admin->setPassword(\"admin123\");\n $admin->setGender(\"male\");\n $admin->setEmail(\"admin@gmail.com\");\n \n $defaultUser = new User();\n $defaultUser->setUsername(\"weeliat\");\n $defaultUser->setPassword(\"abc123\");\n $defaultUser->setGender(\"male\");\n $defaultUser->setEmail(\"weeliat@gmail.com\");\n \n array_push(UserDatabase::$storeUsers, $admin, $defaultUser);\n \n //echo \"Constructor invoked. \";\n }", "title": "" }, { "docid": "0d67c2d8a235ff52f45568923e355032", "score": "0.5782239", "text": "function User() {\r\n global $baseDirName, $leagueID;\r\n\r\n $this->userid = \"\";\r\n $this->username = \"\";\r\n $this->pwd = \"\";\r\n $this->emailaddr = \"\";\r\n $this->icon = \"\";\r\n $this->usertype = \"0\";\r\n $this->createdate = \"\";\r\n $this->lang = \"english\";\r\n $this->loggedIn = FALSE;\r\n $this->dflths = 0;\r\n $this->dfltas = 0;\r\n $this->auto = \"N\";\r\n $this->lastip = \"\";\r\n $this->lastport = \"\";\r\n $this->lastlogin = \"\";\r\n $this->allowemail = \"N\";\r\n $this->showstandings = \"N\";\r\n\r\n // Used to make sure the user is in the correct league\r\n $this->lid = $leagueID;\r\n $this->basedir = $baseDirName;\r\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75662816", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.74913496", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.74565935", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7455567", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "4c4b7c47a2d71e26b29b9caea091a07c", "score": "0.7393122", "text": "public function showCreateForm()\n {\n $this->authorize('create', Project::class);\n\n return view('project.create', [\n 'action' => 'create',\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.7339743", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "4734584f2f8340a42973a0d555da6c67", "score": "0.7328809", "text": "public function create()\n {\n return view(\"superadmin.form\");\n }", "title": "" }, { "docid": "10d532d72b585493a6ca515a12bc3a2c", "score": "0.7321175", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/IAS/create');\n\n\t}", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809404", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.7257689", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.7237905", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.7231824", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72227985", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.722032", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.7220199", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "7e6cbda13a4d6999c8e363f25258eeb1", "score": "0.7208471", "text": "public function showCreateForm()\n {\n return view('user.create');\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.71913517", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.7189425", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.71826184", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7166688", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "ca8a62edbc9efc96246dc89065570720", "score": "0.7163817", "text": "public function newAction()\n {\n $this->loggerStdout->log('UsersController: display the creation form');\n\n\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71529603", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.71369594", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.712032", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7115823", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7115823", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7115823", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.7096252", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.70802104", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "856274cb86788ad9604003f12dd5060c", "score": "0.7073697", "text": "public function create()\n {\n return view('carusel.new');\n }", "title": "" }, { "docid": "7545e6950b9a4b4ee7a1ca28789b55aa", "score": "0.7072629", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t\t$this->view->render('signin', 'create');\n\t}", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.7061682", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.7060798", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.7057187", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70570934", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.70474744", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.70423496", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7040178", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.7026083", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "40e93c68e66b0c86108e5ae59cc176d2", "score": "0.702152", "text": "public function newAction()\n {\n $this->view->setVar('form', new ClientForm(null, ['edit' => false]));\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.701217", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.7011477", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046854", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.70001864", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.69946265", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "753f9bd767a3748b9d6409cb957dc41f", "score": "0.6994306", "text": "public function createAction()\n {\n $action = $this->view->url(['action' => 'save'], 'controllers');\n $this->view->projectForm = $this->service->getFormForCreating($action);\n }", "title": "" }, { "docid": "7fdab24f12d98bab46a40db3c2f06831", "score": "0.6988555", "text": "public function create()\n\t{\n\t\treturn View::make('back_setup/ProductForm');\n\t}", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69878757", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6985692", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6977671", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.69759977", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969843", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.6963528", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69620585", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "57611366e6e3194f52047893b6a260ec", "score": "0.69587255", "text": "public function create()\n {\n \tAppGranted::grantedAccess('add', true);\n $data['module_title'] = \"Role\";\n $data['action'] = route('kantor.store');\n $data['action_type'] = \"add\";\n\n $data['breadcrumb'] = [ \n ['title' => 'Master Data','url' => '#'],\n ['title' => 'Kantor','url' => 'kantor'],\n ['title' => 'form','url' => 'form']\n ];\n\n $data['redirect'] = route(\"kantor.create\");\n \n return view('kantor::kantor_form',$data);\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958037", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.69577485", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "f0a4e435f6bebfce6162cc1be7c7ee0f", "score": "0.6954755", "text": "public function create()\n {\n return view('conceptos.create');\n }", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69541824", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.69524854", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "7b8c9d5cbe582eab2f28c216421a2719", "score": "0.69511974", "text": "public function create()\n {\n return view('proyek.add');\n }", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69450647", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "353155b973a25b62f33cce0b6600b99c", "score": "0.69349855", "text": "public function create()\n {\n $data = array(\n 'title' => 'Ingreso de un nuevo Sector',\n 'message' => 'return confirm(\"¿Esta seguro que desea guardar el sector?\")',\n 'method' => 'POST',\n );\n return view('sector.form')\n ->with('data', $data);\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.6930928", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69272864", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.69257206", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.6921858", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.6921811", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "a59dfad08f7be5f4bb5d898d16a6d3a3", "score": "0.69192725", "text": "public function newAction()\n {\n $entity = new Rector();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ColegioAdminBundle:Rector:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "4bf33424414f342096092b367153c3ff", "score": "0.6918472", "text": "public function create()\n {\n return view('webinars.create');\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.6918457", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.69143", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.69142425", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69091994", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.6906941", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69047433", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.6900749", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6897185", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.68955874", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.689034", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6888821", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.6888053", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6880438", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.6879029", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6878245", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.6877417", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "47e62b5d5e96751bc9e8ab90f94e7ea4", "score": "0.6876428", "text": "public function create()\n {\n return view('manager.new');\n }", "title": "" }, { "docid": "3557ca31989d52aabfc94b29a8b4779e", "score": "0.6874621", "text": "public function create()\n {\n return view('hari.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.687322", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68696517", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.686562", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.6862169", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" }, { "docid": "f4672fc37d04d0e3bef9bc80e57323e9", "score": "0.6860253", "text": "public function create()\n {\n //\n $question= new Question();\n return view('dashboard.question.form', [\n \"question\" => $question\n ]);\n }", "title": "" }, { "docid": "451c07a3106f3c6e3d62757717bfa763", "score": "0.6860207", "text": "public function create()\n\t{\n\t\treturn view('horas.create');\n\t}", "title": "" }, { "docid": "95a4952039c4b40b058cc67fba7cd2d7", "score": "0.6857338", "text": "public function create () {\n $course = new Course();\n $btnText = __(\"Enviar curso para revisión\");\n\n return view('courses.form', compact('course', 'btnText'));\n }", "title": "" }, { "docid": "ca80651480f4bbbd35305ceefd136182", "score": "0.685332", "text": "public function newAction()\n {\n $entity = new Alumni();\n $form = $this->createForm(new AlumniType(), $entity);\n\n return $this->renderTwig('Master/Alumni:form', array(\n 'entity' => $entity,\n 'edit_form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "d58534453dca5d05eb6bf9759a643eaa", "score": "0.68512136", "text": "public function create()\n\t{\n\t\treturn View::make('create');\n\t}", "title": "" }, { "docid": "783d7ee63b2e492087fc641fa43b1ef1", "score": "0.68482566", "text": "public function create()\n\t{\n\t\treturn View::make('fornecedors.create');\n\t}", "title": "" }, { "docid": "2d13aa784138fe895746ebaa36bda96f", "score": "0.68472326", "text": "public function create()\n {\n return view('hr.create');\n }", "title": "" }, { "docid": "1406c82292b4f07e3eecfee633a3f557", "score": "0.6843704", "text": "public function create()\n {\n return view('admin.company.form', [\n 'company' => null,\n 'route' => 'admin.company.store',\n 'method' => 'POST'\n ]);\n }", "title": "" }, { "docid": "b1d677deef4bb08323db61d502e8dcee", "score": "0.6843076", "text": "public function create()\n {\n return view('backend.book.create');\n }", "title": "" } ]
ef0c9ebfb00372255a01456db63a0b06
/ find the next article id for article info
[ { "docid": "2232a07deec5246a441b79839fb57a68", "score": "0.66595125", "text": "public function getNextId($id)\n {\n $next = Article::where('status', '1')->where('id' , '>' , $id)->min('id');\n return $next;\n }", "title": "" } ]
[ { "docid": "12fdedddbe5d922c063abc01612c6f2b", "score": "0.7147364", "text": "public function nextRecord()\n {\n return Article::visible()\n ->where('id', '>', $this->id)\n ->orderBy('id')\n ->first();\n }", "title": "" }, { "docid": "9bc1d2b85cdc13fbc110aa710b8bda03", "score": "0.66364616", "text": "public function next(): int\n {\n return $this->id();\n }", "title": "" }, { "docid": "6db4902e57eadec88514e88acf00edea", "score": "0.65925485", "text": "function getNextGalleySequence($articleId) {\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT MAX(seq) + 1 FROM article_galleys WHERE article_id = ?',\n\t\t\t(int) $articleId\n\t\t);\n\t\t$returner = floor($result->fields[0]);\n\n\t\t$result->Close();\n\t\tunset($result);\n\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "522b8c95e8fc241bfc0ec3e57dc947fd", "score": "0.6575431", "text": "public function lastIDWithIncreament()\n {\n return Article::orderBy('articles_id', 'desc')->value('articles_id') + 1;\n }", "title": "" }, { "docid": "c3c4e29a1a58e45d78446e7198d91469", "score": "0.6481894", "text": "function getNextArticleOfCategory($idArticle, $idCategory){\r\n\t\t\t\t\t\t\t\r\n\t\t$trovatoCurrent = false;\r\n\t\t$trovatoNext = false;\t\t\r\n\t\t$returnNext = null;\r\n\t\t$cont = 0;\r\n\t\twhile(! $trovatoNext):\r\n\t\t\t$cont++;\r\n\t\t\r\n\t\t\t$arrayQueryPost = array();\t\t\t\t\t\t\r\n\t\t\t$arrayQueryPost['paged'] = $cont;\t\t\r\n\t\t\t$arrayQueryPost['post_status'] = 'publish';\t\t\t\t\t\r\n\t\t\tif($idCategory != null && $idCategory != \"\" && $idCategory != 1){\r\n\t\t\t\t$arrayQueryPost['cat'] = $idCategory;\t\t\t\t\r\n\t\t\t}\t\t\r\n\t\t\tquery_posts($arrayQueryPost);\t\t\t\r\n\t\t\t\r\n\t\t\t$contArticle = 0;\r\n\t\t\twhile (have_posts()){\r\n\t\t\t\tthe_post();\r\n\t\t\t\tif (has_post_thumbnail()){\r\n\t\t\t\t\t$contArticle++;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif($trovatoCurrent){\r\n\t\t\t\t\t\t$returnNext = get_the_ID();\t\t\t\t\t\r\n\t\t\t\t\t\t$trovatoNext = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(get_the_ID() == $idArticle){\t\t\t\t\t\t\r\n\t\t\t\t\t\t$trovatoCurrent = true;\t\t\t\t\t\r\n\t\t\t\t\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\t\r\n\t\t\t//si ferma quando la query restituisce 0 articoli\r\n\t\t\tif($contArticle == 0){\r\n\t\t\t\t$trovatoNext = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twp_reset_query();\r\n\t\tendwhile;\r\n\t\t\r\n\t\treturn $returnNext;\r\n\t}", "title": "" }, { "docid": "898c8f2ad780bd74f81c2d986e8110ed", "score": "0.6434934", "text": "public function get_next_object() {\n\n $id = Dba::escape($this->id);\n\n $sql = \"SELECT `object_id` FROM `tmp_playlist_data` \" .\n \"WHERE `tmp_playlist`='$id' ORDER BY `id` LIMIT 1\";\n $db_results = Dba::read($sql);\n\n $results = Dba::fetch_assoc($db_results);\n\n return $results['object_id'];\n\n }", "title": "" }, { "docid": "0cd5b017e40dd988d9b733bd5337febd", "score": "0.63528365", "text": "function next_page_ID($id) {\n $post = get_post($id);\n $post_parent = $post->post_parent;\n $get_pages_query = 'child_of=' . $post_parent . '&parent=' . $post_parent . '&sort_column=menu_order&sort_order=asc';\n\t$get_pages = get_pages($get_pages_query);\n\t$next_page_id = '';\n // Count results\n\t$page_count = count($get_pages);\n\n\tfor ($p=0; $p < $page_count; $p++) {\n\t \t// Get the array key for our entry\n\t\tif ($id == $get_pages[$p]->ID) break;\n\t}\n\n\t// Assign our next key\n\t$next_key = $p+1;\n\n\t// If there isn't a value assigned for the previous key, go all the way to the end\n\tif (isset($get_pages[$next_key])) {\n\t\t$next_page_id = $get_pages[$next_key]->ID;\n\t}\n\treturn $next_page_id;\n}", "title": "" }, { "docid": "e025ad50ee86ed0fbcb2b61d936bcc33", "score": "0.6278275", "text": "protected function getNextIdExemplaire()\n {\n\t\treturn $this->idExemplaire++;\n\t}", "title": "" }, { "docid": "70a40a8303a80c0d23a8df6ddf6e6719", "score": "0.62268335", "text": "function getNextId($table){\n $result = false;\n $info = $this->_getTableInfo($table);\n if (isset($info['nextid'])) {\n $result = $info['nextid'];\n }\n return $result;\n }", "title": "" }, { "docid": "7339449a2eac0609be78b49714752f0b", "score": "0.62115484", "text": "function get_next_id( $tablename = \"\", $fieldname = \"\", $filter = \"\" ) {\n $result = \"\";\n if ( $filter != \"\" )\n $filter = \" where $filter\"; //we may need to filter our tables\n $sql = \"select max($fieldname)+1 as \\\"NEXTID\\\" from $tablename $filter\";\n $sql = $this->parsesql( $sql );\n $row = $this->get_value( 0, $sql );\n $row = $this->RAWRESULT[0];\n if ( $row->NEXTID == \"\" ) {\n $row->NEXTID = 0;\n }\n //echo \"<pre>\".print_r ($this->RAWRESULT, 1).\" {$sql} - \".print_r ($this->fieldinfo, 1). \"\\n</pre>\";\n $result = $row->NEXTID;\n return $result;\n }", "title": "" }, { "docid": "d0d0d5225aee751f8b94c834cfcf85fc", "score": "0.6124672", "text": "function getNextPost($id) {\n ### Resolve root_id of $id:\n $query = \"SELECT root_id FROM webboard WHERE topic_id = $id\";\n $result = mysql_query($query);\n $root_id = mysql_result($result, 0);\n \n ### Resolve next message:\n $query = \"SELECT topic_id FROM webboard WHERE root_id = $root_id AND topic_id > $id ORDER BY create_dt\";\n $result = mysql_query($query);\n if (mysql_num_rows($result)) return mysql_result($result, 0);\n else return 0;\n}", "title": "" }, { "docid": "cece5bba1bdc0553921cf9fa52be0f23", "score": "0.6111126", "text": "static function getNextID()\n {\n return self::$idCounter++;\n }", "title": "" }, { "docid": "e6eef0a17221098f31783f57b9b91685", "score": "0.6109609", "text": "public function fetchNewEntityId()\n {\n $select = $this->getConnection()->select()\n ->from($this->getEntityTable(), [$this->getEntityIdField()])\n ->order($this->getEntityIdField() . ' DESC')->limitPage(1, 1);\n\n $lastEntity = (int)$this->getConnection()->fetchOne($select);\n\n return $lastEntity + 1;\n }", "title": "" }, { "docid": "f61f9df758bd073b253a4afc38c8e916", "score": "0.6040904", "text": "function nextId($table) {\r\n\t$ID =& new Q(\"SELECT id FROM $table ORDER BY id DESC LIMIT 1\");\r\n\treturn (intval($ID->V[0]['id']) + 1);\r\n}", "title": "" }, { "docid": "fcfc069d6c73a435acebf97abff28392", "score": "0.60017604", "text": "function return_next_id( $field_name, $table_name, $max_row=1 ) // Checked 3\n{\n // To generate next Id \n // Return value: number\n // Uses single field:: return_next_id(\"id\", \"lib_buyer\", \"1\");\n //$nameArray=array();\n\n $increment=1;\n $queryText=\"select max(\".$field_name.\") as \".$field_name.\" from \".$table_name.\" \" ;\n //$nameArray=sql_select( $queryText,'', $new_conn );\n $nameArray=mysql_query($queryText);\n while($data = mysql_fetch_array($nameArray))\n { \n return ($data[0]+$increment);\n }\n //return ($result[$field_name]+$increment); \n \n}", "title": "" }, { "docid": "1620e84b30eb58c275e9946a51244d94", "score": "0.59194094", "text": "public function next_url_id()\r\n\t{\r\n\t\treturn DB::select(array('IFNULL(MAX(\"domain_url_id\"), 0) + 1', 'domain_url_id'))\r\n\t\t\t->from('urls')\r\n\t\t\t->where('domain_id', '=', $this->id)\r\n\t\t\t->execute($this->_db)\r\n\t\t\t->get('domain_url_id');\r\n\t}", "title": "" }, { "docid": "be698bedc94a57eec69ace9758aeb163", "score": "0.58918107", "text": "public function nextUserId()\r\n {\r\n $nextId = $this->model->select('id')->orderBy('id', 'DESC')->first()->toArray();\r\n $nextId = $nextId['id'] + 1;\r\n return $nextId;\r\n }", "title": "" }, { "docid": "f17125e814b54c1d549e2e006522925d", "score": "0.5883952", "text": "public function getNextMatchId()\n\t{\n\t\tif(!isset($this->nextMatchId) || $this->nextMatchId === null)\n\t\t{\n\t\t\t$this->nextMatchId = $this->getXml()->getElementsByTagName('NextMatchId')->item(0)->nodeValue;\n\t\t}\n\t\treturn $this->nextMatchId;\n\t}", "title": "" }, { "docid": "94ffa62513f1aa3a699a7161fa45f4f9", "score": "0.5861765", "text": "protected function getNextLucrareID() {\n $id = 0;\n foreach($this->data['Date']['Lucrari'] as $lucrare) {\n if($lucrare['id']>$id) {\n $id = $lucrare['id'];\n }\n }\n return $id+1;\n }", "title": "" }, { "docid": "52d80ed9077484ae20d2f9cc5c80eef8", "score": "0.58442587", "text": "function next() {\n\t\t$this->key = dba_nextkey($this->db);\n\t\t$this->fetch_data();\n\t}", "title": "" }, { "docid": "facd4c589b7657aaafb829946562e37e", "score": "0.58346814", "text": "protected function getNextIdRevueNotice()\n {\n\t\treturn $this->idRevueNotice++;\n\t}", "title": "" }, { "docid": "d789c118688513fa1b9f20af905eaa32", "score": "0.5830272", "text": "function getNextPageNumber() : ?int ;", "title": "" }, { "docid": "a7f531118a97484466f93ecc6926ddfe", "score": "0.58058625", "text": "public function next(){\n return $this->current_page + 1;\n }", "title": "" }, { "docid": "5ab3e3837608793720d5f088da3ccbc0", "score": "0.58032006", "text": "public function nextId($table, $id);", "title": "" }, { "docid": "ede19d4fcd5b6e43b87113c2fec13e95", "score": "0.57775056", "text": "function getNextImage(image $img) {\n\t\t\t$id = $img->getId();\n\t\t\tif ($id < $this->size()) {\n\t\t\t\t$img = $this->getImage($id+1);\n\t\t\t}\n\t\t\treturn $img;\n\t\t}", "title": "" }, { "docid": "ede19d4fcd5b6e43b87113c2fec13e95", "score": "0.57775056", "text": "function getNextImage(image $img) {\n\t\t\t$id = $img->getId();\n\t\t\tif ($id < $this->size()) {\n\t\t\t\t$img = $this->getImage($id+1);\n\t\t\t}\n\t\t\treturn $img;\n\t\t}", "title": "" }, { "docid": "1806aa4a1ebbfcc5ef62ee37329e24c4", "score": "0.5764988", "text": "public function getNextById(AoAuction $auction)\n {\n return $this->getNextByIdQuery($auction)->getOneOrNullResult();\n }", "title": "" }, { "docid": "717635111529e93a14659541abb1d8df", "score": "0.5751768", "text": "public function nextId(): int\n {\n $newId = $this->getNextId();\n\n $lastId = $newId - 1;\n\n $ids = DB::collection('ids');\n\n $collection = $this->getTable();\n\n if (! $lastId) {\n $ids->insert([\n 'collection' => $collection,\n 'id' => $newId,\n ]);\n } else {\n $ids->where('collection', $collection)->update([\n 'id' => $newId\n ]);\n }\n \n return $newId;\n }", "title": "" }, { "docid": "28c227fde9863b6c6d16889598b8aa61", "score": "0.5746728", "text": "function getNextOrdenTema($IDcurso) {\n\tglobal $db;\n\n\t$orden = $db->querySingle('SELECT MAX(orden)+1 FROM temas WHERE IDcurso = '.decrypt($IDcurso));\n\tif (!$orden) {\n\t\t$orden = 1;\n\t}\n\treturn $orden;\n}", "title": "" }, { "docid": "af88a75445534722620192ae0220d9db", "score": "0.5746119", "text": "public function getNextOf($post);", "title": "" }, { "docid": "c2c7192f34181f42e059500449e03c80", "score": "0.5735514", "text": "function returnNewSerial($link){\n $serialsql = \"SELECT ID FROM media ORDER BY ID DESC limit 1\";\n $serialraw = mysqli_query($link, $serialsql );\n if (mysqli_num_rows($serialraw) > 0) {\n $row = mysqli_fetch_assoc($serialraw);\n $serial = $row[\"ID\"] + 1;\n } else {\n $serial = 1;\n }\n return $serial;\n}", "title": "" }, { "docid": "2246e5aff54905ef45d40b883e47117b", "score": "0.57289046", "text": "function fth_get_next_article_html($post)\n{\n ob_start(); ?>\n\n <div class=\"latest-posts-infinite clear clearfix\">\n <div id=\"main\" class=\"main latest-posts-infinite__main\">\n <?php\n\n // setting this so ads can see this as an article, not misc\n global $wp_query;\n $wp_query->is_single = true;\n\n setup_postdata($post);\n\n $share_url = (get_field('full_url', $post->ID) ? get_field('full_url', $post->ID) : get_permalink($post->ID));\n $data_categories = array_map(function ($catId) {\n $cat = get_category($catId);\n return ($cat) ? $cat->name : $catId;\n }, wp_get_post_categories($post->ID));\n\n set_query_var('data_categories', $data_categories);\n set_query_var('readmore', $readmore);\n set_query_var('add_classes', 'next-article');\n set_query_var('share_url', $share_url);\n set_query_var('rail_template', 'rail');\n set_query_var('first_article', false);\n\n get_template_part('parts/article', 'body'); ?>\n\n <img class=\"loading-gif\" src=\"<?php echo fth_get_protocol_relative_template_directory_uri() ?>/images/preloader.gif\">\n </div>\n </div>\n\n <?php\n $data = ob_get_clean();\n\n return $data;\n}", "title": "" }, { "docid": "10d396c80c30b3ce61d127ab5ff99db1", "score": "0.57280844", "text": "protected abstract function getNextItem();", "title": "" }, { "docid": "18f021d03b9ab5056aa9aa7fcd7ac095", "score": "0.57246065", "text": "public function get_next_map_id() {\n global $wpdb;\n\n $sql = \"SELECT MAX(`map_id`) as max_id FROM `{$wpdb->prefix}dokan_product_map`\";\n $current_id = $wpdb->get_var( $sql );\n\n if ( ! $current_id ) {\n return 1;\n }\n\n return $current_id + 1;\n }", "title": "" }, { "docid": "df2e64cee8d82870c6ce5e055e2e1b43", "score": "0.5722707", "text": "public function getArticle_Id()\n {\n return $this->Article_Id;\n }", "title": "" }, { "docid": "addf5ee865265d9c0a4cb021dcf4820f", "score": "0.5713499", "text": "public function getIdArticle()\n\t{\n\t\treturn $this->_idArticle;\n\t}", "title": "" }, { "docid": "5fa9e34707f04f9a59321efc34fc97a8", "score": "0.56804144", "text": "function getNextNewsPageURL() {\n\tglobal $_zp_zenpage;\n\t$page = $_zp_zenpage->getCurrentNewsPage();\n\t$total_pages = ceil($_zp_zenpage->getTotalArticles() / ZP_ARTICLES_PER_PAGE);\n\tif ($page != $total_pages) {\n\t\treturn getNewsBaseURL().getNewsCategoryPathNav().getNewsArchivePathNav().getNewsPagePath().($page + 1);\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "be34ba8c9b4018bca9f3a7349d8804b0", "score": "0.56778175", "text": "public static function delivery_id_next()\n {\n self::get_delivery_info_next();\n return self::$delivery_id_next;\n }", "title": "" }, { "docid": "49e3088339ef3f78439994b053016743", "score": "0.5664348", "text": "public function sel_next_id()\n\t{\n\t\t$query_str = \"select nextval(pg_catalog.pg_get_serial_sequence('m_client', 'client_id'))\";\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$seq = $query->execute($this->db, true);\n\t\t\n\t\treturn $seq[0]->nextval;\n\t}", "title": "" }, { "docid": "4f8fd690fd6a3a8cb22e32d3cba9a021", "score": "0.56528455", "text": "public function next() {\n\n\t\treturn $this->current_page + 1; \n\n\t}", "title": "" }, { "docid": "7aa512d1281baa61da5efc0c0fa09933", "score": "0.5650072", "text": "public function getNextItem()\n {\n $objNextItem = null;\n $intCurrentItem = $this->get(FestDB::COL_CURRENT_ITEM);\n $aryItems = $this->getItems();\n if(count($aryItems))\n {\n if($intCurrentItem)\n {\n $objCurrent = reset($aryItems);\n while($objNextItem === null)\n {\n if($intCurrentItem == $objCurrent->getId())\n {\n $objNextItem = next($aryItems);\n break;\n }\n else\n {\n $objCurrent = next($aryItems);\n }\n }\n if(end($aryItems) == $intCurrentItem)\n {\n $objNextItem = null;\n }\n }\n }\n\n return $objNextItem;\n }", "title": "" }, { "docid": "c2ed400b49bf147ab331ea9543c43f1d", "score": "0.5645845", "text": "public function next(){\n\t\t$this->row = $this->result->fetch();\n\t\t$this->pointer++;\n\t}", "title": "" }, { "docid": "e9cf641470ea6ccf96825c352d4b80ea", "score": "0.5641025", "text": "function GetNext()\r\n{\r\n\t$record = $this->finddb->GetRecord();\r\n\treturn $this->LoadFromRecord($record);\r\n}", "title": "" }, { "docid": "0a19bf7d08b8e45421f71f0687d03f7a", "score": "0.5637629", "text": "function getNextOrderId($con,$id){\n\t\t$sql = \"\n\t\tSELECT master_order_id FROM `order` O\n\t\tWHERE O.master_order_id > '\" . $id . \"'\n\t\tAND status = 'approved'\n\t\tAND invalid = 0\n\t\tORDER BY O.master_order_id ASC\n\t\tLIMIT 0,1\n\t\t\";\n\n\t\t$result = mysqli_query($con,$sql);\n\t\t$row = mysqli_fetch_array($result);\n\t\t\n\t\treturn $row['master_order_id'];\n\n}", "title": "" }, { "docid": "cb25c596f2fbf239ce429cc5b8c86665", "score": "0.5634901", "text": "function getNext( $trace = true )\n {\n \t// clear the current record\n \tunset($this->id);\n \t\n \t// get the next record\n\t\t$row = mysql_fetch_array( $this->queryResult ); \n\t\tif ( $row )\n\t\t{\n\t\t\t$this->setAll( $row, $trace );\t\t\n\t\t}\n }", "title": "" }, { "docid": "a5b44a95ca0d6f3c9d7fab8eb829f7ee", "score": "0.5634631", "text": "private function get_parent_article($article_id = false) \n\t{\n\t\t$parent_id = 0;\n\t\t$query = $this->db->select('predecessor_id')\n\t\t\t\t\t\t\t ->where('article_id',$article_id)\n\t\t\t\t\t\t\t ->get('storylines_article_predecessors');\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\t$row = $query-row();\n\t\t\t$parent_id = $row->predecessor_id;\n\t\t}\n\t\t$query->free_result();\n\t\treturn $parent_id;\n\t}", "title": "" }, { "docid": "f2fe4ea65e63b05cea12a2c13a8ef033", "score": "0.5628994", "text": "function printNextNewsLink($next=\" &raquo;\",$sortorder='date',$sortdirection='desc') {\n\t$article_url = getNextPrevNews(\"next\",$sortorder,$sortdirection);\n\tif(array_key_exists('link', $article_url) && $article_url['link'] != \"\") {\n\t\techo \"<a href=\\\"\".html_encode($article_url['link']).\"\\\" title=\\\"\".html_encode(strip_tags($article_url['title'])).\"\\\">\".$article_url['title'].\"</a> \".$next;\n\t}\n}", "title": "" }, { "docid": "ce4b6edd2613be1d150925267c2b67e9", "score": "0.5624521", "text": "public function getNextId($table) {\n\t\t$query_string = \"SELECT sb_get_next_id('$table') AS next_id;\\n\";\n\t\t$result = $this->executeQuery(new MySQLQuery($query_string))->fetchAssoc();\n\t\treturn (integer) $result['next_id'];\n\t}", "title": "" }, { "docid": "814e45fb0afb2e5bfb381182d675c852", "score": "0.5605326", "text": "public function nextCommentId()\n {\n $stored_comments = array_filter($this->comments, function ($x)\n {\n return $x->isPreview() === false;\n });\n \n return count($stored_comments) + 1;\n }", "title": "" }, { "docid": "d118eeb5a6742065cf96530949a5f59b", "score": "0.5604877", "text": "public function nexts() {\n\t\tif ($this->get_id() != '') {\n\t\t\t$where_query = $this->arr_search_where();\n\t\t\t$where_query['_id'] = array('$gt' => new MongoId($this->get_id()));\n\t\t\tif($this->name == 'Salesorders' && !$this->check_permission('salesorders_@_view_worktraq_@_view')){\n\t \t$where_query['code'] = array('$not' => new MongoRegex('/WT-/'));\n\t }\n\t\t\t$arr_nexts = $this->opm->select_one($where_query, array('_id'), array('_id' => 1));\n\t\t}\n\t\tif (isset($arr_nexts['_id']))\n\t\t\t$nexts = $arr_nexts['_id'];\n\t\telse\n\t\t\t$nexts = '';\n\t\t$this->redirect('/' . $this->params->params['controller'] . '/entry/' . $nexts);\n\t\tdie;\n\t}", "title": "" }, { "docid": "274bba6b1c865fd052cb57d6daa8d5d8", "score": "0.56023353", "text": "public function next_entry()\r\n\t{\r\n\t\treturn $this->next_prev_entry('next');\r\n\t}", "title": "" }, { "docid": "0053723e83fa44ab7215a712eb7ef90c", "score": "0.55892277", "text": "function article($id)\n\t{\n\t$sql = \"SELECT * FROM news WHERE published='1' AND id='$id' LIMIT 1\";\n\t$query = $this->db->query($sql);\n\t\tif ($query->num_rows == 0) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\t$this->db->query(\"UPDATE news SET hits=hits+1 WHERE id='$id'\");\n\t\t\t$row = $query->fetch_assoc();\n\t\t\treturn $row;\n\t\t}\n\t}", "title": "" }, { "docid": "fe97343fee88ffd6039e15e0fc726b88", "score": "0.5570468", "text": "protected function nextId()\n\t{\n\t\treturn count($this->operations);\n\t}", "title": "" }, { "docid": "26f6a953e53029e32affe12aede0934e", "score": "0.556116", "text": "function getArticleId() {\n\t\tif (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');\n\t\treturn $this->getSubmissionId();\n\t}", "title": "" }, { "docid": "3a9ecb48f8651617dd261f9cc3f04ae8", "score": "0.5552529", "text": "public function next()\n {\n $object = parent::next();\n\n if ( $object !== null )\n {\n $identity = null;\n\n if ( !$this->options->refetch )\n {\n $class = get_class( $object );\n $state = $object->getState();\n\n $identity = $this->idMap->getIdentity(\n $class,\n $state[$this->def->idProperty->propertyName]\n );\n }\n\n if ( $identity !== null )\n {\n $this->object = $identity;\n }\n else\n {\n $this->idMap->setIdentity( $object );\n }\n }\n\n return $this->object;\n }", "title": "" }, { "docid": "9000af5156dd2d4a9beda9628dbebb89", "score": "0.55491096", "text": "public function next(){\n // get next user\n return $this->where('id', '>', $this->id)->orderBy('id','asc')->first();\n\n }", "title": "" }, { "docid": "97e6f448e89cbd6d1b263ec8603509be", "score": "0.55435514", "text": "public function nextPage() : ?int;", "title": "" }, { "docid": "1f16f010334d01b5501c4361e63ef9c1", "score": "0.5540828", "text": "public function next()\n {\n return $this->post->getNextOf($this->entity);\n }", "title": "" }, { "docid": "2c4efab0ae9b4d9184e217b590674dd2", "score": "0.5540178", "text": "public function getNext();", "title": "" }, { "docid": "2c4efab0ae9b4d9184e217b590674dd2", "score": "0.5540178", "text": "public function getNext();", "title": "" }, { "docid": "cc2ab4913af1956db2664ffe7ba2bd1d", "score": "0.5538538", "text": "function gallerykomentar_createid($tbl_gallerykomentar){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_gallerykomentar ORDER BY id DESC\");\n\t\t$data = mysql_fetch_object($sql);\n\t\t$id = $data->id + 1;\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "32060f4c8152e23ef49f775027ec8a08", "score": "0.5536768", "text": "function get_next_post_url() {\r\n\t\t$nextPost=get_next_post(); \r\n\t\t$nextPostId=$nextPost->ID;\r\n\t\tif($post->ID!=$nextPostId){\r\n\t\t\t$nextPostUrl = get_permalink($nextPostId); \r\n\t\t\treturn $nextPostUrl;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "febc03af90f16a46ec31d9da93d73c33", "score": "0.5532885", "text": "public function next()\n\t{\n\t\tif($this->current = $this->query->getQuery()->fetch(\\PDO::FETCH_ASSOC, $this->key() + 1)) {\n\t\t\t$this->valid = true;\n\t\t\t$this->key++;\n\t\t} else {\n\t\t\t$this->valid = false;\n\t\t}\n\t}", "title": "" }, { "docid": "92631f565e588b762fe51288fd1f21b7", "score": "0.5532514", "text": "function get_next_placeholder($tour_id, $stay) {\n\t\t$this->db->from('roommate');\n\t\t$this->db->select('(person_id -1) as person_id');\n\t\t$this->db->where('tour_id', $tour_id);\n\t\t$this->db->where('stay', $stay);\n\t\t$this->db->where('person_id < ', 1);\n\t\t$this->db->order_by('person_id', 'asc');\n\t\t$this->db->limit(1);\n\t\t$result = $this->db->get()->row();\n\t\tif (!$result) {\n\t\t\t$output = -1;\n\t\t}\n\t\telse {\n\t\t\t$output = $result->person_id;\n\t\t}\n\t\treturn $output;\n\n\t}", "title": "" }, { "docid": "ce0b72fe51fa616a6f84b87fda17306b", "score": "0.55218583", "text": "function peg_getNextAutoID($tname) {\n /*\n * Return the next id to be used on auto_increment in table $tname\n */\n\n $status = getRow('show table status like \\''.$tname.'\\'');\n if (is_array($status)) {\n $ret = $status['Auto_increment'];\n } else {\n $ret = False;\n }\n\n return $ret;\n}", "title": "" }, { "docid": "0e0850c583f985f9efb631d680281d45", "score": "0.5520664", "text": "protected function next_insert_id() {\n $sql = \"SELECT id FROM \" . static::TABLE_NAME . \" ORDER BY id DESC LIMIT 1\";\n $last_id = static::db()->query($sql)[0][\"id\"];\n return $last_id + 1;\n }", "title": "" }, { "docid": "eee0b7b2689f7f75e5d2ce7b513bab27", "score": "0.551304", "text": "public function nextIndex();", "title": "" }, { "docid": "4edc444eee31172a788ead4daefc9d1e", "score": "0.5501734", "text": "public function next_id($table){\n $tab = $this->modelize($table);\n if ( count($tab['keys']['PRIMARY']['columns']) !== 1 ){\n die(\"Error! Unique numeric primary key doesn't exist\");\n }\n if ( $id_field = $tab['keys']['PRIMARY']['columns'][0] ){\n if ( $cur = (int)$this->get_one(\"SELECT MAX(\".$this->escape($id_field).\") FROM \".$this->escape($table)) ){\n return $cur + 1;\n }\n return 1;\n }\n return false;\n }", "title": "" }, { "docid": "fdda1c50e6fba8f55298b09fd6ebc501", "score": "0.54976016", "text": "protected function getQueryNextId() {\r\n if ($this->autoIncrement()) {\r\n return 'SELECT IDENT_CURRENT(\\'' . $this->table() . '\\') + IDENT_INCR(\\'' . $this->table() . '\\');';\r\n } else {\r\n if (!($uniqueId = $this->getUniqueId())) {\r\n throw new FactoryException('No se puede calcular el NextId de la clase \"' . $this->getClass() . '\"\" porque no tiene un único ID');\r\n }\r\n\r\n return 'SELECT ISNULL(MAX(' . $this->__dbMappings[$uniqueId]['db'] . '), 0) + 1 FROM ' . $this->table() . ';';\r\n }\r\n }", "title": "" }, { "docid": "69d839d708757e6621162c3649144f05", "score": "0.5493641", "text": "function getNextId(){\n $idString = file_get_contents(\"last.contact.id\");\n $id = intval($idString);\n $id++;\n file_put_contents(\"last.contact.id\", $id);\n return $id;\n}", "title": "" }, { "docid": "6c10fde7e3f3c13ab9b5e030643f2a3c", "score": "0.5487316", "text": "private function getID() {\n $last_id = DB::table('asset_meter')\n ->select('id')->orderBy('id', 'desc')\n ->take(1)->get();\n\n if($last_id->count()) $last_id = $last_id[0]->id + 1;\n else $last_id = 1;\n \n return $last_id;\n }", "title": "" }, { "docid": "2ed138533c78ed051d3624eac70e4334", "score": "0.5481133", "text": "public function getArticleId()\n {\n if ($this->_sArticleId === null) {\n // passing wishlist information\n if ($sArticleId = oxRegistry::getConfig()->getRequestParameter('aid')) {\n $this->_sArticleId = $sArticleId;\n }\n }\n\n return $this->_sArticleId;\n }", "title": "" }, { "docid": "b964819346b94a38fe6890752c1be1af", "score": "0.54797906", "text": "public function getNextSequence(ContentEntityInterface $entity);", "title": "" }, { "docid": "310cb7bbe3e8461ae10bea913d7c2e9d", "score": "0.5473963", "text": "function NextID($tabla)\n {\n if(!$this->m_ibd)\n {\n return 0;\n }\n\n return $this->m_ibd->SiguienteID($tabla);\n }", "title": "" }, { "docid": "7de6d45baf3c51ca9f267979dc846d67", "score": "0.5466618", "text": "abstract public function getNextRecord();", "title": "" }, { "docid": "461525d3e871b2493b844482d1690fe3", "score": "0.5460874", "text": "function get_nxt_sequence($zkey, $obj)\n\t{\n\t\t$zkeyno = $obj->LASTUSED;\n\t\t$zkeyno ++;\n\t\t//echo $zkeyno;\n\n\t\t$dbconn = DB_Connect_Direct(); \n if ($dbconn != false) {\n\n\t\t\t$query = \"UPDATE genkey SET LASTUSED = \" . $zkeyno . \" WHERE FIELDID = '\" . $zkey . \"';\";\n\t\t\t$result = DB_Query($dbconn, $query);\n\t\t\tif ($result != false) {\n\t\t\t\t//run sequence_format(1)\n\t\t\t\tDB_Close($dbconn);\n\t\t\t\treturn $zkeyno;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fb9b86c9609d830be4e278aa54a41dd3", "score": "0.5459313", "text": "public function findCurrentDebateId()\n {\n $debates = $this->getArticleRepository()\n ->findBy($this->criteria, array('published' => 'desc'), 1);\n\n foreach ($debates as $debate) {\n return $debate->getNumber();\n }\n }", "title": "" }, { "docid": "1257f078d999c66e32c03d5e6173f4cf", "score": "0.5442974", "text": "function getNextJenhukdis(){\n $sql = \"SELECT MAX(JENHUKDIS)+1 jenhukdis FROM PERS_JENHUKDIS_RPT\";\n $query = $this->db->query($sql)->row(); \n\n return $query->JENHUKDIS;\n }", "title": "" }, { "docid": "c6d9eecfcf66f3972a7eb7530f6c1e1a", "score": "0.5438593", "text": "private function next_order_number()\n {\n $ord = sprintf(\"%5s-%012d\", strtoupper(substr(Globals::$site_id, 0, 5)),\n ShoppingCart::$parameters->next_order_number);\n ShoppingCart::$parameters->next_order_number += 1;\n return $ord;\n }", "title": "" }, { "docid": "482e0f778e888f0781e96c8e4102a147", "score": "0.5435161", "text": "public function getNextRecordId($project_id){\n $params = array(\n 'fields' => array(\"participant_id\")\n );\n\n $result = \\REDCap::getData($project_id);\n\n $next_available_id = 1;\n if(!empty($result)){\n $next_available_id = max(array_keys($result)) + 1;\n }\n\n return $next_available_id;\n }", "title": "" }, { "docid": "05d66be1f0b52a49863c6455c331e6e1", "score": "0.5431684", "text": "public function getNext () {}", "title": "" }, { "docid": "05d66be1f0b52a49863c6455c331e6e1", "score": "0.5431684", "text": "public function getNext () {}", "title": "" }, { "docid": "0686372c5a36405d618c4c2436171c52", "score": "0.54287505", "text": "public function select_next($p_field_name, array $arr_where = array()){\n\t\t$arr_order = array($p_field_name => -1);//last insert show first\n\t\t$rss = $this->collection->find($arr_where)->sort($arr_order)->limit(1);\n\t\t$v_ret = 0;\n\t\tforeach($rss as $arr){\n\t\t\tif(isset($arr[$p_field_name])) $v_ret = $arr[$p_field_name];\n\t\t}\n\t\treturn ((int) $v_ret)+1;\n\t}", "title": "" }, { "docid": "d6ca00328d2583001be8e956e2db1d39", "score": "0.5428114", "text": "function\tgetNextItemNo() {\n\t\t$query\t=\t\"SELECT ItemNo FROM InvItem WHERE InvNo='$this->InvNo' ORDER BY ItemNo DESC LIMIT 0, 1 \" ;\n\t\t$sqlResult\t=\tFDb::query( $query) ;\n\t\tif ( !$sqlResult) { \n\t\t\t$e\t=\tnew Exception ( \"Inv.php::Inv::getNextItemNo(): void sqlResult!\") ;\n\t\t\terror_log( $e) ;\n\t\t\tthrow $e ; \n\t\t} else { \n\t\t\t$row = mysql_fetch_array( $sqlResult) ; \n\t\t\t$this->ItemNo\t=\t$row[0] + 10 ;\n\t\t}\n\t\treturn $this->_status ;\n\t}", "title": "" }, { "docid": "7fb6fc5e1786d6ea33f85f5b82974a89", "score": "0.541864", "text": "public function next()\n {\n return static::where('id', '>', $this->id)\n ->where('category_id', '=', $this->category_id)\n ->published()\n ->orderBy('id')->first();\n }", "title": "" }, { "docid": "5799b9bcd8c3083dd26c83d32bd0e178", "score": "0.54168975", "text": "public function currentNodeId() {\n $query = \\Drupal::entityQuery('node');\n $query->condition('status', 1);\n $query->condition('type', 'article');\n $query->range(0, 1);\n $query->sort('created', 'DESC');\n $nids = $query->execute();\n $nodes = \\Drupal::entityTypeManager()->getStorage('node')->loadMultiple($nids);\n $options = [\n 'attributes' => ['class' => ['article-class'], 'rel' => 'nofollow'],\n ];\n $output = array();\n if (!empty($nodes)) {\n $author_array = array();\n $field_tags = array();\n foreach ($nodes as $key => $value) {\n $entity_obj = entity_load('node', $key);\n $author_name = $entity_obj->getOwner()->getDisplayName();\n $author_array[] = $author_name;\n $field_tags[] = $value->field_tags->target_id;\n if (in_array($author_name, $author_array) && in_array($author_name, $author_array)) {\n $result = Link::fromTextAndUrl(t($value->title->value . \" Term Id = \". $value->field_tags->target_id.\" By author is : \".$author_name), Url::fromUri('internal:/node/'.$value->nid->value, $options))->toString();\n $output[$value->nid->value] .= $result;\n }\n }\n }\n else\n {\n $output .= \"No record found\";\n }\n return $output;\n }", "title": "" }, { "docid": "750231532e648e1e05bca26047cef1f1", "score": "0.5414222", "text": "public function getArticleId(): Uuid {\n\t\treturn ($this->articleId);\n\t}", "title": "" }, { "docid": "4d35720fab43787c7416497a5c0ad721", "score": "0.54132116", "text": "function mssql_next_result ($result_id) {}", "title": "" }, { "docid": "784881cda3848c6029ebd1e808f90e60", "score": "0.5405103", "text": "function getKeyOfFirstPaginatedItem() : int ;", "title": "" }, { "docid": "dfcd0f4dec439de0ca1da5dad52624d8", "score": "0.5402962", "text": "public function next()\n {\n $this->nextRevision = $this->nextRevision->increment();\n if ($this->nextRevision->getRevision() == $this->latestRevision->getRevision()) {\n $this->nextRevision = $this->nextRevision->setDraft($this->latestRevision->isDraft());\n }\n }", "title": "" }, { "docid": "46790715866fbb7f0e2d45a68f9de41f", "score": "0.540087", "text": "function getNextImage($id, $albumId) \r\n {\r\n $db = JFactory::getDbo();\r\n\r\n // Select next images from images tables\r\n $sql = \"SELECT id FROM #__facegallery_images\"\r\n . \" WHERE id > \" . $db->escape($id)\r\n . \" AND albumid = \" . $db->escape($albumId)\r\n . \" AND state = 1\"\r\n . \" ORDER BY id ASC LIMIT 1\";\r\n\r\n $db->setQuery($sql);\r\n $results = $db->loadResult();\r\n return $results;\r\n }", "title": "" }, { "docid": "470c43b7073af5335a5c42fe8010b0ed", "score": "0.5400361", "text": "public function nextIncrement() {\n\t\treturn $this->autoIncrement($this->mongo, $this->collectionName);\n\t}", "title": "" }, { "docid": "2248b4c4fae854558952b8a8a1075785", "score": "0.5397938", "text": "private function determinePageId() : int {}", "title": "" }, { "docid": "cfb6f5af773418a7ee0d7172c6fcc73f", "score": "0.5396175", "text": "public function getArticleId() : Uuid {\n\t\treturn ($this->articleId);\n\t}", "title": "" }, { "docid": "edd6af0b4cc16ecfa1004983b8c885d0", "score": "0.5391961", "text": "public function getArticleNumber()\n {\n return $this->articleNumber;\n }", "title": "" }, { "docid": "6f0bf6efc0d09c89d45079dc19ffd5d8", "score": "0.53915936", "text": "public function fetch_the_id() {}", "title": "" }, { "docid": "3c875b798fdcbbf3f6c6a4a601518c85", "score": "0.53873605", "text": "function getPrevPost($id) {\n ### Resolve root_id of $id:\n $query = \"SELECT root_id FROM webboard WHERE topic_id = $id\";\n $result = mysql_query($query);\n $root_id = mysql_result($result, 0);\n \n ### Resolve next message:\n $query = \"SELECT topic_id FROM webboard WHERE root_id = $root_id AND topic_id < $id ORDER BY create_dt DESC\";\n $result = mysql_query($query);\n if (mysql_num_rows($result)) return mysql_result($result, 0);\n else return 0;\n}", "title": "" }, { "docid": "494244aa9f7bd010b50f52eac48834f9", "score": "0.5386774", "text": "function get_next_previous_port_id( $post_id, $next_or_prev ) {\n // Get a global post reference since get_adjacent_post() references it\n global $post;\n\n // Store the existing post object for later so we don't lose it\n $oldGlobal = $post;\n\n // Get the post object for the specified post and place it in the global variable\n $post = get_post( $post_id );\n\n // Get the post object for the previous post\n $previous_post = $next_or_prev == \"prev\" ? get_previous_post() : get_next_post();\n\n // Reset our global object\n $post = $oldGlobal;\n\n if ( '' == $previous_post ){\n $port = get_posts(array(\n 'post_type' => 'dslc_projects',\n 'order' => $next_or_prev == \"prev\" ? 'DESC' : 'ASC',\n 'posts_per_page' => 1,\n ));\n return $port[0]->ID;\n }\n\n return $previous_post->ID;\n}", "title": "" }, { "docid": "64ea14fff62467bcd0584b37e086721f", "score": "0.53741485", "text": "public function next(){\n // get next user\n return Opinion::where('id', '>', $this->id)->orderBy('id','asc')->first(['id','title','created_at']);\n\n }", "title": "" }, { "docid": "9f17650b39cc5dbe338dff06e3b8e4d8", "score": "0.53741324", "text": "public function nextResult($link);", "title": "" } ]
bb2b4d845789960974f081576a35358f
/ liens : cette fonction est appelee automatiquement a chaque affichage de la page privee du Couteau Suisse
[ { "docid": "4014f3ec6315c243990abd721848e3a9", "score": "0.0", "text": "function insertions_installe() {\r\n\tif(!defined('_insertions_LISTE')) return;\r\ncs_log(\"insertions_installe()\");\r\n\t// on decode la liste entree dans la config\r\n\t$liste = preg_split(\"/[\\r\\n]+/\", trim(_insertions_LISTE));\r\n\t$str = $preg = array(array(), array());\r\n\tforeach ($liste as $l) {\r\n\t\tlist($a, $b) = explode(\"=\", $l, 2);\r\n\t\t$a = trim($a); $b = trim($b);\r\n\t\tif (!strlen($a) || preg_match('/^(#|\\/\\/)/', $a)) {\r\n\t\t\t// remarques ou vide\r\n\t\t} elseif (preg_match('/^\\((.+)\\)$/', $a, $reg)) {\r\n\t\t\t// les mots seuls\r\n\t\t\t$preg[0][] = '/\\b'.$reg[1].'\\b/'; $preg[1][] = $b;\r\n\t\t} elseif (preg_match('/^(\\/.+\\/[imsxuADSUX]*)$/', $a)) {\r\n\t\t\t// expressions regulieres\r\n\t\t\t$preg[0][] = $a; $preg[1][] = $b;\r\n\t\t} elseif (strlen($a)) {\r\n\t\t\t// simples remplacements\r\n\t\t\t$str[0][] = $a; $str[1][] = $b;\r\n\t\t}\r\n\t}\r\n\tecrire_meta('cs_insertions', serialize(array($str, $preg)));\r\n\tecrire_metas();\r\n}", "title": "" } ]
[ { "docid": "79c182c887f83acdcc79c9bf05704c8c", "score": "0.69758344", "text": "public function affichePiedPage()\n\t\t{\n\t\t//appel de la vue du pied de page\n\t\trequire 'Vues/piedPage.php';\n\t\t}", "title": "" }, { "docid": "0dd2852c65f94c09d579c15b74ddda3f", "score": "0.683551", "text": "private function affich_prest(){\n $page = '<h1> Description de la prestation n°' . $this->id . '</h1>';\n $page = $page . '<br> ' . 'Nom : ' . $this->tab->nom . ' Description : ' . $this->tab->descr . ' Prix : ' . $this->tab->prix . '€ ' . '<br><br>' . '<img src=\"../../../images/'.$this->tab->img.'\">' . '</ul><br><br><a href=../../CoffretController/ajout_prest/' . $this->id . '> Ajouter cette prestation a ma commande </a>';\n \n $this->lienPrest = '../../CatalogueController/affich_prest';\n $this->lienCat = '../../CatalogueController/affich_cat';\n $this->lienAccueil = '../../..';\n \n return $page;\n }", "title": "" }, { "docid": "88ef3aac52dc363ebd110bafcea5f7cb", "score": "0.67792183", "text": "function inc_commencer_page_dist($titre = \"\", $rubrique = \"accueil\", $sous_rubrique = \"accueil\", $id_rubrique = \"\") {\n\n\tinclude_spip('inc/headers');\n\n\thttp_no_cache();\n\n\treturn init_entete($titre, $id_rubrique)\n\t. init_body($rubrique, $sous_rubrique, $id_rubrique)\n\t. \"<div id='page' align='center'>\"\n\t. avertissement_messagerie()\n\t . ((($rubrique == \"messagerie\") OR (_request('changer_config')!=\"oui\"))\n\t ? auteurs_recemment_connectes() : '');\n}", "title": "" }, { "docid": "dcc65bafc5ec4054effc6376ef33092b", "score": "0.6763711", "text": "function accesrestreint_page_indisponible($contexte) {\n\tif ($contexte['status'] == '404') {\n\t\t$objet = '';\n\t\tif (isset($contexte['type'])) {\n\t\t\t$objet = $contexte['type'];\n\t\t} elseif (isset($contexte['type-page'])) {\n\t\t\t$objet = $contexte['type-page'];\n\t\t} elseif (isset($contexte['fond_erreur'])) {\n\t\t\tinclude_spip('inc/urls');\n\t\t\tif (!defined('_DEFINIR_CONTEXTE_TYPE_PAGE')) {\n\t\t\t\tdefine('_DEFINIR_CONTEXTE_TYPE_PAGE', true);\n\t\t\t}\n\t\t\t$c2 = $contexte;\n\t\t\tlist($fond2, $c2, $url_redirect) = urls_decoder_url(nettoyer_uri(), $contexte['fond_erreur'], $c2, true);\n\t\t\tif (isset($c2['type-page'])) {\n\t\t\t\t$objet = $c2['type-page'];\n\t\t\t}\n\t\t}\n\t\tif ($objet) {\n\t\t\t$table_sql = table_objet_sql($objet);\n\t\t\t$id_table_objet = id_table_objet($objet);\n\t\t\tif ($id = intval($contexte[$id_table_objet])) {\n\t\t\t\t$publie = true;\n\t\t\t\tif (include_spip('base/objets')\n\t\t\t\t\tand function_exists('objet_test_si_publie')) {\n\t\t\t\t\t$publie = objet_test_si_publie($objet, $id);\n\t\t\t\t} else {\n\t\t\t\t\t$trouver_table = charger_fonction('trouver_table', 'base');\n\t\t\t\t\t$desc = $trouver_table($table_sql);\n\t\t\t\t\tif (isset($desc['field']['statut'])) {\n\t\t\t\t\t\t$statut = sql_getfetsel('statut', $table_sql, \"$id_table_objet=\".intval($id));\n\t\t\t\t\t\tif ($statut!='publie') {\n\t\t\t\t\t\t\t$publie = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tinclude_spip('inc/autoriser');\n\t\t\t\tif ($publie and !autoriser('voir', $objet, $id)) {\n\t\t\t\t\t// c'est un contenu restreint\n\t\t\t\t\t$contexte['status'] = '401';\n\t\t\t\t\t$contexte['code'] = '401 Unauthorized';\n\t\t\t\t\t$contexte['fond'] = '401';\n\t\t\t\t\t$contexte['erreur'] = _T('accesrestreint:info_acces_restreint');\n\t\t\t\t\t$contexte['cible'] = self();\n\t\t\t\t\tif (!isset($contexte['objet'])) {\n\t\t\t\t\t\t$contexte['objet'] = $objet;\n\t\t\t\t\t\t$contexte['id_objet'] = $id;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn $contexte;\n}", "title": "" }, { "docid": "8096e6b40bee31d93fb6f918e6b9048f", "score": "0.6753547", "text": "public function afficherContent() {\n?>\n\t\tcoucou c ns les joueurs\n<?php\n }", "title": "" }, { "docid": "8049addd6b89d38459bbde1a23e0cc2f", "score": "0.6617277", "text": "function relleus()\r\n {\r\n $pagina=$this->load_template('Relleus Guies de Muntanya','app/views/default/sections/s.menurelleus.php');\t\t\t\t\r\n $html = $this->load_page('app/views/default/modules/relleus/relleus.php');\r\n $pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$html , $pagina);\r\n $this->view_page($pagina);\r\n }", "title": "" }, { "docid": "40a44b2033b75e683b96fcf172c87ca1", "score": "0.6616931", "text": "function page_design() {\r\n//TODO\r\n}", "title": "" }, { "docid": "1d1bd16ed4ad7889d0e5e837953db3a3", "score": "0.6616214", "text": "public function premierePage() {\n $this->AddPage();\n\n $this->writeHTMLCell('','',0,45,\n '<h2 align=\"center\">Concours blanc ' . $this->nomMatiere . ' ' . $this->sujet->getNumero_cb() . '</h2>');\n $image_file = realpath('') . '/files/images/logo.jpg';\n $this->image($image_file,30,65,130,'','JPG','','M',false,'','M');\n\n $this->writeHTMLCell('','',0,205,\n '<h2 align=\"center\">SUJET</h2>'\n . '<h2 align=\"center\">Notions traitées : ' . $this->sujet->getNotions() . '</h2>'\n . '<h2 align=\"center\">' . $this->sujet->getDate() . '</h2></div>');\n\n $this->AddPage();\n }", "title": "" }, { "docid": "f1f36cf70d66f066c2847a6e271eaf5d", "score": "0.6456879", "text": "function getPageCourante($page) {\n $pageCourante=1;\n \n // Est-ce que le paramètre $page est dans l'url\n if(isset($_GET[$page])) {\n // Si present alors $pageCourante=numero de page du paramètre\n $pageCourante=$_GET[$page]; \n }\n return $pageCourante;\n}", "title": "" }, { "docid": "c9e4e9afa50065e77a077e9329d50adc", "score": "0.6447269", "text": "function ciparam_sommaire_article($texte) {\n\t\n\tpreg_match_all(\"|<h3 class=\\\"spip\\\">(.*)</h3>|U\", $texte, $regs);\n\t\n\t$texte='';\n\t$texte.='<form name=\"accestitre\" action=\"Javascript:goToSelectURL(\\'accestitre\\',\\'nom_titre\\');\" method=\"get\" >';\n\t$texte.='<select name=\"nom_titre\" id=\"nom_titre\">';\n\t$texte.='<option value=\"\" selected=\"selected\">'._T('ciparam:acces_direct').'</option>';\n\t\n\t$nb=1;\n\t\n\tfor($j=0;$j<count($regs[1]);$j++)\n\t{\n\t $item = $regs[1][$j];\n\t // met des espaces insécables\n\t $item = str_replace(\" \",\"&nbsp;\",$item);\n\t \t$texte=$texte.'<option value=\"#sommaire_'.$nb.'\">'.$item.'</option>';\n\t\t\t$nb++;\n\t}\n\t$texte.='</select>';\n\t$texte.='<input type=\"submit\" name=\"masquable\" value=\"OK\"></input>';\n\t$texte.='</form>';\n\n\t \n // Ajout CI pour éviter la duplication des notes de bas de page\n\t$GLOBALS[\"les_notes\"] = \"\";\n\t$GLOBALS[\"compt_note\"] = 0;\n\t$GLOBALS[\"marqueur_notes\"] = 0;\n\n return $texte;\n}", "title": "" }, { "docid": "8a1bae18cc0fffc0ebd8ff4c629da9c1", "score": "0.64291644", "text": "function historia()\n {\n\t\t$pagina=$this->load_template('History of Bolivia');\t\t\t\t\n\t\t$html = $this->load_page('app/views/default/modules/m.historia.php');\n\t\t$pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$html , $pagina);\n\t\t$this->view_page($pagina);\n }", "title": "" }, { "docid": "ef5f72bb5a0d73a6d8273f5e6c1d0c00", "score": "0.64188516", "text": "function show(&$page) {\r\n\t\t$page->data->nadpis = 'Test CMS - úvodná stránka';\r\n\t\r\n\t}", "title": "" }, { "docid": "b2b2daf2047c426d65613b6bb691b0c4", "score": "0.6377336", "text": "public function page();", "title": "" }, { "docid": "3790b38831cc9204a5977e72dfc8168c", "score": "0.6374341", "text": "function cl_pagordemdesconto() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pagordemdesconto\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "c50863f8f63b898a715e1aefdad334b2", "score": "0.6368437", "text": "function AffichePageMenu($aMenu = Array())\n{\n AfficheEntete();\n //affiche le menu \n AfficheMenu($aMenu);\n //par default on affiche le tableau du premier item en Menu $aMenu[0]\n\n AfficheListe($aMenu[0]);\n AffichePied();\n\n}", "title": "" }, { "docid": "9f6f30abaf1328ac2a2591b9e1a7c287", "score": "0.634977", "text": "public function prueba(){\n\t\t}", "title": "" }, { "docid": "6e26bb225d23aa0c4f7167587eec4251", "score": "0.6338704", "text": "public function pageAccueil()\n\t{\n\t\n\t\t// Connnexion automatique\n\t\t$user = Bn::getConfigValue('user', 'autolog');\n\t\t$pwd = Bn::getConfigValue('pwd', 'autolog');\n\t\tif (!empty($user))\n\t\t{\n\t\t\t$_POST['txtLogin'] = $user;\n\t\t\t$_POST['txtPwd'] = $pwd;\n\t\t\treturn BNETADM_LOG;\n\t\t}\n\t\n\t\trequire_once 'Object/Opublic.inc';\n\t\trequire_once 'Object/Oevent.inc';\n\t\t$body = new Body();\n\t\t\n\t\t$divLeft = $body->addDiv('divLeft');\n\t\t// Tournois a l'affiche\n\t\t$q = new Bn_query('events');\n\t\t$q->setTables('events, eventsextra');\n\t\t$q->addField('evnt_id');\n\t\t$q->addWhere('evnt_id=evxt_eventid');\n\t\t$q->addWhere('evxt_promoted=' . YES);\n\t\t$q->setOrder('evnt_firstday ASC');\n\t\t$events = $q->getCol();\n\t\t// Si aucun tournoi a l'affiche, en choisir 1 au hasard\n\t\tif ( ! count($events))\n\t\t{\n\t\t\t$q->setWhere('evnt_season='. Oseason::getCurrent());\n\t\t\t$q->addWhere('evnt_pbl='. DATA_PUBLIC);\n\t\t\t$q->addWhere(\"evnt_lastday >'\" . date('Y-m-d') . \"'\");\n\t\t\t$res = $q->getCol();\n\t\t\t$num = rand(0, count($res));\n\t\t\t$events[] = $res[$num];\n\t\t}\n\t\t/*\n\t\tforeach($events as $eventId)\n\t\t{\n\t\t\t$oevent = new Oevent($eventId);\n\t\t\t$oevent->display($divLeft);\n\t\t\tunset ($oevent);\n\t\t}\n\t\t*/\n\t\t$q->setTables('events');\n\t\t$q->setFields('evnt_id, evnt_date, evnt_name, evnt_nbvisited, evnt_level, evnt_nature, evnt_dpt, evnt_place, evnt_deadline');\n\n\t\t//Tournois individuel\n\t\t$div = $divLeft->addDiv('divIndividual');\n\t\t$t = $div->addP('', '', 'bn-title-3');\n\t\t$t->addBalise('span', '', 'Tournois individuels');\n\t\t\n\t\t// Prochains tournois\n\t\t$div2 = $div->addDiv('divNextTournament');\n\t\t$div2->addP('', 'Prochains tournois','bn-title-4');\n\t\t$q->setWhere('evnt_type=' . OEVENT_TYPE_INDIVIDUAL);\n\t\t$q->addWhere(\"evnt_firstday >='\" .date('Y-m-d') . \"'\");\n\t\t$q->addWhere('evnt_pbl=' . OPUBLIC_DATA_PUBLIC);\n\t\t$q->setOrder('evnt_firstday');\n\t\t$events = $q->getRows();\n\t\t$ul = $div2->addBalise('ul');\n\t\t$ul->setAttribute('class', 'bn-list-1');\n\t\tforeach($events as $event)\n\t\t{\n\t\t\t$eventId = $event['evnt_id'];\n\t\t\t$li = $ul->addBalise('li');\n\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $event['evnt_id'], $event['evnt_name']);\n\t\t\t//$lnk->setAttribute('href', $event['evnt_date']);\n\t\t\t$str = $event['evnt_name'] . ' - ';\n\t\t\t$str .= 'Date :'. $event['evnt_date'] . \"\\n\";\n\t\t\t$str .= 'Lieu :'. $event['evnt_place'] . \"\\n\";\n\t\t\t$str .= 'Inscrition :'. Bn::date($event['evnt_deadline'], 'd-m-Y') . \"\\n\";\n\t\t\t$lnk->setTooltip($str);\n\t\t}\n\n\n\t\t$div2 = $div->addDiv('divLastResults');\n\t\t$div2->addP('', 'Derniers résultats', 'bn-title-4');\n\n\t\t$q->setWhere('evnt_type='.OEVENT_TYPE_INDIVIDUAL);\n\t\t$q->addWhere(\"evnt_firstday < '\" . date('Y-m-d') .\"'\");\n\t\t$q->addWhere('evnt_pbl=' . OPUBLIC_DATA_PUBLIC);\n\t\t$q->setOrder('evnt_firstday DESC');\n\t\t$q->setLimit(1, 15);\n\t\t$events = $q->getRows();\n\n\t\t// Derniers resultats\n\t\t$ul = $div2->addBalise('ul');\n\t\t$ul->setAttribute('class', 'bn-list-1');\n\t\tforeach($events as $event)\n\t\t{\n\t\t\t$eventId = $event['evnt_id'];\n\t\t\t$li = $ul->addBalise('li');\n\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $eventId, $event['evnt_name']);\n\t\t\t$str = $event['evnt_name'] . ' - ';\n\t\t\t$str .= 'Date :'. $event['evnt_date'] . \"\\n\";\n\t\t\t$str .= 'Lieu :'. $event['evnt_place'] . \"\\n\";\n\t\t\t$str .= 'Visite :'. $event['evnt_nbvisited'] . \"\\n\";\n\t\t\t$lnk->setTooltip($str);\n\t\t}\n\n\t\t//Tournoi par equipes\n\t\t$div = $divLeft->addDiv('divInterclub');\n\t\t$t = $div->addP('', '', 'bn-title-3');\n\t\t$t->addBalise('span', '', 'Interclubs');\n\n\t\t$q->setWhere('evnt_type='. OEVENT_TYPE_TEAM);\n\t\t$q->addWhere('evnt_season='.Oseason::getCurrent());\n\t\t$q->setLimit(1, 150);\n\t\t$q->setorder('evnt_dpt');\n\t\t$events = $q->getRows();\n\n\t\t$div->addP('', 'Intercodep','bn-title-4');\n\t\t$ulc = $div->addBalise('ul');\n\t\t$ulc->setAttribute('class', 'bn-list-1');\n\n\t\t$div->addP('', 'National','bn-title-4');\n\t\t$uln = $div->addBalise('ul');\n\t\t$uln->setAttribute('class', 'bn-list-1');\n\n\t\t$div->addP('', 'Régionnal','bn-title-4');\n\t\t$ulr = $div->addBalise('ul');\n\t\t$ulr->setAttribute('class', 'bn-list-1');\n\n\t\t$div->addP('', 'Départemental','bn-title-4');\n\t\t$uld = $div->addBalise('ul');\n\t\t$uld->setAttribute('class', 'bn-list-1');\n\t\tforeach($events as $event)\n\t\t{\n\t\t\t$eventId = $event['evnt_id'];\n\t\t\tif ($event['evnt_nature'] == OEVENT_NATURE_INTERCODEP)\n\t\t\t{\n\t\t\t\t$li = $ulc->addBalise('li', 'eventsLinks');\n\t\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $eventId, $event['evnt_name']);\n\t\t\t}\n\t\t\telseif ($event['evnt_level'] == OEVENT_LEVEL_DEP)\n\t\t\t{\n\t\t\t\t$li = $uld->addBalise('li', 'eventsLinks');\n\t\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $eventId, '[' . $event['evnt_dpt']. '] ' . $event['evnt_name']);\n\t\t\t}\n\t\t\telse if ($event['evnt_level'] == OEVENT_LEVEL_REG)\n\t\t\t{\n\t\t\t\t$li = $ulr->addBalise('li', 'eventsLinks');\n\t\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $eventId, $event['evnt_name']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$li = $uln->addBalise('li', 'eventsLinks');\n\t\t\t\t$lnk = $li->addLink('lnk'.$eventId, BEVENT_GOTO_VISIT . '&eventId='. $eventId, $event['evnt_name']);\n\t\t\t}\n\t\t\t$str = $event['evnt_name'] . ' - ';\n\t\t\t$str .= 'Visite :'. $event['evnt_nbvisited'] . \"\\n\";\n\t\t\t$lnk->setTooltip($str);\n\t\t}\n\t\t\n\t\t// Coonne de droite\n\t\t$divRight = $body->addDiv('divRight');\n\t\t\n\t\t// Pour le calendrier\n\t\t$d = $divRight->addDiv('divCalendar');\n\t\t$d->addDiv('calendar');\n\t\t$d->addBreak();\n\n\t\t// Connexion au site\n\t\t$divf = $divRight->addDiv('divConnect');\n\t\t$t = $divf->addP('', '', 'bn-title-3');\n\t\t$t->addBalise('span', '', 'Connexion');\n\n\t\t$userId = Bn::getValue('user_id', null);\n\t\tif ( empty($userId) )\n\t\t{\n\t\t\t\t\n\t\t\t$form = $divf->addForm('frmLogin', BNETADM_LOG, 'targetBody');\n\n\t\t\t$form->addEdit('txtLogin', 'Identifiant', null, 20);\n\t\t\t$form->addEditPwd('txtPwd', 'Mot de passe', 20);\n\t\t\t$block = $form->addDiv('', 'blkBtnLogin');\n\t\t\t$block->addButtonValid('btnLogin', \"S'identifier\");\n\t\t\t/*\n\t\t\t$block = $form->addDiv('', 'divLinks');\n\t\t\t$block->addP()->addLink('lnkAccount', LOGIN_PAGE_ACCOUNT, \"Nouveau compte\", 'targetBody');\n\t\t\t$lnk = $block->addP()->addLink('lnkPwd', LOGIN_FILL_PASSWORD, 'Mot de passe oublié', 'targetDlg');\n\t\t\t$lnk->completeAttribute('class', 'bn-dlg');\n\t\t\tinclude_once 'Badnetadm/Locale/' . Bn::getLocale() . '/Login.inc';\n\t\t\t$lnk->addMetaData('title', \"'Nouveau mot de passe'\");\n\t\t\t$lnk->addMetaData('width', 355);\n\t\t\t$lnk->addMetaData('height', 180);\n\t\t\t$form->addBreak();\n\t\t\t*/\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$p = $divf->addP('pDirect', LOC_P_DIRECT_ACCESS, 'bn-p-info');\n\t\t\t$p->insertcontent(Bn::getValue('user_name') . ', ');\n\t\t\t$block = $divf->addDiv('', 'divLinks');\n\t\t\t$action = BEVENT_PAGE_EVENTS; \n\t\t\t$block->addP()->addLink('lnkDirect', $action , 'Accés direct', 'targetBody');\n\t\t}\n\t\t$divRight->addBreak();\n\n\t\t$body->addBreak();\n\n\t\t$body->addJQReady('pageAccueil();');\n\t\t$body->display();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0cdb4b61d5c1ad8696618ae8dbcfd5cd", "score": "0.6335878", "text": "public function afficherContent() {\n?>\n\t\tt'es duper wala\n<?php\n }", "title": "" }, { "docid": "fc5fee5905fa59d5738c4e3f9fddc18b", "score": "0.6320705", "text": "function cl_pagordemdescontoempanulado() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pagordemdescontoempanulado\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "d5231005bd1e5c18e80d2fb5ff46ecf3", "score": "0.6308716", "text": "public function accueilDetail()\n\t{\n\t\t$msgAccueilManager = new MessageAccueil();\n\t\t$pageManager = new Page();\n\t\t$msgAccueil= $msgAccueilManager->getContentMessage();\n\t\t$page = $pageManager->getListPages();\n\t\trequire('view/ViewFrontEnd/accueilView.php');\n\t}", "title": "" }, { "docid": "292455f8540fab799e783c1919f9a74c", "score": "0.6301813", "text": "function principal()\r\n {\r\n \t$universitario = new universitario();\r\n $pagina=$this->load_template('Relleus, Embauma\\'t aventures a Vall de Lord');\t\t\t\t\r\n $html = $this->load_page('app/views/default/modules/m.principal.php');\r\n $pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$html , $pagina);\r\n $this->view_page($pagina);\r\n }", "title": "" }, { "docid": "e5c2be823ab028f010175c1af37d8b2d", "score": "0.62983054", "text": "function accueil() {\n \n global $content;\n \n $content['title'] = 'Cat Clinic - Accueil';\n $content['description'] = 'Bienvenue dans votre clinique spécialisée dans le soin de vos félins';\n $content['keywords'] = '';\n $content['author'] = 'Lambert Nathaelle';\n \n $content['class'] = 'VHtml';\n $content['method'] = 'showHtml';\n $content['arg'] = '../Html/accueil.html';\n \n return;\n \n}", "title": "" }, { "docid": "2280cdb44ec64f8ff32a7116851472a0", "score": "0.62975883", "text": "function content () {\n // Pagina visualizzata di default\n if (!isset($_GET['p']))\n $_GET['p']=\"cerca\";\n\n // Pagine consentite per...\n getUser() ?\n // ...un utente loggato\n $allowed = array(\"profilo\",\"tragitti\",\"cerca\",\"nuovo\",\"auto\",\n \"utenti\",\"about\",\"tragitto\") :\n // ...un utente NON loggato\n $allowed = array(\"tragitti\",\"tragitto\",\"cerca\",\"utenti\",\"about\",\"iscrizione\",\"profilo\");\n\n $content = \"\";\n \n /*\n * I successivi controlli di flusso indicano la visualizzazione di\n * messaggi particolari come condizioni di errore, messaggi di conferma, ecc\n */\n if (isset($_SESSION['wronglogin'])) {\n $content=\"<h1>Login errato</h1>\";\n unset($_SESSION['wronglogin']);\n }\n \n if (($_GET['p'] == 'nuovo') && !hasAuto()) {\n $error = noAuto();\n $content = $content.$error;\n return $content;\n }\n \n if (($_GET['p'] == 'error') ) {\n $error = dataError();\n $content = $content.$error;\n return $content;\n }\n \n if ($_GET['p'] == 'success' ) {\n $conf = showConfirm();\n $content = $content.$conf;\n return $content;\n }\n\n /**\n * La pagina da visualizzare appartiene al flusso 'regolare' del sito, e ne\n * viene estratto il template. \n */\n if (in_array($_GET['p'],$allowed)) {\n $file_content = implode (\"\",file(\"template/$_GET[p].htm\"))\n or die(\"Pagina non trovata\");\n $content = $content.prepare_content($file_content);\n }else {\n /* Non si hanno i permessi per visitare la pagina */\n $error = accessDenied();\n $content = $content.$error;\n }\n\n return $content;\n}", "title": "" }, { "docid": "6a696a43ec244a959c706d6bb3d14fae", "score": "0.62926155", "text": "function ImpressionInfosStatistiques()\n\t{\n\t\t$this->AddPage();\n\t\t$this->EnTetePage();\n\t\t$this->CorpsDocument();\n\t}", "title": "" }, { "docid": "7f3eb9b4521a7576b1d0af77028788c4", "score": "0.6268703", "text": "public function getPageExpo()\n {\n// Session::set('portal_isonhei', 'exponoivas2015');\n return Redirect::to(\"/categoria/fica-a-dica/casamento\");\n }", "title": "" }, { "docid": "6877f144e77f0a53121f99e9ee4d032c", "score": "0.62572277", "text": "public function getPage(){\n\t\t\n\t}", "title": "" }, { "docid": "dd303fe808abc118f524a6a12bf6d920", "score": "0.62540704", "text": "function geraNovaPagina() {\n\n}", "title": "" }, { "docid": "5d30d3a9c3f5700bc104e43c357b64ed", "score": "0.6241739", "text": "function ciparam_sommaireplat_article($texte,$select=false) {\n//\treturn sommaire_empile_note().ciparam_affiche_sommaire($texte,$select).sommaire_depile_note();\n\tif (!defined('_DIR_PLUGIN_SOMMAIRE'))\n\t\tinclude_spip('inc/inc_plugin_sommaire');\n\n // Ajout CI pour éviter la duplication des notes de bas de page\n\t$GLOBALS[\"les_notes\"] = \"\";\n\t$GLOBALS[\"compt_note\"] = 0;\n\t$GLOBALS[\"marqueur_notes\"] = 0;\n\t\t\n\treturn ciparam_affiche_sommaire($texte,$select);\n}", "title": "" }, { "docid": "d27022b0fa8f819ab96ed87ad9a29637", "score": "0.6229503", "text": "function afficherPage($page)\n{\n $chemin=$page[0];\n $nom=$page[1];\n $titre=$page[2];\n\n include 'PHP/VIEW/head.php';\n include 'PHP/VIEW/header.php';\n include 'PHP/VIEW/nav.php';\n include $chemin.$nom.'.php';\n include 'PHP/VIEW/footer.php';\n}", "title": "" }, { "docid": "4da4adde12e8356f85944aa9f1f21475", "score": "0.6206629", "text": "function cisquel_paginer_sujethierarchique($num_items,$id_article,$id_forum,$debut_forum) {\n\t\n\tif (!$debut_forum) $debut_forum =0;\n\t \t$affiche = \"\";\t\t\t \t\n\t$per_page = 5;\n\t$start_item = intval($debut_forum);\n\t$total_page = ceil($num_items/$per_page);\n\t\t\t\t\t\t\t\n\t$on_page = floor($start_item / $per_page) + 1;\n\t\n\t$page_string = '';\n\tif ( $total_page > 10 ) {\n\t\t$init_page_max = ( $total_page > 3 ) ? 3 : $total_page;\n\t\n\t\tfor($i = 1; $i < $init_page_max + 1; $i++) {\n\t\t\t$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',(( $i - 1 ) * $per_page ))).'\" >' . $i . '</a>';\n\t\t\tif ( $i < $init_page_max ) {\n\t\t\t\t$page_string .= \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( $total_page > 3 ) {\n\t\t\tif ( $on_page > 1 && $on_page < $total_page )\t{\n\t\t\t\t$page_string .= ( $on_page > 5 ) ? ' ... ' : ', ';\n\t\n\t\t\t\t$init_page_min = ( $on_page > 4 ) ? $on_page : 5;\n\t\t\t\t$init_page_max = ( $on_page < $total_page - 4 ) ? $on_page : $total_page - 4;\n\t\n\t\t\t\tfor($i = $init_page_min - 1; $i < $init_page_max + 2; $i++) {\n\t\t\t\t\t$page_string .= ($i == $on_page) ? '<b>' . $i . '</b>' : '<a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',(( $i - 1 ) * $per_page ))).'\" >' . $i . '</a>';\n\t\t\t\t\tif ( $i < $init_page_max + 1 ) {\n\t\t\t\t\t\t$page_string .= ', ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t$page_string .= ( $on_page < $total_page - 4 ) ? ' ... ' : ', ';\n\t\t\t} else {\n\t\t\t\t$page_string .= ' ... ';\n\t\t\t}\n\t\n\t\t\tfor($i = $total_page - 2; $i < $total_page + 1; $i++) {\n\t\t\t\t$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',(( $i - 1 ) * $per_page ))).'\" >' . $i . '</a>';\n\t\t\t\tif( $i < $total_page ) {\n\t\t\t\t\t$page_string .= \", \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor($i = 1; $i < $total_page + 1; $i++) {\n\t\t\t$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',(( $i - 1 ) * $per_page ))).'\" >' . $i . '</a>';\n\t\t\tif ( $i < $total_page ) {\n\t\t\t\t$page_string .= ', ';\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif ( true ) {\n\t\tif ( $on_page > 1 ) {\n\t\t\t$page_string = ' <a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',(( $on_page - 2 ) * $per_page ))).'\" >'._T('cisquel:page_precedente').'</a>&nbsp;&nbsp;' . $page_string;\n\t\t}\n\t\n\t\tif ( $on_page < $total_page ) {\n\t\t\t$page_string .= '&nbsp;&nbsp;<a href=\"'.interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('sujethierarchique'),'id_article',$id_article),'id_forum',$id_forum),'debut_forum',( $on_page * $per_page ))).'\" >'._T('cisquel:page_suivante').'</a>';\n\t\t}\n\t\n\t}\n\t\n\t$affiche = _T('cisquel:eq_aller_page') . $page_string;\n\tif ( $total_page == 1 ) {\n\t\t$affiche='';\n\t}\n\t\n\treturn $affiche;\n \t\n}", "title": "" }, { "docid": "bb11f60f9204ae3b5cb6b7e42dbed6d7", "score": "0.61586183", "text": "public function page($page)\n {\n \n }", "title": "" }, { "docid": "92783a7f5b8d6d713996f8ceec7c1bfd", "score": "0.61575145", "text": "function wyswietl() {\r\n include('pliki/plan.htm');\r\n if (!isset($_GET['zmiana'])) $this -> wyswietl_calosc();\r\n if (isset($_GET['zmiana']) && isset($_GET['dzien'])) $this -> wyswietl_selektywnie($_GET['klasa'], $_GET['dzien']);\r\n}", "title": "" }, { "docid": "17477986db233bf0f66b8a582d47e905", "score": "0.6147816", "text": "function cl_ppaintegracaodespesa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"ppaintegracaodespesa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "17589833791aa360f7730827accb255e", "score": "0.61472183", "text": "function traite_fin_de_page()\n{\n\tglobal $get, $path, $bdd;\n\thook('before_traite_fin_page',array());\n\t$gen_time=microtime(true)-$_SESSION['in_time'];\n\t$final_mem=memory_get_usage();\n\t$rapport='<request time=\"'.date('Y-m-d H:i:s').'\" gen=\"'.$gen_time.'\" start_mem=\"'.$_SESSION['mem_use'].'\" final_mem=\"'.$final_mem.'\" peak_mem=\"'.memory_get_peak_usage().'\"><client id=\"'.$_SESSION['user_id'].'\" ip=\"'.$_SERVER['REMOTE_ADDR'].'\"><navigateur>';\n\t\n\tforeach($_SESSION['client']['navigateur'] as $info=>$val)\n\t{\n\t\t$rapport.='<'.$info.'>'.$val.'</'.$info.'>';\n\t}\n\t\n\t$rapport.='</navigateur><url>'.$_SERVER['REQUEST_URI'].'</url><sql nb_req=\"'.$bdd->nbreq.'\" req_time=\"'.$bdd->reqtime.'\" />';\n\t\n\tif($_SESSION['count_erreurs']>0)\n\t{\n\t\t$rapport.='<errors>';\n\t\t\n\t\tforeach($_SESSION['erreurs'] as $erreur)\n\t\t{\n\t\t\t$rapport.=$erreur;\n\t\t}\n\t\t\n\t\t$rapport.='</errors>';\n\t\t$_SESSION['erreurs']=array();\n\t\t$_SESSION['count_erreurs']=0;\n\t}\n\t\n\thook('traite_fin_de_page_compete_report',array(\"report\"=>$rapport));\n\t\n\t$rapport.=$_HOOK['report'].'</client>';\n\t\n\tif(isset($_POST))\n\t{\n\t\t$rapport.='<post>';\n\t\tforeach($_POST as $k=>$v)\n\t\t{\n\t\t\t$rapport.='<v>\"'.$k.'\" => \"'.$v.'\"';\n\t\t}\t\t\n\t\t$rapport.='</post>';\n\t}\n\t$rapport.='</request>\n\n';\n\t\n\t\n\t$log_file=date('Y_m_d');\n\t$log=fopen($path.'data/log/'.$log_file,'a+');\n\tfputs($log,$rapport);\n\tfclose($log);\n\treturn true;\n}", "title": "" }, { "docid": "2e59a7d93ce3f4f48b07088235d4f5a2", "score": "0.6132904", "text": "public function bienvenido(){\n // echo \"Bienvenido a \".$this->nombre.\" \".self::$url;\n //o\n echo \"Bienvenido a \".\" <b> $this->nombre </b> \".\" con URL: \".Pagina::$url;\n }", "title": "" }, { "docid": "2c167cf59d81862cbdcb2d27bace2a39", "score": "0.6130164", "text": "public function bibliographiePage()\n {\n /** Géneration de la page Bibliographie */\n $vue = new Vue(\"Bibliographie\");\n $vue->generer(array(' ' => \" \"));\n }", "title": "" }, { "docid": "309d705bc8c0196bb26f70888beca623", "score": "0.61241025", "text": "protected function _page_changed () {}", "title": "" }, { "docid": "a9b4a460f66c61628284613e35aaa030", "score": "0.61173475", "text": "public function mostraPagina() {\n $this->assign('colonna_laterale',$this->colonna_laterale);\n $this->assign('menu_laterale',$this->menu_laterale);\n $this->display('index_'.$this->_layout.'.tpl');\n }", "title": "" }, { "docid": "4a9ac225cbd479c82fa3e60e5e36668a", "score": "0.61083215", "text": "function elencoPiante($elem) { //ho l'elenco con nome, immagine e descrizione delle piante. Per ogni riga devo stampare\r\n $stampa = \"<p> Risultato della ricerca: </p> \\t \";\r\n\r\n if($elem->num_rows == 0) {\r\n if(isset($_SESSION['query'])) //se SESSION = set ho salvato i valori prima di uscire dalla pagina e li elimino per evitare di ricaricare ricerche precedenti\r\n unset($_SESSION['query']);\r\n\r\n $content = file_get_contents(\"templates/contentPiante.txt\");\r\n $content = str_replace('RicercaFallita', ' <p id=\"noresults\"> <strong> Nessun risultato trovato. Si prega di usare nuovi parametri. </strong></p>', $content);\r\n $stampa .= $content;\r\n }\r\n else {\r\n $stampa .= \"<ul id =\\\"piante\\\">\\n\";\r\n\r\n foreach($elem as $campo => $valore) {\r\n $stampa .= \"\\t<li> <a href='stampaPianta.php?nome=\". $valore['NomeScientifico'] . \"'>\".$valore['NomeScientifico'].\"\r\n <img src=\\\"images/piante/\".$valore['Immagine'] . \"\\\" alt=\\\"pianta di \".$valore[\"NomeScientifico\"].\"\\\"/> </a> </li>\\n\";\r\n }\r\n $stampa .= \"</ul> \\n \\n\r\n\r\n\t\t\t <p id=\\\"tornasu\\\"><a href= '#header'>Torna a inizio pagina</a></p>\";\r\n }\r\n $stampa .= \"\\n \";\r\n echo $stampa;\r\n\r\n}", "title": "" }, { "docid": "67d85519aa2deecc040a20881a561620", "score": "0.6106872", "text": "private function affich_liste_prest(){\n $page = '<h1> Liste des prestations </h1> <ul> ';\n foreach($this->tab as $pre){\n $page=$page.'<div class=\"col-lg-4 col-md-4\">\n <div class=\"fh5co-blog animate-box\">\n <a href=\"#\"><img class=\"img-responsive\" src=\"images/'.$pre->img.'\"alt=\"\"></a>\n <div class=\"blog-text\">\n <h3><a href=\"#\">'.$pre->nom.'</a></h3>\n <span class=\"posted_on\">'.$pre->prix.' €</span>\n <a href=\"#\" class=\"btn btn-primary\">Lire plus</a>\n </div> \n </div>\n </div>';\n }\n return $page;\n\n }", "title": "" }, { "docid": "46770037534e4bc3a236819b29d4986a", "score": "0.60981387", "text": "function cl_habitsituacaoinscricao() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"habitsituacaoinscricao\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "fd2e84defe0aed577e4ece2ea38e8d43", "score": "0.6097958", "text": "public function accueil() : String {\n //definition de l'url du lien qui mene a la creation de liste\n $url_creerlistes = $this -> container -> router -> pathFor ( 'creerliste' );\n //Message de bienvenue du site\n $html = <<<END\n\n<center><h1>Bienvenue sur le site MyWishList</h1></center>\n\n<p>MyWishList est une application en ligne pour créer, partager et gérer des listes de cadeaux.\nL'application permet de créer une liste de souhaits à l'occasion d'un événement\nparticulier (anniversaire, fin d'année, mariage, retraite …) et lui permet de diffuser cette liste de\nsouhaits à un ensemble de personnes concernées. Vous pouvez donc consulter cette liste\net s'engager à offrir 1 élément de la liste. \n</p>\n<a class='button' href=\"$url_creerlistes\">Créer une liste</a>\n\nEND;\n return $html;\n }", "title": "" }, { "docid": "74294817f99ae44db00e27986cb3e368", "score": "0.6097056", "text": "function buscador(){\n\t\t$pagina=$this->load_template('Busqueda de registros');\t\t\t\t\t\t\n\t\t$buscador = $this->load_page('app/views/default/modules/m.buscador.php');\n\t\t$pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$buscador , $pagina);\t\n\t\t$this->view_page($pagina);\n\t}", "title": "" }, { "docid": "0ed273aaca01301c3b3edc3150af074d", "score": "0.60931045", "text": "public function impostaPagina() {\n $VHome= USingleton::getInstance('VHome');\n $CRegistrazione=USingleton::getInstance('CRegistrazione');\n $Session= USingleton::getInstance('USession');\n $registrato=$CRegistrazione->getUtenteRegistrato();\n $this->mux();\n if($registrato) { \n if($Session->getValore('tipo_utente')==\"normale\"){\n $fclassifica=USingleton::getInstance('FClassifica');\n $classifica=$fclassifica->getClassifica();\n $classifica1=array();\n foreach($classifica as $key => $class)\n array_push($classifica1, $class);\n $VHome->PaginaRegistrato($classifica1);\n }\n else if($Session->getValore('tipo_utente')==\"Admin\")\n header(\"location:index.php?controller=Amministratore&task=amministratore\");\n else return $VHome->processaTemplate('loginfallito');\n }\n else{\n $VHome->PaginaGuest();\n $Session->end();\n } \n }", "title": "" }, { "docid": "1eff945aef2a7dd0a170de60ed64f1b2", "score": "0.6088837", "text": "function cl_pctipodoccertif() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pctipodoccertif\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "f4ada916626bbecbfb543fd6b7e2f2db", "score": "0.6086297", "text": "function cl_cadvencdesc() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"cadvencdesc\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "1e73c3550d54812e25f22144f4194002", "score": "0.60817295", "text": "function preparerPaiement()\n{\n $_SESSION['panier']['verrouille'] = true;\n header(\"Location: URL_DU_SITE_DE_BANQUE\");\n}", "title": "" }, { "docid": "0f722fcfd5aa3f0347375e008f33ede5", "score": "0.6081162", "text": "function formulaires_editer_partageur_charger_dist() {\n\t$contexte = array(\n 'titre' => '',\n 'url_site' => 'http://'\n\t);\n\treturn $contexte;\n}", "title": "" }, { "docid": "c3a11108e29558d8df36ba2ee8c3e1e1", "score": "0.6079676", "text": "function cl_sau_fechamento() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"sau_fechamento\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "d8ac9d34e6afd62e32b0e677203d7703", "score": "0.60768807", "text": "function afficherClasse(){\n $dbh = getConnexion();\n $select = $dbh->query('SELECT idClasse,nomClasse FROM classe');\n while ($donnees = $select->fetch()){\n echo (\"<p>\".$donnees['nomClasse'].\"<a href=administartion.php?idClasseModif=\".$donnees['idClasse'].\"> éditer </a><a href=administartion.php?idClasseSupprime=\".$donnees['idClasse'].\"> supprimer </a>\");\n }\n \n }", "title": "" }, { "docid": "ff2efc148ce56eda27191c111c0cdcfc", "score": "0.607478", "text": "function ePaginas($a) {\n\t\t# Ejemplo: \"index.php?seccion=pagina\" podría ser \"index.php/seccion/pagina.html\".\n\t\t# Para esto caso necesitaremos las variables:\n\t\t# $this->u[1] = '/' ;\n\t\t# $this->u[2] = '/' ;\n\t\t# $this->u[3] = '/' ;\n\t\t# $this->u[4] = '.html' ;\n\t\t# Si no deseas utilizar esta opción deja los valores tal como están.\n\t\t$this->u[1] = '' ;\n\t\t$this->u[2] = '/' ;\n\t\t$this->u[3] = '/' ;\n\t\t$this->u[4] = '' ;\n\t\t$this->codigo = $a ;\n\t\t$con = mysql_query(eregi_replace('select (.+) from','select count(*) from',$this->codigo)) ;\n\t\t$this->total_res = mysql_result($con,0,0) ;\n\t}", "title": "" }, { "docid": "6d16cc028db506bf4c7cc73526e49c84", "score": "0.6069282", "text": "public function pages();", "title": "" }, { "docid": "230f0333a67db409a3e803d73a7c4127", "score": "0.60689116", "text": "private function affich_liste_cat(){\n $cat = Categorie::get();\n $this->tab=$cat;\n $page = '';\n $i = 1;\n foreach($this->tab as $pre){\n $page = $page. '<li><a href=affich_cat/'.$pre->.'.php>'.$pre->nom.'</a></li>';\n $i++;\n }\n \n $this->lienPrest = '../../Index.php/CatalogueController/affich_prest';\n $this->lienCat = '../../Index.php/CatalogueController/affich_cat';\n $this->lienAccueil = '../..';\n \n return $page;\n \n }", "title": "" }, { "docid": "f54a6e0b95824beeacb630c56fe96bf8", "score": "0.6062427", "text": "function cl_cgs_undendereco() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"cgs_undendereco\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "d62e1b2f3dd0d0bbfba9076cf543f03c", "score": "0.60611624", "text": "function forum_sac_compa($id_compa)\n{\n\tselect_table(1);\n\t\t$sql = my_fetch_array(\"SELECT `pseudo1` FROM `ibf_members` WHERE `compa1` LIKE \". $id_compa .\" OR `compa2` LIKE \". $id_compa );\n\t\t$destinataires = \"\";\n\n\t\twhile($sql[0]--)\n\t\t{\n\t\t\t$destinataires .= $sql[$id]['pseudo1'] . \",\";\n\t\t}\n\t\t\n\t\t$destinataires = rtrim($destinataires,\",\");\n\t\t\n\t\tselect_table(0);\n\t\t\n\t\t// on fait un coup de header???\n\t\t// remarque que si tu utilise les trucs de compressions de flux, peut etre que le header suffira.\n\t\theader(\"Location: http://\". $_SERVER[\"SERVER_NAME\"] . dirname($_SERVER[\"REQUEST_URI\"]) .\"/forum/index.php?CODE=04&act=Msg&multisac=\" . $destinataires );\n\t\t//return \"forum/index.php?CODE=04&act=Msg&multisac=\". $destinataires;\n}", "title": "" }, { "docid": "23ee01efb89aeba8ef82a5c41bec46c0", "score": "0.6060117", "text": "public function freelance()\n {\n return \"page coming soon\";\n }", "title": "" }, { "docid": "3d3115e67259a7555a341b8d2c860c3b", "score": "0.6058554", "text": "function cl_empautorizainscricaopassivo() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empautorizainscricaopassivo\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "91a53402e55fc004426b2d301d7c192a", "score": "0.60508674", "text": "function pagina_actual(){\n\treturn isset($_GET['p']) ? (int)$_GET['p']: 1; \n}", "title": "" }, { "docid": "3e4ca14c2f14c941c4b79324d8cd5942", "score": "0.60505575", "text": "function embaumat(){\r\n\t\t\t\t$pagina=$this->load_template('Embauma\\'t a la Vall de Lord, una experiència única, un viatge al passat','app/views/default/sections/s.menuembaumat.php');\t\t\t\t\t\t\r\n\t\t\t\t$buscador = $this->load_page('app/views/default/modules/embaumat/embaumat.php');\r\n\t\t\t\t$pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$buscador , $pagina);\t\r\n\t\t\t\t$this->view_page($pagina);\r\n\t\t\t}", "title": "" }, { "docid": "5266fa28f063e5fc3ead8e29bccd21bc", "score": "0.60490656", "text": "private function affich_liste_prest_par_cat(){\n $cat = Categorie::where('id', '=', $this->id)->first();\n $nom = $cat->nom;\n\n $page = '<h1> Prestations de la catégorie: '.$nom.'</h1> <ul>';\n $i = 1;\n foreach($this->tab as $pre){\n $page=$page.'<div class=\"col-lg-4 col-md-4\">\n <div class=\"fh5co-blog animate-box\">\n <a href=\"#\"><img class=\"img-responsive\" src=\"images/'.$pre->img.'\"alt=\"\"></a>\n <div class=\"blog-text\">\n <h3><a href=\"#\">'.$pre->nom.'</a></h3>\n <span class=\"posted_on\">'.$pre->prix.' €</span>\n <a href=\"#\" class=\"btn btn-primary\">Lire plus</a>\n </div> \n </div>\n </div>';\n $i++;\n }\n \n $this->lienPrest = '../../CatalogueController/affich_prest';\n $this->lienCat = '../../CatalogueController/affich_cat';\n $this->lienAccueil = '../../..';\n \n return $page;\n }", "title": "" }, { "docid": "7c1ee3d7acfe2a72babef525636b49a5", "score": "0.60488206", "text": "function displayPageContent(){\n // Déclaration des variables :\n $output = '';\n $articlesCount = 0;\n\n // Le dossier existe-t-il\n if( file_exists( 'articles/' ) ){\n $output .= '<p>Le dossier \"articles\" existe.</p>';\n $output .= '<p>Liste des fichiers dans le dossier \"articles\" :</p>';\n foreach ( scandir( 'articles/' ) as $id => $fichier ){\n $output .= '<p>Fichier n°' . $id . '; <br>Nom de fichier : ' . $fichier . '</p>';\n\n //On vérifie que le nom du ficher est \"article?.txt\"\n if ( preg_match( '/article[0-9]+\\.txt/', $fichier ) ){\n $articlesCount++;\n }\n };\n $output .= '<strong>Nombre d\\'articles : ' . $articlesCount . '</strong>';\n } else {\n $output .= '<p>Le dossier \"articles\" n\\'existe pas.</p>';\n }\n $output .= buildArticlesMenu($articlesCount);\n return $output;\n}", "title": "" }, { "docid": "9f48f1da1aaa17f92d7d2c8823ee7b65", "score": "0.6045945", "text": "function index_article2(){\n $bdd = important();\n $erreur = \"\";\n $reponse = $bdd->query(\"SELECT * FROM Publication ORDER BY date_publi DESC\");\n $en_haut = \"\";\n $i = 1;\n\n while($donne = $reponse->fetch_array()){\n if($i <=6 && $i>2){\n $nom = select_particulier(\"Prenom\",\"Utilisateur\",\"id_utilisateur\",$donne['id_utilisateur']);\n $en_haut = $en_haut.\"\n <div class='article_top'>\n <a href='pageweb/article.php?id=\".$donne['id_publication'].\"'><div class='img_top \".couleur_categorie($donne['Categorie']).\"'><div class='auteur'>\".$nom['Prenom'].\", le \".$donne['date_publi'].\"</div></div></a>\n <div class='titre_top'>\".$donne['Titre'].\"</div>\n <div class='preview_top'>\".substr($donne['Contenu'],1,300);\n\n if(strlen ($donne['Contenu'] )> 300){\n $en_haut = $en_haut.\"...<a href='pageweb/article.php?id=\".$donne['id_publication'].\"'>Lire la suite</a>\";\n }\n $en_haut = $en_haut.\"</div>\n </div>\";\n\n\n }\n $i++;\n }\n\n return $en_haut;\n}", "title": "" }, { "docid": "5472828f79bb4ee258bc44608b1df740", "score": "0.60399675", "text": "function principal()\n {\n\t\t$pagina=$this->load_template('Pagina Principal MVC');\t\t\t\t\n\t\t$html = $this->load_page('app/views/default/modules/m.principal.php');\n\t\t$pagina = $this->replace_content('/\\#CONTENIDO\\#/ms' ,$html , $pagina);\n\t\t$this->view_page($pagina);\n }", "title": "" }, { "docid": "ea8a6765421b00e9e1c61393fe71930a", "score": "0.6022841", "text": "function cl_agualeiturista() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"agualeiturista\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "35fbb51b1508cd0388f4af27ba0dce60", "score": "0.5998772", "text": "function index_article3($categorie){\n $bdd = important();\n $erreur = \"\";\n $reponse = $bdd->query(\"SELECT * FROM Publication WHERE Categorie='\".$categorie.\"' ORDER BY date_publi DESC\");\n $en_haut = \"\";\n $i = 1;\n while($donne = $reponse->fetch_array()){\n if($i <=2){\n $en_haut = $en_haut.\"\n <a href='pageweb/article.php?id=\".$donne['id_publication'].\"'>\n <div class='article \".couleur_categorie($donne['Categorie']).\"'><p>\".$donne['Titre'].\"</p></div>\n </a>\";\n $i++;\n }else{\n break;\n }\n }\n if($i<2){\n $en_haut = $en_haut.\"Il n'y a pas encore d'article\";\n }\n return $en_haut;\n}", "title": "" }, { "docid": "6035e48c7a190f79b00c54de2ebf01b3", "score": "0.5994111", "text": "function getContenuDuPanier();", "title": "" }, { "docid": "6a68a5c67df003040df8b9a02f87a615", "score": "0.5991005", "text": "function seo_affiche_milieu($vars){\n\tinclude_spip('inc/autoriser');\n\tinclude_spip('inc/presentation');\n\t$config = unserialize($GLOBALS['meta']['seo']);\n\n\t// Rubrique\n\tif (in_array($vars[\"args\"][\"exec\"], array('naviguer', 'rubrique')) && $vars[\"args\"][\"id_rubrique\"]!=''){\n\t\t$objet = 'rubrique';\n\t\t$id_objet = $vars[\"args\"][\"id_rubrique\"];\n\t\t// Article\n\t} elseif (in_array($vars[\"args\"][\"exec\"], array('articles', 'article')) && $vars[\"args\"][\"id_article\"]!='') {\n\t\t$objet = 'article';\n\t\t$id_objet = $vars[\"args\"][\"id_article\"];\n\t\t// Other case we quit\n\t} else {\n\t\treturn $vars;\n\t}\n\n\t// If meta tags are activates\n\tif ($config['meta_tags']['activate']!='yes' || $config['meta_tags']['activate_editing']!='yes'){\n\t\treturn $vars;\n\t}\n\n\t$ret = '';\n\n\t$bouton = bouton_block_depliable(_T('seo:meta_tags'), false, \"SEO\");\n\t$ret .= debut_block_depliable(false, \"SEO\");\n\n\t// List\t\t\n\t$ret .= recuperer_fond('prive/squelettes/inclure/seo_metas', array('objet' => $objet, 'id_objet' => $id_objet));\n\n\t$ret .= fin_block();\n\n\t// Create the border with the content\n\t$ret = '<div class=\"nettoyeur\"></div>' . debut_cadre_enfonce(_DIR_PLUGIN_SEO . 'img_pack/meta_tags-24.png', true, \"\", $bouton) . $ret . fin_cadre_enfonce(true);\n\n\t$vars[\"data\"] .= $ret;\n\n\treturn $vars;\n}", "title": "" }, { "docid": "580b8609e886c7807609b7eea4d812bf", "score": "0.5986295", "text": "function getPage() {}", "title": "" }, { "docid": "40d88ffdb999403d7b12fa6503e32ccc", "score": "0.59842193", "text": "function AfficheListAjouteGRP()\n{\n $aMenu = genererMenu();\n AfficheEntete();\n //affiche le menu\n AfficheMenu($aMenu);\n //recupere l'Item de tableau n31_menu_admin\n $menuItem = recupereMenuInf($aMenu);\n AfficheAjouteGRP();\n AffichePied();\n //var_dump($aTous);\n if (AjouterNouveauInfGRP())\n {\n echo \"<h1>Votre information est ajouté dans le base des donneée</h1>\";\n }\n\n}", "title": "" }, { "docid": "d305ed473d84e09dfa1e0fe9d5b0e4cc", "score": "0.5982285", "text": "public function afficher_page($id){ \n $req=$this->_db->query(\" SELECT * FROM pages WHERE id='$id' \");\n $res=$req->fetchAll();\n return($res);\n\n }", "title": "" }, { "docid": "53e7ca1f46577a0a7c954459afd312d2", "score": "0.5981775", "text": "function titel($page_name,$page_ref,$cat,$subcat,$subsubcat) {\n\t\tglobal $db;\n\t\t\n\t\tif ($page_ref == 'home' || $page_ref == 'about' || $page_ref == 'contact' || $page_ref == 'disclaimer' || $page_ref == 'faq' || $page_ref == 'search') {\n\t\techo 'Compare Imports - Compare the hottest products and gadgets from China wholesale webshops';\n\t\t}\n\t\t\n\t\t elseif ($page_ref == 'coupons') {\n\t\techo 'Compare Imports - The best coupons for China wholesale webshops';\n\t\t}\n\t\t\n\t\telseif ($page_ref == 'shop-reviews') {\n\t\techo 'Compare Imports - Reviews for China wholesale webshops on price, shipping, service and return policy';\n\t\t}\n\t\t\n\t\telseif ($page_ref != 'c' && $page_ref != 'sc' && $page_ref != 'sku') {\n\t\t\techo 'Compare Imports - '. $page_name .'';\n\t\t}\n\t\t\n\t\telseif (isset($subsubcat)) {\n\t\t\techo 'Compare Imports - '. $subcat['name'] .' - '. $subsubcat['name'] .'';\n\t\t}\n\t\t\n\t\telseif (isset($subcat)) {\n\t\t\techo 'Compare Imports - '. $cat['name'] .' - '. $subcat['name'] .'';\n\t\t}\n\t\t\n\t\telseif (isset($cat)) {\n\t\t\techo 'Compare Imports - '. $cat['name'] .'';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['pid']) && ($page_ref == 'sku')) {\n\t\t$product = $_GET['pid'];\n\t\t\n\t\t// IK WIL EIGENLIJK NIET OPNIEUW EEN SQL QUERY (IVM MET ZELFDE INFO AL EERDER IN ANDERE FUNCTIE OPGEHAALD)\n\t\t\n\t\t// prepare statement\n\t\t$statement = $db->prepare(\"SELECT `title` FROM `product_details` WHERE `active` = 1 AND `id` = ?\");\n\t\t$statement->bind_param('i', $product);\n\t\t// execute & store\n\t\t$statement->execute();\n\t\t$statement->store_result();\n\t\t$statement->bind_result($title);\n\t\t$statement->fetch();\n\t\t\n\t\techo 'Compare Imports - '. $title;\n\t\t\n\t\t// free the result to clear memory\n\t\t$statement->free_result();\n\t\t$statement->close();\n\n\t\t}\t\n\t}", "title": "" }, { "docid": "9619ad898f98a32c9d772ee05109970f", "score": "0.5978837", "text": "function f_surligne ($texte) {\r\n\tif (isset($_SERVER['HTTP_REFERER']) || $_GET['var_recherche']) {\r\n\t\tinclude_spip('inc/surligne');\r\n\t\t$texte = surligner_mots($texte);\r\n\t}\r\n\treturn $texte;\r\n}", "title": "" }, { "docid": "a9e67cb3ffb904b3e61b447aeda34568", "score": "0.59659505", "text": "function cl_planilhadistribuicao() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"planilhadistribuicao\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "f5970aceada7ebac1c3b4e4a88db72ee", "score": "0.59613955", "text": "function about(&$page) {\r\n\t\r\n\t\t//naplnit $page->data->premenna datami pre sablonu\r\n\t\t$page->data->test = 'This is from About action!';\r\n\t\r\n\t}", "title": "" }, { "docid": "b8c054131d335525b1a331cf87a804d8", "score": "0.59576535", "text": "function Documentos() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_chave_aux = $_REQUEST['w_chave_aux'];\r\n\r\n $SQL = new db_getUorgList; $RS = $SQL->getInstanceOf($dbms,$w_cliente,$w_chave,null,null,null,null);\r\n foreach ($RS as $row) $w_nome_unidade = f($row,'nome');\r\n \r\n if ($w_troca>'' && $O!='E') {\r\n // Se for recarga da página \r\n $w_tipo = $_REQUEST['w_tipo'];\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_ordem = $_REQUEST['w_ordem'];\r\n $w_descricao = $_REQUEST['w_descricao'];\r\n $w_caminho = $_REQUEST['w_caminho'];\r\n } elseif ($O=='L') {\r\n // Recupera todos os registros para a listagem \r\n $SQL = new db_getUorgAnexo; $RS = $SQL->getInstanceOf($dbms,$w_chave,null,null,null,$w_cliente);\r\n $RS = SortArray($RS,'ordem','asc','nome','asc');\r\n } elseif (strpos('AEV',$O)!==false) {\r\n // Recupera os dados do endereço informado \r\n $SQL = new db_getUorgAnexo; $RS = $SQL->getInstanceOf($dbms,$w_chave,$w_chave_aux,null,null,$w_cliente);\r\n foreach ($RS as $row) {\r\n $w_tipo = f($row,'sq_tipo_arquivo');\r\n $w_nome = f($row,'nome');\r\n $w_ordem = f($row,'ordem');\r\n $w_descricao = f($row,'descricao');\r\n $w_caminho = f($row,'chave_aux');\r\n }\r\n } \r\n Cabecalho();\r\n head();\r\n if (strpos('IAEP',$O)!==false) {\r\n ScriptOpen('JavaScript');\r\n ValidateOpen('Validacao');\r\n if (strpos('IA',$O)!==false) {\r\n Validate('w_nome','Título','1','1','1','255','1','1');\r\n Validate('w_ordem','Ordem','1','1','1','4','','0123456789');\r\n Validate('w_tipo','Tipo','SELECT','1','1','18','','1');\r\n Validate('w_descricao','Descrição','1','1','1','1000','1','1');\r\n if ($O=='I') {\r\n Validate('w_caminho','Arquivo','','1','5','255','1','1');\r\n } \r\n } \r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n ShowHTML('</HEAD>');\r\n if ($w_troca>'') {\r\n BodyOpenClean('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } elseif ($O=='I') {\r\n BodyOpenClean('onLoad=\\'document.Form.w_nome.focus()\\';');\r\n } elseif ($O=='A') {\r\n BodyOpenClean('onLoad=\\'document.Form.w_descricao.focus()\\';');\r\n } else {\r\n BodyOpenClean('onLoad=\\'this.focus()\\';');\r\n } \r\n ShowHTML('<B><FONT COLOR=\"#000000\">'.$w_TP.'</font></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<div align=center><center>');\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n ShowHTML('<tr><td colspan=4 align=center><font size=\"2\"><b>'.$w_nome_unidade.'&nbsp;');\r\n if ($O=='L') {\r\n // Exibe a quantidade de registros apresentados na listagem e o cabeçalho da tabela de listagem \r\n ShowHTML('<tr><td><a accesskey=\"I\" class=\"SS\" href=\"'.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\"><u>I</u>ncluir</a>&nbsp;');\r\n ShowHTML(' <a accesskey=\"F\" class=\"ss\" HREF=\"javascript:this.status.value;\" onClick=\"opener.focus(); window.close();\"><u>F</u>echar</a>&nbsp;');\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>'.linkOrdena('Ordem','ordem').'</td>');\r\n ShowHTML(' <td><b>'.linkOrdena('Tipo do arquivo','nm_tipo_arquivo').'</td>');\r\n ShowHTML(' <td><b>'.linkOrdena('Título','nome').'</td>');\r\n ShowHTML(' <td><b>'.linkOrdena('Descrição','descricao').'</td>');\r\n ShowHTML(' <td><b>'.linkOrdena('Formato','tipo').'</td>');\r\n ShowHTML(' <td><b>'.linkOrdena('KB','tamanho').'</td>');\r\n ShowHTML(' <td class=\"remover\"><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n // Se não foram selecionados registros, exibe mensagem \r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=7 align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem \r\n foreach($RS as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td>'.f($row,'ordem').'</td>');\r\n ShowHTML(' <td>'.f($row,'nm_tipo_arquivo').'</td>');\r\n ShowHTML(' <td>'.LinkArquivo('HL',$w_cliente,f($row,'chave_aux'),'_blank','Clique para exibir o arquivo em outra janela.',f($row,'nome'),null).'</td>');\r\n ShowHTML(' <td>'.Nvl(f($row,'descricao'),'---').'</td>');\r\n ShowHTML(' <td>'.f($row,'tipo').'</td>');\r\n ShowHTML(' <td align=\"right\">'.round(f($row,'tamanho')/1024,1).'&nbsp;</td>');\r\n ShowHTML(' <td align=\"top\" nowrap class=\"remover\">');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_chave='.$w_chave.'&w_chave_aux='.f($row,'chave_aux').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">AL</A>&nbsp');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=E&w_chave='.$w_chave.'&w_chave_aux='.f($row,'chave_aux').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">EX</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } elseif (strpos('IAEV',$O)!==false) {\r\n if (strpos('EV',$O)!==false) $w_Disabled=' DISABLED ';\r\n ShowHTML('<FORM action=\"'.$w_pagina.'Grava&SG='.$SG.'&O='.$O.'\" name=\"Form\" onSubmit=\"return(Validacao(this));\" enctype=\"multipart/form-data\" method=\"POST\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P1\" value=\"'.$P1.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P2\" value=\"'.$P2.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P3\" value=\"'.$P3.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"P4\" value=\"'.$P4.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"TP\" value=\"'.$TP.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"R\" value=\"'.$R.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave_aux\" value=\"'.$w_chave_aux.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_atual\" value=\"'.$w_caminho.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n if ($O=='I' || $O=='A') {\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms,$w_cliente);\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"2\" bgcolor=\"#D0D0D0\" style=\"border: 2px solid rgb(0,0,0);\"><b><font color=\"#BC3131\">ATENÇÃO: o tamanho máximo aceito para o arquivo é de '.(f($RS,'upload_maximo')/1024).' KBytes</font></b>.</td>');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_upload_maximo\" value=\"'.f($RS,'upload_maximo').'\">');\r\n } \r\n ShowHTML(' <tr><td colspan=\"2\"><b><u>T</u>ítulo:</b><br><input '.$w_Disabled.' accesskey=\"T\" type=\"text\" name=\"w_nome\" class=\"STI\" SIZE=\"75\" MAXLENGTH=\"255\" VALUE=\"'.$w_nome.'\" title=\"OBRIGATÓRIO. Informe um título para o arquivo.\"></td>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>O</u>rdem:</b><br><input '.$w_Disabled.' accesskey=\"O\" type=\"text\" name=\"w_ordem\" class=\"STI\" SIZE=\"4\" MAXLENGTH=\"255\" VALUE=\"'.$w_ordem.'\" title=\"OBRIGATÓRIO. Informe um número de ordem para o arquivo.\"></td>');\r\n SelecaoTipoArquivoTab('<u>T</u>ipo:','T',null,$w_tipo,null,'w_tipo',null);\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr><td colspan=\"2\"><b><u>D</u>escrição:</b><br><textarea '.$w_Disabled.' accesskey=\"D\" name=\"w_descricao\" class=\"STI\" ROWS=5 cols=65 title=\"OBRIGATÓRIO. Descreva a finalidade do arquivo.\">'.$w_descricao.'</TEXTAREA></td>');\r\n ShowHTML(' <tr><td colspan=\"2\"><b>A<u>r</u>quivo:</b><br><input '.$w_Disabled.' accesskey=\"R\" type=\"file\" name=\"w_caminho\" class=\"STI\" SIZE=\"80\" MAXLENGTH=\"100\" VALUE=\"\" title=\"OBRIGATÓRIO. Clique no botão ao lado para localizar o arquivo. Ele será transferido automaticamente para o servidor.\">');\r\n if ($w_caminho>'') {\r\n ShowHTML(' <b>'.LinkArquivo('SS',$w_cliente,$w_caminho,'_blank','Clique para exibir o arquivo atual.','Exibir',null).'</b>');\r\n } \r\n ShowHTML(' <tr><td align=\"center\" colspan=\"2\"><hr>');\r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Excluir\" onClick=\"return confirm(\\'Confirma a exclusão do registro?\\');\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.$w_pagina.$par.'&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'&O=L\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n //ShowHTML ' history.back(1);' \r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "e41adb110184388710895195ac15391b", "score": "0.59498054", "text": "function cl_rhsefipcancela() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"rhsefipcancela\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "29eff74d086a505c0078647a2379dde7", "score": "0.5942874", "text": "function cl_solicitem() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"solicitem\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "2f0cd8073440b15b6ee89ddce46531a2", "score": "0.59325385", "text": "function cl_empprestarecibo() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empprestarecibo\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "a68caa93797d4e28147e940920131694", "score": "0.59309584", "text": "function cl_debcontapedidonet() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"debcontapedidonet\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "ec57987f6b6548737ddad9044eb88a45", "score": "0.5927254", "text": "function AfficheListAjoute()\n { \n $aMenu = genererMenu();\n AfficheEntete();\n //affiche le menu\n AfficheMenu($aMenu);\n //recupere l'Item de tableau n31_menu_admin\n $menuItem = recupereMenuInf($aMenu);\n //recupere le nom du tableau dynamiquement\n $tableau = $menuItem['tableau'];\n\n switch ($tableau) {\n case \"n31__coordonnees_CDJ\" :\n //affiche le formulaire pour entre les donnees\n AfficheAjouteCDJ($tableau);\n //si le command \"Insert\" est excecute avec succes\n if (AjouterNouveauInfNomCDJ())\n {\n echo \"<h1>Votre information est ajouté dans le base des donneée</h1>\";\n }\n break;\n\n case \"n31__service_de_garde\" :\n\n //affiche le formulaire pour entre les donnees\n AfficheAjouteSDG($tableau);\n if (verifSDG())\n {\n echo \"<h1>Il y a déjà information pour le choisi Camp de jour </h1>\";\n }\n else\n {\n //si le command \"Insert\" est excecute avec succes\n if (AjouterNouveauInfNomSDG())\n {\n echo \"<h1>Votre information est ajouté dans le base des donneée</h1>\";\n }\n }\n break;\n\n default :\n AfficheAjoute($tableau);\n if (AjouterNouveauInfNom($tableau))\n {\n echo \"<h1>Votre information est ajouté dans le base des donneée</h1>\";\n }\n break;\n\n }\n\n AffichePied();\n }", "title": "" }, { "docid": "c7460819e73f0010430cf0a6710afd08", "score": "0.5926595", "text": "function cl_sau_upsparalisada() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"sau_upsparalisada\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "1bc0168318b5bfddab01f65134bce166", "score": "0.5924466", "text": "function Interessados() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_chave_aux = $_REQUEST['w_chave_aux'];\r\n\r\n if ($w_troca > '') {\r\n // Se for recarga da página\r\n $w_principal = $_REQUEST['w_principal'];\r\n $w_nm_pessoa = $_REQUEST['w_nm_pessoa'];\r\n } elseif ($O == 'L') {\r\n // Recupera todos os registros para a listagem\r\n $sql = new db_getDocumentoInter;\r\n $RS = $sql->getInstanceOf($dbms, $w_chave, null, 'N', null);\r\n $RS = SortArray($RS, 'principal', 'desc', 'nome', 'asc');\r\n } elseif (!(strpos('AEV', $O) === false) && $w_troca == '') {\r\n // Recupera os dados do registro informado\r\n $sql = new db_getDocumentoInter;\r\n $RS = $sql->getInstanceOf($dbms, $w_chave, $w_chave_aux, 'N', null);\r\n foreach ($RS as $row) {\r\n $RS = $row;\r\n break;\r\n }\r\n $w_nm_pessoa = f($RS, 'nome_resumido');\r\n $w_principal = f($RS, 'principal');\r\n }\r\n\r\n Cabecalho();\r\n head();\r\n if (!(strpos('IAEP', $O) === false)) {\r\n ScriptOpen('JavaScript');\r\n ValidateOpen('Validacao');\r\n if (strpos('IA', $O) !== false) {\r\n Validate('w_chave_aux', 'Interessado', 'HIDDEN', '1', '1', '18', '', '1');\r\n }\r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n ValidateClose();\r\n ScriptClose();\r\n }\r\n ShowHTML('<BASE HREF=\"' . $conRootSIW . '\">');\r\n ShowHTML('</head>');\r\n if ($w_troca > '') {\r\n BodyOpen('onLoad=\\'document.Form.' . $w_troca . '.focus()\\';');\r\n } else {\r\n BodyOpen(null);\r\n }\r\n ShowHTML('<B><FONT COLOR=\"#000000\">' . $w_TP . '</FONT></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<div align=center>');\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($O == 'L') {\r\n ShowHTML('<tr><td colspan=3 bgcolor=\"' . $conTrBgColorLightBlue2 . '\"\" style=\"border: 2px solid rgb(0,0,0);\">');\r\n ShowHTML(' Orientação:<ul>');\r\n ShowHTML(' <li>Insira cada um dos interessados complementares, lembrando que o interessado principal já foi cadastrado na tela de identificação.');\r\n ShowHTML(' </ul></b></font></td>');\r\n ShowHTML('<tr><td><font size=\"2\"><a accesskey=\"I\" class=\"SS\" href=\"' . $w_dir . $w_pagina . $par . '&R=' . $w_pagina . $par . '&O=I&w_chave=' . $w_chave . '&P1=' . $P1 . '&P2=' . $P2 . '&P3=' . $P3 . '&P4=' . $P4 . '&TP=' . $TP . '&SG=' . $SG . '\"><u>I</u>ncluir</a>&nbsp;');\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: ' . count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE WIDTH=\"100%\" bgcolor=\"' . $conTableBgColor . '\" BORDER=\"' . $conTableBorder . '\" CELLSPACING=\"' . $conTableCellSpacing . '\" CELLPADDING=\"' . $conTableCellPadding . '\" BorderColorDark=\"' . $conTableBorderColorDark . '\" BorderColorLight=\"' . $conTableBorderColorLight . '\">');\r\n ShowHTML(' <tr bgcolor=\"' . $conTrBgColor . '\" align=\"center\">');\r\n ShowHTML(' <td><b>Nome</td>');\r\n ShowHTML(' <td><b>CPF/CNPJ</td>');\r\n ShowHTML(' <td><b>RG/Inscrição estadual</td>');\r\n ShowHTML(' <td><b>Passaporte</td>');\r\n ShowHTML(' <td><b>Sexo</td>');\r\n ShowHTML(' <td><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (count($RS) <= 0) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"' . $conTrBgColor . '\"><td colspan=7 align=\"center\"><font size=\"2\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n foreach ($RS as $row) {\r\n $w_cor = ($w_cor == $conTrBgColor || $w_cor == '') ? $w_cor = $conTrAlternateBgColor : $w_cor = $conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"' . $w_cor . '\" valign=\"top\">');\r\n ShowHTML(' <td>' . f($row, 'nome') . '</td>');\r\n ShowHTML(' <td align=\"center\">' . nvl(f($row, 'identificador_principal'), '---') . '</td>');\r\n ShowHTML(' <td>' . nvl(f($row, 'identificador_secundario'), '---') . '</td>');\r\n ShowHTML(' <td>' . nvl(f($row, 'nr_passaporte'), '---') . '</td>');\r\n ShowHTML(' <td align=\"center\">' . nvl(f($row, 'nm_sexo'), '---') . '</td>');\r\n ShowHTML(' <td align=\"top\" nowrap>');\r\n ShowHTML(' <A class=\"HL\" HREF=\"' . $w_dir . $w_pagina . 'GRAVA&R=' . $w_pagina . $par . '&O=E&w_chave=' . $w_chave . '&w_chave_aux=' . f($row, 'chave_aux') . '&P1=' . $P1 . '&P2=' . $P2 . '&P3=' . $P3 . '&P4=' . $P4 . '&TP=' . $TP . '&SG=' . $SG . '\" onClick=\"return confirm(\\'Confirma desvinculação do pessoa ao documento?\\');\">Desvincular</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n }\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } elseif (!(strpos('IAEV', $O) === false)) {\r\n if (!(strpos('EV', $O) === false))\r\n $w_Disabled = ' DISABLED ';\r\n AbreForm('Form', $w_dir . $w_pagina . 'Grava', 'POST', 'return(Validacao(this));', null, $P1, $P2, $P3, $P4, $TP, $SG, $R, $O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"' . $w_chave . '\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_principal\" value=\"N\">');\r\n ShowHTML('<tr bgcolor=\"' . $conTrBgColor . '\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr>');\r\n SelecaoPessoaOrigem('<u>I</u>nteressado:', 'I', 'Clique na lupa para selecionar o interessado.', $w_chave_aux, null, 'w_chave_aux', null, null, null);\r\n ShowHTML(' <tr><td align=\"center\"><hr>');\r\n if ($O == 'E') {\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O == 'I')\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n else\r\n ShowHTML(' <input class=\"STB\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n }\r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\'' . montaURL_JS($w_dir, $w_pagina . $par . '&w_chave=' . $w_chave . '&P1=' . $P1 . '&P2=' . $P2 . '&P3=' . $P3 . '&P4=' . $P4 . '&TP=' . $TP . '&SG=' . $SG . '&O=L') . '\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n }\r\n ShowHTML('</table>');\r\n Rodape();\r\n}", "title": "" }, { "docid": "2d6e274c36161be4c61591f2f463717f", "score": "0.59244037", "text": "abstract public function load_page();", "title": "" }, { "docid": "385beccb9e52913a5746ef43939b9010", "score": "0.59230083", "text": "function search_pagesAction(){\n global $error, $value, $num_page;\n if (isset($_GET['sm_s'])) {\n if(!empty($_GET['value'])){\n $value = $_GET['value'];\n // $num_per_page = 3;\n // #Tổng số bản ghi\n // $list_pages_all = db_search_all_pages($value);\n // $total_row = count($list_pages_all);\n // #Số trang\n // $num_page = ceil($total_row / $num_per_page);\n load_view('search_pages');\n } else{\n $error['error'] = 'Bạn cần nhập thông tin TRANG cần tìm kiếm!';\n load_view('pageIndex');\n }\n }\n}", "title": "" }, { "docid": "162c058af981052423ca2327a6186580", "score": "0.5914864", "text": "function index_article(){\n $bdd = important();\n $erreur = \"\";\n $reponse = $bdd->query(\"SELECT * FROM Publication ORDER BY date_publi DESC\");\n $en_haut = \"\";\n $i = 1;\n while($donne = $reponse->fetch_array()){\n if($i <=2){\n $en_haut = $en_haut.\"\n <a href='pageweb/article.php?id=\".$donne['id_publication'].\"'>\n <div class='featured bloc\".$i.\" \".couleur_categorie($donne['Categorie']).\"'>\n <div class='titre'><p>\".$donne['Titre'].\"</p></div>\n </div>\n </a>\";\n $i++;\n }else{\n break;\n }\n }\n if($i<2){\n $en_haut = $en_haut.\"Il n'y a pas encore d'article\";\n }\n return $en_haut;\n}", "title": "" }, { "docid": "0a57d5053cb8df4887cc385c19779c7d", "score": "0.5907628", "text": "function Documento(){\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n \r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.$conSgSistema.' - Listagem de tipos de documentos</TITLE>');\r\n if ($P1==2) ShowHTML('<meta http-equiv=\"Refresh\" content=\"'.$conRefreshSec.'; URL='.str_replace($w_dir,'',MontaURL('MESA')).'\">');\r\n Estrutura_CSS($w_cliente);\r\n if ($w_troca>'' && $O!='E') {\r\n // Se for recarga da página\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_sigla = $_REQUEST['w_sigla'];\r\n $w_codigo_externo = $_REQUEST['w_codigo_externo'];\r\n $w_especie_documento = $_REQUEST['w_especie_documento'];\r\n $w_item = $_REQUEST['w_item'];\r\n $w_ativo = $_REQUEST['w_ativo'];\r\n } elseif ($O=='L') {\r\n $sql = new db_getTipoDocumento; $RS = $sql->getInstanceOf($dbms,null,$w_cliente,null,null);\r\n if ($p_ordena>'') {\r\n $lista = explode(',',str_replace(' ',',',$p_ordena));\r\n $RS = SortArray($RS,$lista[0],$lista[1],'receita','desc');\r\n } else {\r\n $RS = SortArray($RS,'receita','desc','nome','asc');\r\n }\r\n } elseif (!(strpos('AEVT',$O)===false && $w_troca=='')) {\r\n $sql = new db_getTipoDocumento; $RS = $sql->getInstanceOf($dbms,$w_chave,$w_cliente,null,null);\r\n foreach ($RS as $row) {$RS = $row; break;}\r\n $w_chave = f($RS,'chave');\r\n $w_nome = f($RS,'nome');\r\n $w_sigla = f($RS,'sigla');\r\n $w_codigo_externo = f($RS,'codigo_externo');\r\n $w_especie_documento = f($RS,'sq_especie_documento');\r\n $w_item = f($RS,'detalha_item');\r\n $w_ativo = f($RS,'nm_ativo');\r\n } \r\n if (!(strpos('IAET',$O)===false)) {\r\n ScriptOpen('JavaScript');\r\n modulo();\r\n ValidateOpen('Validacao');\r\n if (strpos('IA',$O)!==false) {\r\n Validate('w_nome','Nome','1','1','3','30','1','1');\r\n Validate('w_sigla','Sigla','1','1','2','10','1','1');\r\n Validate('w_codigo_externo','Código externo','1','','1','30','1','1');\r\n if ($w_mod_pa=='S') Validate('w_especie_documento','Espécie documental','SELECT','','1','18','1','1');\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n } elseif ($O=='E') {\r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'],'1','1','3','30','1','1');\r\n ShowHTML(' if (confirm(\"Confirma a exclusão deste registro?\")) ');\r\n ShowHTML(' { return (true); }; ');\r\n ShowHTML(' { return (false); }; ');\r\n } \r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n ShowHTML('</HEAD>');\r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n if ($w_troca>'') {\r\n BodyOpen('onLoad=\"document.Form.'.$w_troca.'.focus()\";');\r\n } elseif ($O=='I' || $O=='A') {\r\n BodyOpen('onLoad=\"document.Form.w_nome.focus()\";');\r\n } elseif ($O=='L') {\r\n BodyOpen('onLoad=\"this.focus()\";');\r\n } else {\r\n BodyOpen('onLoad=\"document.Form.w_assinatura.focus();\"');\r\n } \r\n Estrutura_Topo_Limpo();\r\n Estrutura_Menu();\r\n Estrutura_Corpo_Abre();\r\n Estrutura_Texto_Abre();\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($O=='L') {\r\n ShowHTML('<tr>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td><a accesskey=\"I\" class=\"ss\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\"><u>I</u>ncluir</a>&nbsp;');\r\n }\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n $colspan=0;\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Nome','nome').'</font></td>');\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Sigla','sigla').'</font></td>');\r\n if ($w_mod_pa == 'S') {\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Espécie documental','nm_especie').'</font></td>');\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Assunto','cd_assunto').'</font></td>');\r\n }\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Código externo','codigo_externo').'</font></td>');\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Detalha itens','detalha_item').'</font></td>');\r\n $colspan++; ShowHTML(' <td><b>'.LinkOrdena('Ativo','nm_ativo').'</font></td>');\r\n if ($w_libera_edicao=='S') {\r\n $colspan++; ShowHTML(' <td class=\"remover\"><b> Operações </font></td>');\r\n }\r\n ShowHTML(' </tr>');\r\n if (count($RS)<=0) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=\"'.$colspan.'\" align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n $RS1 = array_slice($RS, (($P3-1)*$P4), $P4);\r\n foreach ($RS1 as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"left\">'.f($row,'nome').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'sigla').'</td>');\r\n if ($w_mod_pa == 'S') {\r\n ShowHTML(' <td>'.f($row,'nm_especie').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'cd_assunto').'</td>');\r\n }\r\n ShowHTML(' <td align=\"center\">'.nvl(f($row,'codigo_externo'),'&nbsp;').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_detalha_item').'</td>');\r\n ShowHTML(' <td align=\"center\">'.f($row,'nm_ativo').'</td>');\r\n if ($w_libera_edicao=='S') {\r\n ShowHTML(' <td class=\"remover\" align=\"top\" nowrap>');\r\n ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_chave='.f($row,'chave').' &P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.' &SG='.$SG.MontaFiltro('GET').'\" Title=\"Nome\">AL </A>&nbsp');\r\n ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=E&w_chave='.f($row,'chave').' &P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.' &SG='.$SG.'\">EX </A>&nbsp');\r\n ShowHTML(' </td>');\r\n }\r\n ShowHTML(' </tr>');\r\n } \r\n } \r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n if ($R>'') {\r\n MontaBarra($w_dir.$w_pagina.$par.'&R='.$R.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_chave='.$w_chave,ceil(count($RS)/$P4),$P3,$P4,count($RS));\r\n } else {\r\n MontaBarra($w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O='.$O.'&P1='.$P1.'&P2='.$P2.'&TP='.$TP.'&SG='.$SG.'&w_chave='.$w_chave,ceil(count($RS)/$P4),$P3,$P4,count($RS));\r\n } \r\n ShowHTML('</tr>');\r\n //Aqui começa a manipulação de registros\r\n } elseif (strpos('IAEV',$O)!==false) {\r\n if (strpos('EV',$O)!==false) $w_Disabled=' DISABLED ';\r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$w_pagina.$par,$O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_cliente\" value=\"'.$w_cliente.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table width=\"97%\" border=\"0\"><tr>');\r\n ShowHTML(' <tr><td><b><u>N</u>ome:</b><br><input '.$w_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_nome\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"30\" VALUE=\"'.$w_nome.'\"></td>');\r\n ShowHTML(' <tr>');\r\n ShowHTML(' <td><b><u>S</u>igla:</b><br><input '.$w_Disabled.' accesskey=\"S\" type=\"text\" name=\"w_sigla\" class=\"sti\" SIZE=\"15\" MAXLENGTH=\"15\" VALUE=\"'.$w_sigla.'\"></td>');\r\n ShowHTML(' <td><b><u>C</u>ódigo externo:</b><br><input '.$w_Disabled.' accesskey=\"C\" type=\"text\" name=\"w_codigo_externo\" class=\"sti\" SIZE=\"15\" MAXLENGTH=\"15\" VALUE=\"'.$w_codigo_externo.'\"></td>');\r\n ShowHTML(' </tr>');\r\n if ($w_mod_pa == 'S') {\r\n ShowHTML(' <tr>');\r\n SelecaoEspecieDocumento('<u>E</u>espécie documental:', 'E', 'Selecione a espécie documental a ser usada neste registro.', $w_especie_documento, null, 'w_especie_documento', '', null, 2);\r\n }\r\n ShowHTML(' <tr>');\r\n MontaRadioSN('<b>Detalha itens</b>?',$w_item,'w_item');\r\n MontaRadioSN('<b>Ativo</b>?',$w_ativo,'w_ativo');\r\n\r\n $sql = new DB_GetMenuDocumento; $RS = $sql->getInstanceOf($dbms, $w_chave, null);\r\n $i = 0;\r\n foreach ($RS as $row) {\r\n if ($i == 0)\r\n $w_vinculo = f($row, 'sq_menu');\r\n else\r\n $w_vinculo .= ',' . f($row, 'sq_menu');\r\n $i = 1;\r\n }\r\n ShowHTML(' <tr><td><b>Vinculações:</b><br>');\r\n $sql = new db_getMenuList; $RS1 = $sql->getInstanceOf($dbms, $w_cliente, 'X', $chaveAux, null);\r\n $RS1 = SortArray($RS1, 'nm_modulo', 'asc', 'nome', 'asc');\r\n ShowHTML(' <tr>');\r\n if (count($RS1) > 0) {\r\n $i = 2;\r\n foreach ($RS1 as $row) {\r\n if (strpos('FN,CO,AC,PD',f($row,'sg_modulo'))!==false) {\r\n if (!($i % 2)) ShowHTML(' <tr>');\r\n $l_marcado = 'N';\r\n $l_chave = $w_vinculo . ',';\r\n while (!(strpos($l_chave, ',') === false)) {\r\n $l_item = trim(substr($l_chave, 0, strpos($l_chave, ',')));\r\n $l_chave = trim(substr($l_chave, (strpos($l_chave, ',') + 1), 100));\r\n if ($l_item > '') {\r\n if (f($row, 'sq_menu') == $l_item) $l_marcado = 'S';\r\n }\r\n }\r\n ShowHTML(' <td><input '.$w_Disabled.' type=\"checkbox\" name=\"w_vinculo[]\" value=\"' . f($row, 'sq_menu') . '\"'.(($l_marcado == 'S') ? ' checked' : '').'>' . f($row, 'nome') . '<br>');\r\n $i += 1;\r\n }\r\n }\r\n }\r\n\r\n ShowHTML(' <tr><td align=\"LEFT\" colspan=2><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\r\n ShowHTML(' <tr><td align=\"center\" colspan=2><hr>');\r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$R.'&O=L&w_cliente='.$w_cliente.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.montaFiltro('GET')).'\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n } \r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Estrutura_Texto_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Rodape();\r\n}", "title": "" }, { "docid": "aa3e8aac664a87cc039cd5d72f84a4cf", "score": "0.5904912", "text": "function initPage()\n{\n include \"./model/connexion_bdd.php\";\n\n // Including the right dictionaries.\n $_SESSION['lang'] = (isset($_SESSION['lang']) ? htmlspecialchars($_SESSION['lang']) : 'fr');\n //$_SESSION['lang']='fr';\n $nomPage = basename($_SERVER['PHP_SELF'], '.php');\n require \"./view/lang/\" . $_SESSION['lang'] . \".php\";\n require \"./view/lang/\" . $nomPage . \"/\" . $_SESSION['lang'] . \".php\";\n if (file_exists(\"./controller/\" . $nomPage . \"Controller.php\")) require \"./controller/\" . $nomPage . \"Controller.php\";\n //The page is generated with its $title as a Metatitle\n echo \"<!DOCTYPE html><html lang=\\\"\" . $_SESSION['lang'] . \"\\\"><head><meta charset=\\\"UTF-8\\\"><meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"><title>\" . $title . \"</title>\";\n if (in_array($nomPage, array(\"index\", \"profile\"))) require \"./view/headother.html\";\n else require \"./view/head.html\";\n if (file_exists(\"./public/css/\" . $nomPage . \".css\")) echo \"<link rel='stylesheet' href='./public/css/\" . $nomPage . \".css'>\";\n\n\n\n // Including the right header\n if (in_array($nomPage, array(\"login\", \"register\"))) echo \"</head>\";\n else require \"./view/header.php\";\n\n\n require \"./view/\" . $nomPage . \".php\";\n // Including the right footer\n if (in_array($nomPage, array(\"login\", \"register\", \"forgot_password\"))) require \"./view/footeralt.php\";\n else if (in_array($nomPage, array(\"index\", \"profile\"))) require \"./view/footerother.php\";\n else require \"./view/footer.php\";\n}", "title": "" }, { "docid": "8ad0dee052c85a43d899faca65918351", "score": "0.5904488", "text": "function changeni_page($posts) {\r\n global $wp_query;\r\n \r\n if (isset ( $wp_query->query_vars['show_page'] )){\r\n \r\n $request = $wp_query->query_vars['show_page'];\r\n $request = trim(strtolower($request));\r\n $page_name = 'changeni-' . $request;\r\n switch($request){\r\n case 'cart':\r\n $posts[0] = changeni_cart_page($posts[0], $page_name);\r\n break;\r\n case 'checkout':\r\n $posts[0] = changeni_checkout_page($posts[0], $page_name);\r\n break;\r\n case 'process':\r\n $posts[0] = changeni_process_payment($posts[0], $page_name);\r\n break;\r\n case 'paid':\r\n $posts[0] = changeni_record_payment($posts[0], $page_name);\r\n break;\r\n case 'thanks':\r\n $posts[0] = changeni_thanks_page($posts[0], $page_name);\r\n break;\r\n case 'cancel':\r\n $posts[0] = changeni_clear_cart($posts[0], $page_name);\r\n break;\r\n }\r\n\r\n }\r\n\r\n return $posts;\r\n}", "title": "" }, { "docid": "77e1ffc88690366a5c205af3526aaa9c", "score": "0.5901701", "text": "function paginator($num_page,$page,$iSEGSIZE,$url) //pagination.\n{\n $alink = \"\";\n $cur_page=$page;\n $lastpage=$num_page;\n $seg_size=$iSEGSIZE;\n $seg_num=ceil($num_page/$seg_size);\n $seg_cur=ceil($page/$seg_size);\n \n $first_page=1;\n $back_page=$page-1;\n \n //so trang tren moi phan doan\n $n=($seg_cur*$seg_size<=$lastpage)?$seg_cur*$seg_size:$lastpage;\n //in ra cac trang trong moi phan doan\n for ($p=($seg_cur-1)*$seg_size+1;$p<=$n;$p++)\n {\n $seg_page[]=$p;\n }\n \n //show/hide back \n $next_page=$page+1;\n $last_page=$lastpage; \n \n if ($seg_cur>1) {\n $back=$cur_page-1;\n $alink.=\"<a href='$url/$first_page/'>&nbsp;Đầu&nbsp;</a>\";\n $alink.=\"<a href='$url/$back/'>&nbsp;<<&nbsp;</a>\";\n }else{\n $alink.=\"<span >&nbsp;Đầu&nbsp;</span>\";\n $alink.=\"<span >&nbsp;<<&nbsp;</span>\";\n }\n if (count($seg_page)<=0) return;\n foreach ($seg_page as $page){\n if ($page==$cur_page) {\n $alink.=\"<span><font color='#0066FF' style='font-family:Arial, Helvetica, sans-serif'>&nbsp;\".$page.\"&nbsp;</font></span>\";\n } else {\n $alink.=\"<a href='$url/$page/'>&nbsp;$page&nbsp;</a>\"; \n \n }\n }\n\n //show/hide next\n if ($seg_cur<$seg_num) {$next=$cur_page+1;\n $alink.=\"<a href='$url/$next/'>&nbsp;>>&nbsp;</a>\";\n $alink.=\"<a href='$url/$last_page/'>&nbsp;Cuối&nbsp;</a>\";\n }else{\n $alink.=\"<span>&nbsp;>>&nbsp;</span>\";\n $alink.=\"<span>&nbsp;Cuối&nbsp;</span>\";\n }\n return $alink;\n}", "title": "" }, { "docid": "7e3fd0d3a27bc96e7d6c6ec9367ec468", "score": "0.58985233", "text": "function afficherTitre ($texte)\r\n {\r\n echo \"<h1>MaClasseEnfant $texte</h1>\";\r\n }", "title": "" }, { "docid": "7d8b79350d6ce528eb96831c94746b57", "score": "0.5897543", "text": "function volverFormularioCierre() {\n $pagina= $this->configuracion[\"host\"]. $this->configuracion[\"site\"].\"/index.php?\"; \n\t\t$variable=\"&pagina=admin_cierreVacacionales\";\n\t\t$variable.=\"&opcion=consultarProyecto\";\n\t\t$variable.=\"&codProyecto=\".$this->proyecto;\n\t\t$variable= $this->cripto->codificar_url($variable,$this->configuracion);\n\t\techo \"<script>location.replace('\".$pagina.$variable.\"')</script>\";\n exit;\n }", "title": "" }, { "docid": "04e9e55a3433a9dc5826bf1d6f935bfc", "score": "0.58967185", "text": "function exporter_page($id_article){\n include_spip('base/abstract_sql');\n\t$id_article = intval($id_article);\n\tif ($id_article > 0){\n\t\t// On récupère la page\n\t\t$page = sql_fetsel('*','spip_articles','id_article = '.$id_article);\n return $page;\n\t}\n}", "title": "" }, { "docid": "cdeb09d4d2c409fb3673e93867331730", "score": "0.5890526", "text": "function cl_sau_prontprograma() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"sau_prontprograma\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "e9f25bba40454b4838887e3f3588815c", "score": "0.58873504", "text": "function cl_mensagemnotificacao() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"mensagemnotificacao\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "c4cd64f30f133acee6b771af6cd4d932", "score": "0.58841765", "text": "function cl_far_retiradaitens() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"far_retiradaitens\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "fc36698e266c73c829886bd94c79eca9", "score": "0.5879545", "text": "function page()\n {\n if (isset($_GET['page']))\n require_once \"v5r43iew/admin/home_admin.php\";\n }", "title": "" }, { "docid": "5c9c78b4f156f109b4d24a4f43787ae1", "score": "0.5874196", "text": "public function afficher()\n {\n parent::afficher();\n echo \"<br> la filiere est \" . $this->filiere;\n }", "title": "" }, { "docid": "5417f0f4a332d60340143cc71309deef", "score": "0.58688205", "text": "function balise_URL_DOC_COMPTEUR_dist($p) \r\n{\t$p->code = \"generer_url_doc_compteur(\" . champ_sql('id_document',$p) . \")\";\r\n\t$p->interdire_scripts = false;\t\r\n\treturn $p;\r\n}", "title": "" }, { "docid": "b3968826efc4dd3fe77c7593ad75665e", "score": "0.58576214", "text": "function cl_inicialdoc() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"inicialdoc\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "7368ba3e42b8d037ab95be5eef5d2325", "score": "0.58561355", "text": "function cl_solicitemregistropreco() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"solicitemregistropreco\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "0ff55e45894976d6d02c50e373c167d8", "score": "0.5853298", "text": "function cl_db_pluginmodulos() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"db_pluginmodulos\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" } ]
dba5d91bc24a48a6c70d7fdac16390b1
Loads the list of coupons.
[ { "docid": "d53a59a7e1b551de405d0f85806d75d0", "score": "0.5287251", "text": "public function index()\n\t{\n\t\t$this->set_page_title(_l('coupons'));\n\n\t\tif (!has_permissions('coupons', 'view'))\n\t\t{\n\t\t\t$this->access_denied('coupons', 'view');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['coupons'] = $this->coupons->get_all();\n\t\t\t$data['roles'] = $this->roles->get_all();\n\n\t\t\t$data['content'] = $this->load->view('admin/coupons/index', $data, TRUE);\n\t\t\t$this->load->view('admin/layouts/index', $data);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "ce3fc2f1af9a6d0afaa5dcd1dc885196", "score": "0.69606537", "text": "function getCoupons()\r\n {\r\n // TODO Attempt to set this if it is empty\r\n if(@$this->_coupons)\r\n return $this->_coupons;\r\n else\r\n return array();\r\n }", "title": "" }, { "docid": "baff3f0ae2613b07a93e1b202f11f91a", "score": "0.6893631", "text": "public function getAllCoupons()\n {\n return $this->allCoupons;\n }", "title": "" }, { "docid": "c32034f539fdf0d05e358a37ea94254b", "score": "0.66569656", "text": "private function listCoupons($action) { \n\t\tif (isset($this->request->get['sort'])) {\n\t\t\t\t$sort = $this->request->get['sort'];\n\t\t} else {\n\t\t\t\t$sort = 'name';\n\t\t}\n\t\tif (isset($this->request->get['order'])) {\n\t\t\t\t$order = $this->request->get['order'];\n\t\t} else {\n\t\t\t\t$order = 'ASC';\n\t\t}\n\t\tif (isset($this->request->get['page'])) {\n\t\t\t\t$page = $this->request->get['page'];\n\t\t} else {\n\t\t\t\t$page = 1;\n\t\t}\n\n\t\t$url = '';\n\t\tif (isset($this->request->get['sort'])) {\n\t\t\t\t$url .= '&sort=' . $this->request->get['sort'];\n\t\t}\n\t\tif (isset($this->request->get['order'])) {\n\t\t\t\t$url .= '&order=' . $this->request->get['order'];\n\t\t}\n\t\tif (isset($this->request->get['page'])) {\n\t\t\t\t$url .= '&page=' . $this->request->get['page'];\n\t\t}\n\n\t\t$this->data['givenCoupons'] = array();\n\n\t\t$dataInfo = array(\n\t\t\t\t'sort' => $sort,\n\t\t\t\t'order' => $order,\n\t\t\t\t'start' => ($page - 1) * 15,\n\t\t\t\t'limit' => 15\n\t\t);\n\t\t\n\t\tif($action == 'usedCoupons') {\n\t\t\t$coupon_total = $this->moduleModel->getTotalUsedCoupons(); \n\t\t\t$coupons = $this->moduleModel->getUsedCoupons($dataInfo);\n\t\t\n\t\t} else { \n\t\t\t$coupon_total = $this->moduleModel->getTotalGivenCoupons();\n\t\t\t$coupons = $this->moduleModel->getGivenCoupons($dataInfo);\n\t\t}\n \n\t\tif(!empty($coupons)) {\n\t\t\tforeach ($coupons as $coupon) {\n\t\t\t\t$this->data['coupons'][] = array(\n\t\t\t\t\t'coupon_id' => $coupon['coupon_id'],\n\t\t\t\t\t'name' => $coupon['name'],\n\t\t\t\t\t'code' => $coupon['code'],\n\t\t\t\t\t'discount' => $coupon['discount'],\n\t\t\t\t\t'date_start' => date($this->language->get('date_format_short'), strtotime($coupon['date_start'])),\n\t\t\t\t\t'date_end' => date($this->language->get('date_format_short'), strtotime($coupon['date_end'])),\n\t\t\t\t\t'status' => ($coupon['status'] ? $this->language->get('text_enabled') : $this->language->get('text_disabled')),\n\t\t\t\t\t'date_added' => $coupon['date_added']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (isset($this->error['warning'])) {\n $this->data['error_warning'] = $this->error['warning'];\n\t\t} else {\n $this->data['error_warning'] = '';\n\t\t}\n \n\t\tif (isset($this->session->data['success'])) {\n $this->data['success'] = $this->session->data['success'];\n unset($this->session->data['success']);\n\t\t} else {\n $this->data['success'] = '';\n\t\t}\n\n\t\t$url = '';\n\t\tif ($order == 'ASC') {\n $url .= '&order=DESC';\n\t\t} else {\n $url .= '&order=ASC';\n\t\t}\n \n\t\tif (isset($this->request->get['page'])) {\n $url .= '&page=' . $this->request->get['page'];\n\t\t}\n\t\t\n\t\t$this->data['sort_name'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=name' . $url;\n\t\t$this->data['sort_code'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=code' . $url;\n\t\t$this->data['sort_discount'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=discount' . $url;\n\t\t$this->data['sort_date_start'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=date_start' . $url;\n\t\t$this->data['sort_date_end'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=date_end' . $url;\n\t\t$this->data['sort_status'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=status' . $url;\n\t\t$this->data['sort_email'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=email' . $url;\n\t\t$this->data['sort_discount_type'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=discount_type' . $url;\n\t\t$this->data['sort_date_added'] = 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . '&sort=date_added' . $url;\n\t\t\n $url = '';\n\t\t\n if (isset($this->request->get['sort'])) {\n\t\t\t\t$url .= '&sort=' . $this->request->get['sort'];\n\t\t}\n\t\tif (isset($this->request->get['order'])) {\n\t\t\t\t$url .= '&order=' . $this->request->get['order'];\n\t\t}\n\t\t\n\t\t$this->data['total'] = $coupon_total;\n\t\t$this->data['limit'] = 15;\n\t\t$pagination\t\t\t\t\t= new Pagination();\n\t\t$pagination->total\t\t\t= $this->data['total'];\n\t\t$pagination->page\t\t\t= $page;\n\t\t$pagination->limit\t\t\t= $this->data['limit'];\n\t\t$pagination->text\t\t\t= $this->language->get('text_pagination');\n\t\t$pagination->url\t\t\t= 'index.php?route=' . $this->modulePath . '/' . $action . '&' . $this->data['token_addon'] . $url . '&page={page}';\n\t\t$this->data['pagination'] = $pagination->render();\n\t\t$this->data['sort'] = $sort;\n\t\t$this->data['order'] = $order;\n\t\t\n\t\t$this->data['results'] = sprintf($this->language->get('text_pagination'), ($this->data['total']) ? (($page - 1) * $this->data['limit']) + 1 : 0, ((($page - 1) * $this->data['limit']) > ($this->data['total'] - $this->data['limit'])) ? $this->data['total'] : ((($page - 1) * $this->data['limit']) + $this->data['limit']), $this->data['total'], ceil($this->data['total'] / $this->data['limit']));\n\t\n\t\t$this->response->setOutput($this->load->view($this->modulePath.'/coupon.tpl', $this->data));\n\t}", "title": "" }, { "docid": "762056afadd40de602c58cdca11621d2", "score": "0.64888895", "text": "public function getCoupons() {\n $sql = $this->select()\n ->from($this);\n $result = $this->getAdapter()->fetchAll($sql);\n return $result;\n }", "title": "" }, { "docid": "d4d78c5f15b10d6a3a13c6ef87aeeca4", "score": "0.6462357", "text": "public function getCoupons_get() { \n // Verificamos parametros y acceso\n $message = $this->verifyIsSet(array('user', 'key'));\n if ($message == null) { $message = $this->verifyAccess(); }\n if ($message == null) {\n // Obtener cupones\n $data = $this->coupon_db->getAvailable();\n $message = array('success' => true, 'coupons' => $data);\n }\n $this->response($message, 200);\n }", "title": "" }, { "docid": "2017f2ececaf616803f9f8e8b992354d", "score": "0.64505386", "text": "private function getUploadedCoupons()\n {\n return $this->getCouponArrayFromUploadedFile();\n }", "title": "" }, { "docid": "b388d6ce22459156480454d596e24e52", "score": "0.64379317", "text": "function getOrderCoupons()\r\n {\r\n // TODO Attempt to set this if it is empty\r\n return $this->_ordercoupons;\r\n }", "title": "" }, { "docid": "c4400771062a02976ca95cca9e3cfc7b", "score": "0.6363773", "text": "protected function getAllCoupons()\n {\n return Coupon::withTrashed()->orderBy('id', 'DESC')->get();\n }", "title": "" }, { "docid": "161956fd1dabb08e51714754018aa6a9", "score": "0.62800205", "text": "function getUserCoupons()\r\n {\r\n if (!empty($this->_usercoupons)) \r\n {\r\n return $this->_usercoupons;\r\n }\r\n else \r\n {\r\n // TODO create the array from _coupons, if possible\r\n return array();\r\n }\r\n }", "title": "" }, { "docid": "0810f0a59ce3381a745550c2b43a7393", "score": "0.62602264", "text": "public function listCoupons() {\n $field_details = json_decode(file_get_contents('php://input'), true);\n\n $this->setDefaultRules($field_details);\n\n $this->form_validation->set_rules('categoryId', 'Category Id', 'trim|numeric');\n $this->form_validation->set_rules('vendorId', 'Vendor Id', 'trim|numeric');\n $this->form_validation->set_rules('index', 'page index', 'trim|numeric'); // For pagination.\n // Default response.\n $response = array(\n 'data' => NULL,\n 'status' => 0,\n 'responseMessage' => 'Server refused to process request. Please try again later.'\n );\n\n if ($this->form_validation->run() === FALSE) {\n $response = array(\n 'data' => NULL,\n 'status' => 0,\n 'responseMessage' => strip_tags(validation_errors())\n );\n } else {\n // Add index field, if request doesn't contains for pagination.\n if (!(isset($field_details['index']) && (int) $field_details['index'])) {\n $field_details['index'] = 1;\n }\n $response = $this->couponServices_model->listCoupons($field_details);\n }\n\n // Send JSON response.\n header('Content-type: application/json');\n echo json_encode(array('outputParam' => $response));\n exit;\n }", "title": "" }, { "docid": "012974004939cea1bc46587f68752e14", "score": "0.62181383", "text": "public function coupons_list() {\n $query = $this->db->get('coupon');\n if ($query->num_rows > 0) {\n return $query->result();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e7c0c30bf62339e35ecd466b6b10c789", "score": "0.6212293", "text": "public function buildCoupons()\n {\n $coupon = null;\n\n /** @var \\Hanzo\\Model\\OrdersLines $line */\n foreach ($this->orderLines as $line) {\n if (('discount' === $line->getType()) &&\n ('coupon.code' === $line->getProductsName())\n ) {\n $coupon = $line;\n break;\n }\n\n }\n\n if ($coupon) {\n $this->data['salesOrder']['SalesTable']['SalesLine'][] = [\n 'ItemId' => 'COUPON',\n 'SalesPrice' => number_format(($coupon->getPrice()), 2, '.', ''),\n 'SalesQty' => 1,\n 'SalesUnit' => 'Stk.',\n ];\n }\n }", "title": "" }, { "docid": "90daef56e967e609b0b558a89f9b0132", "score": "0.611393", "text": "private function OrderCouponList()\n\t\t{\n\t\t\tif(!isset($_REQUEST['orderSession'])) {\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t$orderClass = GetClass('ISC_ADMIN_ORDERS');\n\t\t\t$orderClass->GetCartApi($_REQUEST['orderSession']);\n\n\t\t\t$productids = array();\n\t\t\t$valid_couponcodes = array();\n\t\t\t$GLOBALS['CcString'] = \"\";\n\t\t\t$cartProducts = $orderClass->GetCartApi()->GetProductsInCart();\n\t\t\tforeach($cartProducts as $key => $val)\n\t\t\t{\n\t\t\t\t$productids[] = $val['product_id'];\n\t\t\t}\n\n\t\t\t$coupon_qry = \"SELECT * from [|PREFIX|]coupons where couponenabled = 1 and (couponexpires = 0 || UNIX_TIMESTAMP(current_date()) < couponexpires ) order by couponappliesto asc , couponappliestovalues asc\";\n\t\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($coupon_qry);\n\t\t\twhile ($arr = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) \n\t\t\t{\n\t\t\t\tif( $arr['couponappliesto'] == 'categories')\n\t\t\t\t{\n\t\t\t\t\tif( $arr['couponappliestovalues'] == 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$valid_couponcodes[] = $arr['couponcode'];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$catg_qry = \"SELECT group_concat(productid) as productid from [|PREFIX|]categoryassociations where categoryid in (\".$arr['couponappliestovalues'].\")\";\n\t\t\t\t\t\t$catg_res = $GLOBALS['ISC_CLASS_DB']->Query($catg_qry);\n\t\t\t\t\t\t$catg_arr = $GLOBALS['ISC_CLASS_DB']->FetchOne($catg_res);\n\t\t\t\t\t\tif($catg_arr != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif( count($productids) == 0 ) // if there are no products added in cart, show the coupon\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$valid_couponcodes[] = $arr['couponcode'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$product_ids = explode(\",\",$catg_arr);\n\t\t\t\t\t\t\t\tfor($i=0;$i < count($productids);$i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( in_array($productids[$i] , $product_ids))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$valid_couponcodes[] = $arr['couponcode'];\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\telse if( $arr['couponappliesto'] == 'products')\n\t\t\t\t{\n\t\t\t\t\t\tif($arr['couponappliestovalues'] != \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif( count($productids) == 0 ) // if there are no products added in cart, show the coupon\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$valid_couponcodes[] = $arr['couponcode'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$product_ids = explode(\",\",$arr['couponappliestovalues']);\n\t\t\t\t\t\t\t\tfor($i=0;$i < count($productids);$i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( in_array($productids[$i] , $product_ids))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$valid_couponcodes[] = $arr['couponcode'];\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}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t$valid_couponcodes = array_unique($valid_couponcodes);\n\t\t\tsort($valid_couponcodes);\n\t\t\t$GLOBALS['CcString'] .= \"<select name='coupon' onchange='selectcoupon(this.value);'>\";\n\t\t\t$GLOBALS['CcString'] .= \"<option value=''> ----- SELECT ---- </option>\";\n\t\t\tforeach($valid_couponcodes as $key => $code)\n\t\t\t{\n\t\t\t\t$GLOBALS['CcString'] .= \"<option value='$code'>$code</option>\";\n\t\t\t}\n\t\t\t$GLOBALS['CcString'] .= \"</select>\";\n\n\t\t\t\n\t\t\techo $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('OrderCouponListWindow');\n\t\t\texit;\n\t\t}", "title": "" }, { "docid": "5a6f4f8cce9c7171796c585e4866f5c0", "score": "0.59843266", "text": "public function initialize()\r\n {\r\n $this->setSource('coupons');\r\n $this->hasMany('id', 'Products', 'coupon_id', array('alias' => 'Products'));\r\n }", "title": "" }, { "docid": "b50d97ce815ad0c9523c27dfaf398c8d", "score": "0.57744217", "text": "protected function getCouponArray()\n {\n return $this->getUploadedCoupons();\n }", "title": "" }, { "docid": "480548708449ba3341d1a9079708b4ee", "score": "0.57727504", "text": "function Coupons()\n {\n \t$this->access_bit=COUPON;\n parent::Admin_Controller();\t\t\t\n \t$this->load->model(\"coupons_model\");\n $this->load->model(\"product_model\");\n }", "title": "" }, { "docid": "47351815f973e48d8278d57e90d0d1fb", "score": "0.5607727", "text": "public function get_coupons() {\n $this->db->select('*');\n $this->db->from('coupon');\n $this->db->where('id', $_GET['id']);\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "af6ceda9948cb3222755fd2067dfdc56", "score": "0.56070375", "text": "function getAllDiscountCoupons() {\n\t\t\t$query = \"select * from \".PREFIX.\"discount_coupon_master\";\n\t\t\t$sql = $this->query($query);\n\t\t\treturn $sql;\n\t\t}", "title": "" }, { "docid": "3012906ad950a2763443eb92b6262b03", "score": "0.55868673", "text": "public function get_coupon_codes() {\n \n // Get coupon codes\n (new MidrubBaseAdminComponentsCollectionSettingsHelpers\\Coupons)->get_coupon_codes();\n \n }", "title": "" }, { "docid": "efbbbaf8805019d0a56d5969b65d81ba", "score": "0.55120873", "text": "public function view_coupons(){\n \t$coupons = Coupon::get();\n \treturn view('admin.coupons.view_coupons')->with(compact('coupons'));\n }", "title": "" }, { "docid": "39d36f2b823a18dedf4a1f9008f539b7", "score": "0.5492547", "text": "function wpsc_uses_coupons() {\n\tglobal $wpsc_coupons;\n\t\n\tif( empty( $wpsc_coupons ) )\n\t\t$wpsc_coupons = new wpsc_coupons();\n\n\tif( is_object( $wpsc_coupons ) )\n\t\treturn $wpsc_coupons->uses_coupons();\n\n\treturn false;\n}", "title": "" }, { "docid": "7da9e4e48a8f8c3dbffd6d7f7aba2fb9", "score": "0.54888666", "text": "public function show(Coupons $coupons)\n {\n //\n }", "title": "" }, { "docid": "eb2f9c11f0d7632dff062c87c7dee3d7", "score": "0.5435671", "text": "function coupons_list($start=0){\n\t\t$config['base_url']=base_url().'bandook/coupons/coupons_list';\n\t\t$config['total_rows']=$this->db->query(\"select count(coupon_id)ct from red_coupons where status='1'\")->row()->ct ;\n\t\t$config['per_page']=20;\n\t\t$config['uri_segment']=4;\n\n\t\t// Initialize paging with above parameters\n\t\t$this->pagination->initialize($config);\n\t\t\n\t\t//Create paging inks\n\t\t$paging_links=$this->pagination->create_links();\n\t\t$condition = array('status'=>1);\n\t\t$coupons=$this->db->get_where('red_coupons',$condition,$config['per_page'],$start)->result_array();\t\t\n\t\t\n\t\t// Recieve any messages to be shown, when package is added or updated\n\t\t$messages=$this->messages->get();\n\t\t$logo_link=\"bandook/dashboard_stat\";\n\t\t//Loads header, users listing and footer view.\n\t\t$this->load->view('bandook/header',array('title'=>'Manage Coupons','logo_link'=>$logo_link));\n\t\t$this->load->view('bandook/coupons_list',array('coupons'=>$coupons,'paging_links'=>$paging_links,'messages' =>$messages));\n\t\t$this->load->view('bandook/footer');\n\t}", "title": "" }, { "docid": "ba2d81f57ee78bba7cafddecbca7cf80", "score": "0.54092634", "text": "public function testValidWithCoupons() {\n $promotion1 = Promotion::create([\n 'name' => 'Promotion 1',\n 'order_types' => [$this->orderType],\n 'stores' => [$this->store->id()],\n 'status' => TRUE,\n ]);\n $promotion1->save();\n\n /** @var \\Drupal\\commerce_promotion\\Entity\\Promotion $promotion2 */\n $promotion2 = Promotion::create([\n 'name' => 'Promotion 2',\n 'order_types' => [$this->orderType],\n 'stores' => [$this->store->id()],\n 'status' => TRUE,\n ]);\n $promotion2->save();\n // Add a coupon to promotion2 and validate it does not load.\n $coupon = Coupon::create([\n 'code' => $this->randomString(),\n 'status' => TRUE,\n ]);\n $coupon->save();\n $promotion2->get('coupons')->appendItem($coupon);\n $promotion2->save();\n $promotion2 = $this->reloadEntity($promotion2);\n\n $promotion3 = Promotion::create([\n 'name' => 'Promotion 3',\n 'order_types' => [$this->orderType],\n 'stores' => [$this->store->id()],\n 'status' => TRUE,\n ]);\n $promotion3->save();\n\n $this->assertEquals(2, count($this->promotionStorage->loadAvailable($this->order)));\n }", "title": "" }, { "docid": "cd48935aa31c82a33c67e3600ef58526", "score": "0.5368422", "text": "function make() {\n\n\t\t\t$this->coupon = array();\n\n\t\t\twhile (sizeof($this->coupon) < $this->max) {\n\n\t\t\t\t$_gen = $this->_generate();\n\n\t\t\t\t// 중복 없으면 카운트 올림.\n\t\t\t\tif (! in_array($_gen, $this->coupon)) {\n\t\t\t\t\t$this->coupon[] = $_gen;\n\t\t\t\t\t$this->count++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "d6774c74dc7ddacf832edce638ccbba6", "score": "0.5350618", "text": "function uses_coupons() {\n\t\tglobal $wpdb;\n\t\t$num_active_coupons = $wpdb->get_var(\"SELECT COUNT(id) as c FROM `\".WPSC_TABLE_COUPON_CODES.\"` WHERE active='1'\");\n\t\treturn ( $num_active_coupons > 0 );\n\t}", "title": "" }, { "docid": "a81ee344c30f43ff310c9b73993977b1", "score": "0.5253444", "text": "private function getConversionsList(){\n $this->conversionList = $this->read();\n }", "title": "" }, { "docid": "4af2aac0a85c9d518864b92484cba7d9", "score": "0.5245322", "text": "function bp_em_coupons_includes() {\n\n $includes = array(\n 'buddypress/screens/my-coupons.php',\n );\n\n $path = plugin_dir_path( __FILE__ );\n\n foreach( $includes as $file ) {\n require( $path . $file );\n }\n\n}", "title": "" }, { "docid": "620ce06e3317b64f08a1e657ca48dd44", "score": "0.52333397", "text": "function coupons_list()\n {\n \n $per_page = intval($this->input->post('ppage'));\n $ppage_set = get_perpagelist();\n if( !in_array($per_page, $ppage_set) )\n {\n $per_page = config_get('PAGER','default_perpage');\n \n }\n\n $current_page = intval($this->input->post('cpage')); \n if( $current_page <= 0 )\n {\n $current_page = 1;\n }\n $sort_by = input_text($this->input->post('ord')); \n $sort_how = input_text($this->input->post('ord_type')); \n\n //Getting data from DB\n $data = array();\n $data=$this->coupons_model->coupons_list($current_page, $per_page, $sort_by, $sort_how);\n if ($data['total'] > $per_page)\n {\n $data['pages'] = ceil($data['total'] / $per_page);\n if( $current_page > $data['pages'])\n {\n $current_page = ($current_page > 2) ? $current_page - 1 : 1;\n }\n }\n else \n {\n $data['pages'] = 1;\n } \n $data['current_page'] = $current_page;\n $data['per_page_set'] = $ppage_set;\n //Prepare data for the node page\n $data['rows'] = '';\n $tr_class = 'dark';\n $node = array();\n //Prepare data for a node page\n if(count($data['items']) > 0 )\n {\n foreach($data['items'] as $item)\n {\n $tr_class = ($tr_class == 'dark') ? 'light' : 'dark';\n $item['coupons_used'] = $this->coupons_model->get_coupons_used($item['id']);\n if( intval($item['discount_percent']) > 0 )\n {\n $item['discount_value'] = $item['discount_percent'];\n $item['discount_type'] = '<{admin_coupon_create_coupons_field_discount_type_percent}>';\n }\n else\n {\n $item['discount_value'] = $item['discount_value'];\n // kgg \n //$item['discount_type'] = '';\n if(config_get('system','config','currency_code')!=false)\n $item['discount_type'] = config_get('system','config','currency_code');\n else \n $item['discount_type'] = \"<{admin_coupon_create_coupons_field_discount_type_value}>\";\n } \n $node['row'] = $item;\n $node['tr_class'] = $tr_class;\n $data['rows'] .= $this->load->view(\"/admin/coupons/groups_list/node\", $node, true);\n }\n }\n else\n {\n $data['rows'] = $this->load->view(\"/admin/coupons/groups_list/empty\", array(), true);\n }\n //Compose pager node1\n $data['pager_node1'] = perpage_selectbox($data['per_page_set'],'coupons_group_list',array(),$data['per_page']) . page_selectbox($data['pages'] ,'coupons_group_list',array('ppage'=>$data['per_page']), $data['current_page']);\n //Compose pager node2\n $data['pager_node2'] = perpage_selectbox($data['per_page_set'],'coupons_group_list',array(),$data['per_page']) . page_selectbox($data['pages'] ,'coupons_group_list',array('ppage'=>$data['per_page']), $data['current_page']); \n //Get the whole page\n \n $data['sort_by']=$sort_by;\n $data['sort_how']=$sort_how;\n \n \t$res=$this->load->view(\"/admin/coupons/groups_list/page\", $data, true);\n make_response(\"output\", $res, 1);\n }", "title": "" }, { "docid": "7a15147cfcf5b3739ede4e4ff210f71e", "score": "0.52309734", "text": "public static function get_options_callback() {\n\t\t$coupons = array();\n\t\t// set base query arguments\n\t\t$query_args = array(\n\t\t\t'post_type' => 'shop_coupon',\n\t\t\t'post_status' => 'publish',\n\t\t);\n\n\t\t$query = new WP_Query( $query_args );\n\n\t\tforeach ( $query->posts as $post ) {\n\t\t\tif ( ! empty( $post ) ) {\n\t\t\t\t$code = \\wc_format_coupon_code( $post->post_title );\n\t\t\t\t$coupons[ $code ] = array(\n\t\t\t\t\t'label' => $post->post_title,\n\t\t\t\t\t'id' => $code,\n\t\t\t\t);\n\t\t\t}\n\n\t\t}\n\n\t\treturn $coupons;\n\t}", "title": "" }, { "docid": "a13fa61a41510d95a80dc38f0c5e5db1", "score": "0.51793075", "text": "public function index()\n {\n $coupons = Coupon::all();\n return view('backend.coupons.index')->withCoupons($coupons);\n }", "title": "" }, { "docid": "740f62ef677dee7051dbff3d6ca81d60", "score": "0.51770407", "text": "public function index()\n {\n $coupons = Coupon::paginate(20);\n return view('admin.coupon.list')->with('coupons',$coupons);\n }", "title": "" }, { "docid": "ea19622537af4940e8a876cfb3242a06", "score": "0.5171819", "text": "public function index()\n {\n return view('dashboard.pages.coupons')->with('coupons', Coupon::get());\n }", "title": "" }, { "docid": "c559be845c6a469449a92ee51596ae66", "score": "0.5171208", "text": "public function findAllCouponsWithHttpInfo(string $contentType = self::contentTypes['findAllCoupons'][0])\n {\n $request = $this->findAllCouponsRequest($contentType);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n } catch (ConnectException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n null,\n null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n (string) $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n\n switch($statusCode) {\n case 200:\n if ('\\LagoClient\\Model\\CouponsPaginated' === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ('\\LagoClient\\Model\\CouponsPaginated' !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\LagoClient\\Model\\CouponsPaginated', []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n }\n\n $returnType = '\\LagoClient\\Model\\CouponsPaginated';\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\LagoClient\\Model\\CouponsPaginated',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "3f086785b24a82daabcd55337ad5a393", "score": "0.51653737", "text": "function get_list_of_countries() {\n\tstatic $list;\n\tif ( ! is_null( $list ) ) {\n\t\treturn $list;\n\t}\n\n\t$list = require locate_template( 'includes/utils/data/list-of-countries.php' );\n\treturn $list;\n}", "title": "" }, { "docid": "7c6269d32fc425d52d2fb5897014b7a2", "score": "0.51521474", "text": "public function get_catalog_categories_xml(){\r $document = simplexml_load_file($this->_coupons_url);\r return $document;\r }", "title": "" }, { "docid": "ffbd4797acc4b830d12e724caa3a5ac8", "score": "0.51489955", "text": "public function index()\n {\n // get all coupons\n $coupons = Coupon::all();\n return view('coupons.index', ['coupons' => $coupons]);\n }", "title": "" }, { "docid": "89a9efff703e5edffd0a931907e7f51d", "score": "0.51391244", "text": "private function load_dependencies() {\n\n require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cmb2/init.php';\n\n\t\t/**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core plugin.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-conference-payments-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining internationalization functionality\n\t\t * of the plugin.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-conference-payments-i18n.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-conference-payments-admin.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public-facing\n\t\t * side of the site.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-conference-payments-public.php';\n\n require_once $this->locations['inc_dir'] . 'functions.php';\n\n $this->cart = new Cart();\n $this->tickets = new Tickets();\n $this->resources = new Resources();\n $this->order = new Orders($this);\n $this->transactions = new Transactions();\n\t\t$this->loader = new Conference_Payments_Loader();\n\t}", "title": "" }, { "docid": "d8528f0d0f5343be05eefabf8e3b8c80", "score": "0.5126947", "text": "public function getCoupons($aConds = array(),$sSort = 'coupon_id DESC', $iPage = '', $sLimit = '', $bCount = true)\n {\n \n phpFox::getLib('phpfox.database')->query('SET character_set_results=utf8 '); \n $iCnt = ($bCount ? 0 : 1);\n $items = array();\n if ($bCount )\n { \n $iCnt = phpFox::getLib('phpfox.database')->select('COUNT(*)')\n ->from(phpFox::getT('m2bmusic_coupon'),'cou')\n ->where($aConds)\n ->execute('getField');\n }\n if ($iCnt)\n {\n $items = phpFox::getLib('phpfox.database')->select('*,DATE( FROM_UNIXTIME(start_date) ) AS sDate,DATE( FROM_UNIXTIME(end_date) ) AS tDate')\n ->from(phpFox::getT('m2bmusic_coupon'),'cou')\n ->where($aConds)\n ->order($sSort)\n ->limit($iPage, $sLimit, $iCnt)\n ->execute('getSlaveRows'); \n }\n if (!$bCount)\n {\n return $items;\n }\n \n return array($iCnt, $items);\n }", "title": "" }, { "docid": "62f93382f900ca18c4a6b17fc4c8dab0", "score": "0.5118642", "text": "protected function loadRates() {\n\t\t$rates_coll = Billrun_Factory::db()->ratesCollection();\n\t\t$query = array(\n\t\t\t'rates.service' => array(\n\t\t\t\t'$exists' => 1\n\t\t\t),\n\t\t);\n\t\t$rates = $rates_coll->query($query)->cursor()->setReadPreference(Billrun_Factory::config()->getConfigValue('read_only_db_pref'));\n\t\t$this->rates = array();\n\t\tforeach ($rates as $rate) {\n\t\t\t$rate->collection($rates_coll);\n\t\t\t$this->rates[] = $rate;\n\t\t}\n\t}", "title": "" }, { "docid": "50840777445f389c585153a0208bf484", "score": "0.51044834", "text": "public function listUsableCoupons($uid)\n {\n $coupons = Coupon::select('coupons.*')\n ->where('coupons.cid', '=', $uid)->where('coupons.status', Coupon::ACTIVE['value'])->where('expired', '>=', new JDate())\n ->orderBy('expired', 'asc')\n ->get();\n return $coupons;\n }", "title": "" }, { "docid": "3d7c57fabaf0434603a1aaa5f007af71", "score": "0.5085164", "text": "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "title": "" }, { "docid": "32b5c64c515445c2dfd2b3e65350a7eb", "score": "0.5070496", "text": "public function testSetCompteCoupons() {\n\n $obj = new Vmp();\n\n $obj->setCompteCoupons(\"compteCoupons\");\n $this->assertEquals(\"compteCoupons\", $obj->getCompteCoupons());\n }", "title": "" }, { "docid": "80f55bc6cb1de56557bc7fe7f2fc4d9b", "score": "0.50687414", "text": "public function manager_page_coupon_manager() {\n global $DB;\n $action = optional_param('action', 'list', PARAM_ALPHAEXT);\n $cid = optional_param('cid', 0, PARAM_INT);\n $pageurl = clone $this->page->url;\n $pageurl->param('action', $action);\n if ($this->page->course->id <> SITEID) {\n $pageurl->param('cid', $this->page->course->id);\n }\n\n switch ($action) {\n case 'delete':\n require_capability('enrol/classicpay:deletecoupon', $this->page->context);\n // We'll do this using a form for now.\n $id = required_param('id', PARAM_INT);\n $this->page->set_title(get_string('coupon:delete', 'enrol_classicpay'));\n $coupon = $DB->get_record('enrol_classicpay_coupon', array('id' => $id));\n $deleteform = new \\enrol_classicpay\\forms\\coupondelete($pageurl, $coupon);\n $pageurl->param('action', 'list');\n $deleteform->process_form($id, $pageurl);\n exit;\n break;\n\n case 'edit':\n require_capability('enrol/classicpay:editcoupon', $this->page->context);\n $this->page->set_title(get_string('title:couponedit', 'enrol_classicpay'));\n $id = required_param('id', PARAM_INT);\n if ($id > 0) {\n $instance = $DB->get_record('enrol_classicpay_coupon', array('id' => $id), '*', MUST_EXIST);\n } else {\n $instance = (object)array('id' => 0);\n }\n $options = new stdClass();\n $options->instance = $instance;\n if ($this->page->course->id <> SITEID) {\n $options->lockcourse = $this->page->course->id;\n }\n $form = new \\enrol_classicpay\\forms\\coupon($pageurl, $options);\n $pageurl->param('action', 'list');\n $form->process_form($instance, $pageurl);\n break;\n\n case 'list':\n default:\n $strnewform = '';\n if (has_capability('enrol/classicpay:createcoupon', $this->page->context)) {\n $options = new stdClass();\n $options->instance = (object) array('id' => 0);\n if ($this->page->course->id <> SITEID) {\n $options->lockcourse = $this->page->course->id;\n }\n $newform = new \\enrol_classicpay\\forms\\coupon($pageurl, $options);\n $newform->process_post($options->instance, $pageurl);\n $strnewform = '<div class=\"enrol-classicpay-container\">' . $newform->render() . '</div>';\n }\n\n $filter = optional_param('list', 'all', PARAM_ALPHA);\n $table = new \\enrol_classicpay\\tables\\coupons($cid, $filter);\n $table->baseurl = $pageurl;\n echo $this->header();\n echo '<div class=\"enrol-classicpay-container\">';\n $table->render(25);\n echo '</div>';\n echo $strnewform;\n echo $this->footer();\n break;\n }\n }", "title": "" }, { "docid": "02bf04ac05d6a1c62969157ce4deb9a2", "score": "0.50399905", "text": "protected function create_coupons_line_items_from_session() {\n\t\t$coupons = array();\n\t\t$currency = get_woocommerce_currency();\n\t\t$cart = WC()->cart;\n\n\t\tif ( empty( $cart->get_applied_coupons() ) ) {\n\t\t\treturn $coupons;\n\t\t}\n\n\t\t//all wp coupons available\n\t\t$wp_coupons = $cart->get_coupons();\n\t\tforeach ( $cart->get_applied_coupons() as $coupon_code ) {\n\t\t\t//check if there is a coupon with this code\n\t\t\tif ( empty( $wp_coupons[ $coupon_code ] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t/** @var WC_Coupon $coupon_applied */\n\t\t\t$coupon_applied = $wp_coupons[ $coupon_code ];\n\t\t\t$amount = $this->round_amount( $cart->get_coupon_discount_amount( $coupon_code, false ), $currency );\n\t\t\t$line_item = $this->create_coupon_line_item( $coupon_applied, $amount );\n\t\t\t$coupons[] = $this->clean_line_item( $line_item );\n\t\t}\n\t\treturn $coupons;\n\t}", "title": "" }, { "docid": "b1d2ccb99287a7b402d8a56b26b3a0ee", "score": "0.5035254", "text": "public function index()\n {\n $coupons = Coupon::paginate(20);\n return view('admin.coupons.index',compact('coupons'));\n }", "title": "" }, { "docid": "cc224e27c314bd44038af5e18fd2c72c", "score": "0.503093", "text": "public function __construct() {\n\t\t$this->setTitle('Discount Coupons');\n\t\t$this->setDescription('Discount Coupon');\n\n\t\t$this->init('coupon');\n\n\t\tif ($this->isInstalled() === true){\n\t\t\t$this->credit_class = true;\n\t\t\t$this->include_shipping = $this->getConfigData('MODULE_ORDER_TOTAL_COUPON_INC_SHIPPING');\n\t\t\t$this->include_tax = $this->getConfigData('MODULE_ORDER_TOTAL_COUPON_INC_TAX');\n\t\t\t$this->calculate_tax = $this->getConfigData('MODULE_ORDER_TOTAL_COUPON_CALC_TAX');\n\t\t\t$this->tax_class = $this->getConfigData('TAX_CLASS');\n\t\t\t$this->user_prompt = '';\n\t\t\t$this->header = sysLanguage::get('MODULE_ORDER_TOTAL_COUPON_HEADER');\n\t\t}\n\t}", "title": "" }, { "docid": "a0f339db8a1f04fe6da93bb9e61ea78c", "score": "0.5025456", "text": "protected function getImportableCurrencies(): array {\n $language = $this->languageManager->getConfigOverrideLanguage() ?: $this->languageManager->getCurrentLanguage();\n return $this->currencyRepository->getAll($language->getId());\n }", "title": "" }, { "docid": "0c8280dd359a27330b9b2ed7cec04803", "score": "0.5024798", "text": "public function index()\n {\n $coupons = Coupon::all();\n return view('admin.coupon.index',compact('coupons'));\n }", "title": "" }, { "docid": "9252ad1ed31b4634b79af8dc20002c01", "score": "0.5021291", "text": "public function index()\n {\n $coupons = Coupon::all();\n return view('admin.coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "ce02e5c0090e2ac082514925bfa3e6fd", "score": "0.502046", "text": "public function index()\n {\n\t\t$coupons = Coupon::orderBy('id','desc')->get();\n\t\t\n return view('admin.coupons.index', [\n 'coupons' => $coupons,\n 'coupons_count' => Coupon::all()->count(),\n ]);\n\n }", "title": "" }, { "docid": "3d41ae5c2908735724c359f9bf3938cd", "score": "0.5019008", "text": "public function __construct() {\n parent::__construct();\n $this->load->model('couponServices_model');\n }", "title": "" }, { "docid": "c11602ba1a154a2a922a51cf7c9b73a9", "score": "0.50189316", "text": "public function coupons() {\n return $this->belongsToMany(Coupon::class, 'coupon_user');\n }", "title": "" }, { "docid": "5d6a0bc863203072b68d2caa44418601", "score": "0.5001541", "text": "function free_coupon_list() {\n\t $data['free_coupon_list'] = $this->login_model->get_record_join_two_table('free_coupon_category', 'free_coupon_list', 'free_coupon_category_id', 'fee_coupon_category_id','*',''); \n\t\t$this->load->view('newadmin/menu');\n $this->load->view('newadmin/header');\n $this->load->view('newadmin/listing/free_coupon_list_view', $data);\n $this->load->view('newadmin/footer');\n }", "title": "" }, { "docid": "0b2cd2d34f7202e48c3b55332cdcbff5", "score": "0.49935925", "text": "public function __construct(CountriesGetterFromFile $countries, ListsOfPersonGetter $list)\n {\n parent::__construct();\n $this->countries = $countries;\n $this->list = $list;\n }", "title": "" }, { "docid": "0ef307a745a4bffc30e3b7161555a809", "score": "0.49903965", "text": "public function listInit(){\n\t\t$this->setNameModelController('hld_incidents');\n\t\t\n\t\t$this->setReportDownload(true, true, true);\n\t\t\n\t\t$this->setConfig('Incidentes Mesa de Ayuda', 'id_hld_incident');\n\t\t$this->nameTopics = 'Incidentes';\n\t\t$this->nameTopic = 'Incidente';\n\t\t$this->defaultSort = 'start_incident';\n\t\t$this->fixSortDesc();\n\t\t$this->getView()->setForceFit(false);\n\t}", "title": "" }, { "docid": "7fcfd2a569aa738364ce2a262e63194a", "score": "0.49831674", "text": "public function index()\n {\n $coupons = Coupon::get();\n return view('admin.coupon.coupon', compact('coupons'));\n }", "title": "" }, { "docid": "349f96e5c072fb4eb00d9dc498114b36", "score": "0.49791855", "text": "public function index()\n {\n $coupons = $this->getAllCoupons();\n\n return view('admin.coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "8a282cac34e189d3569b92a98e971f91", "score": "0.49743858", "text": "protected function init()\n {\n foreach( $this->CPTs as $CPT ) {\n $this->register->setVariables($CPT)->init();\n // add_action( 'init', function() use( $CPT ) {\n // $this->register->setVariables($CPT)->init();\n // });\n }\n }", "title": "" }, { "docid": "c82298b67505628a0f5afe841ebd0f1b", "score": "0.49674484", "text": "private function load_modules() {\n\t\t$factory = new Factory( $this->features );\n\t\t$factory->load_modules();\n\t}", "title": "" }, { "docid": "c6114e8826078aa132ea646c4ef41959", "score": "0.49650246", "text": "public function load_forminator_addons() {\n\t\t\t$addons_directory = forminator_addons_dir();\n\t\t\tif ( file_exists( $addons_directory . '/class-addon-autoload.php' ) ) {\n\t\t\t\tinclude_once $addons_directory . '/class-addon-autoload.php';\n\t\t\t\t$autoloader = new Forminator_Addon_Autoload();\n\t\t\t\t$autoloader->load();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "67b30f8413bc8f116bd9ad3e85d602cf", "score": "0.49575844", "text": "public function getMineCoupons()\n {\n return \"/V1/carts/mine/coupons\";\n }", "title": "" }, { "docid": "64159c67ed7009e18f8d2c9e92dfbab3", "score": "0.49497047", "text": "public function loadComponents() \n\t{\n\t\t// If no components are installed, install basic list of components\n\t\tif (empty($this->_installedClasses)) \n\t\t{\n\t\t\t$this->installComponents($this->_installList);\n\t\t}\n\n\t\t$this->dispatch('ComponentInitComplete');\n\t}", "title": "" }, { "docid": "d74051cfa9bf173b830650528da6675b", "score": "0.49479273", "text": "public function index()\n {\n $coupons = Coupon::all();\n\n return view('admin.payment.coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "f69fce839454708906899638b0d67ece", "score": "0.4935093", "text": "function cavance_producto_list() {\n global $conn;\n\n // Initialize table object\n $GLOBALS[\"avance_producto\"] = new cavance_producto();\n\n // Initialize other table object\n $GLOBALS['usuario'] = new cusuario();\n\n // Intialize page id (for backward compatibility)\n if (!defined(\"EW_PAGE_ID\"))\n define(\"EW_PAGE_ID\", 'list', TRUE);\n\n // Initialize table name (for backward compatibility)\n if (!defined(\"EW_TABLE_NAME\"))\n define(\"EW_TABLE_NAME\", 'avance_producto', TRUE);\n\n // Open connection to the database\n $conn = ew_Connect();\n\n // Initialize list options\n $this->ListOptions = new cListOptions();\n }", "title": "" }, { "docid": "7fd7a73dbef00fa8dd980131c8c281a8", "score": "0.4904468", "text": "private function _loadCB() {\n\t\tglobal $_CB_framework, $_CB_database, $mainframe, $_PLUGINS;\n\t\tif (defined('_CB_JQUERY_VERSION')) {\n\t\t\treturn;\n\t\t}\n\t\tif (self::$cbInstalled || self::_checkCB()) {\n\t\t\t$mainframe = JFactory::getApplication('site');\n\t\t\tcbimport('cb.database');\n\t\t\tcbimport('cb.tables');\n\t\t\tcbimport('cb.tabs');\n\t\t\tcbimport('language.front');\n\t\t}\n\t}", "title": "" }, { "docid": "c094de19e4395e70b464dc65ccd3be64", "score": "0.48985416", "text": "public function index()\n {\n $coupons = Coupon::withTrashed()->with('user')->paginate(20);\n\n return view('admin.coupons.index', ['coupons' => $coupons]);\n }", "title": "" }, { "docid": "b7052dce949f4232f7fe2443fc4c022d", "score": "0.48950002", "text": "function __construct()\r\n\t{\r\n\t\t$this->countries = $this->retrieveAllCountries();\r\n $this->countriesInOrganisations = $this->retrieveAllCountriesInOrganisations();\r\n\t}", "title": "" }, { "docid": "f453c1ed199007b0a04cb9236b64cd5d", "score": "0.4893359", "text": "protected function loadSocialNetworks()\n {\n $this->data['social_networks'] = [];\n \n $social_network = new SocialNetwork();\n \n foreach ( $social_network->getAll() as $sn ) {\n \n $this->data['social_networks'][] = $sn;\n }\n \n }", "title": "" }, { "docid": "cb05ee193b76c91fd27a327ea1aa11e6", "score": "0.48920283", "text": "public static function list()\n {\n $list = [];\n\n if (($handle = fopen(__DIR__ . '/data/countriesCodes.csv', \"r\")) !== FALSE) {\n $row = 1;\n\n while (($country = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n if ($row > 1) {\n $list[] = new Country($country);\n }\n\n $row++;\n }\n\n fclose($handle);\n }\n\n return $list;\n }", "title": "" }, { "docid": "0ea29c4eb8d404b245ec2fe03240c9ce", "score": "0.48826608", "text": "public function afficheALL(){\n //objectif 1 : recupere les donner dans la Bdd\n $produits =$this -> getModel() -> getALLProduits();\n $categories = $this -> getModel() -> getALLCategories();\n\n //objectif 2 : afficher la vue (boutique.php) :\n require __DIR__ .'/../View/haut.inc.php';\n require __DIR__ .'/../View/produit/boutique.php';\n require __DIR__ .'/../View/bas.inc.php';\n }", "title": "" }, { "docid": "f7987526204f5ba1f2a72a1600347056", "score": "0.48823062", "text": "function coupons_export()\r\n {\r\n if (empty($this->params['named']['deal_id'])) {\r\n $this->cakeError('error404');\r\n }\r\n $dealusers = $this->Deal->DealUser->find('all', array(\r\n 'conditions' => array(\r\n 'DealUser.deal_id' => $this->params['named']['deal_id'],\r\n 'DealUser.is_canceled' => 0\r\n ) ,\r\n 'contain' => array(\r\n 'User' => array(\r\n 'fields' => array(\r\n 'User.user_type_id',\r\n 'User.username',\r\n 'User.id',\r\n )\r\n ) ,\r\n 'Deal' => array(\r\n 'fields' => array(\r\n 'Deal.id',\r\n 'Deal.name',\r\n 'Deal.coupon_start_date',\r\n 'Deal.coupon_expiry_date'\r\n )\r\n ) ,\r\n 'DealUserCoupon'\r\n ) ,\r\n 'fields' => array(\r\n 'DealUser.id',\r\n 'DealUser.discount_amount',\r\n 'DealUser.quantity'\r\n ) ,\r\n 'recursive' => 1\r\n ));\r\n Configure::write('debug', 0);\r\n if (!empty($dealusers)) {\r\n foreach($dealusers as $dealuser) {\r\n $coupon_array = array();\r\n $unique_coupon_array = array();\r\n foreach($dealuser['DealUserCoupon'] as $deal_user_coupon) {\r\n $coupon_array[] = $deal_user_coupon['coupon_code'];\r\n $unique_coupon_array[] = $deal_user_coupon['unique_coupon_code'];\r\n }\r\n $data[]['Deal'] = array(\r\n __l('User name') => $dealuser['User']['username'],\r\n __l('Quantity') => $dealuser['DealUser']['quantity'],\r\n __l('Amount') => Configure::read('site.currency') . $dealuser['DealUser']['discount_amount'],\r\n __l('Top Code') => !empty($coupon_array) ? implode(',', $coupon_array) : '',\r\n __l('Bottom Code') => !empty($unique_coupon_array) ? implode(',', $unique_coupon_array) : '',\r\n __l('Valid From') => strftime(Configure::read('site.datetime.format') , strtotime(_formatDate('Y-m-d H:i:s', strtotime($dealuser['Deal']['coupon_start_date'])))) ,\r\n __l('Expires On') => !empty($dealuser['Deal']['coupon_expiry_date'])? strftime(Configure::read('site.datetime.format') , strtotime(_formatDate('Y-m-d H:i:s', strtotime($dealuser['Deal']['coupon_expiry_date'])))) : '-',\r\n );\r\n $deal_name = $dealuser['Deal']['name'];\r\n }\r\n }\r\n $this->set('data', $data);\r\n $this->set('deal_name', $deal_name);\r\n }", "title": "" }, { "docid": "46300bb2f3f5588d355d0066c4401192", "score": "0.48770413", "text": "public function initPioche(){\n $this->pioche = $this->getDeck()->getCartes();\n }", "title": "" }, { "docid": "9a6a44deae8c86442b0b93e6f2f67061", "score": "0.48739484", "text": "private function cargar() {\n $this->omision();\n $res = Funciones::gEjecutarSQL(\"SELECT PR.CODAPAR,CONCAT(A.PORTAL,'-',A.PISO,A.LETRA) AS APARTAMENTO,PR.CODPERS,CONCAT(P.APELLIDOS,' ',P.NOMBRE) AS PERSONA,PR.BAJA,DATE_FORMAT(PR.BAJA,'%d-%m-%Y') AS FECHA,PR.ORDEN FROM PROPIETARIOS PR LEFT JOIN APARTAMENTOS A ON PR.CODAPAR=A.CODAPAR LEFT JOIN PERSONAS P ON PR.CODPERS=P.CODPERS ORDER BY CODAPAR ASC,IFNULL(BAJA,'9999-99-99') DESC, ORDEN ASC\");\n while($aRow = $res->fetch(PDO::FETCH_ASSOC)) {\n $this->aPropietarios[] = array($aRow['CODAPAR'],$aRow['APARTAMENTO'],$aRow['CODPERS'],$aRow['PERSONA'],$aRow['BAJA'],$aRow['FECHA'],$aRow['ORDEN']);\n }\n $res->closeCursor();\n }", "title": "" }, { "docid": "9ef0e22167dd39d60a0f569d64c746ac", "score": "0.48698637", "text": "public function getCouponData()\n {\n $this->GenerateCouponData();\n return $this->couponData;\n }", "title": "" }, { "docid": "e79f63fe0925d8f7cf8707c27ba2a9bd", "score": "0.48498407", "text": "protected function pushEnabledCurrenciesToView()\n {\n $this->view->currencies = R::find('currency', ' enabled = 1 ORDER BY name');\n }", "title": "" }, { "docid": "e5f35ce4db470f50fc3496da4abf8f80", "score": "0.4847622", "text": "public function __construct() {\n $this->categorias = Categoria::lists('nombre', 'id');\n }", "title": "" }, { "docid": "d4f6ba47f74500f47741bbd932d32e41", "score": "0.4827822", "text": "public function index()\n {\n $coupons = Coupon::orderby('created_at','asc')->paginate(10);\n $data =[\n 'coupons' => $coupons,\n ];\n return view('coupons.index',$data);\n }", "title": "" }, { "docid": "c2ae65d646e6af6cc5637e2f672d6487", "score": "0.4827315", "text": "private function setCoupon(): void\n {\n $this->arResult['COUPON'] = $this->couponsStorage->getApplicableCoupon() ?? '';\n $this->arResult['COUPON_DISCOUNT'] = !empty($this->arResult['COUPON']) ? $this->basketService->getPromocodeDiscount() : 0;\n }", "title": "" }, { "docid": "0d1f22b900aae20dbad7e59171e6517a", "score": "0.48250803", "text": "protected function loadModules()\n {\n $this->modules = collect();\n\n collect($this->config->modules())->each(function ($options, $name) {\n $this->modules->push(new Module($name, $this->app, $options));\n });\n }", "title": "" }, { "docid": "f9e239367d67c9899ec2d55ebe4ba891", "score": "0.48198354", "text": "protected function importData()\n\t{\n\t\tinclude_once \"Services/ADN/ED/classes/class.adnGoodInTransitCategory.php\";\n\t\t$cats = adnGoodInTransitCategory::getAllCategories($this->type);\n\n\t\t$this->setData($cats);\n\t\t$this->setMaxCount(sizeof($cats));\n\t}", "title": "" }, { "docid": "3cf0d09e4a57d29a688e9377151182ee", "score": "0.4807434", "text": "public function load_items() {\n $this->bp_item_collection->load_billing_payment_item($this->saa_id, $this->slm_id, $this->opl_id);\n }", "title": "" }, { "docid": "5680813d9f3f17ac90011827ed7f958e", "score": "0.47937593", "text": "protected function set_countries_map() {\n $this->partial(\"Importing country-to-continent map ...\");\n $this->countries = json_decode(file_get_contents($this->get_continents_url()), true);\n ksort($this->countries);\n $this->success(\"OK\");\n }", "title": "" }, { "docid": "3df7323cf169562f7c4a1788dd47c7e0", "score": "0.47932297", "text": "public function reset() {\n\t\t$this->setProperties(CsvimprovedModelAvailablefields::DbFields('vm_coupons'));\n\t}", "title": "" }, { "docid": "3728766a6dcc44d254b03868c7edac7d", "score": "0.47922638", "text": "public function _load()\n {\n return $this->_getProvider()->getCatchAll($this->getId());\n }", "title": "" }, { "docid": "039303a2908b28817b8fcb3295b156ac", "score": "0.47920895", "text": "private function init() {\n\t\t// Load config data\n\t\t$this->load->model('setting/setting');\t\t\t\t\t\t\t\t\n\t\t\t\n $this->load->model('catalog/category');\n $this->load->model('catalog/product');\n $this->load->model('account/order');\t\t\n\t}", "title": "" }, { "docid": "9c75bbc86c70c86a4d2a0dc4e980d8c4", "score": "0.47806004", "text": "public function index()\n {\n $data = Coupon::paginate(10);\n return view('admin.coupon.index',[\n 'data' => $data,\n ]);\n }", "title": "" }, { "docid": "3f81379bdcadb824c1bf6197e9f13760", "score": "0.47798702", "text": "private static function loadConfigs(){\r\n self::$confs = self::getConfigurations('number',true);\r\n }", "title": "" }, { "docid": "549ee33a2e6f32583656d64445eefc20", "score": "0.4776848", "text": "public function couponsByCategory() {\n $category_details = json_decode(file_get_contents('php://input'), true);\n\n $this->setDefaultRules($category_details);\n $this->form_validation->set_rules('categoryId', 'Category Id', 'trim|required|numeric');\n $this->form_validation->set_rules('index', 'page index', 'trim|numeric'); // For pagination.\n // Default response.\n $response = array(\n 'data' => NULL,\n 'status' => 0,\n 'responseMessage' => 'Server refused to process request. Please try again later.'\n );\n\n if ($this->form_validation->run() === FALSE) {\n $response = array(\n 'data' => NULL,\n 'status' => 0,\n 'responseMessage' => strip_tags(validation_errors())\n );\n } else {\n // Add index field, if request doesn't contains for pagination.\n if (!(isset($category_details['index']) && (int) $category_details['index'])) {\n $category_details['index'] = 1;\n }\n $response = $this->couponServices_model->couponsByCategory($category_details);\n }\n\n // Send JSON response.\n header('Content-type: application/json');\n echo json_encode(array('outputParam' => $response));\n exit;\n }", "title": "" }, { "docid": "b99bcb19f735fe50f999f32bd62b96c3", "score": "0.4776595", "text": "protected function pushEnabledCountriesToView()\n {\n $this->view->countries = R::find('country', ' enabled = 1 ORDER BY name');\n }", "title": "" }, { "docid": "47e61f793ec2955037516918ca264d48", "score": "0.47760653", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\n\t\t$this->load->model('coupon_model', 'coupons');\n\t\t$this->load->model('role_model', 'roles');\n\t\t$this->load->model('user_permission_model', 'user_permissions');\n\t}", "title": "" }, { "docid": "6a8707c033f7400c279dde5a15698496", "score": "0.47748068", "text": "public function index()\n {\n //\n $coupons=Coupons::all();\n return view('coupons.index',compact('coupons'));\n }", "title": "" }, { "docid": "0910e13ea29c2cc1509f75a361feca0d", "score": "0.47593746", "text": "public function load(): void\n {\n $this->_loadAccessors();\n $this->loadPropertiesToObject(\n $this,\n [\"salesChannelContext\", \"contextId\", \"defaultSalesChannelLanguageId\"],\n [\"getLabel\", \"addSelectedFacet\", \"getByPosition\", \"_loadAccessors\", \"getFacetsPrefix\", \"getValue\", \"facetRequiresPrefix\"],\n true\n );\n }", "title": "" }, { "docid": "2c16819c8f7e40d247f670fe6facc28c", "score": "0.4757772", "text": "private function load_classes(){ \n foreach(glob(BIKE_COOP_PLUGIN_DIR.\"framework/classes/*.php\") as $file):\t \t\t\t\n\t\t\trequire_once($file); \n\t\t\t\n\t\t\t/** Load Widgets */\n\t\t\tif(strpos( strtolower($file), 'widget') !== false){ \n\t\t\t\tadd_action('widgets_init', function() use ($file){\n\t\t\t\t\tregister_widget( str_replace('.php', '', basename($file)) );\n\t\t\t\t});\n\t\t\t}\n\t\tendforeach;\n }", "title": "" }, { "docid": "2e59f6562cdaf42b0208e5bcecda8bf5", "score": "0.47511503", "text": "public function index()\n {\n $coupons = Coupon::latest()->get();\n return view('backend.admin.coupon.index', compact('coupons'));\n }", "title": "" }, { "docid": "2e7c063e1c59f9f5f73b919f9be0c5c9", "score": "0.47480047", "text": "public function loadData()\r\n\t{\r\n\t\t$file = fopen($this->way, \"r\");\r\n\t\t$items = fgetcsv($file);\r\n\t\t$numberOfItems=0;\r\n\t\twhile ( ($items = fgetcsv($file,100,\";\") ) !== FALSE ) \r\n\t\t{\r\n\t\t\t$this->checkItems($items);\r\n\t\t\t$this->loadItems($items, $numberOfItems);\r\n\t\t\t$numberOfItems++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "457e07018bd4ad6938afb591e6d1b296", "score": "0.47458118", "text": "public function admin_page_coupon_manager() {\n global $DB;\n $action = optional_param('action', 'list', PARAM_ALPHAEXT);\n $cid = optional_param('cid', 0, PARAM_INT);\n $pageurl = clone $this->page->url;\n $pageurl->param('action', $action);\n\n switch ($action) {\n case 'delete':\n require_capability('enrol/classicpay:deletecoupon', $this->page->context);\n $this->page->set_title(get_string('title:couponmanager:delete', 'enrol_classicpay'));\n // We'll do this using a form for now.\n $id = required_param('id', PARAM_INT);\n $coupon = $DB->get_record('enrol_classicpay_coupon', array('id' => $id));\n $deleteform = new \\enrol_classicpay\\forms\\coupondelete($pageurl, $coupon);\n $pageurl->param('action', 'list');\n $deleteform->process_post($pageurl);\n return $this->admin_form('cpcoupons', $deleteform, array('id' => $id));\n break;\n\n case 'edit':\n require_capability('enrol/classicpay:editcoupon', $this->page->context);\n $this->page->set_title(get_string('title:couponmanager:edit', 'enrol_classicpay'));\n $id = required_param('id', PARAM_INT);\n if ($id > 0) {\n $instance = $DB->get_record('enrol_classicpay_coupon', array('id' => $id), '*', MUST_EXIST);\n } else {\n $instance = (object)array('id' => 0);\n }\n $options = new stdClass();\n $options->instance = $instance;\n if ($this->page->course->id <> SITEID) {\n $options->lockcourse = $this->page->course->id;\n }\n $form = new \\enrol_classicpay\\forms\\coupon($pageurl, $options);\n $pageurl->param('action', 'list');\n $form->process_post($instance, $pageurl);\n return $this->admin_form('cpcoupons', $form, $instance);\n break;\n\n case 'details':\n require_capability('enrol/classicpay:config', $this->page->context);\n $this->page->set_title(get_string('title:couponmanager:details', 'enrol_classicpay'));\n $id = required_param('id', PARAM_INT);\n $type = optional_param('type', 'all', PARAM_ALPHA);\n $params = array('page' => 'cpcoupons', 'sesskey' => sesskey(), 'type' => $type);\n $back = new \\moodle_url('/enrol/classicpay/admin.php', $params);\n $table = new \\enrol_classicpay\\tables\\couponusage($id);\n $table->baseurl = clone $this->page->url;\n $table->baseurl->param('id', $id);\n $table->baseurl->param('action', 'details');\n $table->baseurl->param('sesskey', sesskey());\n\n $out = '';\n $out .= $this->header();\n $out .= html_writer::start_div('enrol-classicpay-container');\n $out .= html_writer::start_div('enrol-classicpay-tabs');\n $out .= $this->admin_tabs('cpcoupons');\n $out .= html_writer::end_div();\n $out .= '<div><a href=\"' . $back . '\">' . get_string('coupons:backtooverview', 'enrol_classicpay') . '</a></div>';\n ob_start();\n $table->render(25);\n $out .= ob_get_clean();\n $out .= html_writer::end_div();\n $out .= $this->footer();\n return $out;\n break;\n\n case 'list':\n default:\n $strnewform = '';\n $this->page->set_title(get_string('title:couponmanager', 'enrol_classicpay'));\n if (has_capability('enrol/classicpay:createcoupon', $this->page->context)) {\n $options = new stdClass();\n $options->instance = (object) array('id' => 0);\n if ($this->page->course->id <> SITEID) {\n $options->lockcourse = $this->page->course->id;\n }\n $newform = new \\enrol_classicpay\\forms\\coupon($pageurl, $options);\n $newform->process_post($options->instance, $pageurl);\n $strnewform = html_writer::div($newform->render(), 'enrol-classicpay-container');\n }\n\n $filter = optional_param('list', 'all', PARAM_ALPHA);\n $table = new \\enrol_classicpay\\tables\\coupons($cid, $filter);\n $table->baseurl = $pageurl;\n $out = '';\n $out .= $this->header();\n $out .= html_writer::start_div('enrol-classicpay-container');\n $out .= html_writer::start_div('enrol-classicpay-tabs');\n $out .= $this->admin_tabs('cpcoupons');\n $out .= html_writer::end_div();\n ob_start();\n $table->render(25);\n $out .= ob_get_clean();\n $out .= html_writer::end_div();\n $out .= $strnewform;\n $out .= $this->footer();\n return $out;\n break;\n }\n }", "title": "" }, { "docid": "59ca88f378cdff54d1cc67e9c455de57", "score": "0.47375458", "text": "public static function getInstance() {\n if (!is_object(self::$_instance)) //or if( is_null(self::$_instance) ) or if( self::$_instance == null )\n self::$_instance = new Admin_Model_Coupons();\n return self::$_instance;\n }", "title": "" }, { "docid": "c8dc3849487b2da45ec62c05e622f9a9", "score": "0.47228253", "text": "public function __construct()\n {\n $this->composants = new ArrayCollection();\n $this->listeCompo = new ArrayCollection();\n\n }", "title": "" }, { "docid": "e008d890ede43fa0fd2d15309be0654d", "score": "0.47161525", "text": "private function _fetchCountries()\n {\n $this->options['countries'] = $this->_db->fetchAllKeyQuery(\"SELECT * FROM countries\");\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($this->resource_name);\n }", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.6684253", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "9579e337a5325a82370abb431f646b6f", "score": "0.6490299", "text": "public function show($id)\n\t{\n\t\t//\n\t\t$resource = \\App\\Resource::find($id);\n\t\treturn view('deleteResource', array( 'resource' => $resource) );\n\t}", "title": "" }, { "docid": "989918b39caf8ede67ab11ef4dc4a651", "score": "0.63472325", "text": "public function editresourceAction() {\n\t\t$resourceid = $this->_request->getParam('resourceid');\n\t\t$srlink = new StudentResourceLink();\n\t\t$select = $srlink->select()->where($srlink->getAdapter()->quoteInto('auto_id = ?', $resourceid));\n\t\t$rows = $srlink->fetchAll($select);\n\t\t$therow = null;\n\t\tforeach ($rows as $row) {\n\t\t\t$therow=$row;\n\t\t}\n\t\t//print_r($therow);\n\t\t$this->view->resourcelink = $therow;\n\t\t\n\t\t$mediabankUtility = new MediabankUtility();\n\t\tob_start();\n\t\t$mediabankUtility->curlDownloadResource($therow['mid'],false);\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\t$this->view->content = $content;\t\t\n\t\t$this->view->redirect_to = $_SERVER[\"HTTP_REFERER\"];\n\t\tStudentResourceService::prepStudentResourceView($this, $this->_request, $therow->loid);\n\t\tif($therow['category']=='Summary') //summary has been stripped out since a summary exists; add it back in if this one is a summary\n\t\t\t$this->view->studentResourceCategories[6]='Summary';\n\t}", "title": "" }, { "docid": "2e3da5773c9c5d59c21b1af4e1ac8cd8", "score": "0.623589", "text": "public function show($id)\n {\n if(Module::hasAccess(\"Resources\", \"view\")) {\n \n $resource = Resource::find($id);\n if(isset($resource->id)) {\n $module = Module::get('Resources');\n $module->row = $resource;\n $group_lists = array();\n $user_lists = array();\n\n if(!$resource->is_public){\n $group_lists = DB::table('resource_groups')\n ->select('groups.id', 'groups.name')\n ->join('groups','groups.id','=','resource_groups.group_id')\n ->where('resource_groups.resource_id', $id)->whereNull('groups.deleted_at')->whereNull('resource_groups.deleted_at')->get();\n\n $user_lists = DB::table('resource_users')\n ->select('users.id', 'users.name')\n ->join('users','users.id','=','resource_users.user_id')\n ->where('resource_users.resource_id', $id)->whereNull('users.deleted_at')->whereNull('resource_users.deleted_at')->get();\n }\n \n return view('la.resources.show', [\n 'module' => $module,\n 'view_col' => $module->view_col,\n 'no_header' => true,\n 'no_padding' => \"no-padding\",\n 'user_lists' => $user_lists,\n 'group_lists' => $group_lists\n ])->with('resource', $resource);\n } else {\n return view('errors.404', [\n 'record_id' => $id,\n 'record_name' => ucfirst(\"resource\"),\n ]);\n }\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "d6d98993d2a40a3cba09832ef9953f69", "score": "0.6216249", "text": "public function lookup($resource);", "title": "" }, { "docid": "6244aaaaf59fb15467858bc417084ebc", "score": "0.62105983", "text": "protected function makeDisplayFromResource()\n\t{\n\t\tif($this->activeResource instanceof SimpleXMLElement)\n\t\t{\n\t\t\treturn $this->activeResource->asXml();\n\t\t}else{\n\t\t\treturn $this->activeResource;\n\t\t}\n\t}", "title": "" }, { "docid": "3ee4a64030fd6d594c526bf49945971f", "score": "0.6198528", "text": "public function show($id)\n {\n $res = Resource::find($id);\n return view('resource.show')->withResource($res);\n }", "title": "" }, { "docid": "48b723515995fb4178256251ea323c04", "score": "0.61824137", "text": "public function show($id) {\n $resource = static::$resource::findOrFail($id);\n return view($this->getView('show'), [static::$varName[0] ?? $this->getResourceName() => $resource]);\n }", "title": "" }, { "docid": "b6106194998deb4acb00d89d1984bf4b", "score": "0.6155446", "text": "public function displayAction()\n {\n $params = $this->router->getParams();\n if (isset($params[0]) && $firewall = Firewalls::findFirst(intval($params[0]) ? $params[0] : ['name=:name:', 'bind' => ['name' => $params[0]]])) {\n $this->tag->setTitle(__('Firewalls') . ' / ' . __('Display'));\n $this->view->setVars([\n 'firewall' => $firewall,\n 'content' => Las::display($firewall->name)\n ]);\n\n // Highlight <pre> tag\n $this->assets->addCss('css/highlightjs/arta.css');\n $this->assets->addJs('js/plugins/highlight.pack.js');\n $this->scripts = ['$(document).ready(function() { $(\"pre\").each(function(i, e) {hljs.highlightBlock(e)}); });'];\n }\n }", "title": "" }, { "docid": "c232a532d32e3f8e5c41e20db4331be5", "score": "0.60641253", "text": "function display($aTemplate = null) {\r\n\t\t$this->fetch ( $aTemplate, true );\r\n\t}", "title": "" }, { "docid": "88951f8df99fd6c0e333e72b145dfb04", "score": "0.6063686", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "1a2ff798e7b52737e1e6ae5b0d854f6a", "score": "0.60512596", "text": "public function show($id)\n\t{\n\t\t// display *some* of the resource...\n\t\treturn Post::find($id);\n\t}", "title": "" }, { "docid": "da456d60e11065d629261fc79e691a95", "score": "0.6006895", "text": "public function displayAction()\n {\n $id = $this->params['_param_1'];\n $this->flash['message'] = \"Arriba loco, este es el mensaje del flash!\";\n return $this->render( $id );\n }", "title": "" }, { "docid": "3fb44335bf5e5dca76ae4c41be3fee5d", "score": "0.5995527", "text": "public function action_show()\n\t{\n\t\t$id = Coder::instance()->short_url($this->request->param('id'), TRUE);\n\n\t\tif (is_numeric($id) === FALSE)\n\t\t{\n\t\t\tHTTP::redirect(Route::get('default')->uri());\n\t\t}\n\t\t\n\t\t$user = ORM::factory('User', $id);\n\t\t$manager = Manager::factory('User', $user);\n\t\t\n\t\t$manager->show();\n\n\t\t$this->view_container = $manager->get_views_result('container');\n\t\t$this->view_content = $manager->get_views_result('content');\n\t}", "title": "" }, { "docid": "9a28e42aa633511a42cb70db3b7fcc26", "score": "0.5986619", "text": "public function show($id)\n\t{\n\t\ttry {\n\t\t if ( \\Auth::check() && \\Auth::user()->hasPaid() )\n {\n $resource = \\Resource::find($id);\n $path_to_image = app('path.protected_images') .'/'.$resource->image;\n //Read image path, convert to base64 encoding\n $imgData = base64_encode(file_get_contents($path_to_image));\n //Format the image SRC: data:{mime};base64,{data};\n $src = 'data: '.mime_content_type($path_to_image).';base64,'.$imgData;\n\n return \\View::make('resources.view')->with([\n 'resource' => $resource,\n 'img' => $src\n ]);\n\n } else {\n\n \\App::abort(404);\n }\n\n } catch (\\Exception $e) {\n\n \\Log::warning( $e->getMessage() );\n }\n\t}", "title": "" }, { "docid": "41ab5aeaf4ec45d330f185763e2d3cee", "score": "0.5962972", "text": "public function show()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "ecdc5dd9611d1734404c92d923029a39", "score": "0.5881492", "text": "public function show($id)\n {\n echo self::routeNamed();\n }", "title": "" }, { "docid": "461e196dfe64422deb4a744c50eb5d8d", "score": "0.587919", "text": "public function show($id) {\n //view/edit page referred to as one entity in spec\n }", "title": "" }, { "docid": "f004693e692e26b7ab9f8de37189afc1", "score": "0.58711755", "text": "private function displayResources()\n\t\t{\n\t\t\t$html = '';\n\t\t\t$html .= '<div class=\"resources\" >'.\"\\n\";\n\t\t\t$html .= '\t<h4>Resources ~ '.$this->challenge['challengeResourceHeading'].'</h4>'.\"\\n\";\n\t\t\tforeach($this->resources as $resource)\n\t\t\t{\n\t\t\t\t$html .= '\t<p class=\"resource-link\"><a href=\"http://'.$resource['resourceLink'].'\">'.$resource['resourceTitle'].'</a></p>'.\"\\n\";\n\t\t\t}\n\t\t\n\t\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "f02f37fffab992508c7d7d6f7ae94f94", "score": "0.58684236", "text": "public function showAction() {\n\n // validate contact id is int\n $id = $this->route_params[\"id\"];\n // if id is invalid redirect to 404 page\n if (filter_var($id, FILTER_VALIDATE_INT) === false) {\n $this->show404();\n return;\n }\n\n $contact_obj = new Contact();\n $contact = $contact_obj->findById($id);\n // if no contact returned then display error message\n if ($contact == false) {\n //set error message\n $_SESSION[\"error_message\"] = \"Contact not found or deleted\";\n // redirect to show all contacts if contacts not found\n header(\"Location: /contacts\");\n return;\n }\n // render the view if all everything is Ok\n View::renderTemplate(\"contacts/show.twig.php\", [\"contact\" => $contact]);\n }", "title": "" }, { "docid": "4294ddbd744676190ac0b1e7d92632e0", "score": "0.58634454", "text": "public function show() {\r\n echo $this->init()->getView();\r\n }", "title": "" }, { "docid": "d138cb59b6d8df8768f135975e4445ad", "score": "0.58409727", "text": "public function show()\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "ad2fe33fedb796826d1b96c32859495c", "score": "0.5838473", "text": "public function resourceDesktop()\n {\n $resourceTypes = $this->em->getRepository('ClarolineCoreBundle:Resource\\ResourceType')->findAll();\n\n return $this->templating->render(\n 'ClarolineCoreBundle:Tool\\desktop\\resource_manager:resources.html.twig',\n array('resourceTypes' => $resourceTypes, 'maxPostSize' => ini_get('post_max_size'))\n );\n }", "title": "" }, { "docid": "6e1ccfc29048f24d0efc88d6b8257171", "score": "0.5811056", "text": "public function show($name)\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "5b7cde41d4a1270d31720878d4a50b19", "score": "0.57936835", "text": "public function show($id)\n\t{\n\t\treturn $this->success($this->resource->getById($id));\n\t}", "title": "" }, { "docid": "7dd625db5c11766539ede97b10e391c8", "score": "0.57885426", "text": "public function viewAction($resourceId)\n {\n try {\n // Call to the resource service to get the resource\n $resourceResource = $this->get(\n 'asker.exercise.exercise_resource'\n )->getContentFullResource($resourceId, $this->getUserId());\n\n return new ApiGotResponse($resourceResource, array(\"details\", 'Default'));\n\n } catch (NonExistingObjectException $neoe) {\n throw new ApiNotFoundException(ResourceResource::RESOURCE_NAME);\n }\n }", "title": "" }, { "docid": "e871bf67c885c4b595a1f5cc980d032e", "score": "0.5787194", "text": "public function show()\n {\n \n \n }", "title": "" }, { "docid": "e918056f269cc66c35d0c9d5ae72cf98", "score": "0.5785671", "text": "protected function addResourceShow($name, $base, $controller, $options)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}.{format?}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show', $options));\n\t}", "title": "" }, { "docid": "8e4604d345a4a1aa92109fa7c7b9b1e1", "score": "0.57850385", "text": "public function showAction(I18NResource $i18NResource)\n {\n $use_translations = $this->get('Services')->get('use_translations');\n\n if(!$use_translations){\n throw $this->createNotFoundException('Not a valid request');\n }\n\n $this->get('Services')->setMenuItem('I18NResource');\n $changes = $this->get('Services')->getLogsByEntity($i18NResource);\n\n return $this->render('i18nresource/show.html.twig', array(\n 'i18NResource' => $i18NResource,\n 'changes' => $changes,\n ));\n }", "title": "" }, { "docid": "ea3e059853b58df5488fa70a7fd54c3b", "score": "0.5782477", "text": "protected function addResourceShow($name, $base, $controller)\n {\n $uri = $this->getResourceUri($name) . '/{' . $base . '}';\n return $this->get($uri, $this->getResourceAction($name, $controller, 'show'));\n }", "title": "" }, { "docid": "39114f16312ac4920577af8887aaf740", "score": "0.57743496", "text": "public function display()\r\n {\r\n echo $this->fetch();\r\n }", "title": "" }, { "docid": "fcc9864a64202f3261f4537601857f07", "score": "0.5769528", "text": "public function show($nombre, $resourceType, $resourceName)\n {\n //gets the resource\n switch ($resourceType) {\n case (\"manga\"):\n $resource = Manga::where(\"name\", $resourceName)->first();\n break;\n case (\"novel\");\n $resource = Novel::where(\"name\", $resourceName)->first();\n break;\n default:\n abort(404);\n break;\n }\n //gets the comments for the resource\n $commentsFound = $resource->comments()->get();\n $commented = !is_null(Auth::user()->comments()->where(\"commentable_id\", $resource->id)->first());\n //creates a register of the interaction\n $resource->users()->attach(Auth::user());\n return view(\"user.show\", compact(\"resource\", \"commentsFound\", \"commented\", \"resourceType\"));\n }", "title": "" }, { "docid": "496570de6c493cd9fe30f7c52ceb87d1", "score": "0.57693255", "text": "public function show($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}", "title": "" }, { "docid": "4be578329f20a5696732db0fd60d5d80", "score": "0.5768978", "text": "public function executeShow()\n {\n $this->headline = HeadlinePeer::getHeadlineFromStripTitle($this->getRequestParameter('headlinestriptitle'));\n $this->forward404Unless($this->headline);\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "fd30d754eb9c55abae27d57dff32abdc", "score": "0.57409096", "text": "public function resourcethumbnailAction()\r\n {\r\n $request = $this->getRequest();\r\n $response = $this->getResponse();\r\n\r\n $id = (int) $request->getQuery('id');\r\n $w = (int) $request->getQuery('w');\r\n $h = (int) $request->getQuery('h');\r\n $hash = $request->getQuery('hash');\r\n\r\n $realHash = DatabaseObject_ResourceImage::GetImageHash($id, $w, $h);\r\n\r\n // disable autorendering since we're outputting an image\r\n $this->_helper->viewRenderer->setNoRender();\r\n\r\n $image = new DatabaseObject_ResourceImage($this->db);\r\n if ($hash != $realHash || !$image->load($id)) {\r\n // image not found\r\n $response->setHttpResponseCode(404);\r\n return;\r\n }\r\n\r\n try {\r\n $fullpath = $image->createResourceThumbnail($w, $h);\r\n }\r\n catch (Exception $ex) {\r\n $fullpath = $image->getFullPath();\r\n }\r\n\r\n $info = getImageSize($fullpath);\r\n\r\n $response->setHeader('content-type', $info['mime']);\r\n $response->setHeader('content-length', filesize($fullpath));\r\n echo file_get_contents($fullpath);\r\n }", "title": "" }, { "docid": "e68751480fa47a0b2d2bc46570e3a883", "score": "0.5735067", "text": "public function display($id = null) {\n \n }", "title": "" }, { "docid": "ca0564d197f7b97c9c7bb3bf9ec0d891", "score": "0.57342285", "text": "public function display($id = null) {\n\t\t$page = $this->SimplePage->findById($id);\n\t\tif(!$page){\n\t\t\t$this->Session->setFlash(__('Page not found'),'error');\n\t\t\t$this->redirect($this->referer());\n\t\t}\n\t\t\n\t\t//If the page was requested using requestAction, return the page object. Can be handy for integration of content in custom pages.\n\t\tif (! empty($this->request->params['requested']) ) {\n\t\t\treturn $page;\n\t\t}\n\t\t\n\t\t$this->set('page',$page);\n\t}", "title": "" }, { "docid": "a7cd1d7ce30dda2ea0273ce031cff516", "score": "0.5725927", "text": "public function displayReferenceAction()\n {\n \t$reference_id = Extended\\reference_request::displayReference( Auth_UserAdapter::getIdentity ()->getId (), $this->getRequest()->getparam('reference_req_id'), \\Extended\\feedback_requests::VISIBILITY_CRITERIA_DISPLAYED);\n \tif($reference_id)\n \t{\n \t\n \t\t$this->view->reference_visible=$reference_id;\n \t\techo Zend_Json::encode( 1 );\n \t}\n \tdie;\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "8f565ce0db5c2b58c1bd4bea7cb05683", "score": "0.5720744", "text": "public function showAction(Ressource $ressource, SessionConcours $session = null)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'session' => $session,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "a494be3f6d40a2f537ff292b7a0ccaae", "score": "0.5711622", "text": "public function item($id=0)\n {\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n \n $resource = $this->member_resource_model->find($id);\n if(empty($resource))\n {\n $this->session->action_success_message = 'Invalid item selection.';\n redirect(base_url().'member_resources/');\n }\n \n\t\t$data = array(\n 'page_title' => 'Resource detail',\n 'resource' => $resource\n );\n\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/item_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "cfff8a1202fcfae7e44ab0c4fb351586", "score": "0.570918", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n $id = $_GET['id'];\n $entity = $em->getRepository('BackendBundle:Concepto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Concepto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BackendBundle:Concepto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "b19fae7378b33f825e4ee1e7d8aef94a", "score": "0.5699814", "text": "public function display($templateName=null)\n {\n echo $this->get($templateName);\n }", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.5699578", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "0465b5fe008a3153a8a032fca67abfed", "score": "0.56937706", "text": "public function show() { }", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
e8b10bca3d0c14ebd0e8337c47b601ef
Display a form to edit a task
[ { "docid": "b8d047ca5532ae0e19da7bfada2ba215", "score": "0.0", "text": "public function edit(array $values = array(), array $errors = array())\n {\n $task = $this->getTask();\n $project = $this->project->getById($task['project_id']);\n\n if (empty($values)) {\n $values = $task;\n $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));\n $values = $this->hook->merge('controller:task-modification:form:default', $values, array('default_values' => $values));\n }\n\n $values = $this->dateParser->format($values, array('date_due'), $this->config->get('application_date_format', DateParser::DATE_FORMAT));\n $values = $this->dateParser->format($values, array('date_started'), $this->config->get('application_datetime_format', DateParser::DATE_TIME_FORMAT));\n\n $t = $this->task->getById($task['id']);\n\n $values['sonder_client_id'] = $t['sonder_client_id'];\n $values['sonder_product_id'] = $t['sonder_product_id'];\n $values['sonder_contract_id'] = $t['sonder_contract_id'];\n\n $this->response->html($this->template->render('task_modification/edit_task', array(\n 'project' => $project,\n 'values' => $values,\n 'errors' => $errors,\n 'contracts' => $this->sonderContract->getList(true,$project['sonder_client_id']),\n 'clients' => $this->sonderClient->getAll(),\n 'products' => $this->sonderProduct->getAll(),\n 'task' => $task,\n 'investedhours' => $this->sonderInvestedhours->getAllByUserAndTask($task['id']),\n 'billablehours' => $this->sonderBillablehours->getAllByUserAndTask($task['id']),\n 'users' => $this->user->getAdmins(),\n 'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']),\n 'colors_list' => $this->color->getList(),\n 'categories_list' => $this->category->getList($task['project_id']),\n )));\n }", "title": "" } ]
[ { "docid": "6593cfdb18f1cef76f37b77910191c1a", "score": "0.8341696", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n\n self::getTemplate('edit_task', $record);\n\n }", "title": "" }, { "docid": "b4bcae16b256bb23707dba844fd207b0", "score": "0.8335119", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n self::getTemplate('edit_task', $record);\n \n }", "title": "" }, { "docid": "38802f0ae7927350c113c55d3dbb6296", "score": "0.7981466", "text": "public function edit(Task $task)\n {\n \t$task_statuses = TaskStatus::all();\n\t return view(\"tasks.form\", [\n\t \t'task' => $task,\n\t\t 'task_statuses' => $task_statuses\n\t ]);\n }", "title": "" }, { "docid": "d4e70e2dc6da23cb3e15dc2a9a932cca", "score": "0.7944686", "text": "public function edit(Task $task) {\n //\n }", "title": "" }, { "docid": "a185029475bdcdb865162c69063584a5", "score": "0.7934132", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "09808416968f6790e48b549f8d4190f1", "score": "0.79198885", "text": "public function edit(Task $task)\n {\n //\n }", "title": "" }, { "docid": "c61797a1d40a457bac88e0e5fa2af8ce", "score": "0.79026085", "text": "public function editAction($id){\n \n $em=$this->getDoctrine()->getManager();\n $task=$em->getRepository('EMMUserBundle:Task')->find($id);\n \n if(!$task){\n throw $this->createNotFoundException('task not found');\n }\n $form=$this->createEditForm($task);\n \n return $this->render('EMMUserBundle:Task:edit.html.twig',array('task'=>$task,'form'=>$form->createView()));/*me crea la vista, ahroa que aplique o no la funcion creaediform es\n es decision mia */\n }", "title": "" }, { "docid": "bcc341f8078241ef545c0e5a46330bce", "score": "0.7836226", "text": "public function edit(Task $task) {\n //dd($task);\n //edita una tarea\n return view('task.edit', compact('task'));\n }", "title": "" }, { "docid": "c760de3539ec4b29f17c485c5f73f5a7", "score": "0.76545995", "text": "public function edit(Task $task)\n {\n\t\tif ($task->user_id == Auth::user()->id && $task->completed === '0') {\n\t\t\t$task['description'] = Crypt::decrypt($task['description']);\n\t\t\t$task['motivation'] = Crypt::decrypt($task['motivation']);\n\t\t\t$user = Auth::user();\n\t\t\treturn view('tasks.edit', compact('task', 'user'));\n\t\t} else {\n return redirect('/')\n ->with('message', 'Oops, something went wrong!')\n ->with('status', 'danger');\n\t\t}\n }", "title": "" }, { "docid": "49db1a442f567933fb2f1e5baa4df889", "score": "0.75870156", "text": "public function edit(Task $task)\n {\n return view('housekeepers.taskedit', compact('task'));\n }", "title": "" }, { "docid": "cff2b35427077a83c976e2caa9b717c1", "score": "0.75843453", "text": "public function edit(Task $task)\n {\n //\n //\n $task = Task::find($task->id);\n $companies =Company::orderBy('created_at', 'DESC')->get();\n $users = User::orderBy('created_at', 'DESC')->get();\n $projects =project::orderBy('created_at', 'DESC')->get();\n\n return view('admin.tasks',[\n 'edit_task'=>$task,\n 'companies' => $companies,\n 'users' => $users,\n 'projects' => $projects,\n ]);\n\n }", "title": "" }, { "docid": "c32491c52219d5f1b236a8efb046820d", "score": "0.7547029", "text": "public function edit(Task $task)\n {\n $this->_view['task'] = $task;\n\n return view('task.edit', $this->_view);\n }", "title": "" }, { "docid": "6c8a72f7caaaac1e09669a7085fee5d5", "score": "0.75287855", "text": "public static function edit()\n{\n$record = todos::findOne($_REQUEST['id']);\nself::getTemplate('edit_task', $record);\n}", "title": "" }, { "docid": "2bcb32aff75b64530564b90c3cccbbf2", "score": "0.7518061", "text": "public function edit($id)\n\t{\n\t\t$task = task::findOrFail($id);\n\t\treturn view('tasks.edit', compact('task'));\t\n\t}", "title": "" }, { "docid": "4b955f4f3f631f313f858d4e74970718", "score": "0.7499833", "text": "public function editTask($id)\n\t{\n\t\t$task=Task::where(\"id\",\"=\",$id)->get()->first();\n\t\treturn View::make('edit-task')->with(\"task\",$task);\n\t}", "title": "" }, { "docid": "67887285f0a232ea450550214509a9f0", "score": "0.7496445", "text": "public function edit(Task $task)\n {\n //\n $items = $task->Items()->get();\n $att = ['name','category'];\n $controller = 'TaskController';\n $target = $task;\n //return compact('task','items','att');\n return view('gen.task.edit',compact('target','items','att','controller'));\n }", "title": "" }, { "docid": "39e66ce8d26a776bdc5825053f50193b", "score": "0.74939466", "text": "public function edit(Task $task)\n {\n if(Auth::check()){\n $companies = Company::all();\n $projects = Project::all();\n $task = Task::find($task->id);\n\n return view('tasks.edit', ['companies' => $companies, 'projects' => $projects, 'task' => $task]);\n }\n }", "title": "" }, { "docid": "fb8dd6d91ef46b6a13fa8cac631f2ba8", "score": "0.7467208", "text": "public function edit(Task $task)\n {\n //$task = Task::findOrFail($id);\n\n // return view('/edit');\n return view('/edit', compact('task'));\n }", "title": "" }, { "docid": "6544047953512ef05a1a44688b174808", "score": "0.7422436", "text": "public function edit(Task $task)\n {\n return view('tasks.edit', ['task'=>$task]);\n }", "title": "" }, { "docid": "9459e594d7fc9ffe9743dda9d170babf", "score": "0.7389276", "text": "public function edit($id)\n {\n $item = Task::find($id);\n $type = 'edit';\n return view('form', compact('item', 'type'));\n }", "title": "" }, { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.73745775", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "540386bc76ea251055a2ec88a878e020", "score": "0.73637867", "text": "public function edit(Task $task)\n {\n return view('tasks.edit', compact('task'));\n }", "title": "" }, { "docid": "cc64e191f6b1fb0d1792b74110a823b7", "score": "0.7352685", "text": "public function edit($id)\n\t{\n\t\t$task = Task::find($id);\n\n\t\treturn View::make('tasks.edit', compact('task'));\n\t}", "title": "" }, { "docid": "27913881aa4d3c0a5f900381adb06928", "score": "0.73410577", "text": "public function edit(Task $task)\n {\n $taskGroup = DB::table('task_groups')->get();\n return view('editTask', ['task' => $task, 'taskGroup' => $taskGroup]);\n }", "title": "" }, { "docid": "8c1785488a19e05c76f32678c88f6790", "score": "0.7338759", "text": "public function edit($class_id, $task)\n {\n //\n }", "title": "" }, { "docid": "fbb81203e28f5f3f9a69daf3b0e476db", "score": "0.7323232", "text": "public function edit($id)\n {\n $projects = Project::all();\n $task = Task::find($id);\n return view('supervisor/task/edit', compact('task','projects'));\n \n }", "title": "" }, { "docid": "04102884a52a1f60dbccbffa696b90a0", "score": "0.7311682", "text": "public function edit(Task $task)\n {\n return view('tasks.edit',compact('task'));\n }", "title": "" }, { "docid": "ad6cc21a6d2d0d11cd42344ad022d01c", "score": "0.7285012", "text": "public function edit($id)\n {\n $task = Task::findOrFail($id);\n return view('tasks.edit')->with('task',$task);\n }", "title": "" }, { "docid": "6534d34858c1c2e6371b2e622e953b0d", "score": "0.7276945", "text": "public function edit($id)\n {\n $tasks = \\App\\Task::all();\n $task = \\App\\Task::find($id);\n return view('schedule.edit')->with(['task' => $task]); \n }", "title": "" }, { "docid": "31a347c88f9b57fdde42fc3403241822", "score": "0.72676533", "text": "public function edit(Task $task)\n {\n $projects = Project::get();\n return view('tasks.edit')\n ->with('task', $task)\n ->with('projects', $projects);\n }", "title": "" }, { "docid": "58cd6e26eab3b005165ed3c273b5154e", "score": "0.7258736", "text": "public function edit($id)\n {\n $tasks = $this->getRequestById(\"retrieveTaskById\" ,$id);\n $tasks = json_decode($tasks->getBody()->getContents());\n $tasks = $tasks->data;\n $groups = $this->retrieveGroups();\n return view(\"Tasks.edit\" , compact(\"groups\" , \"tasks\"));\n }", "title": "" }, { "docid": "25cc19e08c88399d29689c912032b8b2", "score": "0.72563344", "text": "public function edit(Tasks $tasks)\n {\n //\n }", "title": "" }, { "docid": "011d04492378d0e84bc8d58bc9341133", "score": "0.7253817", "text": "public function edit(Task $task)\n {\n // checks if the current user can edit the task\n if (Auth::check() && Auth::user()->id == $task->user_id) {\n return view('edit', compact('task'));\n } else {\n return redirect('/');\n }\n }", "title": "" }, { "docid": "14d19fdbf01594ff25dd1fd3c9db2138", "score": "0.7243717", "text": "public function edit(Task $task)\n {\n return view('tasks.edit')->with('task', $task);\n }", "title": "" }, { "docid": "b1cacca667777a88992614bfe382f0dc", "score": "0.7242407", "text": "public function edit($id)\n {\n $tasks = Task::find($id);\n return view('tasks.edit')->with([\n 'tasks'=> $tasks,\n\n]);\n\n }", "title": "" }, { "docid": "e213170f001168a3464bb377469732f2", "score": "0.72368616", "text": "public function edit($id)\n {\n $task = Task::findOrFail($id);\n\n return view('admin.tasks.edit', ['task' => $task]);\n }", "title": "" }, { "docid": "e8a1e3a13235765a13bbc2ce451125de", "score": "0.7224397", "text": "public function edit($id)\n {\n $task = Task::find($id);\n\n return view('task.edit' , ['task' => $task]);\n\n }", "title": "" }, { "docid": "aa8eda0dd4aa1e71981f43ce77100fdc", "score": "0.7203688", "text": "public function edit(Task $task)\n {\n $users = User::all();\n $assignedUsersCollection = $task->assignedUsers()->get();\n $assignedUsers = $this->makeArray($assignedUsersCollection, \"user_id\");\n return view(self::FOLDER.\".edit\", compact(\"task\", \"users\", \"assignedUsers\"));\n }", "title": "" }, { "docid": "66a2c18c40eda30ce5897e7091a0f6d0", "score": "0.7189336", "text": "public function edit(Task $task)\n {\n $data = [\n 'task' => $task\n ];\n return view('task', $data);\n }", "title": "" }, { "docid": "d77e4ada9212943d9a8447a13039ae6c", "score": "0.71849746", "text": "public function getTask()\n\t{\n\t\treturn 'edit';\n\t}", "title": "" }, { "docid": "c633c1b3f38d822b0f1b5c007743b687", "score": "0.71817523", "text": "public function edit() {\r\n \r\n if ($this->input->is_ajax_request()) {\r\n \r\n $tid = 0;\r\n $tpid\t\t\t\t\t\t\t= 0;\r\n $task = array();\r\n $parent_title\t\t\t\t\t= '';\r\n\t\t\t$project_id\t\t\t\t\t\t= 0;\r\n\t\t\t\r\n if ($this->input->post('tid') && $this->input->post('tid') > 0) {\r\n $tid = $this->input->post('tid');\r\n $task = $this->task_model->get_task($tid, $this->data['actual_user']->id);\r\n }\r\n \r\n\t\t\tif ($this->config->item('rfk_subtasks') && ($this->input->post('tpid') && $this->input->post('tpid') > 0)) {\r\n\t\t\t\t$tpid\t\t\t\t\t\t= $this->input->post('tpid');\r\n\t\t\t\t$parent_title\t\t\t\t= $this->task_model->get_parent_task_title($tpid);\r\n\t\t\t\t$project_id\t\t\t\t\t= $this->task_model->get_task_project($tpid);\r\n\t\t\t}\r\n\t\t\t\r\n //load layout configuration\r\n $this->config->load('layout');\r\n\r\n //inform system don't use layout, don't need for this ajax call\r\n $this->config->set_item('layout_use', false);\r\n \r\n // get default value for visibility\r\n $visibility = $this->config->item('rfk_task_visibility');\r\n \r\n $ups\t\t\t\t\t\t\t= array($this->lang->line('task_edit_project_none'));\r\n foreach ($this->data['user_projects'] as $up) {\r\n $ups[$up->project_id] = $up->name;\r\n }\r\n\r\n $defaults = array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'task_id' => $tid,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'task_parent_id' => $tpid,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'priority' => 3,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'context' => 1,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'title' => null,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'deadline_date' => null,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'project_id' => $project_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'description' => null,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'user_id' => $this->data['actual_user']->id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'private' => $visibility,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'status' => 0,\r\n );\r\n \r\n if (count($task) === 1) {\r\n $data = array_merge($defaults, $task[0]);\r\n }\r\n else {\r\n $data = $defaults;\r\n } \r\n \r\n $this->data = array_merge($data, $this->data);\r\n \r\n if ($this->data['deadline_date'] === '0000-00-00' || $this->data['deadline_date'] === '9999-00-00') {\r\n $this->data['deadline_date'] = null;\r\n }\r\n \r\n $this->data['user_p'] = $ups;\r\n $this->data['max_status'] = $this->config->item('rfk_status_levels');\r\n\t\t\t$this->data['parent_title']\t\t= $parent_title;\r\n\t\t\t\r\n $this->data = $this->plugin_handler->trigger('tasks_show_edit_task', $this->data );\r\n \r\n unset($ups, $defaults, $task);\r\n\r\n $this->load->view('tasks/edit', $this->data);\r\n }\r\n else {\r\n show_error(\"Isn't Ajax Call. What are you thinking about?\", 403);\r\n }\r\n }", "title": "" }, { "docid": "62073cbd3d05f0c4c133533c3d8685b5", "score": "0.7176379", "text": "public function edit($id)\n {\n $task = Task::find($id);\n return view('tasks.edit',compact('task'));\n }", "title": "" }, { "docid": "d06d2bb231c22b706bdb77a7ce449549", "score": "0.71693116", "text": "public function edit($id)\n {\n // dd('Edit có Id là : = '.$id);\n $tasks = Task::all();\n $task = Task::find($id);\n return view('edit')->with([\n 'tasks' => $tasks,\n 'task' => $task\n ]);\n }", "title": "" }, { "docid": "3c27db9cc2033731151b1733f5d8e875", "score": "0.7153312", "text": "public function edit(Task $task)\n {\n return view('task.edit', [\n 'task' => $task,\n 'statuses' => Status::all(),\n ]);\n }", "title": "" }, { "docid": "ddb4595ee5ff50d1a5911f2bde167053", "score": "0.7146993", "text": "public function edit($id)\n {\n //\n $task=Task::find($id);\n\n return view('task.edit',compact('task'));\n }", "title": "" }, { "docid": "1a6e08d9d2f8ed0080ef8b2808559f19", "score": "0.7133284", "text": "public function editTask($id)\n {\n $model = Tasks::where('id',$id)->get();\n $plugins = [\n 'js' => ['custom'=>['tasks']]\n ];\n return view('organization.profile.editTask')->with(['plugins' => $plugins , 'model' => $model]);\n }", "title": "" }, { "docid": "b046ad84a42dc380b00acce71f79583f", "score": "0.71266794", "text": "public function editTask()\n {\n $id = !empty($_POST['hdnedittaskId']) ? $this->validate_data($_POST['hdnedittaskId']) : NULL;\n $task = !empty($_POST['inputTask']) ? $this->validate_data($_POST['inputTask']) : NULL;\n $due_date = !empty($_POST['inputDuedate']) ? $this->validate_data($_POST['inputDuedate']) : NULL;\n $due_date = !empty($due_date) ? date('Y-m-d H:i:s', strtotime($due_date)) : NULL;\n $created_date = date('Y-m-d H:i:s');\n \n $sql = \"UPDATE todolist SET task='$task', due_date='$due_date' WHERE id=$id\";\n if(mysqli_query($this->db, $sql)) {\n \n return 1;\n }\n }", "title": "" }, { "docid": "03c23bd2133a94e8d88a553ff6e1a3a8", "score": "0.7121583", "text": "public function edit($id)\n {\n $issue = CRMIssueTask::find($id);\n return view('modules.crm.CRMIssueTask.form', compact('issue'));\n }", "title": "" }, { "docid": "72bcaeb43f06e91f30d850d6af4bf76a", "score": "0.71161157", "text": "public function edit($id)\n {\n $todoTask = Task::find($id);\n return view('todoTasks.edit', compact('todoTask'));\n }", "title": "" }, { "docid": "0b05238ccd944925d64798a33eaf7f24", "score": "0.71113455", "text": "public function edit($id)\n {\n $task = Task::findOrFail($id);\n\n return view('tasks.edit', [\n 'task' => $task\n ]);\n }", "title": "" }, { "docid": "4954b61a68c4503217d43d9534b375b2", "score": "0.7098189", "text": "function editTask()\n {\n $this->load->library('form_validation');\n\n $this->form_validation->set_rules('fname','Título de la tarea','required');\n $this->form_validation->set_rules('priority','Prioridad','required');\n\n $taskId = $this->input->post('taskId');\n\n if($this->form_validation->run() == FALSE)\n {\n $this->editOldTask($taskId);\n }\n else\n {\n $taskId = $this->input->post('taskId');\n $title = $this->input->post('fname');\n $comment = $this->input->post('comment');\n $priorityId = $this->input->post('priority');\n $statusId = $this->input->post('status');\n $permalink = sef($title);\n\n $taskInfo = array('title'=>$title, 'comment'=>$comment, 'priorityId'=>$priorityId, 'statusId'=> $statusId,\n 'permalink'=>$permalink);\n\n $result = $this->user_model->editTask($taskInfo,$taskId);\n\n if($result > 0)\n {\n $process = 'Edición de tareas';\n $processFunction = 'Manager/editTask';\n $this->logrecord($process,$processFunction);\n $this->session->set_flashdata('success', 'La edición de la tarea fue exitosa');\n }\n else\n {\n $this->session->set_flashdata('error', 'Falló la edición de la tarea');\n }\n redirect('tasks');\n\n }\n }", "title": "" }, { "docid": "4d60496e6c1201d9e53299a336d62b3d", "score": "0.70800334", "text": "public function edit($id)\n {\n $employee = Employee::findOrFail($id);\n //essendo che devo dare la possibilità all'utente di aggiungere\n // in fase di creazione tutti i task possibili glieli devo inviare tutti\n //posso farlo anche con la db: nel blade\n $tasks = Task::all();\n return view('pages.employee-edit',compact('employee','tasks'));\n }", "title": "" }, { "docid": "89bb9829c583ef20f3b70afafbcf957c", "score": "0.7072668", "text": "public function edit(TaskRequest $request, Task $task)\n\t{\n\t\treturn View::make('tasks.edit', compact('task'));\n\t}", "title": "" }, { "docid": "a72e4e57b54645b17990a275dac3a012", "score": "0.70711106", "text": "public function edit($id)\n {\n $task = Task::find($id);\n\n return view('tasks/edit', ['task' => $task]);\n }", "title": "" }, { "docid": "59fbbb1e43d991070b5354833f5729c2", "score": "0.7070399", "text": "public function getEdit($id) {\n\t\ttry {\n\t\t$item = Task::findOrFail($id);\n\n\t}\n\t\tcatch(exception $e) {\n\t\treturn Redirect::to('/task')->with('flash_message', 'Task not Found');\n\t}\n\t\treturn View::make('task_edit')\n\t\t->with('item', $item);\n\t}", "title": "" }, { "docid": "f43dd1ee6ee61757bd9c1051cb762a60", "score": "0.7063891", "text": "public function edit($id)\n {\n //\n $task = Task::find($id);\n $statuses = Status::all();\n\n return view('tasks.edit', ['task'=>$task, 'statuses'=>$statuses]);\n }", "title": "" }, { "docid": "217a42bca00b2b38519003f8d063ddea", "score": "0.703678", "text": "public function edit(Task $task)\n {\n return view('views.tasks.edit', [\n 'task' => $task,\n 'users' => User::user()->get()\n ]);\n }", "title": "" }, { "docid": "1cca59891cd9a1a8eab0c4cfa3efec29", "score": "0.70340383", "text": "public function edit()\n {\n $work = Work::find($_GET['id']);\n $data = array('work' => $work);\n $this->render('edit', $data);\n }", "title": "" }, { "docid": "2247f3568db5f067f4545886412727a1", "score": "0.7033006", "text": "public function edit($id)\n {\n $task = Task::find(intval($id));\n//Checking if current user is an owner\n if (\\Auth::user()->id != $task->user_id) {\n return back()->with(['success' => false, 'message_type' => 'danger',\n 'message' => 'You are not authorized.']);\n }\n\n $dashboard_id=$task->dashboard_id;\n //returning view with current values to edit\n return view('taskFormEdit', compact('task','dashboard_id'));\n }", "title": "" }, { "docid": "c7b8292e9ee19dc981514a7871e68a86", "score": "0.70313984", "text": "public function edit($id)\n {\n $task = Task::find($id);\n\n if (!$this->checkTask($task)) {\n return redirect(route('tasks.index'));\n }\n \n $projects = Project::withoutGlobalScope(HiddenScope::class)->pluck('title', 'id');\n return view('tasks.edit')->with(['task' => $task, 'projects' => $projects]);\n }", "title": "" }, { "docid": "c0ec9f80b379eac20c620ab900e0633f", "score": "0.7017509", "text": "public function edit($id)\n {\n $task = Task::find($id);\n $projects = Project::all();\n $users = User::all();\n return view('task.edit', compact('task', 'projects', 'users'));\n }", "title": "" }, { "docid": "3736499054b89a9776863393fe21594e", "score": "0.69827926", "text": "public function editAction()\n {\n $id = (int) $this->param('id');\n $project = $this->service->retrieveProjectById($id);\n if (!$project) {\n $this->flash('error')->addMessage('project.not.found');\n $this->redirectToRoute('list', ['page' => 1]);\n } else {\n $action = $this->view->url(['action' => 'update']);\n $projectForm = $this->service->getFormForEditing($action);\n $projectForm->populate($project->toArray());\n $this->view->project = $project;\n $this->view->projectForm = $projectForm;\n }\n }", "title": "" }, { "docid": "3764d387f7de26f20245829422b9c03f", "score": "0.6974644", "text": "public function edit(Task $task)\n\t{\n $output['html'] = view('tasks.edit')->with('task', $task)->render();\n\t\t\n\t\treturn response()->json($output);\n\t}", "title": "" }, { "docid": "19b66f983c5f7fe6ae11dbe9306e94b2", "score": "0.6974574", "text": "public function edit(Task $task)\n {\n //update task\n //call create or update?\n return true;\n }", "title": "" }, { "docid": "8b6846d0c086d5338f7d4156ba94b6a6", "score": "0.69686645", "text": "public static function show()\n {\n $record = todos::findOne($_REQUEST['id']);\n self::getTemplate('show_task', $record);\n }", "title": "" }, { "docid": "13c4203d32c70794e7fa65360126b2a8", "score": "0.6963777", "text": "public function editForm()\n {\n $this->pageTitle = \"Edition d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n //recupération de la liste des diapos\n // $DiapModel = new \\Models\\Diap();\n $this->tplVars = $this->tplVars + [\n 'list' => $this->model->findQuestionById(intval($_GET['id']))\n ];\n\n parent::editForm();\n }", "title": "" }, { "docid": "df5a6c4f3af5475aa9b63c56a4c983a4", "score": "0.6943884", "text": "public function edit_task($task_id, $params)\n\t{\n\t\t$this->EE->db->update('widget_tasklist', $params, array('id' => $task_id));\n\t}", "title": "" }, { "docid": "41722fd33130c9cd55296764ce502ef6", "score": "0.693147", "text": "public function edit($id)\n {\n if (Auth::check())\n {\n if (Gate::denies('admin')) \n {\n if (Gate::denies('meetingorganizer')) \n {\n abort(403,\"Permission Denied\");\n }\n }\n }\n $orgs= Organization::find($id);\n $task = Task::findOrFail($id);\n return view('task.edit',['task'=>$task,'orgs' => Organization::where('user_id', $id)->get()]);\n }", "title": "" }, { "docid": "87a7a1d4e9232e5fe0bd562b2ecd888c", "score": "0.6929585", "text": "public function edit($id)\n {\n $task = Task::find($id);\n //dd($task->toArray());\n return view('tasks.edit', ['task' => $task]);\n }", "title": "" }, { "docid": "eb3bba8b2cc4e80b95e1075ea2018e38", "score": "0.6924143", "text": "public function edit($id)\n {\n $task = Task::find($id);\n $customers = Customer::where('active_ind', 1)\n ->orderBy('name', 'ASC')\n ->get();\n $task_status = TaskStatus::all();\n $users = User::all();\n return view('tasks.edit')->with('customers', $customers)->with('task_status', $task_status)->with('users', $users)->with('task', $task);\n }", "title": "" }, { "docid": "46862ab02c47c0eb9664cdd6aaae9a76", "score": "0.69045967", "text": "public function edit($id)\n {\n $task = new Task();\n $task_to_update = $task->getOne($id);\n if ($this->user->can('update', $task_to_update)) {\n return view('teacher.tasks.edit', [\n 'title' => 'ЭДЗ. Редактирование задачи',\n 'task_to_update' => $task_to_update\n ]);\n }\n $message = 'ОШИБКА. Нет права редактирования';\n return redirect('/teacher/tasks/' . $id)->withErrors($message);\n }", "title": "" }, { "docid": "b9ab7ecc91f408761d7797d1e2a46161", "score": "0.6898545", "text": "public function edit($id)\n {\n $types = \\App\\Type::all();\n \n $statuses[] = ['id' => 0, 'name' => 'Incomplete'];\n $statuses[] = ['id' => 1, 'name' => 'completed'];\n \n // $task = Task::find($id);\n $task = DB::table('tasks')->where('id','=',$id)->first();\n $tasks = Task::all();\n if(empty($task)){\n return \"Not found\";\n }\n return view('tasks.index')\n ->with([\n 'types'=> $types,\n 'statuses' => $statuses, \n 'task'=> $task,\n 'tasks' => $tasks,\n ]);\n }", "title": "" }, { "docid": "eec2bf36ab2f5db5e20f172d3ec72675", "score": "0.6898274", "text": "public function edit($id)\n {\n $jenis = \"edit\";\n $employee_id = array();\n $employee = TaskEmployee::where('task_id', $id)->select('employee_id')->get();\n foreach($employee as $e){\n array_push($employee_id, $e->employee_id);\n }\n $employees = Employee::whereNotIn('id', $employee_id)->get();\n\n $task = TaskEmployee::join('task', 'task_employee.task_id', 'task.id')->where('task_employee.task_id',$id)->select('task.id', 'task.title', 'task.start_date', 'task.due_date', 'task.description', 'task_employee.employee_id')->get();\n $source = TaskGambar::where('task_id', $id)->get();\n $count_source = TaskGambar::where('task_id', $id)->count();\n return view('employee.task.form',compact('employees','task', 'jenis', 'source', 'count_source'));\n }", "title": "" }, { "docid": "8980b59bd3c4a7f65f768cdb9a828bb3", "score": "0.68869346", "text": "public function edit($id = null)\n {\n $this->request->allowMethod(['post', 'put', 'patch']);\n $task = $this->Tasks->get($id, [\n 'contain' => ['Labels', 'Projects'],\n ]);\n $this->Authorization->authorize($task);\n\n $task = $this->Tasks->patchEntity($task, $this->request->getData());\n if ($this->Tasks->save($task)) {\n $this->Flash->success(__('Task updated.'));\n\n return $this->response->withStatus(200);\n }\n\n return $this->validationErrorResponse($task->getErrors());\n }", "title": "" }, { "docid": "34cab74b7c17a995c1520acf3a68a742", "score": "0.6870023", "text": "private function createEditForm(Task $entity){\n $form=$this->createForm(new TaskType(),$entity,array(\n 'action'=>$this->generateUrl('emm_task_update',array('id'=>$entity->getId())),'method'=>'PUT'\n \n ));\n \n return $form;\n }", "title": "" }, { "docid": "de733d13625d2e27b579a67d4dd0e5cb", "score": "0.6865614", "text": "public function getEdit()\n {\n //\n $id = Input::get('id');\n $model = new $this->model;\n $model = $model->find($id);\n return $this->viewMake('form.create', ['model'=> $model]);\n }", "title": "" }, { "docid": "dc2dc62e76873d304126bd5e3e411923", "score": "0.68557245", "text": "public function edit($id)\n { \n $tasks = Task::all();\n $typology = Typology::findOrFail($id);\n\n return view('pages.typology-edit', compact('typology', 'tasks'));\n\n }", "title": "" }, { "docid": "4e0bea10e028e8c50e289d4a7a2aebf9", "score": "0.6855354", "text": "public function edit(TBFormulario $tBFormulario)\n {\n //\n }", "title": "" }, { "docid": "babf1ed58a5f71a6e2a479ed56b500d7", "score": "0.6833301", "text": "public function editTask($id){\n if(Task::join('task_has_bidders', 'tasks.id', '=', 'task_has_bidders.task_id')->where('tasks.id', $id)->count() > 0 || Task::join('task_has_taskminator', 'tasks.id', '=', 'task_has_taskminator.task_id')->where('tasks.id', $id)->count() > 0){\n return Redirect::back()->with('errorMsg', 'A Taskminator(s) has already been hired or have bid on this task.');\n }\n\n $task = Task::where('id', $id)->first();\n\n return View::make('client.editTask')\n ->with('task', $task)\n ->with('regions', Region::orderBy('regname', 'ASC')->get())\n ->with('cities', City::orderBy('cityname', 'ASC')->get())\n ->with('barangays', Barangay::where('bgycode', $task->barangay)->get())\n ->with('taskcategories',TaskCategory::orderBy('categoryname', 'ASC')->get())\n// ->with('taskitems', TaskItem::orderBy('itemname', 'ASC')->get())\n ->with('intiTaskitems', TaskItem::where('item_categorycode', $task->taskCategory)->orderBy('itemname', 'ASC')->get());\n }", "title": "" }, { "docid": "2cf4962cec126dbadfa363804455c73c", "score": "0.6829791", "text": "public function edit(Request $request, Task $task)\n {\n $this->authorize('edit', $task);\n\n return view('tasks.edit', [\n 'task' => $task,\n ]);\n }", "title": "" }, { "docid": "3372ef1cca9be765c71b7e1a923b6a90", "score": "0.68263555", "text": "public function editAction()\n {\n $command = $this->determineCommand();\n\n return parent::edit(\n $this->formClass,\n $this->itemDto,\n new GenericItem($this->itemParams),\n $command,\n $this->mapperClass,\n $this->editViewTemplate,\n $this->editSuccessMessage,\n $this->editContentTitle\n );\n }", "title": "" }, { "docid": "8067d37038c7efd4cbab1b64bdfc406d", "score": "0.6825719", "text": "public function edit($id)\n {\n $user = DB::table('users')\n ->whereNotIn('role', [0])\n ->get();\n $task = DB::table('tasks')\n ->leftJoin('divisi', 'divisi.id', 'tasks.divisi_id')\n ->leftJoin('users','users.id','tasks.user_id')\n ->select('tasks.*','users.name','divisi.divisi')\n ->where('tasks.id',$id)\n ->get();\n \n return view(\"task/updateTask\", ['task' => $task, 'user' => $user]);\n }", "title": "" }, { "docid": "a4ebaf6b6cb59064a3083188b9a11d37", "score": "0.68177116", "text": "public function edit($id)\n\n {\n $task = Task::select('id', 'title','preview_text','detail_text','status_id')->find($id);//Task::fid(id);\n $status= $task->status;\n $status_list=Status::select('id','name')->get();;\n if(Auth::user()->can('update',$task))\n {\n return view('tasks.edit',['task'=>$task,'status'=>$status,'status_list'=>$status_list]);\n }else\n {\n return redirect(route('tasks.index'));\n }\n }", "title": "" }, { "docid": "ad91a07bbe53e392e9ff6dcc8615f833", "score": "0.6811453", "text": "public function editView($id)\n {\n $task = Task::find($id);\n\n if (empty($task)) {\n return redirect('/tasks');\n }\n\n //Valido que el usuario tenga autorización\n $this->authorize('verify', $task);\n\n return view('tasks.edit', ['task' => $task]);\n }", "title": "" }, { "docid": "14492a7ddf825dfc7ae7f6d4686195bb", "score": "0.67845803", "text": "protected function edit()\r\n\t{\r\n\t\tglobal $tpl, $ilTabs, $ilCtrl, $lng;\r\n\t\t\r\n\t\t$ilTabs->clearTargets();\r\n\t\t$ilCtrl->setParameter($this, \"prt_id\", \"\");\r\n\t\t$ilTabs->setBackTarget($lng->txt(\"back\"),\r\n\t\t\t$ilCtrl->getLinkTarget($this, \"show\"));\r\n\t\t$ilCtrl->setParameter($this, \"prt_id\", $this->portfolio->getId());\r\n\t\t\r\n\t\t$this->setPagesTabs();\r\n\t\t$ilTabs->activateTab(\"edit\");\r\n\r\n\t\t$form = $this->initForm(\"edit\");\r\n\r\n\t\t$tpl->setContent($form->getHTML());\r\n\t}", "title": "" }, { "docid": "cdb0c72e88e0cd40f702a7e0769d3dbc", "score": "0.6782592", "text": "public function editAction()\n {\n $model_sites = new Dlayer_Model_Admin_Site();\n $model_forms = new Dlayer_Model_Admin_Form();\n\n $form_id = $this->session->formId();\n\n $this->form = new Dlayer_Form_Admin_Form(\n '/form/admin/edit',\n $this->site_id,\n $form_id,\n $model_forms->form($this->site_id, $form_id)\n );\n\n if ($this->getRequest()->isPost()) {\n $this->processEditForm($form_id);\n }\n\n $this->view->form = $this->form;\n $this->view->site = $model_sites->site($this->site_id);\n\n $this->controlBar($this->identity_id, $this->site_id);\n\n $this->_helper->setLayoutProperties($this->nav_bar_items, '/form/index/index', array('css/dlayer.css'),\n array(), 'Dlayer.com - Form Builder: Edit form');\n }", "title": "" }, { "docid": "b2d4f14f095fcbc6ea2239784e83dc49", "score": "0.6778096", "text": "function editOldTask($taskId = NULL)\n {\n if($taskId == null)\n {\n redirect('tasks');\n }\n\n $data['taskInfo'] = $this->user_model->getTaskInfo($taskId);\n $data['tasks_prioritys'] = $this->user_model->getTasksPrioritys();\n $data['tasks_situations'] = $this->user_model->getTasksSituations();\n\n $this->global['pageTitle'] = 'Editar tarea';\n\n $this->loadViews(\"editOldTask\", $this->global, $data, NULL);\n }", "title": "" }, { "docid": "4f8875d8e5783f7daffb5d52e88377bc", "score": "0.67591554", "text": "public function edit($id)\n {\n $title = \"Edit task\";\n $todo = Todo::find($id);\n return view('todo.edit', compact('todo', 'title'));\n }", "title": "" }, { "docid": "85f1c1bf57008b09440630f2da6d04fc", "score": "0.67362726", "text": "public function edit($id)\n\t{\n\t\t$original = Appointment::findOrFail($id);\n\t\treturn view('tasks.edit')->with('original', $original);\n\t}", "title": "" }, { "docid": "672494071736e66ee6152eed0ed0fd78", "score": "0.6735106", "text": "public function edit($id)\n{\n $task =Students::find($id);\n\n return view('pages.edit')->withTask($task);\n}", "title": "" }, { "docid": "e52639c69ffcd5f699006d7bd3748f2d", "score": "0.67348355", "text": "public function actionUpdate() {\n $taskId = \\Yii::$app->request->get('id');\n if ($taskId) {\n $task = Task::findOne($taskId);\n } else {\n $task = new Task();\n }\n $post = \\Yii::$app->request->post();\n if ($task->load($post) && $task->validate() && $task->save()) {\n \\Yii::$app->session->setFlash('success', \\Yii::t('cron', 'The task has been saved'));\n return \\Yii::$app->response->redirect(Url::toRoute(['index']));\n }\n\n return $this->render('update', [\n 'task' => $task,\n 'methods' => TaskLoader::getAllMethods(self::$tasksControllersFolder, self::$tasksNamespace),\n ]);\n }", "title": "" }, { "docid": "a1d90510152dc37b2a0f2b390fa5da65", "score": "0.6714096", "text": "public function edit($id)\n {\n $task=Schedule::find($id);\n return view('doctors.schedule.edit',compact('task'));\n\n }", "title": "" }, { "docid": "fa31b801bc8bc210e33e89d7af6e73c1", "score": "0.6712111", "text": "public function edit($id)\n {\n\n $data = [\n 'id' => $id,\n 'data' => GlobalTask::findOrFail($id),\n 'inv_gtasks' => InvGtask::where('gtask_id',$id)->get(),\n 'branch' => Branch::where('is_deleted','0')->get(),\n 'subject' => Subject::where('is_deleted','0')->get(),\n 'link' => env('admin').'/g-task/'\n ];\n\n return View('admin.g_task.edit',$data);\n }", "title": "" } ]
d4d4b0ddb470d98c375c8cad0b925cfd
It is a method to delete a list.
[ { "docid": "a9dd654191c08acfaa241de5c6bbc0fb", "score": "0.6541585", "text": "public function deleteList(int $list_id): bool\n {\n if ($list_id < 1) throw new ORMException('ID of list have to be set');\n\n $params = ['list_id' => $list_id];\n $this->makeRequest('deleteList', $params);\n return true;\n }", "title": "" } ]
[ { "docid": "21e105ee1a8b33228dd05a8fddb89364", "score": "0.760111", "text": "public function deleteList($listID){\r\n\t\t//require_once '../../csrest_lists.php';\r\n\t\t$wrap = new CS_REST_Lists($listID, $this->getAuth());\r\n\t\t$result = $wrap->delete();\r\n\t\treturn $this->returnResult(\r\n\t\t\t$result,\r\n\t\t\t\"DELETE /api/v3.1/lists/{ID}\",\r\n\t\t\t\"Deleted with code\"\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "ae8ca5a98c54963f5c6114824ea10cb5", "score": "0.7568629", "text": "public function deleteList(){\n $listId = Input::get('lid');\n $list = CardList::find($listId);\n foreach($list->cards as $card){\n $card->delete();\n }\n $response['success'] = $list->delete();\n return Response::json($response);\n }", "title": "" }, { "docid": "55cdf91ac187b8cb65d7c884df60dcc8", "score": "0.73445135", "text": "public function deleteList()\n {\n $db = Db::connect();\n\n $sql = \"DELETE FROM clients\";\n\n $query = $db->prepare($sql);\n\n $query->execute();\n }", "title": "" }, { "docid": "fbb7f793f557aee1d7b5eb31d08742ff", "score": "0.7235873", "text": "public function deleteList($data)\n {\n var_export($data);\n //return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "d972b285786e8b2071a18c8448f037f3", "score": "0.72301984", "text": "public function destroy($list_id)\n {\n $list = Listt::find($list_id);\n $list->delete();\n return redirect(route('adminpanel.index'));\n }", "title": "" }, { "docid": "ae232319e10f078d3dfdb4968214290b", "score": "0.7228107", "text": "public function destroy(ListService $listService)\n {\n //\n }", "title": "" }, { "docid": "5200149977f94fe0efecc77c9662b546", "score": "0.71070385", "text": "function delete_list($listid)\n\t{\n\t\t$this->http_set_content_type('text/html');\n\t\t$this->load_url(\"lists/$listid\", 'delete', array(), 204);\n\t\tif(intval($this->http_response_code) === 204):\n\t\t\treturn true;\n\t\tendif;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ca4ad2d7a622ccb312d96488fc4b191e", "score": "0.6970685", "text": "protected function set_delete_list($list)\n {\n $this->delete_list = $list;\n }", "title": "" }, { "docid": "a34efee073083e0d3841e7c4d8762277", "score": "0.6960243", "text": "public function do_delete_record()\n {\n $v_list_delete = get_post_var('hdn_item_id_list','');\n $this->model->do_delete_record($v_list_delete);\n }", "title": "" }, { "docid": "03bf65cc1e6f864e467381b34b6bf21c", "score": "0.69146305", "text": "public function deleteList()\n {\n if (!request()->ajax()) {\n return response()->json(['error' => 1, 'msg' => 'Method not allow!']);\n } else {\n $ids = request('ids');\n $arrID = explode(',', $ids);\n $arrDontPermission = [];\n foreach ($arrID as $key => $id) {\n if(!$this->checkPermisisonItem($id)) {\n $arrDontPermission[] = $id;\n }\n }\n if (count($arrDontPermission)) {\n return response()->json(['error' => 1, 'msg' => sc_language_render('admin.remove_dont_permisison') . ': ' . json_encode($arrDontPermission)]);\n }\n AdminCmsContent::destroy($arrID);\n sc_clear_cache('cache_cms_content');\n return response()->json(['error' => 0, 'msg' => '']);\n }\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "eeb775eaba7a3b167a1aba82d2b38575", "score": "0.6914319", "text": "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "title": "" }, { "docid": "6998cdeee1eab4464c737603ca450553", "score": "0.6885209", "text": "function delete_list($item_kit_ids)\n\t{\n\t\t$this->db->where_in('item_kit_id',$item_kit_ids);\n\t\treturn $this->db->update('item_kits', array('deleted' => 1));\n \t}", "title": "" }, { "docid": "2e5eb979b8c5b6be6d1215e5f80e3819", "score": "0.68823195", "text": "public function destroy(UserList $list)\n {\n\n try {\n\n TitleList::where('user_list_id','=', $list->id)->delete();\n UserList::where('id', '=', $list->id)->delete();\n \n } catch (Excepition $e) {\n\n return redirect(url()->previous())->with('error', $e);\n }\n \n return redirect(url()->previous());\n }", "title": "" }, { "docid": "42b9e6f98126153a2cc0f75de20956a6", "score": "0.68815815", "text": "public function delete_list($val){\n if(get_instance()->ecl('Instance')->mod('lists', 'delete_list', [get_instance()->ecl('Instance')->user(),$val])) {\n echo 1;\n } else {\n echo 0;\n }\n }", "title": "" }, { "docid": "ca326ff4cd5dd86e290a8e0322c64d43", "score": "0.68415534", "text": "public function delete() {\n //TODO: preguntar si desea eliminar tambien los contactos de la lista\n $this->load->auto('marketing/list');\n if (($this->request->server['REQUEST_METHOD'] == 'POST')) {\n foreach ($this->request->post['selected'] as $id) {\n $this->modelList->delete($id);\n }\n } else {\n $this->modelList->delete($_GET['id']);\n }\n }", "title": "" }, { "docid": "43859e11c09e4eec4249a69da31e91dc", "score": "0.6812318", "text": "public function deleteListAction(){\n $ebookers_obj = new Ep_Ebookers_Managelist();\n //to call a function to delete themes//\n $ebookers_obj->deleteList($this->_request->getParams());\n //unset($_REQUEST);\n exit;\n }", "title": "" }, { "docid": "0eb44a57ea2c936eb70814c3b4ccca4d", "score": "0.6800108", "text": "public function delete_list($params) {\n\t\t$request_url = \"{$this->url}&api_action=campaign_delete_list&api_output={$this->output}&{$params}\";\n\t\t$response = parent::curl($request_url);\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "6bcf4f34fa58c21543e61c1ced84f3e6", "score": "0.679905", "text": "public function delete()\n {\n $items = $this->item();\n $items->delete();\n parent::delete();\n }", "title": "" }, { "docid": "fc80a9ef82161e86236ed5f712cd0f02", "score": "0.6700358", "text": "public function delete($listId)\n {\n $list = $this->findById($listId);\n if(!$list){\n return $list;\n }\n\n $this->em->remove($list);\n $this->em->flush();\n\n return true;\n }", "title": "" }, { "docid": "b2e908252f66cd6ccb05796e260cf763", "score": "0.66721857", "text": "public function deleteToDoList() {\n try {\n if (!($this->toDoList instanceof Base_Model_ObtorLib_App_Core_Crm_Entity_ToDoList)) {\n throw new Base_Model_ObtorLib_App_Core_Crm_Exception(\" ToDoList Entity not intialized\");\n } else {\n $objToDoList = new Base_Model_ObtorLib_App_Core_Crm_Dao_ToDoList();\n $objToDoList->toDoList = $this->toDoList;\n return $objToDoList->deleteToDoList();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Crm_Exception($ex);\n }\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6670962", "text": "public function delete();", "title": "" }, { "docid": "0aa655987b0f5098b5c256b4376f3ac4", "score": "0.6663981", "text": "public function delete_from_aweber_list($post_data = array(),$list_id = null ){\n\n \t\t$aweber = new AWeberAPI($this->aweber_consumerKey, $this->aweber_consumerSecret);\n // dd($aweber);\n\n\t\ttry {\n\n\t\t $account = $aweber->getAccount($this->aweber_accessKey , $this->aweber_accessSecret);\n\t\t $lists = $account->lists->find(array('name' => $list_id));\n\t\t $list = $lists[0];\n\n\t\t # lets create some custom fields on your list!\n\t\t $custom_fields = $list->custom_fields;\n\t\t $params = array(\n\t\t 'email' => $post_data['email']\n\n\t\t );\n\n\t\t $subscribers = $list->subscribers;\n\t\t $found_subscribers = $subscribers->find($params);\n\t\t foreach ($found_subscribers as $subscriber) {\n\t\t $subscriber->delete();\n\t\t }\n\n\t\t # success!\n\t\t //print \"A new subscriber was added to the $list->name list!\";\n\t\t return true;\n\n\t\t} catch(AWeberAPIException $exc) {\n\t\t return false;\n\t\t}\n\n}", "title": "" }, { "docid": "7a8a13e45aabf513d57c1b3dc7cddf8a", "score": "0.66443104", "text": "public function actionDelete($list_uid)\n {\n $list = CustomerSuppressionList::model()->findByAttributes(array(\n 'list_uid' => $list_uid,\n 'customer_id' => (int)Yii::app()->customer->getId(),\n ));\n\n if (empty($list)) {\n throw new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));\n }\n\n $list->delete();\n\n $request = Yii::app()->request;\n $notify = Yii::app()->notify;\n\n $redirect = null;\n if (!$request->getQuery('ajax')) {\n $notify->addSuccess(Yii::t('app', 'The item has been successfully deleted!'));\n $redirect = $request->getPost('returnUrl', array('suppression_lists/index'));\n }\n \n Yii::app()->hooks->doAction('controller_action_delete_data', $collection = new CAttributeCollection(array(\n 'controller' => $this,\n 'list' => $list,\n 'redirect' => $redirect,\n )));\n\n if ($collection->redirect) {\n $this->redirect($collection->redirect);\n }\n }", "title": "" }, { "docid": "a20af0271c6e216b364a5fc38d53f0fc", "score": "0.66087896", "text": "function delete_list_tasks($DBConnection, $ListID){\n\t \t//craft query to delete all tasks associated with this list\n\t \t$sql = \"DELETE FROM Tasks WHERE LID=\".$ListID;\n\t \tif($DBConnection->query($sql)){\n\t \t\t \n\t \t\t//if the query worked return true\n\t \t\treturn TRUE;\n\t \t}\n\t \t$DBConnection->free();//free the connection\n\t \t//otherwise return false\n\t \treturn FALSE;\n\t }", "title": "" }, { "docid": "a56e748fde030b8aafb6a892811dafa0", "score": "0.6579438", "text": "public function deleting( ) {\n\n }", "title": "" }, { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.6568865", "text": "public function delete() {}", "title": "" }, { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.65679085", "text": "public function delete() {}", "title": "" }, { "docid": "0795ed9eba884077868b7ed36525bde9", "score": "0.6567129", "text": "public function destroy(TodoList $todoList)\n {\n //\n }", "title": "" }, { "docid": "6ef34fe37895c9cbf98438002b359874", "score": "0.6530611", "text": "public function deleteAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif ($item) {\n\t\t\t$item->delete();\n\t\t}\n\t\t$this->_helper->redirector('list', null, null, array('model' => $modelName));\n\t}", "title": "" }, { "docid": "a82f922fae8198c67a77db49e3aed832", "score": "0.6529942", "text": "public function destroy(Request $request)\n {\n ListItem::where('id', $request->listitem)->delete();\n\n return response()->json([\n 'message' => 'deleted'\n ], 200);\n }", "title": "" }, { "docid": "15a3641c1d33f18f850d0dd05b32c65b", "score": "0.64907736", "text": "public static function bulkDelete($list_id) {\n return db_delete(static::$table)\n ->condition('list_id', $list_id)\n ->execute();\n }", "title": "" }, { "docid": "c33b82dc2d9ac52519d3ef1f90b1754e", "score": "0.6482668", "text": "function Doctor_Delete(){\n\t\t\n\t\t//when get id from url\n\t\tif(isset($_GET['List']) AND $_GET['List'] != ''){\n\t\t\t\n\t\t\t//move get id into variable\n\t\t\t$get_id = $_GET['List'];\n\t\t\t\n\t\t\t//delete doctor from table\n\t\t\t$this->Delete('users',$get_id,'Add-doctor?List&m');\n\t\t} // ifsset close\n\t}", "title": "" }, { "docid": "f42624178d3c870d22ab5d9188b24691", "score": "0.64724433", "text": "function delLists ($dbhost, $dbuser, $dbpass, $dbname, $dbport, $field) {\n // connect to the host:\n $connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname, $dbport);\n // exit the script with a useful message if there was an error:\n if (!$connection)\n {\n die(\"Connection failed: \" . $mysqli_connect_error);\n }\n\n // connect to our database:\n mysqli_select_db($connection, $dbname);\n\n // get rid of any contents linking before removing the LIST\n $query = \"DELETE FROM contents WHERE listID='$field'\";\n $result = mysqli_query($connection, $query);\n if ($result) {\n echo \"deleted - list contents<br>\";\n }\n else {\n echo \"List contents not deleted - error\";\n }\n\n // run query to remove the LIST\n $query = \"DELETE FROM lists WHERE id='$field'\";\n $result = mysqli_query($connection, $query);\n if ($result) {\n echo \"deleted\";\n }\n else {\n echo \"Not deleted - error\";\n }\n // we're finished with the database, close the connection:\n mysqli_close($connection);\n}", "title": "" }, { "docid": "a21c41eee461c964f45e2b50d899e515", "score": "0.6465911", "text": "public function delete() {\r\n }", "title": "" }, { "docid": "8f387513fc3e89541b54a10645a4f384", "score": "0.645146", "text": "function undelete_list($item_kit_ids)\n\t{\n\t\t$this->db->where_in('item_kit_id',$item_kit_ids);\n\t\treturn $this->db->update('item_kits', array('deleted' => 0));\n \t}", "title": "" }, { "docid": "8dbe5ba456288544564492dfec2c3889", "score": "0.64221156", "text": "function deleteStudentList()\n {\n $GLOBALS['DB']->exec(\"DELETE FROM courses_students WHERE course_id = {$this->id};\");\n }", "title": "" }, { "docid": "c5e49cb29ec60d0bcac1bca6fa067df2", "score": "0.6419857", "text": "public function delete()\n\t{\n\t\t// Check for request forgeries\n\t\tJRequest::checkToken('request') or die(JText::_('JINVALID_TOKEN'));\n\n\t\t// Get items to remove from the request.\n\t\t$cid[] = JFactory::getApplication()->input->get('a_id', 0, 'int');\n\n\t\tif (!is_array($cid) || count($cid) < 1)\n\t\t{\n\t\t\tJLog::add(JText::_($this->text_prefix . '_NO_ITEM_SELECTED'), JLog::WARNING, 'jerror');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Get the model.\n\t\t\t$model = $this->getModel();\n\n\t\t\t// Remove the item.\n\t\t\tif ($model->delete($cid))\n\t\t\t{\n\t\t\t\t$this->setMessage(JText::_($this->text_prefix . '_ITEM_DELETED'));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->setMessage($model->getError());\n\t\t\t}\n\t\t}\n\n\t\t$this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . '&id=' . $this->getRedirectToListAppend(), false));\n\t}", "title": "" }, { "docid": "c792b76c587f12b0569ad17ce900f3be", "score": "0.6414722", "text": "public function delete()\n\t\t{\n\t\t}", "title": "" }, { "docid": "007bee97761d40aefabab893709f1a39", "score": "0.6414515", "text": "public function deleteListItem()\n\t{\n\t\t$list = $_POST['list'];\n\t\t$item = $_POST['id'];\n\n\t\t$sql = \"DELETE FROM list_items\n\t\t\t\tWHERE ListItemID=:item\n\t\t\t\tAND ListID=:list\n\t\t\t\tLIMIT 1\";\n\t\ttry\n\t\t{\n\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t$stmt->bindParam(':item', $item, PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(':list', $list, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t\t$stmt->closeCursor();\n\n\t\t\t$sql = \"UPDATE list_items\n\t\t\t\t\tSET ListItemPosition=ListItemPosition-1\n\t\t\t\t\tWHERE ListID=:list\n\t\t\t\t\tAND ListItemPosition>:pos\";\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t\t$stmt->bindParam(':list', $list, PDO::PARAM_INT);\n\t\t\t\t$stmt->bindParam(':pos', $_POST['pos'], PDO::PARAM_INT);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$stmt->closeCursor();\n\t\t\t\treturn \"Success!\";\n\t\t\t}\n\t\t\tcatch(PDOException $e)\n\t\t\t{\n\t\t\t\treturn $e->getMessage();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\treturn $e->getMessage();\n\t\t}\n\t}", "title": "" }, { "docid": "673c4727c4e335f89076c802544d50fb", "score": "0.6403962", "text": "function Avi_Delete(){\n\t\t\n\t\t// if get id from url\n\t\tif(isset($_GET['List']) AND $_GET['List'] != ''){\n\t\t\t\n\t\t\t// get id move to variable\n\t\t\t$get_id = $_GET['List'];\n\t\t\t\n\t\t\t//delete Avialibalility from table\n\t\t\t$this->Delete('availability',$get_id,'Availability?List&m');\n\t\t\t\n\t\t} // ifisset close\n\t\t\n\t}", "title": "" }, { "docid": "f5c0097dc364deaadafc68c3b538ee86", "score": "0.6401712", "text": "public function remove_list_from_table($list){\n\t\t$query = \"DELETE * FROM \" . $this->table . \" WHERE \" . $this->column_name . \"=\";\n\t\t$list = commas_to_array($list);\n\t\t$just_added = array();\n\t\tif($old_list = Database::get_results_as_numerical_array($query, $this->column_name)){\n\t\t\t//var_dump($old_list); echo \"<br>\";\n\t\t\t\n\t\t\tforeach($list as $list_item){\n\t\t\t\t\n\t\t\t\tif(!in_array($list_item, $old_list) &&\n\t\t\t\t !in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{ //if there is nothing in the organizations table\n\t\t\tforeach($list as $list_item){\n\t\t\t\tif(!in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "06f471e0218b913ef751f624531617b1", "score": "0.63990915", "text": "public function delete_list( $user_id, $list_id ) {\n \n $this->db->delete($this->table, ['list_id' => $list_id, 'user_id' => $user_id]);\n if ( $this->db->affected_rows() ) {\n \n $this->db->delete('lists_meta', ['list_id' => $list_id, 'user_id' => $user_id]);\n $this->db->delete('scheduled', ['list_id' => $list_id]);\n $this->db->delete('scheduled_stats', ['list_id' => $list_id]);\n return true;\n \n } else {\n \n return false;\n \n }\n \n }", "title": "" }, { "docid": "1884bb6ee9756b9a91c34ce9f6a827d8", "score": "0.63916177", "text": "public function deleteListItemConfirm()\r\n {\r\n \\App::dontChangeUrl();\r\n\r\n $saveList = $this->getSavedList();\r\n $ok = $saveList->delete(Request::get('savedList'));\r\n\r\n if ($ok)\r\n {\r\n toast('Pesquisa removida!');\r\n \\App::redirect($this->getPageUrl());\r\n }\r\n }", "title": "" }, { "docid": "7bf9c10f6b902a85bee13a4bf8df9287", "score": "0.63849795", "text": "public abstract function delete();", "title": "" }, { "docid": "7bf9c10f6b902a85bee13a4bf8df9287", "score": "0.63849795", "text": "public abstract function delete();", "title": "" }, { "docid": "ac4f45b99b3a11728ae1409797c25c03", "score": "0.6381726", "text": "function delete()\n {\n }", "title": "" }, { "docid": "989ca03a0ac651da22c09d50f6d37ce3", "score": "0.63758254", "text": "abstract function del ($item);", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.6357515", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "e0cf80bd2832c56d404ccd896b49c12e", "score": "0.6326486", "text": "public function delete()\n\t{\n\t}", "title": "" }, { "docid": "f7f66e1e7c99b6565bc40374170d8343", "score": "0.6324719", "text": "public function delete()\n {\n JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));\n\n // Get items to remove from the request.\n $cid = JFactory::getApplication()->input->get('cid', array(), 'array');\n\n $model = null;\n\n if (!is_array($cid) || count($cid) < 1)\n {\n JLog::add(JText::_($this->text_prefix . '_NO_ITEM_SELECTED'), JLog::WARNING, 'jerror');\n }\n else\n {\n // Get the model.\n $model = $this->getModel();\n\n // Make sure the item ids are integers\n jimport('joomla.utilities.arrayhelper');\n\n // Remove the items.\n if ($model->delete($cid))\n {\n $this->setMessage(JText::plural($this->text_prefix . '_N_ITEMS_DELETED', count($cid)));\n }\n }\n // Invoke the postDelete method to allow for the child class to access the model.\n if (method_exists($this, 'postDeleteHook')) {\n $this->postDeleteHook($model, $cid);\n }\n\n $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false));\n }", "title": "" }, { "docid": "d426d574da6e54771a405bdc11b72fa2", "score": "0.63230413", "text": "public function deleting()\n {\n # code...\n }", "title": "" }, { "docid": "254f8fb210bf5670190c5d1b34199f63", "score": "0.6321503", "text": "public function DeleteListaCurso() {\n\t\t\t$this->objListaCurso->Delete();\n\t\t}", "title": "" }, { "docid": "93b8593e638748160bd865648b87b209", "score": "0.63177115", "text": "public function testDeleteTodoListById(){\n\t\t\t$this->todolist->id=3;\n\t\t\t$this->todolist->user_id=1;\n\t\t\t\n\t\t\t//Verify that at least one row has been deleted\n\t\t\t$this->assertEquals(1,$this->todolist->deleteTodoListById());\n\t\t\t\n\t\t\t//Verify that the todo list with id=3 has been properly deleted\n\t\t\t$stmt=$this->conn->prepare('SELECT ID FROM ' . $this->table_lists . ' WHERE ID=3');\n\t\t\t$stmt->execute();\n\t\t\t$this->assertEquals(0,$stmt->rowCount());\n\t\t}", "title": "" }, { "docid": "2c7a5cf38f815f61fc20beb24c81d446", "score": "0.63169354", "text": "public function destroy($id)\n {\n \n $res=DB::table(\"home_lists\")->where('id','=',$id)->delete();\n if($res){\n return redirect(\"/listss\")->with('success','删除成功');\n }else{\n return redirect(\"/listss\")->with('error','删除失败');\n }\n }", "title": "" }, { "docid": "e1a531ce883a0122738688ee9179a8ab", "score": "0.6315427", "text": "public final function delete() {\n }", "title": "" }, { "docid": "7b6861e5be9866c4628e21fea1bfc36b", "score": "0.631003", "text": "public function actionDeleteList()\n {\n $ids = Yii::$app->request->post('ids');\n $success = false;\n\n if (!empty($ids)) {\n foreach ($ids as $id) {\n $model = $this->findModel($id);\n $success = $model->delete();\n }\n }\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n return [\n 'success' => $success,\n ];\n }", "title": "" }, { "docid": "7fbeef1f5c322686c42da3a8a892ea81", "score": "0.63076895", "text": "public function delete(): void;", "title": "" }, { "docid": "7fbeef1f5c322686c42da3a8a892ea81", "score": "0.63076895", "text": "public function delete(): void;", "title": "" }, { "docid": "e0156940b0dd09fe45cc68603c5c88d9", "score": "0.63067114", "text": "public function delete ();", "title": "" } ]
d30ae562d3a9c1b9a47f023690974138
string Sets POS Lane Code.
[ { "docid": "cc2da1e74756a11eb14f6fe463672f6b", "score": "0.6310935", "text": "public function setPosLaneCode($value)\n\t{\n\t\t$this->PosLaneCode = $value;// return $this;\n\t}", "title": "" } ]
[ { "docid": "e6bed652ae799276ede6b8cc8d54a585", "score": "0.5971328", "text": "public function setCode(string $code) {\n $this->originalCode = $code;\n $xCode = trim($code);\n $len = strlen($xCode);\n\n if ($len !== 0) {\n for ($x = 0 ; $x < $len ; $x++) {\n if ($xCode[$x] == \"\\n\") {\n $this->addLineHelper();\n }\n }\n }\n $this->codeStrNode->setText($xCode.\"\\n\");\n $this->addLineHelper();\n }", "title": "" }, { "docid": "1f9d92dc237f8fad82376f548a1b9c5b", "score": "0.5823595", "text": "function setCode($code);", "title": "" }, { "docid": "18974aa53e9881d7febf43e914f608a3", "score": "0.55327827", "text": "function setcode($code = '') {\n\t\t$this->ccode = $code;\n\t}", "title": "" }, { "docid": "fccb19d6db86387a41ee1a3479392c25", "score": "0.52812874", "text": "public function editString()\n\t{\n\n\t}", "title": "" }, { "docid": "f6672b94159936807b70a44d7fc711ec", "score": "0.51941705", "text": "public function setCode(string $code):void;", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.51156306", "text": "public function setCode($code);", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.51156306", "text": "public function setCode($code);", "title": "" }, { "docid": "6689625af5f3c48aae009fe92056d63e", "score": "0.5048097", "text": "private function _set_levl_code($code)\n\t{\n\t\tif(!$this->_banner_validate('stvlevl', 'stvlevl_code', $code))\n\t\t{\n\t\t\tthrow new ProspectsException(ProspectsException::INVALID_LEVL_CODE);\n\t\t}\n\t\t\n\t\t$this->data['levl_code'] = $code;\n\t}", "title": "" }, { "docid": "ce6d808c31d73cc409373450c82e6e02", "score": "0.50331295", "text": "public function setCodeString($codeString){\n\t\t$this->_codeString = $codeString;\t\t\n\t}", "title": "" }, { "docid": "e3497f9523117d1c7d6a175dff95d399", "score": "0.5024129", "text": "public function setCode(string $code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "ebc205ea39d309e066e77aa4efb9ccf9", "score": "0.50200975", "text": "private function _set_prel_code($code)\n\t{\n\t\tif(!$this->_banner_validate('saturn.stvprel', 'stvprel_code', $code))\n\t\t{\n\t\t\tthrow new ProspectsException(ProspectsException::INVALID_PREL_CODE);\n\t\t}\n\n\t\t$this->data['prel_code'] = $code;\n\t}", "title": "" }, { "docid": "712b133bc6c73461487a9e40d43fa7fb", "score": "0.5019138", "text": "function ncurses_slk_set($labelnr, $label, $format) {}", "title": "" }, { "docid": "8e70a081f2c3dbee990eee4d894a6d99", "score": "0.50158226", "text": "function pick_move(){\n for($pos = 0; $pos < 9; $pos++){\n if($this->position[$pos] == '-'){\n $this->position[$pos] = 'o';\n break;\n }\n }\n }", "title": "" }, { "docid": "b857aa4fa86aee0706af854362c4987f", "score": "0.5010828", "text": "function _TxtPos($pos) {\n return $pos.\" (h:\".dechex($pos).\")\";\n }", "title": "" }, { "docid": "faa429efc2af4b29733d89c4bd786454", "score": "0.4970188", "text": "public function setCode (string $code) : bool {\n \n if(strlen($code) > 1) {\n $this->code = $code;\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "5aa9fc5448dbee450e40e3cc9630e86e", "score": "0.49324897", "text": "function _pre()\n\t{\n\t\t$this->location = 'SY23';\n\t}", "title": "" }, { "docid": "c3b49e2bb99d5ac64578ff27c6668f59", "score": "0.49103624", "text": "public function setCode(string $code): void\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "8dc632ecc533353327cff23f06b209da", "score": "0.48998615", "text": "function _convert_code( $p )\r\n\t{\r\n\t\treturn str_replace( array( \"<code>\", \"<pre>\", \"</code>\", \"</pre>\" ), array( \"|-====-|CODE|\", \"|-====-|CODE|\", \"|-====-|/CODE|\", \"|-====-|/CODE|\" ), $p );\r\n\t}", "title": "" }, { "docid": "865b7bcb14a4044416762c10f43e077d", "score": "0.48904604", "text": "public function setCode(string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "1502fba5ebffb65e7e191c89beeba177", "score": "0.4876527", "text": "function ncurses_mvaddstr($y, $x, $s) {}", "title": "" }, { "docid": "4f9f246e95b4274db008041bb2105889", "score": "0.484797", "text": "public function setPccode($value) {\n return $this->set(self::PCCODE, $value);\n }", "title": "" }, { "docid": "b67d6857c8d9612d9356ea63cc3babc0", "score": "0.48215026", "text": "function setTopLeftHeaderString($value)\r\n\t\t{\r\n\t\t\t$this->topLeftHeader = $value;\r\n\t\t}", "title": "" }, { "docid": "1ab2035a72a5920b387fb0ec7b213162", "score": "0.4819176", "text": "public function code($code,$chaine) {\r\n $this->set(compact('chaine','code'));\r\n }", "title": "" }, { "docid": "e34c8e940fb6ea40dd1189e05c7f531c", "score": "0.48150444", "text": "function Code39($xpos, $ypos, $code, $baseline=0.5, $height=5, $showdetail = true){\n\n\t\t$wide = $baseline;\n\t\t$narrow = $baseline / 3 ; \n\t\t$gap = $narrow;\n\n\t\t$barChar['0'] = 'nnnwwnwnn';\n\t\t$barChar['1'] = 'wnnwnnnnw';\n\t\t$barChar['2'] = 'nnwwnnnnw';\n\t\t$barChar['3'] = 'wnwwnnnnn';\n\t\t$barChar['4'] = 'nnnwwnnnw';\n\t\t$barChar['5'] = 'wnnwwnnnn';\n\t\t$barChar['6'] = 'nnwwwnnnn';\n\t\t$barChar['7'] = 'nnnwnnwnw';\n\t\t$barChar['8'] = 'wnnwnnwnn';\n\t\t$barChar['9'] = 'nnwwnnwnn';\n\t\t$barChar['A'] = 'wnnnnwnnw';\n\t\t$barChar['B'] = 'nnwnnwnnw';\n\t\t$barChar['C'] = 'wnwnnwnnn';\n\t\t$barChar['D'] = 'nnnnwwnnw';\n\t\t$barChar['E'] = 'wnnnwwnnn';\n\t\t$barChar['F'] = 'nnwnwwnnn';\n\t\t$barChar['G'] = 'nnnnnwwnw';\n\t\t$barChar['H'] = 'wnnnnwwnn';\n\t\t$barChar['I'] = 'nnwnnwwnn';\n\t\t$barChar['J'] = 'nnnnwwwnn';\n\t\t$barChar['K'] = 'wnnnnnnww';\n\t\t$barChar['L'] = 'nnwnnnnww';\n\t\t$barChar['M'] = 'wnwnnnnwn';\n\t\t$barChar['N'] = 'nnnnwnnww';\n\t\t$barChar['O'] = 'wnnnwnnwn'; \n\t\t$barChar['P'] = 'nnwnwnnwn';\n\t\t$barChar['Q'] = 'nnnnnnwww';\n\t\t$barChar['R'] = 'wnnnnnwwn';\n\t\t$barChar['S'] = 'nnwnnnwwn';\n\t\t$barChar['T'] = 'nnnnwnwwn';\n\t\t$barChar['U'] = 'wwnnnnnnw';\n\t\t$barChar['V'] = 'nwwnnnnnw';\n\t\t$barChar['W'] = 'wwwnnnnnn';\n\t\t$barChar['X'] = 'nwnnwnnnw';\n\t\t$barChar['Y'] = 'wwnnwnnnn';\n\t\t$barChar['Z'] = 'nwwnwnnnn';\n\t\t$barChar['-'] = 'nwnnnnwnw';\n\t\t$barChar['.'] = 'wwnnnnwnn';\n\t\t$barChar[' '] = 'nwwnnnwnn';\n\t\t$barChar['*'] = 'nwnnwnwnn';\n\t\t$barChar['$'] = 'nwnwnwnnn';\n\t\t$barChar['/'] = 'nwnwnnnwn';\n\t\t$barChar['+'] = 'nwnnnwnwn';\n\t\t$barChar['%'] = 'nnnwnwnwn';\n\n\t\t$this->SetFont('Arial','',10);\n\t\tif ($showdetail) $this->Text($xpos, $ypos + $height + 4, $code);\n\t\t$this->SetFillColor(0);\n\n\t\t$code = '*'.strtoupper($code).'*';\n\t\tfor($i=0; $i<strlen($code); $i++){\n\t\t\t$char = $code{$i};\n\t\t\tif(!isset($barChar[$char])){\n\t\t\t\t$this->Error('Invalid character in barcode: '.$char);\n\t\t\t}\n\t\t\t$seq = $barChar[$char];\n\t\t\tfor($bar=0; $bar<9; $bar++){\n\t\t\t\tif($seq{$bar} == 'n'){\n\t\t\t\t\t$lineWidth = $narrow;\n\t\t\t\t}else{\n\t\t\t\t\t$lineWidth = $wide;\n\t\t\t\t}\n\t\t\t\tif($bar % 2 == 0){\n\t\t\t\t\t$this->Rect($xpos, $ypos, $lineWidth, $height, 'F');\n\t\t\t\t}\n\t\t\t\t$xpos += $lineWidth;\n\t\t\t}\n\t\t\t$xpos += $gap;\n\t\t}\n\t}\n\n\t// for setting document view mode\n\t\t// use this parameters\n\t\t//$pdf->SetDisplayMode('fullpage');\n\t\t//$pdf->DisplayPreferences('HideMenubar,HideToolbar,HideWindowUI');\n\t\tvar $DisplayPreferences='';\n\n\t\tfunction DisplayPreferences($preferences) {\n\t\t\t$this->DisplayPreferences.=$preferences;\n\t\t}\n\n\tfunction _putresources()\n\t{\n\t\tparent::_putresources();\n\t\tif ($this->encrypted){\n\t\t\t$this->_newobj();\n\t\t\t$this->enc_obj_id = $this->n;\n\t\t\t$this->_out('<<');\n\t\t\t$this->_putencryption();\n\t\t\t$this->_out('>>');\n\t\t\t$this->_out('endobj');\n\t\t}\n\t\t// detect book mark outline\n\t\tif(count($this->outlines)>0){\n\t\t\t$this->_putbookmarks();\n\t\t}\n\t}\n\n\n\tfunction _putencryption()\n\t{\n\t\t$this->_out('/Filter /Standard');\n\t\t$this->_out('/V 1');\n\t\t$this->_out('/R 2');\n\t\t$this->_out('/O ('.$this->_escape($this->Ovalue).')');\n\t\t$this->_out('/U ('.$this->_escape($this->Uvalue).')');\n\t\t$this->_out('/P '.$this->Pvalue);\n\t}\n\n\tfunction _puttrailer()\n\t{\n\t\tparent::_puttrailer();\n\t\tif ($this->encrypted) {\n\t\t\t$this->_out('/Encrypt '.$this->enc_obj_id.' 0 R');\n\t\t\t$this->_out('/ID [()()]');\n\t\t}\n\t}\n\n\tfunction _putcatalog()\n\t{\n\t\tparent::_putcatalog();\n\t\tif(is_int(strpos($this->DisplayPreferences,'FullScreen')))\n\t\t\t$this->_out('/PageMode /FullScreen');\n\t\tif($this->DisplayPreferences){\n\t\t\t$this->_out('/ViewerPreferences<<');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'HideMenubar')))\n\t\t\t\t$this->_out('/HideMenubar true');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'HideToolbar')))\n\t\t\t\t$this->_out('/HideToolbar true');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'HideWindowUI')))\n\t\t\t\t$this->_out('/HideWindowUI true');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'DisplayDocTitle')))\n\t\t\t\t$this->_out('/DisplayDocTitle true');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'CenterWindow')))\n\t\t\t\t$this->_out('/CenterWindow true');\n\t\t\tif(is_int(strpos($this->DisplayPreferences,'FitWindow')))\n\t\t\t\t$this->_out('/FitWindow true');\n\t\t\t$this->_out('>>');\n\t\t}\n\t\t// detect book mark outline\n\t\tif(count($this->outlines)>0){\n\t\t\t$this->_out('/Outlines '.$this->OutlineRoot.' 0 R');\n\t\t\t$this->_out('/PageMode /UseOutlines');\n\t\t}\n\n\t}\n}", "title": "" }, { "docid": "6c32d44f981dbf797d59f1772123cff9", "score": "0.4799488", "text": "public function setCode($code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "25000b4fcb3a7a3133eac1f33e207cbd", "score": "0.47879925", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "91b979c061f85163541783053b148c4d", "score": "0.47778383", "text": "public function setCode(?string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "564bfcb53692296b10f9db6d3bf9936e", "score": "0.4776879", "text": "public function criaLinha()\n {\n //pos [1-9]\n $linha = '01REMESSA';\n //pos [10-26]\n $linha .= str_pad('', 17);\n //pos [27-39]\n $linha .= $this->getCodigoCedente();\n //pos [40-46]\n $linha .= str_pad('', 7);\n //pos [47-76]\n $linha .= $this->getNomeEmpresa();\n //pos [77-87]\n $linha .= '041BANRISUL';\n //pos [88-94]\n $linha .= str_pad('', 7);\n //pos [95-100]\n $linha .= $this->getDataGravacao();\n //pos [101-395]\n $linha .= str_pad('', 294);\n //pos [396-400]\n $linha .= '000001';\n\n $linha .= \"\\r\\n\";\n\n return $linha;\n }", "title": "" }, { "docid": "0f1a8994db072e35519c0fc9586b1d1f", "score": "0.47415048", "text": "private function _set_term_code()\n\t{\n\t\t$term = $GLOBALS['BANNER']->GetOne(\"SELECT f_get_currentterm('GR') FROM dual\");\n\t\t\n\t\tif($GLOBALS['BANNER']->ErrorNo() > 0)\n\t\t{\n\t\t\tthrow new ProspectsException(ProspectsException::SQL_ERROR);\n\t\t}\n\n\t\t$this->data['term_code'] = $term;\n\t}", "title": "" }, { "docid": "ec916b3de46ed34c43b4e742bd6d4f24", "score": "0.47016004", "text": "private static function wl($str) {\n\t\techo \"--->\\t\" . $str . PHP_EOL;\n\t}", "title": "" }, { "docid": "5575306682ae282805422192b258bdc5", "score": "0.46788636", "text": "function ncurses_addnstr($s, $n)\n{\n}", "title": "" }, { "docid": "d5a78b639fb5119353e389d152bb407a", "score": "0.46783236", "text": "function ncurses_mvaddnstr($y, $x, $s, $n) {}", "title": "" }, { "docid": "80708e008bd2ab19982b25ea8a57557c", "score": "0.4673381", "text": "function ncurses_addstr($text) {}", "title": "" }, { "docid": "cb49e385c3318bcfda5f49e4f67ede97", "score": "0.46581638", "text": "function setString($index, $value){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "3862ef68a92a97a3f8607bfba598afc1", "score": "0.46460462", "text": "function mySrtringPos($string, $pos) {\n\treturn \"<p>The string position of the passed argument \\\"hello\\\" within the string variable \\\"$string\\\" is - \" . strpos($string, $pos) . \"</p>\";\n}", "title": "" }, { "docid": "e101d538a136c83d70e2f949470dbb97", "score": "0.46419254", "text": "function ncurses_addnstr($s, $n) {}", "title": "" }, { "docid": "6f9b879077800d09e31b7fe04137c0c5", "score": "0.4641077", "text": "function ncurses_addstr($text)\n{\n}", "title": "" }, { "docid": "02b15ea5f1b1b3000546fc320db4de68", "score": "0.46242723", "text": "public function setPoNumber(string $po_number): void\n {\n $this->_po_number = $po_number;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.46178555", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.46178555", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "6319a3accac4c04c8de4d1904dfb0d19", "score": "0.46125183", "text": "public function setCodeName($pValue) {\n\t\t// Is this a 'rename' or not?\n\t\tif ($this->getCodeName() === $pValue) {\n\t\t\treturn;\n\t\t}\n\t\t$pValue = (string) str_replace(' ', '_', $pValue); //Excel does this automatically without flinching, we are doing the same\n\t\t// Syntax check\n\t\t// throw an exception if not valid\n\t\tself::checkSheetCodeName($pValue);\n\n\t\t// We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_'\n\n\t\t// Is there already such sheet name?\n\t\tif ($this->workbook->sheetCodeNameExists($pValue)) {\n\t\t\t// Use name, but append with lowest possible integer\n\n\t\t\tif (SharedString::CountCharacters($pValue) > 29) {\n\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 29);\n\t\t\t}\n\t\t\t$i = 1;\n\t\t\twhile ($this->workbook->sheetCodeNameExists($pValue . '_' . $i)) {\n\t\t\t\t++$i;\n\t\t\t\tif ($i == 10) {\n\t\t\t\t\tif (SharedString::CountCharacters($pValue) > 28) {\n\t\t\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 28);\n\t\t\t\t\t}\n\t\t\t\t} elseif ($i == 100) {\n\t\t\t\t\tif (SharedString::CountCharacters($pValue) > 27) {\n\t\t\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 27);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$pValue = $pValue . '_' . $i; // ok, we have a valid name\n\t\t\t//codeName is'nt used in formula : no need to call for an update\n\t\t\t//return $this->setTitle($altTitle, $updateFormulaCellReferences);\n\t\t}\n\n\t\t$this->codeName = $pValue;\n\t}", "title": "" }, { "docid": "adae5062ecf8eb35d668a222f320f164", "score": "0.46109247", "text": "public function position()\n\t\t{\t\n\t\t\t$fromDB \t\t\t= $this->Position_model->checkPosCode();\n\t\t\t//Example DIV-0003, angka 3 adalah awal angka, dan 4 jumlah angka yang diambil\n\t\t\t$index \t\t\t\t= substr($fromDB, 4, 4);\n\t\t\t$position_code_now \t= $index + 1;\n\t\t\t$data \t\t\t\t= array('position_code'=>$position_code_now);\n\n\t\t\t$data['title'] \t\t\t= 'Position';\n\t\t\t$data['position'] \t\t= $this->Position_model->getAllPositionData();\n\t\t\t$data['department'] \t= $this->Position_model->getAllDepartmentData();\n\t\t\t// $data['division'] \t\t= $this->Position_model->get_division($department_code);\n\t\t\t$this->render_backend('page/position/position_list', $data);\n\t\t}", "title": "" }, { "docid": "31e08269daf25dc4d31a12f3bd3b3a97", "score": "0.46023893", "text": "public function set($code, $value);", "title": "" }, { "docid": "316371160c87cc48d44ffb80ac1e03d9", "score": "0.45997527", "text": "function ncurses_addchnstr($s, $n) {}", "title": "" }, { "docid": "d2fae985db3d6ff57d2e13d09761083b", "score": "0.45939612", "text": "public function setCode($code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "f7ba34fe6028176fe9c947e6413672d5", "score": "0.45911333", "text": "public function controlCode()\n {\n return '09';\n }", "title": "" }, { "docid": "82892ab9598e5e5d0e64cd2bbaeee617", "score": "0.45830935", "text": "function setNString($index, $value){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "4b12ec22f72acdb7b40044817b662e0a", "score": "0.4577192", "text": "public function loadCode($code){\n $this->code = $code;\n }", "title": "" }, { "docid": "91c7a3cfd38572571045911db56300f6", "score": "0.457288", "text": "function ncurses_mvaddchnstr($y, $x, $s, $n) {}", "title": "" }, { "docid": "cc5d31dfbd98ff215b3a21567114d0a8", "score": "0.45656028", "text": "function setNumString($numString){$this->numString = $numString;}", "title": "" }, { "docid": "effc3db95b00a7799607ba0ed6bdd74d", "score": "0.45615894", "text": "function setLine($line);", "title": "" }, { "docid": "4033f30b6fbbbdd11959025dbf464aab", "score": "0.45550355", "text": "public function setCode($code, $num)\n {\n switch($num)\n {\n case \"1\":\n $this->code1 = $code;\n break;\n case \"2\":\n $this->code2 = $code;\n break;\n case \"3\":\n $this->code3 = $code;\n break;\n default:\n return false;\n break;\n }\n }", "title": "" }, { "docid": "208d57f6b995f5ab4ea364d5384a84a7", "score": "0.45498848", "text": "public function setNoteFromCode($code) {\n\t\tif (Lang::has('orsapi_err_codes.'.$code))\n\t\t\t$this->note = Lang::get('orsapi_err_codes.'.$code);\n\t}", "title": "" }, { "docid": "41612974a58c3399c3718c28879eacec", "score": "0.45418248", "text": "function mattrad_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add News';\n $submenu['edit.php'][16][0] = 'News Tags';\n echo '';\n}", "title": "" }, { "docid": "6517e9272da08b1d1f09885d5e783e93", "score": "0.45400986", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add Post';\n $submenu['edit.php'][16][0] = 'News Tags';\n}", "title": "" }, { "docid": "5290d0a984edef841363af11e7990c1b", "score": "0.45359677", "text": "public function criaLinha()\n {\n //pos [1-1]\n $linha = 1;\n //pos [2-6]\n $linha .= str_pad('', 5, 0);\n //pos [7-7]\n $linha .= str_pad('', 1);\n //pos [8-19]\n $linha .= str_pad('', 12, 0);\n //pos [20-20]\n $linha .= str_pad('', 1);\n //pos [21-21]\n $linha .= '0';\n //pos [22-24]\n $linha .= $this->getCarteira();\n //pos [25-29]\n $linha .= $this->getAgencia();\n //pos [30-36]\n $linha .= $this->getConta();\n //pos [37-37]\n $linha .= $this->getContaDv();\n //pos [38-62]\n $linha .= $this->getNumeroDocumeto();\n //pos [63-65]\n $linha .= str_pad('', 3, 0);\n //pos [66-66] código multa\n $linha .= '2';\n //pos [[67-70]\n $linha .= $this->getMulta();\n //pos[71-82]\n $linha .= $this->getNossoNumero();\n //pos[83-92]\n $linha .= str_pad('', 10, 0);\n //pos[93-93]\n $linha .= str_pad('', 1, 2);\n //pos[94-94]\n $linha .= str_pad('', 1);\n //pos[95-104]\n $linha .= str_pad('', 10);\n //pos[105-105]\n $linha .= str_pad('', 1);\n //pos[106-106]\n $linha .= str_pad('', 1, 2);\n //pos[107-108]\n $linha .= str_pad('', 2);\n //pos [109-110]\n $linha .= $this->getOcorrencia();\n //pos [111-120]\n $linha .= $this->getSeuNumero();\n //pos [121-126]\n $linha .= $this->getVencimento();\n //pos [127-139]\n $linha .= $this->getValor();\n //pos [140-142]\n $linha .= str_pad('', 3, 0);\n //pos [143-147]\n $linha .= str_pad('', 5, 0);\n //pos [148-149]\n $linha .= self::TIPO_DOCUMENTO;\n //pos [150-150]\n $linha .= self::ACEITE;\n //pos [151-156]\n $linha .= $this->getDataEmissao();\n //pos [157-160]\n $linha .= str_pad('', 4, 0);\n //pos [161-173]\n $linha .= $this->getValorMoraDia();\n //pos [174-179]\n $linha .= $this->getDataDesconto();\n //pos [180 - 192]\n $linha .= $this->getValorDesconto();\n //pos [193 - 218]\n $linha .= str_pad('', 26, 0);\n //pos[219-220]\n $linha .= $this->getTipoInscricaoPagador();\n //pos[221-234]\n $linha .= $this->getNumeroInscricao();\n //pos[235-274]\n $linha .= $this->getNomePagador();\n //pos[275-314]\n $linha .= $this->getEndereco();\n //pos[315-326]\n $linha .= str_pad('', 12);\n //pos [227-334]\n $linha .= $this->getCep();\n //pos [335-394]\n $linha .= str_pad('', 60);\n //pos [395-400]\n $linha .= $this->getSequencialRegistro();\n\n $linha .= \"\\r\\n\";\n return $linha;\n }", "title": "" }, { "docid": "5db94771abf8df76b99fcf02d912811f", "score": "0.45209467", "text": "function tag_code_post($s,$uid) {\n $to_replace = array('_simbol_sub_'=>'_','_simbol_double_points_'=>':','_simbol_point_virg_'=>';',\n '_simbol_open_paran_'=>'[','_simbol_close_paran_'=>']');\n $replace_what = array();\n $replace_with = array();\n\n foreach ($to_replace AS $replace_simbol=>$replace_char) {\n $replace_what[] = $uid.$replace_simbol.$uid;\n $replace_with[] = $replace_char;\n }\n $replace_what[] = \"[code:{$uid}]\";\n $replace_with[] = '[code]';\n $replace_what[] = \"[/code:{$uid}]\";\n $replace_with[] = '[/code]';\n $replace_what[] = ' ';\n $replace_with[] = '&nbsp; ';\n\n return str_replace($replace_what,$replace_with,$s);\n}", "title": "" }, { "docid": "3476e1fec43713fd66a779c77d87544d", "score": "0.45206845", "text": "public function setPostalCode($newpostalcode){\n #check if the postalcode is not empty\n if(strlen($newpostalcode) == 0) \n {\n return \"Postalcode cannot be empty!\";\n }#check if the postal code is not longer than 7 characters\n elseif (strlen($newpostalcode) > self::PCODE_MAX_LENGTH) \n {\n return \"Postalcode cannot be more than 7 characters!\";\n } \n else \n {\n $this->pcode = $newpostalcode;\n return\"\";\n }\n }", "title": "" }, { "docid": "981913b0e3d28c5dc1a4caa0ee662b62", "score": "0.45190874", "text": "function change_post_menu_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'News';\n\t$submenu['edit.php'][5][0] = 'News';\n\t$submenu['edit.php'][10][0] = 'Add News Article';\n\t$submenu['edit.php'][16][0] = 'News Tags';\n\techo '';\n}", "title": "" }, { "docid": "76277847ef4c60200bb200167eb23ae0", "score": "0.4518147", "text": "function setTopRightHeaderString($value)\r\n\t\t{\r\n\t\t\t$this->topRightHeader = $value;\r\n\t\t}", "title": "" }, { "docid": "1d3ab638f2bf406a065248e1728df525", "score": "0.45163846", "text": "public function setPosition(string $position){$this->position = $position;return $this;}", "title": "" }, { "docid": "8d21c9d19f2eadf31a01515f0a17b3f0", "score": "0.45152086", "text": "public function verAtrilEnPlasma(){\n $this->setComando(\"ATRIL\");\n}", "title": "" }, { "docid": "ec290d416e6affeb5d324d418d636b3d", "score": "0.45049396", "text": "static public function codeToLink($code){\r\n\t$abbrev = array(\r\n\t 'PC' => 'PEN', //penal code\r\n\t 'VC' => 'VEH', //vehical code\r\n\t 'HS' => 'HSC', //health/safety\r\n\t 'BP' => 'BPC', //business/professions\r\n\t);\r\n\t\r\n\t$body = substr($code, -2, 2);\r\n\t\r\n\tif(preg_match('/\\d+/', $code, $match) && isset($match[0]) && array_key_exists($body, $abbrev)){\r\n\t return '<a target=\"_blank\" href=\"http://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=' . $abbrev[$body] . '&sectionNum=' . $match[0] . '\">' . $code . '</a>';\r\n\t}\r\n\telse{\r\n\t return $code;\r\n\t}\r\n }", "title": "" }, { "docid": "bbae5c1991cc8539fea098016c024bce", "score": "0.45048243", "text": "private function parseCode()\n {\n preg_replace_callback(\"/<!--\\s*PHP\\s*-->(.+?)<!--\\s*ENDPHP\\s*-->/is\", function ($matches) {\n $key = '===' . uniqid() . '===';\n $this->_codes[$key] = '<?php ' . $matches[1] . ' ?>';\n return $key;\n }, $this->_str);\n }", "title": "" }, { "docid": "2cc96bbc57c02ab15db36157977a3ed9", "score": "0.45040622", "text": "private static function separatorLocation($code){\n return self::indexOf($code,self::$SEPARATOR_);\n }", "title": "" }, { "docid": "f6d80a0be0849cf0c833fffd89bb1f5a", "score": "0.449017", "text": "function setLetra($sletra = '')\n {\n $this->sletra = $sletra;\n }", "title": "" }, { "docid": "31fa364435a9a8c89b0dd667b1906e7d", "score": "0.447846", "text": "private function setOffset(&$qstring, $num)\n {\n $qstring[$this->offsetKey] = $num;\n }", "title": "" }, { "docid": "7336aa5ad5189ed23355351bd9fcc6c4", "score": "0.44755617", "text": "public function setCode(string $code) : self\n {\n $this->initialized['code'] = true;\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "d00a95a7b7f4a147985f54fcdbd2ca20", "score": "0.4473321", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Portfolio';\n $submenu['edit.php'][5][0] = 'Portfolio';\n $submenu['edit.php'][10][0] = 'Add Portfolio';\n $submenu['edit.php'][16][0] = 'Portfolio Tags';\n}", "title": "" }, { "docid": "72f28dfa72b2015116da83adaa78d646", "score": "0.44710433", "text": "function change_post_menu_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'News';\n\t$submenu['edit.php'][5][0] = 'News';\n\t$submenu['edit.php'][10][0] = 'Add News';\t\n\techo '';\n}", "title": "" }, { "docid": "14605204fb0fdd93092a6cb35a4a6c47", "score": "0.4468972", "text": "private function put_html_code()\n\t{\n\t\tFsb::$tpl->set_blocks('cat.line.put_html_code', array(\n\t\t\t'L_ACTION' =>\t\tFsb::$session->lang($this->lang_prefix . $this->name),\n\t\t\t'CODE' =>\t\t\t$this->args,\n\t\t\t'EXPLAIN' =>\t\t(Fsb::$session->lang($this->lang_prefix . $this->name . '_explain')) ? Fsb::$session->lang($this->lang_prefix . $this->name . '_explain') : null,\n\t\t));\n\t}", "title": "" }, { "docid": "02c1426af36a906e45c5a4abf6377421", "score": "0.44686708", "text": "public function setPrevious($str)\n {\n $this->_variables['previous'] = $str;\n }", "title": "" }, { "docid": "cb7556a521e01a3c875361af61f85553", "score": "0.44590703", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add a News Post';\n // $submenu['edit.php'][15][0] = 'Status'; // Change name for categories\n //$submenu['edit.php'][16][0] = 'Labels'; // Change name for tags\n echo '';\n}", "title": "" }, { "docid": "53b7a17584ad486277b2c8190e98505b", "score": "0.44574967", "text": "public function testSetCode() {\n\n $obj = new Vmp();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "title": "" }, { "docid": "52c359943ab35353d4d7df24c4a4721e", "score": "0.4457118", "text": "function tag_code_pre($s,$uid) {\n $to_replace = array('_simbol_sub_'=>'_','_simbol_double_points_'=>':','_simbol_point_virg_'=>';',\n '_simbol_open_paran_'=>'[','_simbol_close_paran_'=>']','');\n $replace_what = array();\n $replace_with = array();\n\n foreach ($to_replace AS $replace_simbol=>$replace_char) {\n $replace_what[] = $replace_char;\n $replace_with[] = $uid.$replace_simbol.$uid;\n }\n return str_replace($replace_what,$replace_with,$s);\n}", "title": "" }, { "docid": "2d84fe14fa27c74b3be9d0cb2f61daf5", "score": "0.44484955", "text": "function _insertcode( &$code, &$point, $insert, &$codelength )\n\t{\n\t\tglobal $errors;\n\t\t\n\t\t// codelength has to be updated\n\t\t$old = $codelength;\n\t\t$codelength += count( $insert );\n\t\t$errors->debug_info( $this->debug, 'Template', '_insertcode', 'Updating codelength from ' . $old . ' to ' . $codelength );\n\t\t\n\t\t// debug info\n\t\t$errors->debug_info( $this->debug, 'Template', '_insertcode', 'inserting code into the scope: <b>' . htmlspecialchars( implode( ';;', $insert ) ) . '</b>' );\n\t\t// insert\n\t\t$rest = array_slice( $code, $point ); // code bellow the line\n\t\tarray_shift( $rest ); // remove this line\n\t\t$rest = array_merge( $insert, $rest ); // exploded line and the rest\n\t\t$code = array_slice( $code, 0, $point ); // get first part of code\n\t\t$code = array_merge( $code, $rest ); // put together\n\t\t\n\t\t// re-execute this line\n\t\t$point--;\n\t}", "title": "" }, { "docid": "c3e564210ca8bbf55e0c5272cf520333", "score": "0.44475263", "text": "function setCode($value) {\n return $this->setFieldValue('code', $value);\n }", "title": "" }, { "docid": "2008f172faf06a564764031928369308", "score": "0.4446455", "text": "public function encode($string, $addSwitchCode);", "title": "" }, { "docid": "fb65b2328930fb84d106be5dc18cf88d", "score": "0.44458756", "text": "protected function setPositions($tree, $prefix = '')\n\t{\n\t\t$i = 1;\n\t\tforeach($tree->getNodes() as $item) {\n\t\t\t$pos = $prefix.str_pad((string)$i, $this->charsPerLevel, '0', STR_PAD_LEFT);\n\t\t\t$item->position = $pos;\n\t\t\t$this->setPositions($item, $pos);\n\t\t\t$i++;\n\t\t}\n\t}", "title": "" }, { "docid": "c8e23df44e7bad680dedd106366ced4d", "score": "0.44422784", "text": "public function getCode(): string\n {\n return 'Exp_NextMap';\n }", "title": "" }, { "docid": "2249a79bc024251ef27e770cee2464fe", "score": "0.44386902", "text": "public function setCode($code)\r\n\t{\r\n\t\t$this->_code = (string) $code;\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "91889cb17ecb8e44125f815febda8bcf", "score": "0.44332328", "text": "function i25($xpos, $ypos, $code, $basewidth=1, $height=10){\n\t\t$wide = $basewidth;\n\t\t$narrow = $basewidth / 3 ;\n\n\t\t// wide/narrow codes for the digits\n\t\t$barChar['0'] = 'nnwwn';\n\t\t$barChar['1'] = 'wnnnw';\n\t\t$barChar['2'] = 'nwnnw';\n\t\t$barChar['3'] = 'wwnnn';\n\t\t$barChar['4'] = 'nnwnw';\n\t\t$barChar['5'] = 'wnwnn';\n\t\t$barChar['6'] = 'nwwnn';\n\t\t$barChar['7'] = 'nnnww';\n\t\t$barChar['8'] = 'wnnwn';\n\t\t$barChar['9'] = 'nwnwn';\n\t\t$barChar['A'] = 'nn';\n\t\t$barChar['Z'] = 'wn';\n\n\t\t// add leading zero if code-length is odd\n\t\tif(strlen($code) % 2 != 0){\n\t\t\t$code = '0' . $code;\n\t\t}\n\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->Text($xpos, $ypos + $height + 4, $code);\n\t\t$this->SetFillColor(0);\n\n\t\t// add start and stop codes\n\t\t$code = 'AA'.strtolower($code).'ZA';\n\n\t\tfor($i=0; $i<strlen($code); $i=$i+2){\n\t\t\t// choose next pair of digits\n\t\t\t$charBar = $code[$i];\n\t\t\t$charSpace = $code[$i+1];\n\t\t\t// check whether it is a valid digit\n\t\t\tif(!isset($barChar[$charBar])){\n\t\t\t\t$this->Error('Invalid character in barcode: '.$charBar);\n\t\t\t}\n\t\t\tif(!isset($barChar[$charSpace])){\n\t\t\t\t$this->Error('Invalid character in barcode: '.$charSpace);\n\t\t\t}\n\t\t\t// create a wide/narrow-sequence (first digit=bars, second digit=spaces)\n\t\t\t$seq = '';\n\t\t\tfor($s=0; $s<strlen($barChar[$charBar]); $s++){\n\t\t\t\t$seq .= $barChar[$charBar][$s] . $barChar[$charSpace][$s];\n\t\t\t}\n\t\t\tfor($bar=0; $bar<strlen($seq); $bar++){\n\t\t\t\t// set lineWidth depending on value\n\t\t\t\tif($seq[$bar] == 'n'){\n\t\t\t\t\t$lineWidth = $narrow;\n\t\t\t\t}else{\n\t\t\t\t\t$lineWidth = $wide;\n\t\t\t\t}\n\t\t\t\t// draw every second value, because the second digit of the pair is represented by the spaces\n\t\t\t\tif($bar % 2 == 0){\n\t\t\t\t\t$this->Rect($xpos, $ypos, $lineWidth, $height, 'F');\n\t\t\t\t}\n\t\t\t\t$xpos += $lineWidth;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2d40e624cd204bf218d65d7bc7d87bc4", "score": "0.44305125", "text": "public static function getCode(){\n\t\treturn '';\n\t}", "title": "" }, { "docid": "da72fd36e996adc4ed621a0d223ae286", "score": "0.44304597", "text": "public function setDefaultCode(string $code): void;", "title": "" }, { "docid": "5549537b4abad128561e19b2a191e4d7", "score": "0.44294578", "text": "public function setUTF() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b561b3dcf4b8c52b066c42afe390073c", "score": "0.44282", "text": "public function set($letter_new)\n {\n \n $this->letter_new=$letter_new;\n echo $this->letter_new;\n }", "title": "" }, { "docid": "9625ab86958c5a2bfa19318707515e10", "score": "0.4412685", "text": "public function setCode($code)\n {\n return $this->setData(self::KEY_CODE, $code);\n }", "title": "" }, { "docid": "3bac7cd991da641536001520a9cc5bfe", "score": "0.44123298", "text": "public function setLocationCode($value) { $this->LocationCode = $value; return $this; }", "title": "" }, { "docid": "069656d00a42a59f57702c10a34df060", "score": "0.4407991", "text": "public function setCode($value) {\n return $this->set(self::CODE, $value);\n }", "title": "" }, { "docid": "069656d00a42a59f57702c10a34df060", "score": "0.4407991", "text": "public function setCode($value) {\n return $this->set(self::CODE, $value);\n }", "title": "" }, { "docid": "8106fbb4c77e11211b25fe3ce54c6aec", "score": "0.44058457", "text": "function tip_companie($id, $strX_){\n $tip = $this->Companie($id, 'tip_companie');\n $pos = strpos($tip, $strX_);\n if ($pos === false) {\n $a = \"\";\n } else {\n $a = \"selected='selected'\";\n }\n return $a;\n }", "title": "" }, { "docid": "61d778cd529e276f281e6bd54db8ef84", "score": "0.44043437", "text": "function setCodeStat($encode){\n\t\t$this->encodestat=$encode;\n\t}", "title": "" }, { "docid": "24500b1e5a57b398e054f05385c75202", "score": "0.44010535", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setKodeWilayah($value);\n break;\n case 1:\n $this->setNama($value);\n break;\n case 2:\n $this->setIdLevelWilayah($value);\n break;\n case 3:\n $this->setMstKodeWilayah($value);\n break;\n case 4:\n $this->setNegaraId($value);\n break;\n case 5:\n $this->setAsalWilayah($value);\n break;\n case 6:\n $this->setKodeBps($value);\n break;\n case 7:\n $this->setKodeDagri($value);\n break;\n case 8:\n $this->setKodeKeu($value);\n break;\n case 9:\n $this->setIdProv($value);\n break;\n case 10:\n $this->setIdKabkota($value);\n break;\n case 11:\n $this->setIdKec($value);\n break;\n case 12:\n $this->setADesa($value);\n break;\n case 13:\n $this->setAKelurahan($value);\n break;\n case 14:\n $this->setA35($value);\n break;\n case 15:\n $this->setAUrban($value);\n break;\n case 16:\n $this->setKategoriDesaId($value);\n break;\n case 17:\n $this->setCreateDate($value);\n break;\n case 18:\n $this->setLastUpdate($value);\n break;\n case 19:\n $this->setExpiredDate($value);\n break;\n case 20:\n $this->setLastSync($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "e0f0927114437129773af24ec9ecccde", "score": "0.44004634", "text": "function ncurses_mvwaddstr($window, $y, $x, $text) {}", "title": "" }, { "docid": "929008938d3b56bdb051385647e91ce8", "score": "0.43945366", "text": "function set_menu_id($val){\n\t\t$this->menu_id = $val;\n\t}", "title": "" }, { "docid": "9a3025ab1b0edda446665ad4432a06a7", "score": "0.4393023", "text": "public function code(): string\n {\n return $this->code;\n }", "title": "" }, { "docid": "2d94d8f75162eeaebaa32e6be5330c92", "score": "0.4391372", "text": "public function code() : string;", "title": "" }, { "docid": "653c539fc94480f6090d4b8f1d03dd4f", "score": "0.43877396", "text": "function setRealtorCode($a_sRealtorCode)\n {\n $this->_sRealtorCode = (string) $a_sRealtorCode;\n $this->setSearchParameter('realtor_code', $this->_sRealtorCode);\n }", "title": "" }, { "docid": "06bef4e38cef01fc1c04f859ffb8b519", "score": "0.4385571", "text": "protected function line( $str )\n {\n echo \"\\033[38;5;82m\" . $str;\n echo \"\\033[0m\\n\";\n }", "title": "" }, { "docid": "469ca4a3f580dac88715fee69ae46483", "score": "0.43830943", "text": "function setVCode($vcode)\n\t{\n\t\t$this->global['vCode'] = $vcode ;\n\t\treturn $this ;\n\t}", "title": "" } ]
78621b0b5b5c9d23649791a119c20ca5
Sets the API to use for communication
[ { "docid": "6ad7dcda520850912913d42aaad8a770", "score": "0.0", "text": "public function __construct (LiquidApi $api)\n {\n $this->api = $api;\n }", "title": "" } ]
[ { "docid": "e24a488251ff60ff12537cd0bc01f19b", "score": "0.7260512", "text": "public function setApi($api);", "title": "" }, { "docid": "7f20914b8e3c0a990577140897a3065f", "score": "0.7126853", "text": "public function setApi($api): void\n\t{\n\t\t$this->api = $api;\n\t}", "title": "" }, { "docid": "2e07045d989edca7c545cf6253a93e04", "score": "0.6969259", "text": "public function setSpecificApi( API $api )\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "1229eb0bf6703ea8a20366b547cbdb53", "score": "0.67587036", "text": "function setApiURL() {\n\t\tif ( $this->isStagingMode() ) {\n\t\t\t$this->apiURL = $this->apiBaseURLStaging . \"login=\" . $this->username . \"&passwd=\" . $this->password;\n\t\t} else {\n\t\t\t$this->apiURL = $this->apiBaseURL . \"login=\" . $this->username . \"&passwd=\" . $this->password;\n\t\t}\n\t}", "title": "" }, { "docid": "9d2d80d0d6797a7b0ae18a9742d84e0d", "score": "0.6681563", "text": "protected function _initApi();", "title": "" }, { "docid": "161d558fb229b4a1660555b43cd9c20c", "score": "0.6599103", "text": "function get_api(){\n $this->APIURL = __API_URL__.'/'.$this->APISLUG;\n return $this;\n }", "title": "" }, { "docid": "80586321cb08a59127f91098cfd5a155", "score": "0.6560569", "text": "private function _setApiUrl()\r\n {\r\n $url = self::API_URL;\r\n if ( $this->region == 'cn' ) {\r\n $url = self::API_URL_CN;\r\n }\r\n $this->url = $url;\r\n }", "title": "" }, { "docid": "94b5fedc9469d3b32fbeeda3d4be2b0b", "score": "0.6514928", "text": "protected function setAPI($api)\n {\n # Check if the passed value is empty.\n if (!empty($api)) {\n # Strip slashes and decode any html entities.\n $api = html_entity_decode(stripslashes($api), ENT_COMPAT, 'UTF-8');\n # Clean it up.\n $api = trim($api);\n # Set the data member.\n $this->api = $api;\n } else {\n # Explicitly set the data member to NULL.\n $this->api = null;\n }\n }", "title": "" }, { "docid": "c692910539a39405d1a49a5f57c9c2da", "score": "0.65146226", "text": "private function set_api( $api )\n\t{\n\t\tglobal $wpdb;\n\n\t\t$wpdb->update( $wpdb->prefix . NFT_TAG,\n\t\t\tarray( 'api'=> $api ),\n\t\t\tarray( 'id' => '1' )\n\t\t);\n\t}", "title": "" }, { "docid": "5654a2547262615e4ba46a332ffcc834", "score": "0.6464304", "text": "protected abstract function getApi();", "title": "" }, { "docid": "d332a32cf2c7a679d030addf0d924bbc", "score": "0.64533925", "text": "public function __construct($api) {\n $this->api = $api;\n }", "title": "" }, { "docid": "7bda6f2b29646aa429e6c6b7f4689b88", "score": "0.6370599", "text": "public function __construct($api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "7bda6f2b29646aa429e6c6b7f4689b88", "score": "0.6370599", "text": "public function __construct($api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "9ac69cdddf64b52a0565ac050cdac52a", "score": "0.63703626", "text": "protected function init_api()\n {\n include_once dirname(__FILE__) . '/payscrypt-api-handler.php';\n\n Payscrypt_API_Handler::$log = get_class($this) . '::log';\n Payscrypt_API_Handler::$api_endpoint = $this->get_option('api_endpoint');\n Payscrypt_API_Handler::$api_key = $this->get_option('api_key');\n Payscrypt_API_Handler::$wallet_id = $this->get_option(\"pg_wallet_id\");\n }", "title": "" }, { "docid": "078939f417593f2d29130f8554c5a3e4", "score": "0.63334703", "text": "public function setApiKey(): void\n {\n $this->apiKey = \"jinya-api-token-$this->userId-\" . bin2hex(random_bytes(20));\n }", "title": "" }, { "docid": "5080777da53dcaf7b06897576810ef0d", "score": "0.6321459", "text": "function api()\n\t{\n\n\t}", "title": "" }, { "docid": "e8276764166fe50e4a325c55040ff64a", "score": "0.6305813", "text": "public abstract function getApi();", "title": "" }, { "docid": "36ba3820bf31930a89517635e84b34f2", "score": "0.6234731", "text": "public function setApiKey($apiKey);", "title": "" }, { "docid": "36ba3820bf31930a89517635e84b34f2", "score": "0.6234731", "text": "public function setApiKey($apiKey);", "title": "" }, { "docid": "74baa323290b9c5d5467c9aa78c0c581", "score": "0.6230964", "text": "abstract public function getApi();", "title": "" }, { "docid": "0145adac4fb473150c837545e2785a28", "score": "0.6179592", "text": "public function getApi ();", "title": "" }, { "docid": "82b99a001415d5ea9252189bd5b4adb3", "score": "0.615962", "text": "public function setApiKey($apiKey)\n {\n\t\t$this->apiKey = $apiKey;\n }", "title": "" }, { "docid": "c4dd8d746962e1905a7f8edf96c7d3e6", "score": "0.6141954", "text": "public function setApiUrl($apiUrl);", "title": "" }, { "docid": "a67ce91cefcaca729b285749b173f6f1", "score": "0.6134051", "text": "public function __construct(API $api)\r\n {\r\n $this->api = $api;\r\n }", "title": "" }, { "docid": "bd571e3569d5c8b9fdf2606155fc8b19", "score": "0.6121548", "text": "public function getAPI()\n {\n return $this->api;\n }", "title": "" }, { "docid": "bd571e3569d5c8b9fdf2606155fc8b19", "score": "0.6121548", "text": "public function getAPI()\n {\n return $this->api;\n }", "title": "" }, { "docid": "3a052bcd20a8b7f2b4a93cdb1a59cd9b", "score": "0.6088224", "text": "public function setApiKey(string $apiKey): void\n {\n $this->apiKey = $apiKey;\n }", "title": "" }, { "docid": "4b91f669d1f8a17deab442ded6de0c63", "score": "0.60870534", "text": "public function MIAPI()\n {\n $scope = ($this->getScope()) ? $this->getScope() : Mage::app()->getStore()->getStoreId(); \n $this->moduleEnable = $this->getEnableStatus($scope); \n $this->apiKey = $this->getApiKey();\n $valueLanguage = $this->getApiConfigValue();\n if(isset($valueLanguage['data']['language'])) {\n $this->userLanguage = $valueLanguage['data']['language'];\n }\n\n if (!$this->listsIds) {\n $this->listsIds = str_replace(',', '|', $this->getUserlists($scope));\n }\n\n $params = Mage::app()->getRequest()->getParams();\n $params = empty($params)?array():$params;\n if (isset($params['sendin_apikey']) && $params['sendin_apikey'] != '') {\n $this->CreateFolderCaseTwo();\n }\n }", "title": "" }, { "docid": "7c9d40142c880698c2c3c989b50e2c43", "score": "0.60779774", "text": "private function _load_api()\n {\n // get our api\n require_once 'api.php';\n\n // init it\n $this->_api = new API();\n }", "title": "" }, { "docid": "98c09207a806f3b15c99f5724f5dbc48", "score": "0.607458", "text": "public function setApiKey($apikey);", "title": "" }, { "docid": "a862df0af482c8c31f4dc30b84671889", "score": "0.6070934", "text": "function __construct($apiKey)\n {\n # API URL with API keys\n $this->apiURL = $this->apiURL . '?key=' . $apiKey;\n }", "title": "" }, { "docid": "156c0974e388bb7a008612c41099a04d", "score": "0.6068443", "text": "public function __construct()\n {\n $this->api = new Mangafox();\n }", "title": "" }, { "docid": "2c2b3d174e9a350349de6024ffe6e769", "score": "0.6066954", "text": "public function getApi();", "title": "" }, { "docid": "e30937098c25b326ee65e8317f96e2c6", "score": "0.604919", "text": "public function setApiKey(string $api_key)\n{\n $this->api_key = $api_key;\n\n return $this;\n}", "title": "" }, { "docid": "193c3624218133e13e29e53f22b7bbc5", "score": "0.60418355", "text": "public function setApiKey(string $apiKey): void;", "title": "" }, { "docid": "151cdf589fc29e146d95c7673afc02d0", "score": "0.6039722", "text": "public function setApiKey($api_key)\n {\n $this->api_key = $api_key;\n }", "title": "" }, { "docid": "151cdf589fc29e146d95c7673afc02d0", "score": "0.6039722", "text": "public function setApiKey($api_key)\n {\n $this->api_key = $api_key;\n }", "title": "" }, { "docid": "86498ff79c895e77f2b782ffd45253e4", "score": "0.6024514", "text": "function setOptions($apiKey, $connTimeout=10, $apiVersion=\"v10\") {\n\t\tQPConnectorFactory::getConnector()->setOptions($apiKey, $connTimeout, $apiVersion);\t\n\t}", "title": "" }, { "docid": "ea5ffb78db370c83e6f74ebfa6f9a92f", "score": "0.6013257", "text": "public function custom_api();", "title": "" }, { "docid": "70ca839d3f99df573318166475ac9edb", "score": "0.60006344", "text": "private function setSettings()\n {\n curl_setopt_array($this->client, array(\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30000,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => $this->type,\n CURLOPT_HTTPHEADER => array(\n \"accept: */*\",\n \"accept-language: en-US,en;q=0.8\",\n \"content-type: application/json\",\n ),\n ));\n if (mb_strtoupper($this->type) == 'GET') {\n $this->get();\n } else {\n $this->other();\n }\n }", "title": "" }, { "docid": "493ee678e3aec107680e504a10987c79", "score": "0.59962726", "text": "public function set_apikey($apikey){\n\t\t$this->apikey=$apikey;\n\t}", "title": "" }, { "docid": "c0dbb5357130759e284474d6eaee286d", "score": "0.59953874", "text": "function maybe_api_init() {\n\t\tif ( $this->api ) {\n\t\t\treturn;\n\t\t}\n\n\t\trequire_once 'amocrm-api/AmoRestApi.php';\n\t\t$this->api = new \\AmoRestApi( $this->subdomain, $this->login, $this->key );\n\t}", "title": "" }, { "docid": "cdad7b3dafac0478ee583fabfc4f01ef", "score": "0.5991057", "text": "function initApi($api) {\n $api->get('/getParams.json', 'apiGetParams', EpiApi::external);\n $api->get('/postParams.json', 'apiPostParams', EpiApi::external);\n $api->get('/httpBody.json', 'apiHttpBody', EpiApi::external);\n}", "title": "" }, { "docid": "ef36f126a54a11b9661d98cf89c15628", "score": "0.598513", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->api = new client([\n 'base_uri' => $this->baseUrl,\n 'timeout' => '30'\n ]);\n }", "title": "" }, { "docid": "c00f90a66374afb39bbace64b51f89c8", "score": "0.59717375", "text": "public function __construct()\n {\n $this->api = new ApiLmts();\n }", "title": "" }, { "docid": "94510af5b545a7608524390038250e00", "score": "0.596898", "text": "public function saveAPI() {\n\n }", "title": "" }, { "docid": "2456a4901f3e49555dd31c61875bed62", "score": "0.59538543", "text": "public function __construct(string $api)\n\t{\n\t\t$this -> token = FALSE;\n\t\tparent::__construct($api);\n\t}", "title": "" }, { "docid": "7b685557e2e6b83e5673899a7b3a0f9c", "score": "0.59525675", "text": "public function setApiKey($apiKey)\n {\n $this->apiKey = $apiKey;\n }", "title": "" }, { "docid": "7b685557e2e6b83e5673899a7b3a0f9c", "score": "0.59525675", "text": "public function setApiKey($apiKey)\n {\n $this->apiKey = $apiKey;\n }", "title": "" }, { "docid": "9f1832d15d2e13c8e923a41a9c630721", "score": "0.5930995", "text": "public function __construct()\n {\n $this->api = new \\services\\Api\\J6(['useCache' => false]);\n\n parent::__construct();\n }", "title": "" }, { "docid": "fe0d49df3428970490294656386d2ef8", "score": "0.59087336", "text": "public static function switch_api()\n {\n $currentApi = PodioApi::whereCurrent(1)->first();\n $currentApi->current = 0;\n $currentApi->save();\n\n $api = PodioApi::orderBy('updated_at', 'asc')\n ->where('current', '!=', 1)->first();\n $api->current = 1;\n $api->save();\n\n self::reAuth();\n }", "title": "" }, { "docid": "426eb72dd96d925a4cc948bd23df61d3", "score": "0.59087145", "text": "public function setApiUrl($url)\n {\n $this->API_URL = $url;\n }", "title": "" }, { "docid": "a56791d212e255ef75c3dcf0be6dfdac", "score": "0.59084713", "text": "public function setEnvApi($env_api)\n\t{\n\t\tif (Configuration::get(TSCommon::PREFIX_TABLE.'ENV_API') != $env_api)\n\t\t\tConfiguration::updateValue(TSCommon::PREFIX_TABLE.'ENV_API', $env_api);\n\t\tTSCommon::$env_api = $env_api;\n\t}", "title": "" }, { "docid": "7d7515f46770f0808bee874ffd8d1b47", "score": "0.58958626", "text": "public function __construct(){\n $this->api = new Concierge();\n }", "title": "" }, { "docid": "b560420d6b1e31974652f194df9158b0", "score": "0.5884434", "text": "public function getApi()\n {\n return $this->api;\n }", "title": "" }, { "docid": "b560420d6b1e31974652f194df9158b0", "score": "0.5884434", "text": "public function getApi()\n {\n return $this->api;\n }", "title": "" }, { "docid": "8044b16594e4035ecf937af7f68a4050", "score": "0.58844304", "text": "public function setAPIToken($apiToken) {\n\t\t\t$this->apiToken = $apiToken;\n\t\t}", "title": "" }, { "docid": "ac63a1bce8dab1df779b002a4b8dbe39", "score": "0.5870999", "text": "public function setApiUrl()\n {\n $endpoint = $this->scopeConfigInterface->getValue('emarsys_settings/emarsys_setting/emarsys_api_endpoint', $this->scope, $this->websiteId);\n if ($endpoint == '' && $this->websiteId == 1) {\n $endpoint = $this->scopeConfigInterface->getValue('emarsys_settings/emarsys_setting/emarsys_api_endpoint');\n }\n if ($endpoint == 'custom') {\n $url = $this->scopeConfigInterface->getValue('emarsys_settings/emarsys_setting/emarsys_custom_url', $this->scope, $this->websiteId);\n if ($url == '' && $this->websiteId == 1) {\n $url = $this->scopeConfigInterface->getValue('emarsys_settings/emarsys_setting/emarsys_custom_url');\n }\n return $this->apiUrl = rtrim($url, '/') . \"/\";\n } elseif ($endpoint == 'cdn') {\n return $this->apiUrl = \"https://api-cdn.emarsys.net/api/v2/\";\n } elseif ($endpoint == 'default') {\n return $this->apiUrl = \"https://api.emarsys.net/api/v2/\";\n }\n }", "title": "" }, { "docid": "29b725ea7f59781403bb2f3bc846be36", "score": "0.5870829", "text": "public function setApiDriver($driver)\n\t{\n\t\t// If we are initialized, set the driver as well\n\t\tif ($this->getIsInitialized())\n\t\t{\n\t\t\t$this->setDriver($driver);\n\t\t}\n\t\t// Otherwise, just set the string that will be used\n\t\t// when we initialize the component\n\t\telse\n\t\t{\n\t\t\t$this->api_driver = $driver;\n\t\t}\n\t}", "title": "" }, { "docid": "e5a38dc79da34f79c8d62e3c045db93c", "score": "0.5844711", "text": "public function __construct($apiKey, $options = null) {\n $this->_apiKey = $apiKey;\n\n // assign baseUri\n $this->_baseUri = Config::get('client.base_uri');\n\n // allows for manual timeout times for the current instance\n if (isset($options['timeout'])) {\n $this->timeout = (int)$options['timeout'];\n $this->_timeoutSetInConstructor = true;\n }\n\n // assign parameters\n $this->_protocol = (isset($options['protocol'])) ? $options['protocol'] : Config::get('client.protocol');\n $this->region = (isset($options['region'])) ? $options['region'] : Config::get('client.region');\n $this->locale = (isset($options['locale'])) ? $options['locale'] : Config::get('client.locale');\n\n // check the current region and locale before submitting a request\n $this->checkOptionalParameters();\n\n $this->_baseUri = $this->getPath($this->_baseUri, [\n 'protocol' => Helper::checkProtocol($this->_protocol),\n 'region' => $this->region\n ]);\n\n $this->_client = new Client(['base_uri' => $this->_baseUri]);\n\n // set the default parameters\n $this->parameters = [\n 'timeout' => $this->timeout,\n 'query' => [\n 'locale' => $this->locale,\n 'apikey' => $this->_apiKey\n ]\n ];\n\n // set the default headers\n $this->headers = [\n 'Accept-Charset' => 'UTF-8',\n 'Content-Type' => 'application/json',\n 'Accept' => 'application/json',\n 'User-Agent' => 'PHP WowSDK'\n ];\n\n // set the cache engine. defaults to SimpleCache if nothing is specified\n $engine = (isset($options['cacheEngine'])) ? $options['cacheEngine'] : new SimpleCache();\n $this->setCacheEngine($engine);\n }", "title": "" }, { "docid": "81e9b7002d0704846ec28979b2d7f88b", "score": "0.58378106", "text": "protected function setupApiInstance($type)\n {\n $this->updateStatus('Setting up api instance...');\n\n $this->api = ($type == 'lego') ? new \\App\\Gateways\\RebrickableApiLego : new \\App\\Gateways\\RebrickableApiUser;\n }", "title": "" }, { "docid": "6a11d913f7c952d6f3424ef9d9c87574", "score": "0.5835399", "text": "private function setApiClient()\n {\n try {\n $this->api = new SoapClient(self::$api_url);\n $this->setApiAvailable(true);\n return true;\n } catch (\\SoapFault $e) {\n echo 'Soap Failed: ', $e->getMessage(), \"\\n\";\n }\n $this->setApiAvailable(false);\n return false;\n }", "title": "" }, { "docid": "48f2b93de377faa5976176d3e220286d", "score": "0.58327156", "text": "public function __construct()\n {\n //$this->host = $host;\n //$this->remoteApiClass = $remoteApiClass;\n }", "title": "" }, { "docid": "ccc46aafc5b2f30f1c7ba61ae3ea7b01", "score": "0.5823651", "text": "public function setApiLoader() {\n $template = $this -> configuration -> getApi();\n foreach ($template as $namespace => $path ) {\n $this -> configuration -> getComposer() -> addPsr4($namespace, $path);\n }\n }", "title": "" }, { "docid": "f0a3b9e58b1a586b27701e88cd87b0d6", "score": "0.5823628", "text": "public function __construct(){\n $this->api = new ApiService();\n }", "title": "" }, { "docid": "7946b6f94645a18adaa40b6041bbccf3", "score": "0.5823522", "text": "public static function set_api_key($key)\n {\n self::$api_key = $key;\n }", "title": "" }, { "docid": "4730acb3eadf2ea0eff4f89b63eb93ee", "score": "0.582029", "text": "protected function setEndpoint(): void\n {\n $this->endpoint = $this->getDomain() . '/api/school/terms';\n }", "title": "" }, { "docid": "b29a075d4310c7dd4f90572a8e3a388f", "score": "0.5792594", "text": "public static function setSapi($sapi)\n {\n self::$sapi = $sapi;\n }", "title": "" }, { "docid": "98cc92e43883f0458d22474e63fa938e", "score": "0.5792588", "text": "function __construct($api_key,$api_secret,$api_base=false){\n //set API key and secret\n $this->_api_key = $api_key;\n $this->_api_secret = $api_secret;\n\n if($api_base){\n $this->_api_base = $api_base;\n }\n\n }", "title": "" }, { "docid": "a6c3f7739a4047e8ff3358208136baca", "score": "0.5784266", "text": "public static function setAPIKey($key)\n {\n static::$APIKEY = $key;\n static::$grabber = new AcsDataGrabber($key);\n }", "title": "" }, { "docid": "5ae5097af60e09568fbf81fa67e5ba6c", "score": "0.578392", "text": "public function __construct() {\n $this->httpClient = new HttpClient();\n $this->credentials = [\n 'api_key' => '',\n ];\n\n // We will set the default URL value.\n $url = 'https://desktime.com/api/v2';\n $this->setUrl($url);\n\n // Set the default format.\n $this->setFormat('json');\n }", "title": "" }, { "docid": "5e58531cbf8f40d355196d98e7fbc2ff", "score": "0.57752967", "text": "public function getApi(): string\n\t{\n\t\treturn $this->api;\n\t}", "title": "" }, { "docid": "0adc3f3be6f87897d341f6cbfebc8e5d", "score": "0.57742995", "text": "public static function setConnection() {\n \n }", "title": "" }, { "docid": "dc145e82f664d50dfac8ff6d33b1895b", "score": "0.5760655", "text": "public function __construct(Api $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "4d363442a5105e37245387c4e209726b", "score": "0.57491857", "text": "protected function setupApiLegoInstance()\n {\n $this->setupApiInstance('lego');\n }", "title": "" }, { "docid": "fd7b751f148b3e4cfcf284850ca3e3ed", "score": "0.57425064", "text": "public function api($api = null) : ?\\ascio\\base\\ApiModelBase {\n\t\tif(!$api) {\n\t\t\treturn $this->_api;\n\t\t}\n\t\t$this->_api = $api;\n\t\treturn $api;\n\t}", "title": "" }, { "docid": "fd7b751f148b3e4cfcf284850ca3e3ed", "score": "0.57425064", "text": "public function api($api = null) : ?\\ascio\\base\\ApiModelBase {\n\t\tif(!$api) {\n\t\t\treturn $this->_api;\n\t\t}\n\t\t$this->_api = $api;\n\t\treturn $api;\n\t}", "title": "" }, { "docid": "fd7b751f148b3e4cfcf284850ca3e3ed", "score": "0.57425064", "text": "public function api($api = null) : ?\\ascio\\base\\ApiModelBase {\n\t\tif(!$api) {\n\t\t\treturn $this->_api;\n\t\t}\n\t\t$this->_api = $api;\n\t\treturn $api;\n\t}", "title": "" }, { "docid": "41a50de815b3ba4fe1f2f2990a7e4a92", "score": "0.5723989", "text": "public function setApiMethod($method)\n {\n $this->apiMethod = $method;\n }", "title": "" }, { "docid": "427e3705ca0c46f67b12639f94ca995c", "score": "0.5719827", "text": "public function set_api_format($api_format = null) {\n if(is_string($api_format) && $api_format) {\n $this->api_format = $api_format;\n }\n return $this;\n }", "title": "" }, { "docid": "3440af8c0bc78ded38a2059a724b5b6f", "score": "0.57159126", "text": "public function __construct() {\n $this->client = new Client(['base_uri' => 'http://localhost:4000/api/']);\n }", "title": "" }, { "docid": "b64bd4e1260e1ba05e5a336a8042c6c7", "score": "0.57097095", "text": "protected function setApiBaseUrl() {\n if($this->defaultApiRegion == \"eu\") {\n $this->tokenUrl = \"https://api-public.eu.epsilon.com\";\n $this->apiUrl = \"https://api.harmony.eu.epsilon.com\";\n }\n else {\n $this->tokenUrl = \"https://api-public.epsilon.com\";\n $this->apiUrl = \"https://api.harmony.epsilon.com\";\n }\n }", "title": "" }, { "docid": "e55831f64fcd66a8dc31e978e0cffb2d", "score": "0.5707761", "text": "protected function setApiDispatcher ($config);", "title": "" }, { "docid": "e431eb8714427137215da6055509bfe9", "score": "0.57065207", "text": "function equipe_api_install() {\n add_option(\"equipe_api_id\", 'Default', '', 'yes');\n}", "title": "" }, { "docid": "a62fdedccf41b8da06dde71c2a345a4c", "score": "0.5705591", "text": "public function setAPIName(string $apiName)\n\t{\n\t\t$this->apiName=$apiName; \n\t\t$this->keyModified['api_name'] = 1; \n\n\t}", "title": "" }, { "docid": "54848a17d1a22083b976bcff509a35c7", "score": "0.57037044", "text": "public function _initialize()\n\t{\n\t\t$this->class = new Api();\n\t}", "title": "" }, { "docid": "c8d87b6eaf46507479de433c430d0043", "score": "0.5692666", "text": "protected function setAdapter()\n {\n $this->flow->setAdapter(($adapter = $this->config->get('flow.adapter'))\n ? $this->app->make($adapter, [$this->flow])\n : new GuzzleAdapter($this->flow)\n );\n }", "title": "" }, { "docid": "2baf848a9daa79dc106424e332529a5d", "score": "0.56900984", "text": "public function setApi($api)\n {\n $this->setConfig('api', $api);\n\n return $this;\n }", "title": "" }, { "docid": "2bd819151e3abebc384674966388e23c", "score": "0.56842023", "text": "public function __construct()\n {\n // Me va a ser util desde las vistas para hacer peticiones a la API\n //$this->cliente = new Client(['base_uri'=>'http://localhost:8002/api/']);\n $apiDireccion = config('api.ubicacion');\n $this->cliente = new Client(['base_uri'=>$apiDireccion]);\n }", "title": "" }, { "docid": "07c0852d69db2861b55b2ad9a800ef94", "score": "0.5682198", "text": "private function initialize()\n\t{\n\t\t$this->moip = new Api;\n\t\t$this->config = $this->validatorConfig(Config::get('moip'));\n\t\t$this->getEnvironment();\n\t\t$this->authentication();\n\t}", "title": "" }, { "docid": "886cdb267ac01cdb1feb51e2082ffdc6", "score": "0.5679765", "text": "private function _setDefault()\n\t{\n\t\t$apiClientInfo=$this->dbMobileApiClientInfo->checkDeviceEntry($this->AUTHKEY);\n\t\tif(is_array($apiClientInfo))\n\t\t{\n\t\t\t$this->setAPPID($apiClientInfo[\"APPID\"]);\n\t\t\t$this->setCLIENT($apiClientInfo[\"CLIENT\"]);\n\t\t\t$this->setEMAIL($apiClientInfo[\"EMAIL\"]);\n\t\t\t$this->setMOBILE($apiClientInfo[\"MOBILE\"]);\t\t\n\t\t\t$this->setSTATUS($apiClientInfo[\"STATUS\"]);\n\t\t\t$this->setADD_TIME($apiClientInfo[\"ADD_TIME\"]);\n\t\t\t$this->setUID($apiClientInfo[\"UID\"]);\n\t\t\t$this->setCURRENT_IP($apiClientInfo[\"CURRENT_IP\"]);\n\t\t\t$this->setIP_COUNT($apiClientInfo[\"IP_COUNT\"]);\n\t\t}\n\t\telse{\n\t\t\t//throw new jsException(\"\",ResponseHandlerConfig::$DB_NO_RECORD_ERROR);\t\n\t\t\tValidationHandler::getValidationHandler(\"\",ResponseHandlerConfig::$DB_NO_RECORD_ERROR[\"message\"]);\n\t\t}\n\t}", "title": "" }, { "docid": "5cc1868adf021c83a0d4fb06e8b5c9c1", "score": "0.56762785", "text": "public function __construct(){\n\t\t$this->client = new Client([\n\t\t\t'base_uri' => 'https://testapi.internet.bs'\n\t\t]);\n\t}", "title": "" }, { "docid": "a400856fc6e9eee9addc82e9de4b43af", "score": "0.5675255", "text": "public function setApiKey($key)\n\t{\n\t\t$this->apiKey = $key;\n\t}", "title": "" }, { "docid": "dd0c7edff59714f936cc6b154c73b2af", "score": "0.56558394", "text": "public function setRequest()\n {\n $this->request = new JsonServer_Request();\n }", "title": "" }, { "docid": "dac6e4d3f3e863f6a897e9495d8e250d", "score": "0.5648365", "text": "public function api( $auth_string = '' ) {\n\t\t$client = new Client( $auth_string );\n\t\t$this->request = new Request( $client );\n\t}", "title": "" }, { "docid": "3006221c87a41a69178acbc8e873a780", "score": "0.56404114", "text": "final public function setApi($keys)\n {\n $keys = (array) $keys;\n\n $this->apiKey = $keys[array_rand($keys, 1)];\n }", "title": "" }, { "docid": "bbf22a6ebfa83aedbeea9f4ed3db6a16", "score": "0.5633883", "text": "public function __construct($apiKey='', $apiUri='')\n { \n $this->service = new ExpertSender\\Service($apiKey, $apiUri); \n }", "title": "" }, { "docid": "c4aa8c05064e47630963c666c2e0f498", "score": "0.5631928", "text": "protected function set_client() {\n\n\t\tif ( false === $this->_inno_client ) {\n\n\t\t\t$config = new Config(\n\t\t\t\t$this->settings['secure_client_id'],\n\t\t\t\t$this->settings['secure_api_key_id'],\n\t\t\t\t$this->settings['secure_api_secret'],\n\t\t\t\t$this->settings['secure_api_public_key'],\n\t\t\t\t$this->settings['secure_api_private_key'],\n\t\t\t\t$this->_api_url\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Pass the configuration to the default connection handler, which\n\t\t\t * uses Guzzle for requests. If you need a different library for\n\t\t\t * requests, subclass `\\Tozny\\E3DB\\Connection` and pass an instance\n\t\t\t * of your custom implementation to the client instead.\n\t\t\t */\n\t\t\t$connection = new GuzzleConnection( $config );\n\n\t\t\t/**\n\t\t\t * Pass both the configuration and connection handler when building\n\t\t\t * a new client instance.\n\t\t\t */\n\t\t\t$this->_inno_client = new Client( $config, $connection );\n\n\t\t}\n\n\t\treturn $this->_inno_client;\n\n\t}", "title": "" }, { "docid": "eca3c28d8a2baccc342c91ea36b6901a", "score": "0.56276786", "text": "private function setApiKey($key) {\n $this->api_key = $key;\n }", "title": "" }, { "docid": "247cb402b8b50c29fa7ebf7ec9dbffec", "score": "0.56155527", "text": "public function __construct(OpensrsApi $api)\n {\n $this->api = $api;\n }", "title": "" }, { "docid": "247cb402b8b50c29fa7ebf7ec9dbffec", "score": "0.56155527", "text": "public function __construct(OpensrsApi $api)\n {\n $this->api = $api;\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "0589c2e94a3ca5851d74feeafc70cbd8", "score": "0.0", "text": "public function create($id)\n {\n $users = User::findorfail($id);\n $coursetab = Coursetab::where('admin_id', $id)->get();\n // dd($coursetab);\n return view('auth.tempCoursesData.create', compact('users'))->with('coursetab',$coursetab);\n }", "title": "" } ]
[ { "docid": "f8bba5517a2cb6f46311a24713a6bef2", "score": "0.8125342", "text": "public function create()\n {\n return view('admin.resource.new');\n }", "title": "" }, { "docid": "20ef26ca996d9360798f2ecc07198092", "score": "0.7804094", "text": "public function create()\n\t{\n\t\treturn View::make('backoffice.resource.create');\n\t}", "title": "" }, { "docid": "681d20882e97df51906ce75b97ef1784", "score": "0.7775189", "text": "public function create()\n {\n return view('actions.resource.create');\n }", "title": "" }, { "docid": "0efde82a25b6100f0c21eb97e2121fd0", "score": "0.77337104", "text": "public function create()\n {\n $this->page_title = trans('resource_type.new');\n\n return view('resource_type.new', $this->vdata);\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "260e3a6550329e832d8155a1a557745f", "score": "0.771192", "text": "public function create()\n {\n /*show create form maybe not nessesary*/\n }", "title": "" }, { "docid": "0a28fa28b4fcdf44c0bd490fe751d763", "score": "0.7673694", "text": "public function create()\n\t{\n\t\t$this->layout->subtitle = _('Add');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getFillableLabels());\n\t}", "title": "" }, { "docid": "4410c37acc7f709e86ccc730cb542643", "score": "0.75863165", "text": "public function create()\n {\n return view('admin.resources.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "60b8c2dc2f8ff4dabd04bc7f6dca0779", "score": "0.75383", "text": "public function newAction()\n {\n $entity = new Resource();\n $form = $this->createCreateForm($entity);\n\n return $this->render('BWBlogBundle:Resource:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "5d140c321df7acb8c739eadcc5bc3d54", "score": "0.746548", "text": "public function create()\n {\n return view('laramanager::resources.create');\n }", "title": "" }, { "docid": "ad59d20f2872a6e73a13ec203ef2f8bc", "score": "0.72848165", "text": "public function create()\n {\n //display form\n return view(\n 'ps.create');\n }", "title": "" }, { "docid": "b232948171ce8236d12a5ecd5627119c", "score": "0.7282519", "text": "public function create()\n {\n return view(\"pages.req.form\");\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "3347c41a19ab6c1a35b881f99ddefe9e", "score": "0.72624177", "text": "public function createAction()\n {\n $this->view->flds = '[{\"cssClass\":\"input_text\",\"required\":\"undefined\",\"values\":\"First Name\"},{\"cssClass\":\"textarea\",\"required\":\"undefined\",\"values\":\"Bio\"},{\"cssClass\":\"checkbox\",\"required\":\"undefined\",\"title\":\"Whats on your pizza?\",\"values\":{\"2\":{\"value\":\"Extra Cheese\",\"baseline\":\"undefined\"},\"3\":{\"value\":\"Beef\",\"baseline\":\"undefined\"}}}]';\n $this->view->form = new NpfWebformsForm(null);\n }", "title": "" }, { "docid": "a5d2c0c3777cd260cd88c88f37ec70a6", "score": "0.72577995", "text": "public function create_form()\n {\n return View::make(\"app.create\");\n }", "title": "" }, { "docid": "6a94e5e8f7512f93eda3c0b1ea5d5607", "score": "0.7257189", "text": "function showCreateForm(){\n return view('admin.Ebuletin.create');\n }", "title": "" }, { "docid": "64b0e85604fc330e4cbfc6f09f397b27", "score": "0.72493047", "text": "public function showCreateForm ()\n {\n $myNewspaper = App::user()->getNewspaper();\n\n if (!empty($myNewspaper)) {\n App::redirect(\"/newspaper/\" . $myNewspaper->id);\n }\n\n return $this->render('news/createNewspaper.html.twig', [\n \"creationCost\" => NewspaperModel::CREATION_COST\n ]);\n }", "title": "" }, { "docid": "d3ebdfcf36f62f0f42113a8b11f4895a", "score": "0.7240409", "text": "public function create()\n {\n return view('resources.create_resources');\n }", "title": "" }, { "docid": "b1c3c9219f8100b85c24750c6f92cd4a", "score": "0.72274303", "text": "public function create()\n {\n return view('crud.form');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "5c37508d09b68f9ab4123a0772960c76", "score": "0.7212462", "text": "public function create()\n {\n return view('admin.catalog.form');\n }", "title": "" }, { "docid": "3fb888dea195139fc63f84a6e5b7db63", "score": "0.7199865", "text": "public function create()\n {\n return View::make($this->resourceView.'.create');\n }", "title": "" }, { "docid": "65a80f896bface8ccfc0be19571775ba", "score": "0.71928936", "text": "public function create()\n {\n //\n return \"Provide a form to add a car\";\n }", "title": "" }, { "docid": "1d0710555ccb7cd822584d16dcfe0336", "score": "0.7182808", "text": "public function showCreateForm()\n\t{\n\t\treturn view('admin.post.add');\n\t}", "title": "" }, { "docid": "c24e65c8a92dd430f73967cd2fb00ec9", "score": "0.7179227", "text": "public function create()\n {\n $this->resetValidation();\n $this->reset(['fields', 'is_editing']);\n\n $this->showForm();\n }", "title": "" }, { "docid": "9afc6acf07243beac05422dfa57f968f", "score": "0.7173864", "text": "public function showCreateForm()\n {\n return view(\"admin.user.create\");\n }", "title": "" }, { "docid": "3bafea32fa451a3439e6d308764b7e96", "score": "0.71605355", "text": "public function create()\n\t{\n\t\treturn view(\"barang.form\");\n\n\t}", "title": "" }, { "docid": "cfe9ceeda6c7d1649d3f15d33b16a627", "score": "0.7154192", "text": "public function newAction()\n\t{\n\t\techo $this->getForm();\n\t}", "title": "" }, { "docid": "540a53a248ba67bdca77e9032bbb635f", "score": "0.7150356", "text": "public function create()\n {\n return view('client.form');\n }", "title": "" }, { "docid": "8d4cc40a42b81724eb4460472353bc0a", "score": "0.714293", "text": "public function create()\n\t{\n // load the create form\n return View::make('residents.create');\n\t}", "title": "" }, { "docid": "a8d9b3e6c0f69a9c90642861d5e343c1", "score": "0.7141869", "text": "public function create()\n {\n return view('submit.create');\n }", "title": "" }, { "docid": "3b15559bc4c862a29339bfd433c32526", "score": "0.71411765", "text": "public function create()\n {\n return view('students.addStudentForm');\n }", "title": "" }, { "docid": "3f6a1acba05e915724250680142e88c7", "score": "0.71384877", "text": "public function create()\n {\n return view('formcreate');\n }", "title": "" }, { "docid": "8c1752e2ab024985c584b2f42d891525", "score": "0.7138087", "text": "public function create()\n {\n return view(\"piutang.form\");\n }", "title": "" }, { "docid": "d77bcfd7ac022954dfbdbaec633e0b32", "score": "0.7131701", "text": "public function create()\n {\n $resources = Resource::all();\n $categories = ResourceCategory::all();\n\n $data = [\n 'resources' => $resources,\n 'categories' => $categories,\n ];\n\n return view('resources.create-resource')->with($data);\n }", "title": "" }, { "docid": "aa71810ebd2853f92e8db655776237e2", "score": "0.712946", "text": "public function create()\n {\n return view ('siswa.form');\n }", "title": "" }, { "docid": "311b4437f4b6d54e594b3899d29f4f11", "score": "0.7121037", "text": "public function create()\n {\n return view('admin.student.addnew');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "751653051dae87138c242368dc3786de", "score": "0.71069485", "text": "public function create()\n {\n $title = \"Registrar negocio\";\n $model = new Business();\n\n return view($this-> prefixView.'form',compact('title','model'));\n }", "title": "" }, { "docid": "21b741286121defb618cafb010ad9311", "score": "0.7101174", "text": "public function create()\n {\n return view('admin.crud.edit-new');\n }", "title": "" }, { "docid": "8b6604f525238bef52951de0b16d7f1f", "score": "0.7096012", "text": "public function create()\n {\n return view('formbuilder::form.create');\n }", "title": "" }, { "docid": "990414ce4876a4b2a4f29dd9d7d3abf5", "score": "0.709237", "text": "public function create()\n\t{\n\t\treturn view('admin.question.form');\n\t}", "title": "" }, { "docid": "16732db43c5e7a7dd04a193ce5b2ae23", "score": "0.70919156", "text": "public function create()\n {\n return view('resep.form');\n }", "title": "" }, { "docid": "33b0a71ac72fac345ac76b2a9dbd3cb8", "score": "0.70887756", "text": "public function newAction()\n {\n $entity = $this->get('fibe_security.acl_entity_helper')->getEntityACL('CREATE', 'Person');\n $form = $this->createForm(new PersonType($this->getUser()), $entity);\n\n return $this->render(\n 'fibeCommunityBundle:Person:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "title": "" }, { "docid": "67cdf2645142d9b0d8b752e0719f92db", "score": "0.70883906", "text": "public function create()\n\t{\n\t\t//\n return view('ThemeNight.Admin.form');\n\t}", "title": "" }, { "docid": "c080ca2e31508a9332469f2e1bfc7d19", "score": "0.7087787", "text": "public function create()\n\t{\n\t\treturn view('atributos.create');\n\t}", "title": "" }, { "docid": "76bfcc35dc8ea95b43ab193fce26154f", "score": "0.7084712", "text": "public function create()\n {\n return view('supplier.form', [\n 'edit' => false\n ]);\n }", "title": "" }, { "docid": "bf72fb3fe8d0bc917f56d924e8ccf3ba", "score": "0.70816255", "text": "public function create()\n {\n //\n return view('create_form');\n }", "title": "" }, { "docid": "367e31aa42d6f06e1f2fb2e09709f1e0", "score": "0.7070958", "text": "public function create()\n {\n return view('admin.project.create_form');\n }", "title": "" }, { "docid": "43e34c710975c60c5305ac25fb3d7504", "score": "0.7067303", "text": "public function newAction()\r\n {\r\n $entity = new $this->model();\r\n $form = $this->createCreateForm($entity)->createView();\r\n\r\n $result = array(\r\n 'action' => $this->generateUrl($this->route['create']),\r\n 'fields' => $this->get('pizone_form')->formDataToArray($form)\r\n );\r\n\r\n $view = new View($result);\r\n return $this->handleView($view);\r\n }", "title": "" }, { "docid": "6145954c4b35a97e4abac9949da2a7dc", "score": "0.70663726", "text": "public function create()\n {\n $data = [];\n return view('resources.create', $data);\n }", "title": "" }, { "docid": "3b0f73abe7973dfd183dc9c20405c6b4", "score": "0.7066244", "text": "public function create()\n {\n return view('tool::create.create');\n }", "title": "" }, { "docid": "557c84d597fc8e00e9314d677e08dfe5", "score": "0.7061945", "text": "public function newAction()\n {\n $entity = new Receta();\n $form = $this->createForm(new RecetaType(), $entity);\n\n return $this->render('TodoCerdoTodoCerdoBundle:Receta:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "8c4b58d9c7ebe29aed261de1fc923c07", "score": "0.7061731", "text": "public function create()\n {\n return view('controllers.resource-controllers.create');\n }", "title": "" }, { "docid": "4b128041dfdda282b6af96d3ef403c25", "score": "0.70599586", "text": "public function create()\n {\n return view('harvests.form');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "08e0ba475352b37fabdca852bcbdb90e", "score": "0.7054689", "text": "public function create()\n {\n return view('mesas.forms.create');\n }", "title": "" }, { "docid": "2623500cf3f41f19394467ad3cc9656b", "score": "0.7049269", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/Regions/create');\n\n\t}", "title": "" }, { "docid": "d348d95689ce20ca0e7da9c16fd55e2d", "score": "0.70483965", "text": "public function create()\n {\n return view('pengeluaran.form');\n }", "title": "" }, { "docid": "d8233d687b36de8ea5e1f179a497dba1", "score": "0.7037681", "text": "public function newAction()\n {\n $entity = new Persona();\n $form = $this->createForm(new PersonaType(), $entity);\n\n return $this->render('LyricaEirinBundle:Persona:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "cfc08ab3b0be81fb6acf7f6316f4b875", "score": "0.7036466", "text": "public function create()\n {\n return view('backend.thadin.create');\n }", "title": "" }, { "docid": "5aa70413db221403054caef7bedac770", "score": "0.7030609", "text": "public function newAction()\n\t{\n\t\t$this->page\n\t\t\t->set('section_title','New '.$this->page_title)\n\t\t\t->set('action',$this->controller_path.'new')\n\t\t\t->set('record',(object) array('activated'=>1,'id'=>-1))\n\t\t\t->set('group_options',$this->_get_groups())\n\t\t\t->set('password_format_copy',$this->user_model->password_format_copy())\n\t\t\t->build($this->controller_path.'form');\n\t}", "title": "" }, { "docid": "a9a5b6b3c656a709a1bbbab40d24c43f", "score": "0.70302194", "text": "public function create()\n {\n $is_edit = false;\n $product = new Product();\n\n return view('products.form', compact('product', 'is_edit'));\n }", "title": "" }, { "docid": "cfaeeb3c8bd4c70a19c542419f5ad0ee", "score": "0.70269614", "text": "public function create()\n {\n //显示创建资源表单页\n return view('admin/users/create',['title'=>'用户添加']);\n }", "title": "" }, { "docid": "0b984040060f01951eb2375bb849110c", "score": "0.7026164", "text": "public function create()\n\t{\n\t\treturn view('forms.project');\t\n\t}", "title": "" }, { "docid": "0c1db80c69466b1bbd9b8df7bea85585", "score": "0.70254475", "text": "public function newAction()\n {\n $recipe = $this->getRecipeManager()->createRecipe();\n $form = $this->createForm(new RecipeType(), $recipe, array(\n 'action' => $this->generateUrl('backend_recipe_create')\n ));\n\n return $this->render('AppBundle:Backend\\Recipe:new.html.twig', array(\n 'entity' => $recipe,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "9926d30e5b0046e49a6decdaa42f3859", "score": "0.70248765", "text": "public function create()\n {\n return view('platform.people.form');\n }", "title": "" }, { "docid": "33af005bef3111b2a76f2f441180b514", "score": "0.702485", "text": "public function create()\n {\n return view('concepto.create');\n }", "title": "" }, { "docid": "c959c491c6e5b588c802c9967ef706a4", "score": "0.70230263", "text": "public function create()\n {\n //\n // echo 'Here we will show the form and then submit the details in the database';\n }", "title": "" }, { "docid": "abbbd09a7646783cf210f98d7c703c30", "score": "0.70194376", "text": "public function create()\n {\n return view('menu::form');\n }", "title": "" }, { "docid": "6316a85e6cf9ca8aa64b9f706098ae25", "score": "0.7017854", "text": "public function create()\n {\n return view('partner.form');\n }", "title": "" }, { "docid": "d001d3a1995094ca265df985f6398e01", "score": "0.70149684", "text": "public function newAction()\n {\n $entity = new Client();\n $form = $this->createForm(new ClientType(), $entity);\n\n return $this->render('BackendAdminBundle:Client:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "5c8d80287891d65eee128c6ca7878e1c", "score": "0.7013804", "text": "public function create()\n\t{\n\t\t$data = array('type' => 'stone');\n\t\t$this->layout->content = \\View::make('forms.new-stone', $data);\n\t\n\t}", "title": "" }, { "docid": "6f9af144eba20ea97bd9c8a741627e1b", "score": "0.7012243", "text": "public function create()\n {\n return view('crud::crud.add');\n }", "title": "" }, { "docid": "a36d8135bd4414e4abd4868fb56a7177", "score": "0.6996758", "text": "public function create()\n {\n return view('layouts.submitproperty');\n }", "title": "" }, { "docid": "ddb99a4f31eb90825bf6b5da7fa52ca3", "score": "0.6994577", "text": "public function create()\n {\n return view('master.form.athlete-form');\n }", "title": "" }, { "docid": "b1c0d0b9bd1b6ed833c3d3d624e5b031", "score": "0.69930637", "text": "public function create()\n {\n $title = \"Registrar producto\";\n $model = new Product();\n return view($this-> prefixView.'form',compact('title','model'));\n }", "title": "" }, { "docid": "db5850464a16ce05c16a0c42606ccb2c", "score": "0.699252", "text": "public function create()\n {\n $data['typeForm'] = \"create\";\n $data['title'] = \"Property Marketplace\";\n return view(\"admin/marketplace/form\",compact('data'));\n }", "title": "" }, { "docid": "1d37883b0775931ddf17c75e4bbd9d90", "score": "0.6989433", "text": "public function create()\n\t{\n\t\treturn View::make('famoso.create');\n\t}", "title": "" }, { "docid": "9829c4939f7030aeb42447c704de1f3e", "score": "0.69889855", "text": "public function create()\n\t{\n\t\t$this->form->setModel($this->repo->getNew());\n\n\t\treturn View::make('thing.form', ['form' => $this->form]);\n\t}", "title": "" }, { "docid": "8a982b58b2eae6f233b1dcd18de452a0", "score": "0.6987187", "text": "public function create()\n\t{\n\t\treturn view('areadetails.form');\n\t}", "title": "" }, { "docid": "5dcc6a089e3a6d063fa3cab475e28855", "score": "0.6986054", "text": "public function create()\n {\n return view(\"Backend.Pages.add-new\");\n }", "title": "" }, { "docid": "1e96f853503e9af917b9a2a64cde033f", "score": "0.6985649", "text": "public function create()\n {\n return view(\"major.create\");\n }", "title": "" }, { "docid": "610f56b2c95018c60ad6a8374c2d250e", "score": "0.69853884", "text": "public function create()\n {\n return view ('tahun.form');\n }", "title": "" }, { "docid": "eeee917bcfaf007d8d07ea2e40388b06", "score": "0.69850516", "text": "public function create()\n {\n return view('clients.form')->with([\n 'action' => 'create'\n ]);\n }", "title": "" }, { "docid": "1d1ce9ff2645b7b3f0753d499204d44f", "score": "0.6980153", "text": "public function create()\n {\n //\n\n return view::make('form.create');\n }", "title": "" }, { "docid": "d0bdcbece4be35278c63f8feea57b955", "score": "0.6978014", "text": "public function new_form(){\n $this->vars['breadcrumbs'][] = array('label' => __('Create New Customer', 'latepoint'), 'link' => false );\n\n $this->vars['customer'] = new OsCustomerModel();\n $this->vars['wp_users_for_select'] = OsWpUserHelper::get_wp_users_for_select();\n\n\n $this->format_render(__FUNCTION__);\n }", "title": "" }, { "docid": "fa1baaa9f5aebb07e6bb696f0001364c", "score": "0.6976698", "text": "public function create()\n\t\t{\n\t\t\treturn view('coa.create');\n\t\t}", "title": "" }, { "docid": "54ece91bb98da047753baa658573a9de", "score": "0.697606", "text": "public function create()\n {\n //\n return view('admin.actuForm');\n }", "title": "" }, { "docid": "df3bf96fa2e72c254a6b2d268a5f6402", "score": "0.69758654", "text": "public function create()\r\n {\r\n return view('backend/category_management/create_form');\r\n }", "title": "" }, { "docid": "c754c692adc63ca29e993ebbf09ee995", "score": "0.6974421", "text": "public function create()\n {\n return view('product::admin.form');\n }", "title": "" }, { "docid": "74a010aa8faacd0448738b50f14d4758", "score": "0.6965735", "text": "public function create()\n {\n $title = self::TITLE;\n $route = self::ROUTE;\n $action = \"Add\";\n return view(self::FOLDER . '.create', compact('title', 'route', 'action'));\n }", "title": "" }, { "docid": "de91e46735fd97173b2f990f6ecc7d8c", "score": "0.6962055", "text": "public function showCreateFormAction() {\n $this->theme->setTitle(\"Add user\");\n $this->di->session();\n $form = new \\Anax\\Users\\CFormAddUser();\n $form->setDI($this->di);\n $form->check();\n \n // view of the comment form\n $this->di->views->add('comment/form', [\n 'title' => \"Add a new user\",\n 'content' => \"<h1>Add a new user</h1>\" . $form->getHTML()\n ]);\n }", "title": "" }, { "docid": "e2ad160b52213ea876d7e50dbf6fd2cd", "score": "0.6959711", "text": "public function create()\n {\n return view('wisata.form');\n }", "title": "" }, { "docid": "93847c98ccd0e3b2c387d82adc10a23e", "score": "0.69590706", "text": "public function create()\n\t{\n\t\treturn View::make('compromissos.create');\n\t}", "title": "" } ]
8bea50579a4069179335281d0d687fb8
check slug is uniquee or not.
[ { "docid": "b0bb514135fc12d163c2f2a0ac13cf41", "score": "0.6650151", "text": "function slug_exist($text,$tablename,$fieldname)\r\n{\r\n $CI =& get_instance();\r\n $checkSlug = $CI->db->get_where($tablename,array($fieldname=>$text))->num_rows(); \r\n if($checkSlug > 0)\r\n {\r\n return true;\r\n }\r\n}", "title": "" } ]
[ { "docid": "417e65a8cf4781c3d0e68fc6817dbb0b", "score": "0.79364383", "text": "public function hasSlug(): bool;", "title": "" }, { "docid": "46dbf2577e536e4e17c603038cf84011", "score": "0.7933901", "text": "public function _unique_slug ($str)\n\t{\n\t\t// UNLESS it's the slug for the current menu\n\t\t$id = $this->uri->segment(4);\n\t\t$this->db->where('slug', $this->input->post('slug'));\n\t\t! $id || $this->db->where('id_menu !=', $id);\n\t\t$menu = $this->menu_m->get();\n\t\t\n\t\tif (count($menu)) {\n\t\t\t$this->form_validation->set_message('_unique_slug', '%s should be unique');\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "cec15a06da514a58cb14888c580dff1a", "score": "0.77391934", "text": "public function _unique_slug($str)\n {\n // UNLESS it's the slug for the current categories\n \n $id = $this->uri->segment(4);\n $this->db->where('slug', $this->input->post('slug'));\n !$id || $this->db->where('id !=', $id);\n \n $categories = $this->membership_model->get();\n \n if(count($categories))\n {\n $this->form_validation->set_message('_unique_slug', '%s should be unique');\n return FALSE;\n }\n \n return TRUE;\n }", "title": "" }, { "docid": "8fe1b3f9aea63d45dd4b43685babef3a", "score": "0.76407665", "text": "public function _unique_slug($str)\n {\n // UNLESS it's the slug for the current categories\n \n $id = $this->uri->segment(4);\n $this->db->where('slug', $this->input->post('code'));\n !$id || $this->db->where('id !=', $id); \n $categories = $this->comman_model->get('products',false); \n\t//\techo $this->db->last_query();die;\n if(count($categories))\n {\n $this->form_validation->set_message('_unique_slug', '%s should be unique');\n return FALSE;\n }\n \n return TRUE;\n }", "title": "" }, { "docid": "0e893a62a92b72a494d47a96f36ae9cc", "score": "0.7618725", "text": "private function ValidSlug($slug = '')\n\t{\t$rawslug = $slug = $this->TextToSlug($slug);\n\t\twhile ($this->SlugExists($slug))\n\t\t{\t$slug = $rawslug . ++$count;\n\t\t}\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "3b10fa543d052bc897b971c4cc019c0b", "score": "0.7572202", "text": "public function _check_slug($slug = '')\n\t{\n\t\tif ( ! $this->galleries_m->check_slug($slug, $this->id))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t$this->form_validation->set_message('_check_slug', sprintf(lang('galleries.already_exist_error'), $slug));\n\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "88eb11152498ec7625d47d919ca95e7c", "score": "0.75339603", "text": "public function checkUniqueSlug($text) {\n $sql = \"SELECT COUNT(\" . $this->owner->getMetaData()->tableSchema->primaryKey . \") FROM \" . $this->owner->tableName() . \" WHERE \" . $this->slugAttribute . \" = :slug\";\n $cmd = yii::app()->db->createCommand($sql);\n $cmd->bindValue(\":slug\", $text);\n $result = $cmd->queryScalar();\n if ($result > 0) {\n $sql = \"SELECT COUNT(\" . $this->owner->getMetaData()->tableSchema->primaryKey . \") FROM \" . $this->owner->tableName() . \" WHERE \" . $this->slugAttribute . \" LIKE :slug\";\n $cmd = yii::app()->db->createCommand($sql);\n $cmd->bindValue(\":slug\", $text . $this->spaceReplacement . \"%\");\n $result = $cmd->queryScalar() + 2;\n $text .= $this->spaceReplacement . $result;\n }\n return $text;\n }", "title": "" }, { "docid": "3085bca4092910ffed434f51af1a7ced", "score": "0.74879515", "text": "public function hasCustomSlug(): bool;", "title": "" }, { "docid": "2afe7e4688191803217d59be63b17b37", "score": "0.7453009", "text": "public function post_check_slug()\n {\n $slug = Input::get('title');\n if(!isset($slug) or empty($slug))\n {\n return '';\n }\n $slug_check = Groups\\Model\\Group::where('slug', '=', $slug)->get(array('slug'));\n if( isset($slug_check) and ! empty($slug_check))\n {\n return 'slug::error::'.Str::slug($slug);\n }\n else\n {\n return Str::slug($slug);\n }\n }", "title": "" }, { "docid": "a613f3d90bbab29210d9df2d03676929", "score": "0.7398925", "text": "protected function _check_slug($slug) \n\t{\n\t\t$slug = strtolower($slug);\n\t\t$slug = preg_replace('/\\s+/', '-', $slug);\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "91c05258b483fec2040608f79d01122b", "score": "0.7293928", "text": "public function _check_slug($slug)\n\t{\n\t\t$slug = strtolower($slug);\n\t\t$slug = preg_replace('/\\s+/', '-', $slug);\n\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "cba112ec39ecb2bd086f3ea0c120baa0", "score": "0.71613544", "text": "public function _check_slug($slug)\n {\n $slug = strtolower($slug);\n $slug = preg_replace('/\\s+/', '-', $slug);\n\n return $slug;\n }", "title": "" }, { "docid": "ec9ec13a2bfcbaf00a6ddf2325bfc40d", "score": "0.70588803", "text": "public function unique_field_slug($field_slug, $mode)\n\t{\n\t\t$this->CI->db->select('id');\n\t\t$this->CI->db->where('field_slug', trim($field_slug));\n\t\t$db_obj = $this->CI->db->get(FIELDS_TABLE);\n\t\t\n\t\tif($mode == 'new'):\n\t\t\n\t\t\tif($db_obj->num_rows() > 0):\n\t\t\t\n\t\t\t\t$this->set_message('unique_field_slug', lang('streams.field_slug_not_unique'));\n\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\tendif;\n\t\t\n\t\telse:\n\t\t\n\t\t\t// Mode should be the existing slug\n\t\t\tif($field_slug != $mode):\n\t\t\n\t\t\t\t// We're changing the slug?\n\t\t\t\t// Better make sure it doesn't exist.\n\t\t\t\tif( $db_obj->num_rows() != 0 ):\n\t\t\t\t\n\t\t\t\t\t$this->set_message('unique_field_slug', lang('streams.field_slug_not_unique'));\n\t\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\t\tendif;\n\t\t\t\n\t\t\tendif;\n\t\t\n\t\tendif;\n\n\t\treturn TRUE;\t\t\n\t}", "title": "" }, { "docid": "4ceed4c16fde9068386b07a209a82c9d", "score": "0.7053009", "text": "private function checktermsslug($slug)\r\n\t{\r\n\t\t$checkterm = get_term_by('slug', $slug);\r\n\t\tif (!empty($checkterm)) {\r\n\t\t\tfor ($i = 1; $i < 1000; $i++) {\r\n\t\t\t\t$slug .= '-' . $i;\r\n\t\t\t\t$checkterm2 = get_term_by('slug', $slug);\r\n\t\t\t\tif (!empty($checkterm2)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\treturn $slug;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn $slug;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eea9d132122805d375c713f0d7ca7763", "score": "0.695231", "text": "public function checkSlug($value)\n {\n return $this->slug === $this->slugify($value);\n }", "title": "" }, { "docid": "024516a7aabff3efac62e8282586c18e", "score": "0.6948164", "text": "public static function isSlug($input)\n {\n return static::isNotEmptyString($input) && !preg_match('/[^a-z0-9\\\\-]/', $input);\n }", "title": "" }, { "docid": "22440ecc69d08002acd48388209845de", "score": "0.694447", "text": "function generateUniqueSlug($title)\n\t{\n\t\t$temp = clean_url($title, '-');\n\t\tif (!App\\Models\\Page::all()->where('slug', $temp)->isEmpty()) {\n\t\t\t$i = 1;\n\t\t\t$newslug = $temp . '-' . $i;\n\t\t\twhile (!App\\Models\\Page::all()->where('slug', $newslug)->isEmpty()) {\n\t\t\t\t$i++;\n\t\t\t\t$newslug = $temp . '-' . $i;\n\t\t\t}\n\t\t\t$temp = $newslug;\n\t\t}\n\t\treturn $temp;\n\t}", "title": "" }, { "docid": "2f526bd0d9ea877f57c98d30c8154157", "score": "0.6817062", "text": "public function slugChecker($slug,$siteID,$videoAlbumID = null)\n\t{\n\t\tdb::from(\"video_album\");\n\t\tdb::where(\"videoAlbumOriginalSlug\",$slug);\n\n\t\tif($videoAlbumID)\n\t\t{\n\t\t\tdb::where(\"videoAlbumID != ?\",Array($videoAlbumID));\n\t\t}\n\n\t\tdb::where(\"siteID\",$siteID);\n\t\t\n\t\tif($result=db::get()->result())\n\t\t{\n\t\t\t$slug = $slug.'-'.(count($result)+1);\n\t\t}\n\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "a723f3445c1078df09ca27b16f63b79a", "score": "0.67894113", "text": "public function testSlug1()\n {\n $this->assertEquals(str_slug('foo'), 'foo');\n }", "title": "" }, { "docid": "2fff7e042b7d4be491557ba621b321c1", "score": "0.6637788", "text": "public function stream_unique($stream_slug, $mode)\n\t{\n\t\t$this->CI->db->select('id')->where('stream_slug', trim($stream_slug));\n\t\t$db_obj = $this->CI->db->get(STREAMS_TABLE);\n\t\t\n\t\tif($mode == 'new'):\n\t\t\n\t\t\tif($db_obj->num_rows() > 0):\n\t\t\t\n\t\t\t\t$this->set_message('stream_unique', lang('streams.stream_slug_not_unique'));\n\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\tendif;\n\t\t\n\t\telse:\n\t\t\n\t\t\t// Mode should be the existing slug\n\t\t\t// We check the two to see if the slug is changing.\n\t\t\t// If it is changing we of course need to make sure\n\t\t\t// it is unique.\n\t\t\tif($stream_slug != $mode):\n\t\t\n\t\t\t\tif($db_obj->num_rows() != 0):\n\t\t\t\t\n\t\t\t\t\t$this->set_message('stream_unique', lang('streams.stream_slug_not_unique'));\n\t\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\t\tendif;\n\t\t\t\n\t\t\tendif;\n\t\t\n\t\tendif;\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "0408e0f1b6866715ee7c752825ae7bcc", "score": "0.66350913", "text": "private function _record_needs_slug(&$model)\n {\n if (!isset($model->id)) {\n\n // new record, needs a slug in all cases\n return true;\n\n } else {\n\n // existing record; check to see if slug already present before generating one\n $existing_data = $model->findById($model->id);\n $existing_slug = $existing_data[$model->alias][$this->settings[$model->alias]['slug_field']];\n\n return (null === $existing_slug || '' === $existing_slug);\n\n }\n }", "title": "" }, { "docid": "689e19e80e80df3b2dc002b401760457", "score": "0.6622539", "text": "public function check_slug($slug = '', $id = 0)\n\t{\n\t\treturn parent::count_by(array(\n\t\t\t'id !='\t=> $id,\n\t\t\t'slug'\t=> $slug)\n\t\t) > 0;\n\t}", "title": "" }, { "docid": "6deee935f923498df781bf8efec63dd9", "score": "0.6606114", "text": "private function _generate_unique_slug($tag){\n\t\t\n\t\t//\"Slugify\" the character's name\n\t\t$tag = $this->string_manip->slugify($tag);\n\t\t\n\t\t//Get a count of rows that match this title\n\t\t$number = $this->db->where('slug',$tag)->count_all_results('tags');\n\t\t\n\t\t//DEBUG\n\t\t//echo $number;die;\n\t\t\n\t\t//If number is greater than 0, check for others and find what upper number to add\n\t\tif($number > 0){\n\t\t\t\n\t\t\t//Set flag and counter\n\t\t\t$flag \t= FALSE;\n\t\t\t$cnt \t= 1;\n\t\t\t\n\t\t\t//Loop\n\t\t\twhile($flag == FALSE){\n\t\t\t\t\n\t\t\t\t//Check for slug with number\n\t\t\t\t$number = $this->db->where('slug',$tag.\"-\".$cnt)->count_all_results('tags');\n\t\t\t\t\n\t\t\t\t//If the amount matched is 0, that's the number to use!\n\t\t\t\tif($number == 0){\n\t\t\t\t\t\n\t\t\t\t\t//Set flag and title\n\t\t\t\t\t$flag \t= TRUE;\n\t\t\t\t\t$tag \t= $tag . \"-\" . $cnt;\n\t\t\t\t\n\t\t\t\t//Matches, so increment to check the next number...\n\t\t\t\t} else {\n\t\t\t\t\t$cnt++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Output the title\n\t\treturn $tag;\n\t\t\n\t}", "title": "" }, { "docid": "05e811fa36da51bc90b8797490c9b3c5", "score": "0.6576717", "text": "public function slugCheck($slug, $id){\n\n $this->setAttribute($this->getKeyName(), $id);\n\n// $config = \\App::make('config')->get('eloquent-sluggable::config');\n $config = \\Config::get('sluggable');\n $this->sluggable = array_merge( $config, $this->sluggable );\n if( $this->needsSlugging()) {\n $slug = $this->generateSlug($slug);\n $slug = $this->validateSlug($slug);\n $slug = $this->makeSlugUnique($slug);\n }\n return $slug;\n }", "title": "" }, { "docid": "c57a8945c0ce5168ce2adc0f01905b02", "score": "0.65741706", "text": "public function testSlug2()\n {\n $this->assertEquals(str_slug('foo bar'), 'foo-bar');\n }", "title": "" }, { "docid": "aee0c836bf231091737a4ef7331798a0", "score": "0.6566546", "text": "public function rule_slug($val) {\n\t\treturn (bool) preg_match('/^[\\pL\\pN\\-]++$/uD', $val);\n\t}", "title": "" }, { "docid": "abe6b3c1ae678adc5af157f4e87ca5f5", "score": "0.65503305", "text": "static function check_slug($slug) {\r\n $query = 'SELECT slug FROM Slug where slug = ?';\r\n $db = new DB();\r\n $params = array(array($slug));\r\n $result = $db->run($query, $params);\r\n $db->close();\r\n return $result;\r\n}", "title": "" }, { "docid": "de4767aea6eb2a04d4afac63592ab0c8", "score": "0.65441823", "text": "public function testSlug()\n {\n $title = 'Um teste de string';\n $titleResult = 'um-teste-de-string-9';\n $slug = factory(Slug::class, 10)->create(['title' => $title]);\n $this->assertEquals($titleResult, $slug->last()->title_slug);\n }", "title": "" }, { "docid": "c914c1c6c067c45d01d684703545a6ee", "score": "0.65301675", "text": "public function slug();", "title": "" }, { "docid": "c96f7fa2e8dfde271f29d13e00be6e3d", "score": "0.65292406", "text": "private function SlugExists($slug = '')\n\t{\t$sql = 'SELECT pid FROM posts WHERE pslug=\"' . $slug . '\"';\n\t\tif ($this->id)\n\t\t{\t$sql .= ' AND NOT pid=' . $this->id;\n\t\t}\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\tif ($row = $this->db->FetchArray($result))\n\t\t\t{\treturn $row['pid'];\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e84b77493c666179a4067af0140153a2", "score": "0.6525509", "text": "function is_unique_post($id, $title)\n{\n global $wpdb;\n $id = 'http://' . $id;\n $table = $wpdb->prefix . 'posts';\n $query = $wpdb->prepare('SELECT COUNT(*) FROM ' . $table . ' WHERE guid = \"%s\" OR post_title = \"%s\" LIMIT 1;', $id, $title);\n $results = $wpdb->get_var($query);\n if ($results > 0) {\n return false;\n } else {\n return true;\n }\n}", "title": "" }, { "docid": "a84f76e99c2eaf886c1398fbc2e13a1b", "score": "0.6457775", "text": "protected function updateSlug()\n {\n $slug = Str::slug($this->title);\n\n // if already taken\n if (static::find($this->composeShroomId($this->cluster, $slug)))\n {\n $index = 2;\n\n while (static::find($this->composeShroomId($this->cluster, $slug . \"-\" . $index)))\n {\n $index++;\n }\n\n $this->slug = $slug . \"-\" . $index;\n return;\n }\n\n $this->slug = $slug;\n }", "title": "" }, { "docid": "285bad7096520751e12dcbe4da8d0a99", "score": "0.64482206", "text": "public function test_if_slug_is_increment(): void\n {\n $this->makeEntry('products', 'php');\n\n $slug = Slug::generateSlug('products', 'php');\n\n $this->assertEquals('php-1', $slug);\n }", "title": "" }, { "docid": "a5cf4cde94af9400061adede23aad614", "score": "0.6425712", "text": "protected function unique_slug($slug, $table = FALSE, $base = FALSE){\n if($base === FALSE) $base = $slug;\n $i = (new DateTime)->getTimestamp();\n if($table === FALSE){\n do{\n $query = $this->db->get_where(self::TABLE_NAME, array('slug' => $slug));\n $prev_slug = $slug;\n $slug = $base . '-' . $i++;\n }while(count($query->row_array()) != 0);\n }else{\n $prev_slug = $slug;\n while(in_array($slug, $table)){\n $slug = $base . '-' . $i++;\n $prev_slug = $slug;\n }\n }\n return $prev_slug;\n }", "title": "" }, { "docid": "88e166e9bc5a8c435e6d8f7f8b3f4e7d", "score": "0.64165384", "text": "private function slug( $slug ) {\n\n\t\t$this->slug = $slug // if not empty\n\t\t\t?: $this->settings['option_key'] // if isset option_key\n\t\t\t?? (\n\t\t\t\tisset( $this->plugin_core )\n\t\t\t\t\t? (\n\t\t\t\t\t\tmethod_exists( PluginCore::class, 'token' )\n\t\t\t\t\t\t\t? $this->plugin_core->token() // PluginCore ~0.25\n\t\t\t\t\t\t\t: str_replace('-','_', strtolower( $this->plugin_core->slug() ) ) // PluginCore <= 0.24\n\t\t\t\t\t)\n\t\t\t\t\t: 'slug' . time() // unique slug\n\t\t\t\t);\n\n\t}", "title": "" }, { "docid": "39e61ccc142a910d4833d4943fa86cff", "score": "0.6403315", "text": "public function create_unique_slug($string, $table)\n {\n //Change the latin characters to plain characters\n $slug = str_replace($this->latin, $this->plain, $string);\n //Creates a human-friendly URL string with dashes\n $slug = url_title($slug);\n //Make the string lowercase\n $slug = strtolower($slug);\n //Set the initial counter to append at the end of the string (if duplicate)\n $i = 0;\n $params = array ();\n $params['slug'] = $slug;\n //Check if POST contains an 'id'. If it does, exclude the actual post in the check\n if ($this->CI->input->post('id')) {\n $params['id !='] = $this->CI->input->post('id');\n }\n\n while ($this->CI->db->where($params)->get($table)->num_rows()) {\n if (!preg_match ('/-{1}[0-9]+$/', $slug )) {\n $slug .= '-' . ++$i;\n } else {\n $slug = preg_replace ('/[0-9]+$/', ++$i, $slug );\n }\n $params ['slug'] = $slug;\n }\n return $slug;\n }", "title": "" }, { "docid": "c9721791acb17afa468de39e43132471", "score": "0.6402142", "text": "public function generateUniqueSlug($length)\n {\n $isUnique = false;\n while (!$isUnique) {\n $randomBytes = Security::randomBytes(512);\n $hexString = base_convert($randomBytes, 20, 36);\n $slug = substr($hexString, 0, $length);\n $count = $this->findBySlug($slug)->count();\n if ($count == 0)\n {\n $isUnique = true;\n }\n }\n return $slug;\n }", "title": "" }, { "docid": "a24a6e0d64b5ccc240391730dca4154a", "score": "0.63710636", "text": "public function uniqueSlug(): string\n {\n return \"{$this->id}-{$this->name}\";\n }", "title": "" }, { "docid": "ccb9f25dcee3026e6b7177542869ab34", "score": "0.63439924", "text": "public function test_smart_slug()\n {\n $stub = Stub::create(['name'=>123]);\n\n $stub->tag('标签名');\n $this->assertEquals('biao-qian-ming', $stub->tags()->first()->slug);\n $stub->untag();\n\n $stub->tag('表签名');\n $this->assertNotEquals('biao-qian-ming', $stub->tags()->first()->slug);\n }", "title": "" }, { "docid": "bc65c85a160bfa16c5b2be186835e97f", "score": "0.63191575", "text": "function makeSlug($slug, $title)\n{\n if (empty($slug)) {\n $slug = str_slug($title, '-');\n }\n return $slug;\n}", "title": "" }, { "docid": "95dcb296185117d93e991964ff392249", "score": "0.6316492", "text": "public function regenerateSlug(){\n if (!empty($this->getName()) && !empty($this->getUuid())){\n $slugify = new Slugify();\n $slug = $slugify->slugify($this->getName()) . \"-\" . $this->getUuid();\n $this->setSlug($slug);\n if (!empty($this->getNode())){\n $this->getNode()->setProperty('slug', $this->getSlug());\n }\n return $this->getSlug();\n }\n return false;\n }", "title": "" }, { "docid": "1875e683e53bcddce48baa25c8ee4943", "score": "0.63162035", "text": "protected function filterHasSlug()\n {\n if (isset($this->params['hasSlug'])) {\n\n $this->select->where('slug IS NOT NULL');\n\n }\n }", "title": "" }, { "docid": "036e09002700ee87cea18480e1ebe028", "score": "0.6302532", "text": "public function slug_safe($string)\n\t{\n\t\t// See if word is MySQL Reserved Word\n\t\tif( in_array(strtoupper($string), $this->CI->config->item('mysql_reserved')) ):\n\t\t\n\t\t\t$this->set_message('slug_safe', lang('streams.not_mysql_safe_word'));\n\t\t\treturn FALSE;\n\t\t\n\t\tendif;\n\t\t\n\t\t// See if there are no-no characters\n\t\tif( ! preg_match(\"/^([-a-z0-9_-])+$/i\", $string) ):\n\t\t\n\t\t\t$this->set_message('slug_safe', lang('streams.not_mysql_safe_characters'));\n\t\t\treturn FALSE;\n\t\t\t\n\t\tendif;\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "59d412c16f170e244ea34c046e35371d", "score": "0.6292035", "text": "function getUniqueSlug(\\Illuminate\\Database\\Eloquent\\Model $model, $value)\n{\n $slug = \\Illuminate\\Support\\Str::slug($value);\n $slugCount = count($model->whereRaw(\"slug REGEXP '^{$slug}(-[0-9]+)?$' and id != '{$model->id}'\")->get());\n\n return ($slugCount > 0) ? ( ($slugCount > 1) ? (($slugCount > 2) ? ( ($slugCount > 3) ? $slug.'-'.($slugCount+3) : $slug.'-'.($slugCount+2)) : $slug.'-'.$slugCount) ? : $slug.'-'.($slugCount+1) : $slug.'-'.$slugCount ) : $slug;\n}", "title": "" }, { "docid": "020f4c8f4769df37869edb4a30dd0409", "score": "0.62888753", "text": "public function check_slug(Request $request)\n {\n //$slug = str_slug($request->title);\n\n // New version: to generate unique slugs\n $slug = SlugService::createSlug(Category::class, 'slug', $request->title);\n\n return response()->json(['slug' => $slug]);\n }", "title": "" }, { "docid": "223698823566e51f988e812a3eeeaf19", "score": "0.6279862", "text": "public function validateSlug($validator, $value)\n {\n while (true)\n {\n $existing = Doctrine::getTable('aEntity')->findOneBySlug($value);\n if ($existing && ($existing->id !== $this->getObject()->id))\n {\n $value .= rand(0, 9);\n }\n else\n {\n break;\n }\n }\n\n return $value;\n }", "title": "" }, { "docid": "944896c3ab97a4606cae9e3dec70a049", "score": "0.62741154", "text": "abstract public static function getSlug(): String;", "title": "" }, { "docid": "b34ef1bbdca68865eebf5b2cb09b5bc8", "score": "0.6259758", "text": "function _generate_slug($string, $check_table = '', $check_col = 'slug')\n{\n #!- regex\n $s = array('/[^A-Za-z0-9\\s]/', '/\\s+/');\n $r = array('-', '-');\n\n #!- initial slug\n $pregged = preg_replace($s, $r, strtolower($string));\n $pregged = preg_replace('/\\-+/', '-', $pregged);\n $slug = $s = substr($pregged, 0, 30);\n\n #!- clean up\n if ($check_table != '') {\n $db = new \\App\\Libs\\Classes\\Helpers\\Database();\n while ($db->exists($slug, $check_col, $check_table)) $slug = $s . '-' . rand(0, 999);\n }\n\n return $slug;\n}", "title": "" }, { "docid": "e31482166f047cd19372b62428de714d", "score": "0.62561905", "text": "function find_unique_term_slug($sanitized_slug, $acceptable_slug = null) {\n global $wpdb;\n\n // Now we know that the requirements have been met, check to see if our slug is unique\n // Set the slug\n $slug = null;\n $slug_to_test = $sanitized_slug;\n $index = 1;\n\n // Loop through the slugs till we get one that isn't taken\n do {\n\n // Run the query to find the woo category\n $duplicate_slug = $wpdb->get_row(\n $wpdb->prepare(\n \"SELECT * FROM wp_terms WHERE slug = %s\",\n array($slug_to_test)\n )\n );\n\n // The slug is unique, save it and let's move on!\n if ($duplicate_slug === null) {\n $slug = $slug_to_test;\n } elseif ($slug_to_test === $acceptable_slug) {\n // This matches the acceptable slug, use this anyways\n $slug = $acceptable_slug;\n } else {\n // The slug isn't unique, let's try adding a '1' to the end of it and test that\n $slug_to_test = $sanitized_slug . '-' . $index;\n $index += 1;\n }\n } while ($slug === null);\n\n // Return our found slug\n return $slug;\n }", "title": "" }, { "docid": "85912da152ec8305c56e9e6304622df0", "score": "0.6229596", "text": "public function generateSlug()\n {\n $slug = Str::slug($this->title, '-');\n\n if (\n Listing::query()\n ->where('slug', $slug)\n ->exists()\n ) {\n $slug = uniqid($slug);\n }\n\n return $slug;\n }", "title": "" }, { "docid": "0942084a392fa15fcaac8f2efe2e39b3", "score": "0.6216356", "text": "function the_slug_exists($post_name) {\nglobal $wpdb;\nif($wpdb->get_row(\"SELECT post_name FROM {$wpdb->prefix}posts WHERE post_name = '\" . $post_name . \"'\", 'ARRAY_A')) {\nreturn true;\n} else {\nreturn false;\n}\n}", "title": "" }, { "docid": "27eabeaa85b58af438cd9461e81276e1", "score": "0.6212003", "text": "function unique_slug()\n {\n $text = $this->input->post('text');\n $table = $this->input->post('table');\n $field = $this->input->post('field');\n \n $unique_slug = $this->Db_model->unique_slug($text, $table, $field);\n \n $this->output->set_content_type('application/json')->set_output($unique_slug);\n }", "title": "" }, { "docid": "3874b04f0899aac5ae8724fb82504e4f", "score": "0.6206369", "text": "public function testSlug()\n {\n $user = factory(User::class)->create();\n\n $article = new Article();\n $article->setBody('This is the body');\n $article->setTitle('This is the title');\n $article->user()->associate($user);\n $article->setPublished(Article::PUBLISHED);\n $article->setPublishedAt(Carbon::now());\n $article->save();\n\n $this->assertEquals('this-is-the-title', $article->slug);\n }", "title": "" }, { "docid": "67b2e613c1dec93d68ca19cf7ada7f15", "score": "0.62037116", "text": "public function check_title($title = '')\n\t{\n\t\treturn parent::count_by('slug', url_title($title)) > 0;\n\t}", "title": "" }, { "docid": "2ce77b6344e0ac1c018e3abb9fb5917c", "score": "0.617253", "text": "protected function generate_slug(){\n\t\t$this->slug = \\StringUtils::toAscii($this->title); \t\n\t}", "title": "" }, { "docid": "c2de7d7909667ebcd1f7565436ec223d", "score": "0.61419123", "text": "static public function canSlug($name)\n {\n return true;\n }", "title": "" }, { "docid": "f4634125e6e97639855df42e7faf33c2", "score": "0.61397433", "text": "private function _deduplicate_slug(&$model, &$slug)\n {\n $dupes = $model->find(\n 'count',\n array(\n 'conditions' => array(\n $model->alias . '.' . $this->settings[$model->alias]['slug_field'] => $slug,\n $model->alias . '.id !=' => $model->id\n )\n )\n );\n\n if (0 === $dupes) {\n\n return $slug;\n\n } else {\n\n $previous_suffix = $this->duplicate_suffix;\n $this->duplicate_suffix++;\n\n $new_slug_suffix = (string)$this->duplicate_suffix;\n $new_suffix_length = strlen($new_slug_suffix);\n $slug_length = strlen($slug);\n $max_length = $this->settings[$model->alias]['slug_max_length'];\n\n if ($previous_suffix > 0 || $new_suffix_length + $slug_length > $max_length) {\n $replace_at = -1 * $new_suffix_length;\n } else {\n $replace_at = $slug_length;\n }\n\n $slug = substr_replace($slug, $new_slug_suffix, $replace_at);\n return $this->_deduplicate_slug($model, $slug);\n\n }\n }", "title": "" }, { "docid": "401842ebe12314fbfb543a698428c2bd", "score": "0.61039686", "text": "public function initializeSlug(){\n \n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->prenom.' '.$this->nom);\n }\n }", "title": "" }, { "docid": "a15c7b8916439a5b637089d8ab9b2fdc", "score": "0.610295", "text": "function check_for_dup_term($terms, $term_slug) {\n // duplicate term found and false if\n // there is a duplicate. Takes in the\n // term slug <str> and the terms <array>.\n $is_unique = true;\n\n foreach ($terms as $t) {\n if ($term_slug == $t['term_slug']) {\n $is_unique = false;\n break;\n }\n }\n return $is_unique;\n}", "title": "" }, { "docid": "ea2029d30a92a1d288c3a9f34adee629", "score": "0.6102073", "text": "function createSlug($slug){\n\t$lettersNumbersSpacesHypens = '/[^\\-\\s\\pN\\pL]+/u';\n\t$spacesDuplicateHypens = '/[\\-\\s]+/';\n\n\t$slug = preg_replace($lettersNumbersSpacesHypens, '', mb_strtolower($slug, 'UTF-8'));\n\t$slug = preg_replace($spacesDuplicateHypens, '-', $slug);\n\t$slug = trim($slug, '-');\n\n\treturn $slug;\n\n}", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.6083612", "text": "public function getSlug();", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.6083612", "text": "public function getSlug();", "title": "" }, { "docid": "0fae1934bd2ebea07626bf1607977129", "score": "0.60813135", "text": "public static function checkSlug(string $slug): bool\n {\n return self::getListOfRoutes()->contains($slug);\n }", "title": "" }, { "docid": "4d9773535c1a01069635f39b47045c28", "score": "0.6068159", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->nom);\n }\n }", "title": "" }, { "docid": "ca70c34db2eb303f9541336ba2f15ce7", "score": "0.6067867", "text": "public function testSlug($string, $slug)\n {\n $this\n ->if($result = TestedTextHelper::slug($string))\n ->then\n ->string($result)\n ->isEqualTo($slug)\n ;\n }", "title": "" }, { "docid": "6308c8698146d96c86277431e599bc46", "score": "0.6066592", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->username);\n }\n }", "title": "" }, { "docid": "d4df5e33609f8d16fce352f2f3f14d61", "score": "0.6052522", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "89e22e67355fbc22728a7bf8de453145", "score": "0.60524356", "text": "function checkCatSlug($slug=\"\", $excl=\"\"){\r\n\t// PARAM $slug : category slug\r\n\t// $excl : exclude this category ID, good for checking update category\r\n\r\n\t\tif ($slug==\"\") { return true; }\r\n\t\t$cat = $this->getCatSlug($slug,$excl);\r\n\t\treturn is_array($cat);\r\n\t}", "title": "" }, { "docid": "96fbc3e8001437cd644b18fe6bb36fbf", "score": "0.599966", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->name);\n }\n }", "title": "" }, { "docid": "792e2bc5816b36bed9f99aa819471975", "score": "0.5999393", "text": "public function logic_for_slug_exists( $slug = '' ) {\n if( ! exists( $slug ) ) {\n $slug = $this->get_the_slug();\n }\n $this->_hipster->log( \"Enter logic_for_slug_exists. Slug: $slug.\", 1 );\n $this->_hipster->log( $this->jobs[$slug], 2 );\n $file = '';\n\n if( in_array( $slug, array_keys( $this->jobs ) ) ) {\n $file = $this->_hipster->dir['template_logic'] . \"/\" . $this->jobs[$slug]['logic'] . '.php';\n $this->_hipster->log( \"Slug is mapped.\", 1 );\n }\n else {\n $file = $this->_hipster->dir['template_logic'] . \"/\" . $slug . '.php';\n }\n \n $this->_hipster->log( \"File: $file\", 1 );\n $this->_hipster->log( \"Exists: \" . file_exists( $file ), 1 );\n \n return file_exists( $file );\n }", "title": "" }, { "docid": "896bdca41e445380fbd01f2fe72538f7", "score": "0.59890807", "text": "private function makeSlug() {\r\n \r\n if (!empty($this->slug)) {\r\n return;\r\n }\r\n \r\n $proposal = ContentUtility::generateUrlSlug($this->name, 20);\r\n \r\n $query = \"SELECT COUNT(id) FROM glossary WHERE slug = ?\"; \r\n $num = $this->db->fetchOne($query, $proposal); \r\n \r\n if ($num) {\r\n $proposal .= $num; \r\n }\r\n \r\n $this->slug = $proposal; \r\n \r\n if (filter_var($this->id, FILTER_VALIDATE_INT)) {\r\n $this->commit(); \r\n }\r\n \r\n return;\r\n \r\n }", "title": "" }, { "docid": "dd23226a311055e68f7ad6ba79d02461", "score": "0.59870744", "text": "public static function slugToUrl(string $str): bool|string\n {\n if (empty($str)) {\n return false;\n }\n return preg_replace('/[^A-Za-z0-9-]+/', '-', $str);\n }", "title": "" }, { "docid": "e09025acffacadaf44597cd1dbc645ab", "score": "0.59812206", "text": "public function testGettingSlug()\n {\n $rule = new InRule();\n $this->assertEquals('in', $rule->getSlug());\n }", "title": "" }, { "docid": "7707204cdc9d79d53c981755e7b3da2a", "score": "0.59811455", "text": "public function testSlug3()\n {\n $this->assertEquals(str_slug('fôô bar'), 'foo-bar');\n }", "title": "" }, { "docid": "33cbce339cda8896d5047f5fe815fe64", "score": "0.59727377", "text": "public function createSlug()\n\t{\n\t}", "title": "" }, { "docid": "849b59c7847afe4023b039bf2272b522", "score": "0.59641045", "text": "function slug($title){ return preg_replace(\"/[^a-zA-Z0-9]+/\", \"-\", strtolower($title)); }", "title": "" }, { "docid": "bdd13e6f17116432d9593d5b4bff9373", "score": "0.5962975", "text": "public function slug_ajax_optimizer($slug) {\n \tif ( strcmp( $slug, $_POST['new_title'] ) == 0 ) { //slug was empty, so will use post new title as slug\n \t\treturn $this->slug_optimizer($slug);\n \t}\n \treturn $slug;\n }", "title": "" }, { "docid": "d10448f617cc4269a898c11fe3f5c7b6", "score": "0.59512305", "text": "function does_post_exist( $slug ) {\n\n\t \tglobal $wpdb;\n\n\t \tif( $ID = $wpdb->get_var( 'SELECT ID FROM '.$wpdb->posts.' WHERE post_name = \"'.$slug.'\" AND post_status = \"publish\" ' ) ) {\n\t\t\treturn $ID;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "ab16e539ea6a858d6128865a2ec3ac05", "score": "0.5940975", "text": "public function _unique_username($str)\n {\n // UNLESS it's the username for the current user\n \n $id = $this->uri->segment(4);\n $this->db->where('username', $this->input->post('username'));\n !$id || $this->db->where('id !=', $id);\n \n $user = $this->user_m->get();\n \n if(count($user))\n {\n $this->form_validation->set_message('_unique_username', '%s '.lang('should be unique'));\n return FALSE;\n }\n \n return TRUE;\n }", "title": "" }, { "docid": "d5077d594dd37b71ee1f528b64cefa5c", "score": "0.5939284", "text": "public function checkUniqueCategory(): bool\n {\n $category = \\R::findOne('categories', 'name = ?', [$this->attributes['name']]);\n\n if ($category) {\n if ($category->name === $this->attributes['name']) {\n $this->errors['unique'][] = 'This name already exists.';\n }\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "730b30ec5cb05cf927b1f2e2ba44a011", "score": "0.5932808", "text": "public function testQueryForSlug()\n {\n }", "title": "" }, { "docid": "e6bfcd3f3fd0ba2c610f742848744af5", "score": "0.59295887", "text": "public function getSlug() : string;", "title": "" }, { "docid": "c77e3cbf8f943330c8377addc1a6c0f7", "score": "0.5922311", "text": "function setSlug($title){\n //dd($title);\n $string= str_slug($title , \"-\");\n $separator = '-';\n $string = trim($title);\n // Lower case everything\n // using mb_strtolower() function is important for non-Latin UTF-8 string | more info: https://www.php.net/manual/en/function.mb-strtolower.php\n // $string = mb_strtolower($string, \"UTF-8\");;\n\n // Make alphanumeric (removes all other characters)\n // this makes the string safe especially when used as a part of a URL\n // this keeps latin characters and arabic charactrs as well\n $string = preg_replace(\"/[^a-z0-9_\\s\\-ءاأإآؤئبتثجحخدذرزسشصضطظعغفقكلمنهويةى]#u/\", \"\", $string);\n\n // Remove multiple dashes or whitespaces\n $string = preg_replace(\"/[\\s-]+/\", \" \", $string);\n\n $string = str_replace(\"،\", \"\", $string);\n $string = str_replace(\",\", \"\", $string);\n $string = str_replace('/', \"\", $string);\n $string = str_replace('(', \"\", $string);\n $string = str_replace(')', \"\", $string);\n $string = str_replace(\"\\\\\", \"\", $string);\n\n\n // Convert whitespaces and underscore to the given separator\n $string = preg_replace(\"/[\\s_]/\", $separator, $string);\n\n return $string;\n}", "title": "" }, { "docid": "82b415169aeaef031ee6789d28ba6012", "score": "0.59154147", "text": "function wbcr_hlp_login_path_noconflict($slug, $post_ID, $post_status, $post_type)\n\t{\n\t\tif( in_array($post_type, array('post', 'page', 'attachment')) ) {\n\t\t\t$login_path = WHLP_Plugin::app()->getOption('login_path');\n\n\t\t\tif( !empty($login_path) ) {\n\t\t\t\tif( $slug == trim($login_path) ) {\n\t\t\t\t\t$slug = $slug . rand(10, 99);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "c03bef752abe6e19c469bd8c6a813304", "score": "0.5904567", "text": "function unique_username($str){\n\t\t\t//fetch all usernames\n\t\t\t$query=$this->query_m->fetch_all_usernames_query();\n\t\t\t//throw in array\n\t\t\tforeach($query->result() as $row){\n\t\t\t\t$username_array[]=$row->username;\n\t\t\t}\n\t\t\t\n\t\t\t//check if username is allready used\n\t\t\tif(!in_array($str,$username_array)){\n\t\t\t\treturn TRUE;\n\t\t\t}else{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "971f23950f32ff3d909d312cc1e3f917", "score": "0.59038466", "text": "public function is_unique($str, $field) {\n $field_ar = explode('.', $field);\n\n if (!empty($_POST['id'])) {\n $this->CI->db->where('id !=', $_POST['id']);\n }\n $this->CI->db->where('deleted_by', 0);\n $query = $this->CI->db->get_where($field_ar[0], array($field_ar[1] => $str), 1, 0);\n if ($query->num_rows() === 0) {\n return TRUE;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "e447cb2e873efce218a1a9187d35a260", "score": "0.5895902", "text": "function is_unique_feed($url)\n{\n global $wpdb;\n $result = $wpdb->get_results(\"SELECT * FROM wp_feeder where feed_url = '$url'\");\n if (empty($result)) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "64dc1815fe8d9869e8e51ff3de7ec3de", "score": "0.58936375", "text": "function the_slug_exists($post_name) {\n global $wpdb;\n if($wpdb->get_row(\"SELECT post_name FROM wp_posts WHERE post_name = '\" . $post_name . \"'\", 'ARRAY_A')) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "47f46ceb4ac684e64cc177f490daf63b", "score": "0.5884756", "text": "function makeSlug($str) {\n\n $str = safeString($str);\n\n $str = str_replace(\" \", \"-\", $str);\n $str = strtolower(preg_replace(\"/[^a-zA-Z0-9_-]/i\", \"\", $str));\n $str = preg_replace(\"/[-]+/i\", \"-\", $str);\n\n $str = substr($str,0,64); // 64 chars ought to be long enough.\n\n return $str;\n\n}", "title": "" }, { "docid": "e17fb526ac7de7ad227d2ed575bd81cb", "score": "0.5878111", "text": "function createSlug($raw){\n // replace non letter or digits by -\n $raw = preg_replace('~[^\\pL\\d]+~u', '-', $raw);\n\n // transliterate\n $raw = iconv('utf-8', 'us-ascii//TRANSLIT', $raw);\n\n // remove unwanted characters\n $raw = preg_replace('~[^-\\w]+~', '', $raw);\n\n // trim\n $raw = trim($raw, '-');\n\n // remove duplicate -\n $raw = preg_replace('~-+~', '-', $raw);\n\n // lowercase\n $slug = strtolower($raw);\n\n if (empty($slug)) {\n return 'n-a';\n }\n\n return $slug;\n\n }", "title": "" }, { "docid": "8c2951635aec1ba68f24fa1d6e04ad42", "score": "0.5864709", "text": "public static function makeUnique($url)\n {\n return Str::unique($url, function ($url) {\n return URLFacade::isAvailable($url);\n });\n }", "title": "" }, { "docid": "97fa03e303bac7b7a881dc570bb427ea", "score": "0.5857114", "text": "public function createSlug($slug){\n $next = 1;\n while(Carnival::where('carnival_slug', '=', $slug)->first()) { \n $pos = strrpos($slug, \"_\");\n $digit = substr($slug, -1);\n $digit = intval($digit);\n if($digit == 0){\n $i = 1;\n $slug = $slug.'-'.$i;\n \n }else{\n $slug = substr($slug, 0, -2);\n $slug = $slug.'-'.$next;\n $next++;\n } \n }\n return $slug;\n }", "title": "" }, { "docid": "faae8b3338181db3dcd5a253b8f4c254", "score": "0.58478194", "text": "private function registerSlugSanitizer()\n {\n $this->sanitizer->setFilters([\n 'slug' => function ($value) {\n return str_replace(' ', '-', strtolower(trim($value)));\n }\n ]);\n }", "title": "" }, { "docid": "2516c03e6b2a3d45ec7bcca8679d8381", "score": "0.58474064", "text": "public function getSlug()\n {\n //if new, set slug\n if (empty($this->slug)){\n $this->regenerateSlug();\n }\n return $this->slug;\n }", "title": "" }, { "docid": "55a968bf710820b538e68f49a840875d", "score": "0.58335656", "text": "public function checkSlugExists($slug, $id = null)\n {\n $result = false;\n\n if ($slug) {\n $select = $this->select()\n ->columns(['total' => new Expression('count(id)')])\n ->where([\n 'slug' => $slug,\n 'status' => self::FIELD_STATUS_PUBLISHED,\n ]);\n if ($id) {\n $select->where(['id <> ?' => $id]);\n }\n\n $result = $this->selectWith($select)->current()->total > 0;\n }\n\n return $result;\n }", "title": "" }, { "docid": "c87a6e226f918d68cc1a3bc4d526b58c", "score": "0.58114976", "text": "public function slug_init() {\n\t\t\t// add_filter('wp_unique_post_slug', array( &$this, 'slug_optimizer_save2' ), 100, 6);\n\t\t\tadd_filter(\"name_save_pre\", array( &$this, 'slug_optimizer_save' ), 10, 1);\n\n\t\t\t//sanitize when ajax request is made!\n\t\t\tif ( isset($_POST['action']) && $_POST['action'] == 'sample-permalink' ) {\n \t\t\t\t//filter is set before sanitize_title_with_dashes\n\t\t\t\tadd_filter('sanitize_title', array( &$this, 'slug_ajax_optimizer' ), 9);\n\t\t\t}\n }", "title": "" }, { "docid": "5c1ef07e3e82118270b5c38b7331307e", "score": "0.5809508", "text": "function wct_sanitize_slug( $slug = '' ) {\n\t// Remove accents\n\t$value = remove_accents( $slug );\n\n\t// Put every character in lowercase\n\t$value = strtolower( $value );\n\n\t// Don't allow multiple slashes in a row\n\t$value = preg_replace( '#/+#', '/', str_replace( '#', '', $value ) );\n\n\t// Strip out unsafe or unusable chars\n\t$value = esc_url_raw( $value );\n\n\t// esc_url_raw() adds a scheme via esc_url(), so let's remove it\n\t$value = str_replace( 'http://', '', $value );\n\n\t// Trim off first and last slashes.\n\t//\n\t// We already prevent double slashing elsewhere, but let's prevent\n\t// accidental poisoning of options values where we can.\n\t$value = ltrim( $value, '/' );\n\t$value = rtrim( $value, '/' );\n\n\t/**\n\t * @param string $value the sanitized slug\n\t * @param string $slug the slug choosed by the admin\n\t */\n\treturn apply_filters( 'wct_sanitize_slug', $value, $slug );\n}", "title": "" }, { "docid": "f448e590634aec471a9f5f0b18cd161a", "score": "0.5806669", "text": "public function getSlug(): string|null;", "title": "" }, { "docid": "570bd224bb6c595c463584b797596ab0", "score": "0.5804851", "text": "public function initializeSlug() {\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->titreArticle);\n }\n }", "title": "" }, { "docid": "f93bdbb4add2f504586154df7088248a", "score": "0.57865626", "text": "public function slugify($string)\n {\n $string = preg_replace('~[^\\pL\\d]+~u', '-', $string);\n // transliterate\n $string = iconv('utf-8', 'us-ascii//TRANSLIT', $string);\n // remove unwanted characters\n $string = preg_replace('~[^-\\w]+~', '', $string);\n // trim\n $string = trim($string, '-');\n // remove duplicate -\n $string = preg_replace('~-+~', '-', $string);\n // lowercase\n $string = strtolower($string);\n\n if (empty($string)) {\n return false;\n }\n \n return $string;\n }", "title": "" } ]
7a4b7a29b90b1cbfe2e57518458bbe71
Display the specified resource. [GET]
[ { "docid": "12af0dd6781c0be908af1f410a2b7ceb", "score": "0.0", "text": "public function show($ids) {\n\n $name = static::$modelName;\n $idArray = explode(',', $ids);\n $models = $name::whereIn('id', $idArray)->get();\n\n if (count($models) == 0) {\n throw new ResourceException(sprintf(\"Could not find %s with id(s): %s\", $name, $ids), [\"error\" => \"NOT_FOUND\"]);\n }\n\n return $models;\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.7898653", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "fa12d91e9349fafc5fadd2869e01afe7", "score": "0.78710073", "text": "public function show(Resource $resource) {\n //\n }", "title": "" }, { "docid": "c32c82f3c9f666d7ebd6a4a17c715dde", "score": "0.7146139", "text": "public function show(App\\Resource $resource){\n return $resource;\n }", "title": "" }, { "docid": "63ed4e18ae3ec83b0374866b78fa0cb2", "score": "0.69071245", "text": "public function show(Resources $resources)\n {\n //\n }", "title": "" }, { "docid": "5ff14c79a9b59fe32898fb8081a44d38", "score": "0.6905225", "text": "public function show($id)\n {\n //abort('404');\n //$resource = Resource::find($id);\n\n // To throw an exception\n //$resource = Resource::findOrFail($id);\n $resource = Resource::find($id);\n if ( ! $resource) {\n // I think findOPrFail is equivalent\n abort(404); # @TODO Check what happens here and compare with the findOrFail\n }\n //dd($resource);\n return view('resources.show', compact('resource'));\n }", "title": "" }, { "docid": "2fcca60eabc9fa263815bdb0af23227b", "score": "0.68864685", "text": "public function show($title)\n {\n $searchTerm = DB::table('searches')->where('query', '* '.$title)->first();\n if (isset($searchTerm)) $accesses = $searchTerm->accesses;\n $resource = Resource::where('title', '=', $title)->first();\n if (isset($resource)){\n return view('resources.show')\n ->with('title', $resource->title)\n ->with('body', $resource->body)\n ->with('accesses', $accesses); \n }\n else return \"resource not found\";\n }", "title": "" }, { "docid": "2340d9ba8290fef3f3c565d30608fcd8", "score": "0.68098104", "text": "public function getAction()\n {\n $this->_response->setHeader('Content-Type', 'application/json');\n echo $this->_contact->restGet($this->_getParam('id'));\n }", "title": "" }, { "docid": "5bdbf5194d6a15274873be5dd822d8d0", "score": "0.6760136", "text": "public function get($resource, array $options = []);", "title": "" }, { "docid": "1796e2d05e4dedd8b964ac1367f110a9", "score": "0.673414", "text": "public function getAction()\n {\n $apiFunctions['default'] = 'get';\n $this->_genericAction(\n $this->_request->getParams(),\n $this->_request->getControllerName(),\n 'get',\n $apiFunctions,\n 'readmes'\n );\n }", "title": "" }, { "docid": "40a925bbd10087f2a47852615f509b62", "score": "0.66424596", "text": "public function viewerAction() {\n $type = $this->getParam('things');\n $class = Inflector::camelize(Inflector::singularize($type));\n if (!in_array($class, self::$allowedThings)) {\n throw new Omeka_Controller_Exception_404;\n }\n $this->__passModelToView();\n }", "title": "" }, { "docid": "9b4d57ff69691e11ad883e5cbdf0126f", "score": "0.66389775", "text": "public function show()\n\t{\n\t\tif (!isset($_GET['id']))\n\t\t\treturn route('home', 'error');\n\n\t\t$rating = Rating::find($_GET['id']);\n\t\t$view = new Renderer('views/rating/');\n\t\t$view->rating = $rating;\n\t\t$view->render('show.php');\n\t}", "title": "" }, { "docid": "428d435450a183e9f2b1cf67fe4ca1ee", "score": "0.66389525", "text": "public function showAction($id)\n {\n }", "title": "" }, { "docid": "81b16bb8460887cb8006a04f2b0e7113", "score": "0.66195697", "text": "public function show($id);", "title": "" }, { "docid": "81b16bb8460887cb8006a04f2b0e7113", "score": "0.66195697", "text": "public function show($id);", "title": "" }, { "docid": "81b16bb8460887cb8006a04f2b0e7113", "score": "0.66195697", "text": "public function show($id);", "title": "" }, { "docid": "775c566e3ec175fb9b4fc64e3846efff", "score": "0.65955675", "text": "public function show($id)\n {}", "title": "" }, { "docid": "cbf3bf22b6453f9015dd8d3552392655", "score": "0.6593931", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/IAS/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "63a92839c87307963a49b2b9d9cc5823", "score": "0.6590822", "text": "public function show($id){}", "title": "" }, { "docid": "63a92839c87307963a49b2b9d9cc5823", "score": "0.6590822", "text": "public function show($id){}", "title": "" }, { "docid": "83314ee914d10b287d39ec12d9204d89", "score": "0.65877014", "text": "public function actionGetResource() {\r\n /* verify token */\r\n if ($this->validateToken()) {\r\n /**\r\n * Dummy code for testing purpose only. It's necessary to verify the user profile in\r\n * order to be sure that this action is allowed\r\n */\r\n $this->responseObj->setStatus(SUCCESS_RESPONSE);\r\n $this->responseObj->setMessage(\"Get resource allowed\");\r\n $this->responseObj->setToken($this->jwtToken);\r\n /* before sending the resource we need to check if the user has permission */\r\n $this->responseObj->setResource('Here is the resource requested'); \r\n }\r\n\r\n /* get the resource from the database */\r\n }", "title": "" }, { "docid": "f07b18b107b3bc036bef8985df2e1b91", "score": "0.65870225", "text": "public function show() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error404');\n\n // we use the given id to get the right post\n $activities = Activity::find($_GET['id']);\n require_once('views/activities/show.php');\n }", "title": "" }, { "docid": "72eb4a0f938598778f7d1bb6c9a7c01a", "score": "0.6574553", "text": "public function show(Res $res)\n {\n //\n }", "title": "" }, { "docid": "028815e256d04884fbfd1abcd49553a0", "score": "0.6552721", "text": "public function show(ResourceInterface $resource)\n\t{\n if(Auth::user()->can('show', $resource)) {\n $variables = [];\n $variables['extends'] = Config::get('roles::extends');\n $variables['resource'] = $resource;\n $response = View::make('roles::resource.show', $variables);\n } else {\n $errors = new MessageBag();\n $errors->add('error', trans('roles::resource.show permission denied'));\n $response = Redirect::back()->withErrors($errors);\n }\n\n return $response;\n\t}", "title": "" }, { "docid": "fa1c2eb41c95d94a4e3d5fbf93d1fb39", "score": "0.6532793", "text": "public function show($id)\n\t{\n\t\t$user = Sentry::getUser();\n\t\t$request = $user->requests()->with('file')->where('id', $id)->first();\n\n\t\tif (! $request) return App::abort(404, \"Request resource [$id] not found.\");\n\n\t\t$file = $request->file()->first();\n\n\t\t$this->layout->content = View::make('my.requests.show')\n\t\t\t\t\t\t\t\t\t->with('user', $user)\n\t\t\t\t\t\t\t\t\t->with('request', $request)\n\t\t\t\t\t\t\t\t\t->with('file', $file);\n\t}", "title": "" }, { "docid": "6e93c462eda7d8a9bad8023e5f49deb3", "score": "0.65258217", "text": "public function show($id)\n {\n //$this->checkPermission(\"master_management_view\");\n try {\n\n $item = $this->service->getOne($id);\n $item = ApiResource::make($item);\n\n return $this->respondWithSuccess($item);\n } catch (\\Exception $th) {\n return $this->respondNotFound();\n }\n }", "title": "" }, { "docid": "c422e600117f23ecb3e910d02cd71439", "score": "0.6521915", "text": "public function show($id)\n\t{ \n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.6517526", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d293f3fdec60349ef0877e91df4a099b", "score": "0.65158325", "text": "public function index()\n {\n $resources = Resources::orderBy('id', 'desc')->get();\n return view('Backend/Resources/viewResource', compact('resources'));\n }", "title": "" }, { "docid": "9617872793eb39f5375d763f7780f6d9", "score": "0.6511679", "text": "public function show() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error404');\n\n // we use the given id to get the right post\n $students = Student::find($_GET['id']);\n require_once('views/students/show.php');\n }", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b08cc419c7848dda4f33e11827b9ff47", "score": "0.65080243", "text": "public function show($id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.65053546", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "a4128c2e8456b91bb5ab2b52abd234b3", "score": "0.6504004", "text": "public function show($id)\n\t{\n\t\tabort(404);\n\t}", "title": "" }, { "docid": "c49aca9ca4de24b911073596766c833f", "score": "0.6503941", "text": "public function show( $id )\n {\n\n\n\n }", "title": "" }, { "docid": "ba5a2c7902e0156425e3dea1470df9a3", "score": "0.64937097", "text": "public function show($id)\n {\n return \"This is show controller resource showing ID: \". $id;\n }", "title": "" }, { "docid": "9a30795d980babc94eaea5f358f9a346", "score": "0.64858055", "text": "public function view($id = null) {\n $resource = $this->resources[$id];\n $this->set(array('resource' => $resource, '_serialize' => 'resource'));\n }", "title": "" }, { "docid": "3b18817b82995fa8322e3e648666dc69", "score": "0.64854944", "text": "public function show() {\n\t\tstatus_header(200);\n\t\t\n\t\tparent::show();\n\t}", "title": "" }, { "docid": "c219b37f2fb683770a8cb9367fcbe1a4", "score": "0.6482916", "text": "public function show($id)\r\n {\r\n }", "title": "" }, { "docid": "26f58527a11a309149ac0fe91d01974f", "score": "0.64764863", "text": "public function show($id = null)\n\t{\n\t\treturn $this->fail(lang('RESTful.notImplemented', ['show']), 501);\n\t}", "title": "" }, { "docid": "e5b68899adbea6a73109d8e4dd1a0aad", "score": "0.6474187", "text": "public function showAction() {\r\n // Load View template\r\n $actorModel = new ActorModel(\"actors\");\r\n $actor = $actorModel->getActor(\"id\");\r\n include CURR_VIEW_PATH . \"actors\". DS . \"show.php\";\r\n // actorDB/application/views/actors/show.php;\r\n }", "title": "" }, { "docid": "7580b6a8a70ffcf0c85b9c5fd2d164c8", "score": "0.6473998", "text": "public function show($id)\n\t{\t\n\t\t\n\t}", "title": "" }, { "docid": "d03bcabcbed93b5ee787b6be9f70b0b0", "score": "0.64737415", "text": "public function show($id)\r\r\n {\r\r\n //\r\r\n }", "title": "" }, { "docid": "d03bcabcbed93b5ee787b6be9f70b0b0", "score": "0.64737415", "text": "public function show($id)\r\r\n {\r\r\n //\r\r\n }", "title": "" }, { "docid": "25fef2b3e221da4874ce751e7620e1b8", "score": "0.6471004", "text": "public function show($id)\n {\t\n\t\t//\n \n }", "title": "" }, { "docid": "2c4681f3d2ea72046a4a8fbabafd2fda", "score": "0.64684904", "text": "public function viewResource($slug)\n {\n if ($resource = Resource::findBySlug($slug)) {\n // No se utiliza el metodo each() por que se trata de un solo recurso, no es necesario hacer un recorrido.\n $resource->category;\n $resource->tags;\n $resource->book;\n\n $ay_tags = $resource->tags;\n\n $actual_link = 'http://'.$_SERVER['HTTP_HOST'].'/resources/'.$slug;\n\n return view('front.resource')\n ->with('resource', $resource)\n ->with('ay_tags', $ay_tags)\n ->with('actual_link', $actual_link);\n }\n else {\n abort(404);\n }\n }", "title": "" }, { "docid": "632278ef3c97d87e87f73747874ee4c1", "score": "0.64650977", "text": "public function show($id){\n\t\t//\n\t}", "title": "" }, { "docid": "632278ef3c97d87e87f73747874ee4c1", "score": "0.64650977", "text": "public function show($id){\n\t\t//\n\t}", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9bbad47559abecf22967bca90755e1e2", "score": "0.64641726", "text": "public function show($id)\r\n {\r\n //\r\n }", "title": "" }, { "docid": "bbb0c46f0a04ac14e7443d7a24efdfeb", "score": "0.6455325", "text": "public function show($id)\r\n {\r\n \r\n }", "title": "" }, { "docid": "72a1328035b6cf04afed5c8a5811d59d", "score": "0.645491", "text": "public function show($id) \n {\n }", "title": "" }, { "docid": "7f42a75136758e4bfc3ffce574c02e53", "score": "0.64548564", "text": "public function show()\n { \n $this->model->load('LuotNghe');\n $luotnghe = $this->model->LuotNghe->findById($_GET['id']);\n $data = array(\n 'title' => 'show',\n 'luotnghe' => $luotnghe\n );\n\n // Load view\n $this->view->load('luotnghes/show', $data);\n }", "title": "" }, { "docid": "68ba4348da2d2e2e73db056d5ac5f5f0", "score": "0.64545625", "text": "public function show($id) {\n }", "title": "" }, { "docid": "e7cd1076669ae4723a326a763fc6c85e", "score": "0.6447922", "text": "public function show($id)\n {\n //\n\t\n\t\n }", "title": "" }, { "docid": "a0cff1437ffee2a4279f65c348e5c9f2", "score": "0.64347696", "text": "public function show($id) {\n\n }", "title": "" }, { "docid": "d5154852f07f1b34cd8e182256e5835d", "score": "0.64341396", "text": "public function show($id)\n { \n }", "title": "" }, { "docid": "c6190c1240170fe0cc1c94a676c86230", "score": "0.6432595", "text": "public function show($id)\n {\n // not supported\n }", "title": "" }, { "docid": "0e7d2d6788c31b8e7fdb0fa141bde1d0", "score": "0.64314634", "text": "public function show($id) {\n\n\t}", "title": "" }, { "docid": "acf2f8c79dcc659315ec5820b536f7df", "score": "0.6426954", "text": "public function show($id)\n\t{\n\t}", "title": "" }, { "docid": "acf2f8c79dcc659315ec5820b536f7df", "score": "0.6426954", "text": "public function show($id)\n\t{\n\t}", "title": "" }, { "docid": "acf2f8c79dcc659315ec5820b536f7df", "score": "0.6426954", "text": "public function show($id)\n\t{\n\t}", "title": "" } ]
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "820982360d272c1c054338750836fd8c", "score": "0.0", "text": "public function testAnalyze833()\n{\n\n // Traversed conditions\n // if (!\\getid3_lib::intValueSupported($info['filesize'])) == false (line 24)\n // if (\\substr($id3v1tag, 0, 3) == 'TAG') == true (line 33)\n // if ($id3v1tag[125] === \"\\0\" && $id3v1tag[126] !== \"\\0\") == true (line 46)\n // if (!empty($ParsedID3v1['genre'])) == true (line 53)\n // if (isset($ParsedID3v1['genre']) && (empty($ParsedID3v1['genre']) || $ParsedID3v1['genre'] == 'Unknown')) == true (line 56)\n // if (\\preg_match('#^[\\\\x00-\\\\x40\\\\xA8\\\\B8\\\\x80-\\\\xFF]+$#', $value)) == true (line 69)\n // if (\\function_exists('mb_convert_encoding') && @\\mb_convert_encoding($value, $id3v1_bad_encoding, $id3v1_bad_encoding) === $value) == false (line 71)\n // if (\\function_exists('iconv') && @\\iconv($id3v1_bad_encoding, $id3v1_bad_encoding, $value) === $value) == true (line 74)\n // if ($id3v1tag !== $GoodFormatID3v1tag) == true (line 94)\n // if (\\substr($preid3v1, 0, 3) == 'TAG') == true (line 106)\n // if (\\substr($preid3v1, 96, 8) == 'APETAGEX') == false (line 113)\n // if (\\substr($preid3v1, 119, 6) == 'LYRICS') == false (line 115)\n\n $actual = $this->getid3_id3v1->Analyze();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
[ { "docid": "9d23b793c460954ad744bba6a9ed0333", "score": "0.658122", "text": "protected function before() {}", "title": "" }, { "docid": "9d23b793c460954ad744bba6a9ed0333", "score": "0.658122", "text": "protected function before() {}", "title": "" }, { "docid": "875d18a05a3b0e7cba758e0a01b91f32", "score": "0.6492908", "text": "public function testTargetGet()\n {\n }", "title": "" }, { "docid": "b106e6d6e0ab972b4c7fc3e5820d45e1", "score": "0.6251938", "text": "public function testProductTypesChangeStreamGet()\n {\n\n }", "title": "" }, { "docid": "03ee63da4cc15feb31f92b1c5af0279d", "score": "0.6212717", "text": "public function mockReturn(/*...*/);", "title": "" }, { "docid": "a83fb2cca0b9b13ae79bc7a323cb3b3b", "score": "0.6209154", "text": "public function testProductSizesChangeStreamGet()\n {\n\n }", "title": "" }, { "docid": "9fc73842a47470603b57c717eff4c840", "score": "0.62056464", "text": "public function testDocumentTicketsGetForProcessDocument()\n {\n }", "title": "" }, { "docid": "1f610b7b4f27f3c698406ba6000b131e", "score": "0.6201628", "text": "public function testRetrieveOne4()\n {\n }", "title": "" }, { "docid": "0ca381c560de38d7eb120ae6c074de5f", "score": "0.61935145", "text": "public function testTargetGetItem()\n {\n }", "title": "" }, { "docid": "0de828d3a031e61c26f6c5b2bc85ad53", "score": "0.6187431", "text": "public function testPortalImageFoldersChangeStreamGet()\n {\n\n }", "title": "" }, { "docid": "2ee88b6c15adcf57ff30e301b22c6889", "score": "0.6168557", "text": "public function testPortalImageFoldersFindOneGet()\n {\n\n }", "title": "" }, { "docid": "5aa712c32e59960ff30605e8aafa346c", "score": "0.6156982", "text": "public function testRetrieve()\n {\n }", "title": "" }, { "docid": "e129606762bda2964ea58427eb68b48e", "score": "0.61552566", "text": "public function testRetrieveOne6()\n {\n }", "title": "" }, { "docid": "d8a79fb68bd4453f705a88dc623dace9", "score": "0.6146816", "text": "protected function onAfterSetup() { }", "title": "" }, { "docid": "cb4ea39431fb18756a6f12840a364794", "score": "0.61328256", "text": "public function testDocumentTicketsGetForProcessAttachement()\n {\n }", "title": "" }, { "docid": "2f2f44175afb6b5769432ed90820642d", "score": "0.6131276", "text": "public function testRetrieveOfficeTransactions()\n {\n }", "title": "" }, { "docid": "dee8ae6a9a8017acde4a890f996b145d", "score": "0.6130336", "text": "public function testSalesProbabilitiesGet()\n {\n\n }", "title": "" }, { "docid": "1d378d1d7d46efdb4d9d2de79e26f383", "score": "0.6111697", "text": "public function test_getDuplicateAsnById() {\n\n }", "title": "" }, { "docid": "ecd59b8b113b32726d61e7a5f2512dd6", "score": "0.61112255", "text": "public function testItemsIdHealthGet()\n {\n }", "title": "" }, { "docid": "d43ef1e326c89c33ae6bfc15ebba3375", "score": "0.61091703", "text": "public function testRetrieveOne16()\n {\n }", "title": "" }, { "docid": "c23ba80a91933159b591bd39cfb21fa4", "score": "0.610833", "text": "public function testRetrieveAll37()\n {\n }", "title": "" }, { "docid": "0f3f832effa38c2f76980008767425e8", "score": "0.6103004", "text": "public function testUserlogsAddExportGet()\n {\n }", "title": "" }, { "docid": "2b92904abe93811fbda7f9c02a57d2b0", "score": "0.60879916", "text": "public function testSalesProbabilitiesIdGet()\n {\n\n }", "title": "" }, { "docid": "d0c5474ca3ce83082f8c507ad2ff1a4e", "score": "0.607721", "text": "public function test_getMemberMetaStatuses() {\n\n }", "title": "" }, { "docid": "dcff5cfc7a3e154c7bcbf21f347e4b04", "score": "0.607378", "text": "public function testProductSizesIdMaterialsGet()\n {\n\n }", "title": "" }, { "docid": "0640563c22f6d1d56e3d0d2f9c071db1", "score": "0.60697144", "text": "public function testRetrieveOne22()\n {\n }", "title": "" }, { "docid": "543976be5fa44da051c1909d651f0aa7", "score": "0.606949", "text": "public function testRetrieveAll13()\n {\n }", "title": "" }, { "docid": "cec72cce8ea0097a36a73468c2b4f23a", "score": "0.6068915", "text": "public function testExportRequest()\n {\n\n }", "title": "" }, { "docid": "f9b55920ded478ffdc1235bfd6eb7fa6", "score": "0.6068148", "text": "public function testRetrieveOne26()\n {\n }", "title": "" }, { "docid": "8948df734a4c1555836545835dbe8abb", "score": "0.6067567", "text": "public function testProductSizesIdSizeMaterialsGet()\n {\n\n }", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "521e5d4dc61a64054a29f27b987f68d6", "score": "0.60457486", "text": "public function testProductSizesGet()\n {\n\n }", "title": "" }, { "docid": "d0c110f65d66b8c6fd1a4744f497bd2b", "score": "0.60322845", "text": "public function testProductSizesIdExistsGet()\n {\n\n }", "title": "" }, { "docid": "da47161abcb612c07284d3a090bd4e93", "score": "0.60318136", "text": "public function testLodgingBusiness()\n {\n }", "title": "" }, { "docid": "869115d35c13fabb380977bb6d0801ef", "score": "0.6028646", "text": "public function testProductSizesFindOneGet()\n {\n\n }", "title": "" }, { "docid": "d4f3225ef7032b9f7373da5da91ae18d", "score": "0.60277545", "text": "public function testFetchLoanProducts()\n {\n }", "title": "" }, { "docid": "01560a5047ace74a4c7f7f1afbcccd8f", "score": "0.60267115", "text": "public function testProductSizesIdProductsGet()\n {\n\n }", "title": "" }, { "docid": "eb238365d8dbe333b78a84055692ac52", "score": "0.6026288", "text": "public function testGetResults()\n {\n }", "title": "" }, { "docid": "4a502bf8f88cfc75aee27342e7ab4b31", "score": "0.60216683", "text": "public function testMembersGet()\n {\n }", "title": "" }, { "docid": "dd7d6b5aa42c4ab1b4ee74c0315d025f", "score": "0.6015909", "text": "public function testUsersUserIDLogsGet()\n {\n }", "title": "" }, { "docid": "1cf0a0f22c918c554b0c32b31da7f7d5", "score": "0.6015628", "text": "public function testNewOfficeTransactionDetails()\n {\n }", "title": "" }, { "docid": "bc4993efe94155cf3ec919969f707008", "score": "0.6014465", "text": "public function testAssetServerGet()\r\n {\r\n\r\n }", "title": "" }, { "docid": "7c04abe0414ec12f0c7ebc38729ca7ec", "score": "0.6012649", "text": "public function testRetrieveTemplate13()\n {\n }", "title": "" }, { "docid": "e54e9d04eae4f50f77d55a7470c50f94", "score": "0.60040975", "text": "public function testUserlogsAddGet()\n {\n }", "title": "" }, { "docid": "57abcd37adfaebb8f3d89f4d08950eef", "score": "0.6003552", "text": "public function testGetExportResult()\n {\n\n }", "title": "" }, { "docid": "c5166be00b4a58c99c298cebec8a629e", "score": "0.6002417", "text": "public function testRetrieveTemplate18()\n {\n }", "title": "" }, { "docid": "e5feccaa76cffcdf69efe3a7723a4922", "score": "0.5980231", "text": "public function testCheckoutsGet()\n {\n }", "title": "" }, { "docid": "9a959ff80e44871998cb2323006d1ae9", "score": "0.59763587", "text": "public function testProductSizesCountGet()\n {\n\n }", "title": "" }, { "docid": "a766b52a6f734c74e1705219cbce9973", "score": "0.59735", "text": "public function testRetrieveImportDocuments()\n {\n }", "title": "" }, { "docid": "2ce3c7f1685426410bf49fde427f9c21", "score": "0.5970535", "text": "public function testTopupTopupServiceQuery()\n {\n\n }", "title": "" }, { "docid": "bbb2d5f22f31e5e31380172aa4340118", "score": "0.59685236", "text": "public function testRetrieveAll12()\n {\n }", "title": "" }, { "docid": "0b9608075f2593e39fe4d54314f3d5ed", "score": "0.59684944", "text": "public function testSucceedOnCorrectData()\n {\n\n }", "title": "" }, { "docid": "486d4bc692f7961c8b5f5f9810db64da", "score": "0.5957979", "text": "public function testProductSizesIdMaterialsCountGet()\n {\n\n }", "title": "" }, { "docid": "92c19c46b4f1e1540973b4ca36ae5962", "score": "0.595646", "text": "public function testSalesProbabilitiesCountGet()\n {\n\n }", "title": "" }, { "docid": "cc26a2645c939e5989ea56b8def05184", "score": "0.5956452", "text": "public function testRetrieveMeetings()\n {\n }", "title": "" }, { "docid": "54e8a52f09b4f287c3f0632b20b4e44b", "score": "0.59564316", "text": "public function testProductSizesIdSizeMaterialsCountGet()\n {\n\n }", "title": "" }, { "docid": "eee2e557cb79df023a2d9ad3fd54df43", "score": "0.59443337", "text": "public function testRetrieveAll27()\n {\n }", "title": "" }, { "docid": "4141b3fb3a0dc0f310c829e8ec5bdb79", "score": "0.5943689", "text": "public function testSecurityMappingGet()\r\n {\r\n\r\n }", "title": "" }, { "docid": "bf65d746d314c6e45d50fba7ac7907b8", "score": "0.5941799", "text": "public function testTeamRead()\n {\n }", "title": "" }, { "docid": "ea3ba5e5045840b3e8d7b5af7e45f73e", "score": "0.593969", "text": "public function testDocumentTicketsGetForProfile()\n {\n }", "title": "" }, { "docid": "db1ea2b224f878035eeff09a9f18194b", "score": "0.59392273", "text": "public function testRetrieveTemplate12()\n {\n }", "title": "" }, { "docid": "b2d6332d2511bd7aa70dce40adcc0504", "score": "0.59384495", "text": "public function testRetrieveOne1()\n {\n }", "title": "" }, { "docid": "2c086dace16d23a9c712f87d5ef38733", "score": "0.5935097", "text": "public function testRetrieveAll7()\n {\n }", "title": "" }, { "docid": "7c7ee1719886cbb6fe42e5492743afde", "score": "0.5934169", "text": "public function testAssetServerGetByName()\r\n {\r\n\r\n }", "title": "" }, { "docid": "4dce03e4d5fc53027af57216afd5d1e6", "score": "0.5934068", "text": "public function testGetClientHoldingUsingGet()\n {\n }", "title": "" }, { "docid": "3cc06eeaa665e15c29bb3425d0a091d0", "score": "0.5933234", "text": "public function testPortalImageFoldersIdPortalGet()\n {\n\n }", "title": "" }, { "docid": "85df5c8f02f5de00dee7663e2685bd7c", "score": "0.59296495", "text": "public function testProductSizesIdProductsCountGet()\n {\n\n }", "title": "" }, { "docid": "660bb5b41caac1369efe4ff0cb671dba", "score": "0.5927888", "text": "public function testGetClientResponseUsingGet()\n {\n }", "title": "" }, { "docid": "fea3c0229d693622d2c55563d1d68500", "score": "0.5916479", "text": "public function testGetRecentProducts()\n {\n }", "title": "" }, { "docid": "286bc88eed04b92e92209791e804d22c", "score": "0.59147096", "text": "public function testRetrieveProduct()\n {\n }", "title": "" }, { "docid": "4a2855c71a17e2de231b29a47fe7cf1b", "score": "0.59078455", "text": "public function testEditPdfGetMetadata()\n {\n }", "title": "" }, { "docid": "b943ca38304d7e5996e542e6046b1aa6", "score": "0.5904306", "text": "public function testPlaceOrderPositiveAsap() {\n\n }", "title": "" }, { "docid": "bcb7f25de0661b002eee9be57c1d2440", "score": "0.59042823", "text": "public function testRetrieveTemplate9()\n {\n }", "title": "" }, { "docid": "861e6b22893cb294c292bf95aa9312c1", "score": "0.5897307", "text": "public function testProductTypesIdSizesGet()\n {\n\n }", "title": "" }, { "docid": "a6c2722b39387c79b898b01f682c4832", "score": "0.5895309", "text": "public function testRetrieveTemplate11()\n {\n }", "title": "" }, { "docid": "7b0727de8bd8dc39474394b1630b086a", "score": "0.5894286", "text": "public function test_getMemberMetaIndustries() {\n\n }", "title": "" }, { "docid": "84d4b13fd8b7fbef9c5be378f6ef1201", "score": "0.588708", "text": "public function testProductSizesIdMaterialsFkGet()\n {\n\n }", "title": "" }, { "docid": "fe7a1fa2217dc58dd2b5c6fb5c89dacf", "score": "0.58861715", "text": "public function testPortalImageFoldersIdExistsGet()\n {\n\n }", "title": "" }, { "docid": "f4cf8bb0926c2f87df2f1a6a0c64c947", "score": "0.58829665", "text": "public function testPortalImageFoldersGet()\n {\n\n }", "title": "" }, { "docid": "c03e33f82af6ec5bbddaefdd67de56ac", "score": "0.5877365", "text": "public function testGetStoreItem()\n {\n }", "title": "" }, { "docid": "5295edb03a82daf980e16eb2e5aae3ee", "score": "0.58761746", "text": "public function testResourcesGetResourceList()\n {\n }", "title": "" }, { "docid": "de27b99906f60072cc76b9d877497723", "score": "0.5871299", "text": "public function testGetExportHistory()\n {\n\n }", "title": "" }, { "docid": "7c1ed99c5a7bd8d2d3b651ba85496c4f", "score": "0.58661175", "text": "public function testMembersIdProofGet()\n {\n }", "title": "" }, { "docid": "f1d0e0b5db922ef2084ee8c0016d8596", "score": "0.58637553", "text": "public function testRetrieveAll11()\n {\n }", "title": "" }, { "docid": "88ff3586ab5ca728f6400d10c4d0b078", "score": "0.5861656", "text": "public function testProductSizesIdSizeMaterialsFkGet()\n {\n\n }", "title": "" }, { "docid": "c9cb271ddf41c785b8b8a5b44a9f5bbe", "score": "0.58600867", "text": "public function test_getAsnById() {\n\n }", "title": "" }, { "docid": "870e9e1c865a6f6a8d736ea9f9fea8a9", "score": "0.58568984", "text": "public function testGetClientGoalOverviewUsingGet()\n {\n }", "title": "" }, { "docid": "d6e96efe0d44831c47f9778c196b2b7d", "score": "0.5853198", "text": "public function testGetStoreItems()\n {\n }", "title": "" }, { "docid": "75c775991ef415a1530c770af56c38f5", "score": "0.58450705", "text": "public function testListLodgingBusiness()\n {\n }", "title": "" }, { "docid": "6f8e96a31105853d77c8d5077e1c0e07", "score": "0.58416945", "text": "public function testTargetPost()\n {\n }", "title": "" }, { "docid": "21dcf91697a4678eab0810dc1f7fac45", "score": "0.58409125", "text": "public function testGetAuditRecords()\n {\n }", "title": "" }, { "docid": "6835bad35d5d414fce84da89d5405ea7", "score": "0.5839515", "text": "public function testGetClientResponseAllUsingGet()\n {\n }", "title": "" }, { "docid": "5a20c098bd75c699926a373cc5c94dc3", "score": "0.5833955", "text": "public function testDocumentTicketsGetForTaskAttachement()\n {\n }", "title": "" }, { "docid": "75dfe8baaa0d8d6f9bee45bdc1ee16c3", "score": "0.58268726", "text": "public function testDocumentTicketsGetForTask()\n {\n }", "title": "" }, { "docid": "ea73a7e83f4113181069d3924d5c44a8", "score": "0.5826497", "text": "public function testRetrieveAll9()\n {\n }", "title": "" }, { "docid": "4600886f5edea59942c9e5273a537f44", "score": "0.58257985", "text": "public function testProductSizesIdTypeGet()\n {\n\n }", "title": "" }, { "docid": "6f36c510d3f45f8baafd7fddf7d9513a", "score": "0.5822183", "text": "public function testImportationGetProductSample()\n {\n\n }", "title": "" }, { "docid": "f51045ee08aeac0a85e564d9aea76668", "score": "0.5822096", "text": "public function test_getDuplicateWorkById() {\n\n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a9f3087c670394bb8a38b026be8427f2", "score": "0.0", "text": "public function edit($movieId, $linkId)\n {\n $link = Link::findOrFail($linkId);\n return view('admin.movies.links.edit', compact('link'));\n }", "title": "" } ]
[ { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.78550774", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "12344b4793bc2e378f8fdd2f04320aeb", "score": "0.7273195", "text": "public function edit($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}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "4d5d18dc7cabac2506b6086630c9acb9", "score": "0.7242132", "text": "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "title": "" }, { "docid": "a3a195b464d234c71899dfdebe78664c", "score": "0.7170847", "text": "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "title": "" }, { "docid": "735e1e8b4f110a9df09910db5ed28525", "score": "0.70622855", "text": "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 }", "title": "" }, { "docid": "df9ef4b827a35145a7d49229d8d654e6", "score": "0.7053459", "text": "public function edit()\n {\n return view('hirmvc::edit');\n }", "title": "" }, { "docid": "2700b4584dcb331a456886a0b54f1cac", "score": "0.6982539", "text": "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "title": "" }, { "docid": "7015d85230c410c83e5c3b96459d2488", "score": "0.69467914", "text": "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "c965649a7ba5f0e8f2fd7cd5676199ff", "score": "0.6941114", "text": "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "title": "" }, { "docid": "0b802a8c6fbeff606ae9845125b51b1f", "score": "0.6928077", "text": "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "title": "" }, { "docid": "7a650e1d62608ea65e940ca06f689f99", "score": "0.69019294", "text": "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "8305d0cebc3fd201d190bc1ff4575a6f", "score": "0.6877213", "text": "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "title": "" }, { "docid": "f95123f624fcac74c93244c3dcd7923c", "score": "0.68636996", "text": "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "title": "" }, { "docid": "029c40433076476698bab79003ba1eac", "score": "0.68592185", "text": "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "title": "" }, { "docid": "0f6e23876619bd02375dcf677873df5a", "score": "0.68566656", "text": "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "title": "" }, { "docid": "58f182fa72be87d030c1b48e925f743d", "score": "0.6844697", "text": "public function edit($model, $form);", "title": "" }, { "docid": "40fdf360e2a2fe9a039cdea2bf794a48", "score": "0.68336326", "text": "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "title": "" }, { "docid": "e87e3665ac283ab07f5b91b9cb754a1f", "score": "0.6811471", "text": "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "title": "" }, { "docid": "72e898b8c2d147e0531320a9f99a3e5c", "score": "0.68060875", "text": "public function edit()\n { \n return view('admin.control.edit');\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "873a08d0f357fca631ccc7259052d9ce", "score": "0.68018645", "text": "public function edit()\n {\n return view('common::edit');\n }", "title": "" }, { "docid": "56f882f09bfc4c18dddc6ba2d8e29555", "score": "0.6795623", "text": "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "a73ca49bf4104fffbbb3887f1d83346f", "score": "0.6787701", "text": "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "title": "" }, { "docid": "9167ed1c94ca05e3aa0a462771337864", "score": "0.67837197", "text": "public function edit($id)\n {\n // show form edit user info\n }", "title": "" }, { "docid": "d44ef601c5e9f7e942e5a68e74ecc457", "score": "0.67791027", "text": "public function edit()\n {\n return view('escrow::edit');\n }", "title": "" }, { "docid": "b93606e8c8e9ed17a06d96c4b3b11fc2", "score": "0.677645", "text": "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "title": "" }, { "docid": "12bdbc0881bdb0537af82ab982da6faa", "score": "0.6768301", "text": "public function edit()\n {\n return view('commonmodule::edit');\n }", "title": "" }, { "docid": "05f57ca78e160cfe2110eccf7f3a10ea", "score": "0.6760122", "text": "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.67458534", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.67458534", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "057b48bb7cf2107466c426e2c9e428fe", "score": "0.67443407", "text": "public function edit(form $form)\n {\n //\n }", "title": "" }, { "docid": "f9e5424b4794ef21c15b578cbc28a1d4", "score": "0.67425704", "text": "public function actionEdit($id) { }", "title": "" }, { "docid": "8b27a5d0d56573cd0526956c4be2a450", "score": "0.6739898", "text": "public function edit()\n {\n return view('admincp::edit');\n }", "title": "" }, { "docid": "420751bbdaa6a3e9ce74ca98cfc852ff", "score": "0.6735328", "text": "public function edit()\n {\n return view('scaffold::edit');\n }", "title": "" }, { "docid": "0c03561e0ce1cb5632190d2eb5636b81", "score": "0.6725465", "text": "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "title": "" }, { "docid": "59b6b275f7f7bdc3e6848165ec89de06", "score": "0.6712817", "text": "public function edit()\n {\n return view('Person.edit');\n }", "title": "" }, { "docid": "cc9a7c5c0bba9badc64824e64ad66ec7", "score": "0.6693891", "text": "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "title": "" }, { "docid": "08fdc9a6d2cb6c51ef14f944a771fea4", "score": "0.6692419", "text": "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "title": "" }, { "docid": "530ff07fca3d2cdb52201dd4570056f6", "score": "0.6688581", "text": "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "title": "" }, { "docid": "2842c83192ad21ca42ea8be34a5324f1", "score": "0.66879624", "text": "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "title": "" }, { "docid": "985a86faecdde4f47bba95d71e646057", "score": "0.6687282", "text": "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "title": "" }, { "docid": "4f3dccb85a68cbb954df9ad9a4d0c25d", "score": "0.6684741", "text": "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "title": "" }, { "docid": "b53d80e937efeb059b69199175992b44", "score": "0.6682786", "text": "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "title": "" }, { "docid": "772ff40e86b6072150a529eefbe46c86", "score": "0.6668777", "text": "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "title": "" }, { "docid": "a866851a953591797ad217ce1686028b", "score": "0.6668427", "text": "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "e79377a38e4c0fdd514a4167f11b8442", "score": "0.66610634", "text": "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "title": "" }, { "docid": "0cf3ddf2600f6d70303c0ca4aa94aa89", "score": "0.6660843", "text": "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "title": "" }, { "docid": "fdab95c905028bb144a7c323dab4884b", "score": "0.66589665", "text": "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "title": "" }, { "docid": "080eb7499f3bccf04762f81a141f1e34", "score": "0.66567147", "text": "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "title": "" }, { "docid": "f61beedf1cb6c464918dfa2ec389b88b", "score": "0.66545695", "text": "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "title": "" }, { "docid": "f5568b3447ac8c8c12f9bc6a8de66b3c", "score": "0.66527975", "text": "public function edit($id)\n {\n return view('models::edit');\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6642529", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "7ca622cf6dbeec972ce3ab725ada0358", "score": "0.6633056", "text": "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "title": "" }, { "docid": "05d5ea89da5bc76e1a1148ffdc9d5801", "score": "0.6630304", "text": "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "ec626b485a600d64d167d3b54d2af93f", "score": "0.66192114", "text": "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "ccaf467c5fc185957b7bbec44b0dddcf", "score": "0.6619003", "text": "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "title": "" }, { "docid": "b5f11e2c797c5ed655b45c6b0df67626", "score": "0.66153085", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "d6c2c7e0ddbac0b65be0ee74a7fcd796", "score": "0.6614968", "text": "public function edit($id)\n {\n return view('consultas::edit');\n }", "title": "" }, { "docid": "bec91377e793a1e58fadee263ea69b6e", "score": "0.6609744", "text": "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "f705c05684e4a60636265036a98fcf09", "score": "0.66060555", "text": "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "title": "" }, { "docid": "73169648ddd0200192761e17f4dfed05", "score": "0.6596137", "text": "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "title": "" }, { "docid": "b3cc35921277d5c959b0d4b0de6d3d0f", "score": "0.65950733", "text": "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "title": "" }, { "docid": "e7be58945b899b23f7cc223134375494", "score": "0.6594648", "text": "public function edit() {\n return view('routes::edit');\n }", "title": "" }, { "docid": "6b57f743c86e1cb53617211701b2f779", "score": "0.65902114", "text": "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "title": "" }, { "docid": "4d4834770663719d1d6fa92e65878895", "score": "0.6589043", "text": "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "1c60b7ff7cd4005ccd1de1562140d086", "score": "0.6587102", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "a6c6b148776a004b9feea4845a365f72", "score": "0.65799844", "text": "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "title": "" }, { "docid": "81d1f6f06bfcdaa0b1c2aa0910b87036", "score": "0.65799403", "text": "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "title": "" }, { "docid": "95e99992e10680bf999526cf4d94a731", "score": "0.65799177", "text": "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "title": "" }, { "docid": "c1518fb861e052fa4f53eaaa8fcf65df", "score": "0.657708", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "title": "" }, { "docid": "fc385869569abe1127cb801f92e4d8a2", "score": "0.65760696", "text": "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "title": "" }, { "docid": "1458051dfc97d0a20c103d39be5d2324", "score": "0.65739626", "text": "public function edit()\n {\n return view('website::edit');\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "7a2a16aa982fa32e1bbf88f19cbc245d", "score": "0.6567826", "text": "public function edit()\n {\n return view('initializer::edit');\n }", "title": "" }, { "docid": "ce8838daca364c19746373e3d442ca46", "score": "0.65663105", "text": "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "ab321968ce813a175af5fb95680495f5", "score": "0.65660435", "text": "public function edit($id)\n {\n return view('backend::edit');\n }", "title": "" }, { "docid": "dafb67bfcec13ce7ccc2d28dc5d02dc8", "score": "0.65615267", "text": "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "6523d6126b9b35352d6e67eca4d76647", "score": "0.65576506", "text": "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "title": "" }, { "docid": "9032cc93e2789bb98c62248bccbec226", "score": "0.655686", "text": "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "title": "" }, { "docid": "3fa16587d81f6f3170fd8d7c55fc57c9", "score": "0.6556527", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "title": "" }, { "docid": "abfaba17709e0fd3b8f201341ba593da", "score": "0.6555543", "text": "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "title": "" }, { "docid": "f0635c3926f56ba925042e937788c12f", "score": "0.6555445", "text": "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "title": "" }, { "docid": "f02b43ff1accd9cadee724fad05480c8", "score": "0.65552044", "text": "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "title": "" }, { "docid": "5ae1d13c46c87141909390a24f3cd093", "score": "0.65543956", "text": "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "title": "" }, { "docid": "61c9cefa779d8688643cb83ba73b2c77", "score": "0.65543705", "text": "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "title": "" }, { "docid": "0888eb9ecf2df4527b7e452af133b163", "score": "0.6548264", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "131a66068bf3a29035ad63b0b9508d37", "score": "0.65475875", "text": "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "title": "" }, { "docid": "7baf494547bacaa08c51d0b12666cfb3", "score": "0.65447706", "text": "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "67cdbb29541c9da230a2fe9b86b87ebd", "score": "0.0", "text": "public function create()\n\t{\n\t\t//\n\t\t//check if user is logged in\n\t\tif(!\\Auth::check())\n\t\t{\n\t\t\treturn redirect('welcome');\n\t\t}\n\n\t\t$drivers = array();\n\t\t$drivers_query = \\DB::table('drivers')->get();\n\n\t\tforeach ($drivers_query as $driver) {\n\t\t\t$drivers [] = array(\n\t\t\t\t\t$driver->id => $driver->name . ' ' . $driver->last_name \n\t\t\t\t);\n\t\t}\n\n\t\treturn view('bills.create', compact('drivers'));\n\t}", "title": "" } ]
[ { "docid": "a5a742c5eb76d32c32823659c256e71f", "score": "0.78349334", "text": "public function actionCreate() {\n $this->render('resource_create');\n }", "title": "" }, { "docid": "246a2b1ff9c2e296275420128d62692d", "score": "0.7763876", "text": "public function create()\n {\n return view(\"aasource.addform\");\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.756992", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.756992", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "012fdc290aa72d4266b090e3a18611f3", "score": "0.7523135", "text": "public function create()\n\t{\n return View::make('resources.create');\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.74919313", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "5d140c321df7acb8c739eadcc5bc3d54", "score": "0.74661094", "text": "public function create()\n {\n return view('laramanager::resources.create');\n }", "title": "" }, { "docid": "4408460962e2d641154ff1e778cccd2d", "score": "0.7410779", "text": "public function create()\n {\n $view_elements = [];\n \n $view_elements['page_title'] = 'Resources'; \n $view_elements['component'] = 'resources'; \n $view_elements['menu'] = 'resources'; \n $view_elements['breadcrumbs']['All Resources'] = array(\"link\"=>'/resources',\"active\"=>'1');\n \n\n $view = viewName('resources.add');\n return view($view, $view_elements);\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.73912597", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "e3088f55fa2e4660ea43003f9f05103e", "score": "0.7387239", "text": "public function create()\n\t{\n\t\treturn view('subResourceDetails.create');\n\t}", "title": "" }, { "docid": "8346857a727217603e3b507224e6f4fb", "score": "0.7357516", "text": "public function create()\n {\n return view(\"form\");\n }", "title": "" }, { "docid": "d56752c440e87fca7ccd76e6743512e6", "score": "0.73480177", "text": "public function create()\n\t{\n\t\treturn View::make('catalogue.form');\t\n\t}", "title": "" }, { "docid": "a88dfafe57fd2497dd585577ba27a652", "score": "0.7346833", "text": "public function create()\n {\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('pages.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "33b0ce2d35b3db36c2ec35ffb91a2cba", "score": "0.7338066", "text": "public function showCreateForm(){\n return view('client.create');\n }", "title": "" }, { "docid": "e1c4a637db2fd84ef7dabb5b305e9961", "score": "0.7335764", "text": "public function create()\n {\n $resource = $this->resource;\n $resource['action'] = 'Create';\n return view('dashboard.views.'.$this->resources.'.create',compact( 'resource'));\n\n }", "title": "" }, { "docid": "e6adbf3fbac4429738c92777eeac55a6", "score": "0.7329262", "text": "public function create()\n {\n $this->authorize('create', Form::class);\n\n return view('forms.create');\n }", "title": "" }, { "docid": "d3a655273e3662ac11954ec099dd187c", "score": "0.7279091", "text": "public function create()\n {\n //\n $data = array('new' => True,\n 'contentTitle' => 'Registrar Livro',);\n return view('bookform', $data);\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.7276815", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "70a09b9f9f3cf55e7b53ed7137155a00", "score": "0.7270625", "text": "public function create()\n {\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('countries.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "c5dd91fcabe4863a8febd91fd23029bc", "score": "0.72357315", "text": "public function create()\n {\n return view ('penilaian.form');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.7216403", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "21f60e4229ecd12f595a1f02490e2be5", "score": "0.72059435", "text": "public function create()\n\t{\n\t\tdd('show create form');\n\t}", "title": "" }, { "docid": "99deb8b0d3d11f3aacdf9b0837643062", "score": "0.71813476", "text": "public function create()\n {\n return view('Meringue/Form/views/new');\n }", "title": "" }, { "docid": "a46b2fb11623e72b333198e2c3c5bf3c", "score": "0.717158", "text": "public function create()\n {\n $this->authorize('create', [ShowBusinessIdeas::class]);\n\n return view('resourceRoute.create');\n }", "title": "" }, { "docid": "f5c4717b4547490715e81217fb91fcef", "score": "0.7169098", "text": "public function create() {\n $this->setObject();\n $record = $this->object;\n $page_title = \"Create {$this->singular_name}\";\n $route = $this->route;\n $form_fields = $this->setLabelClass($this->fields_config['form_fields']); \n return view($this->view . '.create', compact('record', 'page_title', 'route', 'form_fields'));\n }", "title": "" }, { "docid": "f2873502c738e8bf31240f26e62893fc", "score": "0.71515846", "text": "public function create()\n {\n\t\t\treturn view('partner.form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c403d39d383b8b091f07950a420dc3f5", "score": "0.7112058", "text": "public function create()\n\t{\n\n\t\treturn view('new');\n\n\n\t}", "title": "" }, { "docid": "05a788f6cee6a481e60579669c5fc2cd", "score": "0.7108598", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make(\"newUserForm\");\n\t}", "title": "" }, { "docid": "52886d3e49bbf4a926e71b6960578798", "score": "0.7099663", "text": "public function create()\n {\n //displaying form to create task\n return view('crud.create');\n }", "title": "" }, { "docid": "d304f8f134892d68ca540b0b858fd6cd", "score": "0.70845777", "text": "public function create()\n {\n return view('Home.add-new');\n }", "title": "" }, { "docid": "d1aa4707a9c6ebf5c8103249dbc1a2a3", "score": "0.7083876", "text": "public function create()\n {\n $view = 'create';\n\n $active = $this->active;\n $word = $this->create_word;\n $model = null;\n $select = null;\n $columns = null;\n $actions = null;\n $item = null;\n\n return view('admin.crud.form', compact($this->compact));\n }", "title": "" }, { "docid": "5dcbca5c2b296e16817ce45da193474b", "score": "0.7080707", "text": "public function create()\n {\n return view ('nafila.add');\n }", "title": "" }, { "docid": "dc7d007f8e9a89a82e7dd48856914140", "score": "0.70697504", "text": "public function newAction()\n {\n \t$this->_helper->noCacheHeader();\n\n \t// check if the backButton is diabled if so redirect\n\t\tif (isset($this->_namespace->noBackButton)) {\n\t\t\t$this->_redirectToDefault();\n\t\t}\n\n \t$this->view->form =\t$this->_service->getPopulatedForm(null, false);\n \t$this->_viewRenderer->render($this->_viewFolder . '/form', null, true);\n }", "title": "" }, { "docid": "05e2241ee7d60144e91c052c80c01ae0", "score": "0.7059657", "text": "public function newAction()\n {\n $entity = new Book();\n $form = $this->formFactory->create(new BookType(), $entity);\n\n return $this->templating->renderResponse('elseymShelfBundle:Book:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "533cfd54aea57067b2e130dc0d9b0d25", "score": "0.70582896", "text": "public function create()\n {\n return view('conection.form');\n }", "title": "" }, { "docid": "29f2d81a8230f1a71f0b822e8888c4b6", "score": "0.70482945", "text": "public function create()\n\t{\n\t\t//load the create form\n\t\treturn View::make('products.create');\n\t}", "title": "" }, { "docid": "eef8c1edfb3ab338d65c165479d67819", "score": "0.7040006", "text": "public function create()\n {\n return view('.form');\n }", "title": "" }, { "docid": "201ef6ea5f0160eb38fbe375126231cb", "score": "0.7029377", "text": "public function create()\n\t{\n\t\treturn View('materi.create');\n\t}", "title": "" }, { "docid": "b4abce55cb4a2ce8c33525b5a465907f", "score": "0.70236725", "text": "public function create()\n {\n return view(\"dashboard.car.create-edit\");\n }", "title": "" }, { "docid": "69091643d0249f6381b6ffd4215df94c", "score": "0.7020479", "text": "public function create()\n {\n return view('admin.books.book-form');\n }", "title": "" }, { "docid": "a1f0d1fef33570d235574b68a0aebcaf", "score": "0.7002854", "text": "public function create()\n {\n return view('fp4forms.create');\n }", "title": "" }, { "docid": "8c02f51227a2ebf45d5aa88aa1fbdd14", "score": "0.70017636", "text": "public function create()\n {\n return view('forms.create_late');\n }", "title": "" }, { "docid": "9ba9ef4da9377c7d495a4dbf879551a4", "score": "0.6997649", "text": "public function create()\n\t{\n\t\treturn 'This should render the view to create a new resource!!';\n\t}", "title": "" }, { "docid": "e3b7436816780585c955089205ac6539", "score": "0.69961286", "text": "public function newAction()\n {\n $this->view->form = new PersonajeForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "21ac5bcda502a99b37477c3732d29a10", "score": "0.69956243", "text": "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Inicio\", $this->get(\"router\")->generate(\"home_page\"));\n $breadcrumbs->addItem(\"Usuario\", $this->get(\"router\")->generate(\"usuario\"));\n $breadcrumbs->addItem(\"Nuevo\", $this->get(\"router\")->generate(\"usuario_new\"));\n\n $entity = new Usuario();\n $form = $this->createForm(new UsuarioType(), $entity);\n\n return $this->render('UsuarioBundle:Usuario:new.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "1cd57fc10fe9533cb291e668546ebc3f", "score": "0.69889283", "text": "public function createAction()\n {\n $action = $this->view->url(['action' => 'save'], 'controllers');\n $this->view->userForm = $this->service->getFormForCreating($action);\n }", "title": "" }, { "docid": "fd33fc0da35476a9bd97bd2366215cad", "score": "0.6987248", "text": "public function actionCreate()\n {\n return $this->render('create');\n }", "title": "" }, { "docid": "fd33fc0da35476a9bd97bd2366215cad", "score": "0.6987248", "text": "public function actionCreate()\n {\n return $this->render('create');\n }", "title": "" }, { "docid": "552c23a4878608a4c2d75ce4352fa7ec", "score": "0.69829804", "text": "public function create()\n {\n return view('add.create');\n }", "title": "" }, { "docid": "19bcb614303c40b1d1ee9ab328c61c1b", "score": "0.69811475", "text": "public function showCreateForm(){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('SHOW_CREATE_FORM');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Get Create Form Title\n\t\t$title = $this->openFile(\"core/fragments/users/newUserTitle.phtml\");\n\t\t\n\t\t//Get Create Form\n\t\t$form = $this->openFile(\"core/fragments/users/newUser.phtml\");\n\n\t\t//Set form content to show\n\t\t$this->setContentTitle($title);\n\t\n\t\t//Set form content to show\n\t\t$this->setContent($form);\n\t}", "title": "" }, { "docid": "cab3875b40e1926cadf5d240d5755c33", "score": "0.698042", "text": "public function create()\n\t{\n\t\treturn view('add');\n\t}", "title": "" }, { "docid": "7b27be70fa64e0a7965ca1f5f2324b8d", "score": "0.6979248", "text": "public function create()\n {\n //\n return view('new.create');\n }", "title": "" }, { "docid": "a4ac77c2b41d5381f9f521f9a9ef9c15", "score": "0.69751894", "text": "public function create()\n {\n return view('manage::create');\n }", "title": "" }, { "docid": "16ebda2fce028f53ff9acd2cdb27e61a", "score": "0.697101", "text": "public function create()\n {\n return view('prijave.create');\n }", "title": "" }, { "docid": "f6da1d0450698bec5313ba023877e2c9", "score": "0.69681567", "text": "public function create()\n {\n return view(\"librarians.create\");\n }", "title": "" }, { "docid": "1c39811f7717ee4b671fb0dabc86d306", "score": "0.6966896", "text": "public function create()\n {\n //\n return view('Sponsors/Admin/form');\n }", "title": "" }, { "docid": "b9dcd814df4a67ac3130f45aff38f1ee", "score": "0.69653094", "text": "public function create()\n {\n return view('nbform.create');\n }", "title": "" }, { "docid": "67affbe8defecaec0068c8df880bef78", "score": "0.6956742", "text": "public function create()\n {\n return view('hr::create');\n }", "title": "" }, { "docid": "3ff55b7631fd394f17ff84e6d8858428", "score": "0.6954309", "text": "public function create()\n {\n \n return view('pabrik.create');\n }", "title": "" }, { "docid": "faab52446786eb57de6d45ef5c9751a9", "score": "0.6951829", "text": "public function create()\n {\n $countries = Country::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('cities.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "8ed65484ff2ee4c220e635b0137f51c9", "score": "0.69484603", "text": "public function create()\n {\n return view('show.create');\n }", "title": "" }, { "docid": "13cfb81541a9764e54a683020f59b8bd", "score": "0.69483113", "text": "public function create() {\n $breadcrumb = [\n 'pageLable' => 'Create '.$this->className,\n 'links' => [\n ['name' => 'Create '.$this->className]\n ]\n ];\n return view('backend.layouts.form.create',\n $this->preparedCreateForm())\n ->with(['className' => $this->className, 'breadcrumb' => $breadcrumb])\n ->with('formAttributes', $this->formAttributes);\n }", "title": "" }, { "docid": "07b43788dfee25823f1bfa779101007b", "score": "0.6947309", "text": "public function create()\n {\n return view('hrm::create');\n }", "title": "" }, { "docid": "edcff5ad61f56a5f713509f282ab987f", "score": "0.6946488", "text": "public function create()\n {\n //return form\n return view('admin.store.create');\n }", "title": "" }, { "docid": "86e74634806a61ed0f710d1b4aa1b622", "score": "0.6941717", "text": "public function create()\n {\n //return create view\n return view($this->getViewFolder().'.create',[\n 'properties' => $this->model->getPropertiesCreate(),\n 'resource' => $this->resource\n ]);\n }", "title": "" }, { "docid": "5e44d678b4e0518c96aebd2237cd5c11", "score": "0.6939699", "text": "public function create()\n {\n return view('dashboard.post.form_create');\n }", "title": "" }, { "docid": "9d347981a9dc58fed97cdffb7431509a", "score": "0.6939164", "text": "public function create()\n\t{\n\t\treturn view('admin.marca.new');\n\t}", "title": "" }, { "docid": "c8545d13c92a2bfc49784e47f3eece3a", "score": "0.6934077", "text": "public function create()\n {\n // Menampilkan form create\n return view('mahasiswa.create');\n }", "title": "" }, { "docid": "a8643f5298a2feeab2dd1817ae9a5e62", "score": "0.69335914", "text": "public function create(){\r\n\t\t\t$this->view('create');\r\n\t\t}", "title": "" }, { "docid": "62264d4253eb3b74399ec1e90a8bbcda", "score": "0.69304025", "text": "public function newAction()\n {\n $entity = new Phone();\n $form = $this->createForm(new PhoneType(), $entity);\n\n return $this->render('JblStudioBundle:Phone:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "64f42d4ca1c0601a437ae6c5d9a1f2a9", "score": "0.69275385", "text": "public function create()\n {\n return view(\"residentials.add\");\n }", "title": "" }, { "docid": "03eea4206e77f982ad1e30911c57b32a", "score": "0.6927104", "text": "public function create()\n {\n return view('matakuliahs.create');\n }", "title": "" }, { "docid": "8e841fda4e78530e752dec74ec809b42", "score": "0.6926018", "text": "public function create()\n {\n return view('ryutsuisen::role.form');\n }", "title": "" }, { "docid": "58cf4220e8a5e664b1119cbca77648f3", "score": "0.6925215", "text": "public function create()\n {\n $data = array_merge([\n 'tabs' => TabManager::get($this->getModel()->getTable()),\n $this->getResourceName() => $this->getModel(),\n ], $this->getFormData('create'));\n\n return view(\"{$this->viewPath}.create\", $data);\n }", "title": "" }, { "docid": "4e929a4b2808dee4d30b9afc14bcf480", "score": "0.691564", "text": "public function create()\n {\n return view('landlord.add');\n }", "title": "" }, { "docid": "6945326379d789dcaf379e8368057f99", "score": "0.69144803", "text": "public function newAction()\n {\n $entity = new Rezyser();\n $form = $this->createCreateForm($entity);\n\n return $this->render('AppBundle:Rezyser:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "0fb248e24532b7357981b8412bbcd700", "score": "0.6914198", "text": "public function create()\n {\n return view('buku.form');\n }", "title": "" }, { "docid": "a09a0efe9eece0c7f21dac4f5e096ee9", "score": "0.69114697", "text": "public function create()\n {\n return view('objectAdmin.create');\n }", "title": "" }, { "docid": "efb1a49f7e393c53db8698527f5440e8", "score": "0.69075084", "text": "public function create()\n\t{\n\t\treturn view('admin.book.create');\n\t}", "title": "" }, { "docid": "74bad321580cd692d72a5bc68292375c", "score": "0.6904983", "text": "public function create()\n {\n return view('projects.form', ['project' => new Project()]);\n }", "title": "" }, { "docid": "d135d57cf231c80bd81581e84bc5d101", "score": "0.68969667", "text": "public function create()\n {\n return view(\"pages.mahasiswa.form\");\n }", "title": "" }, { "docid": "e193be5267ce5df3d9a89c422be1cdf0", "score": "0.68959963", "text": "public function newAction()\n {\n $repertoire = new Repertoire();\n $form = $this->createForm( RepertoireType::class, $repertoire);\n\n \n\t\treturn $this->render('repertoire/new.html.twig', array( 'repertoire' => $repertoire,\n 'form' => $form->createView(), ));\n }", "title": "" }, { "docid": "1e595d1c40410662eea090eb45d97ba4", "score": "0.68876064", "text": "public function create()\n {\n $model = $this->model;\n $role = Role::pluck('title', 'id')->all();\n return view(\"{$this->view}.form\", compact('model', 'role'));\n }", "title": "" }, { "docid": "e7931b0c0f69aa6a52b8b61f7d2e9a87", "score": "0.6887456", "text": "public function newAction() { \t\n \t$this->view->form = $this->_form; \t\n }", "title": "" }, { "docid": "1964a7650dd5906a93274754d7b9a2d1", "score": "0.6887319", "text": "public function newAction()\n {\n $entity = new Regiao();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CMSConfiguracoesBundle:Regiao:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'error' => null\n ));\n }", "title": "" }, { "docid": "e4e19ff4b09ce0b41c6e81d7794d0b45", "score": "0.68862283", "text": "public function create()\n {\n return view('product-create-form');\n }", "title": "" }, { "docid": "e7b489419b81ae7a77026305a8b01920", "score": "0.6882978", "text": "public function create()\n {\n return view('procrm::create');\n }", "title": "" }, { "docid": "e5666dcb2071335d352cdbc90f7e0f4d", "score": "0.6880109", "text": "public function create() { dd($this);\n return view('forms.create');\n }", "title": "" }, { "docid": "fddc7b44639ba32c68e6fa179d42af11", "score": "0.6880083", "text": "public function create() {\n\t\treturn view('admin::create');\n\t}", "title": "" }, { "docid": "e541aa1606e75bbf5778d3a7f0256cb1", "score": "0.6878223", "text": "public function create() {\n return view('admin.new');\n }", "title": "" }, { "docid": "2185bccd0ff9ecd23830f83e5ad143d4", "score": "0.6877472", "text": "public function create()\n {\n return view('regimen.create');\n }", "title": "" }, { "docid": "9f6a0c281e47a1d0a3dec201147718e6", "score": "0.6875117", "text": "public function newAction()\n {\n $entity = new BaseForms();\n\n $form = $this->createCreateForm($entity);\n\n return $this->render('AppBundle:BaseForms:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "edef682535630deffcd3d6a6fdcdbe2f", "score": "0.6873982", "text": "public function create()\n {\n //\n return view('pages/createitemform');\n }", "title": "" }, { "docid": "64134e0334d9a96a3451da65dbded2e2", "score": "0.68734", "text": "public function newAction()\n {\n $this->readAndSetExtendsTemplate();\n $entity = new Status();\n $form = $this->createForm(new StatusType(), $entity);\n\n return $this->render('HttpiCoreBundle:Status:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'extendsTemplate' => $this->extendsTemplate\n ));\n }", "title": "" }, { "docid": "4a3a37470b286041123bc977ccd01097", "score": "0.6867301", "text": "public function create()\n {\n return view('backend.forms.etudiant.create');\n }", "title": "" }, { "docid": "64be16e54c6140be0cde6c7bfb89beab", "score": "0.68624324", "text": "public function create()\n {\n return view('admin.show.create');\n }", "title": "" }, { "docid": "ad131f9e123018caa9b4e43a222f86af", "score": "0.68600404", "text": "public function create()\n {\n return view ('prelims.create');\n }", "title": "" }, { "docid": "bde062793a4b4defae59a778a806e252", "score": "0.68565065", "text": "public function create()\n\t{\n\t\t$tool = new Tool;\n\t\t$form_data = ['route' => self::$prefixRoute . 'store', 'method' => 'POST'];\n\n\t\treturn view(self::$prefixView . 'form', compact('tool', 'form_data'));\n\t}", "title": "" } ]
7c2c864cd35796ac8af34f6ccdd955a7
returns true if domain is AVAILABLE, else returns false
[ { "docid": "46b91ac3dcacd7b4ecc9d39e9f927dce", "score": "0.693865", "text": "function CheckByWhois($host){\n //generate a set of semi-false results based purely on ping\n sleep(0.1);\n return TRUE;\n\n if($this->DAC1->isAvailable($host)){\n echo \"\\nDomain $host is available!\\n\";\n sleep (0.5);\n return TRUE;\n }else{\n echo \"\\nDomain $host is NOT available!\\n\";\n sleep (0.5);\n return FALSE;\n }\n\n }", "title": "" } ]
[ { "docid": "8d3714d38cb55fb6382430eaf42c726e", "score": "0.744256", "text": "public function hasDomain()\n {\n return isset($this->domain);\n }", "title": "" }, { "docid": "615269dd0aafa44380ea26c517e92732", "score": "0.7275711", "text": "public function isDomainAvailible($domain) {\n //check, if a valid url is provided\n if(!filter_var($domain, FILTER_VALIDATE_URL)) {\n return false;\n }\n\n //initialize curl\n $curlInit = curl_init($domain);\n curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);\n curl_setopt($curlInit,CURLOPT_HEADER,true);\n curl_setopt($curlInit,CURLOPT_NOBODY,true);\n curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);\n\n //get answer\n $response = curl_exec($curlInit);\n\n if(!curl_errno($curlInit)) {\n $info = curl_getinfo($curlInit);\n $status['is_ok'] = true;\n $status['trans_time'] = $info['total_time'];\n }\n else {\n $status['is_ok'] = false;\n $status['trans_time'] = 'n/a';\n }\n\n return $status;\n\n curl_close($curlInit);\n\n }", "title": "" }, { "docid": "195a00fc3517e44cfc2861697089feae", "score": "0.7226788", "text": "static function using_pro_domain()\n\t{\n\t return ( get_option( 'wg-bitly-domain' ) == -1 );\n\t}", "title": "" }, { "docid": "73772a1b3c8ec762471bd0cbf7c40838", "score": "0.70717156", "text": "public function isDomainAvailable($domain)\n {\n $result = $this->apiCall('WHMCS_Misc', 'domain_whois', ['domain' => $domain]);\n return (!empty($result) && $result->status == 'available');\n }", "title": "" }, { "docid": "da11321bd68d3b76e27f68388f08cec2", "score": "0.6897471", "text": "function isHstbeAvailible($domain)\n{\n //initialize curl\n $curlInit = curl_init($domain);\n curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);\n curl_setopt($curlInit,CURLOPT_HEADER,true);\n curl_setopt($curlInit,CURLOPT_NOBODY,true);\n curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);\n\n //get answer\n $response = curl_exec($curlInit);\n\n curl_close($curlInit);\n\n if ($response) return true;\n\n return false;\n}", "title": "" }, { "docid": "7ca4963cfc70253795ad4e09ca6adce2", "score": "0.6883327", "text": "function mod_searchFordomain_domainAv($domainName) {\r\n $domain = $domainName;\r\n $username = \"amrmo_sho\";\r\n $password = \"3mrmosho\";\r\n $contents = file_get_contents(\"http://www.whoisxmlapi.com//whoisserver/WhoisService?domainName=$domain&cmd=GET_DN_AVAILABILITY&username=$username&password=$password&outputFormat=JSON\");\r\n $res = json_decode($contents);\r\n $domainInfo = $res->DomainInfo;\r\n if ($domainInfo) {\r\n if ($domainInfo->domainAvailability == 'AVAILABLE')\r\n return true;\r\n else\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "09fe28926a40d842e867328a3b493f06", "score": "0.68296105", "text": "function subdomain_is_used( $subdomain ) {\n\t$domain = sprintf( \"%s.%s\", $subdomain, settings( 'domain' ) );\n\t$results = db()->get_results( \"select * from sites where domain='$domain' limit 1\", \\ARRAY_A );\n\treturn count( $results ) !== 0;\n}", "title": "" }, { "docid": "3ffcae87663b62661bf19f328d928ee0", "score": "0.68205345", "text": "protected function check_domain_availability($url) {\n return !preg_match('|\\.unavailable/$|', $url);\n }", "title": "" }, { "docid": "f121c29f38051482a30610d67ece1dd0", "score": "0.6798782", "text": "public static function is_online() {\n return checkdnsrr('collabmed.net', 'ANY');\n }", "title": "" }, { "docid": "7c2491c254546b4e5dd4399994913a1b", "score": "0.6746767", "text": "public function hasDomain()\n {\n return $this->has(\n function ($route) {\n return $route->hasDomain();\n }\n );\n }", "title": "" }, { "docid": "54db2fd080d63a7edc6fe3db59926dc0", "score": "0.6710217", "text": "public function is_available() {\n\n\t\t\tif ( $this->enabled == \"yes\" ) {\n\n\t\t\t\tif ( ! is_ssl() && ! $this->status == 'live' ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Required fields check\n\t\t\t\tif ( ! $this->vendor ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t\treturn false;\n\n\t\t}", "title": "" }, { "docid": "f328cf399f19ea9d5054efad4e5f0be0", "score": "0.66898084", "text": "public function domainsCheck($domains) {\n if (is_array($domains)) {\n $domains = implode(',', $domains);\n }\n if (!$this->execute('namecheap.domains.check', array('DomainList' => $domains))) {\n // Communication error\n return FALSE;\n }\n if (FALSE === strpos($domains, ',')) {\n // Only one domain was passed, so just return the availability of that\n // domain.\n $status = ('true' == strtolower((string) $this->Response->DomainCheckResult->attributes()->Available)) ? TRUE : FALSE;\n return $status;\n }\n $r = array();\n foreach ($this->Response->DomainCheckResult as $result) {\n $domain = (string)$result['Domain'];\n $status = ('true' == strtolower((string) $result['Available'])) ? TRUE : FALSE;\n $r[$domain] = $status;\n }\n return $r;\n }", "title": "" }, { "docid": "1d3714a74b2671c7cd54f23d5e93a74b", "score": "0.6689472", "text": "private function _valid_domain($domain=FALSE)\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "ea728538d373cef28be5a3c977c65d1f", "score": "0.66436815", "text": "public static function isAvailable()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2c0b7a196d63f8e6697311a4231e50e0", "score": "0.6631333", "text": "public static function isAvailable();", "title": "" }, { "docid": "26ff3dbecbd36618832704f2a4c47af2", "score": "0.66033995", "text": "public function isAvailable()\n {\n try {\n $output = $this->cli->run(\n 'which service',\n function ($exitCode, $output) {\n throw new DomainException('Service not available');\n }\n );\n\n return $output != '';\n } catch (DomainException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "c007042eb36749ac15ceba81cf8f5011", "score": "0.6576857", "text": "function isProxyWorking($domain) {\n $factory = new Factory();\n $browser = new WebProxyBrowser($domain);\n\n $api = $factory->getInstance('yelp', null, $browser);\n $rating = $api->getOverallReviewRating('volt-frederick');\n\n return $rating > -1;\n }", "title": "" }, { "docid": "c63c960f26a2dd0c09e56d2fd355c91d", "score": "0.65656996", "text": "public function hasVanityDomain()\n {\n return $this->vanityDomain() !== '';\n }", "title": "" }, { "docid": "92bd44e70b30774235f84b62b7920097", "score": "0.6560614", "text": "public static function isAvailable(): bool;", "title": "" }, { "docid": "7ac178b62dfa1434e558bac949b6d4bc", "score": "0.6556246", "text": "public function is_available();", "title": "" }, { "docid": "7ac178b62dfa1434e558bac949b6d4bc", "score": "0.6556246", "text": "public function is_available();", "title": "" }, { "docid": "14e6b1e8dc81159386197f60455026b6", "score": "0.65497935", "text": "public function isAvailable();", "title": "" }, { "docid": "14e6b1e8dc81159386197f60455026b6", "score": "0.65497935", "text": "public function isAvailable();", "title": "" }, { "docid": "14e6b1e8dc81159386197f60455026b6", "score": "0.65497935", "text": "public function isAvailable();", "title": "" }, { "docid": "14e6b1e8dc81159386197f60455026b6", "score": "0.65497935", "text": "public function isAvailable();", "title": "" }, { "docid": "e4295ae41ac50e6c0437654f35023a79", "score": "0.65214235", "text": "public function isAvailable()\n {\n return true;\n }", "title": "" }, { "docid": "94a2cd908db438513d48fa766f86cd96", "score": "0.6502182", "text": "public function hasDomainId()\n {\n return $this->domain_id !== null;\n }", "title": "" }, { "docid": "06b11cd1c8549317adaf8022410eacef", "score": "0.6494291", "text": "public function is_available() {\n if ( 'yes' === $this->enabled && $this->wax_address ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "dd4d5755dd55e51f69743a3218721eb1", "score": "0.6482486", "text": "public function isAvailable() {\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "acdc28bb2ed988b0a2eecb4d25964ed2", "score": "0.63915807", "text": "function validDomain( $domain ) {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "59797a2212647c2c60c6d602879d1f01", "score": "0.63895303", "text": "public function isAvailable(): bool;", "title": "" }, { "docid": "0712917e85068c8268c5ad0d9658c87d", "score": "0.6380634", "text": "function check_domain($url)\n{\n\t$whitelisted = array(\n\t\t$_SERVER['HTTP_HOST'],\t// can contain :port\n\t\t// add additional domains-names (just full qualified hostnames) here\n\n\t);\n\tif ($GLOBALS['egw_info']['server']['webserver_url'][0] === 'h')\n\t{\n\t\t$whitelisted[] = parse_url($GLOBALS['egw_info']['server']['webserver_url'], PHP_URL_HOST);\n\t}\n\t$parts = parse_url($url);\n\t$host = $parts['host'].($parts['port'] ? ':'.$parts['port'] : '');\n\n\treturn $url[0] == '/' || in_array($host, $whitelisted);\n}", "title": "" }, { "docid": "9ec132f262db693ead3dcb1b97e2a426", "score": "0.63784635", "text": "function validDomain($domain) \n\t {\n\t return true;\n\t }", "title": "" }, { "docid": "63379c671303e35da01cd330c1660803", "score": "0.6325403", "text": "function chk_dname( $dname ) {\r\n\r\n if ( vhcs_domain_check($dname) == 0 ) {\r\n return 1;\r\n }\r\n\r\n /* seems ok */\r\n return 0;\r\n\r\n}", "title": "" }, { "docid": "432728a88ffb9f8fbd837b8e3e297bcc", "score": "0.6307453", "text": "public function is_service_host() {\n\t\t$parts = parse_url($this->base_url);\n\t\tif(isset($parts['host'])) {\n\t\t\t$hlen = strlen($parts['host']);\n\t\t\t$dlen = strlen(SYS['domain']);\n\t\t\tif ($dlen > $hlen) return false;\n\t\t\treturn (substr_compare($parts['host'], SYS['domain'], $hlen-$dlen, $dlen) === 0) ? true : false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "41d4d8acdeddefd52fd5a246100f33d7", "score": "0.63032645", "text": "public function isAvailable()\n {\n return $this->count > 0;\n }", "title": "" }, { "docid": "4e7496d22a0d2d1a427b220d9df67695", "score": "0.63000584", "text": "function domainlimit_environment_check() {\n if (yourls_get_option('domainlimit_list') !== false) {\n $domainlimit_list = json_decode(yourls_get_option('domainlimit_list'), TRUE);\n } else {\n yourls_add_option('domainlimit_list');\n }\n\n\tif ( !isset( $domainlimit_list ) ) {\n\t\terror_log('Missing definition of $domainlimit_list in database');\n\t\treturn false;\n\t} else if ( isset( $domainlimit_list ) && !is_array( $domainlimit_list ) ) {\n\t\t// be friendly and allow non-array definitions\n\t\t$domain = $domainlimit_list;\n\t\t$domainlimit_list = array( $domain );\n\t\treturn true;\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "1ad7229ef1568861125fba6e36dc4bfe", "score": "0.62952536", "text": "public function hasDomainDistinguishedName(string $domain): bool;", "title": "" }, { "docid": "5bf3c5423faaf9eb5fda840803d4b603", "score": "0.6275612", "text": "abstract public function isAvailable();", "title": "" }, { "docid": "aad0082c91dd6f7df2330627a76e6428", "score": "0.6263454", "text": "function validDomain( $domain ) {\n # Override this!\n return true;\n }", "title": "" }, { "docid": "f55cab2dcb3a54340de1386181f3cbb9", "score": "0.6238047", "text": "function domainshare_availability_check($email,$password,$domainname)\n{\n\t$result = rest_call(\"availability_check\",array(\"email\" => $email, \"password\" => $password, \"domainname\" => $domainname));\n\n\tif($result[\"status\"] == \"OK\")\n\t\treturn $result[\"partner_availability_check\"];\n\n\telse return $result;\n}", "title": "" }, { "docid": "1cfe4e1c4b51c6ad9705dd78fdb20a6c", "score": "0.6218485", "text": "public function hasDomainKeyPair(string $domain): bool;", "title": "" }, { "docid": "5040ccb146772db69d1256dd31beec6d", "score": "0.6213175", "text": "public function hasDomainCertificate(string $domain);", "title": "" }, { "docid": "e89639ef01322df5088448566ffa7c2e", "score": "0.6211952", "text": "public function isDomainAvailable($url, $timeOut = 7)\n {\n // Init curl\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeOut);\n curl_setopt($ch, CURLOPT_HEADER, 1);\n curl_setopt($ch, CURLOPT_HTTPGET, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_MAXREDIRS, 5);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n \n // Get the response\n $response = curl_exec($ch);\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n $curlError = curl_error($ch);\n $curlErrorNo = curl_errno($ch); \n curl_close($ch);\n\n //Curl response error\n if($curlErrorNo) {\n if(in_array($curlErrorNo, array(CURLE_TOO_MANY_REDIRECTS))) {\n if(defined(\"BROKEN_LINKS_LOG\") && BROKEN_LINKS_LOG) {\n error_log(\"Broken links: Could not probe url \" . $url . \" due to a malfunction of curl [\" . $curlErrorNo. \" - \" . $curlError . \"]\"); \n }\n return true; //Do not log\n } else {\n if(defined(\"BROKEN_LINKS_LOG\") && BROKEN_LINKS_LOG) {\n error_log(\"Broken links: Could not probe url \" . $url . \", link is considerd broken [\" . $curlErrorNo. \" - \" . $curlError . \"]\"); \n }\n return false; // Do log\n }\n }\n\n if(defined(\"BROKEN_LINKS_LOG\") && BROKEN_LINKS_LOG) {\n error_log(\"Broken links: Probe data \" . $url . \" [Curl error no: \" . $curlErrorNo. \"] [Curl error message:\" . $curlError . \"] [Http code: \".$httpCode.\"]\"); \n }\n \n //Validate\n if($response) {\n //Genereic codes \n if($httpCode >= 200 && $httpCode < 400) {\n return true; \n }\n\n //Specific out of scope codes \n //401: Unathorized\n //406: Not acceptable\n //413: Payload to large\n //418: I'm a teapot\n if(in_array($httpCode, array(401, 406, 413))) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "7c12201e63cb7d2eaeed532dfecf57d4", "score": "0.6210679", "text": "public function checkdomainstatus() {\n $this->disableLayout();\n // Get vars\n $cAction = $_POST[\"action\"];\n $tld = $_POST[\"tld\"];\n $sld = $_POST[\"idsld\"];\n if ($_GET['from'] == \"whois\") {\n $sld = $_GET['idsld'];\n $tld = $_GET['tld'];\n $cAction = \"check\";\n }\n $_SESSION[\"sld\"] = $sld;\n $_SESSION[\"tld\"] = $tld;\n $bError = 0;\n $bAvailable = 0;\n // Do we need to check a name?\n if ($cAction == \"check\") {\n if (!Utils::isValidDomainname($sld)) {\n $originaldomainavailable = 0;\n $originaldomaierror = 1;\n $originaldomaierrormessage = \"Invalid domain name. Only letters, numbers or hyphen are allowed\";\n $data = array('faild' => 1, 'list' => $originaldomaierrormessage);\n die;\n } else {\n $domainFlag = User::checkdomainstatus($sld, $tld);\n $originaldomain = $sld . \".\" . $tld;\n if ($domainFlag == 1) {\n $gettldPrice = User::gettldprice($tld);\n $message = \"$originaldomain is available\";\n $data = array('success' => 1, 'list' => $message, 'tldprice' => $gettldPrice);\n echo json_encode($data);\n } else {\n $message = \"$originaldomain domain not available\";\n $data = array('faild' => 1, 'list' => $message);\n echo json_encode($data);\n }\n }\n }\n die;\n }", "title": "" }, { "docid": "7d44d8daa88e9b6c0d837a2cb36a2a36", "score": "0.6185144", "text": "public function hasDns() {\n return $this->data['dns_records'];\n }", "title": "" }, { "docid": "77802b78d20cfa0357896e91db720289", "score": "0.6183641", "text": "abstract protected function isAvailable();", "title": "" }, { "docid": "fd8d1d711fd8bcab707ab4c6a3429ff4", "score": "0.61815", "text": "function has_available_licenses( $plugin='', $url='http://google.com' ) {\n\t\t$authorized_domains = get_user_meta( $this->ID, '_authorized_domains-'.$plugin, true );\n\t\t$authorized_domains = array_filter( $authorized_domains );\n\t\t\n\t\t// Set on purchase\n\t\t$allowed_domains = get_user_meta( $this->ID, '_allowed_domains-'.$plugin, true );\n\t\t/*\n\t\t * To consider RE: licensing\n\t\t * How should we handle new domains if the user has maxed out\n\t\t * their licenses?\n\t\t * \n\t\t * Options: \n\t\t * - Charge them for an additional domain activation automatically\n\t\t * - Add the new domain request to the authorized domains and pop off\n\t\t * one of the other ones\n\t\t/**/\n\t\tif( // Domain isn't authorized and user is out of licenses\n\t\t\t!in_array( $url, (array)$authorized_domains ) && // domain is not currently registered\n\t\t\t(\n\t\t\t\tcount( (array)$authorized_domains ) > (int)$allowed_domains && // domains registered >= domains allowed (i.e. out of licenses)\n\t\t\t\t$allowed_domains != 'unlimited' // user doesn't have a developer license\n\t\t\t)\n\t\t) :\n\t\t\treturn false;\n\t\tendif;\n\t\t\n\t\t/*\n\t\t * Licenses are available because:\n\t\t * 1. The domain in question has already been registered\n\t\t * 2. The domain in question is new and the user still has licenses\n\t\t * 3. The user has an unlimited license\n\t\t/**/\n\t\tupdate_user_meta(\n\t\t\t$this->ID,\n\t\t\t'_authorized_domains-'.$plugin,\n\t\t\tarray_unique( array_merge( (array)$authorized_domains, array( esc_url( $url ) ) ) )\n\t\t);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2b952b5da1c12a8e93df7b0399d48a09", "score": "0.61643595", "text": "public static function checkAvailability(array $domains) {\n \n $ret = array();\n\n //First, let's clean the return array\n if(is_array($domains)) {\n foreach($domains as $i => $domain) {\n \n //$_domain = preg_replace('/^(?!\\-)(?:[a-zA-Z\\d\\-]{0,62}[a-zA-Z\\d]\\.){1,126}(?!\\d+)[a-zA-Z\\d]{1,63}$/','',\n $_domain = mb_strtolower(trim($domain));\n $_domain = str_replace( array('http://', 'https://'), array('', ''), $_domain );\n\n $_slashes = explode('/', $_domain);\n $_domain = $_slashes[0];\n\n $_dashes = explode(':', $_domain);\n $_domain = $_dashes[0];\n\n $domain_name = false;\n $tld = false;\n\n $parts = explode(\".\", $_domain);\n if(count($parts) == 1) {\n $domain_name = trim($parts[0]);\n $tld = 'fi';\n }\n elseif(count($parts) == 2) {\n $domain_name = trim($parts[0]);\n $tld = trim($parts[1]);\n }\n elseif(count($parts) == 3) {\n $domain_name = trim($parts[1]);\n $tld = trim($parts[2]);\n } \n\n if($domain_name && $tld) {\n if(isset(self::$whois_servers[$tld])) {\n $ret[] = DomainAvailability::performCheck($domain_name, $tld);\n usleep(500000); //Sleep for half of a second\n }\n }\n }\n }\n\n return $ret;\n }", "title": "" }, { "docid": "fe07d3b6a930856b91445e9ff0ff0028", "score": "0.6147853", "text": "public function isAvailableInFrontend();", "title": "" }, { "docid": "7559880df1d035dd3855e65aa31950c7", "score": "0.6133632", "text": "public static function isAvailable($address) {\n return $address->country_name ? TRUE : FALSE;\n }", "title": "" }, { "docid": "96d6b4e5e8908324fe7d96e78d65d1a4", "score": "0.6126405", "text": "public static function testConnection()\n {\n \treturn is_array(gethostbynamel(self::$strHost)) ? true : false;\n\t}", "title": "" }, { "docid": "023b5e81107340b4573255921d9afdc0", "score": "0.6122167", "text": "private function allow_domain_settings() {\n # the blog level or multisite-wide?\n return is_multisite();\n \n }", "title": "" }, { "docid": "75a01465a8c0d23cca2758a26ad287ee", "score": "0.6120998", "text": "protected function isUrlOnline()\n {\n // Throw Exception if url is not available to machine\n return true;\n }", "title": "" }, { "docid": "cf9fb661100804c3436b569e5d1968c4", "score": "0.609249", "text": "protected function check_host() : bool {\n\t\treturn ( $this->host && $this->uri );\n\t}", "title": "" }, { "docid": "7ac9d425e2e9f2d8d59b2821bd8b9f1a", "score": "0.60698014", "text": "public function isAvailable()\n {\n return file_exists( $this->path );\n }", "title": "" }, { "docid": "d2b09aae3096646431452cef5f4290f4", "score": "0.6059741", "text": "public function ping($domain) {\n $curlInit = curl_init($domain);\n curl_setopt($curlInit, CURLOPT_CONNECTTIMEOUT, 1);\n curl_setopt($curlInit, CURLOPT_HEADER, true);\n curl_setopt($curlInit, CURLOPT_NOBODY, true);\n curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($curlInit);\n curl_close($curlInit);\n if ($response)\n return true;\n return false;\n }", "title": "" }, { "docid": "3de9f1097e40a16b668d2ba5916b6d04", "score": "0.6058578", "text": "public function hasDomainAuthorizationChallenge(string $domain): bool;", "title": "" }, { "docid": "3741c048a2232ae744a70cefb724d9ad", "score": "0.6047505", "text": "function isProxyExists($domain) {\n $query = \"select count(*) as count from proxy where domain=:domain\";\n\n $stmt = $this->em->getConnection()->prepare($query);\n $stmt->bindValue('domain', $domain, \\PDO::PARAM_STR);\n $stmt->execute();\n\n $result = $stmt->fetch();\n return $result['count'] > 0;\n }", "title": "" }, { "docid": "f29e6e11d68073ffb41fbfe68052740a", "score": "0.60370064", "text": "function is_domain($domain) {\n\tif (!is_string($domain))\n\t\treturn false;\n\n\tif (preg_match(\"/^([a-z0-9\\-]+\\.?)+$/i\", $domain))\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "6f035797741bff076ca7a0bd531a5b74", "score": "0.60325134", "text": "public function isAvailable()\n\t{\n\t\treturn $this->available;\n\t}", "title": "" }, { "docid": "778a1c00d235ff4d863ea020cc5a334c", "score": "0.5993179", "text": "private function allow_domain_settings() {\n # the blog level or multisite-wide?\n return is_multisite() && !defined( 'LF_WP_VIP' );\n \n }", "title": "" }, { "docid": "c1306ae25529c69478ca92892c02cfdc", "score": "0.59840727", "text": "function has_ssl($domain) {\n\t$res = false;\n\t$orignal_parse = $domain;\n\t$stream = @stream_context_create( array( 'ssl' => array( 'capture_peer_cert' => true ) ) );\n\t$socket = @stream_socket_client( 'ssl://' . $orignal_parse . ':443', $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $stream );\n\n\t// If we got a ssl certificate we check here, if the certificate domain\n\t// matches the website domain.\n\tif ( $socket ){\n\t\t$cont = stream_context_get_params( $socket );\n\t\t$cert_ressource = $cont['options']['ssl']['peer_certificate'];\n\t\t$cert = openssl_x509_parse( $cert_ressource );\n\t\t$listdomains=explode(',', $cert[\"extensions\"][\"subjectAltName\"]);\n\n\t\tforeach ($listdomains as $v) {\n\t\t\tif (strpos($v, $orignal_parse) !== false) {\n\t\t\t\t$res=true;\n\t\t\t}\n\t\t}\n\t}\n\treturn $res;\n}", "title": "" }, { "docid": "6cd6c875870daa2d0a26e033f3d20da4", "score": "0.59814686", "text": "public function isFree() {\n return $this->getApi()->dataGet('/domain/'.$this->getDomain().'/check')['check']['free'];\n }", "title": "" }, { "docid": "f8ba5415445d9b11e738baa733fbc5eb", "score": "0.5977149", "text": "function isAvailable() {\n return (!empty($this->_subscriptionKey));\n }", "title": "" }, { "docid": "802780884b1542d0ff1ab283b39664df", "score": "0.594291", "text": "public function hasDomain($domain)\n {\n return isset($this->_domains[$domain]);\n }", "title": "" }, { "docid": "97d0f00998e482fb4f4c918013cf524a", "score": "0.5934943", "text": "public function isAvailable() {\n return $this->isAvailable;\n }", "title": "" }, { "docid": "38f62053cf8bc0e75d421ffcfa108490", "score": "0.5931887", "text": "public function isSatellite() {\n if (!$this->getDomain() || strstr($this->getDomain(), $this->config->domain->base)) {\n return false;\n }\n\n //we do not see eat-star.de as a satellite\n if (strstr($this->getDomain(), 'eat-star.de')) {\n return false;\n }\n\n //this is a local fix\n if (strstr($this->getDomain(), 'yourdelivery.local')) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "4e997807f20e69769150f4b63706e709", "score": "0.593187", "text": "public function is_subdomain() : bool {\n\t\tpreg_match( '/(?P<domain>[a-z0-9][a-z0-9\\-]{1,63}\\.[a-z\\.]{2,6})$/i', $this->host, $matches );\n\t\t$domain = defined( 'IDG_REDIRECT_RULES_DOMAIN' ) ? IDG_REDIRECT_RULES_DOMAIN : $matches['domain'];\n\t\t$subdomain = rtrim( strstr( $this->host, $domain, true ), '.' );\n\n\t\treturn ! empty( $subdomain );\n\t}", "title": "" }, { "docid": "a8aa2f94ccf431501801253664da4ba2", "score": "0.59273803", "text": "public function isAvailable($name)\n {\n return isset($this->services[$name]);\n }", "title": "" }, { "docid": "9dda226cebb6a18cc3bfcf5754a65c6a", "score": "0.5903592", "text": "public function isAvailable()\n {\n $objConfig = Isotope::getConfig();\n\n if (null === $objConfig || 'EUR' !== $objConfig->currency) {\n return false;\n }\n\n return parent::isAvailable();\n }", "title": "" }, { "docid": "2b7aab0dfe49bb27d5b6fc51c9c0775f", "score": "0.5902306", "text": "public function isAlive() {\n\t\treturn function_exists ( \"mail\" );\n\t}", "title": "" }, { "docid": "a0da8411fb28fd2213fd08866c5ec76e", "score": "0.5894369", "text": "public static function validDomain(string $domain): bool\n {\n return checkdnsrr($domain , \"A\");;\n }", "title": "" }, { "docid": "70e8aa2c2ece56b185f9a3b10fd5324f", "score": "0.5892015", "text": "public function isAvailable()\n {\n if($this->getTransitTime()) { return $this->getTransitTime() === 1 ? true : false; }\n else { return true;}\n }", "title": "" }, { "docid": "a51be0e51c5199b6896b9184257d06d2", "score": "0.5888922", "text": "public function domainTest()\n\t{ \n \t\t// The required keys in the keyword array\n\t\t$required = array('domain_id','domain');\n\t\t\t\t\n\t\t// Loop through each required key\n\t\tforeach($required as $key)\n\t\t{ \n\t\t\t//If the required value are not found\n\t\t\tif(empty($this->$key))\n\t\t\t{ \n\t\t\t\t// Log bad keyword for review\n\t\t\t\t//file_put_contents(KEYWORD_ERROR_FILE, var_export($this, TRUE).\"\\n\\n\", FILE_APPEND);\n\n\t\t\t\t// Do not continue\t\t\t\t \n\t\t\t\treturn false; \t\t\n\t\t\t} \n\t\t\telseif($key == \"domain\")\n\t\t\t{\n\t\t\t\t$domain = explode(\".\", $this->$key);\n\t\t\t\t\n\t\t\t\tif(count($domain) < 2)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\t\n\t\t// Keyword object is complete\n\t\treturn TRUE; \n\t}", "title": "" }, { "docid": "ef032e7c37e815f3b1d0f85731890499", "score": "0.58845943", "text": "public static function hasReadyAdSources()\n\t{\n\t\tif (!Manager::isAdAccessible())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif (Internals\\SourceExpensesTable::getRow(['cache' => ['ttl' => 600]]))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tforeach (self::getActualAdSources() as $source)\n\t\t{\n\t\t\t$ad = new Analytics\\Ad($source);\n\t\t\tif ($ad->isConnected())\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b45e68011e21bd90175f809b18958908", "score": "0.587774", "text": "public function hasDnssec(): bool\n {\n return $this->dnssec;\n }", "title": "" }, { "docid": "3d56af25b4de0c0b802945740c912d92", "score": "0.5877062", "text": "public function hasHost()\r\n {\r\n return strlen($this->host) ? TRUE : FALSE;\r\n }", "title": "" }, { "docid": "0ca324d4f62651d5af05e1bc20877ffb", "score": "0.587467", "text": "public function isIncorporated();", "title": "" }, { "docid": "ebf592bb3c184f2bdb70f87df0ea776e", "score": "0.5873963", "text": "function is_ip_to_country_installed() {\n\t\t$config =& SlimStatConfig::get_instance();\n\t\t$query = \"SELECT * FROM `\".SlimStat::my_esc( $config->countries ).\"` LIMIT 0, 1\";\n\t\treturn ( $result = mysql_query( $query ) ) ? mysql_num_rows( $result ) : 0;\n\t}", "title": "" }, { "docid": "d499a236dccb3f6effb7dc305fb70fc3", "score": "0.5866159", "text": "function testWhetherDomainIsValidOrNot()\n {\n $domain = 'localhost';\n $this->assertTrue($this->Controller->isDomainValid($domain));\n }", "title": "" }, { "docid": "0eb7f4a058a9e4c9a47df6ea0e05ee1b", "score": "0.5865378", "text": "public function isDisponsable($domain)\n\t{\n\t\tif (!$this->enable) {\n\t\t\tthrow new DisponsableException(\"DisponsableChecker is disable\");\n\t\t}\n\t\ttry {\t\n\t\t\t$response = $this->client->get(\"/v1/disposable/\" . $domain);\n\t\t\t$body = json_decode((string)$response->getBody());\t\n\t\t\tif (property_exists($body, \"disposable\")) {\n\t\t\t\treturn $body->disposable;\t\n\t\t\t} else {\n\t\t\t\tthrow new DisponsableException(\"Disponsable service unknown response\"); \n\t\t\t}\t\t\t\t\t\n\t\t} catch (TransferException $e) {\n\t\t\tthrow new DisponsableException($e->getMessage());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9c44fefe4590e2762f652109f5db2d42", "score": "0.5863179", "text": "private function is_cdn_enabled() {\r\n\t\treturn (bool) $this->options->get( 'cdn', 0 );\r\n\t}", "title": "" }, { "docid": "6fbad79792769a9de6ee5621276dad0f", "score": "0.5862914", "text": "public function isAvailable()\n\t{\n\t\treturn is_null($this->runtime);\n\t}", "title": "" }, { "docid": "5f34e415ef423d61827903509cc3c8f6", "score": "0.5861384", "text": "public function isAvailable()\n {\n return $this->available;\n }", "title": "" }, { "docid": "f4f20dff8ebcefccc93e2314ce86e08e", "score": "0.5854963", "text": "public function checkDomain() \n { \n \n // separte domain name from email \n // listing all variable from array\n list($emailPart, $domainPart) = explode('@', $this->email); \n \n \n //checking valid formated email and ip address of domain\n if(filter_var($this->email, FILTER_VALIDATE_EMAIL) && $this->getIP($domainPart)) { \n \n // will return invalid domain\n return 1; \n } \n else { \n \n // will return valid domain\n return 0;\n } \n }", "title": "" }, { "docid": "cfaf7feb9e42b03094592f7b5b5e3d22", "score": "0.5853354", "text": "public function hasUrlHost()\n {\n return $this->url_host !== null;\n }", "title": "" }, { "docid": "4372668932936968d7304bb6f0110284", "score": "0.58442426", "text": "public function isAmpDomain()\n {\n return $this->scriptTag->isAmpDomain();\n }", "title": "" }, { "docid": "fcbdd921ceed6a561ced42339119301a", "score": "0.58429307", "text": "function test_responsive_is_bu_domain() {\n\t\t$this->assertFalse( responsive_is_bu_domain() );\n\t}", "title": "" }, { "docid": "a1e5a7eb07dab0696d7162a923b3e613", "score": "0.58384633", "text": "public function isAuthority($domain);", "title": "" }, { "docid": "73a2073abadf27f2e50e1aeb408c5180", "score": "0.5831859", "text": "public function hasTargetDomains()\n {\n return isset($this->deployment['target_domains']) &&\n ! empty($this->deployment['target_domains']);\n }", "title": "" }, { "docid": "8e436617f12a18173783e6e3f9bd463f", "score": "0.5829091", "text": "public function isInUse() {\r\n\t\treturn $this->get('inuse') == 1;\r\n\t}", "title": "" }, { "docid": "86975a1168abd7a831e3a47bcab9d11d", "score": "0.5823398", "text": "private function isValidDomain(string $domains): bool\n {\n if (StringUtility::startsWith($domains, '~')) {\n return false;\n }\n if (!StringUtility::endsWith($domains, $this->httpsMainDomain)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "be165e2ad2cba8d77331b30a90bf1a58", "score": "0.58209515", "text": "function validDomain( $domain ) {\n global $LDAPDomainNames, $LDAPUseLocal;\n\n $this->printDebug(\"Entering validDomain\",1);\n\n if (in_array($domain, $LDAPDomainNames) || ($LDAPUseLocal && 'local' == $domain)) {\n $this->printDebug(\"User is using a valid domain.\",1);\n return true;\n } else {\n $this->printDebug(\"User is not using a valid domain.\",1);\n return false;\n }\n }", "title": "" }, { "docid": "0e269c70c35a241ee93414a7f060409e", "score": "0.5819368", "text": "public function is_needed() {\n\t\treturn ( $this->context->site_represents === 'company' );\n\t}", "title": "" }, { "docid": "823402d314a62020b9ecf0fde27eba23", "score": "0.5812407", "text": "public function isAvailableNow()\n {\n return $this->isAvailableAt(new \\DateTime());\n }", "title": "" }, { "docid": "ffba8959c2557f8f2ddbe642e6841227", "score": "0.5810732", "text": "public function isAvailable()\n {\n //dd($this);\n return (bool)$this->getStatus()\n && ($this->myvalues['price.currencyid'] === null || $this->getCurrencyId() === $this->myvalues['price.currencyid']);\n }", "title": "" }, { "docid": "a2d9cb72b89501f8a6ad0069f0180908", "score": "0.5808899", "text": "public function isCompanyAllowed()\n {\n switch ($this->_getCountryCode()) {\n case 'NL':\n case 'DE':\n case 'AT':\n return false;\n default:\n return true;\n }\n }", "title": "" }, { "docid": "3437f6578e156cfcbb81fde87b38f43f", "score": "0.5806054", "text": "function domain_is_valid(string $domain): bool\n{\n return filter_var($domain, FILTER_VALIDATE_DOMAIN) !== false;\n}", "title": "" }, { "docid": "485fa2836ecfbc64ac1d0b5d0dd6f936", "score": "0.5796281", "text": "public function DomainLocked(string $domain) : bool {\n $split = explode('.', $domain);\n $queryData2 = $this->commonApiArgs('GetRegLock', $split[0], $split[1]);\n $qs2 = http_build_query($queryData2);\n $url2 = \"{$this->server}{$this->apiEndpoint}?$qs2\";\n $xml2 = simplexml_load_file($url2);\n return (string)($xml2->{'reg-lock'}) === '1';\n }", "title": "" } ]
89f86d46093caf8edcc282077a1d3cc6
Created by PhpStorm. User: YangYu Date: 2019/5/15 Time: 8:39
[ { "docid": "430a56e1bde193c1d130347354c6598c", "score": "0.0", "text": "function arr_mr($arr){\n $qi=[];\n $ou=[];\n foreach ($arr as $v){\n if ($v%2==0){\n $ou[]=$v;\n }else{\n $qi[]=$v;\n }\n }\n return array_merge($qi,$ou);\n}", "title": "" } ]
[ { "docid": "ce8f7feb7f13592cb15ad9d893be0b4a", "score": "0.60798556", "text": "public function __construct()\n\t{\n\t\t;\n\t}", "title": "" }, { "docid": "2cc59f62bc7e5ec3bcad82dff8fdcb15", "score": "0.6047781", "text": "public function refuel() {\n\t}", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.5980176", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "a3eb963b3bde986e3dc549f04288d8ac", "score": "0.5976631", "text": "protected function main() {}", "title": "" }, { "docid": "a3eb963b3bde986e3dc549f04288d8ac", "score": "0.5974569", "text": "protected function main() {}", "title": "" }, { "docid": "a3eb963b3bde986e3dc549f04288d8ac", "score": "0.5974569", "text": "protected function main() {}", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a3707f8f62cf600d697fd7c7bf5a58e6", "score": "0.5954815", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "c45d502513651969e8d5b1ffe5fb7a00", "score": "0.59344804", "text": "public function __construct()\n {\n }", "title": "" }, { "docid": "b32278ea69e8ef74b2848d767be27fbb", "score": "0.5923849", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "b32278ea69e8ef74b2848d767be27fbb", "score": "0.5923849", "text": "public function __construct() {\n \n }", "title": "" }, { "docid": "a8d436871409a89b376854094744edeb", "score": "0.59013176", "text": "public function __construct()\n { \n\n // TODO Auto-generated constructor\n \n\n }", "title": "" }, { "docid": "e604ffabb18dce83ee0f86419a830df1", "score": "0.5887436", "text": "final private function __construct()\n {\n }", "title": "" }, { "docid": "28ba57f48e9f802681cfe9bb5d473f90", "score": "0.5886058", "text": "private function __construct() \n {\n \n }", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.58857894", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "f0b1f47a13107705789f3bb03cab9096", "score": "0.5875515", "text": "public function metodo2()\n {\n }", "title": "" }, { "docid": "0f097dfa59fc3d8d3c46642c080688a1", "score": "0.58726895", "text": "private function __construct()\n {\n \n }", "title": "" }, { "docid": "0f097dfa59fc3d8d3c46642c080688a1", "score": "0.58726895", "text": "private function __construct()\n {\n \n }", "title": "" }, { "docid": "0f097dfa59fc3d8d3c46642c080688a1", "score": "0.58726895", "text": "private function __construct()\n {\n \n }", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.58699346", "text": "private function __construct () {}", "title": "" }, { "docid": "6d5f04f5f66738f88c71fdf857ff9c58", "score": "0.5867818", "text": "public function apresentar()\n {\n }", "title": "" }, { "docid": "0bcc03077fe655be993ee16c888a711e", "score": "0.58564264", "text": "public function __construct()\n {\n }", "title": "" }, { "docid": "509a4cde21870255d1410f77adc31d6a", "score": "0.58444357", "text": "public function __construct( )\n {\n \n }", "title": "" }, { "docid": "d633f5f1fe28fc7dcdb152180ee67c4b", "score": "0.5842495", "text": "public function main(){\n\t\t;\n\t}", "title": "" }, { "docid": "5caff8cdd1d0d4df10a2ec0d883edb67", "score": "0.5836321", "text": "final public function __construct() { }", "title": "" }, { "docid": "dd152fcaf9c3b056c55ddae6060148e5", "score": "0.5827769", "text": "final private function __construct(){}", "title": "" }, { "docid": "dd152fcaf9c3b056c55ddae6060148e5", "score": "0.5827769", "text": "final private function __construct(){}", "title": "" }, { "docid": "5db6c696d544c1c5a097cbb2e0ce71d2", "score": "0.58248764", "text": "public function __construct() {\r\n\t}", "title": "" }, { "docid": "5db6c696d544c1c5a097cbb2e0ce71d2", "score": "0.58248764", "text": "public function __construct() {\r\n\t}", "title": "" }, { "docid": "65729390f402b959f054fa03746148e9", "score": "0.5823936", "text": "public function __construct() {\r\n\t\t}", "title": "" }, { "docid": "42f3e898a3a2a8981ea5b6bc1dabdcd6", "score": "0.58149815", "text": "public function __construct()\n {\n \n }", "title": "" }, { "docid": "e0e4ed2dbab0f767ed76715f343dbcd2", "score": "0.5809202", "text": "public function foo()\n {\n }", "title": "" }, { "docid": "79a3f25017b2ccbeb054281623ebbfb0", "score": "0.5806868", "text": "public function __construct()\n {\n }", "title": "" }, { "docid": "28cd000503c4c542d23ff49684863134", "score": "0.5802733", "text": "public function __construct () {\r\r\n\t\t\r\r\n\t}", "title": "" }, { "docid": "2b114f105ece0624bd6ec343cf35226d", "score": "0.58025795", "text": "public function __construct() {\n }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5800571", "text": "private function __construct() { }", "title": "" }, { "docid": "b076c8437a5c4cdfa347cc7c495da90b", "score": "0.57982594", "text": "public function __construct() {\n\t\n\t}", "title": "" }, { "docid": "e15f91dc90dd3bcb77973e7b811fb15b", "score": "0.57939166", "text": "public function __construct() {\n\n\t}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5790683", "text": "protected function __construct(){}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5790683", "text": "protected function __construct(){}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5790683", "text": "protected function __construct(){}", "title": "" }, { "docid": "ca6200d491f7b9307b137f60cdff142a", "score": "0.5788354", "text": "public function __construct(){\n }", "title": "" }, { "docid": "fb4c3f07ec66dc085096bd8483bf3da6", "score": "0.57846445", "text": "private final function __construct(){}", "title": "" }, { "docid": "014cff5802919a7a3bbf9ea7c4d714e9", "score": "0.5782721", "text": "public function __construct(){\n \n }", "title": "" }, { "docid": "014cff5802919a7a3bbf9ea7c4d714e9", "score": "0.5782721", "text": "public function __construct(){\n \n }", "title": "" }, { "docid": "014cff5802919a7a3bbf9ea7c4d714e9", "score": "0.5782721", "text": "public function __construct(){\n \n }", "title": "" }, { "docid": "e280830573598f069eb1514036b7c434", "score": "0.5782248", "text": "private function __construct() {\r\n }", "title": "" }, { "docid": "806cf0d7c052e9463f6655ed1a253232", "score": "0.57811594", "text": "public function __construct(\n ) {\n }", "title": "" }, { "docid": "806cf0d7c052e9463f6655ed1a253232", "score": "0.57811594", "text": "public function __construct(\n ) {\n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5775803", "text": "private function __construct(){}", "title": "" }, { "docid": "f61e2dd06d1301267529b42a325769b0", "score": "0.5775538", "text": "public function __construct() {\r\n\r\n\t}", "title": "" }, { "docid": "f61e2dd06d1301267529b42a325769b0", "score": "0.5775538", "text": "public function __construct() {\r\n\r\n\t}", "title": "" }, { "docid": "8db0e88a4dd8bbd6d51f793e3143f9e9", "score": "0.57735425", "text": "public function __construct()\n\t{\t\t\t\t\t\n\n\t}", "title": "" } ]
f8b8bda42ec190710697faeedd72270e
Creates a string representation of this object
[ { "docid": "4e98e3984f4097a4e3f749904eedfee3", "score": "0.0", "text": "public function toString() {\n return sprintf(\n \"%s(%s)@{\\n\".\n \" [lastModified] %s\\n\".\n \"}\",\n $this->getClassName(),\n $this->name,\n xp::stringOf($this->mod)\n );\n }", "title": "" } ]
[ { "docid": "7230ca27271772c6e4d22d6e0c9f7a00", "score": "0.8449173", "text": "public function __toString() {\n\n\t\treturn $this->create();\n\t}", "title": "" }, { "docid": "e3735896ef5c5ebd84301ff40b38f246", "score": "0.8213938", "text": "public function __toString( )\n {\n return $this->build( );\n }", "title": "" }, { "docid": "fbd253d14da868e9cd5a4f2a91178705", "score": "0.8203498", "text": "public function __toString()\n {\n return static::build($this);\n }", "title": "" }, { "docid": "70d0f0eac9e14f24d440d2616df6e7d7", "score": "0.81601894", "text": "public function __toString() {\n\t\treturn $this->build();\n\t}", "title": "" }, { "docid": "c982071f2ddfea7bebfb62f0a4fa5221", "score": "0.8143835", "text": "public function __toString()\n {\n return $this->build();\n }", "title": "" }, { "docid": "fa238dd6b92ff6567fcb1c5f2c07b245", "score": "0.8046089", "text": "public function __toString()\n {\n return $this->build();\n }", "title": "" }, { "docid": "e91d5dff1a6fbbb44d4f731acee01938", "score": "0.80324066", "text": "function __toString() {\n\t\treturn $this->generate();\n\t}", "title": "" }, { "docid": "8210f21216442f6138de7fbb8d6989a0", "score": "0.801357", "text": "public function __toString()\n {\n return $this->make();\n }", "title": "" }, { "docid": "95008820e81bc2af89085c5ed1a51496", "score": "0.7989618", "text": "public function __toString() : string\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "30469430ddfba63065ff95b1d50682de", "score": "0.79600084", "text": "public function __toString(): string\n {\n $object = \"{\";\n $object .= \"\\\"id\\\":{$this->getId()},\";\n $object .= sprintf(\"\\\"active\\\":%s\", $this->getActive() ? \"true,\" : \"false,\");\n $object .= \"\\\"altitude\\\":{$this->getAltitude()},\";\n $object .= \"\\\"animation\\\":{$this->getAnimation()},\";\n $object .= \"\\\"box\\\":{$this->getBox()},\";\n $object .= \"\\\"direction\\\":{$this->getDirection()},\";\n $object .= \"\\\"eventCount\\\":{$this->eventCount},\";\n $object .= \"\\\"events\\\":[\";\n for($i = 0; $i < $this->eventCount; $i++) {\n $object .= \"\\\"{$this->events[$i]}\\\"\";\n if ($i !== $this->eventCount - 1) {\n $object .= \",\";\n }\n }\n $object .= \"],\";\n $object .= sprintf(\"\\\"noSoft\\\":%s\", $this->getNoSoft() ? \"true,\" : \"false,\");\n $object .= \"\\\"position\\\":{$this->getPosition()},\";\n $object .= \"\\\"solidness\\\":\\\"{$this->getSolidness()}\\\",\";\n $object .= \"\\\"speed\\\":{$this->getSpeed()},\";\n $object .= \"\\\"type\\\":\\\"{$this->getType()}\\\",\";\n $object .= sprintf(\"\\\"visible\\\":%s\", $this->getVisible() ? \"true\" : \"false\");\n $object .= \"}\";\n return $object;\n }", "title": "" }, { "docid": "3b45789bcfb33f6c0d5b96fe70da495d", "score": "0.7943664", "text": "public function __toString()\r\n {\r\n $string = '';\r\n foreach ($this->data as $name => $values) {\r\n foreach ($values as $value) {\r\n $string .= $name . ': ' . $value . \"\\r\\n\";\r\n }\r\n }\r\n return $string;\r\n }", "title": "" }, { "docid": "b7b03addc2fe73db9be9403f32d216f7", "score": "0.79175764", "text": "public function __toString() {\n\t\treturn $this->toJson();\n\t}", "title": "" }, { "docid": "68877ece3b3e894a289718ee140fdb58", "score": "0.79027194", "text": "public function __toString() { return $this->as_string(); }", "title": "" }, { "docid": "97fa02814556ce694ae3e0691a6b8be1", "score": "0.7897193", "text": "public function __toString()\n\t{\n\t\treturn $this->toJson();\n\t}", "title": "" }, { "docid": "97fa02814556ce694ae3e0691a6b8be1", "score": "0.7897193", "text": "public function __toString()\n\t{\n\t\treturn $this->toJson();\n\t}", "title": "" }, { "docid": "2d1517423749250fcaa58ba957dbedbe", "score": "0.7895465", "text": "public function __toString() {\n\t\t\treturn $this->save()->generate();\n\t\t}", "title": "" }, { "docid": "8149edf84b4d754f8702cc02236da3ee", "score": "0.78909224", "text": "public function __toString()\n {\n return '<'.get_class($this).' Object>';\n }", "title": "" }, { "docid": "1da112913772b285fecc23791f67c784", "score": "0.7888946", "text": "public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}", "title": "" }, { "docid": "69691d555ac8b2542ae83293f9fb58ac", "score": "0.7883972", "text": "public function __toString()\n {\n return $this->encode();\n }", "title": "" }, { "docid": "04948bc42ea0b3b805235f404c607097", "score": "0.78783363", "text": "public function __toString()\n {\n return $this->to_string();\n }", "title": "" }, { "docid": "596774564a6efd8e0aab8315fb90beed", "score": "0.78730196", "text": "public function toString()\n {\n return new String($this->__toString());\n }", "title": "" }, { "docid": "958cb305cf182a76bd37906e5a3f18e6", "score": "0.78699684", "text": "public function toString()\n {\n return new String($this);\n }", "title": "" }, { "docid": "bbb6a2a5346aeb4619440ca96261f529", "score": "0.78666294", "text": "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "title": "" }, { "docid": "bbb6a2a5346aeb4619440ca96261f529", "score": "0.78666294", "text": "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "title": "" }, { "docid": "ae620cccf5904199799527c29d2fb8a6", "score": "0.7860768", "text": "public function __toString()\n {\n return $this->asString();\n }", "title": "" }, { "docid": "82078eca078428a445ad38dd620ecfdf", "score": "0.7856678", "text": "function __toString()\n {\n $reflect = new \\ReflectionClass($this);\n $classname = strtoupper($reflect->getShortName());\n $mystring = \"BEGIN:\" .$classname. \"\\n\";\n $mystring .= $this->properties;\n\n foreach($this->child_objects as $child) {\n $mystring .= $child;\n }\n\n $mystring .= \"END:\" .$classname. \"\\n\";\n\n return $mystring;\n }", "title": "" }, { "docid": "cdddb412cafb343c6daeca0987c56373", "score": "0.7850416", "text": "public function __toString()\n {\n // This wraps the magic __toString to our toString method.\n return $this->toString()->string();\n }", "title": "" }, { "docid": "1fbde2080d9cf2737357edd28cbe7ade", "score": "0.7849568", "text": "public function __toString(): string\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "1fbde2080d9cf2737357edd28cbe7ade", "score": "0.7849568", "text": "public function __toString(): string\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "1fbde2080d9cf2737357edd28cbe7ade", "score": "0.7849568", "text": "public function __toString(): string\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "7cca6db94a725bcfa0f3594d6d78eade", "score": "0.78422475", "text": "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "title": "" }, { "docid": "7cca6db94a725bcfa0f3594d6d78eade", "score": "0.78422475", "text": "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "title": "" }, { "docid": "a0d56db13a70d14de29b099ee3500f0b", "score": "0.78390515", "text": "public function __toString() {\n return $this->serialize();\n }", "title": "" }, { "docid": "fa3f19d7bfc4b23649b841038de013ee", "score": "0.78380275", "text": "public function toString() {\n $buf = '';\n foreach ($this->properties as $key => $value) {\n $buf .= $key . '=' . $value . PHP_EOL;\n }\n return \\blaze\\lang\\String::asWrapper($buf);\n }", "title": "" }, { "docid": "f506e2c273ef43ee21c0ec6dd3fa5f72", "score": "0.78254277", "text": "public function __toString()\n {\n return $this->serialize();\n }", "title": "" }, { "docid": "f506e2c273ef43ee21c0ec6dd3fa5f72", "score": "0.78254277", "text": "public function __toString()\n {\n return $this->serialize();\n }", "title": "" }, { "docid": "cd34e4905bacf3ea3e2fc2db0169f5cf", "score": "0.78202516", "text": "public function __toString() {\n \n return $this->toString();\n }", "title": "" }, { "docid": "b0bcc991f17ff411fb15c7e6799a3c16", "score": "0.7811486", "text": "public function __toString() {\n\t\treturn $this->getCompact();\n\t}", "title": "" }, { "docid": "f64be50e48f053d1621797612a9dc662", "score": "0.7810834", "text": "public function __toString()\n {\n return 'id = ' . $this ->id\n . '<br> name = ' . $this->name\n . '<br> custId = ' . $this->CustId\n . '<br> adminId = ' . $this->AdminId;\n\n }", "title": "" }, { "docid": "02160e5a519076f89028ffaf774f450d", "score": "0.78041327", "text": "public function __toString() {\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "02160e5a519076f89028ffaf774f450d", "score": "0.78041327", "text": "public function __toString() {\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "02160e5a519076f89028ffaf774f450d", "score": "0.78041327", "text": "public function __toString() {\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "adc2a995af999b8a186658f1fd56bfa1", "score": "0.77955216", "text": "public function __toString()\n {\n return $this->string();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "9f397b94f018ae81eb5f9bae0b1f811f", "score": "0.77951837", "text": "public function __toString()\n {\n return $this->toJson();\n }", "title": "" }, { "docid": "25572aa984423c80e291f23f34647644", "score": "0.7794782", "text": "public function __toString() {\n\t\treturn serialize($this);\n\t}", "title": "" }, { "docid": "58b4036e03e293337e9ba9d84bcf3211", "score": "0.7792092", "text": "public function __toString()\n {\n return '';\n }", "title": "" }, { "docid": "68a2ad4fac1ef03c2c49f43e57a101d3", "score": "0.77819353", "text": "public function __toString()\n\t{\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "68a2ad4fac1ef03c2c49f43e57a101d3", "score": "0.77819353", "text": "public function __toString()\n\t{\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "68a2ad4fac1ef03c2c49f43e57a101d3", "score": "0.77819353", "text": "public function __toString()\n\t{\n\t\treturn $this->toString();\n\t}", "title": "" }, { "docid": "5d6482d4e7abda539db33ed8dab96940", "score": "0.77793324", "text": "public function __toString()\n {\n return (string) $this->exportTo(MouPeer::DEFAULT_STRING_FORMAT);\n }", "title": "" }, { "docid": "617f388053a361282db7798d6657886f", "score": "0.77670544", "text": "public function __toString() {\n return $this->toString();\n }", "title": "" }, { "docid": "f88d55f65a3badeae752f52d65a54712", "score": "0.7760355", "text": "public function __toString()\r\n {\r\n return '';\r\n }", "title": "" }, { "docid": "1874a83e69f73ba14f78a71efc12e10f", "score": "0.77537", "text": "public function __toString()\n {\n\n return $this->toJson();\n\n }", "title": "" }, { "docid": "97fed15dc378ced39c5a26074f55abd7", "score": "0.77422005", "text": "public function __toString() {\r\n return $this->toString();\r\n }", "title": "" }, { "docid": "e368c7e3f208ed77387729933e3ce595", "score": "0.7741294", "text": "public function toString(): string\n {\n return $this->__toString();\n }", "title": "" }, { "docid": "e368c7e3f208ed77387729933e3ce595", "score": "0.7741294", "text": "public function toString(): string\n {\n return $this->__toString();\n }", "title": "" }, { "docid": "a58807d0a3c7bec431420cb0b2b764e3", "score": "0.77382374", "text": "public function __toString()\n\t{\n\t\treturn $this->format();\n\t}", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "e3b983937bbda4e35667a2afbb4da2d0", "score": "0.7719966", "text": "public function __toString()\n {\n return $this->toString();\n }", "title": "" }, { "docid": "9150df2da280e94d5629f1b11ee10e53", "score": "0.7718398", "text": "function __toString() {\n return $this->to_string();\n }", "title": "" }, { "docid": "c48eedcbb610fe3b2c3daf5d21231e68", "score": "0.7716045", "text": "public function __toString() {\n\t\t$str = \"\";\n\t\t$str .= \"View Type: \" . $this->_viewType . \"<br />\";\n\t\t$str .= \"Template Path: \" . $this->_templatePath . \"<br />\"; \n\t\t$str .= \"Cache Id: \" . $this->_cacheId . \"<br />\";\n\t\t$str .= \"Compile Id: \" . $this->_compileId . \"<br />\";\n\t\t$str .= \"Life Time: \" . $this->_lifeTime . \"<br />\";\n\t\t$str .= \"Display: \" . (int)$this->_display . \"<br />\"; \t\t \t\t \t\t \n\t\t$str .= \"Data: \\n<pre>\" . print_r($this->_data, true) . \"</pre><br />\";\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "81e8429e03d8efdb4630b4c005abdc00", "score": "0.77039975", "text": "public function __toString()\n {\n return serialize($this);\n }", "title": "" }, { "docid": "5fbaf4d6e12a160a37425a6958d4b0ac", "score": "0.7690365", "text": "public function __toString(): string\n {\n return $this->toString();\n }", "title": "" }, { "docid": "5fbaf4d6e12a160a37425a6958d4b0ac", "score": "0.7690365", "text": "public function __toString(): string\n {\n return $this->toString();\n }", "title": "" }, { "docid": "9b36d796b6c3e17dafeae98e3f88c7ca", "score": "0.768796", "text": "public function __toString() {\r\n\r\n\t\treturn \"<strong>Product ID:</strong> \" . $this->productID . \"<br/>\" .\r\n\t\t\t\t\"<strong>Name:</strong> \" . $this->name . \"<br/>\" .\r\n\t\t\t\t\"<strong>Short description:</strong> \" . $this->shortDescription . \"<br/>\" .\r\n\t\t\t\t\"<strong>Description:</strong> \" . $this->description . \"<br/>\" .\r\n\t\t\t\t\"<strong>For sale:</strong> \" . $this->forSale . \"<br/>\" .\r\n\t\t\t\t\"<strong>Special offer:</strong> \" . $this->specialOffer . \"<br/>\" .\r\n\t\t\t\t\"<strong>Availibility text:</strong> \" . $this->availibilityText . \"<br/>\" .\r\n\t\t\t\t\"<strong>Images:</strong> \" . print_r($this->images) . \"<br/>\" .\r\n\t\t\t\t\"<strong>Price:</strong> \" . $this->price . \"<br/>\" .\r\n\t\t\t\t\"<strong>Deposit price:</strong> \" . $this->depositPrice . \"<br/>\" .\r\n\t\t\t\t\"<strong>Ecoparticipation price:</strong> \" . $this->ecoParticipationPrice . \"<br/>\";\r\n\t}", "title": "" }, { "docid": "701d389c4663ac6c91b5a231d85f6fb2", "score": "0.76869553", "text": "public function __toString()\n {\n return $this->format($this->format);\n }", "title": "" }, { "docid": "146a0e08899524edde9dfc10b39359b3", "score": "0.7686685", "text": "public function __toString(): string\n {\n return $this->asString();\n }", "title": "" }, { "docid": "9cda1c29d7025270172b167c740145a5", "score": "0.76861775", "text": "public function __toString()\n {\n return (string) json_encode($this, JSON_PRETTY_PRINT);\n }", "title": "" }, { "docid": "b796f0b871160d25c6c9c160bfc97fc1", "score": "0.76830727", "text": "public function __toString()\n {\n return $this->getAsString();\n }", "title": "" }, { "docid": "afdecf6fa212b1de2fb824668ee3bcd6", "score": "0.7681425", "text": "public function __toString() {\n\t\treturn $this->name . ' ' . $this->type;\n\t\t}", "title": "" }, { "docid": "02e2bd57d8cd2981d9616b8a424ca2a1", "score": "0.7679317", "text": "public function toString(){\n\t\treturn $this->__toString();\n\t}", "title": "" }, { "docid": "02e2bd57d8cd2981d9616b8a424ca2a1", "score": "0.7679317", "text": "public function toString(){\n\t\treturn $this->__toString();\n\t}", "title": "" }, { "docid": "722c269dd52773bebf3847760064d14c", "score": "0.76785684", "text": "public function __toString()\n {\n return $this->format();\n }", "title": "" }, { "docid": "116474322936f94d82a9b53572dfbf36", "score": "0.7677203", "text": "public function __toString()\n {\n return '';\n }", "title": "" }, { "docid": "3ea85cafe84f9e0fea4bd5a375c39127", "score": "0.76682997", "text": "public function __toString() {\n return\n \"id: \".$this->ID.\"\\n\".\n \"username: \".$this->wUsername.\"\\n\".\n \"email: \".$this->wMail.\"\\n\";\n }", "title": "" }, { "docid": "00acf8a077a868faa1adea8e75fd1bd6", "score": "0.7662782", "text": "public function __toString()\n\t{\n\t\t$str = \"[\" . __CLASS__ . \"]\";\n\t\t\n\t\tif(isset($this->artist_id))\n\t\t{\n\t\t\t$str .= \" artist_id : \" . $this->artist_id . \",\";\n\t\t}\n\t\t\n\t\tif(isset($this->name))\n\t\t{\n\t\t\t$str .= \" name : \" . $this->name . \",\";\n\t\t}\n\t\t\n\t\tif(isset($this->image_url))\n\t\t{\n\t\t\t$str .= \" image_url : \" . $this->image_url . \",\";\n\t\t}\n\t\t\n\t\tif(isset($this->info))\n\t\t{\n\t\t\t$str .= \" info : \" . $this->info;\n\t\t}\n\t\t\n\t\tif(isset($this->titres))\n\t\t{\n\t\t\t$str .= \" titres : \" . var_dump($this->titres);\n\t\t}\n\t\t\n\t\t\n\t\treturn $str . \" . <br />\";\n\t}", "title": "" }, { "docid": "33cff69cbabb6b6ea61b9578c5c6c066", "score": "0.7648021", "text": "public function __toString();", "title": "" }, { "docid": "33cff69cbabb6b6ea61b9578c5c6c066", "score": "0.7648021", "text": "public function __toString();", "title": "" } ]
a4a5b8cea35b533b3be3a15914df19e7
Get a seeder instance from the container.
[ { "docid": "b62c53868a416250e713796260b09911", "score": "0.6360712", "text": "protected function getSeeder()\n {\n $class = $this->app->make('Bookworm\\Database\\Install');\n\n return $class->setContainer($this->app)->setCommand($this);\n }", "title": "" } ]
[ { "docid": "6f3cac183ad72a395e75c29b16f37e7d", "score": "0.7024345", "text": "protected function getSeeder()\n {\n $class = $this->input->getOption('class') === 'DatabaseSeeder'\n ? 'App\\\\Domains\\\\Core\\\\Database\\\\Seeds\\\\DatabaseSeeder'\n : $this->domainNamespace('Database/Seeds') . '\\\\' . $this->input->getOption('class');\n\n $class = $this->laravel->make($class);\n\n return $class->setContainer($this->laravel)->setCommand($this);\n }", "title": "" }, { "docid": "41a350103d10634c371e3ab0da593cbe", "score": "0.60369664", "text": "public function getSeed() {\n return $this->seed;\n }", "title": "" }, { "docid": "ded82422a359f9ef20e5e79682e14dc7", "score": "0.5649678", "text": "protected function createSeeder()\n {\n $repositoryOptions = [\n 'seeder' => $this->singularModule(),\n '--module' => $this->topParentModule(),\n '--repository' => $this->repositoryName($this->getModule()),\n ];\n\n $this->call(\n 'engez:seeder',\n $repositoryOptions\n // $this->withDataTypes($repositoryOptions)\n );\n }", "title": "" }, { "docid": "280b5dcaad31e7fb5f45feb985547feb", "score": "0.5630735", "text": "static function get_runner() {\n try {\n static $runner;\n\n if ( !$runner ) {\n $runner = new Terminus\\Runner;\n }\n\n return $runner;\n } catch(\\Exception $e) {\n Terminus::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "aa96b7330de403ddf728d977c64b29cd", "score": "0.5542344", "text": "protected function getNelmioAlice_Faker_GeneratorService()\n {\n $this->services['nelmio_alice.faker.generator'] = $instance = \\Faker\\Factory::create('en_US');\n\n $instance->seed(1);\n $instance->addProvider(${($_ = isset($this->services['data_fixtures.provider.foo']) ? $this->services['data_fixtures.provider.foo'] : $this->get('data_fixtures.provider.foo')) && false ?: '_'});\n $instance->addProvider(${($_ = isset($this->services['nelmio_alice.faker.provider.alice']) ? $this->services['nelmio_alice.faker.provider.alice'] : $this->get('nelmio_alice.faker.provider.alice')) && false ?: '_'});\n\n return $instance;\n }", "title": "" }, { "docid": "029f837b2a1d5eef0dda8bf8b790d81e", "score": "0.54838085", "text": "public static function do($container, $lazyLoad = true)\n {\n include_once \\dirname(__DIR__, 4).'/vendor/fakerphp/faker/src/Faker/Generator.php';\n include_once \\dirname(__DIR__, 4).'/vendor/fakerphp/faker/src/Faker/Factory.php';\n include_once \\dirname(__DIR__, 4).'/vendor/nelmio/alice/src/Faker/Provider/AliceProvider.php';\n\n $container->services['Faker\\\\Generator'] = $instance = \\Faker\\Factory::create('en_US');\n\n $instance->seed(1);\n $instance->addProvider(new \\Nelmio\\Alice\\Faker\\Provider\\AliceProvider());\n\n return $instance;\n }", "title": "" }, { "docid": "42cd7bba6b3aa58004262559691901d2", "score": "0.54411983", "text": "protected function resolve($class)\n\t\t{\n\t\t\t$instance = $this->kernel ? $this->kernel->make($class) : new $class;\n\n\t\t\t// Set the Application Kernel on the Seeder instance if applicable.\n\t\t\tif($this->kernel and $instance instanceof framework\\interfaces\\KernelAware)\n\t\t\t{\n\t\t\t\t$instance->setKernel($this->kernel);\n\t\t\t}\n\n\t\t\t// Set the Console Context on the Seeder instance if applicable.\n\t\t\tif($this->context and $instance instanceof console\\interfaces\\ContextAware)\n\t\t\t{\n\t\t\t\t$instance->setContext($this->context);\n\t\t\t}\n\n\t\t\treturn $instance;\n\t\t}", "title": "" }, { "docid": "1aa78bfb9c8a5c6d82d88174643aff4e", "score": "0.5407065", "text": "public function seed() {\r\n\r\n // Get Seeders\r\n $class = $this->def('seeder');\r\n\r\n // Check Seeders Available\r\n if($class) {\r\n\r\n // Confirm Array List\r\n if (!is_array($class))\r\n $class = array($class);\r\n\r\n // Unguard Eloquent\r\n \\Eloquent::unguard();\r\n\r\n // Loop Each Seed\r\n foreach ($class as $c) {\r\n\r\n // Confirm Class Exists\r\n if (class_exists($c)) {\r\n\r\n // Create Seeder Instance & Run\r\n $seeder = new $c;\r\n $seeder->run();\r\n }\r\n }\r\n\r\n // Reguard Eloquent\r\n \\Eloquent::reguard();\r\n }\r\n }", "title": "" }, { "docid": "24ea68d281cc6b93cd54335e1bf51d62", "score": "0.53743255", "text": "public static function get()\n {\n if (static::$factory === null) {\n static::$factory = static::autodetectFactory();\n }\n\n return static::$factory;\n }", "title": "" }, { "docid": "4d58e5d755d764e254cf94a340d32765", "score": "0.53482693", "text": "public function getSeed(){ return $this->seed; }", "title": "" }, { "docid": "43f992f1040e54e641514762ccf9579b", "score": "0.53185445", "text": "public function getSeeders()\n\t{\n\t\treturn $this->DatabaseService->getSeeders();\n\t}", "title": "" }, { "docid": "ea2ca80e290ea6148ae66b0cc3d87560", "score": "0.5313074", "text": "public static function get($container = 'main') {\n\n if (!isset(self::$_instance[$container])) {\n self::$_instance[$container] = new self();\n self::$_instance[$container]->setName($container);\n self::$_instance[$container]->setup();\n }\n\n return self::$_instance[$container];\n\n }", "title": "" }, { "docid": "a63572e49abb8a0196368c732a9698cb", "score": "0.52825445", "text": "public function getFaker()\n {\n if (is_null($this->faker) && class_exists($this->fakerClass)) {\n $this->faker = call_user_func(\"$this->fakerClass::create\");\n }\n\n return $this->faker;\n }", "title": "" }, { "docid": "8e62caec3a4346a67c8412ba84d8b2a1", "score": "0.52398145", "text": "public function show(Seed $seed) {\n return $seed;\n }", "title": "" }, { "docid": "537a9b5f9768f8bedb29479875d86898", "score": "0.5187534", "text": "public function getInstance() {\r\n\t\teval($this->generateCode());\r\n\t\t$classReflection = Nette\\Reflection\\ClassType::from($this->class->getName());\r\n\t\treturn $classReflection->newInstance();\r\n\t}", "title": "" }, { "docid": "a15c0867c21b2566897dea3a58e96ff3", "score": "0.51790446", "text": "public static function instance()\n {\n $accessor = static::getFacadeAccessor();\n\n return static::resolveFacadeInstance($accessor);\n }", "title": "" }, { "docid": "026234d4b54d00a1bae9d996dcd1c24a", "score": "0.5149938", "text": "public function get( Container $container ) {\n\t\tif ( empty( $this->shared_instance ) ) {\n\t\t\t$this->shared_instance = $this->resolve_value( $container );\n\t\t}\n\t\treturn $this->shared_instance;\n\t}", "title": "" }, { "docid": "cbd5e5a48129d4fd69caaf0b0630d359", "score": "0.51322687", "text": "public static function get_instance() {\n\t\n\t\t// CHECK: and instantiate\n\t\treturn isset(self::$instance) ? self::$instance : self::instantiate();\n\t\t\n\t}", "title": "" }, { "docid": "61ff43a4f4c1d647fee1667aeb714b02", "score": "0.5118047", "text": "public function getFaker()\n\t{\n\t\t$generator = sproutImport()->faker->getGenerator();\n\n\t\treturn $generator;\n\t}", "title": "" }, { "docid": "798811018532dbb03e67ab14c284912b", "score": "0.5112573", "text": "public function getInstance()\n {\n return $this->instance;\n }", "title": "" }, { "docid": "798811018532dbb03e67ab14c284912b", "score": "0.5112573", "text": "public function getInstance()\n {\n return $this->instance;\n }", "title": "" }, { "docid": "798811018532dbb03e67ab14c284912b", "score": "0.5112573", "text": "public function getInstance()\n {\n return $this->instance;\n }", "title": "" }, { "docid": "1fff4dce67df1d20207a91d5ad9a2504", "score": "0.51114297", "text": "function GetInstance()\n\t{\n\t\t$instance = new Instance();\n\t\treturn $instance->Get($this->instanceId);\n\t}", "title": "" }, { "docid": "8287a5a38873fe57b654ee6c4bce6faa", "score": "0.51008207", "text": "protected function getPersonFactory()\n {\n return $this->container->get('xidea_person.person.factory');\n }", "title": "" }, { "docid": "ebbc43680fdaf2c443b953955612169c", "score": "0.5090433", "text": "public static function getContainer()\n {\n return static::$factoryContainer ?? (static::$factoryContainer = new Container(true));\n }", "title": "" }, { "docid": "402eda91a1e5e474e6dd7a0c1cd7f9a0", "score": "0.503593", "text": "public static function instance()\n {\n return self::find(self::ID);\n }", "title": "" }, { "docid": "42c542a426138a9bfd950747e8a4d2e6", "score": "0.5030713", "text": "function client(): Client\n{\n return container()->getSingleton(Client::class);\n}", "title": "" }, { "docid": "aa7d551d693603192499e2e565fb7afe", "score": "0.5007004", "text": "public function get() {\n $class_name = $this->clientFactory->getClass(ClientFactory::REDIS_IMPL_FLOOD);\n return new $class_name($this->clientFactory, $this->requestStack);\n }", "title": "" }, { "docid": "be12b808b5386cfcfeae5efed4ae904f", "score": "0.50053734", "text": "public function getDoctrineContainer() {\n return $this->getInvokeArg('bootstrap')->getResource('doctrine');\n }", "title": "" }, { "docid": "a473e48dcb1426a62a55dd78c9dbd9ae", "score": "0.5004833", "text": "public static function Instance()\n {\n static $inst = null;\n if ($inst === null) {\n $inst = new UserFactory();\n }\n return $inst;\n }", "title": "" }, { "docid": "a473e48dcb1426a62a55dd78c9dbd9ae", "score": "0.5004833", "text": "public static function Instance()\n {\n static $inst = null;\n if ($inst === null) {\n $inst = new UserFactory();\n }\n return $inst;\n }", "title": "" }, { "docid": "2d6dc5f417c8d17f0f3c56837aa8ff4b", "score": "0.49542862", "text": "public static function self()\n {\n return Facade::$app->getContainer()[static::getFacadeAccessor()];\n }", "title": "" }, { "docid": "6bc1ffce4dd1c5fcea9580003de86093", "score": "0.4940514", "text": "public static function Instance()\r\n {\r\n static $inst = null;\r\n if ($inst === null) {\r\n $inst = new UserFactory();\r\n }\r\n return $inst;\r\n }", "title": "" }, { "docid": "ab188ae4327659cdd1e068ed720a4495", "score": "0.49397162", "text": "public static function getContainer(): ?DIContainer\n {\n self::checkForInstance();\n return self::$container;\n }", "title": "" }, { "docid": "e80d653468d26125429c6dcc64eeed1a", "score": "0.49382764", "text": "public function run()\n {\n $this->call(thanhvienSeeder::class);\n }", "title": "" }, { "docid": "2551f321a18d7b2fd94e842a0926223c", "score": "0.49336386", "text": "public function run() //เรียก seeder ที่ต้องใช้งาน\n {\n $this->call([\n #UpsSeederNew::class,\n ClientSeeder::class,\n PeripheralSeeder::class,\n StorageperipheralSeeder::class,\n NetworkDeviceSeeder::class,\n ServerSeeder::class,\n NetworkedStorageSeeder::class,\n UpsSeeder::class,\n ]);\n }", "title": "" }, { "docid": "e4de13e12761fe2f1949f388faca6f7f", "score": "0.49320465", "text": "public static function get()\n {\n if (self::$_factory === null) {\n self::$_factory = new UUID_UuidFactory();\n }\n return self::$_factory;\n }", "title": "" }, { "docid": "7911bec539c51942ce8db6f3f461bd31", "score": "0.49294356", "text": "public function getFactory(): Factory\n {\n return $this->factory;\n }", "title": "" }, { "docid": "ed6ffff0c1b6fe134c41b27577976238", "score": "0.49179316", "text": "public function getInstance()\n\t{\n\t\tif (null === $this->instance) {\n\t\t\t$this->loadInstance();\n\t\t}\n\t\treturn $this->instance;\n\t}", "title": "" }, { "docid": "cbf74f6a0ce4f71fabde2bc974776b5a", "score": "0.49116236", "text": "public function newInstance(): object\n {\n if ($this->factory === null) {\n throw Exceptional::Setup(\n 'Binding for ' . $this->type . ' does not have a factory yet'\n );\n }\n\n /** @var object $output */\n $output = $this->container->call($this->factory, $this->params);\n return $this->prepareInstance($output);\n }", "title": "" }, { "docid": "039bbdd37f8c7d4edae0f9bb8951bd06", "score": "0.48786262", "text": "public function run()\n {\n $seed = env('SEED', null);\n if(true === $seed) {\n $this->call(TierSeeder::class);\n $this->call(QualitySeeder::class);\n $this->call(EnchantmentSeeder::class);\n $this->call(ItemSeeder::class);\n\n $this->call(PriceVariationSeeder::class);\n $this->call(StoreSeeder::class);\n }\n }", "title": "" }, { "docid": "c9874f1f7af544b547307c320560447a", "score": "0.48784173", "text": "public static function get_instance() {\n\t\tif ( null === self::$instance ) {\n\t\t\tself::$instance = new Bridge_Library_User_Interest_Feeds();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "00c2677453917ff78a4f9c8252cc8a71", "score": "0.48674408", "text": "public function getFactory()\n {\n if (isset($this->_factory)) {\n return $this->_factory;\n } else {\n return $this->_factory = $this->createFactory($this->driver);\n }\n }", "title": "" }, { "docid": "1736a4f5d03f1754bbc6082d80735421", "score": "0.48589802", "text": "public function setSeed($seed) {\n $this->seed = $seed;\n return $this;\n }", "title": "" }, { "docid": "7510809fddf5597798d61f12fce91d2a", "score": "0.48444676", "text": "public function getContainer(): Container\n {\n if (!$this->container) {\n $this->boot();\n }\n\n return $this->container;\n }", "title": "" }, { "docid": "5a054ba0dc659773ff8eb62ea471c12c", "score": "0.48364532", "text": "abstract protected static function createSeed();", "title": "" }, { "docid": "37a8de4165bff501e917268ddf88b6fd", "score": "0.48345315", "text": "protected function getRandomInstance()\n {\n $doctor = new Doctor();\n $this->fillAddress($doctor);\n $this->fillCommunication($doctor);\n $this->fillPerson($doctor);\n $this->fillUser($doctor);\n\n return $doctor;\n }", "title": "" }, { "docid": "9e4a312fb2a3075c2383ad854d367fbd", "score": "0.48339063", "text": "public function getFactory()\n {\n return $this->factory;\n }", "title": "" }, { "docid": "9e4a312fb2a3075c2383ad854d367fbd", "score": "0.48339063", "text": "public function getFactory()\n {\n return $this->factory;\n }", "title": "" }, { "docid": "9e4a312fb2a3075c2383ad854d367fbd", "score": "0.48339063", "text": "public function getFactory()\n {\n return $this->factory;\n }", "title": "" }, { "docid": "9e4a312fb2a3075c2383ad854d367fbd", "score": "0.48339063", "text": "public function getFactory()\n {\n return $this->factory;\n }", "title": "" }, { "docid": "8f7f54266c91dd48235c7ee79cc21383", "score": "0.4832828", "text": "private function getInstanceFromItself($id)\n {\n try {\n $instance = $this->container[$id]();\n } catch (\\Exception $exception) {\n throw new ContainerException($exception->getMessage());\n }\n return $instance;\n }", "title": "" }, { "docid": "f89563acbd673ca86225521d29075506", "score": "0.48071894", "text": "function &getFactoryInstance()\n\t{\n\t\treturn $this->factory_instance;\n\t}", "title": "" }, { "docid": "32d43a59c8151c8d71dab1625429990c", "score": "0.48015025", "text": "protected function getExampleagentdaemonService()\n {\n $this->services['exampleagentdaemon'] = $instance = new \\ExampleAgent($this->get('dispatcher'), $this->get('logger'));\n\n $instance->start();\n\n return $instance;\n }", "title": "" }, { "docid": "536c375580be7700d694c8ca4de14e6a", "score": "0.47965926", "text": "public function getContainer()\n {\n if ($this->container) {\n return $this->container;\n }\n\n self::bootKernel();\n\n $this->container = self::$kernel->getContainer();\n\n return $this->container;\n }", "title": "" }, { "docid": "f62f6c6ab90ab145129fe7e9f1d1a110", "score": "0.47875816", "text": "public function getFactory()\n {\n if ($this->factory) {\n return $this->factory;\n }\n }", "title": "" }, { "docid": "1e0c7f0277153a6d8d941f0e841669ba", "score": "0.47866395", "text": "public static function getInstance()\n\t\t{\n\t\t\tif (static::isBooted()) {\n\t\t\t\treturn static::$instance;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstatic::$instance->boot();\n\n\t\t\t\treturn static::$instance;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0906c7c77ef4a0a38129dce3dfc50db4", "score": "0.47840253", "text": "protected function getNelmioAlice_Faker_Provider_AliceService()\n {\n return $this->services['nelmio_alice.faker.provider.alice'] = new \\Nelmio\\Alice\\Faker\\Provider\\AliceProvider();\n }", "title": "" }, { "docid": "9c5a9e2ac5d027bb0a365fe6a622b015", "score": "0.4775557", "text": "protected function getContainer()\n {\n return $this->container;\n }", "title": "" }, { "docid": "9c5a9e2ac5d027bb0a365fe6a622b015", "score": "0.4775557", "text": "protected function getContainer()\n {\n return $this->container;\n }", "title": "" }, { "docid": "d9b06cf9cf563dd600c5b286baeb43bf", "score": "0.47752646", "text": "public function getInstance(IDependencyInjectionContainer $container)\n\t{\n\t\tif (is_null($this->sharedInstance))\n\t\t{\n\t\t\t$this->sharedInstance = parent::getInstance($container);\n\t\t}\n\t\treturn $this->sharedInstance;\n\t}", "title": "" }, { "docid": "a427c70f71093f4449f3e822b75c0586", "score": "0.47708413", "text": "public function containerGet(UnitTester $I)\n {\n $I->wantToTest('Container - get()');\n\n $this->newDi();\n\n $escaper = new Escaper();\n $this->container->setShared('test', $escaper);\n $this->setDiService('escaper');\n\n $container = new Container($this->container);\n $containerEscaper = $container->get('test');\n\n $I->assertInstanceOf(Escaper::class, $containerEscaper);\n\n $diEscaper = $this->container->getShared('test');\n\n $expected = spl_object_hash($escaper);\n $actual = spl_object_hash($diEscaper);\n $I->assertEquals($expected, $actual);\n\n $expected = spl_object_hash($diEscaper);\n $actual = spl_object_hash($containerEscaper);\n $I->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "a281033d6d0f3f0d698480f195bc8561", "score": "0.4764448", "text": "public function getFactory()\n {\n return parent::getFactory();\n }", "title": "" }, { "docid": "fb179b6319ee565a4f3a9b433807824e", "score": "0.4762095", "text": "public function getInstance() {\n if (!isset($this->instance) && $parent = $this->getParent()) {\n $this->instance = $parent->getInstance();\n }\n return $this->instance;\n }", "title": "" }, { "docid": "a08b17690d8bb34cb7e52dbe091e70af", "score": "0.47576782", "text": "public function getRandomGenerator(): RandomGeneratorInterface\n {\n return $this->randomGenerator;\n }", "title": "" }, { "docid": "a08b17690d8bb34cb7e52dbe091e70af", "score": "0.47576782", "text": "public function getRandomGenerator(): RandomGeneratorInterface\n {\n return $this->randomGenerator;\n }", "title": "" }, { "docid": "885135f4818c4e2ed6667890cdfec0f4", "score": "0.4749692", "text": "public function getBootstrapper() { return $this->__call(__FUNCTION__, array()); }", "title": "" }, { "docid": "93df4ef0c36315b41eaedc91bf1d21eb", "score": "0.47478637", "text": "protected function getUser()\n {\n return factory(User::class)->create();\n }", "title": "" }, { "docid": "30b47f4c1b700ddfbbb7a48e4e367cab", "score": "0.47468704", "text": "public static function getInstance()\n {\n static $instance = null;\n if (null === $instance) {\n $instance = new EditorFactory();\n }\n return $instance;\n }", "title": "" }, { "docid": "c62bd9de885fc7f0e853edc8ff2b7587", "score": "0.4746201", "text": "protected function getFactory() {\n\t\treturn $this->factory;\n\t}", "title": "" }, { "docid": "fbc8f3cb0fa4bb3b451354347a397495", "score": "0.4742973", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n // FornecedorSeeder::class,\n TipoChamadoSeeder::class,\n StatusChamadoSeeder::class,\n StatusPedidoSeeder::class,\n TipoUsuarioSeeder::class,\n ContratoTipoSeeder::class,\n TipoContatoSeeder::class,\n MedicaoTipoSeeder::class,\n TipoLicencaSeeder::class,\n EstadoPatrimonioSeeder::class,\n ExpedicaoEstadoSeeder::class,\n NotaEspelhoEstadoSeeder::class,\n ClienteSeeder::class,\n ContatoSeeder::class,\n UsuarioSeeder::class,\n EnderecoSeeder::class,\n //TipoPatrimonioSeeder::class,\n PatrimonioSeeder::class,\n LicencaSeeder::class,\n ContratoSeeder::class,\n PedidoSeeder::class,\n // CompraSeeder::class,\n ChamadoSeeder::class,\n PatrimonioAlugadoSeeder::class,\n NotaSeeder::class,\n NotaEspelhoSeeder::class,\n FichaSeeder::class,\n ExpedicaoTipoSeeder::class,\n LancamentoFuturoSeeder::class,\n CobrancaSeeder::class,\n ClienteProcessoSeeder::class,\n NotaSerasaSeeder::class,\n ReajusteContratoSeeder::class,\n ]);\n }", "title": "" }, { "docid": "e0bcfe3d58dc45d87bd26a8827f25066", "score": "0.4728648", "text": "public function getSeeds()\n {\n if (null === $this->seeds) {\n $config = $this->getConfig();\n $phpFiles = glob($config->getSeedPath() . DIRECTORY_SEPARATOR . '*.php');\n\n // filter the files to only get the ones that match our naming scheme\n $fileNames = array();\n /** @var AbstractSeed[] $seeds */\n $seeds = array();\n\n foreach ($phpFiles as $filePath) {\n if (Util::isValidSeedFileName(basename($filePath))) {\n // convert the filename to a class name\n $class = pathinfo($filePath, PATHINFO_FILENAME);\n $fileNames[$class] = basename($filePath);\n\n // load the seed file\n /** @noinspection PhpIncludeInspection */\n require_once $filePath;\n if (!class_exists($class)) {\n throw new \\InvalidArgumentException(sprintf(\n 'Could not find class \"%s\" in file \"%s\"',\n $class,\n $filePath\n ));\n }\n\n // instantiate it\n $seed = new $class();\n\n if (!($seed instanceof AbstractSeed)) {\n throw new \\InvalidArgumentException(sprintf(\n 'The class \"%s\" in file \"%s\" must extend \\Phinx\\Seed\\AbstractSeed',\n $class,\n $filePath\n ));\n }\n\n $seed->setOutput($this->getOutput());\n $seeds[$class] = $seed;\n }\n }\n\n ksort($seeds);\n $this->setSeeds($seeds);\n }\n\n return $this->seeds;\n }", "title": "" }, { "docid": "61e8e9b0ee6f89eefa3d8896d40aea84", "score": "0.47245812", "text": "public function run()\n {\n\n /**\n * UserSeeder MUST run last as it depends on data provided\n * by the other seeder classes.\n */\n $this->call([\n ProjectStateSeeder::class,\n// ClientSeeder::class,\n// ProjectSeeder::class,\n TeamSeeder::class,\n UserTypeSeeder::class,\n UserSeeder::class,\n PipelineEntitySeeder::class,\n ]);\n\n }", "title": "" }, { "docid": "2bc0e100eab1bca4d2b8636737adfe69", "score": "0.4720556", "text": "public function getContainer()\n {\n return $this->getKernel()->getContainer();\n }", "title": "" }, { "docid": "9c2023c5546fcd1034c50ecfc7337b7b", "score": "0.47179773", "text": "public function run()\n {\n $this->call([\n PosteSeeder::class,\n RoleSeeder::class,\n UserSeeder::class,\n CategorySeeder::class,\n TagSeeder::class,\n ArticleSeeder::class,\n CommentSeeder::class,\n ArticleTagSeeder::class,\n LogoSeeder::class,\n SliderSeeder::class,\n ServiceSeeder::class,\n AboutSeeder::class,\n ContactSeeder::class,\n ContactMailSeeder::class,\n ContactPhoneSeeder::class,\n ContactAdressSeeder::class,\n FooterSeeder::class,\n MemberSeeder::class,\n PromotionSeeder::class,\n ServiceCardSeeder::class,\n TestislideSeeder::class,\n TitleSeeder::class,\n IconSeeder::class,\n SubjectSeeder::class,\n ]);\n }", "title": "" }, { "docid": "d5171c12822090284b9ae9ae37656c8f", "score": "0.47157604", "text": "public static function get_instance() {\n\n\t\t// Initialize if the class hasn't been setup yet for some reason\n\t\tif ( ! is_object( self::$instance ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "55a28a686bdf30d4dce47381bc482550", "score": "0.4707059", "text": "public function getContainer(): Container\n {\n return $this->container;\n }", "title": "" }, { "docid": "e6e0cae6831db47a43c3f300c0456a66", "score": "0.47052726", "text": "private function getContainer ()\n {\n if ($this->container === null) {\n $builder = new DIContainer(); \n $builder->addDefinition($this->defaultConfig);\n foreach ($this->modules as $module) {\n if ($module::DEFINITIONS) {\n $builder->addDefinition($module::DEFINITIONS);\n }\n }\n $builder->addDefinition(dirname(dirname(__DIR__)) . '/config.php');\n $this->container = $builder->build();\n }\n return $this->container;\n }", "title": "" }, { "docid": "8aa3afee048b57e1ec59bfcfc1d03bb7", "score": "0.4704165", "text": "public function seed() {}", "title": "" }, { "docid": "b74941727462697d313861598cb71939", "score": "0.47004956", "text": "public static function run_instance() {\n static $instance = null;\n if ( $instance === null ) {\n $instance = new static();\n }\n\n return $instance;\n }", "title": "" }, { "docid": "178c4ca016c7c948ae13386568bbe593", "score": "0.4689622", "text": "public static function getInstance()\n {\n return Doctrine_Core::getTable('Hoster');\n }", "title": "" }, { "docid": "0da820fb0862d5ffc62b0d7a1067fba0", "score": "0.46878567", "text": "public function run()\n {\n DB::table('categories')->insert([\n 'name' => 'Laptop',\n 'status' => 'Active',\n ]);\n\n return factory(App\\Category::class, 10)->make();\n }", "title": "" }, { "docid": "65212ccd51b90ca8fff18047c19b6741", "score": "0.46806622", "text": "protected function _getContainer()\n {\n return $this->container;\n }", "title": "" }, { "docid": "6e188ab897c8bf91799ca7cbccb30dbf", "score": "0.4678047", "text": "public function getDceSecurityGenerator(): DceSecurityGeneratorInterface\n {\n return $this->dceSecurityGenerator;\n }", "title": "" }, { "docid": "6e188ab897c8bf91799ca7cbccb30dbf", "score": "0.4678047", "text": "public function getDceSecurityGenerator(): DceSecurityGeneratorInterface\n {\n return $this->dceSecurityGenerator;\n }", "title": "" }, { "docid": "fddc1cf0e4be5bdfc67f36496a3af06c", "score": "0.46707225", "text": "public function getInstance(){\r\n\t\treturn $this->instance;\r\n\t}", "title": "" }, { "docid": "f7634d5cd0ffef38fec0d9e6703f4747", "score": "0.46675405", "text": "public function getDiscoveryService()\n {\n return $this->discoveryService;\n }", "title": "" }, { "docid": "922613a383e152e1f7443940dd14c07e", "score": "0.46668506", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "7119ec45ae0ad6d3725e38c1c54e6da5", "score": "0.46653962", "text": "public static function get_instance() {\n if( is_null( self::$instance ) ) {\n new self();\n }\n return self::$instance;\n }", "title": "" }, { "docid": "43f5e6bf51fde0cecb9a9391244bcc5c", "score": "0.4659554", "text": "public static function get_instance() {\n\t\tif ( isset( static::$instance ) ) {\n\t\t\treturn static::$instance;\n\t\t}\n\t}", "title": "" }, { "docid": "3afffcb0dc6ba5c7fb0373c275cc53af", "score": "0.46473122", "text": "public static function getInstance()\n {\n return static::getAdapter()->getInstance();\n }", "title": "" }, { "docid": "7c6a5580822ffd0377fbc8b69ffcb942", "score": "0.4641429", "text": "private function getSampleFactory()\n {\n if (!$this->sampleFactory) {\n $this->sampleFactory = ObjectManager::getInstance()->get(\n '\\Magento\\Downloadable\\Api\\Data\\SampleInterfaceFactory'\n );\n }\n return $this->sampleFactory;\n }", "title": "" }, { "docid": "59b6784afbf2f370f1544b6402c1064d", "score": "0.4640342", "text": "public function run()\n {\n User::factory(10)->create();\n// $this->call(EstadoSeeder::class);\n// $this->call(CidadeSeeder::class);\n// $this->call(EnderecoSeeder::class);\n }", "title": "" }, { "docid": "8fe0b51777d180b11c03e261009c2757", "score": "0.46386647", "text": "public static function instance($id = null)\n {\n if (!$id)\n $id = get_called_class();\n if (isset(self::$instances[$id]))\n return self::$instances[$id];\n throw new Exception(strtr('Instance \"{id}\" has not been created.', array(\n '{id}' => $id,\n )));\n }", "title": "" }, { "docid": "2cc74deb9cf4222005c6f9765663b3ae", "score": "0.4637191", "text": "public static function make()\n {\n $clientAdapter = new GuzzleV6ClientAdapter(new Client());\n $logger = new Logger('random');\n $logger->pushHandler(new StreamHandler(ROOT . '/var/log/random.log'));\n\n $adapter = RestAdapter::builder()\n ->setBaseUrl('https://random.org')\n ->setClientAdapter($clientAdapter)\n ->setLogger($logger)\n ->addSubscriber(new ResponseSubscriber())\n ->build();\n\n return $adapter->create(RandomClient::class);\n }", "title": "" }, { "docid": "8ddc63e154277419b139c411237ef0e9", "score": "0.46371427", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // here u call the seeder u want\n // automatically the function (run) of the seeder that u want will be called \n $this->call(TodosSeeder::class);\n }", "title": "" }, { "docid": "9c3fb0015308f3ce4ae35eef8a2cae03", "score": "0.46359912", "text": "protected static function getContainer(): Container\n {\n return self::$container ??= \\Valkyrja\\container();\n }", "title": "" }, { "docid": "c55da868bbeb9cd4fe26be605d29581e", "score": "0.46354842", "text": "public function getInstance(): ?Instance\n\t{\n\t\treturn $this->client()->getInstance($this->instanceId);\n\t}", "title": "" }, { "docid": "76ecbff4a718ca6d5e1e63a003352417", "score": "0.4631986", "text": "public function getDI()\n {\n $dependencyInjector = $this->_dependencyInjector;\n if (is_object($dependencyInjector) == false) {\n $dependencyInjector = Di::getDefault();\n if (is_object($dependencyInjector) == false) {\n throw new \\Exception(\"A dependency injection object is required to access the application services\");\n }\n }\n return $dependencyInjector;\n }", "title": "" }, { "docid": "af8342cf16d03bbdeaebba788a4d4d5a", "score": "0.46319297", "text": "public static function get() {\n if (is_null(self::$instance)) {\n self::$instance = new self();\n }\n\n return self::$instance;\n }", "title": "" } ]
ddbd8457c6e138cbc7c09fb555b20470
Deauthorization of the student
[ { "docid": "d88c767bb8f4832449e633e7ac7e8344", "score": "0.71956134", "text": "public function deauthorizeStudent(): bool\n {\n return $this->cookie->destroyCookie('auth_token');\n }", "title": "" } ]
[ { "docid": "6ee0e80aaf30bee9b5a5a686852650be", "score": "0.69822276", "text": "public function destroy(student $student)\n {\n //\n }", "title": "" }, { "docid": "75033f647f56bc5b643fbab18536bbf8", "score": "0.69202495", "text": "public function deauthorize($uid)\n {\n OAuthStore::where('id', $uid)->delete();\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "cb843184f2446f91364a406509bfe2ff", "score": "0.6808111", "text": "public function destroy(Student $student)\n {\n //\n }", "title": "" }, { "docid": "ce5acff02cba78167fa2091c9ace20dc", "score": "0.66767704", "text": "public function revoke_access() {\n // Nothing to do!\n }", "title": "" }, { "docid": "463ef8e1a89786ab17548ce90dfc4af4", "score": "0.66535187", "text": "public abstract function revoke_access();", "title": "" }, { "docid": "0ecf3e2617d0b3cac2c5d58c9d9835bb", "score": "0.6554329", "text": "public static function deconnexion() {\n unset($_SESSION['user']); \n }", "title": "" }, { "docid": "4a71b08dd99f65e5c657f6806bf64b4c", "score": "0.65408003", "text": "public function destroy()\n {\n $this->user->adminDeprivilegeAccount($_GET['i']);\n }", "title": "" }, { "docid": "2a54b2b1ec4d8ba4657e10476354abeb", "score": "0.6503167", "text": "public function unenroll()\n {\n $this->setSectionId(NULL);\n $this->setSemesterAction(0);\n $this->save(); \n \n if($this->hasRegistrations())\n {\n foreach($this->getRegistrations() as $rg)\n $rg->unregister(); \n } \n }", "title": "" }, { "docid": "a45c550da670221631fd19f4209cc837", "score": "0.64235955", "text": "public function actionLogout()\n {\n $student_logged = User::find()->where(['id'=>Yii::$app->user->identity->id])->one();\n $student_logged->logged_status = 0; \n $student_logged->save(false);\n Yii::$app->user->logout();\n\n return $this->goHome();\n }", "title": "" }, { "docid": "8205b5ee342eb5e7667fff76106ffbde", "score": "0.6418968", "text": "public function destroy(Student $student)\n {\n $student->delete();\n }", "title": "" }, { "docid": "cd9d0beadcdb14673e2834c361430cb5", "score": "0.6412569", "text": "public function destroy(Student $student)\n {\n //return print_r($_POST);\n $student->delete();\n return redirect('/admin/student')->with('success','has been Deleted');\n\n \n }", "title": "" }, { "docid": "2f3235b732636784b21cbcbfa8ec435f", "score": "0.6396278", "text": "public function logout() {\n Auth::guard('student')->logout();\n return view('student_login');\n }", "title": "" }, { "docid": "8710d7f672308b3451a924bdb0b0cbef", "score": "0.6371169", "text": "public function signout() {\n unset($_SESSION['user_id']);\n unset($_SESSION['user_role']);\n unset($this->user_id);\n unset($this->user_role);\n $this->signed_in = false;\n }", "title": "" }, { "docid": "de8cdc634d46a7621d2c0960d7bbba37", "score": "0.63692033", "text": "public function logout() {\n\t\tunset($_SESSION[\"security\"]);\n\t\t$this->redirect(\"/\");\n\t}", "title": "" }, { "docid": "2517c9c13703f9800d28e80092f39759", "score": "0.63506025", "text": "public function destroy(LevelStudent $levelStudent)\n {\n //\n }", "title": "" }, { "docid": "fb5a76a378eac73a7ac97234a8eb41fc", "score": "0.6334412", "text": "public function destroy($id)\n {\n if(Auth::user()){\n Student::find($id)->delete();\n return redirect()->back();\n }\n else{\n return redirect()->back();\n }\n \n }", "title": "" }, { "docid": "cc6826be2b3a23aa212a9b3cac445fe7", "score": "0.6311549", "text": "public function destroy(student_detail $student_detail)\n {\n //\n }", "title": "" }, { "docid": "a9db54076b3b418183468d26a20ef503", "score": "0.63006556", "text": "public function destroy(studentReview $studentReview)\n {\n //\n }", "title": "" }, { "docid": "1ea8bccf280feb0303e1047c13b0aff0", "score": "0.62846243", "text": "public function logout(){\n unset($_SESSION['user']);\n }", "title": "" }, { "docid": "1c0d492db090bbef61a64849ba4c2e59", "score": "0.6282601", "text": "public function destroy(Students $student)\n {\n $student->delete();\n }", "title": "" }, { "docid": "f216ac84b57ab0c722eba39d38356cd6", "score": "0.6249855", "text": "public function logout()\n {\n $this->getAttributeHolder()->removeNamespace('anSecurityUser');\n $this->clearCredentials();\n $this->setAuthenticated(false);\n }", "title": "" }, { "docid": "14a73d5344351e8bf962835cecaea71d", "score": "0.6230395", "text": "public function deleteStudent() {\n $postdata['id'] = isset($_GET['id']) ? $_GET['id'] : $data['message'][0] = \"Student id is null. Please check\";\n if (isset($_GET['id'])) {\n $dtsql = \"DELETE users.*, user_details.* FROM users,user_details,user_courses \n WHERE users.id=\" . $postdata['id'] . \" AND users.id=user_details.user_id AND users.id=user_courses.user_id\";\n\n // $student_records = $connection->execute($upsql);\n $connection = ConnectionManager::get('default');\n if ($connection->execute($dtsql)) {\n $data['status'] = \"true\";\n $data['message'] = \"The Student records is sucessfully deleted.\";\n } else {\n $data['status'] = \"false\";\n $data['message'] = \"Opps..The Student records is not deleted.Please Try again\";\n }\n }\n $this->set([\n 'response' => $data,\n '_serialize' => ['response']\n ]);\n }", "title": "" }, { "docid": "f8c1f4d7dd034a6ad68ade914a3a8d2c", "score": "0.6209247", "text": "public function destroy(Studentdetails $studentdetails)\n {\n //\n }", "title": "" }, { "docid": "a7cc2b3611ca1ebd620801c5012851a0", "score": "0.62077194", "text": "public function destroy(student $student)\n {\n $student->delete();\n return redirect('/student')->with('status', 'Deleted!!');\n }", "title": "" }, { "docid": "a68559b972465b08624b8e5ced924c33", "score": "0.619757", "text": "public function destroy($id)\n {\n $this->authorize('dean');\n $student = Student::findOrFail($id);\n $user = User::findOrFail($student->user_id);\n $user->delete();\n return ([\n 'status' => 'success',\n 'message' => 'student deleted'\n ]);\n }", "title": "" }, { "docid": "bd42ab97ecb1da8b3d172b0c492db271", "score": "0.6191803", "text": "public function signout(){\n\t\t$information = array(\n\t\t\t'uid' => null,\n\t\t\t'username' => null,\n\t\t\t'email' => null,\n\t\t\t'isSignIn' => FALSE\n\t\t);\n\t\t$this->session->unset_userdata($information);\n\t\t$this->session->sess_destroy();\n\t\tredirect($this->index());\n\t}", "title": "" }, { "docid": "125a23f9d1b61c264429544aa8e778ff", "score": "0.6188822", "text": "private function detainUser() {\n\t\theader('Location: '.$this->gatekeeper_url);\n\t\texit;\n\t}", "title": "" }, { "docid": "63bd12f194dbf3ed5672f0cc0fb5f74e", "score": "0.6187511", "text": "public function destroy(studentLesson $studentLesson)\n {\n //\n }", "title": "" }, { "docid": "7ea1460d3171472d67afcfd091348f20", "score": "0.6182067", "text": "function delete ($kStudent)\n {\n $output = \"0,You do not have permission to delete student records. Please contact the system administrator for assistance\";\n if ($this->session->userdata(\"dbRole\") == 1) {\n if ($this->has_records($kStudent) == 0) {\n $this->db->delete('student', array(\n 'kStudent' => $kStudent\n ));\n $output = \"1,The student record was successfully deleted\";\n } else {\n $output = \"0,The student record has multiple dependent entries in other tables and cannot be deleted\";\n }\n }\n return $output;\n }", "title": "" }, { "docid": "fd4dbd2fd09962fe22e15d469ff050a9", "score": "0.6179508", "text": "public function destroy(Student $student)\n {\n return $student->destroy();\n }", "title": "" }, { "docid": "4132329a76739351e1ca1645d62812c0", "score": "0.6172514", "text": "public function logout()\n {\n unset($_SESSION['user']);\n }", "title": "" }, { "docid": "26fe984b6221cdbb620a49a08152e8b6", "score": "0.6169391", "text": "public function destroy(Student $student)\n {\n $student->delete();\n return redirect()->route('student.index')->with('success', 'Student has been Deleted');\n }", "title": "" }, { "docid": "37894832ab3db930d3c70eac71df3aa5", "score": "0.61687", "text": "public function destroy(Student $student)\n {\n $student = Student::findorfail($student->id);\n $student->delete();\n return redirect('ibis/'.$student->group_id)->with('success', 'Aluno eliminado da turma!');\n }", "title": "" }, { "docid": "77c0f82edd0562c8d6215f876f73c8da", "score": "0.61585927", "text": "public function destroy(Student $student)\n {\n $student->service->delete();\n $student->delete();\n return redirect()->route('students.index');\n }", "title": "" }, { "docid": "bc3f9e7449c25e2c4f084fba3a411d4d", "score": "0.61460465", "text": "public function clearStudentId() {\n unset( $this->studentSessionDetails->studentId );\n }", "title": "" }, { "docid": "95ee484c322707df22a3aa5349e352e9", "score": "0.61422753", "text": "public function destroy($semester_course_id)\n {\n \n }", "title": "" }, { "docid": "97101e25234fe3cef947f0ac8d5c2fff", "score": "0.6140106", "text": "public function actionRevoke()\n {\n $authManager = Yii::$app->authManager;\n $username = $this->prompt(Module::translate('module', 'Username:'), ['required' => true]);\n $user = $this->findModel($username);\n $roleName = $this->select(\n Module::translate('module', 'Role:'),\n ArrayHelper::merge(\n ['all' => Module::translate('module', 'All Roles')],\n ArrayHelper::map($authManager->getRolesByUser($user->id), 'name', 'description')\n )\n );\n if ($roleName === 'all') {\n $authManager->revokeAll($user->id);\n } else {\n $role = $authManager->getRole($roleName);\n $authManager->revoke($role, $user->id);\n }\n $this->stdout(Module::translate('module', 'Success!'), Console::FG_GREEN, Console::BOLD);\n $this->stdout(PHP_EOL);\n }", "title": "" }, { "docid": "5da09b5a2ea1adb10da4e6d7053c9145", "score": "0.6119402", "text": "public function destroy(Request $request, User $student)\n {\n $user = $request->user();\n $status = 'deleted';\n\n // Delete user completely for UserRole::PROGRAMCOORDINATOR\n if ($user->hasRole(UserRole::ADMIN)) {\n $student->delete();\n } else {\n // Detach student from program if initiated by UserRole::PROGRAMCOORDINATOR\n $student->programs()->detach($request->user()->program);\n $status = 'removed from program';\n }\n\n $request->session()->flash('status', \"Student {$status} successfully!\");\n\n return redirect()->route('students.index');\n }", "title": "" }, { "docid": "9a5306eac247d197502cd745a235e4f9", "score": "0.6117661", "text": "public function actionRevoke()\n\t{\n\t\t// We only allow deletion via POST request\n\t\tif( Yii::app()->request->isPostRequest===true )\n\t\t{\n\t\t\t$this->_authorizer->authManager->revoke($_GET['name'], $_GET['id']);\n\t\t\tYii::app()->user->setFlash($this->_module->flashSuccessKey,\n\t\t\t\tYii::t('AuthModule.core', ':name revoked.', array(':name'=>Rights::beautifyName($_GET['name'])))\n\t\t\t);\n\n\t\t\t// if AJAX request, we should not redirect the browser\n\t\t\tif( isset($_POST['ajax'])===false )\n\t\t\t\t$this->redirect(array('assignment/user', 'id'=>$_GET['id']));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new CHttpException(400, Language::t(Yii::app()->language,'Backend.Common.Message','The requested page does not exist.'));\n\t\t}\n\t}", "title": "" }, { "docid": "7a64921839471f8699ec98dba89aa083", "score": "0.61089337", "text": "public function destroy(Students $students)\n {\n //\n }", "title": "" }, { "docid": "0f5b938eb636c7200a72018c32bf9cfe", "score": "0.60872644", "text": "abstract public function revoke();", "title": "" }, { "docid": "146d073a6a08758cf73d6ca9b68a6e24", "score": "0.6085294", "text": "public function destroy(User $student)\n {\n $deleteStudent = $student->name;\n $student->delete();\n\n $notification = \"El estudiate $deleteStudent se ha eliminado correctamente.\";\n return redirect('/students')->with(compact('notification'));\n }", "title": "" }, { "docid": "2c8f805e2f28eeabe66eb5ffe722508b", "score": "0.6082215", "text": "public function destroy(Student $student)\n {\n $student->delete();\n return redirect('/student')->with('status', 'Student deleted!');\n }", "title": "" }, { "docid": "acbadfa61dbc24cc5f67fceea7d55357", "score": "0.6076369", "text": "public function destroy(Student $student)\n {\n //dd($student);\n $findStudent = Student::find($student->id);\n $centerId = $student->addition->stemcenter_id;\n $stSex = $student->sex;\n $stType = $student->addition->type;\n if($findStudent->delete()){\n $center = Stemcenter::where('id', $centerId)->first();\n $males = $center->males;\n $females = $center->females;\n $busary = $center->busary;\n if($stSex === 'Male'){\n $center->update([\n 'males'=> ($males) - 1\n ]);\n }else{\n $center->update([\n 'females'=> ($females) - 1\n ]);\n }\n\n if($stType === 'Busary'){\n $center->update([\n 'busary'=> ($busary) - 1\n ]);\n }\n //redirect\n return redirect()->route('students.index')\n ->with('success' , 'Student deleted successfully');\n }\n return back()->withInput('errors' , 'Student could NOT be deleted');\n }", "title": "" }, { "docid": "cfc6e70692de1cdab63ac979f78c95e9", "score": "0.60711426", "text": "public function unauthorized(Request $request);", "title": "" }, { "docid": "9b0d9ae8b719dcffc5e111dfffa8456c", "score": "0.60604304", "text": "public function __desctruct()\n {\n //Auth::logout();\n }", "title": "" }, { "docid": "8934749b0eecf2e84860819bcc96ea66", "score": "0.6058386", "text": "public static function deconnect(){\n\n unset($_SESSION['login']);\n unset($_SESSION['admin']);\n\n\n Controller::accueil();\n }", "title": "" }, { "docid": "1700f6775f0c7a10f918865f5a3190eb", "score": "0.60516214", "text": "public function destroy(Students $student)\n {\n $student->delete();\n return redirect()->route('student.index')->with('success', 'Student deleted successfully');\n }", "title": "" }, { "docid": "00e1b8ef3150a37c1b1f5ab26e6626c9", "score": "0.60429966", "text": "public function logOut(){\n \n if(isset($_SESSION['un'])){\n \n unset($_SESSION['un']);\n header(\"Location:index.php?url=LoginController&action=check\");\n }\n }", "title": "" }, { "docid": "1b5bef12870efc9bab9d1474a322b7e5", "score": "0.6041693", "text": "public function deletestudentProc(Request $request){\n\t\tif (!Auth::guard('admin')) {\n\t\t\tSession::flash('message', trans('errors.session_label'));\n\t\t \tSession::flash('type', 'warning');\n\t\t \treturn redirect()->route('');\n\t\t}\n\t\telse {\n\t\t\t$id = $request->id;\n\t\t\tStudent::find($id)->delete(); //stored procedures: delete row. ref=vendor\\laravel\\frameworks\\src\\Illuminate\\Database\\Eloquent\\Builder.php:843\n\t\t\t$message = \"Child Data Deleted\";\n\t\t\treturn redirect('admin/viewstudent')->with('success', $message);\n\t\t}\n\t}", "title": "" }, { "docid": "fa724caa132907620f668257e975f4be", "score": "0.6034439", "text": "public function destroy()\n {\n $user = Auth::user();\n $user->student()->update([\n 'wallet' => 0,\n 'documents_verified' => false,\n 'traineeState' => 'trainee',\n 'note' => null,\n 'data_updated' => false\n ]);\n $dir = Storage::disk('studentDocuments')->exists($user->national_id);\n if ($dir) {\n $result = Storage::disk('studentDocuments')->deleteDirectory($user->national_id);\n if ($result) {\n return back()->with('success', 'تم حذف الطلب بنجاح');\n } else {\n return back()->with('error', 'تعذر حذف الطلب حدث خطأ غير معروف');\n }\n } else {\n return back()->with('error', 'لا يجود طلب لحذفة');\n }\n }", "title": "" }, { "docid": "831284e90594c990a7a23bd2040a229a", "score": "0.6012546", "text": "abstract public function signOut();", "title": "" }, { "docid": "d35cb4c3760ae08e2b39dea85cc857e3", "score": "0.60094875", "text": "public static function unsubscribe () {\n $user=self::getUser();\n if (!$user) return RedView::set('error', \"You're not on any of our lists.\");\n if (!$list=self::getList()) return RedView::set('error', \"List doesn't exist.\");\n R::unassociate($list, $user);\n }", "title": "" }, { "docid": "aa23ccdddd13c98e6a57f705c4fd8163", "score": "0.60061806", "text": "public function delete()\n {\n if (isset($_SESSION[$this->name])) {\n unset($_SESSION[$this->name]);\n }\n }", "title": "" }, { "docid": "3e08c5cdee5569984b9934962b09411f", "score": "0.599783", "text": "public function logout(){\n if($this->authentication->disconnectUser()){\n $this->view->displayDeconnexionSuccess();\n }else{\n $this->view->displayDeconnexionfailure();\n }\n \n }", "title": "" }, { "docid": "3d12798d84ac9c64048cc31f4dbd5439", "score": "0.59835005", "text": "function cancel_course_student($estudiante,$grupo){\n\t\t\t$sql = \"DELETE FROM horario_estudiante WHERE gasi_id = '{$grupo}' and estu_codigo = '{$estudiante}'\";\n\t\t\t$result = $this->conn->query($sql);\n\t return $result;\t\t\t\n\t\t}", "title": "" }, { "docid": "e43f362e8a64aaf53be51fd5ab01e69b", "score": "0.5981362", "text": "public function logout()\n {\n unset($_SESSION['user_id']);\n unset($_SESSION['user_name']);\n unset($_SESSION['Uname']);\n unset($_SESSION['center_name']);\n unset($_SESSION['cPhone']);\n unset($_SESSION['uCenterId']);\n\n unset($_SESSION['UImg']);\n unset($_SESSION['uImgD']);\n\n unset($_SESSION['addUser']);\n unset($_SESSION['addCenter']);\n unset($_SESSION['addVolu']);\n\n unset($_SESSION['editUser']);\n unset($_SESSION['editCenter']);\n unset($_SESSION['editVolu']);\n\n unset($_SESSION['deleteUser']);\n unset($_SESSION['deleteCenter']);\n unset($_SESSION['deleteVolu']);\n\n\n session_destroy();\n redirect('science/index');\n }", "title": "" }, { "docid": "d0487a592df4688aa383f15d10bae38a", "score": "0.59788877", "text": "public function logout() {\n\t\ttry {\n\t\t\tif ( $this->authenticator ) {\n\t\t\t\t$this->authenticator->deauth( static::getSessionData( 'data' ) );\n\t\t\t}\n\n\t\t\t$this->authenticated = false;\n\t\t\t$this->lastRecord = $this->record;\n\t\t\t$this->record = NULL;\n\t\t} catch ( Exception $e ) {\n\t\t\t$this->logoutException = $e;\n\t\t}\n\t}", "title": "" }, { "docid": "bf5e8d211e977a169facfb9e6cffee7e", "score": "0.5976364", "text": "public function deleted(StudentAssigment $studentAssigment)\n {\n //\n }", "title": "" }, { "docid": "8c8ba9790660df3deb07ee422a3f9fd1", "score": "0.596935", "text": "public function destroy($id)\n {\n $student = student::find($id)->delete();\n }", "title": "" }, { "docid": "3b51fd733fcfb44fbe74e7bca4aac95c", "score": "0.5969018", "text": "public static function deactivate() {\n // For example, role creation, database settings etc.\n }", "title": "" }, { "docid": "a8fd812a99d93efb48e895db668484b4", "score": "0.59662217", "text": "function auth_logout() {\n unset($_SESSION['user']);\n //unset($_SESSION['group']);\n\n redirect(html_url('users/login'));\n}", "title": "" }, { "docid": "d9a2110c5f5347e367d2d87a0ab4a080", "score": "0.5964596", "text": "public function logout()\n {\n Zend_Auth::getInstance()->clearIdentity();\n }", "title": "" }, { "docid": "04f5ec47c3d596cfcb7a03995c42edec", "score": "0.59605587", "text": "public static function destroy()\n {\n unset($_SESSION['user_id']);\n }", "title": "" }, { "docid": "dcd6958df0b83beb6ae2d864027a019b", "score": "0.5960554", "text": "public function logout() {\n if(isset($_SESSION['user_data'])) {\n unset($_SESSION['user_data']);\n }\n if(isset($_SESSION['admin'])) {\n unset($_SESSION['admin']);\n }\n\n header(\"Location:\".base_url);\n }", "title": "" }, { "docid": "339fa5dfe341167be689f0901711d844", "score": "0.59558016", "text": "public function Deconnect_User()\n {\n $this->_infos = NULL;\n $this->_connected = FALSE;\n $this->_favorites = array();\n session_destroy();\n $return['subject'] = \"deconnect\";\n $return['status'] = TRUE;\n return $return;\n }", "title": "" }, { "docid": "8a9f34fc1725464d9065286ea73a36b3", "score": "0.5955637", "text": "public function sair() {\n if (isset($_SESSION['usuario'])) { \n unset($_SESSION['usuario']);\n } \n session_unset();\n session_destroy(); \n }", "title": "" }, { "docid": "32be10f11dc4283397d9d4d31644ca1e", "score": "0.59501743", "text": "function delete_student(){\n\t\t global $con;\n\t\t $sql=\"delete from fees where st_id='$_REQUEST[st_id]'\";\n\t\t\t\t $rs=mysqli_query($con,$sql) or die(mysqli_error());\n\t\t\t\t if($rs)\n\t\t\t\t\t header(\"location:../fees_view.php?msg=Record is Deleted!!\");\n\t\t }", "title": "" }, { "docid": "83a1408f0f4062435bcb8f1014dbdbd2", "score": "0.59497434", "text": "public function destroy(Student $student)\n {\n File::delete($student->student_image);\n File::delete($student->student_signature);\n File::delete($student->guardian_image);\n $student->delete();\n\n return redirect()->route('student.index');\n }", "title": "" }, { "docid": "9d9cab8b693f61c3ede8457f9ddddeab", "score": "0.59486943", "text": "public function logout()\n\t{\n\t\t$this->Session->delete('can_coordinate');\n\t\t$this->Session->delete('can_coordinate_exp');\n\t\t$this->Session->delete('can_supervise');\n\t\t$this->Session->delete('can_supervise_exp');\n\t\t\n\t\treturn $this->redirect( $this->Auth->logout() );\n\t}", "title": "" }, { "docid": "6f4158ee0fcc3195f89bd29c939b9760", "score": "0.5941783", "text": "function logout() {\n\t\t\tunset($_SESSION[\"email\"]);\n\t\t\t$this->redirect();\n\t\t}", "title": "" }, { "docid": "4b2304ec3290b07e6b94ea34228d12a0", "score": "0.5938712", "text": "public function destroy($id)\n {\n Student::destroy($id);\n\n flash()->success('Student has been successfully deactivated!');\n\n return redirect('/admin/students');\n }", "title": "" }, { "docid": "ec180d1b1ebc6305eefffe74683cc25b", "score": "0.59336156", "text": "public function api_cerrar_sesion()\n\t{\n\t\t$array_items = array('id_usuario_prueba', 'tipo_usuario_prueba');\n\t\t$this->session->unset_userdata($array_items);\n\t\theader(\"Location:\" . base_url());\n\t}", "title": "" }, { "docid": "e2c77c942ad1f086010254bfb4a482d3", "score": "0.5933082", "text": "public function unregister() {\n $user=unserialize($_SESSION['user']);\n $result=$user->remove();\n if($result['error'] == ERROR_NO_ERROR) {\n unset($_SESSION['user']);\n session_destroy();\n }\n\n return $result;\n }", "title": "" }, { "docid": "c34679b4bfbd3a23222ba6afca41a5e4", "score": "0.59268016", "text": "function cerrar_sesion() {\n //$id = $this->session->userdata('id');\n $this->session->sess_destroy();\n //buscar como hacer update de forma automatica para que otros usuarios vean al admin conectado\n }", "title": "" }, { "docid": "bebcb93168eb3c356b9a4dd96c4fd983", "score": "0.5924106", "text": "public static function deauthenticateUser()\r\n {\r\n self::_init();\r\n \r\n if (self::$config['sgs_authenticate_method'] == 'cookie') {\r\n setcookie(\r\n self::$config['sgs_authenticate_key'],\r\n '',\r\n (time() - 2592000),\r\n '/'\r\n );\r\n }\r\n \r\n if (self::$config['sgs_authenticate_method'] == 'session') {\r\n $_SESSION[self::$config['sgs_authenticate_key']] = '';\r\n session_destroy();\r\n }\r\n \r\n header('location:'.SGS_BASE_URL.'index.php');\r\n \r\n }", "title": "" }, { "docid": "c4932770f72271f13d7ec30c80801ec9", "score": "0.5922294", "text": "public function logout(){\n\t\tunset($_SESSION['ccUser']);\n\t}", "title": "" }, { "docid": "d32a6d34038d6059aa08083dbcba45da", "score": "0.5921333", "text": "public function acessoDeletarSalvar()\n {\n // Diz ao Controller que utilizaremos a Model Usuario\n $usuario = Container::getClass(\"Acesso\");\n \n // O método abaixo deleterá o ID passado por parâmetro na URL e pelo método Bootstrap::getIdByUrl();\n // O primeiro parâmetro passado: \"id\" representa o nome do campo na tabela.\n $usuario->delete(\"Id_acesso\", Bootstrap::getIdByUrl());\n \n // Renderizando\n $this->render('acesso-deletar-salvar');\n }", "title": "" }, { "docid": "c6887266f823caefbe3ca1706d10259b", "score": "0.59197724", "text": "public function logout()\n {\n unset($_SESSION['admin']);\n $_SESSION['success'] =\"Dang xuat thanh cong\";\n header(\"Location: index.php?controller=user&action=login\");\n exit();\n }", "title": "" }, { "docid": "0ba02342c5c9c38b1650ea59c2bbc11a", "score": "0.5916483", "text": "public function logout(Request $request){\n $usr=Auth::user()->token()->revoke();\n if($usr){\n $response=['status'=>200,'message'=>'Logout successfully'];\n return response($response,200);\n }\n }", "title": "" }, { "docid": "ed7004458ad44990a95c258ac77a1d8d", "score": "0.5916321", "text": "public function revokeAdminStatus()\n\t{\n\t\t$this->load->model('Employee');\n\t\t$staff= new Employee();\n\t\t$staff_id=$_GET[\"id\"];\n\t\t$staff->setEmployeeId($staff_id);\n\t\t$staff->getFullProfile();\n\t\tif ($staff->getType()==\"boss\") {\n\t\t\t$data[\"alert_message\"]='You are not authorized to perform this action';\n\t\t\t$data[\"alert\"]=\"failure\";\n\t\t\t$data[\"alert_title\"]=\" Not Authorized\";\n\t\t\t$this->administrators();\n\t\t\t$this->load->view(\"alert\",$data);\n\t\t}\n\t\telse{\n\t\t\t$staff->dropAdminStatus();\n\t\t\t$data[\"alert_message\"]='Administration status of employee has been revoked';\n\t\t\t$data[\"alert\"]=\"success\";\n\t\t\t$data[\"alert_title\"]=\" Administrator Suspended\";\n\t\t\t$this->employees();\n\t\t\t$this->load->view(\"alert\",$data);\n\t\t}\n\t}", "title": "" }, { "docid": "8449ef91970b29e398eed24873379842", "score": "0.59138286", "text": "public\n function stopLesson()\n {\n //Get the first choice of the module the student/tutor pick\n $firstChoiceModule = FirstChoiceUserModule::where('user_id', '=', Auth::user()->id)->first();\n //Get the lesson pointer\n $activeLesson = ActiveLesson::where('module_id', '=', $firstChoiceModule->module_id)->first();\n\n if ($activeLesson != null) {\n $activeLesson->delete();\n }\n }", "title": "" }, { "docid": "ff0926df6141a618c2f5801112517c51", "score": "0.59121615", "text": "public function logout()\n {\n $this->user = null;\n }", "title": "" }, { "docid": "553f9951e4a8a5f9ef6bfcac402ac6f1", "score": "0.5911847", "text": "public function destroy($staff_email)\n {\n if (auth()->user()->hasPermissionTo('Delete Staff') OR\n (Gate::allows('Administrator', auth()->user()))){\n $staf = Staffs::where([\n \"staff_email\" => $staff_email,\n ])->first();\n $staff = $this->model->show($staf->staff_id);\n $use = User::where([\n \"email\" => $staff_email,\n ])->first();\n\n $user_id = $use->user_id;\n\n $details= $use->name;\n $email = $use->email;\n $roles = $use->role;\n\n if (($staff->delete($staf->staff_id)) AND ($staff->trashed()) AND($use->delete($use->user_id))\n AND ($use->trashed())) {\n //$use->removeRole($roles);\n return redirect()->back()->with([\n 'success' => \"You Have Deleted $details From The Staff Details Successfully\",\n ]);\n }\n } else{\n return redirect()->back()->with([\n 'error' => \"You Dont have Access To Delete A Staff\",\n ]);\n }\n }", "title": "" }, { "docid": "040124d703fa764bb3844d956ef6353c", "score": "0.5906093", "text": "public function destroy(CourseStudentTeacher $courseStudentTeacher)\n {\n //\n }", "title": "" }, { "docid": "782ae5307a1aecc9d76a2820c4787c38", "score": "0.59042263", "text": "public function deleteStudent($sid) {\r\n\t\t$this->_db->delete('users', array('user_id', '=', $this->getStudentBystudentID($sid)->user_id));\r\n\t\t//database delete method with table name(student), data with fields\r\n\t\t$this->_db->delete('student', array('studentId', '=', $sid));\r\n\t}", "title": "" }, { "docid": "baf4ff87a9a4227aa0e80b985593baba", "score": "0.5897487", "text": "public function signoutAction()\n {\n $this->auth->remove();\n\n return $this->response->redirect('auth/signin');\n }", "title": "" }, { "docid": "a484e201c2ad642d7511cba11673d904", "score": "0.589635", "text": "public function signOut() {\n $array_items = array('email' => '', 'loginId' => '', 'logged_in' => '');\n $this->session->unset_userdata($array_items);\n $this->session->sess_destroy();\n redirect('admin');\n }", "title": "" }, { "docid": "4835e6a4efa72c92f6d0049fa9ca9ac0", "score": "0.58860505", "text": "public function destroy($id)\n {\n $student = \\App\\User::where('id','=', $id);\n\n //echo \"<br>sql: \" . $student->toSql();\n //echo \"<br>\" . Str::replaceArray('?', $student->getBindings(), $student->toSql());\n //dd($student->toSql(), $student->getBindings());\n\n $student_id = $student->value('foreign_id');\n //echo $student_id;\n\n\n \\App\\Student::destroy($student_id);\n \\App\\User::destroy($id);\n return redirect('/students')->with('Pesan', 'Data berhasil dihapus!');\n //return redirect('/students')->with('Pesan', $student_id);\n }", "title": "" }, { "docid": "dd30b1fb3634040327038db36b5e5a19", "score": "0.5877065", "text": "function deleteStudent()\r\n {\r\n if($this->isAll() == TRUE)\r\n {\r\n echo(json_encode(array('status'=>'access')));\r\n }\r\n else\r\n {\r\n $studentId = $this->input->post('studentId');\r\n $studentInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:sa'));\r\n \r\n $result = $this->student_model->deleteStudent($studentId, $studentInfo);\r\n \r\n if ($result > 0) { echo(json_encode(array('status'=>TRUE))); }\r\n else { echo(json_encode(array('status'=>FALSE))); }\r\n }\r\n }", "title": "" }, { "docid": "f44815aee5291f56bdafb88db0398589", "score": "0.5876114", "text": "public function logout()\r\n {\r\n session_destroy();\r\n unset($_SESSION['user']);\r\n $this->redirect('account/login');\r\n }", "title": "" }, { "docid": "c2084b13e71989f4fd4ccf761221ba21", "score": "0.5875695", "text": "public function destroy(Student $student)\n {\n $this->student->destroy($student);\n\n return redirect()->route('admin.colorgenerator.student.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('colorgenerator::students.title.students')]));\n }", "title": "" }, { "docid": "3f4d898f8cb9303752fd1f356eaccafd", "score": "0.58737856", "text": "public function logout()\n {\n $this->session->delete('user');\n }", "title": "" } ]
0d3359ceac90c6577cd32dbf094742f4
Does a var_dump on the last response (and any args passed to this method). This will exit the script.
[ { "docid": "6df14e16788e3f628e74d26cdf92c2d5", "score": "0.7278397", "text": "public function dumpLastResponse(){\r\n\r\n $args = func_get_args();\r\n if( !empty($args) ){\r\n \\Altumo\\Utils\\Debug::dump( $this->last_response, $args );\r\n }else{\r\n \\Altumo\\Utils\\Debug::dump( $this->last_response );\r\n } \r\n\r\n }", "title": "" } ]
[ { "docid": "cd55f5aed06ef763c0221cd65f5c5ad5", "score": "0.6449957", "text": "function exit_script(string $msg = \"\", bool $success = true, $payload = null)\n{\n //http_response_code($errorCode);\n\n /* \n * Clean the output to ensure that we're returning valid Json,\n * however we still want to return the errors produced by the internal php code \n */\n ServerResponse::Instance()->serverOutput = ob_get_contents();\n\n if (ob_get_contents()) {\n ob_clean();\n }\n\n ob_end_flush();\n \n ServerResponse::Instance()->success = $success;\n ServerResponse::Instance()->message = $msg;\n\n if ($payload !== null) {\n ServerResponse::Instance()->payload = $payload;\n }\n\n header('Content-Type: application/json');\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Headers: *');\n \n echo ServerResponse::Instance()->getJson();\n exit();\n}", "title": "" }, { "docid": "60bb207e863af61d59b97653b44fd76b", "score": "0.62630296", "text": "public function printLastResponse() {\n\t\t$this->printDebug(\n\t\t\t$this->getSession()->getCurrentUrl() . \"\\n\\n\" .\n\t\t\t$this->getSession()->getPage()->getContent()\n\t\t);\n\t}", "title": "" }, { "docid": "0d668f7b35988aa57ad48d69aa09578c", "score": "0.6258519", "text": "public function printLastResponse()\n {\n $this->printDebug(\n $this->getSession()->getCurrentUrl().\"\\n\\n\".\n $this->getSession()->getPage()->getContent()\n );\n }", "title": "" }, { "docid": "824c57c5ccfee936d8e02b1f7202f5c5", "score": "0.61199665", "text": "protected function _exit() {\n\t\t$this->_finished = true;\n\t}", "title": "" }, { "docid": "5d3d9be0d0fe0a272c683d6388a9dbe4", "score": "0.5995792", "text": "public function end()\n {\n \\Solrbridge\\Search\\Helper\\Debug::record();\n $this->prepareResponseData();\n $this->prepareResponseMessage();\n return $this->getLog();\n }", "title": "" }, { "docid": "40b09e62f411416717203b6603e2622f", "score": "0.59424716", "text": "public function exit(){}", "title": "" }, { "docid": "190c9b2926452842013e3ed33aeac841", "score": "0.5882428", "text": "private function echoServerResponse() {\n echo json_encode($this->serverResponse);\n exit();\n }", "title": "" }, { "docid": "6a66d25c7e5b9274f15ceeeaa8199160", "score": "0.5875131", "text": "function dumpdie(...$data): never\n {\n while (ob_get_clean()) {\n }\n\n // Dump info\n call_user_func_array('dump', $data);\n\n // Exit\n die(1);\n }", "title": "" }, { "docid": "8839e9abae547dfe587404a7dff7f4b7", "score": "0.58750904", "text": "public function output() {\n\t\thttp_response_code($this->code);\n\n\t\tif ( !empty($this->response) )\n\t\t\techo json_encode($this->response);\n\n\t\texit;\n\t}", "title": "" }, { "docid": "01d3569f4c90d71ef9881d068ff98ed6", "score": "0.5871662", "text": "public function send()\n {\n echo $this->response;\n die();\n }", "title": "" }, { "docid": "6153d77e860a9f24e0406914dbdfb5b4", "score": "0.5818324", "text": "public function shutdown()\n {\n $error = error_get_last();\n if (is_array($error) && isset($error['type']) && $error['type'] === E_ERROR) {\n $message = (isset($error['message'])) ? $error['message'] : 'Unknown Error!';\n if ($this->getOption('debug')) {\n $this->modx->log(xPDO::LOG_LEVEL_ERROR, 'Script terminated with the error ' . $message, $this->getOption('logTarget'), 'BackupMODX');\n }\n if (php_sapi_name() == 'cli') {\n fwrite(STDERR, $message . \"\\n\");\n exit(1);\n } else {\n exit(json_encode(array(\n 'success' => false,\n 'message' => $message,\n )));\n }\n }\n }", "title": "" }, { "docid": "833f37f50b06d9e47c71a3a091dd89c5", "score": "0.5816273", "text": "public function exit()\n {\n // call to sendServerPipe of ApiController\n $data = \"EXIT\";\n \\App\\Http\\Controllers\\ApiController::sendServerPipe($data);\n\n //Return to welcome view\n return redirect('/');\n }", "title": "" }, { "docid": "6012c7e850dd47e23ffdfb8594f716e1", "score": "0.57984465", "text": "function dump_response() { \r\n $i = 0;\r\n foreach ($this->response as $key => $value) {\r\n $this->debuginfo .= \"$key: $value\\n\";\r\n $i++;\r\n } \r\n return $this->debuginfo;\r\n }", "title": "" }, { "docid": "7e15a3659ba9f2f1da7eb2e243d06711", "score": "0.5793752", "text": "private function doVerbosity() {\r\n\t\t$this->sendRequest();\r\n\r\n\t\techo sprintf('RESPONSE FROM: %s:%s' . PHP_EOL, $this->host, $this->port),\r\n\t\tPHP_EOL, \r\n\t\t$this->response,\r\n\t\tPHP_EOL;\r\n\t}", "title": "" }, { "docid": "8d6758aa847571bc8c4d1313f3736de5", "score": "0.5785525", "text": "function some_test() {\n ignore_user_abort(true);\n fastcgi_finish_request();\n\n echo json_encode(['data' => 'Proceso terminado']);\n header('Connection: close');\n\n sleep(10);\n file_put_contents('output.txt', date('l jS \\of F Y h:i:s A').\"\\n\", FILE_APPEND);\n }", "title": "" }, { "docid": "fe450c4c9fe8dcff45a397f11c70b764", "score": "0.5774965", "text": "public function debug_response()\n {\n ksort($this->_response);\n echo '<h3>Paypal Reponse</h3>'.\"\\n\";\n echo '<pre>'.\"\\n\";\n print_r($this->_response);\n echo \"</pre>\\n\";\n return;\n }", "title": "" }, { "docid": "a6fd99976eff34167eb091f2bf4e585d", "score": "0.57370657", "text": "function getLastRawResponse() {\r\n \tob_start();\r\n \tdebug($this->response);\r\n \t$content = ob_get_contents();\r\n \tob_end_clean();\r\n \treturn $content;\r\n }", "title": "" }, { "docid": "0ff19e84ee0266d0af7e8b2fe9aeb7ff", "score": "0.57245666", "text": "public function printResponse()\n {\n $request = $this->getClient()->getRequest();\n $response = $this->getClient()->getResponse();\n\n $this->printDebug(sprintf(\"%s %s => %d:\\n%s\",\n $request->getMethod(),\n $request->getUri(),\n $this->getStatus($response),\n $response->getContent()\n ));\n }", "title": "" }, { "docid": "7d0addfabcbda94a31ce26b39cfa6786", "score": "0.5716822", "text": "public function lastResponse();", "title": "" }, { "docid": "3c8f0a6144c0ff63de56fbe501132fa5", "score": "0.57106906", "text": "function output_and_exit($output)\n{\n $json_output = json_encode($output);\n // if(!empty($output['errors'])){\n // $output['datetime'][] = date('Y-m-s H:i:s');\n // $output['defined_vars'][] = get_defined_vars();\n // $errors = json_encode($output);\n // error_log(\"{$json_output} \\n\",3,\"../../../logs/error.log\");\n // };\n print($json_output);\n exit();\n}", "title": "" }, { "docid": "5fddc44ae5a7cc0156eaf90e92dc8017", "score": "0.5705484", "text": "function flushResponse() {\r\n\t\techo $this->__toString();\r\n\t\t$this->clearResponse();\r\n\t}", "title": "" }, { "docid": "f391741e05e98e530a732d3a99778da0", "score": "0.5700255", "text": "public function end() {\r\n ob_start();\r\n if ($this->matched && count($this->routeCallback)) {\r\n count($this->before) && $this->emit($this->before);\r\n foreach ($this->routeCallback as $call) {\r\n $this->callback($call, $this->req->args);\r\n }\r\n count($this->after) && $this->emit($this->after);\r\n } else if($this->req->method != 'OPTIONS'){\r\n http_response_code(404);\r\n print('<h1>404 Not Found</h1>');\r\n }\r\n\r\n if (ob_get_length()) {\r\n ob_end_flush();\r\n }\r\n\r\n exit;\r\n }", "title": "" }, { "docid": "691d7b60e39a849a76cd61b2898eca20", "score": "0.56487024", "text": "public function end()\n {\n \t$request = $this->app->getRequest();\n $timer = $this->app->getTimer();\n //\t$router = $this->app->getRouter();\n\n $this->logParam('IP', $request->getIp());\n $this->logParam('URI', $request->getUri());\n\t\t$this->logParam('UA', $request->getUserAgent());\n\t\t$this->logParam('Referer', $request->getReferer());\n $this->logParam('Begin', $timer->getStartTimeEx());\n // $this->logParam('End', intval($this->app->getEndTime());\n $this->logParam('Time', $timer->getTotalMicroseconds().' microseconds');\n $this->logLine();\n }", "title": "" }, { "docid": "69565da635562ae0d8806e7bc92b062f", "score": "0.56306285", "text": "public function printResponse()\n {\n $request = $this->client->getRequest();\n $response = $this->client->getResponse();\n\n $this->printDebug(sprintf(\"%s %s => %d:\\n%s\",\n $request->getMethod(),\n $request->getUri(),\n $response->getStatusCode(),\n $response->getContent()\n ));\n }", "title": "" }, { "docid": "b7df4d2eb6f20c9455738daa50cf493c", "score": "0.56296563", "text": "public function complete() {\n http_response_code($this->responseCode);\n header(\"Access-Control-Allow-Origin: *\");\n header('Content-Type: application/json');\n echo json_encode($this->payload);\n }", "title": "" }, { "docid": "ce162469a0a98c3a33224f382037bcd7", "score": "0.55597174", "text": "public function end()\n {\n $headers = $this->headers();\n if ($headers['Transfer-Encoding']->value() !== 'chunked') {\n return;\n }\n echo \"0\\r\\n\\r\\n\";\n }", "title": "" }, { "docid": "19dcc656ec23ad80682cf141aada252f", "score": "0.5557375", "text": "protected function responder() {\n\t\t\techo 'Oi';\n\t\t}", "title": "" }, { "docid": "3c4a5ecf6977e15d14ad9de9b024452d", "score": "0.55523163", "text": "function end(){\n\t\t$this->get_ob_content(PATH_TRAVEL.'bottom.php');\n\t\texit();\n\t}", "title": "" }, { "docid": "95d5791a98d6da621af0cc2d26bd99c2", "score": "0.5545115", "text": "private function ResponseError($response)\n {\n echo '-:';\n foreach ($this->DebugMessages as $msg) {\n echo \"\\n/* $msg */ \";\n }\n echo \"\\n$response\";\n exit();\n }", "title": "" }, { "docid": "1c82ad1beb9dd4f33c5fa470b8644091", "score": "0.5537127", "text": "public static function end() : void\n {\n ob_end_clean();\n }", "title": "" }, { "docid": "42fedffbe1b35654a33cabf408fb1a5d", "score": "0.5523286", "text": "public function MyShutdown() {\n $isError = false;\n if ($error = error_get_last()) {\n switch ($error['type']) {\n case E_ERROR:\n case E_CORE_ERROR:\n case E_COMPILE_ERROR:\n case E_USER_ERROR:\n case E_RECOVERABLE_ERROR:\n case E_NOTICE:\n case E_DEPRECATED:\n case E_PARSE:\n $isError = true;\n }\n }\n\n if ($isError) {\n if ($this->DEBUG) {\n echo \"Script fue detenido ({$error['message']})\";\n }\n\n $outMessage = &$this->DTO->getOutMessage();\n $outMessage->setSuccess(false);\n $outMessage->setAnswerMessage('Error : '.$error['message'], -10000);\n\n // $data['data'] = $this->DTO;\n // echo $this->responseProcessor->encode($this->DTO);\n\n // Parche para cerrar lo pendiente de codeigniter , por este camino se finaliza\n // abruptamente. NO EJECUTA HOOKS\n // TODO : Manejar los hooks.\n $CI = &get_instance();\n $OUT = &load_class('Output', 'core');\n\n $OUT->_display($this->responseProcessor->process($this->DTO));\n if (class_exists('CI_DB') and isset($CI->db)) {\n $CI->db->close();\n }\n } else {\n if ($this->DEBUG) {\n echo \"Script completado correctamente\";\n }\n }\n }", "title": "" }, { "docid": "61d059dea27a6cd2b3ec27f988e3a0dd", "score": "0.54981923", "text": "public function getLastResponse();", "title": "" }, { "docid": "61d059dea27a6cd2b3ec27f988e3a0dd", "score": "0.54981923", "text": "public function getLastResponse();", "title": "" }, { "docid": "54bb0ad55546c6d2214bec54737b5a35", "score": "0.54852587", "text": "public function exit_test(){}", "title": "" }, { "docid": "e22986e8b4b6c61d322309f4bedded43", "score": "0.5483944", "text": "public function afterResponse(FilterResponseEvent $event) {\n oboe_log('profile_exit', array('ProfileName' => 'response'));\n\n // TODO: Collect more info here.\n oboe_log(($event->getRequestType() === HttpKernelInterface::MASTER_REQUEST) ? 'symfony.master_request' : 'symfony.sub_request', 'exit', array());\n }", "title": "" }, { "docid": "2fc34c6fc35640fb78f8a6107d84a540", "score": "0.54359907", "text": "function die_dump($data) {\n echo '<pre>';\n var_dump($data);\n die;\n}", "title": "" }, { "docid": "5cfc9629239b09f3e8f8400443104b3d", "score": "0.5433844", "text": "function afterResponse()\n {\n }", "title": "" }, { "docid": "28838899cb3fde2b8ce402edae46caa1", "score": "0.54204637", "text": "function failed(){\n die(\"{\\\"status\\\": false}\");\n }", "title": "" }, { "docid": "5058835cfbd56889fd27bc539ea2973f", "score": "0.54187465", "text": "public function exit(): void;", "title": "" }, { "docid": "9a750e0c936e5b81d95f16be8b150648", "score": "0.540736", "text": "public function shutdown()\n\t{\n\t\tif (!$this->isDebugMode()) {\n\t\t\tthrow new Exception('Debug shutdown');\n\t\t}\n\t\t\n\t\tob_end_clean();\n\t\techo '<pre>';\n\t\t$args = func_get_args();\n\t\tforeach ($args as $arg) {\n\t\t\tvar_dump($arg);\n\t\t}\n\t\techo '</pre>';\n\n\t\tthrow new Exception('Debug shutdown. Output cleaned.');\n\t\texit;\n\t}", "title": "" }, { "docid": "18f5d3bf765eb36c926297996ef957f9", "score": "0.5399006", "text": "public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {\n\t\tvar_dump(\"dispatchLoopShutdown\");\n\t}", "title": "" }, { "docid": "41d6d06ec9bfa23d194129dde5b2b083", "score": "0.53954864", "text": "public function testSetGetResponse(){\n $this->d->runCmd('echo \\'Response\\' >&3;');\n $this->assertTrue(is_string($this->d->getLastResponse()));\n $this->assertEquals(\"Response\\n\", $this->d->getLastResponse());\n }", "title": "" }, { "docid": "2ffae506cf3e9d725971e9c10a823462", "score": "0.5383553", "text": "function print_response_message($response_body, $cmd) {\n $response_body = json_decode($response_body, TRUE);\n\n if (array_key_exists('error', $response_body)) {\n $cmd->error(new Exception($response_body['message']));\n }\n\n print $response_body['message'] . PHP_EOL;\n}", "title": "" }, { "docid": "3b4b8f63a4d09373932fb2c4a32e858e", "score": "0.5376078", "text": "public function get_response()\n {\n // No handle\n return $this->console_return;\n }", "title": "" }, { "docid": "df16379d0472492c5dd849aa3dd45d29", "score": "0.5376029", "text": "public function testHttpOut()\n {\n $hash = md5(microtime());\n\n $testData = $this->generateRandomTestJson();\n $this->client->getContainer()->get('event_dispatcher')->dispatch('utilbundle.httpout', new HttpEvent($hash, $testData, get_class($this), 'http://url', 'pairkey-1234567890'));\n\n sleep(1);\n\n $lastEntry = $this->getEntryByHash($hash);\n @$getData = $lastEntry['value']['http_response'];\n $this->assertEquals(json_encode($testData), json_encode($getData));\n }", "title": "" }, { "docid": "b4e24a821096a1379a9c812d9720a462", "score": "0.53573835", "text": "public static function response()\n {\n }", "title": "" }, { "docid": "b4e24a821096a1379a9c812d9720a462", "score": "0.53573835", "text": "public static function response()\n {\n }", "title": "" }, { "docid": "b4e24a821096a1379a9c812d9720a462", "score": "0.53573835", "text": "public static function response()\n {\n }", "title": "" }, { "docid": "2309a578cb8c3766cb8d569ae90e792f", "score": "0.534937", "text": "function exit_action($status_line, $output = '', $data = array()){\n global $return_kind;\n $data = array();\n if (empty($data) && is_array($output)){ $data = $output; }\n if (!is_string($output)){ $output = ''; }\n if (!empty($output)){ $output .= PHP_EOL; }\n $output .= trim(ob_get_clean());\n if ($return_kind === 'html'){\n list($status_name, $status_text) = explode('|', $status_line);\n $status_colour = $status_name === 'success' ? 'green' : 'red';\n echo('<pre>'.PHP_EOL);\n echo('<strong style=\"color: '.$status_colour.';\">'.$status_text.'</strong>'.PHP_EOL);\n echo(!empty($output) ? str_repeat('-', 50).PHP_EOL.$output : '');\n echo('</pre>'.PHP_EOL);\n } elseif ($return_kind === 'json'){\n $status_frags = explode('|', $status_line);\n list($status_name, $status_text) = explode('|', $status_line);\n header('Content-Type: application/json');\n echo(json_encode(array(\n 'status' => !empty($status_frags[0]) ? $status_frags[0] : 'undefined',\n 'message' => !empty($status_frags[1]) ? $status_frags[1] : '',\n 'output' => $output,\n 'data' => $data\n )));\n } else {\n echo(trim($status_line).PHP_EOL);\n echo(!empty($output) ? str_repeat('-', 50).PHP_EOL.$output : '');\n }\n exit();\n}", "title": "" }, { "docid": "9609842a9eec7afebe52b7a54df20520", "score": "0.53439283", "text": "function clean_exit($message)\n{\n echo 'VVebUQ: '.$message.\"\\n\";\n echo \" Maybe you used GET method instead of POST (or vice versa)?\\n\";\n echo \" please visit https://github.com/ukaea/ALC_UQ/blob/master/VVeb.UQ/README.md\\n\";\n echo \" for detailed instructions.\\n\";\n exit();\n}", "title": "" }, { "docid": "80d94221a0bb6f2942379233d1dfdcd4", "score": "0.5328746", "text": "function error_exit($error) {\n echo $error;\n if ($this->setting['non_buffer']) {\n $this->non_buffer();\n ob_end_flush();\n exit;\n }\n\n\n}", "title": "" }, { "docid": "411a8a02647911d64871db56bf872fc9", "score": "0.53275603", "text": "public function after()\n\t{\n\t\t$this->response->body(json_encode($this->_return_object));\n\t\t$this->response->headers('Content-Type', 'application/json');\n\t}", "title": "" }, { "docid": "a788593496cfb32d7089276a6dbd2248", "score": "0.53273606", "text": "protected function respond() {\r\n // Spit out the code and exit;\r\n echo $this->html;\r\n }", "title": "" }, { "docid": "0c84533c6cd3b03b3699f92c0e3e53b1", "score": "0.53232956", "text": "public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {\n\t\t// var_dump(\"dispatchLoopShutdown\");\n\t}", "title": "" }, { "docid": "be14851f48d9f60ed98a3dc8322f425e", "score": "0.5322973", "text": "public function mydie ()\n {\n $args = func_get_args ();\n foreach ( $args as $printable )\n {\n if ( ! is_scalar ( $printable ) )\n {\n $printable = var_export ( $printable , true );\n }\n print $printable;\n error_log ( $printable );\n }\n die( \"Exited.\" );\n }", "title": "" }, { "docid": "9b6ff79059060bdcd632ab1c667a9578", "score": "0.5320117", "text": "function launch_response($message) {\n echo '{ \"error\" : false, \"message\" : \"' . $message .'\" }';\n exit(0);\n}", "title": "" }, { "docid": "a532d889b93b39df1f5d22e9b2871f1c", "score": "0.53135216", "text": "public function afterRequest(GetResponseEvent $event) {\n oboe_log('profile_exit', array('ProfileName' => 'request'));\n }", "title": "" }, { "docid": "84c657e10d04c7103efb7e4d1f03f6c9", "score": "0.53113", "text": "public function afterTerminate(PostResponseEvent $event) {\n oboe_log('profile_exit', array('ProfileName' => 'terminate'));\n }", "title": "" }, { "docid": "41699d2d2f7f318efd230a848a52d083", "score": "0.52955115", "text": "public function responseInternalServerErrorThenExit()\n {\n if (!bool_in_ini(ini_get('display_errors'))) {\n $this->data = null;\n }\n $this->responseCode = 500; // Internal Server Error\n\n if ($this->isJsonRequested()) {\n $this->responseJsonThenExit();\n } else {\n $this->redirectThenExit($this->config_['internal_server_error']['redirect_path']);\n }\n }", "title": "" }, { "docid": "430ed5f1e11cc8b7bd2ae90ead3c570d", "score": "0.52945894", "text": "function output_results($data) {\n\techo $data;\n\texit();\n}", "title": "" }, { "docid": "377e576a9868a5b06125600810a00939", "score": "0.5278101", "text": "public function exit_test();", "title": "" }, { "docid": "4fc580d480943256dbf6ae60bb67e072", "score": "0.5256468", "text": "public function end_print(){\n\t\tif ( $this->arg_c != count($this->args) ){\n\t\t\t$counter = $GLOBALS[\"counter\"];\n\t\t\tprint_e(\"wrong number of arguments\", 23);\n\t\t}\n\n\t\t$GLOBALS[\"counter\"]++;\n\t}", "title": "" }, { "docid": "bd0cc78b96580e7417bd5f72a9f5c583", "score": "0.52471405", "text": "function errorExit() {\r\n\r\n mysqli_close($link);\r\n $status = \"ERROR\";\r\n $jsonArr = array('status' => $status);\r\n echo json_encode($jsonArr);\r\n exit();\r\n\r\n }", "title": "" }, { "docid": "011575cc2c46acb071c758988d8ecb24", "score": "0.5244368", "text": "public function terminate($request, $response)\n {\n Log::info('requests', [\n 'request' => $request->all(),\n 'user-Agent' => $request->header('User-Agent'),\n 'Host' => $request->header('Host'),\n 'Content-Type' => $request->header('Content-Type'),\n 'IP address' => $request->getClientIp(),\n 'method' => $request->getMethod(),\n 'URL' => $request->fullUrl(),\n 'response Code' => $response->getStatusCode(),\n ]); \n \n }", "title": "" }, { "docid": "e649d42333cc603311d1500b2d0b97e3", "score": "0.5231627", "text": "public function sendResponse()\n {\n ob_end_flush();\n }", "title": "" }, { "docid": "eaf919172968f21a61b7fb814aa90b74", "score": "0.5223858", "text": "public function exit(): void\n {\n exit(0);\n }", "title": "" }, { "docid": "5648eb7ea2d7de7f810edb2a4c6b19fa", "score": "0.52227545", "text": "function __destruct(){\r\n if($this->_status>299) $this->_render=false;\r\n if($this->_render) {\r\n header('Content-Type: application/json');\r\n echo json_encode($this->_result);\r\n }\r\n http_response_code($this->_status);\r\n }", "title": "" }, { "docid": "6aa16cbcf8363d7df88b9a50227562fd", "score": "0.5205783", "text": "public function halt(){ }", "title": "" }, { "docid": "9e6cd30cbf1ffb2399f244ecc907794c", "score": "0.5202317", "text": "abstract public function response();", "title": "" }, { "docid": "77b2a38c7779d2736c59b9e7932b8af2", "score": "0.5197351", "text": "protected function processFinished() {\r\n\t\tparent::processFinished();\r\n\t\treturn json_encode(array(\r\n\t\t\t'status' => 'ok',\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "2e859fd5dfde6ed912db71c0cbd1ebec", "score": "0.51951146", "text": "function request_done($request)\n\t{\n\t\techo $this->get_log_line($request);\n\t}", "title": "" }, { "docid": "b7060c23d639233aec50e17db3c61c7c", "score": "0.51927847", "text": "function debug_response() \n { \n $i = 0;\n foreach ($this->_response as $key => $value) {\n $this->debuginfo .= \"$key: $value\\n\";\n $i++;\n } \n return $this->debuginfo;\n }", "title": "" }, { "docid": "4baf29297382ba8bcd5c72d9915dd411", "score": "0.517643", "text": "function out($out) {\n\tglobal $session;\n\n\tif (isset($out['results']['success']) && $out['results']['success'] != 1) {\n\t\theader('503 Unavailable');\n\t}\n\techo json_encode($out);\n\t$session->hit();\n\tdie();\n}", "title": "" }, { "docid": "b7a57f53783f20c99d48b2c8a4ac08d9", "score": "0.5171835", "text": "function printResponse($response){\r\n\t}", "title": "" }, { "docid": "eeadf4937d824f0c6e2018be7d5517a8", "score": "0.5167914", "text": "public function shutdown()\n {\n if ($this->session_manager) {\n $this->session_manager->set($this->oauth, $this->auth_type);\n }\n\n // Log api call times if debugging\n if ($this->debug && $this->logger) {\n $timestamp = gmdate('Y-m-d H:i:s');\n $count = sizeof($this->logger->call_log);\n $duration = 0;\n if ($this->logger->call_log) {\n foreach ($this->logger->call_log as $val) {\n $duration += $val;\n }\n }\n\n $text = \"\\n{$timestamp} Performed {$count} request(s) in {$duration} seconds\\n\";\n if ($this->debug === 'file') {\n $this->logger->log($text);\n } elseif ($this->debug === 'stdout' && php_sapi_name() === 'cli') {\n print $text;\n }\n }\n }", "title": "" }, { "docid": "cda68ed01ae52704b90dfdb2a208d51a", "score": "0.5165834", "text": "public function catchAll(...$args)\n {\n // Deal with the request and send an actual response, or not.\n //return __METHOD__ . \", \\$db is {$this->db}, got '\" . count($args) . \"' arguments: \" . implode(\", \", $args);\n\n // ob_start();\n echo \"catchAll\";\n // echo \"Inside catchAll() in GeoLocatorController!\";\n // $output = ob_get_contents();\n // ob_end_clean();\n return; // If void is returned then it continues to search in '\\Anna\\GeoloLocatorJson\\GeoLocatorJsonController'\n }", "title": "" }, { "docid": "340c75087d1067f23824ccf9f6bae6ee", "score": "0.5154767", "text": "public function finish() {}", "title": "" }, { "docid": "8e6e48608a15713e2853b8db248df68a", "score": "0.51525795", "text": "public function onError() {\n\t\t$this->exit = true;\n\t}", "title": "" }, { "docid": "9584e3125a467fdc4dc66e15be4d8c40", "score": "0.51505286", "text": "public function dump()\n {\n $noContent = $this->statusCode() === 204;\n $this->_setContentLength($noContent);\n header($this->line());\n $headers = $this->headers();\n foreach ($headers as $header) {\n header($header->to('header'));\n }\n if ($headers['Transfer-Encoding']->value() === 'chunked') {\n return;\n }\n\n if ($noContent) {\n return;\n }\n if ($this->_stream->isSeekable()) {\n $this->_stream->rewind();\n }\n while (!$this->_stream->eof()) {\n echo $this->_stream->read();\n if (connection_status() !== CONNECTION_NORMAL) {\n break;\n }\n }\n }", "title": "" }, { "docid": "41d3e55b6748acb1ce9589a6d0852f9f", "score": "0.5149911", "text": "private function ResponseOK($response)\n {\n echo '+:';\n foreach ($this->DebugMessages as $msg) {\n echo \"\\n/* $msg */ \";\n }\n echo \"\\nvar res = \".$response.'; res;';\n exit();\n }", "title": "" }, { "docid": "12c103ab6568d30f00310ba1e99450ea", "score": "0.5147768", "text": "function response($result)\n{\n echo json_encode($result);\n exit();\n}", "title": "" }, { "docid": "c34a2d4725bb8527c44c17f429a393e7", "score": "0.51465744", "text": "public function transaction_callback() {\n\t\t@ob_clean();\n\t\texit( 'OK' );\n\t}", "title": "" }, { "docid": "84c22c268ee2f5cc205b0a8fc9ff53a7", "score": "0.51449215", "text": "public function outputResponse() {\n }", "title": "" }, { "docid": "965f4ae1f89a26f200a357981b971e0f", "score": "0.51399004", "text": "function exitWithError($message) {\n header('Content-type: text/json');\n print json_encode(array(\n 'Status' => 'Error',\n 'Message' => $message\n ));\n exit();\n}", "title": "" }, { "docid": "b2310055efc2979302c14210181793a7", "score": "0.51219237", "text": "public function afterExecuteRoute()\n {\n $response = $this->initResponse($this->response);\n $response->send();\n }", "title": "" }, { "docid": "d2e40e82fb2af600c30c68cad7f3b00d", "score": "0.51196074", "text": "public function end($backtrace=true);", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5115802", "text": "public function end();", "title": "" }, { "docid": "0da30a96a17dfc04148138699fc74324", "score": "0.511214", "text": "protected function onRequestEnd() { return; }", "title": "" }, { "docid": "44c1af544fe400e0f1015cbbc977204e", "score": "0.51036227", "text": "function stop($var) \n{\n\theader('Content-Type: text/plain');\n\tprint_r($var);\n\texit;\n}", "title": "" }, { "docid": "b07d9561504b89b57bd3499a07199329", "score": "0.50969434", "text": "function exit_routine() {\n stdlog(\"(exit_routine())\");\n}", "title": "" }, { "docid": "7f6d81d48b285ec513bc55e7dd0564d0", "score": "0.5093215", "text": "public function executeOutput()\n {\n return $this->response;\n }", "title": "" }, { "docid": "187a88308554c783ec360204fa5f3806", "score": "0.50895005", "text": "public function onKernelResponse(ResponseEvent $responseEvent): void\n {\n if (! $responseEvent->isMainRequest()) {\n return;\n }\n\n $this->logResponse($responseEvent->getResponse());\n }", "title": "" }, { "docid": "1b33c2d61e20aad6b106d5a4dd70846e", "score": "0.5087211", "text": "function status_shutdown() {\n exit();\n}", "title": "" }, { "docid": "e13f5ac69c92065a1f045fa42c8eab3f", "score": "0.5079662", "text": "public function end() {\n\t\t$body = ob_get_clean();\n\t\t$name = array_pop($this->capture);\n\t\tif (!empty($this->stack[$name])) {\n\t\t\t$body.= array_pop($this->stack[$name]);\n\t\t}\n\t\t$this->assign($name, $body);\n\t}", "title": "" }, { "docid": "b7f054d652fe3fea7def8a267e9ef832", "score": "0.5076045", "text": "function getLastResponse()\n\t{\n\t\treturn $this->_response;\n\t}", "title": "" } ]
f13ea3ccedcb8a3184b822b1d4cca9ac
Create a new message instance.
[ { "docid": "dedb807562672781270b294aa1847865", "score": "0.0", "text": "public function __construct(String $msg)\n {\n $this->message = $msg;\n }", "title": "" } ]
[ { "docid": "8af2eead2111483fe56ea3cd706d916a", "score": "0.8313891", "text": "public function createMessage();", "title": "" }, { "docid": "8af2eead2111483fe56ea3cd706d916a", "score": "0.8313891", "text": "public function createMessage();", "title": "" }, { "docid": "6134319c6890dd2424774921ee70058d", "score": "0.826374", "text": "public function createMessage()\n {\n return new Message();\n }", "title": "" }, { "docid": "c02abbca392a7d26ef314cdd822e7752", "score": "0.8133922", "text": "protected function createMessage()\n\t{\n\t\t$message = new Message(new Swift_Message);\n\n\t\t// If a global from address has been specified we will set it on every message\n\t\t// instances so the developer does not have to repeat themselves every time\n\t\t// they create a new message. We will just go ahead and push the address.\n\t\tif (isset($this->from['address']))\n\t\t{\n\t\t\t$message->from($this->from['address'], $this->from['name']);\n\t\t}\n\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "7ab5c75f074872fb6981b5f853cdd6cb", "score": "0.78780985", "text": "public function createMessage()\n {\n $config = ['class' => 'simialbi\\yii2\\websms\\Message'];\n if ($this->messageClass !== $config['class']) {\n $config['class'] = $this->messageClass;\n }\n $config['api'] = $this;\n /** @var Message $message */\n $message = Yii::createObject($config);\n return $message;\n }", "title": "" }, { "docid": "3a9742aa673a4e808eae4d93424b3473", "score": "0.77731436", "text": "public function newMessage();", "title": "" }, { "docid": "4589c3654b6711b9146895eafec92e87", "score": "0.75536585", "text": "protected function createMessage()\n {\n $config = $this->messageConfig;\n if (!array_key_exists('class', $config)) {\n $config['class'] = $this->messageClass;\n }\n $config['mailer'] = $this;\n return Yii::createObject($config);\n }", "title": "" }, { "docid": "b61b2c4c5289316b5b309ada96c31429", "score": "0.74702233", "text": "function createMessage(CreateMessageRequest $createMessageRequest);", "title": "" }, { "docid": "812e0aa72efc43351296d912b9a0781c", "score": "0.7406483", "text": "public function createMessage() {\n return new MailMessage();\n }", "title": "" }, { "docid": "5b76f1b6fb609cce658236b129939402", "score": "0.7207347", "text": "public function create($message = null)\n {\n return $this->objectManager->create(MessageInterface::class)->setMessage(serialize($message));\n }", "title": "" }, { "docid": "5a24f1def721355d5c89e897eb421fa8", "score": "0.71336913", "text": "protected function createMessage(): MessageInterface\n {\n return $this->messageFactory->create();\n }", "title": "" }, { "docid": "d711cab2659b40b3eb5a284efd02ed7a", "score": "0.7113204", "text": "public function newEntity(array $attributes = [])\n\t{\n\t\treturn new Message($attributes);\n\t}", "title": "" }, { "docid": "8f6e29a5617dfc8c94efdf298f901091", "score": "0.7088031", "text": "public static function create(string $msg) : self\n {\n return new self($msg);\n }", "title": "" }, { "docid": "5b353ec16bbad81b039e3dfdd61a233a", "score": "0.70633477", "text": "public function newMessage($msg = false) {\n\t\tif (! $msg)\n\t\t\t$msg = new Swift_Message ( );\n\t\t$this->message = $msg;\n\t\t$this->partIds = array ();\n\t\t$this->attachmentIds = array ();\n\t}", "title": "" }, { "docid": "bab05d9ca1595200e963e87c4c010153", "score": "0.7017909", "text": "public static function getMessageInstance()\n\t{\n\t\treturn new Swift_Message();\n\t}", "title": "" }, { "docid": "f9b40a63d7b35a6cb1fd9c185dab0b13", "score": "0.69660985", "text": "protected function createMessage($view) : Message\n {\n return new Message((array) $view);\n }", "title": "" }, { "docid": "cce7bb4dd69d2aa89e0598ab6dad753a", "score": "0.6855733", "text": "public function createMessage()\n {\n $message = array(\n 'key' => $this->defaults['api_key'],\n 'async' => $this->defaults['async'],\n 'template_name' => $this->templateName,\n 'template_content' => array(),\n 'message' => array(\n 'html' => $this->html,\n 'text' => $this->text,\n 'preserve_recipients' => $this->defaults['preserve_recipients'],\n 'headers' => $this->defaults['custom_headers'],\n 'subject' => $this->subject,\n 'from_name' => $this->from['name'],\n 'from_email' => $this->from['email'],\n 'to' => $this->to,\n 'global_merge_vars' => $this->mergeVars,\n 'important' => $this->important,\n ),\n );\n\n // Set reply_to headers\n if ( ! empty($this->reply_to))\n {\n $message['message']['headers'] = array_merge(\n array('Reply-To' => $this->reply_to),\n $message['message']['headers']);\n }\n\n return $message;\n }", "title": "" }, { "docid": "8e0b8a58832159668ff8be60c18ee6de", "score": "0.6794642", "text": "public function createMessageFlow()\n {\n return new MessageFlow();\n }", "title": "" }, { "docid": "7daac8e599bdaf344eb6a4f1ccd6f096", "score": "0.6752196", "text": "public function create(array $params): Swift_Message\n {\n $settings = $this->settingsProvider->getSettingByName('mail');\n\n return (new Swift_Message($params['subject']))\n ->setFrom([$settings['from_email'] => $settings['from_fname']])\n ->setTo([$params['to'] => $params['to']])\n ->setBody($params['body'], 'text/html')\n ;\n }", "title": "" }, { "docid": "76e7375a66c0f7ecec5f181968e5743a", "score": "0.6708598", "text": "public function createMessage($type, $data = array('nodata'), $from = Message::SERVER, $to = Message::ALL )\n\t{ \n\t\t$message = $this->messageFactory();\n\t\t$message->type = $type;\n\t\t$message->data = $data;\n\t\t$message->to = $to;\n\t\t$message->from = $this->connection_from_string($from);\n\t\t\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "5980285e1a1e46dd8017c564d727365d", "score": "0.6678624", "text": "function NewMessage($fromid, $subject,$message) {\n\t\t$msg = new cMessage();\n\t\t$msg->type = 1;\n\t\t$msg->fromid=$fromid;\n\t\t$msg->toid=$this->messagethreadid;\n\t\t$msg->subject = $subject;\n\t\t$msg->message = $message;\n\t\t$msg->sendeddate = time();\n\t\treturn $msg->write();\n\t}", "title": "" }, { "docid": "6a58e4990a735332867d5e73169906ce", "score": "0.6664909", "text": "public function createMessage( $inputs )\n\t{\n\t\treturn $this->message->create( $this->createMessageInputs( $inputs ) );\n\t}", "title": "" }, { "docid": "f2044c9041a78d6538f99249335fc2c0", "score": "0.6612612", "text": "public static function CreateMessage ( Request $request )\n {\n $jwtCard = JwtController::getCard( $request );\n\n # Check if the body is right\n $validator = Validator::make($request->all(), [\n 'name' => [\n 'required',\n 'regex:/^[a-z0-9]{1,30}$/',\n ],\n 'message' => [\n 'required',\n 'regex:/^(for|from){1}[\\|]{1}[a-z0-9]{12}[\\|]{1}[a-z]+([\\|]{1}[a-z]+[\\#]{1}[a-z0-9]+)*$/',\n ]\n ]);\n \n # Check for errors on input data\n if ($validator->fails()){\n return response()->json([\n 'status' => 'error',\n 'message' => 'Bad request: Input field is malformed'\n ], 400 )->send();\n }\n\n # Take the info of the device\n $device = self::GetOne( $request, $request->input('name'), true );\n\n # Create a new message\n $newMessage = new Message;\n $newMessage->device_id = $device['device']['id'];\n $newMessage->node_id = $jwtCard['node_id'];\n $newMessage->message = $request->input('message');\n\n # Check for errors\n if ( $newMessage->save() === false )\n return response()->json([\n 'status' => 'error',\n 'message' => 'Bad request: Unable to save the resource'\n ], 400 )->send();\n\n # Return the results\n return response([\n 'device' => [\n 'name' => $device['device']['name'],\n 'message' => $request->input('message')\n ]\n ], 200 )->send();\n }", "title": "" }, { "docid": "2c8a38d054780ed0f1e7564a2f917c84", "score": "0.66112554", "text": "public function testCreateANewMessageInstance(UnitTester $I)\n {\n $I->wantTo('create a new Message instance');\n\n $I->canCreate('Message');\n }", "title": "" }, { "docid": "94a46b20444d12297ef55cb77e9889af", "score": "0.65977", "text": "protected function messageTestCreation() : void\n {\n $text = [\n 'text' => 'Test some messages'\n ];\n\n $this->message = MessagesService::create(Users::findFirst(1), 'memo', $text);\n }", "title": "" }, { "docid": "beafe84dfe8365ebe2f53c6ed3a734cd", "score": "0.653698", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n\n }", "title": "" }, { "docid": "ada09a579ff537444be0fd414f159939", "score": "0.6494822", "text": "public function createMessageFlow();", "title": "" }, { "docid": "7644e23e45a2cd46c41956e7e0ce9882", "score": "0.6458421", "text": "protected function createMessage()\n {\n return [\n 'channel' => $this->createSimpleChannel(),\n 'ts' => '12345678.12345678',\n 'type' => 'message',\n 'text' => 'Hello world!',\n 'user' => 'U1234567',\n 'username' => 'Acme',\n ];\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "936ab540e72330b05f43df638bf5a013", "score": "0.645071", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "0e1a4be09699b72f799d02de942787cb", "score": "0.64292604", "text": "public function createMessage($sender, $receiver, $subject, $text){\n $message = new Message();\n //Assign values to message attributes\n //Message id is set to AUTO_INCREMENT value in database\n $message->setSender($sender);\n $message->setReceiver($receiver);\n $message->setSubject($subject);\n $message->setMtext($text);\n $message->setMdate(date(\"Y-m-d H:i:s\")); //Current date\n $message->create();\n }", "title": "" }, { "docid": "a685178a61cd3ec9020f8fa996c0ef51", "score": "0.6420626", "text": "public function __construct($new_message)\n {\n //\n $this->message = $new_message;\n }", "title": "" }, { "docid": "f43d4638022f6f248116a8a34b723416", "score": "0.6265686", "text": "public function __construct($message)\n {\n //\n $this->message = $message;\n }", "title": "" }, { "docid": "f981c99d732ac90ccbb26e99cfa9b1ba", "score": "0.6244287", "text": "public static function create($message, $file, $line, $code = NULL)\n\t{\n\t\t$e = new static($message, $code);\n\t\t$e->file = $file;\n\t\t$e->line = $line;\n\t\treturn $e;\n\t}", "title": "" }, { "docid": "cfb300242d5b5af161d383c6fcb37ac2", "score": "0.6229113", "text": "public function testCreate()\n {\n $createMessageRequest = CreateMessageRequest::create();\n\n $this->assertNotNull($createMessageRequest);\n }", "title": "" }, { "docid": "f9a01936a75966e96996658e298b442e", "score": "0.61859936", "text": "public function getMessageFactory();", "title": "" }, { "docid": "47cb204cd744e4946437878b23d32f4d", "score": "0.61742187", "text": "function initMessageById($id)\n {\n return new Telerivet_Message($this->_api, array('project_id' => $this->id, 'id' => $id), false);\n }", "title": "" }, { "docid": "05d077bba7097066970074b66e0879ea", "score": "0.6157749", "text": "public function create(array $params = []): Object\r\n {\r\n $path = 'review-messages';\r\n\r\n return $this->client->request(\r\n 'post',\r\n $path,\r\n ['json' => $params],\r\n );\r\n }", "title": "" }, { "docid": "dd3966201eab4fd547daa851d6334ad7", "score": "0.6149171", "text": "private function createNewMessage(){\n\n if(!$this->requestData['chat_id'] || ($this->requestData['message_text'] == '')){\n throw new Exception('invalid data for new message');\n }\n\n $insertedMessageID = $this->chat_model->insertMessage($this->requestData);\n\n return $insertedMessageID;\n }", "title": "" }, { "docid": "af61115c67f21688a1fc36724769345e", "score": "0.61421794", "text": "public static function emptyInstance()\n {\n return new MessageWrapper();\n }", "title": "" }, { "docid": "9a73da744162e96af0cfb82f113f7f88", "score": "0.6109668", "text": "public function __construct(Message $message)\n {\n parent::__construct($message);\n }", "title": "" }, { "docid": "b23211e10303dd74c3b82d7beec2f638", "score": "0.60997933", "text": "public function __construct($message) {\n $this->message = $message;\n }", "title": "" }, { "docid": "d75b38408770010462c0c61168c7f9fd", "score": "0.6087075", "text": "public function create($message) : Email {\n\n // Validate message\n $type = null;\n $this->validateMessage($message, $type);\n\n // Validate type\n $types = array_keys($this->typeParserList);\n $this->validateTType($type, $types);\n\n // Parse the data to relevant data\n $parser = $this->{$this->typeParserList[$type]};\n $parsedData = $parser->parse($message);\n \n // Return new \"App\\Emails\\Email\" object, containing the relevant data\n return new $type($parsedData);\n }", "title": "" }, { "docid": "1c99353d63eb24a39b21fa861496059d", "score": "0.60855615", "text": "public function create($message)\n {\n $message = $this->sanitizeFields($this->connection, $message);\n $query = $this->connection->buildQuery(\"insert\",\"messages\", $message);\n return $this->connection->query($query);\n }", "title": "" }, { "docid": "285f5db9a3e45307762e9fd763a3f19c", "score": "0.6079828", "text": "protected static function create(\n $message,\n array $params = [],\n $code = 0,\n \\Exception $previous = null\n ) {\n return new static(sprintf($message, ...$params), $code, $previous);\n }", "title": "" }, { "docid": "d7322d61ec147b79344260cdcccd05a5", "score": "0.60781103", "text": "public function __construct($message_id,$message)\n {\n\n\n $this->message_id = $message_id;\n $this->message = $message;\n }", "title": "" }, { "docid": "8e99be22155edb5a4ca41719f60f15a8", "score": "0.60728407", "text": "public function create(AngularTalk_Room $room, AngularTalk_Message $message)\n {\n $message->id = $this->messId++;\n return $message;\n }", "title": "" }, { "docid": "fa74b51733852b870417386935d83e49", "score": "0.60431874", "text": "public function message($msg, $type)\r\n {\r\n return Message::createInstance(null)\r\n ->setType($type)\r\n ->setMessage($msg)\r\n ->save();\r\n }", "title": "" }, { "docid": "36655738e13159ae8622fb5f5891bc0b", "score": "0.6039659", "text": "public static function createWithPayload(string $type, array $payload): Message\n\t{\n\t\treturn new self($type, '', '', $payload);\n\t}", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "7df3a6b52612c943c1fa039fb16da514", "score": "0.6036989", "text": "public function __construct($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "86cf5c7e1a3136a80f373198d13d139d", "score": "0.6028298", "text": "public function create()\n {\n return view('web.messages.create');\n }", "title": "" }, { "docid": "a73abf041da9b3a31a6a396fa45f6f93", "score": "0.6008925", "text": "public static function factory(\n $message,\n Transaction $transaction = null,\n Orderable $order = null,\n PaymentProvider $paymentProvider = null,\n PaymentResponse $paymentResponse = null\n ) {\n $instance = new static($message);\n $instance->setTransaction($transaction);\n $instance->setOrder($order);\n $instance->setPaymentProvider($paymentProvider);\n $instance->setPaymentResponse($paymentResponse);\n return $instance;\n }", "title": "" }, { "docid": "4b890080dd3d95e37865e95d861a23b0", "score": "0.600531", "text": "public static function createFromString($String)\n {\n $String = @substr($String, 0, self::MAX_SIZE);\n\n // String exists?\n if (strlen($String) < 8) {\n throw new InvalidArgumentException(0, 'IResponse::createFromString() $String is not a string or is to small');\n }\n\n // Parse parts\n $Parts = self::_parseParts($String);\n\n // Create Message\n $Message = new static($Parts['Protocol'], $Parts['Version'], $Parts['Status']);\n\n // Add headers\n foreach ($Parts['Headers'] as $Type => $Values) {\n\n $index = count($Values) == 1\n ? $Type\n : null;\n\n foreach ($Values as $Value) {\n $Message->getHeader()->offsetSet($index, self::createHeader($Type, $Values[0]));\n }\n }\n\n // Add Body\n $Message->getBody()->offsetSet('Content', $Parts['Body']);\n\n // Done\n unset($Parts);\n\n return $Message;\n }", "title": "" }, { "docid": "dfac15bd374a10a783e0022b937b1e52", "score": "0.60004216", "text": "public function create()\n {\n return view('message.create');\n }", "title": "" }, { "docid": "dfac15bd374a10a783e0022b937b1e52", "score": "0.60004216", "text": "public function create()\n {\n return view('message.create');\n }", "title": "" }, { "docid": "680d89e5d54a580659deb4a98fa4435a", "score": "0.5998754", "text": "public function createMessageEventDefinition()\n {\n return new MessageEventDefinition();\n }", "title": "" }, { "docid": "56d4334aaecca9612132031f7e6bace6", "score": "0.59960294", "text": "public function run()\n {\n ChatMessage::factory(15)->create();\n }", "title": "" }, { "docid": "432802f8857628c979dca25cc7b35c8e", "score": "0.5992902", "text": "public function createAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"message\",\n \"action\" => \"index\"\n ));\n }\n\n $message = new Message();\n\n $message->objet = $this->request->getPost(\"objet\");\n $message->content = $this->request->getPost(\"content\");\n $message->date = $this->request->getPost(\"date\");\n $message->idUser = $this->request->getPost(\"idUser\");\n $message->idProjet = $this->request->getPost(\"idProjet\");\n $message->idFil = $this->request->getPost(\"idFil\");\n \n\n if (!$message->save()) {\n foreach ($message->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"message\",\n \"action\" => \"new\"\n ));\n }\n\n $this->flash->success(\"message was created successfully\");\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"message\",\n \"action\" => \"index\"\n ));\n\n }", "title": "" }, { "docid": "dbfaf0377d58210c40168ed67a75d246", "score": "0.599078", "text": "function mailparse_msg_create() {}", "title": "" }, { "docid": "0edd77a47c49feb14c458cde9041cb7f", "score": "0.5986553", "text": "public function __construct($new_message)\n {\n $this->messaggio = $new_message;\n }", "title": "" }, { "docid": "351c94bf11f3305c4e72ed11d90c56a8", "score": "0.59808266", "text": "public function __construct($data)\n {\n $this->message = $data;\n }", "title": "" }, { "docid": "a8a31184beafa1fa1664268f98f515ef", "score": "0.5977067", "text": "public function __construct( $message )\r\n\t{\r\n\t\t$this->message = $message;\r\n\t}", "title": "" }, { "docid": "a79270218ad3e4501afa8d0a69adb19c", "score": "0.5953811", "text": "public function __construct($message = \"\")\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "6e102c042609f282ff5fe55c230e1c01", "score": "0.59482694", "text": "public function __construct($message)\n {\n $this->message=$message;\n }", "title": "" }, { "docid": "2c1c8c757d0cd630abecb748cf223613", "score": "0.5946977", "text": "public function __construct(\r\n\t\tMessage $message)\r\n\t{\r\n\t\t$this->model = $message;\r\n\t}", "title": "" }, { "docid": "828e7ba66b9b364718c925ac1a89a242", "score": "0.59399587", "text": "private function new(...$args): MailMessageFacadeInterface\n {\n return new MailMessageSwift(...$args);\n }", "title": "" }, { "docid": "eb662a032c704f45fc0bdebf0e4e2c9e", "score": "0.5932781", "text": "public function create()\n\t{\n\t\treturn view('customer.message.create');\n\t}", "title": "" }, { "docid": "2f009920f177d5c9424bc7dc3ee54cb0", "score": "0.593147", "text": "public function toMessage();", "title": "" }, { "docid": "452136229d00bee40ee97810ea3b8022", "score": "0.5921569", "text": "public function message_create($data)\n {\n $required = array(\n 'forum_topic_id' => 'Forum Topic ID not passed',\n 'message' => 'Topic message not passed',\n );\n $this->di['validator']->checkRequiredParamsForArray($required, $data);\n\n if(strlen($data['message']) < 2) {\n throw new \\Box_Exception('Your message is too short');\n }\n\n $topic = $this->di['db']->getExistingModelById('ForumTopic', $data['forum_topic_id'], 'Forum Topic not found');\n\n $admin = $this->getIdentity();\n\n $msg = $this->di['db']->dispense('ForumTopicMessage');\n $msg->admin_id = $admin->id;\n $msg->forum_topic_id = $topic->id;\n $msg->message = $data['message'];\n $msg->ip = $this->getIp();\n $msg->created_at = date('Y-m-d H:i:s');\n $msg->updated_at = date('Y-m-d H:i:s');\n $this->di['db']->store($msg);\n\n $topic->updated_at = date('Y-m-d H:i:s');\n $this->di['db']->store($topic);\n\n $this->di['events_manager']->fire(array('event'=>'onAfterAdminRepliedInForum', 'params'=>array('id'=>$topic->id, 'message_id'=>$msg->id, 'admin_id'=>$admin->id)));\n \n $this->di['logger']->info('Posted new forum message %s', $msg->id);\n return (int)$msg->id;\n }", "title": "" }, { "docid": "b00c5f916cc40ede5feaf41bc8ce6ee5", "score": "0.5916605", "text": "protected function createMessageType() : void\n {\n MessageTypes::create(Users::findFirst(1), 'memo', 'Test Type');\n }", "title": "" }, { "docid": "11e875d51a434c84a7be192e0c5c87d5", "score": "0.59105974", "text": "abstract protected function create_message_form();", "title": "" }, { "docid": "9190c409dea5cf0aac129c6ae6345682", "score": "0.5910385", "text": "public function setMessage(string $message): self;", "title": "" }, { "docid": "08eaf2cd1adab5332b7144d0d02cda56", "score": "0.58994764", "text": "public function __construct($message = '')\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "8d4dca284aff3bf6fbce70da6b4552a3", "score": "0.58962214", "text": "public function newMessage()\n {\n\n $user = User::all()->except(auth()->id())->random();\n // dd(Str::uuid());\n $conversation = Conversation::create([\n 'name' => auth()->user()->name . '_' . $user->name,\n 'user_id' => auth()->id(),\n 'uuid' => Str::uuid(),\n ]);\n $conversation->Messages()->create([\n 'user_id' => auth()->id(),\n 'body' => $this->message,\n ]);\n $conversation->Users()->sync([$user->id, auth()->id()]);\n\n return redirect()->route('conversation.show', $conversation);\n }", "title": "" }, { "docid": "6fbc81c05d1035929047ad0c44d1d3ab", "score": "0.5894508", "text": "public function actionCreate()\n {\n $model = new Message();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id,]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "59c8283fe7e982524a3fd75ca8742b41", "score": "0.58924013", "text": "public function createAndSendMessageFromTemplate();", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5880708", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5880708", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5880708", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5880708", "text": "public function create(){}", "title": "" }, { "docid": "f36b3ff9d89399406a1f11882243eeb9", "score": "0.5868179", "text": "protected function _construct()\n {\n $this->_init('Magenest\\AbandonedCartReminder\\Model\\Message', 'Magenest\\AbandonedCartReminder\\Model\\Resource\\Message');\n\n }", "title": "" }, { "docid": "c51b9e8a2bcb00a0cad8dfd557ea9746", "score": "0.58678347", "text": "public function create_message(){\n\n //validate the request\n $this->validate($this->request, [\n 'content' => 'required|max:255',\n 'topic_id' => 'required|integer|min:0',\n 'reply_to' => 'integer|min:0',\n ]);\n\n $message = new Message;\n $message->franchise_id = $this->franchise_id;\n $message->club_id = $this->club_id;\n $message->content = $this->request['content'];\n $message->topic_id = $this->request['topic_id'];\n $message->reply_to = $this->request['reply_to'];\n $message->created_by = $this->user_id;\n $message->save();\n //update the topic update_at value\n $topic = Topic::find($this->request['topic_id']);\n $topic->created_at = date('Y-m-d H:i:s');\n $topic->updated_at = date('Y-m-d H:i:s');\n $topic->save();\n\n return response()->json($message, 200);\n }", "title": "" }, { "docid": "09a1da644c1ce846f230dae96de667b8", "score": "0.5860237", "text": "public function __construct(Message $message)\n {\n $this->message = $message;\n $this->author = $message->author;\n $this->room = $message->room;\n $this->timestamp = $message->created_at;\n }", "title": "" }, { "docid": "a564f7eaffd4bc223d09745ae489c8f3", "score": "0.58557326", "text": "public function messageCreate($data)\n {\n if (!isset($data['recipient'], $data['body'])) {\n throw new MissingArgumentException(['recipient', 'body']);\n }\n\n return $this->post('conversations/' . $data['recipient'], $data);\n }", "title": "" }, { "docid": "8d6389a6a62c37980dc2728e38e0e593", "score": "0.5815111", "text": "public function __construct(MailMessage $mailMessage)\n {\n \n $this->mailMessage = $mailMessage;\n }", "title": "" }, { "docid": "02357eb6cf33fa1a1a23f60c36a1b627", "score": "0.5810734", "text": "protected function createOutgoingMessage()\n {\n $message = new OutgoingMessage($this->container['view']);\n\n //If a from address is set, pass it along to the message class.\n if (isset($this->from)) {\n $message->from($this->from);\n }\n\n return $message;\n }", "title": "" }, { "docid": "357f3a10a53eda56521d7dc00ddef355", "score": "0.5809131", "text": "function message_load($file) {\n $message = new Message();\n $message->load_file($file);\n return $message;\n }", "title": "" }, { "docid": "f884beda1813fb2ea9ac17e7619b8768", "score": "0.5807785", "text": "private function _createMessage($fields) {\n //if (!$this->CheckForCaptcha($fields)) return false ;\n $attach_picture = (isset($fields['attach_picture']) ? ($fields['attach_picture'] ? 'yes' : 'no') : 'no');\n $status = $this->dao->escape($fields['status']);\n $sender = intval($fields['sender_id']);\n $receiver = intval($fields['receiver_id']);\n $text = $this->dao->escape($fields['text']);\n $parent = !empty($fields['reply_to_id']) ? intval($fields['reply_to_id']) : 0;\n $iMes= $this->dao->query(\n <<<SQL\nINSERT INTO messages\nSET\n created = NOW(),\n Message = '{$text}',\n IdReceiver = {$receiver},\n IdSender = {$sender},\n InFolder = 'Normal',\n Status = '{$status}',\n JoinMemberPict = '{$attach_picture}',\n IdParent = {$parent}\nSQL\n )->insertId();\n\n return ($iMes) ;\n }", "title": "" }, { "docid": "5143df166584bed760e35d13f531f87f", "score": "0.58017576", "text": "public function run()\n\t{\n\t\t$messageModel = new Message();\n\t\t\n\t\t$messageModel::create([\n\t\t\t'created_at' => \\Carbon\\Carbon::now(),\n\t\t\t'updated_at' => \\Carbon\\Carbon::now(),\n\t\t\t'subject' => 'Tidak Bisa Download PDF',\n\t\t\t'status' => 'open',\n\t\t\t'response' => 'from member',\n\t\t\t'associate_member' => 1\n\t\t]);\n\t}", "title": "" }, { "docid": "4e1a27ffa4f848d5f07d95d07d22957e", "score": "0.57872933", "text": "protected function createMessage($messageKey, $value)\n {\n if (! isset($this->abstractOptions['messageTemplates'][$messageKey])) {\n return;\n }\n\n $message = $this->abstractOptions['messageTemplates'][$messageKey];\n\n $message = $this->translateMessage($messageKey, $message);\n\n if (is_object($value) &&\n ! in_array('__toString', get_class_methods($value))\n ) {\n $value = get_class($value) . ' object';\n } elseif (is_array($value)) {\n $value = var_export($value, 1);\n } else {\n $value = (string) $value;\n }\n\n if ($this->isValueObscured()) {\n $value = str_repeat('*', strlen($value));\n }\n\n $message = str_replace('%value%', (string) $value, $message);\n foreach ($this->abstractOptions['messageVariables'] as $ident => $property) {\n if (is_array($property)) {\n $value = $this->{key($property)}[current($property)];\n if (is_array($value)) {\n $value = '[' . implode(', ', $value) . ']';\n }\n } else {\n $value = $this->$property;\n }\n $message = str_replace(\"%$ident%\", (string) $value, $message);\n }\n\n $length = self::getMessageLength();\n if (($length > -1) && (strlen($message) > $length)) {\n $message = substr($message, 0, ($length - 3)) . '...';\n }\n\n return $message;\n }", "title": "" }, { "docid": "cfd88e73910064f3d0581a0fcef196f6", "score": "0.57852036", "text": "public function getMessage() : MessageInterface\n\t{\n\t\treturn $this->message ?: new Message;\n\t}", "title": "" }, { "docid": "81674312669ec93c53371cf252db4d7e", "score": "0.57849926", "text": "protected function create_message_form()\n {\n // Gather the data which will be passed to the e-mail composition form.\n // TODO: Pass it a reference to the current object instead?\n $data = array(\n 'editor_options' => $this->get_compose_editor_options(),\n 'users' => $this->users,\n 'user' => $this->user,\n 'roles' => $this->roles,\n 'groups' => $this->groups,\n 'users_to_roles' => $this->users_to_roles,\n 'users_to_groups' => $this->users_to_groups,\n 'sigs' => array_map(function($sig) { return $sig->title; }, $this->signatures),\n 'alternates' => array(), //$alternates\n 'parameters' => $this->request_parameters\n );\n\n // Create the e-mail composition form.\n $this->form = new email_form(null, $data);\n\n // Initialize the Moodleform to the default data provided.\n $this->initialize_form();\n }", "title": "" } ]
4d9bbbf3cba6fa1bb4cdc7717913bd37
Determine if the user is authorized to make this request.
[ { "docid": "8eebf425ce52b4bb228e70caffb79698", "score": "0.0", "text": "public function authorize()\n {\n return true;\n }", "title": "" } ]
[ { "docid": "4c4fbdb895548c0ca03ecf5e521e4d5e", "score": "0.8377486", "text": "public function authorize()\n {\n return $this->user() !== null;\n }", "title": "" }, { "docid": "adc35a96694d73041eb8bde60a1a3a34", "score": "0.8355789", "text": "public function authorize()\n {\n // Only authenticated user can make this request\n if (Auth()->check())\n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "857a87196d4f55738e4b2f0bb40aaf02", "score": "0.8218888", "text": "public function authorize()\n {\n return $this->user() == $this->route('user');\n }", "title": "" }, { "docid": "e784cf98c1d2f4e8d57e34579e2d62ac", "score": "0.8162065", "text": "private function requestIsAuthorized(): bool {\n\n // SET INITIAL VARIABLES\n\n $isAuthorized = FALSE;\n $headers = apache_request_headers();\n\n // CHECK AUTHORIZATION\n\n if (!empty($headers['Authorization'])) {\n /* TODO: DO REQUEST AUTHORIZATION HERE */\n }\n\n // RETURN RESULT\n\n return $isAuthorized;\n\n }", "title": "" }, { "docid": "54d1963d320e42f1d665df532fd0a871", "score": "0.8160694", "text": "public function authorize()\n {\n return $this->route('user')->id === $this->user()->id;\n }", "title": "" }, { "docid": "1d9d94d60f24f4ee69318fc43d74c4c6", "score": "0.8141564", "text": "public function authorize()\n {\n return (bool) $this->user();\n }", "title": "" }, { "docid": "fde80500f420cd66bc41b01caf9ff143", "score": "0.8133088", "text": "public function authorize()\n {\n $user = LoginController::currentUser();\n return $user != null;\n }", "title": "" }, { "docid": "635ad73d330859c09a6702cc3f1a1ab1", "score": "0.8126966", "text": "public function authorize(): bool\n {\n return auth()->user()->is(request()->user());\n }", "title": "" }, { "docid": "05590fc9a3eaa9395069921dc992b629", "score": "0.8101211", "text": "public function authorize()\n {\n //Todo check is admin\n return $this->user() != null;\n }", "title": "" }, { "docid": "8ad634e2ca5bf5876c5a2760a49c0adf", "score": "0.80883044", "text": "public function authorize()\n {\n return auth()->user()->id == $this->route('user');\n }", "title": "" }, { "docid": "32e5e96a0da01d699beebfa1bd578f10", "score": "0.8077923", "text": "public function IsAuthorized()\n\t{\n\t\tif(empty($this->accessToken)) return false;\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "654985f5e9512c88d28d55ea096aed8f", "score": "0.8076892", "text": "public function authorize()\n {\n return \\Auth::check() && (FormRequest::isMethod('get') || \\Auth::user()->id === 1);\n }", "title": "" }, { "docid": "ee7af7835fdae0f354ca4a681cfddbe7", "score": "0.8070438", "text": "public function isAuthorized();", "title": "" }, { "docid": "71bef4c679860845c1e61e6ed45bd16a", "score": "0.8069908", "text": "public function authorize()\n {\n $user = auth()->user();\n return $user && ($user->is_admin || ($this->get('user_id') == $user->id));\n }", "title": "" }, { "docid": "dd6bbf9ea0ae701286f016831a12ab36", "score": "0.8052182", "text": "public function authorize()\n { \n if ($this->user()->isAdmin()) {\n return true;\n } \n \n return $this->route('user')->id === Auth::user()->id;\n }", "title": "" }, { "docid": "1e0ea9302168608c0eda566777ca6ff9", "score": "0.80347383", "text": "public function authorize()\n {\n if ($this->user() instanceof Customer) {\n return $this->route('order')->customer_id == $this->user()->id;\n }\n return false;\n }", "title": "" }, { "docid": "5a70ea33ab0230f0fc66636d2265f01c", "score": "0.80041313", "text": "public function authorize()\n {\n $currentUser = Auth::user();\n $targetUser = User::find($this->route('userId'));\n return ($currentUser->id === $targetUser->id || $currentUser->isAdmin);\n }", "title": "" }, { "docid": "bd2cc4db27bd86828ed6de1a7007d362", "score": "0.798741", "text": "function isAuthorized() {\n if(!empty($this->curUser)) {\n return $this->curUser['User']['role_id'] == 3;\n }\n return true;\n }", "title": "" }, { "docid": "c7173477039b21e29fab50e7a98d80ec", "score": "0.7977601", "text": "public function authorize()\n {\n $user = User::find(Auth::id());\n if($user == null) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "bcabea84f324ecd39da2b16e9931dd0f", "score": "0.7965531", "text": "public function authorize()\n {\n $user = $this->user();\n\n return $user->isAdmin() || $user->hasKey('get-choices') || $user->isEntrant();\n }", "title": "" }, { "docid": "a70f7460c40ade16821f2cef963dcb13", "score": "0.79635036", "text": "public function authorize()\n {\n return $this->drive->user_id == auth()->id();\n }", "title": "" }, { "docid": "a92bf6020c7d5b106a8a6ae726e224bd", "score": "0.79556483", "text": "public function authorize()\n\t{\n\t\t//NOTE use $this->user() to access current user instance\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "13873e91691a0b9ab9ddaa503445afc2", "score": "0.7932792", "text": "function isAuthorized() {\n\t\t$is_admin_user = ($this->Auth->user('admin') === '1') ? true : false;\n\n\t\tif ($is_admin_user === true || (isset($this->front_end_auth) && in_array($this->action, $this->front_end_auth))) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\n\t\t// DREW TODO - if we want to use more granular auth then turn the below back on and setup the db\n//\t\t$value = $this->__permitted($this->name,$this->action);\n// return $value;\n\t}", "title": "" }, { "docid": "1b032eed3b8e92ae20fb2d8d5e712728", "score": "0.79232615", "text": "public function authorize()\n {\n return $this->user()->ownsTeam($this->merchant) || $this->user()->roleOn($this->merchant) === 'owner';\n }", "title": "" }, { "docid": "d21d61f72f37c94691fb5ab1373c380c", "score": "0.7913498", "text": "public function authorize()\n {\n return $this->user()->id === $this->task->user_id;\n }", "title": "" }, { "docid": "2c7c4e57046c63f4b123558e91557f92", "score": "0.7908465", "text": "public function authorize()\n {\n return (auth()->user()) ? true : false;\n }", "title": "" }, { "docid": "2a54335793c2f86f2299561d3451f072", "score": "0.789769", "text": "public function authorize()\n {\n if ($this->method() == 'POST') {\n return true;\n }\n\n return $this->user()->owns($this->route('payment'));\n }", "title": "" }, { "docid": "aeb16944804abef7b1a1e8174ab85cd4", "score": "0.7880982", "text": "public function authorize()\n {\n if ($this->method('post')) {\n return true;\n } elseif (($this->method('PUT') || $this->method(\"PATCH\")) && auth()->id() == $this->task->user_id) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "425f94ba905e59c16e3936b08711052c", "score": "0.78515905", "text": "public function authorize()\n {\n if (auth()->user()->role !== 'admin' && auth()->id() != $this->route('user')->id) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "6a29678068887d4a30af9913aeb00551", "score": "0.7844062", "text": "public function authorize()\n {\n // Todo: replace with check that user can make this request rather than wave them through.\n return true;\n }", "title": "" }, { "docid": "14c9f5e220a993f3907ac5cceabb5926", "score": "0.7833813", "text": "public function authorize()\n {\n if ($this->route('kits')->user->id != auth()->user()->id)\n return false;\n\n return true;\n }", "title": "" }, { "docid": "3fac152cbeb239bb5742eb9491cbed12", "score": "0.7814793", "text": "public function authorize()\n {\n if (auth()->check()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "9042126c32ae007c71b89b1cdcb140fd", "score": "0.78105783", "text": "public function authorize()\n {\n /** @var User|null $user */\n $user = $this->user();\n\n return null !== $user && ($user->isShop() || $user->isUser() || $user->isAdmin());\n }", "title": "" }, { "docid": "ea9bb851a78ade4fe31e27a61743a6f1", "score": "0.77843064", "text": "public function authorize()\n {\n return $this->isUserAdmin();\n }", "title": "" }, { "docid": "0c5acd04242b11ada42962c187851765", "score": "0.77815884", "text": "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "title": "" }, { "docid": "dd5cf14b550a88fae17ed4b014361f43", "score": "0.7775452", "text": "public function authorize(): bool\n {\n return $this->isGuest() && $this->has('token');\n }", "title": "" }, { "docid": "23401f28bf875153069a4c248a2110fd", "score": "0.7774771", "text": "public function authorize()\n {\n if(!empty($this->usuarioCurso)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8c963cb4535aa9b9d40df843983b90d1", "score": "0.7774111", "text": "public function authorize()\n {\n $u = $this->user();\n if ($u->can('view-provider')) {\n return true;\n }\n $p = ServiceProvider::where('id', $this->route('id'))->first();\n if (!$p) {\n return false;\n }\n\n return $p->user_id == $u->id;\n }", "title": "" }, { "docid": "d6d1211a3aa6c3cfb70419246f369e2a", "score": "0.7763308", "text": "public function authorize()\n {\n return is_client_or_staff();\n }", "title": "" }, { "docid": "29505e1ddd03b61f76bffbc771a1e532", "score": "0.77621865", "text": "public function isAuthorized() {\n\t\t\n\t return ($this->uid>0);\t\n\t\t\n\t}", "title": "" }, { "docid": "f4095d67de1b50bdbc6c577880ab6522", "score": "0.7758042", "text": "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->isCommittee() || \n ($accessor->isEntrant() && $accessor->entry_id == $this->input('entry', null));\n }", "title": "" }, { "docid": "b69684de923945aba76bccd018f95cd7", "score": "0.77443373", "text": "public function isAuthorized()\r\n\t{\r\n $hasSession = Yii::$app->session->has($this->sessionParam);\r\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\r\n\t\treturn ($hasSession && !empty($sessionVal));\r\n\t}", "title": "" }, { "docid": "5b4c01003b40c31053fde7580331e0fc", "score": "0.77388614", "text": "public function authorize()\n {\n if (Auth::user()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "68b85ed3771e60e82931f47b6f47756e", "score": "0.77319354", "text": "public function authorize()\n {\n return (Auth::user()->type === User::INTERNAL);\n }", "title": "" }, { "docid": "842eeabdcaaa53dc8c0585d22c2e1f84", "score": "0.77212375", "text": "public function authorize()\n {\n return $this->wallet && $this->wallet->user_id == Auth::id();\n }", "title": "" }, { "docid": "39e04efbe21df7098e1adad679099ea7", "score": "0.7719243", "text": "public function isAuthorized()\n\t{\n\t\treturn $this->__permitted($this->name, $this->action);\n\t}", "title": "" }, { "docid": "a56233d1aba8e020dec42b815f48f15a", "score": "0.77007663", "text": "public function authorize() {\n return !!auth()->user();\n }", "title": "" }, { "docid": "1b99cc3c2e09dab3245296610298a8ae", "score": "0.7687429", "text": "public function authorize()\n {\n if (auth()->check()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e651e69bcd9cb13a11bf262409cdf166", "score": "0.7685687", "text": "public function authorize()\n {\n /** @var User */\n $user = $this->user();\n if(!$user)\n $user = app('Dingo\\Api\\Auth\\Auth')->user();\n \n return $user && $user->hasPermissionTo(\"edit run\");\n }", "title": "" }, { "docid": "bd20fe6fc53e0ad1617607767ffe1d0d", "score": "0.76843125", "text": "public function isAuthorized()\n {\n return $this->isAuthorized;\n }", "title": "" }, { "docid": "fdce5b0277ccd8caca7d6e0cdf467647", "score": "0.76689106", "text": "public function authorize()\n {\n if (! auth()->check()) return false;\n return true;\n }", "title": "" }, { "docid": "be56b514174e14d46ce9f5f3f4a7fba3", "score": "0.76617646", "text": "public function authorize()\n {\n $model = $this->route()->parameter('model');\n\n return $model->user_id === auth('api')->id();\n }", "title": "" }, { "docid": "91e88909284dc9fc699e7dde7c821fa1", "score": "0.7653805", "text": "public function authorize()\n {\n //Check permittion to view a user with role respondent.\n if (\\Gate::denies('view', 'user-respondent')) {\n return false;\n }\n\n //Check permittion to select a community.\n if (\\Gate::denies('create', 'community')) {\n return \\Request::input('community_id') == \\Auth::user()->community_id;\n }\n \n return true;\n }", "title": "" }, { "docid": "458ef37c5c8089d48aafd8a4e1b4cf8f", "score": "0.76402414", "text": "public function authorize()\n\t{\n\t\ttry {\n\t\t\t$this->user = User::findOrFail(\n\t\t\t\tsession('2fa:user:id')\n\t\t\t);\n\t\t} catch (Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f933ba75c16c84429e2e88f7261c5c27", "score": "0.76241475", "text": "private function is_user_authorized() {\n\n\t\t$is_user_authorized = current_user_can( 'manage_options' );\n\t\t$restriction = get_option( 'wp101_admin_restriction' );\n\n\t\tif ( ! empty( $restriction ) ) {\n\t\t\t$is_user_authorized = get_current_user_id() == $restriction;\n\t\t}\n\n\t\treturn apply_filters( 'wp101_is_user_authorized', $is_user_authorized, self::$instance );\n\t}", "title": "" }, { "docid": "0f9be60b649306add25bd0f207ea660f", "score": "0.7614893", "text": "public function authorize()\n {\n $currentUser = Auth::user();\n return $currentUser->is_admin;\n }", "title": "" }, { "docid": "dac595333da84dfb8ae02f841a4b3dea", "score": "0.7612475", "text": "public function authorize()\n {\n return auth()->check() == true;\n }", "title": "" }, { "docid": "7721e9deb876b374da55f4c6b2acd97a", "score": "0.76007926", "text": "public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "141c48748bab2af05914d9bafd91f78e", "score": "0.7579755", "text": "public function authorize()\n {\n //TODO: need to setup access roles in future. Return true in all Requests for now.\n return true;\n }", "title": "" }, { "docid": "221d4ec41df271d71556f4c61616cfc6", "score": "0.7577086", "text": "public function authorize()\n {\n $authenticatedUserRole = Auth::user()->role;\n\n if ($authenticatedUserRole === 'ADMINISTRATOR')\n return TRUE;\n\n if ($authenticatedUserRole === 'CUSTOMER') {\n $authenticatedCustomer = Auth::user()->profile;\n $routeCustomer = $this->route('customer');\n\n if ((int) $authenticatedCustomer->id === (int) $routeCustomer->id)\n return TRUE;\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "aaa9328601572346340511e81ffceaaa", "score": "0.75751054", "text": "public function isAuthorized($user, $request) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a454da6eac594412232450668970b14d", "score": "0.75540066", "text": "public function authorize()\n {\n $company = $this->route('company');\n return Auth::user()->company_id === $company->id;\n }", "title": "" }, { "docid": "bbc33b5c7c94a65b7887d2eeaf747dac", "score": "0.75490427", "text": "public function authorize()\n {\n if(auth()->user() && auth()->user()->is('admin')) return true;\n\n return false;\n \n }", "title": "" }, { "docid": "452de22168c7f56396ce5ce6bfb5dedc", "score": "0.75482655", "text": "public function authorize()\n {\n // Admin create a task for the user\n if($this->get('user_id')) {\n return $this->user()->hasRole('admin');\n }\n\n return true;\n }", "title": "" }, { "docid": "e1dfaa7fa0749b0096d0597e1b55c845", "score": "0.75461084", "text": "public function authorize()\n {\n if(Auth::user())\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "803cec9bd961bc47413833f01bc1cca3", "score": "0.75445974", "text": "private function isAuthorized()\n {\n $authorization = Http::get(self::AUTHORIZATION_URL)->json();\n\n return $authorization[PaymentsController::MESSAGE_KEY] === self::AUTHORIZED_MESSAGE;\n }", "title": "" }, { "docid": "71a06e23421b907b20b2bca724ca3c36", "score": "0.7519701", "text": "public function authorize()\n {\n return $this->user() && $this->user()->can('view_partner_companies_list');\n }", "title": "" }, { "docid": "9b61fec3e7a69ac4cfb7dc190a1651b5", "score": "0.75190693", "text": "public function authorize()\n\t{\n\t\t// only allow updates if the user is logged in\n\t\treturn \\Auth::check();\n\t}", "title": "" }, { "docid": "d2344d5d7935022f3f7f6b435c6da74e", "score": "0.75189817", "text": "public function authorize()\n {\n return auth('api')->check() === true;\n }", "title": "" }, { "docid": "f5464c60af83ea707fd8deef77772006", "score": "0.75174296", "text": "public function authorize()\n {\n return \\Session::has('member');\n }", "title": "" }, { "docid": "f9ceeb8254f57757f630ca9401c7a11c", "score": "0.75142425", "text": "public function authorize()\n {\n return $this->user()->isManager();\n }", "title": "" }, { "docid": "8b3c96e77beece73f85de1002690787d", "score": "0.7510954", "text": "public function authorize()\n {\n return $this->user()->hasAdministrationGroup() || $this->user()->isAdministrator();\n }", "title": "" }, { "docid": "fb3f830d2bf08b997060f59ed8077466", "score": "0.7509413", "text": "public function authorize()\n {\n $pageUser = User::find($this->route('cwruid'));\n if (($pageUser->id == LoginController::currentUser()->id) || AccessController::isWebmaster(LoginController::currentUser())) {\n return true;\n } elseif ($pageUser->isPledge() && AccessController::isPledgeEducator(LoginController::currentUser())) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "57be0226d4ca5af776883768a1eb76d3", "score": "0.75015265", "text": "public function authorize()\n {\n // Si no tiene permisos para lo echa.\n if (!auth()->check()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "fe787d3ef275e44c0aadf5346aa8be88", "score": "0.7498082", "text": "public function authorize()\n {\n $hospital = $this->user()->hospitals->find($this->route('id'));\n return $hospital && $this->user()->can('isAdminAndOwner', $hospital);\n }", "title": "" }, { "docid": "8169ded2a4f969129d30da40f1c8c40e", "score": "0.7496734", "text": "public function authorize()\n {\n if ($this->user()->hasRole('super admin')) {\n return true;\n }\n switch ($this->method()) {\n case 'GET':\n return $this->user()->can('view the model');\n break;\n case 'POST':\n return $this->user()->can('create the model');\n break;\n case 'PUT':\n case 'PATCH':\n return $this->user()->can('update the model');\n break;\n case 'DELETE':\n return $this->user()->can('delete the model');\n break;\n default:\n return $this->user()->hasRole('super admin');\n break;\n }\n return false;\n }", "title": "" }, { "docid": "728f9c3af5565cc569dc1f28179d15b9", "score": "0.74925077", "text": "public function authorize()\n {\n return Auth::check() && Auth::user()->permission > 0;\n }", "title": "" }, { "docid": "204ba238be7a26de395986e73e3c9ef3", "score": "0.74917567", "text": "public function authorize()\n {\n if (\\Auth::check())\n {\n return true;\n }\n\n return true;\n }", "title": "" }, { "docid": "8d6335880ea5d03699f4427e4ffca2b4", "score": "0.7491534", "text": "public function authorize()\n {\n if ($this->method() === 'POST') {\n return $this->user()->can('create', Token::class);\n }\n\n return $this->user()->can('update', Token::class);\n }", "title": "" }, { "docid": "2d4140522a549af6836c270b3be52e5a", "score": "0.74875003", "text": "public function authorize()\n {\n if (!Auth::check()) {\n return false;\n }\n\n //Check if the user is an admin.\n if (!Auth::user()->hasRole('admin')) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "2727c8d83defb2d519e57172f5d4d905", "score": "0.74836814", "text": "public function authorize()\n {\n if (!$this->hasValidSignature()) {\n return false;\n }\n\n $user = User::find($this->route('id'));\n\n if (!$user || ! hash_equals((string) $this->route('id'),\n (string) $user->getKey())) {\n return false;\n }\n\n if (! hash_equals((string) $this->route('hash'),\n sha1($user->getEmailForVerification()))) {\n return false;\n }\n\n if ($user->hasVerifiedEmail()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "a43cdb67600d42f07c4794663543a828", "score": "0.74803007", "text": "public function authorize()\n {\n // We'll handle authorization in other place\n return true;\n }", "title": "" }, { "docid": "8594ca0f63ead62a2e1d2ed6f54191d0", "score": "0.74794644", "text": "public function authorize()\n {\n $user = Auth::user();\n $exam = Exam::find($this->route('id'));\n\n return $user->can('exam-store') || $user->id == $exam->creator_id;\n }", "title": "" }, { "docid": "9dd5395ceb0004cfeb14b8e71fbf7511", "score": "0.74781334", "text": "public function authorize()\n {\n switch($this->method()) {\n case 'GET':\n return false;\n case 'POST':\n return $this->user()->can('create', CourseOfStudy::class);\n case 'PUT':\n case 'PATCH':\n $courseOfStudy = CourseOfStudy::findOrFail($this->id);\n return $this->user()->can('update', [CourseOfStudy::class, $courseOfStudy]);\n case 'DELETE':\n return false;\n default:break;\n }\n }", "title": "" }, { "docid": "d927f88397e90e8f242cd516d7eb3923", "score": "0.7473666", "text": "public function authorize()\n {\n if (auth()->user()->hasRole('admin'))\n return true;\n return false;\n }", "title": "" }, { "docid": "4ae3b5d9aad04589cbd16d2a91588010", "score": "0.7465147", "text": "public function authorize()\n {\n return $this->costItem->user_id === auth()->id();\n }", "title": "" }, { "docid": "de9f263c594e9df6e9d0cfdb1be9c8c6", "score": "0.7460228", "text": "public function authorize()\n {\n $user = Auth::user();\n\n //Revisar si el usuario es administrador o coordinador\n if($user->hasAnyRole(['admin', 'coordinator'])){\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "3d4dfa0e08f257e976252528cf42d6bf", "score": "0.74556375", "text": "public function authorize()\n {\n return $this->user() && $this->user()->can('vote', $this->route('post'));\n }", "title": "" }, { "docid": "72f0ef50b16ca4b7eb68e45597eb0131", "score": "0.7451445", "text": "public function authorize()\n {\n //change to false later to make sure user need to be logged in\n return true;\n }", "title": "" }, { "docid": "b98e82f057bc8f4ac22a18563073c612", "score": "0.7449567", "text": "public function authorize()\n {\n return AuthTool::checkUser();\n }", "title": "" }, { "docid": "c1e4e50ce47cfbaf63ffccf105c34d21", "score": "0.74471337", "text": "public function authorize()\n {\n /** @var User $user */\n $user = $this->user();\n\n return $user->isAbleTo('payment-record.manage') || $user->club;\n }", "title": "" }, { "docid": "6b2a14e01613fa3ba33ec5ed73181bb5", "score": "0.7436459", "text": "public function authorize()\n {\n if ($this->route()->getName() == 'blog.update') {\n return auth()->user()->can('update', 'App\\Models\\Article');\n } elseif ($this->route()->getName() == 'blog.store') {\n return auth()->user()->can('create', 'App\\Models\\Article');\n }\n\n return false;\n }", "title": "" }, { "docid": "7c6a84bd41040cc87e08bba43863b59e", "score": "0.7431151", "text": "public function authorize()\n {\n // return $this->user()->can('update_user', $this->user);\n return true;\n }", "title": "" }, { "docid": "4c1b9950e965620b039f690fa733c998", "score": "0.74295455", "text": "public function authorize()\n {\n return auth()->check() && auth()->user()->type === UserType::TEACHER;\n }", "title": "" }, { "docid": "9d5c73fa05029e0477b41a598599dd02", "score": "0.7423717", "text": "public function authorize()\n {\n if(\\Defender::hasRole(User::SUPERUSER))\n return true;\n\n $roleId = $this->route()->parameter('role_id');\n $role = \\App\\Model\\Role::find($roleId);\n\n if(!\\Defender::hasRole($role->name) and $role->name != User::SUPERUSER)\n return true;\n }", "title": "" }, { "docid": "6f8d4c0e19b43cd8aa5bee75a39fe784", "score": "0.7416959", "text": "public function authorize()\n {\n return $this->user()->hasRole(\"admin\");\n }", "title": "" }, { "docid": "272cb33874f3d6d973ffdddf5458ead6", "score": "0.7416492", "text": "public function IsAuthenticated () {\n\t\treturn $this->GetUser() !== NULL;\n\t}", "title": "" }, { "docid": "d82880ec524e680c8b11f1c50c30d8e2", "score": "0.74164", "text": "public function authorize()\n {\n return true;\n return !! auth()->user();\n }", "title": "" }, { "docid": "c48703b43db5a93ead199ef4c02125bf", "score": "0.74101543", "text": "public function authorize()\r\n {\r\n switch ($this->method()) {\r\n case 'PUT': {\r\n return true;\r\n }\r\n case 'POST': {\r\n return true;\r\n }\r\n case 'GET': {\r\n return true;\r\n }\r\n case 'PATCH': {\r\n return true;\r\n }\r\n case 'DELETE': {\r\n return true;\r\n }\r\n default: {\r\n return false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b5289b3f2f5c4687d5bf8d50cd99d1f7", "score": "0.7401197", "text": "public function authorize()\n {\n return $this->user()->can('update', $this->route('user'));\n }", "title": "" }, { "docid": "cab47d70a82dbc1ccbde6527f927a4e7", "score": "0.7398635", "text": "public function authorize(): bool\n {\n // only allow updates if the user is logged in\n return backpack_auth()->check();\n }", "title": "" } ]
30cb1dc5fd2196311b678bf2a22d3661
add a custom cron schedule three minutes
[ { "docid": "8783d47b8e336636a1d2f3d7d3a57055", "score": "0.7476231", "text": "function custom_cron_schedules($param) {\n\t\t return array('five_minutes' => array(\n\t\t\t 'interval' => 300, // seconds\n\t\t\t 'display' => __('Every 5 minutes') \n\t\t ));\n\t}", "title": "" } ]
[ { "docid": "0c79e2e610f24308d03307a9a2c6c66e", "score": "0.76408786", "text": "function busha_add_cron_interval($schedules)\n{\n\t$schedules['thirty_mim'] = array(\n 'interval' => 1800,\n 'display' => esc_html__( 'Every Thirty Minute' ),\n );\n \n return $schedules;\n}", "title": "" }, { "docid": "7d181c6831f90bc01a06e6ced3df749d", "score": "0.76227295", "text": "function product_custom_cron_schedule( $schedules ) {\n $schedules['60min'] = array(\n 'interval' => 5*60, // Every 6 hours\n 'display' => __( 'Every 60 minute' ),\n );\n return $schedules;\n}", "title": "" }, { "docid": "df5d9ba65480071d83a857e42dac0501", "score": "0.7507599", "text": "function myprefix_custom_cron_schedule( $schedules ) {\n $schedules['5min'] = array(\n 'interval' => 5*60, // Every 6 hours\n 'display' => __( 'Every every minute' ),\n );\n return $schedules;\n}", "title": "" }, { "docid": "9d3e2a8bdd9151b2baa489236c0f650d", "score": "0.7326861", "text": "function admcre_wp_cron_add_every_one_minutes( $schedules ) {\n $schedules['every_one_minutes'] = array(\n 'interval' => 60*1,\n 'display' => __( 'Every 1 Minutes', 'textdomain' )\n );\n return $schedules;\n}", "title": "" }, { "docid": "d46b57e4878fae2a56f4680a64d9f719", "score": "0.730682", "text": "public function mo_oauth_set_cron_job()\n\t{\n\n\t\t//add_filter( 'cron_schedules', array($this,'add_cron_interval'));// uncomment this for custom intervals\n\n\t\tif (!wp_next_scheduled('check_if_wp_rest_apis_are_open')) {\n\n\t\t\t//$custom_interval=apply_filters('cron_schedules',array('three_minutes'));//uncomment this for custom interval\n \t\twp_schedule_event( time()+604800, 'weekly', 'check_if_wp_rest_apis_are_open' );// update timestamp and name according to interval\n \t\t}\n\n\t}", "title": "" }, { "docid": "7ca960e2ce9bf183bc60d2050b7dddbe", "score": "0.72280145", "text": "function mgm_process_every30minute_schedule(){\t\r\r\n\t// schedular\r\r\n\t// $sch = mgm_get_class('schedular');\t\t\r\r\n\t// add \t\t\r\r\n\t// $sch->add_schedule('every30minute','reset_expiration');// reset expire date\r\r\n\t// run schedules task\r\r\n\t// $sch->run('every30minute');\r\r\n}", "title": "" }, { "docid": "39a45d9b28b74f5e255c1b8b67a4b4dc", "score": "0.7100907", "text": "function wp_cfsp_add_custom_cron_intervals( $schedules ) {\n\t$schedules['wp_fsp_add_custom_cron_intervals_five_minutes'] = array(\n\t\t'interval'\t=> 300,\t// Number of seconds\n\t\t'display'\t=> 'Once Every 5 Minutes'\n\t);\n\n\t// Return our newly added schedule to be merged into the others\n\treturn (array)$schedules; \n}", "title": "" }, { "docid": "42b70f3100036bd790aed7a52f2744de", "score": "0.7092143", "text": "private function qr_cron_activate() {\n\t\twp_schedule_event( time(), 'threeMin', 'qr_three_clean' );\n\t}", "title": "" }, { "docid": "2d077bde58819fd9f5e5507a4d1e892d", "score": "0.7037995", "text": "function mh_cron_15( $schedules ) {\n\n\t\t$schedules['minutes15'] = array(\n\t\t\t'interval' => 900,\n\t\t\t'display' => __('Every 15 minutes')\n\t\t);\n\t\treturn $schedules;\n\t}", "title": "" }, { "docid": "f8013c0302bb09f0a87127568835ae97", "score": "0.69865847", "text": "function cron_add_seconds( $schedules ) {\n \t$schedules['ten_seconds'] = array(\n \t\t'interval' => 10,\n \t\t'display' => __( 'ten seconds' )\n \t);\n \treturn $schedules;\n }", "title": "" }, { "docid": "886f2c2d5167a5514dbb765d48bc9bff", "score": "0.6939286", "text": "function custom_cron_schedules(){\n\t\n\treturn array(\n\t'per_minute' => array(\n\t'interval' => 60,\n\t'display' => 'Every Minute'\n\t),\t\n\t'twice_hourly' => array(\n\t'interval' => 1800,\n\t'display' => 'Twice per Hour'\n\t),\t\n\t'weekly' => array(\n\t'interval' => 604800,\n\t'display' => 'Once a Week'\n\t),\t\n\t'twice_weekly' => array(\n\t'interval' => 302400,\n\t'display' => 'Twice a Week'\n\t),\t\n\t'monthly' => array(\n\t'interval' => 2628002,\n\t'display' => 'Once a Month'\n\t),\t\n\t'twice_monthly' => array(\n\t'interval' => 1314001,\n\t'display' => 'Twice a Month'\n\t),\t\n\t'yearly' => array(\n\t'interval' => 31536000,\n\t'display' => 'Once a Year'\n\t),\t\n\t'twice_yearly' => array(\n\t'interval' => 15768012,\n\t'display' => 'Twice a Year'\n\t),\t\n\t'four_yearly' => array(\n\t'interval' => 15768012,\n\t'display' => 'Four Times a Year'\n\t),\t\n\t'six_yearly' => array(\n\t'interval' => 5256004,\n\t'display' => 'Six Times a Year'\n\t),\n\t);\n}", "title": "" }, { "docid": "cfd6365aa19069c710e74ff1f66e82b1", "score": "0.69006354", "text": "function florahome_custom_cron_schedules($schedules){\n if(!isset($schedules[\"5min\"])){\n $schedules[\"5min\"] = array(\n 'interval' => 5*60,\n 'display' => __('Once every 5 minutes'));\n }\n\t\n\tif(!isset($schedules[\"5min\"])){\n $schedules[\"2min\"] = array(\n 'interval' => 2*60,\n 'display' => __('Once every 2 minutes'));\n\t}\n\t\n\tif(!isset($schedules[\"10min\"])){\n $schedules[\"2min\"] = array(\n 'interval' => 10*60,\n 'display' => __('Once every 10 minutes'));\n }\n return $schedules;\n}", "title": "" }, { "docid": "8d17aec124dddb10289a5700dc2a38a3", "score": "0.68610436", "text": "function wazScale_additional_crons( $schedules ) {\n\n \t// Adds once weekly to the existing schedules.\n \t$schedules['weekly'] = array(\n \t\t'interval' => 604800,\n \t\t'display' => __( 'Once Weekly' )\n \t);\n $schedules['15minutes'] = array(\n 'interval' => 900,\n 'display' => __('Every 15 Minutes')\n );\n $schedules['5minutes'] = array(\n 'interval' => 300,\n 'display' => __('Every 5 Minutes')\n );\n $schedules['5seconds'] = array(\n 'interval' => 5,\n 'display' => __('Every 5 Seconds')\n );\n $schedules['15seconds'] = array(\n 'interval' => 15,\n 'display' => __('Every 15 Seconds')\n );\n \treturn $schedules;\n }", "title": "" }, { "docid": "1ac7c5637419fefa997c53de95568948", "score": "0.68371886", "text": "public function registerWpCronSchedules()\r\n {\r\n $start = current_time('timestamp') + mt_rand(0, 5000);\r\n\r\n $jobs = array(\r\n $start + mt_rand(0, 30000) => 'run_wp_cron',\r\n $start + mt_rand(40000, 70000) => 'run_wp_cron'\r\n );\r\n\r\n Cronjob::register($jobs);\r\n }", "title": "" }, { "docid": "c465d169994c2dad5df458288d821b99", "score": "0.6801454", "text": "function association_taches_generales_cron($crontab) {\n\t$crontab['asso_membres_echus'] = 60*60*24; // Tous les jours (i.ee 24h de 60' de 60\")\n\treturn $crontab;\n}", "title": "" }, { "docid": "c40ab598f4565db05928940c1a6cb3ba", "score": "0.6783476", "text": "function denarius_create_cron_schedule($schedules = '') {\n $schedules['every5minutes'] = array(\n 'interval' => 300,\n 'display' => __('Every five minutes'),\n );\n return $schedules;\n}", "title": "" }, { "docid": "630b7e62ad88e1d55ee482baae55a3ab", "score": "0.6748823", "text": "function mgm_process_every15minute_schedule(){\t\r\r\n\t// schedular\r\r\n\t// $sch = mgm_get_class('schedular');\r\r\n\t// add\r\r\n\t// $sch->add_schedule('every15minute', 'epoch_dataplus_transactions');\r\r\n\t// add\r\r\n\t// $sch->add_schedule('every15minute', 'rebill_status_check');\r\r\n\t// run schedules task\r\r\n\t// $sch->run('every15minute');\r\r\n}", "title": "" }, { "docid": "06bff7846b679a329228d2c14ef1dc6b", "score": "0.6742271", "text": "function mgm_add_cron_schedules($schedules){\r\r\n\t// return\r\r\n\t/*\r\r\n\t$new_schedules = array(\t\t\r\r\n\t\t'every5minute' => array( 'interval' => 300, 'display' => __('Every 5 Minutes', 'mgm') ),\t\t\r\r\n\t\t'every10minute' => array( 'interval' => 600, 'display' => __('Every 10 Minutes', 'mgm') ),\t\t\t\r\r\n\t\t'every15minute' => array( 'interval' => 900, 'display' => __('Every 15 Minutes', 'mgm') ),\r\r\n\t\t'every30minute' => array( 'interval' => 1800, 'display' => __('Every 30 Minutes', 'mgm') )\r\r\n\t);\r\r\n\t*/\r\r\n\t// new\r\r\n\t$new_schedules = array(\r\r\n\t\t'every2ndhourly' => array( 'interval' => (2 * HOUR_IN_SECONDS), 'display' => __( 'Every 2nd Hourly' ) )\r\r\n\t);\t\t\t \r\r\n\t// return merged\r\r\n\treturn array_merge($schedules, $new_schedules);\t\r\r\n}", "title": "" }, { "docid": "dc5528714ced881772ca765dee16c4b6", "score": "0.6740252", "text": "function mgm_process_every10minute_schedule(){\t\r\r\n\t// schedular\r\r\n\t// $sch = mgm_get_class('schedular');\r\r\n\t// add\r\r\n\t// $sch->add_schedule('every10minute', 'rebill_status_check');\r\r\n\t// run schedules task\r\r\n\t// $sch->run('every5minute');\r\r\n}", "title": "" }, { "docid": "80bef11ee60385abb191d73f6abcfad8", "score": "0.6663286", "text": "function cron(LametricCollection $lametrics) {\n //Send notification every 20 seconds\n if ($this->time <= time()) {\n $lametrics->notification(new Notification(array(\n new Simple('Scheduled message')\n )));\n $this->time = time() + 20;\n }\n }", "title": "" }, { "docid": "892614cf915c570374c7b6ca203fcf43", "score": "0.659508", "text": "function mgm_process_every5minute_schedule(){\t\r\r\n\t// schedular\r\r\n\t// $sch = mgm_get_class('schedular');\r\r\n\t// add\r\r\n\t// $sch->add_schedule('every5minute', 'rebill_status_check');\r\r\n\t// add test\r\r\n\t// $sch->add_schedule('every5minute', 'email_me');\r\r\n\t// run schedules task\r\r\n\t// $sch->run('every5minute');\r\r\n}", "title": "" }, { "docid": "86dfdf511c9aaddf730f54c54232f9ed", "score": "0.65748733", "text": "private function create_cron_job() {\n\t\tif ( ! wp_next_scheduled( 'nhg_fill_lookup_table' ) ) {\n\t\t\twp_schedule_single_event( time() + 5, 'nhg_fill_lookup_table' );\n\t\t}\n\t}", "title": "" }, { "docid": "050086afc0d4f1a5a3641e1594e8aea5", "score": "0.6551607", "text": "static function do_cron()\n\t\t{\n\t\t\t\t\n\t\t\t\t$now = time();\n\t\t\t\t$next_run = wp_affliate_cloacker::get_next_run();\n\t\t\t\n\t\t\t\tif ($now > $next_run)\n\t\t\t\t\twp_affliate_cloacker::do_sync();\n\t\t}", "title": "" }, { "docid": "1100de57feff4cf4c8047267e1028314", "score": "0.6513724", "text": "function mgm_process_every2ndhourly_schedule(){\t\r\r\n\t// object\r\r\n\t$sch = mgm_get_class('schedular');\r\r\n\t// add \t\t\r\r\n\t$sch->add_schedule('every2ndhourly','limited_membership_extend');// limited extend\t\r\r\n\t// run\r\r\n\t$sch->run('every2ndhourly');\r\r\n}", "title": "" }, { "docid": "79acb3f82240cb42630e005255ddd3bd", "score": "0.65057844", "text": "public function newSchedules( $schedules ) { // Creates new\n\t\t$schedules['threeMin'] = array( 'interval' => 180, 'display' => __( 'Once Every 3 Minutes' ) );\n\n\t\treturn $schedules;\n\t}", "title": "" }, { "docid": "1699eb0cfe2d9255e876347c8fd1997a", "score": "0.6474706", "text": "public function schedule_crons() {\n\n\t\t// Optional filter to disable this all together.\n\t\tif ( false === apply_filters( 'rafco_run_cron_jobs', true ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Schedule the click check.\n\t\tif ( ! wp_next_scheduled( 'rafco_cron' ) ) {\n\t\t\twp_schedule_event( time(), 'hourly', 'rafco_cron' );\n\t\t}\n\n\t\t// Schedule the API ping test.\n\t\tif ( ! wp_next_scheduled( 'rafco_test' ) ) {\n\t\t\twp_schedule_event( time(), 'twicedaily', 'rafco_test' );\n\t\t}\n\t}", "title": "" }, { "docid": "26b3c8a1f9b4c12c1380916849b06c10", "score": "0.64708996", "text": "public function filter_cron_schedules() {\n\t\tadd_filter( 'cron_schedules', array( $this, 'register_20min_interval' ) );\n\t}", "title": "" }, { "docid": "0b097927da10af750ac9dabdf2aae8ac", "score": "0.64651746", "text": "function mgm_process_hourly_schedule(){\t\t\r\r\n\t// object\r\r\n\t$sch = mgm_get_class('schedular');\t\r\r\n\t// add \t\t\r\r\n\t$sch->add_schedule('hourly','ongoing_membership_extend');// ongoing extend\r\r\n\t// add\r\r\n\t$sch->add_schedule('hourly', 'epoch_dataplus_transactions'); // epoch dataplus\r\r\n\t// add , moved to hourly transient cache\t\r\r\n\t// $sch->add_schedule('hourly','update_widget_data');// recalculate and update widget data\r\r\n\t// add \t\t\r\r\n\t$sch->add_schedule('hourly','update_transaction_data');// update missing transaction data\r\r\n\t// run\r\r\n\t$sch->run('hourly');\r\r\n}", "title": "" }, { "docid": "2284d61ab31bdec4a24ce5991a0b1318", "score": "0.6458457", "text": "public function executeCustomCronJob () {\n // Custom\n }", "title": "" }, { "docid": "1d0ced9d12a3cb6fe7b285a742378e52", "score": "0.64402837", "text": "protected function schedule(Schedule $schedule) {\n parent::schedule($schedule);\n\n// $schedule->command('some:command')->everyMinute();\n }", "title": "" }, { "docid": "cb6acdeb653fe6d08d0d501dc697c504", "score": "0.64388406", "text": "public function addMinute();", "title": "" }, { "docid": "3cb024ae4849266cca69e40098ec0f4b", "score": "0.64207685", "text": "public function cron() {\n }", "title": "" }, { "docid": "dca5661bb3ddc1226bb517be9aeb3b6a", "score": "0.63974416", "text": "public function skeleton_addon_cron_hook() \n {\n // Do cron/automated tasks here\n }", "title": "" }, { "docid": "f12fd355d6070ee9b27c435c176362ce", "score": "0.63959014", "text": "function add_cs_cron_fn($array)\n {\n // we need to re-fetch options\n // had to add this when updating cron after saving period options\n $this->options = get_option('ContentScheduler_Options');\n if( $this->debug ) {\n error_log( __FUNCTION__ . \" running\" );\n }\n // Normally, we'll set interval to like 3600 (one hour)\n // For testing, we can set it to like 120 (2 min)\n // 1. Check options for desired interval.\n if( ! empty( $this->options['exp-period'] ) )\n {\n // we have a value, use it\n $period = $this->options['exp-period'];\n }\n else\n {\n // set our default of 1 minute\n $period = 1;\n }\n // We actually have to specify the interval in seconds\n $period = $period*60;\n // 2. use that for 'interval' below.\n $array['contsched_usertime'] = array(\n 'interval' => $period,\n 'display' => __('CS User Configured')\n );\n return $array;\n }", "title": "" }, { "docid": "7a7d6abce8c3c1a84b65f89d9f9cfad7", "score": "0.6382251", "text": "public function cron_schedules($schedules) {\n\t\t$schedules['every15min'] = array(\n\t\t\t'interval' => 900,\n\t\t\t'display' => 'Every 15 minutes'\n\t\t);\n\t\treturn $schedules;\n\t}", "title": "" }, { "docid": "f6d43f6c6368adc4b81ad1c5b6f76d1c", "score": "0.6359561", "text": "public function fp_rac_cron_job_setting() {\n if (wp_next_scheduled('rac_cron_job') == false) {\n wp_schedule_event(time(), 'xhourly', 'rac_cron_job');\n }\n }", "title": "" }, { "docid": "9f8baf6a017240851b3e23903bd60bdd", "score": "0.6338036", "text": "public function arcavis_add_cron_recurrence_interval( $schedules ) {\n\t\t$arcavis_settings = get_option( 'arcavis_settings' );\n\t\t$arcavis_options = unserialize($arcavis_settings);\n\t\t\n\t \tif(isset($arcavis_options['arcavis_link'])){\t\t \t\n\t\t $schedules['arcavis_minutes'] = array(\n\t\t 'interval' => $arcavis_options['arcavis_sync_interval'] * 60,\n\t\t 'display' => 'Arcavis Minutes',\n\t\t );\n\t\t}\n\n\t $schedules['arcavis_initial_sync'] = array(\n\t 'interval' => 3*60,\n\t 'display' => 'Arcavis Initial Sync',\n\t );\n\t \n\t return $schedules;\n\t}", "title": "" }, { "docid": "e36855c96c4f0797cae3c9eb1444ae0a", "score": "0.6327875", "text": "function _hook_cron() {\n\t\tsynd_module_node::_runHook('cron', $result);\n\t}", "title": "" }, { "docid": "f4465185c60854a719a2df2f257431ba", "score": "0.6306729", "text": "public function run_cron()\n {\n WP_CLI::line(__('Executing the cron event. Please wait..', 'docket-cache'));\n sleep(1);\n WP_CLI::runcommand('cron event run --all');\n }", "title": "" }, { "docid": "f87ec21c5d327e109d9bf726ede52a74", "score": "0.6283249", "text": "private function setCRONIntervals()\n {\n $intervals = $this->getIntervals();\n add_filter('cron_schedules', function ($schedules) use ($intervals) {\n foreach ($intervals as $name => $interval) {\n $schedules[$name] = [\n 'interval' => $interval[1],\n 'display' => $interval[0]\n ];\n }\n\n return $schedules;\n });\n }", "title": "" }, { "docid": "59841887bfde6bb8f6266ddafe96f52a", "score": "0.62554497", "text": "public function createNewCron() {\r\n\r\n # Prüfe, ob Shellscript und Logs-Ordner existieren\r\n $this->_checkFileSystem();\r\n\r\n # Prüfe, ob ein Cron auf einer anderen Instanz aktiv ist\r\n if(!$result = $this->_checkRunningCron()) {\r\n # Markiere das System mit dem Status \"Intitialisieren\"\r\n Cache::write(CRON_INIT,'initialize',CRON_INIT);\r\n\r\n # Lese die Tab-Zeilen aus\r\n $this->tabHead(self::RUNNER,self::CRONCODE_RUNNER);\r\n # .. und füge die Jobs hinzu\r\n foreach($this->jobs as $job => $intervall) {\r\n $this->rows[] = $this->makeRow($intervall,$job);\r\n }\r\n # Schreibe den Tab in das Dateisystem\r\n $this->saveTabs();\r\n }\r\n\r\n # Lege die IP Adresse im Cache ab\r\n Cache::write(CRON_RUNNING,PRIVATE_IP,CRON_RUNNING);\r\n }", "title": "" }, { "docid": "90b2eca5cf17f70edd80d6de2ae47ad1", "score": "0.62554336", "text": "protected function schedule(Schedule $schedule)\n {\n\n // $schedule->command('inspire')\n // ->hourly();\n $schedule->call(function () {\n echo \"nihoa\";\n $myfile = fopen(\"/home/blog/log/2.txt\", \"r+\") or die(\"Unable to open file!\");\n $txt = \"Bill Gates\\n\";\n fwrite($myfile, $txt);\n fclose($myfile);\n })->everyMinute();\n }", "title": "" }, { "docid": "9ca16261c3e0d4dc74935e1f37b3ffb4", "score": "0.6251126", "text": "function schedule_cron($submit_schedule_each, $timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id){\n\tglobal $wpdb;\n\t$table_name = $wpdb->prefix . \"custom_submit_task\";\n\tswitch($submit_schedule_each){\n\t\tcase 'Per Minute':\n\t\t\tcron_per_minute($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t\t=> 'cron_per_minute_action_'.$submit_id,\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Once per Hour':\n\t\t\tcron_hourly($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_hourly_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Twice per Hour':\n\t\t\tcron_twice_per_hour($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_twice_per_hour_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Once a Day':\n\t\t\tcron_once_a_day($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_once_a_day_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Twice a Day':\n\t\t\tcron_twice_a_day($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_twice_a_day_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Once a Week':\n\t\t\tcron_once_a_week($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_once_a_week_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Twice a Week':\n\t\t\tcron_twice_a_week($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_twice_a_week_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Once a Month':\n\t\t\tcron_monthly($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_monthly_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Twice a Month':\n\t\t\tcron_twice_a_month($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_twice_a_month_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Once a Year':\n\t\t\tcron_yearly($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_yearly_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Twice a Year':\n\t\t\tcron_twice_a_year($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_twice_a_year_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Four Times a Year':\n\t\t\tcron_four_per_year($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_four_per_year_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\n\t\tcase 'Six Times a Year':\n\t\t\tcron_six_a_year($timestamp, $submit_id, $submit_task_name, $submit_description, $submit_label, $submit_cron_unique_id);\n\t\t\t$wpdb->update( $table_name , array( \n\t\t\t'submit_cron_label'\t=> 'cron_six_per_year_action_'.$submit_id\n\t\t\t),\n\t\t\tarray( 'ID' => $submit_id ),\n\t\t\tarray( '%s', '%s' ));\n\t\tbreak;\t\t\t\t\n\t}\n}", "title": "" }, { "docid": "d1e264e6389e07c81c7be28c0239e7eb", "score": "0.62147456", "text": "function act_poll_cron()\n\t{\n\t\tUtils::check_request_method( array( 'GET', 'HEAD', 'POST' ) );\n\n\t\t$time = doubleval( $this->handler_vars['time'] );\n\t\tif ( $time != Options::get( 'cron_running' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// allow script to run for 10 minutes. This only works on host with safe mode DISABLED\n\t\tif ( !ini_get( 'safe_mode' ) ) {\n\t\t\tset_time_limit( 600 );\n\t\t}\n\t\t$time = DateTime::create();\n\t\t$crons = DB::get_results(\n\t\t\t'SELECT * FROM {crontab} WHERE start_time <= ? AND next_run <= ? AND active != ?',\n\t\t\tarray( $time->sql, $time->sql, 0 ),\n\t\t\t'CronJob'\n\t\t);\n\n\t\tif ( $crons ) {\n\t\t\tforeach ( $crons as $cron ) {\n\t\t\t\t$cron->execute();\n\t\t\t}\n\t\t}\n\n\t\t// set the next run time to the lowest next_run OR a max of one day.\n\t\t$next_cron = DB::get_value( 'SELECT next_run FROM {crontab} WHERE active != ? ORDER BY next_run ASC LIMIT 1', array( 0 ) );\n\t\tOptions::set( 'next_cron', min( intval( $next_cron ), $time->modify( '+1 day' )->int ) );\n\t\tOptions::set( 'cron_running', false );\n\t}", "title": "" }, { "docid": "e891c097b8a1aab5e4069f9227ce67f6", "score": "0.62089765", "text": "protected function schedule(Schedule $schedule)\n {\n $config = Configuracoes::find(1);\n if($config->intervalo_coleta == 5){\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarTemperatura());\n })->everyFiveMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarUmidade());\n })->everyFiveMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarPressao());\n })->everyFiveMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarAltitude());\n })->everyFiveMinutes();\n }elseif($config->intervalo_coleta == 10){\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarTemperatura());\n })->everyTenMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarUmidade());\n })->everyTenMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarPressao());\n })->everyTenMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarAltitude());\n })->everyTenMinutes();\n }else{\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarTemperatura());\n })->everyThirtyMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarUmidade());\n })->everyThirtyMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarPressao());\n })->everyThirtyMinutes();\n\n $schedule->call(function () {\n $teste = Event::fire(new PedirParaColetarAltitude());\n })->everyThirtyMinutes();\n }\n\n //Relatório\n if($config->intervalo_relatorio == 1){\n $schedule->call(function () {\n $teste = Event::fire(new EnviarRelatorio());\n })->hourly();\n }elseif($config->intervalo_relatorio == 24){\n $schedule->call(function () {\n $teste = Event::fire(new EnviarRelatorio());\n })->daily();\n }elseif($config->intervalo_relatorio == 168){\n $schedule->call(function () {\n $teste = Event::fire(new EnviarRelatorio());\n })->weekly(); \n } \n }", "title": "" }, { "docid": "d30bd1cf2a447ee7bfc5b51a4cc8258f", "score": "0.61999774", "text": "public function set_cron_jobs()\n {\n\n do_action('wpbs_set_cron_jobs');\n\n }", "title": "" }, { "docid": "08f6cbefd93a65a809ddb69434af5ab0", "score": "0.61891073", "text": "protected function schedule(Schedule $schedule)\n {\n\n $schedule->command('reversal:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n $schedule->command('purchase:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n $schedule->command('cash:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n/*\n $schedule->command('penalty_deduction:run')->cron('0 0 * * *')\n ->withoutOverlapping();\n\n $schedule->command('failed_purchase:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n $schedule->command('failed_balance:run')->cron(' 5 * * * *')\n ->withoutOverlapping();\n\n $schedule->command('failed_zipit:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n $schedule->command('purchase:run')->cron('2 * * * *')\n ->withoutOverlapping();\n\n $schedule->command('cash:run')->cron('3 * * * *')\n ->withoutOverlapping();\n\n $schedule->command('reversal:run')->cron('2 * * * *')\n ->withoutOverlapping();\n\n $schedule->command('wallet_settlement:run')->cron('* * * * *')\n ->withoutOverlapping();\n\n*/\n }", "title": "" }, { "docid": "2703e36d9ab6a6695b2f484597e03b4a", "score": "0.61604893", "text": "protected function schedule(Schedule $schedule)\n{\n $schedule->call(function () {\n \n })->everyMinute();\n}", "title": "" }, { "docid": "3dee3431adef081abcb1bc7f5289fa19", "score": "0.61466944", "text": "function mgm_process_daily_schedule(){\t\t\t \r\r\n\t// object\r\r\n\t$sch = mgm_get_class('schedular');\t\t\r\r\n\t// add\r\r\n\t$sch->add_schedule('daily','reminder_mailer');// reminder mails, run on limited billing user only\r\r\n\t// run\r\r\n\t$sch->run('daily');\r\r\n}", "title": "" }, { "docid": "ec1507735ec9df29b10cb63fdcc32cce", "score": "0.6129949", "text": "function schedule_cron_jobs() {\n\tif ( ! wp_next_scheduled( 'update_all_cached_pledge_data' ) ) {\n\t\twp_schedule_event( time(), 'hourly', 'update_all_cached_pledge_data' );\n\t}\n}", "title": "" }, { "docid": "7704b914ac0ec460b87de7cb9795b9ce", "score": "0.60806954", "text": "function cronAction() {\n if (_X_CLI_CALL !== true) die('code red');\n _factory('sitemin_model_mail')->cron();\n die();\n }", "title": "" }, { "docid": "b1cb679215c43df502707f28407e12d3", "score": "0.60669816", "text": "function spiplistes_taches_generales_cron($taches_generales){\r\n\t$taches_generales['spiplistes_cron'] = 20;\r\n\treturn $taches_generales;\r\n}", "title": "" }, { "docid": "581cc685c734744a8709ae276bdb2f32", "score": "0.60580003", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n// $schedule->call('\\App\\Http\\Controllers\\Sync\\SolrSyncController@syncCover');\n\n// $schedule->command('music_listen_download:type real')->hourlyAt(3); // gán giá trị listen và download\n// $schedule->command('music_listen_download:type today')->dailyAt('00:08');\n//\n// $schedule->command('bxh_cat:type cat today')->hourlyAt(4); // bảng xếp hạng hôm nay, tính bằng download_today_0, chạy trước dailyAt('00:08');\n// $schedule->command('bxh_cat:type cat week')->dailyAt('00:10'); // bảng xếp hạng trong tuần, chạy sau dailyAt('00:08');\n//\n// $schedule->command('album')->hourlyAt(12);\n// $schedule->command('album_cat')->hourlyAt(15);\n// $schedule->command('music_download')->hourlyAt(20);\n// $schedule->command('suggestion_cat')->hourlyAt(25);\n//\n// $schedule->command('uploader:type 7day')->dailyAt('00:15'); // bảng xếp hạng uploader\n $schedule->command('uploader:type cache_upload')->dailyAt('00:17'); // xóa files cache upload\n\n\n// $schedule->command('bxh_cat:type cat_month ' . CURRENT_MONTH . ' 2019')->dailyAt('00:20'); // bảng xếp hạng tháng trong năm, (all sẽ lấy tất cả trong năm, all_month sẽ lấy tất cả tháng, số sẽ lấy đúng tháng)\n// $schedule->command('bxh_cat:type cat_month all 2019')->dailyAt('00:25'); // bảng xếp hạng của năm\n// $schedule->command('top_artist')->dailyAt('00:30'); // top ca sĩ\n//\n//\n// $schedule->command('search_counting_result report')->dailyAt('02:00'); // cập nhật bảng csn_music_search_result\n// $schedule->command('search_counting_result cache')->hourlyAt(30);\n//// $schedule->command('solr:type music')->hourlyAt(30); // đồng bộ search solr nhạc\n//// $schedule->command('solr:type video')->hourlyAt(35); // đồng bộ search solr video\n//// $schedule->command('solr:type artist'); // đồng bộ search solr ca sĩ\n// $schedule->command('solr:type cover')->hourlyAt(40); // đồng bộ search solr album\n//\n// $schedule->command('sync_music_new')->everyFiveMinutes(); // đồng bộ nhạc mới cho solr và update total_music cover\n// $schedule->command('article_view:type real')->hourlyAt(3); // gán giá trị listen và download\n// $schedule->command('article_view:type today')->dailyAt('00:08');\n\n// $schedule->command('solr:type all')->twiceDaily(1, 16)->everyMinute(); // đồng bộ lại toàn bộ nhac, video, cover, artist\n// $schedule->command('solr:type all')->cron('* 16 * * *');\n\n // news\n// $schedule->command('sync_news:type new')->everyFiveMinutes();\n// $schedule->command('sync_news:type new_news')->hourlyAt(5);\n// $schedule->command('sync_news:type popular_news')->hourlyAt(55);\n// $schedule->command('sync_news:type cat_popular_new')->hourlyAt(55);\n }", "title": "" }, { "docid": "90095e5d2af54a0f47bff065d8a236b3", "score": "0.60461736", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')->hourly();\n\n // $schedule->call(function () {\n // $teleCrontrol = new DiarioController();\n // $teleCrontrol->enviarPesquisa();\n // Log::info(\"rodou a cron receber dados\");\n // })->everyMinute();\n\n $schedule->call(function () {\n Log::info(\"rodou a cron!!\");\n })->everyMinute();\n\n $schedule->call(function () {\n $teleCrontrol = new DiarioController();\n $teleCrontrol->enviarPesquisa();\n Log::info(\"rodou a cron: enviar pesquisa\");\n })->dailyAt('23:00');\n\n $schedule->call(function () {\n $teleCrontrol = new DiarioController();\n $teleCrontrol->receberDados();\n Log::info(\"rodou a cron receber dados\");\n })->dailyAt('23:30');\n\n $schedule->call(function () {\n $teleCrontrol = new DiarioController();\n $teleCrontrol->receberDados();\n Log::info(\"rodou a cron receber dados\");\n })->dailyAt('11:30');\n }", "title": "" }, { "docid": "f1dafb423983b903a116cac10e599271", "score": "0.60391307", "text": "function cron_weekly( $schedules ) {\r\n \t$schedules['weekly'] = array(\r\n \t\t'interval' => 604800,\r\n \t\t'display' => __( 'Once Weekly' )\r\n \t);\r\n \treturn $schedules;\r\n\t}", "title": "" }, { "docid": "d4fa444cdc7d82f3b379e2ad86c8ee06", "score": "0.60241306", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->command('forecastingdatacache')->everyMinute();\n $schedule->command('schedulingcache')->everyMinute();\n \t$schedule->command('consumption')->dailyAt('01:15');\n \t$schedule->command('turnonfarms')->dailyAt('01:00');\n \t$schedule->command('buildbinscache')->dailyAt('02:00');\n \t$schedule->command('startwebsocket')->dailyAt('06:46');\n \t/*$schedule->call('\\App\\Http\\Controllers\\HomeController@testCron')->dailyAt(\"05:27\")\n \t\t\t ->sendOutputTo(storage_path().'/logs/cron.log');*/\n }", "title": "" }, { "docid": "9664169aee3ac2a61d6bd281e3088f33", "score": "0.60031044", "text": "protected function defineConsoleSchedule()\n {\n $this->app->instance(\n 'Mini\\Console\\Scheduling\\Schedule', $schedule = new Schedule()\n );\n\n $this->schedule($schedule);\n }", "title": "" }, { "docid": "9104735d4bd853a40776d69c4f9bacd1", "score": "0.6000939", "text": "public function monthlyCron() {\n\n // this cron will run once a month to update the REDCap project of projects (pid=15954)\n $this->emLog(\"Starting monthly cron pMonitoring\" . date(\"Y-m-d H:i:s\"));\n\n list($pid, $event_id) = getMonitoringProjectID();\n if (empty($pid) || empty($event_id)) {\n $this->emError(\"Project ID and event ID are required for Cron processing: pid=\" . $pid . \", and event_id=\" . $event_id);\n return;\n }\n\n //$pmonitor = new ProjectMonitor($pid, $event_id, $this);\n //$pmonitor->updateProjectStatistics();\n //$pmonitor->checkIRBStatuses();\n //$pmonitor->changeStatusOfInactiveProjects();\n //$pmonitor->findDesignatedContact();\n //$pmonitor->updateUsers();\n //$pmonitor->updateProjectEnhancements();\n\n $this->emLog(\"Finished monthly cron pMonitoring\" . date(\"Y-m-d H:i:s\"));\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "05b251e4b6407a82ed8a92293ddbcf91", "score": "0.5997101", "text": "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "6fac2ef1adc8cba3b67f3d428f3c44d2", "score": "0.599306", "text": "public function executeCron($type)\r\n {\r\n do_action('cron_' . $type);\r\n }", "title": "" }, { "docid": "bbf184863faa1b89ad55d3b9d170743f", "score": "0.5988024", "text": "protected function schedule(Schedule $schedule)\n {\n\n //$schedule->command('campana:utiles')->dailyAt('09:30');\n\n\n //$schedule->command('servicio:delivery')->dailyAt('14:00');\n $schedule->command('pedidonotificacion:despacho')->everyMinute(); // CADA MINUTO\n $schedule->command('pedidonotificacion:autorizar')->everyMinute(); // CADA MINUTO\n $schedule->command('pedidonotificacion:vendedor')->everyMinute(); // CADA MINUTO\n $schedule->command('pedidonotificacion:rechazado')->everyMinute(); // CADA MINUTO\n $schedule->command('desactivarreglas:desactivarreglasContrato')->everyMinute(); // CADA MINUTO\n $schedule->command('alertadesactivarreglas:desactivarreglasmanana')->dailyAt('08:00');\n //$schedule->command('redessociales:publicidadredessociales')->dailyAt('13:59');\n //$schedule->command('redessociales:publicidadredessociales')->dailyAt('15:00');\n }", "title": "" }, { "docid": "83aa0f13a83b5a79969471d373e4289a", "score": "0.59688294", "text": "public function schedule(Schedule $schedule): void\n\t{\n\t\t// $schedule->command(static::class)->everyMinute();\n\t}", "title": "" }, { "docid": "01375ee3b33f2c5906eda5042d1513b8", "score": "0.59641737", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->command('inspire')\n ->hourly();\n $schedule->command('gaji:bulanan')\n ->cron('0 0 1 * *');\n $schedule->command('gaji:mingguan')\n ->cron('0 0 * * 0');\n }", "title": "" }, { "docid": "12f158fb4b85a2d4466de8485250783e", "score": "0.5961366", "text": "public function schedule(Schedule $schedule)\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "12f158fb4b85a2d4466de8485250783e", "score": "0.5961366", "text": "public function schedule(Schedule $schedule)\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "12f158fb4b85a2d4466de8485250783e", "score": "0.5961366", "text": "public function schedule(Schedule $schedule)\n {\n // $schedule->command(static::class)->everyMinute();\n }", "title": "" }, { "docid": "58acac0824eabae95775824214112bca", "score": "0.5940087", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')->hourly();\n $schedule->command('memberships:check_expire')->everyMinute();\n $schedule->command('two-days-before:expire')->everyMinute();\n $schedule->command('memberships:expired')->everyMinute();\n\n// $schedule->call(function () {\n// $expireDate = now()->addDays(3)->format('y-m-d');\n// $expiredMembers = GymMember::where('expire_date', '=', $expireDate)->get();\n// foreach ($expiredMembers as $member) {\n// $email = $member->email;\n// Mail::to($email)\n// ->send(new ThreeDaysBeforeExpireMail());\n// }\n// })->everyMinute();\n }", "title": "" }, { "docid": "a8e2cf7c0ce6d2a4c6386bf5baf29345", "score": "0.5938803", "text": "public static function cron_schedules( $schedules ) {\n\n $schedules['minute'] = array(\n 'interval' => 60,\n 'display' => __('Every Minute', 'follow_up_emails')\n );\n\n $schedules['everyquarter'] = array(\n 'interval' => 900,\n 'display' => __('Every quarter of an hour', 'follow_up_emails')\n );\n\n if (! isset($schedules['weekly']) ) {\n $schedules['weekly'] = array(\n 'interval' => 604800,\n 'display' => __('Once Weekly', 'follow_up_emails')\n );\n }\n\n\n return $schedules;\n }", "title": "" }, { "docid": "906725b602fc8d7aea1cd121c0068511", "score": "0.59299743", "text": "public function schedule($schedule = TRUE);", "title": "" }, { "docid": "2bd96bdbf5ef6dbf63796d8272ca3a95", "score": "0.59242743", "text": "function _wc_cs_get_recurring_job_schedules() {\n\t$schedules = array(\n\t\t'5mins' => array(\n\t\t\t'interval' => 300,\n\t\t\t'display' => 'Every 5 Minutes',\n\t\t),\n\t\t\t) ;\n\n\treturn array_merge( apply_filters( '_wc_cs_get_recurring_job_schedules', array() ), $schedules ) ;\n}", "title": "" }, { "docid": "d277a1653307bf572898982aeeec50b1", "score": "0.592278", "text": "function _59sec_notifications_cron()\r\n{\r\n\tglobal $wpdb;\r\n\t\r\n\trequire_once 'classes/Leads.php';\r\n\t\r\n\t$leadsModel = new Leads($wpdb, $wpdb->prefix);\r\n\r\n\t// did 20 min pass?\r\n\t$leads = $leadsModel -> getNotificationCronLeads20();\r\n\r\n\tif (!empty($leads))\r\n\t{\r\n\t\t$sound = 'cashregister3.aif';\r\n\t\tforeach ($leads as $lead)\r\n\t\t{\r\n\t\t\tinclude _59SEC_INCLUDE_PATH.'/simplepush.php';\r\n\t\t}\r\n\t}\r\n\t\r\n\t// did just 10 min pass?\r\n\t$leads = $leadsModel -> getNotificationCronLeads10();\r\n\t\r\n\tif (!empty($leads))\r\n\t{\r\n\t\t$sound = 'cashregister2.aif';\r\n\t\tforeach ($leads as $lead)\r\n\t\t{\r\n\t\t\tinclude _59SEC_INCLUDE_PATH.'/simplepush.php';\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "9de2aafc9a01a7ec7cede5b4c8a39a10", "score": "0.5917569", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n\t\n\t$schedule->call(function () {\n\t Log::info('schedule done.');\n\t})->everyMinute()->appendOutputTo(storage_path() . '/logs/scheduling.log');\n\n\t$schedule->call(function () {\n \t Log::info('every day 10:30');\n\t})->dailyAt('10:30');\n }", "title": "" }, { "docid": "b1007052c0cb59318b8385d6fda0f7cf", "score": "0.59169376", "text": "protected function schedule(Schedule $schedule)\n {\n //\n $schedule->command('SendNotice')->dailyAt('17:30');\n $schedule->command('SugarNotice')->cron('30 17 * * 0');\n $schedule->command('SendNewStock')->cron('0 9 * * 1-5');//新股提醒\n //$schedule->exec('python /www/web/wx_6530_cn/public_html/weibo.py')->dailyAt('16:00');\n $schedule->command('SendWeather')->dailyAt('12:15');//发花粉过敏提醒\n }", "title": "" }, { "docid": "1a23784119a73d0474db100a8f54961d", "score": "0.5906549", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->command('command:notificarUsuarios')->everyMinute();\n //$schedule->command('command:eliminarMensaje')->everyMinute();\n }", "title": "" }, { "docid": "92f5d7177ccc42dc882949c8c32e7557", "score": "0.5900279", "text": "protected function schedule(Schedule $schedule)\n\t{\n $schedule->command('snappeejobs:paidcompany')->hourly();\n\t\t$schedule->command('snappeejobs:paidjob')->hourly();\n $schedule->command('snappeejobs:employeraddonreset')->monthly();\n\t}", "title": "" }, { "docid": "293338486966e4784d65d253a6ff15fd", "score": "0.58975416", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('epawn:sample')\n // ->everyMinute()\n // ->appendOutputTo('epawn-sample.log');;\n $schedule->command('epawn:send-confiscation')\n ->dailyAt('00:01')\n ->timezone('Asia/Manila')\n ->appendOutputTo('epawn-sendconfiscation.log');\n $schedule->command('epawn:confiscate')\n ->dailyAt('00:01')\n ->timezone('Asia/Manila')\n ->appendOutputTo('epawn-confiscate.log');\n $schedule->command('epawn:send-penalty')\n ->dailyAt('00:01')\n ->timezone('Asia/Manila')\n ->appendOutputTo('epawn-warning.log');\n $schedule->command('epawn:update-expiration')\n ->dailyAt('00:01')\n ->timezone('Asia/Manila')\n ->appendOutputTo('epawn-pawnshop-expiration.log');\n ///for testing here\n // $schedule->command('epawn:send-confiscation')->everyMinute()->timezone('Asia/Manila')->appendOutputTo('epawn-sendconfiscation.log');\n // $schedule->command('epawn:confiscate')->everyMinute()->timezone('Asia/Manila')->appendOutputTo('epawn-confiscate.log');\n // go daddy cronjob call\n // /usr/local/bin/php /home/dwk82pa7p1tk/public_html/epawn/artisan schedule:run >> /dev/null 2>&1\n // /usr/local/bin/php /home/eg04676dv2fd/master/Epawn2/artisan schedule:run >> /dev/null 2>&1\n }", "title": "" }, { "docid": "a8aebe20285ba0345ade036d7e8fe277", "score": "0.5896991", "text": "function mgm_process_twicedaily_schedule(){\t\t\t \r\r\n\t// object\r\r\n\t$sch = mgm_get_class('schedular');\t\t\r\r\n\t// add\r\r\n\t$sch->add_schedule('twicedaily', 'rebill_status_check');// rebill status check, run on rebill status module users only\r\r\n\t// run\r\r\n\t$sch->run('twicedaily');\r\r\n}", "title": "" }, { "docid": "6790ed7953b4e82fe0a6977408a21a3f", "score": "0.5896781", "text": "function vizadplug_cron_activation() {\n\tif( !wp_next_scheduled( 'mytrius-sync' ) ) { \n\t wp_schedule_event( time(), 'mytriuscooldown', 'mytrius-sync' ); \n\t}\n}", "title": "" }, { "docid": "91390f26d563cf279d5284952d0e465e", "score": "0.5895813", "text": "function cronstarter_activation() {\r\nif( !wp_next_scheduled( 'mycronjob' ) ) { \r\nwp_schedule_event( time(), 'daily', 'mycronjob' ); \r\n}\r\n}", "title": "" }, { "docid": "b18221b39fd976f18f2a3a5c3e61306a", "score": "0.58914226", "text": "protected function schedule(Schedule $schedule)\n {\n //$schedule->command('trabajador:cumpleanios')->dailyAt('14:37');\n $schedule->command('refrigeriodostarde:actualizarrefrigeriodostarde')->dailyAt('14:50');\n $schedule->command('refrigeriotresmedia:actualizarrefrigeriotresmedia')->dailyAt('16:00');\n\n $schedule->command('salidadobleturno:actualizarsalidadobleturno')->dailyAt('14:00');\n $schedule->command('refrigerionoche:actualizarrefrigerionoche')->dailyAt('23:00');\n\n }", "title": "" }, { "docid": "73d97f07169bd5416103c49cb5e50d22", "score": "0.58895737", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "460d379e6c4401880562d2397c3a426c", "score": "0.0", "text": "public function run()\n {\n if (config('admin.admin_name')) {\n $randomImage = new RandomImage();\n $imageName = $randomImage->genImage('human', 'admin');\n User::firstOrCreate(\n ['email' => config('admin.admin_email')], [\n 'name' => config('admin.admin_name'),\n 'password' => Hash::make(config('admin.admin_password')),\n 'phoneNumber' => config('admin.admin_phone_num'),\n 'dateOfBirth' => config('admin.admin_dob'),\n 'learningStyle' => config('admin.admin_learning_style'),\n 'userKind' => 'admin',\n 'image' => $imageName,\n ]\n );\n }\n }", "title": "" } ]
[ { "docid": "026cbaddf68d6d6a45da6661bc9c4127", "score": "0.79270625", "text": "public function run() {\n\n $this->call([\n CategorySeeder::class,\n ColorSeeder::class,\n SubCategorySeeder::class\n ]);\n// $products = Product::factory()->count(1000)\n// ->has(Image::factory()->count(4))\n// ->hasAttached(Size::factory()->count(3))\n// ->hasAttached(Price::factory()->count(3), [\n// 'discounted_price' => 0\n// ])\n// ->create();\n//\n// foreach($products as $product) {\n// $product->colors()->attach(Color::whereIn('id', [1, 6, 8, 14])->get());\n// }\n//\n $categories = Category::all();\n $subcategories = Subcategory::all();\n foreach($categories as $category) {\n $category->slug = Str::slug($category->name);\n $category->save();\n }\n foreach($subcategories as $subcategory) {\n $subcategory->slug = Str::slug($subcategory->name);\n $subcategory->save();\n }\n\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'customer']);\n }", "title": "" }, { "docid": "9ebafd651532d8097278ffd87e4126dd", "score": "0.7914175", "text": "public function run()\n {\n User::create([\n 'name' => 'Admin',\n 'username' => 'Admin',\n 'email' => 'admin@example.com',\n 'email_verified_at' => now(),\n 'password' => Hash::make('Admin'),\n 'isadmin' => 1,\n 'remember_token' => Str::random(10),\n ]);\n User::create([\n 'name' => 'User',\n 'username' => 'user',\n 'email' => 'user@example.com',\n 'email_verified_at' => now(),\n 'password' => Hash::make('password'),\n 'remember_token' => Str::random(10),\n ]);\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Author::factory(10)->create();\n\n $authors = Author::all();\n\n foreach ($authors as $author) {\n $booksNumber = rand(1, 10);\n\n for ($i = 0; $i < $booksNumber; $i++) {\n $book = new Book;\n $faker = Faker::create();\n $book->create([\n 'author_id' => $author->id,\n 'title' => $faker->sentence(6),\n 'year' => $faker->year(),\n 'isbn' => $faker->isbn13\n ]);\n }\n }\n }", "title": "" }, { "docid": "652f431dbbffe4e36aa5c0bfc4a05f31", "score": "0.79028475", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //factory(App\\User::class, 3)->create();\n /*factory(App\\Project::class, 20)->create();\n factory(App\\Position::class, 20)->create();*/\n DB::table('position_categories')->insert([\n 'name' => 'Architecture',\n ]);\n DB::table('position_categories')->insert([\n 'name' => 'Design',\n ]);\n DB::table('position_categories')->insert([\n 'name' => 'Economics',\n ]);\n DB::table('position_categories')->insert([\n 'name' => 'Programming',\n ]);\n DB::table('position_categories')->insert([\n 'name' => 'Network',\n ]);\n\n DB::table('users')->insert([\n 'firstname' => 'Admin',\n 'lastname' => 'Admin',\n 'type' => 'admin',\n 'activate' => '1',\n 'email' => 'admin@admin.com',\n 'password' => bcrypt('123456'),\n ]);\n DB::table('users')->insert([\n 'firstname' => 'Tomas',\n 'lastname' => 'Svetlik',\n 'type' => 'supervisor',\n 'activate' => '1',\n 'email' => 'supervisor@supervisor.com',\n 'password' => bcrypt('123456'),\n ]);\n }", "title": "" }, { "docid": "dfe583e94e177ff570601466401e1b2b", "score": "0.78664804", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = f::create();\n foreach (range(1,20) as $item) {\n DB::table('persons')->insert([\n 'firstName' => $faker->name,\n 'documentType' => \"CC\",\n 'document' => 123456,\n\t 'lastName' => $faker->lastName,\n 'company' => $faker->company,\n 'emailAddress' => $faker->email,\n 'address' => $faker->address,\n 'city' => $faker->city,\n 'province' => $faker->state,\n 'country' => $faker->countryCode,\n 'phone' =>$faker->tollFreePhoneNumber,\n 'mobile'=>$faker->e164PhoneNumber\n\t ]);\n }\n }", "title": "" }, { "docid": "f571785bdbff3ab02c615eb8fd1f1aa1", "score": "0.78613377", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Address::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Address::create([\n 'addressName' => $faker->randomLetter,\n 'addressStreet' => $faker->streetName,\n 'addressNumber' => $faker->randomNumber(1),\n 'addressZip' => $faker->postcode,\n 'addressPlace' => $faker->city,\n 'addressCountry' => $faker->country,\n 'addressState' => $faker->state,\n 'addressMailBoxNumber' => $faker->buildingNumber,\n 'addressExtraInfo' => $faker->realText($maxNbChars = 30, $indexSize = 2),\n 'loadingPresent' => $faker->boolean(50),\n 'trailerAccess' => $faker->randomLetter\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "56e4a3e209083146c894bf986fe10c2d", "score": "0.7851426", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Articulo::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articulos in our database:\n for ($i = 0; $i < 50; $i++) {\n Articulo::create([\n 'titulo' => $faker->sentence,\n 'cuerpo' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "b7a61e5a71620bfa33e1faa0f7e7a4e0", "score": "0.7838723", "text": "public function run()\n {\n $users = factory(App\\Book::class, 1000)->create();\n // $this->call(UserSeeder::class);\n// DB::table('books')->insert([\n// 'title' => Str::random(10),\n// 'author' => Str::random(10),\n// 'category' => Str::random(10),\n// 'piece' => 5,\n// ]);\n }", "title": "" }, { "docid": "5637d7e19c1ec7123232747c49238622", "score": "0.7834799", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User', 10)->create();\n factory('App\\Product')->create(['name' => 'Fanta', 'price' => 140]);\n factory('App\\Product')->create(['name' => 'Coca Cola', 'price' => 180]);\n factory('App\\Product')->create(['name' => 'Pepsi Cola', 'price' => 160, 'discount' => 20]);\n factory('App\\Product')->create(['name' => 'Sprite', 'price' => 120]);\n factory('App\\Product')->create(['name' => 'Limonade', 'price' => 200]);\n }", "title": "" }, { "docid": "b444ac88819a191047d8feec2c185e1c", "score": "0.78344816", "text": "public function run()\n {\n\n DB::table('posts')->delete();\n\n $faker = Faker::create();\n $cats_id = Category::all()->pluck('id')->toArray();\n $pers_id = Person::all()->pluck('id')->toArray();\n foreach (range(1,20) as $i) {\n DB::table('posts')->insert([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'cat_id' => $faker->randomElement($cats_id),\n 'per_id' => $faker->randomElement($pers_id)\n ]);\n }\n }", "title": "" }, { "docid": "b2d9243b0e4d2434d34d38fb01906601", "score": "0.78318644", "text": "public function run()\n {\n // User::truncate();\n // Category::truncate();\n // Donation::truncate();\n // Transacton::truncate();\n // DB::table('category_donation')->truncate();\n\n User::create([\n 'name' => 'Busola Okeowo',\n 'email' => 'busolaokemoney@gmail.com',\n 'password' => bcrypt('password'),\n 'verified' => User::VERIFIED,\n 'admin' => true,\n ]);\n\n factory(User::class, 500)->create();\n\n factory(Category::class, 10)->create();\n\n factory(Donation::class, 1000)->create()->each(\n function ($donation) {\n $categories = Category::all()->random(mt_rand(1, 3))->pluck('id');\n $donation->categories()->attach($categories);\n }\n );\n\n factory(Transacton::class, 1000)->create();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "6c432cf75a7b37364927c71d18b2a940", "score": "0.7817219", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Country::class, 10)->create();\n factory(App\\Supplier::class, 5)->create();\n factory(App\\User::class, 3)->create();\n factory(App\\Phone::class, 3)->create();\n factory(App\\Post::class, 3)->create();\n factory(App\\Comment::class, 15)->create();\n factory(App\\Role::class, 5)->create();\n factory(App\\History::class, 5)->create();\n }", "title": "" }, { "docid": "cddbf6f9d3cf8855efd49fd8690a82a9", "score": "0.78134006", "text": "public function run()\n {\n Eloquent::unguard();\n\n $faker= Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n \t$title=$faker->sentence(5);\n \t$slug=str_slug($title, \"-\");\n CatalogCategory::create([\n 'catalog_id'=>2,\n 'parent' => 0,\n 'title' => $title,\n 'content' => $faker->realText(250),\n 'meta_title' => $faker->sentence(5),\n 'meta_keywords' => $faker->sentence(10),\n 'meta_description' => $faker->realText(50),\n 'active' => 'active',\n 'language' => 'en',\n 'slug' => $slug, \n ]);\n }\n }", "title": "" }, { "docid": "e085eed193e63f3018e503b814f52203", "score": "0.7808198", "text": "public function run()\n {\n // DB::table('articles')->insert(\n // [\n\n // [\n // 'category_id' => 4,\n // 'title' => '文章4',\n // 'content' => '内容4'\n // ],\n // [\n // 'category_id' => 5,\n // 'title' => '文章5',\n // 'content' => '内容5'\n // ]\n // ]\n // );\n\n // Let's truncate our existing records to start from scratch.\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'category_id' => array_random([1, 2, 3, 4, 5, 6]),\n 'title' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'created_at' => \\Carbon\\Carbon::now()->toDateTimeString(),\n 'updated_at' => \\Carbon\\Carbon::now()->toDateTimeString()\n\n ]);\n }\n\n }", "title": "" }, { "docid": "f919a3f40e792d8990ecc3b06279bfa2", "score": "0.780527", "text": "public function run()\n {\n $db = DB::table('users');\n\n $this->faker = Faker\\Factory::create();\n\n $values ['firstName'] = 'Роман';\n $values ['lastName'] = 'Телепнёв';\n $values ['email'] = 'AbramOmovich@gmail.com';\n $values ['password'] = bcrypt('123123');\n $values ['role_id'] = 2;\n\n $db->insert($values);\n\n for($i = 0; $i < 10; $i++) {\n\n $values ['firstName'] = $this->faker->firstName;\n $values ['lastName'] = $this->faker->lastName;\n $values ['email'] = $this->faker->email;\n $values ['password'] = bcrypt('123123');\n $values ['role_id'] = 1;\n\n $db->insert($values);\n }\n }", "title": "" }, { "docid": "dafd5ed6a9dfac3846fdf76150c59c25", "score": "0.7797067", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::factory(15)->create();\n Categorie::factory(10)->create();\n Product::factory(200)->create();\n UserProduct::factory(50)->create();\n }", "title": "" }, { "docid": "c11978691651e5bb5ec8631cb4f07e6e", "score": "0.7793273", "text": "public function run()\n {\n //$this->labFacultiesSeeder();\n $this->labRolesSeeder();\n $this->labMembersSeeder();\n $this->labStudentSeeder();\n $this->labTagsTableSeeder();\n $this->labSkillsTableSeeder();\n $this->labPreferencesTableSeeder();\n $this->labPositionsTableSeeder();\n }", "title": "" }, { "docid": "b9287aff88d859492bd31ea1291e44cc", "score": "0.7793", "text": "public function run()\n {\n // Truncate existing records to start from scratch\n // Product::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // create products in DB\n for($i = 0; $i < 10; $i++) {\n // Product::create([\n // 'name' => $faker->word,\n // 'description' => $faker->realText($maxNbChars = 20, $indexSize = 1),\n // 'qty' => $faker->randomDigit\n // ]);\n }\n }", "title": "" }, { "docid": "84a5c18a5563f5fd35652bc3991e7a13", "score": "0.7788151", "text": "public function run()\n {\n // reset the students table\n DB::table('students')->truncate();\n // generate 100 dummy students data\n $students = [];\n $faker = Factory::create();\n for ($i = 1; $i <= 100; $i++) {\n $students[] = [\n 'teacher_id' => rand(1, 2),\n 'classroom_id' => rand(1, 3),\n 'first_name' => $faker->firstName,\n 'last_name' => $faker->lastName,\n 'gender' => $faker->randomElement(['M', 'F']),\n 'joined_year' => $faker->randomElement([2017, 2018, 2019])\n ];\n }\n DB::table('students')->insert($students);\n }", "title": "" }, { "docid": "11c50d315926c6e7b655ef6b05e875c4", "score": "0.778813", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => bcrypt('secret'),\n 'is_admin' => \"0\",\n 'phone' => $faker->phoneNumber,\n 'address' => $faker->address,\n 'nrc' => '9/MaKaNa(N)123456',\n 'passport' => $faker->creditCardNumber,\n 'city' => $faker->city,\n 'country' => $faker->country,\n 'is_foreigner' => $faker->numberBetween(0, 1),\n 'status' => \"1\"\n ]);\n }\n foreach (range(1, 5) as $index) {\n DB::table('room_types')->insert([\n 'type' => $faker->word,\n ]);\n }\n foreach (range(1, 100) as $index) {\n DB::table('rooms')->insert([\n 'name' => 'Room-' . $faker->numberBetween(0, 100),\n 'price' => $faker->numberBetween(1000, 5000),\n 'roomtype_id' => $faker->numberBetween(1, 5),\n 'maxPerson' => $faker->numberBetween(2, 5)\n ]);\n }\n\n }", "title": "" }, { "docid": "0d82c7815e29e8d3580735f06d9c1aaf", "score": "0.7787371", "text": "public function run()\n {\n\n \t/*DB::table('posts')->insert([\n \t\t'title'=>'Hello World Post!',\n \t\t'is_private'=>false,\n \t\t'content'=>'Primeiro Post do Blog!',\n \t\t'tag'=>'tests']);\n\t\t*/\n \t$faker = Faker\\Factory::create();\n \t\n \tfor ($i=0;$i<=50;$i++){\n \t\tDB::table('posts')->insert([\n \t\t\t'title'=>$faker->sentence(4,true),\n \t\t\t'is_private'=>$faker->numberBetween(0,1),\n \t\t\t'content'=>$faker->realText(),\n \t\t\t'tag'=>$faker->word,\n \t\t\t'created_at'=>date(\"Y-m-d H:i:s\"),\n \t\t\t'updated_at'=>date(\"Y-m-d H:i:s\"),\n\t\t\t\t'user_id'=>$faker->numberBetween(1,10),\n \t\t\t]);\n\n \t}\n }", "title": "" }, { "docid": "764ce860db37bfaef26f84398a089d37", "score": "0.77847266", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(MenuSeeder::class);\n $this->call(SubMenuSeeder::class);\n $this->call(AspirationCategorySeeder::class);\n $this->call(RoleSeeder::class);\n factory(App\\User::class, 10)->create();\n factory(App\\Aspiration::class,100)->create();\n factory(App\\Comment::class, 50)->create();\n factory(App\\Upvote::class,1000)->create();\n }", "title": "" }, { "docid": "1008c0f54658330473447dc378540eff", "score": "0.77835673", "text": "public function run()\n {\n // $this->call(\n // UsersTableSeeder::class\n // AdminTableSeeder::class\n // );\n $faker = Faker\\Factory::create();\n // users Table ..\n /*\n for ($i=0; $i < 4; $i++) { \n App\\User::create([\n 'name'=> $faker->name,\n 'email'=>$faker->unique()->email,\n 'password' => bcrypt('test'),\n 'remember_token' => str_random(10),\n ]);\n }\n */\n\n // questions Table ..\n /*\n for ($i=0; $i < 20; $i++) { \n App\\Question::create([\n 'title'=>$faker->text,\n 'a' => str_random(10),\n 'b' => str_random(10),\n 'c' => str_random(10),\n 'correct_answer'=> str_random(10),\n 'chapter'=> '2',\n 'process_group'=>'3',\n 'feedback'=>$faker->text,\n 'created_at'=>$faker->date,\n 'updated_at'=>$faker->date\n ]);\n }\n */\n }", "title": "" }, { "docid": "7a448194d3ffeafa2e4480cbd7d668c7", "score": "0.7781228", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Schema::disableForeignKeyConstraints();\n Estudiante::truncate();\n Nota::truncate();\n\n factory(Estudiante::class, 1000)->create();\n factory(Nota::class, 10000)->create();\n\n }", "title": "" }, { "docid": "0f84f24f66f5b72c344f056d5c4ac2be", "score": "0.7779334", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call([\n //Zbog relacija moramo prvo napraviti seed tablica na koje se oslanjaju relacije. Koristimo reference. \n CategoryTableSeeder::class,\n MealsTableSeeder::class, \n IngredientsTableSeeder::class, \n TagsTableSeeder::class,\n LanguagesTableSeeder::class,\n\n CategoryTranslationSeeder::class,\n IngredientsTranslationSeeder::class,\n MealsTranslationSeeder::class,\n TagsTranslationSeeder::class,\n\n IngredientsMealsSeeder::class,\n TagsMealsSeeder::class,\n ]);\n }", "title": "" }, { "docid": "3367ba7c5de754802d54125c0434d35b", "score": "0.77788985", "text": "public function run()\n {\n // $this->call(DatabaseSeeder::class);\n\n $users = factory(App\\User::class)->times(20)->create();\n \t\t\t$products = factory(App\\Product::class)->times(40)->create();\n \t\t\t$categories = factory(App\\Category::class)->times(5)->create();\n $projects = factory(App\\Project::class)->times(5)->create();\n $organizations = factory(App\\Organization::class)->times(4)->create();\n\n foreach ($products as $oneProduct) {\n \t\t\t\t$oneProduct->user()->associate($users->random(1)->first()->id);\n \t\t\t\t$oneProduct->category()->associate($categories->random(1)->first()->id);\n $oneProduct->project()->associate($projects->random(1)->first()->id);\n \t\t\t\t$oneProduct->save();\n }\n foreach ($projects as $oneProject) {\n \t\t\t\t$oneProject->Organization()->associate($organizations->random(1)->first()->id);\n \t\t\t\t$oneProject->save();\n }\n foreach ($organizations as $oneONG) {\n $oneONG->user()->associate($users->random(1)->first()->id);\n \t\t\t\t$oneONG->save();\n }\n foreach ($organizations as $oneONG) {\n $user = $oneONG->User->id;\n $ElUser = User::find($user);\n $ElUser->organization()->associate($oneONG->id);\n // $ElUser->organization_id = $oneONG->id;\n $ElUser->save();\n }\n }", "title": "" }, { "docid": "73d68c75e35031be9ad04679b3f01bbb", "score": "0.7776164", "text": "public function run()\n {\n // $faker init\n $faker = Factory::create();\n\n // Disable foreign key\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n // truncate users table and start fresh\n DB::table('users')->truncate();\n // Insert three users\n DB::table('users')->insert([\n [\n 'name' => 'Fares Kato',\n 'email' => 'fareskato@gmail.com',\n 'password' => bcrypt('password'),\n 'bio' => $faker->text(rand(200, 300)),\n ],\n [\n 'name' => 'Jhon Doe',\n 'email' => 'jhondoe@gmail.com',\n 'password' => bcrypt('password'),\n 'bio' => $faker->text(rand(200, 300)),\n ],\n [\n 'name' => 'Jane Doe',\n 'email' => 'janedoe@gmail.com',\n 'password' => bcrypt('password'),\n 'bio' => $faker->text(rand(200, 300)),\n ],\n\n ]);\n }", "title": "" }, { "docid": "9ccf154b9532504223396f096629de84", "score": "0.77724695", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 1)->create();\n factory(Business::class, 10)->create();\n factory(Category::class, 10)->create();\n }", "title": "" }, { "docid": "a876d481bffb816b3f928cdd2f048955", "score": "0.77708864", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n // User::factory(10)->create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate(); // bila tidak ingin menyimpan data tabel user saat generate seed\n DB::table('posts')->truncate(); // bila tidak ingin menyimpan data tabel post saat generate seed\n DB::table('authors')->truncate();\n\n User::factory(10)->create()->each(function($user){\n $user->posts()->save(Post::factory()->make());\n });\n }", "title": "" }, { "docid": "cb0cb2bf6e95ebc39e97de57dc88be67", "score": "0.77682835", "text": "public function run()\n {\n $faker = Faker::create();\n\n $data = array();\n foreach (range(1, 30) as $index)\n {\n $data[] = [\n 'title' => $faker->unique()->realText(40, 3),\n 'summary' => $faker->realText(300, 3),\n 'content' => '<p>'. $faker->realText(500, 3) .'</p>',\n 'is_hidden' => mt_rand(0, 1),\n 'read_num' => mt_rand(10, 1000),\n 'published_at' => $faker->dateTimeBetween('- 1 months', '+ 1 months'),\n 'created_at' => $faker->dateTimeBetween('- 1 months', '+ 1 months'),\n 'updated_at' => $faker->dateTimeBetween('- 1 months', '+ 1 months')\n ];\n }\n DB::table('articles')->insert($data);\n }", "title": "" }, { "docid": "2d7708bdf4209a991289a027ee4a826a", "score": "0.7767735", "text": "public function run()\n {\n // a way of seeding using set rather than random entries\n// Category::create([\n// 'slug' => 'personal',\n// 'name' => 'Personal'\n// ]);\n User::truncate();\n Category::truncate();\n Post::truncate();\n Comment::truncate();\n\n User::factory(2)->create();\n\n// User::factory(2)->create([\n// 'name' => 'Gay Lord'\n// ]);\n\n Category::factory(4)->create();\n Post::factory(10)->create();\n Comment::factory(30)->create();\n }", "title": "" }, { "docid": "e035961a57b8995e91904afa3ddca96a", "score": "0.77625465", "text": "public function run()\n {\n /*$this->call(RoleTableSeeder::class);\n $this->call(UsersTableSeeder::class);*/\n\n //factory(Category::class, 182)->create();\n factory(Tag::class, 182)->create();\n }", "title": "" }, { "docid": "ba2b70724958ce50610fe0a518ac2278", "score": "0.77595687", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n \\App\\User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n $password = Hash::make('toptal');\n\n \\App\\User::create([\n 'name' => 'Administrator',\n 'email' => 'admin@test.com',\n 'password' => $password,\n ]);\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n \\App\\User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => $password,\n ]);\n }\n }", "title": "" }, { "docid": "d98bd94d2928528bf0080703ee7ddf4e", "score": "0.77595174", "text": "public function run()\n {\n DB::table('users')->insert([\n \t'name'=> 'Andrius',\n \t'surname'=> 'Kamarauskas',\n \t'phone'=> '37064103803',\n \t'city'=> 'Vilnius',\n \t'car'=> 'Mercedes-Benz',\n \t'car_year'=> 2017,\n \t'email'=> 'andkamarauskas@gmail.com',\n \t'password'=> bcrypt('inzinierius'),\n 'status' => 'admin',\n \t'rating' => 8.8\n ]);\n\n $faker = Faker::create();\n \tforeach (range(1,50) as $index) {\n\t DB::table('users')->insert([\n\t 'name' => $faker->firstNameMale,\n\t 'surname' => $faker->lastName,\n\t 'phone' => rand(37061546100,37069546100),\n\t 'city' => $faker->city,\n\t 'car' => $faker->company,\n\t 'car_year' => rand(1980,2017),\n\t 'email' => $faker->email,\n\t 'password' => bcrypt('inzinierius'),\n\t 'rating' => rand(55, 99) / 10,\n\t ]);\n\t }\n }", "title": "" }, { "docid": "b1559fc256ac5c4b5c1045c0f0e8a8a4", "score": "0.7757995", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n\n \\App\\Models\\User::factory(500)->create();\n \\App\\Models\\Producto::factory(600)->create();\n \\App\\Models\\Pregunta::factory(1601)->create();\n \\App\\Models\\Comentario::factory(1514)->create();\n \\App\\Models\\Follower::factory(5000)->create();\n \\App\\Models\\Respuesta::factory(3401)->create();\n }", "title": "" }, { "docid": "acd8c5aa6a40c4d8772af72a60c15231", "score": "0.77574354", "text": "public function run()\n {\n \t$this->call(PersonSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(PostSeeder::class);\n /*--Con esto creo 10 usuarios y 3 posteos--\n factory(\\App\\User::class, 10)->create()->each(function ($user) {\n $user->posts()->saveMany(factory(\\App\\Post::class, 3)->make());\n });*/\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "aca60e38bfce5fae0fb865e4ccea4601", "score": "0.77563274", "text": "public function run()\n {\n \\App\\Models\\User::factory(1)->create();\n\n $authors = \\App\\Models\\Author::factory(8)->create();\n $categories = \\App\\Models\\Category::factory(5)->create();\n \n $books = \\App\\Models\\Book::factory(22)->create();\n\n $books->each(function(\\App\\Models\\Book $bk) use($authors) {\n $bk->authors()->attach(\n $authors->random(rand(1, 2))->pluck('id')->toArray()\n );\n });\n\n $books->each(function(\\App\\Models\\Book $bk) use($categories) {\n $bk->categories()->attach(\n $categories->random(rand(1, 2))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "d29f10984b7a9a2b2a29680ef7f29b48", "score": "0.775588", "text": "public function run()\n {\n DB::table('books')->delete();\n\n Book::create(array(\n 'title' => 'First Title',\n 'isbn' => \"4675455555555557\",\n 'price'=> '12.10',\n 'cover' => 'a.jpg',\n 'author_id' => 1\n ));\n\n Book::create(array(\n 'title' => 'Second Title',\n 'isbn' => \"555555557\",\n 'price'=> '16.10',\n 'cover' => 'b.jpg',\n 'author_id' => 2\n ));\n\n Book::create(array(\n 'title' => 'Third Title',\n 'isbn' => \"46754555\",\n 'price'=> '10.10',\n 'cover' => 'c.jpg',\n 'author_id' => 3\n ));\n }", "title": "" }, { "docid": "0c2ded42e9d0c10f029db7e3ed4b12d8", "score": "0.77556497", "text": "public function run()\n {\n Collaborator::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Collaborator::create([\n 'Sector' => 'Administractive',\n 'full_name' => $faker->name,\n 'birth_date' => $faker->date('Y-m-d'),\n 'salary' => mt_rand(1500, 2000),\n 'status' => true,\n ]);\n }\n }", "title": "" }, { "docid": "00db072ab00cec4bd1725e29a0bb3cb7", "score": "0.7751737", "text": "public function run()\n {\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'username' => 'admin',\n 'email' => 'phpritesh@gmail.com',\n 'password' => bcrypt('123456'),\n 'remember_token' => null,\n ]\n );\n\n UserRole::create(\n [\n 'user_id' => $user->id,\n 'role_id' => AppHelper::USER_SUPERADMIN\n ]\n );\n\n }", "title": "" }, { "docid": "064f1e23710aabe50f7131210d3ee5a4", "score": "0.77514464", "text": "public function run()\n {\n \n factory(App\\Type::class, 80)->create(); \n factory(App\\Photo::class, 80)->create();\n factory(App\\Contenu::class, 40)->create(); \n $this->call(menuTableSeeder::class);\n $this->call(UserTableSeeder::class); \n $this->call(UserMenuTableSeeder::class);\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('contenus')->insert([\n 'titre'=> 'voici titre ' . $j ,\n 'prix'=> rand(1, 400),\n 'menu_id' => rand(1, 14),\n 'type_id' => $j,\n 'photo_id' => $j,\n ]);\n }\n }\n \n }", "title": "" }, { "docid": "1f0a50fa2842591d8fbae9ae56978f0b", "score": "0.7750377", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $this->call(RolesTableSeeder::class);\n\n // $faker = Faker::create('id_ID');\n\n // for ($i=0; $i < 10 ; $i++) { \n // DB::table('coba2')\n // ->insert([\n // 'nama'=>$faker->name\n // ]);\n // }\n }", "title": "" }, { "docid": "4958ed0abf866906c5d7a7246225bf5b", "score": "0.77496284", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n // $this->call(ProductoTableSeeder::class);\n factory('App\\Producto', 5)->create();\n factory('App\\Proveedor', 5)->create();\n factory('App\\Client', 5)->create();\n factory('App\\Mascota', 5)->create();\n }", "title": "" }, { "docid": "24b9c38dd60797bf8156ad42fe9fa447", "score": "0.7745141", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory( \\App\\User::class , 100 )->create();\n factory(\\App\\Post::class, 1500)->create();\n factory(\\App\\Category::class, 10)->create();\n factory(\\App\\Image::class, 1500)->create();\n factory(\\App\\Comment::class, 2500)->create();\n factory(\\App\\Bid::class, 1500)->create();\n factory(\\App\\Report::class, 15)->create();\n\n }", "title": "" }, { "docid": "c493764ad5b414fc41be06adcd91283d", "score": "0.7744368", "text": "public function run()\n {\n $this->call(CategorySeeder::class);\n factory(\\App\\Models\\User::class,1)->create();\n factory(\\App\\Models\\Announcement::class,15)->create();\n\n }", "title": "" }, { "docid": "756e1e45f695ea39ad39e056034c1896", "score": "0.77388614", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class, 5)->create();\n factory(Terms::class, 3)->create();\n factory(Levels::class, 4)->create();\n factory(ClassType::class, 5)->create();\n factory(Classes::class, 6)->create();\n factory(Subject::class, 10)->create();\n }", "title": "" }, { "docid": "c01585794619650e65c31c6fc9573d03", "score": "0.77383953", "text": "public function run()\n {\n factory(User::class, 10)->create();\n\n factory(Post::class, 20)->create();\n\n factory(Comment::class, 20)->create();\n //\n // $this->call(CategoriesTableSeeder::class);\n // $this->call(BooksTableSeeder::class);\n }", "title": "" }, { "docid": "b43ea34f0172c41cb99daf105ded89cf", "score": "0.77383405", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n DB::table('empresa')\n ->insert([\n 'rif' => 'V123456789',\n 'razon_social' => 'Empresa de prueba, C.A',\n 'direccion' => 'Carupano',\n 'dias_utilidades' => 30,\n 'estatus' => 'activa'\n ]);\n\n DB::table('asignaciones')\n ->insert([\n 'he_diurnas' => 1.5,\n 'he_nocturnas' => 1.8,\n 'feriados' => 1.5,\n 'desde' => '01-01-2019',\n 'estatus' => 'activa'\n ]);\n\n DB::table('deducciones')\n ->insert([\n 'ivss' => 4,\n 'faov' => 1,\n 'paro_forzoso' => 0.5,\n 'desde' => '01-01-2019',\n 'estatus' => 'activa'\n ]);\n\n DB::table('cesta_ticket')\n ->insert([\n 'cantidad' => '1800',\n 'desde' => '01-01-2019',\n 'estatus' => 'activa'\n ]);\n\n DB::table('salario_minimo')\n ->insert([\n 'monto' => 18000,\n 'tipo' => 'mensual',\n 'desde' => '01-01-2019',\n 'estatus' => 'activo'\n ]);\n }", "title": "" }, { "docid": "d5c75e93f0f8e33ad3dafaae89c3f7a2", "score": "0.7737602", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n (new Train())->truncate();\n (new Schedule())->truncate();\n (new Country())->truncate();\n\n $trainData = [\n 'train_number' => '1'\n ];\n\n $scheduleData = [\n 'time_departure' => '12:00',\n 'time_arrival' => '14:00',\n 'id_train' => '1'\n ];\n\n $countryData = [\n 'country' => 'Dnepr'\n ];\n\n $train = App\\Train::create($trainData);\n\n $schedule = App\\Schedule::create($scheduleData);\n\n $country = App\\Country::create($countryData);\n }", "title": "" }, { "docid": "de69c5c7f3e24fa429ea61201ee8058d", "score": "0.7736333", "text": "public function run()\n {\n // Create a faker instance\n $faker = Faker::create();\n\n // For covering the users, we get the count from user model.\n // So that way the foreign key user_id won't give us any problems.\n\n Category::create(\n [\n 'name'=>'Abogado',\n 'description'=>'Todo lo relacionado a la ley',\n 'role_id'=>0,\n 'role'=>0\n\n ]\n );\n\n for ($i=0; $i < 40; $i++) {\n Category::create(\n [\n 'name'=>$faker->text(45),\n 'description'=>$faker->text(500),\n\t\t\t\t\t'role_id'=>0,\n\t\t\t\t\t'role'=>0\n\n ]\n );\n }\n }", "title": "" }, { "docid": "8a376d33104830ce6aa1e08f1eccb298", "score": "0.7736265", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'username' => \"Alice\",\n 'role'=>\"student\",\n 'user_session'=>0,\n ]);\n\n DB::table('users')->insert([\n 'username' => \"Bob\",\n 'role'=>\"student\",\n 'user_session'=>0,\n ]);\n\n DB::table('users')->insert([\n 'username' => \"Professor\",\n 'role'=>\"lecturer\",\n 'user_session'=>0,\n ]);\n\n\n }", "title": "" }, { "docid": "3ac6186a7420c809b274788c1c9f0c6c", "score": "0.77233964", "text": "public function run()\n {\n \tSchema::disableForeignKeyConstraints();\n \tAd::truncate();\n \tSchema::enableForeignKeyConstraints();\n \t$faker = Faker::create();\n for ($i=0; $i < env('SEEDER_ITEM_LIMT'); $i++) { \n \t$title = \"My Test Advert - \".$i;\n \t$title = $title.\"-\".$i;\n \t$slug = \\Str::slug($title, '-');\n\t \tAd::insert([\n\t 'title' => $title,\n\t 'slugurl' => $slug,\n\t 'price' => mt_rand(10, 500),\n\t 'contactnumber' => mt_rand(12, 12),\n\t 'email' => \\Str::random(10, 20).$i.'@mail.com',\n\t 'description' => \"Grab this Christmas special before prices go up!\",\n\t 'category_id' => mt_rand(1,4),\n\t 'currency_id' => mt_rand(1,2),\n\t 'created_at' => \\Carbon\\Carbon::now(),\n\t ]);\n \t}\n }", "title": "" }, { "docid": "f3fac8bb5058ea57eef4e10aa6eee1b8", "score": "0.77152103", "text": "public function run()\n {\n $faker = Faker\\Factory::create('uk_UA');\n\n Doctor::create([\n 'user_id' => 1,\n 'biography' => $faker->text(self::MAX_NB_CHARS),\n 'work_experience' => 5,\n 'is_active' => true,\n ]);\n\n Doctor::create([\n 'user_id' => 2,\n 'biography' => $faker->text(self::MAX_NB_CHARS),\n 'work_experience' => 3,\n 'is_active' => true,\n ]);\n }", "title": "" }, { "docid": "969c4dd5fd7ea0964ba7c8d0fe24bf29", "score": "0.77092785", "text": "public function run()\n {\n factory(\\App\\Models\\Category::class, 50)->create();\n factory(\\App\\Models\\Tag::class, 50)->create();\n\n \\Illuminate\\Support\\Facades\\DB::table('roles')->insert(['name'=>'administrator']);\n \\Illuminate\\Support\\Facades\\DB::table('roles')->insert(['name'=>'user']);\n\n factory(\\App\\Models\\User::class, 50)->create()->each(function($u){\n $team = factory(\\App\\Models\\Team::class)->make();\n $u->own_team()->save($team);\n $u->teams()->save($team);\n $u->roles()->attach(\\App\\Models\\Role::all()->random()->id);\n $u->profile()->save(factory(\\App\\Models\\Profile::class)->make());\n $u->projects()->saveMany(factory(\\App\\Models\\Project::class, rand(3,10))->make())->each(function($p){\n $p->users()->attach(\\App\\Models\\User::all()->random()->id);\n $p->categories()->attach(\\App\\Models\\Category::all()->random()->id);\n $p->tags()->attach(\\App\\Models\\Tag::all()->random()->id);\n });\n $u->clients()->saveMany(factory(\\App\\Models\\Client::class,50)->make());\n });\n }", "title": "" }, { "docid": "045f6aee16de66fd4cb5b31782c1124f", "score": "0.7708508", "text": "public function run()\n {\n Model::unguard();\n // $this->call('UsersTableSeeder');\n factory('App\\PageType', 2)->create();\n factory('App\\OrderStatus', 5)->create();\n factory('App\\Category', 10)->create();\n factory('App\\CompensationPlan', 5)->create();\n factory('App\\Field', 30)->create();\n factory('App\\FindingLine', 30)->create();\n factory('App\\Heading', 200)->create();\n factory('App\\LocalForeign', 5)->create();\n factory('App\\AdType', 30)->create();\n factory('App\\PayPlan', 10)->create();\n factory('App\\PrimaryBook', 50)->create();\n factory('App\\SalesRep', 20)->create();\n factory('App\\SourceBook', 250)->create();\n factory('App\\Udac', 250)->create();\n factory('App\\Customer', 500)->create();\n factory('App\\Order', 500)->create();\n factory('App\\OrderLine', 2000)->create();\n Model::reguard();\n }", "title": "" }, { "docid": "b9ff2268495aff5817159bd76ba8023c", "score": "0.7705018", "text": "public function run()\n {\n //adds the category lists\n $this->call(CategorySeeder::class);\n\n //adds 15 companies (entidades) for testing\n factory(\\App\\Company::class, 15)->create();\n\n //adds 3 accounts for testing\n factory(\\App\\Account::class, 3)->create();\n\n //adds 50 transactions for testing\n factory(\\App\\Transaction::class, 100)->create();\n }", "title": "" }, { "docid": "749d8b2282722f907beee85a97ad43ae", "score": "0.7703396", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n $user = factory(User::class)->create([\n 'name' => 'Amitav Office',\n 'email' => 'amitav.roy@focalworks.in',\n 'password' => bcrypt('password'),\n 'active' => 1,\n ]);\n\n $this->createComments($user->id, 10);\n\n $user = factory(User::class)->create([\n 'name' => 'Amitav Personal',\n 'email' => 'amitavroy@gmail.com',\n 'password' => bcrypt('password'),\n 'active' => 1,\n ]);\n\n $this->createComments($user->id, 4);\n }", "title": "" }, { "docid": "f562a75a25e951d5d5b616b128f2a23d", "score": "0.77031195", "text": "public function run()\n { \n \n // $this->call(UsersTableSeeder::class);\n\n // temporarily disables mass assignment protection for our tables, needed to seed from .sql files.\n \tEloquent::unguard();\n\n \t// seed the locations table\n \t$locations_path = 'sql/locations.sql';\n \tDB::unprepared(file_get_contents($locations_path));\n $this->command->info('Locations table seeded!');\n\n // seed the happy_hours table\n $happy_hours_path = 'sql/happy_hours.sql';\n DB::unprepared(file_get_contents($happy_hours_path));\n $this->command->info('Happy Hours table seeded!');\n\n // seed the roles table.\n $roles_path = 'sql/roles.sql';\n DB::unprepared(file_get_contents($roles_path));\n $this->command->info('Roles table seeded!');\n }", "title": "" }, { "docid": "11f6e7c2dabe7122d9342081e225136f", "score": "0.7699845", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(CategoriaSeeder::class);\n $this->call(InvitadoSeeder::class);\n $this->call(RegaloSeeder::class);\n $this->call(UserSeeder::class);\n Evento::factory(50)->create();\n $this->call(RegistroSeeder::class);\n }", "title": "" }, { "docid": "7ccfa8092296c64ec8e74b65a7ffadc8", "score": "0.7695215", "text": "public function run()\n {\n DB::table('users')->truncate();\n DB::table('suppliers')->truncate();\n DB::table('categories')->truncate();\n DB::table('vendors')->truncate();\n DB::table('products')->truncate();\n\n // $this->call(UsersTableSeeder::class);\n factory(Supplier::class, 50)->create();\n factory(Category::class, 20)->create();\n factory(User::class, 50)->create();\n factory(Vendor::class, 50)->create()->each(static function($v) {\n $v->products()->saveMany(factory(Product::class, rand(1,10))->make());\n });\n }", "title": "" }, { "docid": "acca81c2cdc382edc11610c07dd17bdb", "score": "0.7694645", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n \n\n\n DB::table('categories')->truncate(); \n DB::table('categories')->insert(\n ['name' => 'Clothing'],\n );\n DB::table('categories')->insert(\n ['name' => 'Footwear'],\n );\n DB::table('categories')->insert(\n ['name' => 'Beauty'],\n );\n DB::table('categories')->insert(\n ['name' => 'Cars'],\n );\n DB::table('categories')->insert(\n ['name' => 'Mobile technology'],\n );\n DB::table('categories')->insert(\n ['name' => 'Animals'],\n );\n DB::table('categories')->insert(\n ['name' => 'Sports'],\n ); \n DB::table('categories')->insert(\n ['name' => 'Technology'],\n ); \n DB::table('categories')->insert(\n ['name' => 'Specify'],\n );\n\n\n \n \t \n }", "title": "" }, { "docid": "0d3fa3d1d24b4594f3e479d62e2be438", "score": "0.76877815", "text": "public function run()\n {\n //Static seed for Categories table\n\n Category::create(\n [\n 'name' => 'Controllo Access',\n 'description' => 'Sistemi di controlo accessi integrati'\n ]);\n Category::create(\n [\n 'name' => 'TVCC',\n 'description' => 'Realizzaione sistemi di TVCC'\n ]);\n Category::create(\n [\n 'name' => 'Fornitura e configurazione',\n 'description' => 'Fornitura di apparati configurati'\n ]);\n Category::create(\n [\n 'name' => 'Consulenza',\n 'description' => 'Consulenza Tecnica'\n ]);\n }", "title": "" }, { "docid": "b87cc0dffbf57617ce6dfdb861f468e0", "score": "0.7686323", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //Desativo as Foregn Keys\n DB::statement('SET FOREIGN_KEY_CHECKS = 0;');\n\n //Executo as factories\n dump(factory(\"App\\\\Models\\\\Aluguel\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Ator\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Categorium\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Cidade\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Cliente\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Endereco\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Filme\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\FilmeAtor\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\FilmeCategorium\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\FilmeTexto\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Funcionario\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Idioma\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Inventario\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Loja\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Pagamento\", 2)->create()->toJson());\n dump(factory(\"App\\\\Models\\\\Pai\", 2)->create()->toJson());\n\n //Ativo as Foregn Keys\n DB::statement('SET FOREIGN_KEY_CHECKS = 1;');\n }", "title": "" }, { "docid": "ad87f4a74146c171f1e42a1d771bd24e", "score": "0.76850647", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\ProductCategory::class, 10)->create();\n factory(App\\ProductSize::class, 10)->create();\n factory(App\\ProductColor::class, 10)->create();\n factory(App\\Product::class, 50)->create()->each(function($product) {\n $product->images()->saveMany(factory(App\\ProductImage::class, 5)->make());\n });\n }", "title": "" }, { "docid": "068a939918fda33f9082cfedcea0988f", "score": "0.7684781", "text": "public function run()\n {\n $faker = app(Faker\\Generator::class);\n\n $models = factory(Model::class )->times(self::GENERATE_NUMBER)->make()->each(function ($model){\n $model->mmid = generate_mmid();\n $model->price = rand(1000 , 9999) / 100;\n $model->download = rand(10 , 999);\n $model->fav = rand(10 , 999);\n $model->view = rand(10 , 999);\n $model->polygons = rand(10 , 999);\n $model->vertices = rand(10 , 999);\n $model->textures = mt_rand(1,2);\n $model->materials = mt_rand(1,2);\n $model->rigged = mt_rand(1,2);\n $model->animated = mt_rand(1,2);\n $model->printable_ready_3d = mt_rand(1,2);\n $model->game_ready = mt_rand(1,2);\n $model->uv_mapped = mt_rand(1,2);\n $model->created_at = \\Carbon\\Carbon::now();\n $model->updated_at = \\Carbon\\Carbon::now();\n\n });\n\n Model::insert($models->toArray());\n }", "title": "" }, { "docid": "bdf30ecf76a15345de09c1ece359c2df", "score": "0.76804036", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Desigination::class, 5)->create();\n factory(Department::class, 5)->create();\n factory(User::class, 10)->create();\n }", "title": "" }, { "docid": "b31fbf2926f8429938cfe290400a6c2f", "score": "0.7674838", "text": "public function run()\n {\n\n Storage::deleteDirectory('menu');\n Storage::makeDirectory('menu');\n\n Category::factory(5)->create();\n $this->call(UserSeeder::class);\n Client::factory(10)->create();\n Role::factory(8)->create();\n State::factory(9)->create();\n $this->call(MenuSeeder::class);\n $this->call(OrderSeeder::class);\n }", "title": "" }, { "docid": "07ea31818e19b1faf98dd1b38d81ebcb", "score": "0.7672805", "text": "public function run()\n {\n Candidate::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Candidate::create([\n 'firstName' => $faker->firstName,\n 'lastName' => $faker->lastName,\n 'phone' => $faker->phoneNumber,\n 'email'=> $faker->email,\n 'linkCv' => $faker->url,\n 'origin' => rand(1,3),\n 'position'=> rand(1,3),\n 'status'=> rand(0,1),\n ]);\n }\n }", "title": "" }, { "docid": "6b5f957c69605b7e58e0f80311a997a8", "score": "0.7667893", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n $animals = [];\n for ($i = 0; $i < 20; $i++) {\n $animals[] = [\n 'name' => $faker->firstName,\n 'species' => $faker->randomElement($array = array (1, 2)),\n 'breed' => $faker->lastName,\n 'sex' => $faker->randomElement($array = array (1, 2)),\n 'age' => $faker->randomNumber(2),\n 'notes' => $faker->sentence,\n 'contacts' => $faker->phoneNumber,\n 'main_foto' => $faker->imageUrl(500, 500, 'cats'),\n 'published' => 1,\n ];\n }\n DB::table('animals')->insert($animals);\n }", "title": "" }, { "docid": "7c9bdd789d5f65269e40b2e2f526a8ab", "score": "0.7663764", "text": "public function run()\n {\n // $this->call(RolesAndPermissionsSeeder::class);\n // factory(App\\Model\\Place::class, 15)->create();\n // factory(App\\Model\\Scenic_Culture::class, 30)->create();\n // factory(App\\Model\\Promotion::class, 20)->create();\n // factory(App\\Model\\TourGuider::class, 30)->create();\n // factory(App\\Model\\Schedule::class, 5)->create();\n // factory(App\\Model\\Review::class, 30)->create();\n factory(App\\Model\\News::class, 15)->create();\n // factory(App\\Model\\Tour::class, 15)->create();\n\n }", "title": "" }, { "docid": "1a1406408dd87b056312265f6b8605cc", "score": "0.7663735", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //\n\n// factory(App\\User::class, 80)->create();\n factory(App\\Client::class, 5)->create();\n factory(App\\Contact::class, 20)->create()->each(function ($contact) {\n App\\Client::all()->random()->contacts()->attach($contact);\n });\n factory(App\\Task::class, 5)->create();\n factory(App\\BillablePurchaseOrder::class, 20)->create();\n factory(App\\NonBillablePurchaseOrder::class, 20)->create();\n // factory(App\\Category::class, 8)->create();\n // factory(App\\Dispatch::class, 500)->create();\n // factory(App\\Item::class, 1000)->create()->each(function ($item) {\n // App\\Dispatch::dispatch()->get()->random()->items()->attach($item);\n // });\n }", "title": "" }, { "docid": "dafd840dc1f11c0cbdd36e194644c7a8", "score": "0.7662661", "text": "public function run()\n {\n //$this->call('UsersTableSeeder');\n $faker = Faker\\Factory::create();\n\n for( $i = 0; $i < 10; $i++ ) {\n \tDB::table('books')->insert([\n\t 'title' => $faker->title,\n\t 'author' => $faker->name,\n\t 'isbn' => $faker->isbn10,\n\t ]);\n }\n }", "title": "" }, { "docid": "831749eecbd9350d2739ac1b2536d247", "score": "0.76618975", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Blog::truncate();\n Category::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $categories = ['Pendidikan','Pengetahuan', 'Sosial','Umum'];\n foreach($categories as $cat){\n Category::create(['name'=>$cat]);\n }\n\n $faker = Faker::create('id_ID');\n $category_id = Category::all()->pluck('id');\n $user_id = User::all()->pluck('id');\n for($i=0;$i<15;$i++){\n Blog::create([\n 'category_id'=>$category_id->random(),\n 'title'=>$faker->sentence(10),\n 'banner'=>'banner'.rand(1,5).'.png',\n 'content'=>implode('<br><br>',$faker->paragraphs),\n 'user_id'=>$user_id->random(),\n 'status'=>'accepted'\n ]);\n }\n }", "title": "" }, { "docid": "0969356d2e9fdf8b6e6080a629d07215", "score": "0.7657977", "text": "public function run()\n {\n $this->call([\n RolesSeeder::class,\n CategoriesSeeder::class,\n FilesSeeder::class\n ]);\n Country::factory()->count(10)->create();\n User::factory()->count(10)->create();\n Category::factory()->count(20)->create();\n Product::factory()->hasAttached(File::factory()->count(5)->create(),[], 'images')->count(30)->create();\n Order::factory()->has(Product::factory()->count(2))->count(20)->create();\n Newsletter::factory()->count(12)->create();\n Promotion::factory()->has(Product::factory()->count(2));\n }", "title": "" }, { "docid": "6a627f470c7a9c5cbcb294efa94e3dbe", "score": "0.76559", "text": "public function run()\n {\n //factory(App\\Book::class, 200)->create();\n $faker = Faker::create();\n \n foreach(range(1, 200) as $x)\n {\n \t$book = Book::create([\n \t\t'name' => $faker->name,\n \t\t'author' => $faker->name,\n \t\t'publishedDate' => $faker->date,\n \t]);\n\n \tforeach(range(1, mt_rand(2, 4)) as $y)\n \t{\n \t\t$book->categories()->attach(Category::all()->random()->id);\n \t}\n }\n }", "title": "" }, { "docid": "05177be6524fe4d70cf88eb80b07f0f9", "score": "0.76558113", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionTableSeeder::class);\n \n $this->call(CreateAdminUserSeeder::class);\n\n \n factory(App\\User::class,1)->create();\n factory(App\\Models\\Category::class,1)->create();\n factory(App\\Models\\Brand::class,1)->create();\n factory(App\\Models\\Subcategory::class,1)->create();\n factory(App\\Models\\Product::class,10)->create();\n factory(App\\Models\\Color::class,1)->create();\n factory(App\\Models\\Size::class,1)->create();\n }", "title": "" }, { "docid": "b07e760db9234bd6822f6d81a39f753f", "score": "0.76546866", "text": "public function run()\n {\n $this->seeds([\n KlasifikasiPenyakit::class => ['master/penyakit/klasifikasi_penyakit.csv', 22],\n KelompokPenyakit::class => ['master/penyakit/kelompok_penyakit.csv', 537],\n Penyakit::class => ['master/penyakit/penyakit.csv', 13309],\n ]);\n }", "title": "" }, { "docid": "7faf74d1087f03f60414bc0fbbc49004", "score": "0.76546746", "text": "public function run()\n {\n //\n\n// Students::truncate();\n\n // Initialize the Faker package. We can use several different locales for it, so\n // let's use the german locale to play with it.\n $faker = \\Faker\\Factory::create('de_DE');\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Students::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'registration_number' => $faker->numberBetween(0, 99999),\n 'starting_course' => ( $faker->numberBetween(0, 1) == 0 ) ? 'MPP' : 'FPP'\n ]);\n }\n }", "title": "" }, { "docid": "9a0aab2ba333b8672b30964e15cc6493", "score": "0.76514786", "text": "public function run()\n {\n //使用DB方式\n /*DB::table('users')->insert([\n 'name' => str_random(10),\n 'email' => str_random(10).'@gmail.com',\n 'password' => bcrypt('secret'),\n ]);*/\n\n //使用模型工厂\n /*factory(App\\Model\\Role::class, 50)->create()->each(function ($u) {\n $u->posts()->save(factory(App\\Post::class)->make()); //模型关联插入\n });*/\n\n factory(App\\Model\\Role::class, 5)->create();\n //执行命令 php artisan db:seed --class=RolesSeeder\n }", "title": "" }, { "docid": "05857a6ff127b2c1e1f9f0bcb8aa242c", "score": "0.76498", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n ['name' => 'admin',\n 'email' => 'admin@admin.com',\n 'password' => 'admin'],\n ['name' => 'youke',\n 'email' => 'youke@admin.com',\n 'password' => 'youke'],\n ]);\n\n DB::table('menus')->insert([\n ['name'=>'skill','url'=>'/admin'],\n ['name'=>'portfolio','url'=>'/admin'],\n ['name'=>'education','url'=>'/admin'],\n ['name'=>'work','url'=>'/admin'],\n ['name'=>'菜单列表','url'=>'/admin/menu/index'],\n ]);\n }", "title": "" }, { "docid": "e4f4934df5701d0ca97044ef7d5c2079", "score": "0.7649058", "text": "public function run()\n {\n // clear our database ------------------------------------------\n DB::table('users')->delete();\n \n\n $first_user = User::create(array(\n 'name' => 'Muhammad Nauman',\n 'email' => 'mhmmd.nauman@gmail.com',\n 'password' => bcrypt('12345678'),\n ));\n\n \n \n $this->command->info('Users are seeded!');\n \n // now seed the departments\n DB::table('department')->delete();\n \n\n $first_dpt = Department::create(array(\n 'department_name' => 'Computer Science',\n 'contact' => '0313',\n 'status' => 'Active',\n 'hod_id' => $first_user->id,\n 'entered_id' => $first_user->id,\n ));\n \n $this->command->info('Department are seeded!');\n \n // now seed the programs\n DB::table('programs_offered')->delete();\n \n\n $first_program = ProgramOffered::create(array(\n 'program_name' => 'BSCS',\n 'duration' => '4',\n 'code' =>'BS',\n 'status' => 'Active',\n 'incharge_id' => $first_user->id,\n 'entered_id' => $first_user->id,\n 'department_id' => $first_dpt->id,\n ));\n $this->command->info('Program are seeded!');\n \n }", "title": "" }, { "docid": "d7ebe12cdf5432aa34add67af7be50b3", "score": "0.76487887", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create();\n $faker->addProvider(new \\Bezhanov\\Faker\\Provider\\Species($faker));\n foreach(range(0,7) as $i){\n DB::table('plants')->insert([\n 'name' => $faker->plant,\n 'description' => $faker->sentence(20,true),\n 'price' => $faker->randomNumber(6),\n 'rate' => $faker->randomFloat(NULL,0,5),\n 'types' => 'popular',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n }\n }", "title": "" }, { "docid": "c73b07e08ed90eb5b38fd5ee302292bc", "score": "0.7647306", "text": "public function run()\n {\n /*\n * Calling the seeds in the following order ensures that foreign key \n * constraints are not violated\n */\n factory(App\\Hostel::class, 1)->create(); //add 10 hostels\n factory(App\\AuthorizationLevel::class, 1)->create(); //add 3 auth levels\n DB::table('complaints_status')->insert(array(\n array('name'=>'submitted','message'=>'Your complaint has been submitted','is_viewable'=>true, 'is_editable'=>true, 'is_creatable'=>true, 'is_deletable'=>true),\n array('name'=>'in progress','message'=>'Your complaint is in progress','is_viewable'=>true, 'is_editable'=>false, 'is_creatable'=>false, 'is_deletable'=>false),\n array('name'=>'completed','message'=>'Your complaint has been completed','is_viewable'=>true, 'is_editable'=>false, 'is_creatable'=>false, 'is_deletable'=>false))); \n \n /*Submitted, In progress, completed*/\n }", "title": "" }, { "docid": "18fd1caf8ca6a7017a4b6b4067046cb1", "score": "0.7647273", "text": "public function run()\n {\n $this->call(AdminSeeder::class);\n $this->call(SuperAdminRoleseeder::class);\n $this->call(ProductCategorySeeder::class);\n $this->call(ProductColorSeeder::class);\n $this->call(ProductTagSeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(ProductSizeSeeder::class);\n\n factory(\\App\\User::class,10)->create();\n factory(\\App\\Tag::class,5)->create();\n factory(\\App\\Post::class,10)->create()->each(function ($post){\n return $post->like()->save(factory(\\App\\Like::class)->make());\n });\n factory(\\App\\Comment::class,50)->create();\n\n }", "title": "" }, { "docid": "e962f279a1dbddfaa2db67cf48a15f39", "score": "0.76464486", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Role::create([\"name\" => \"Administrador\"]);\n Role::create([\"name\" => \"Común\"]);\n User::create([\n \"name\" => \"4dm1n\",\n \"email\" => \"4dm1n@keiron.cl\",\n \"role_id\" => 1,\n \"password\" => bcrypt(\"Pollo\")\n ]);\n }", "title": "" }, { "docid": "3754b8504d32198111105ff3083d9046", "score": "0.76400363", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('grades')->truncate();\n DB::table('teachers')->truncate();\n DB::table('lessons')->truncate();\n DB::table('students')->truncate();\n DB::table('marks')->truncate();\n DB::table('users')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Grade::factory(5)->create();\n Teacher::factory(5)->create();\n Lesson::factory(4)->create();\n Student::factory(10)->create();\n Mark::factory(20)->create();\n\n User::factory(3)->state(new Sequence(\n [\n 'name' => 'Nicolas',\n 'email' => 'nicolas@gmail.com',\n ],\n [\n 'name' => 'Alexis',\n 'email' => 'alexis@gmail.com',\n ],\n [\n 'name' => 'Karine',\n 'email' => 'karine@gmail.com',\n ],\n ))->create();\n }", "title": "" }, { "docid": "8e6adf883c596121b0906ea06e5abf6c", "score": "0.76395786", "text": "public function run()\n {\n $faker = Faker::create();\n $categories = Category::pluck('id')->all();\n $roles = Role::pluck('id')->all();\n foreach (range(1,20) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->safeEmail,\n 'image' => $faker->imageUrl($width = 640, $height = 480),\n 'biography' => $faker->paragraph,\n 'password' => $faker->password,\n 'category_id' => $faker->randomElement($categories),\n 'role_id' => $faker->randomElement($roles),\n 'birth' => $faker->date,\n 'created_at' => $faker->dateTime($max = 'now'),\n 'updated_at' => $faker->dateTime($max = 'now'),\n ]);\n }\n }", "title": "" }, { "docid": "b063def35fe79f7a0710248af466f402", "score": "0.76395", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n $article = DB::table('articles');\n\n $article->truncate();\n\n for($i = 0; $i < 100; $i++){\n $title = $faker->sentence;\n\n $article->insert([\n 'title' => $title,\n 'slug' => str_slug($title),\n 'short_description' => $faker->realText(500),\n 'description' => $faker->realText(10000),\n 'created_at' => $faker->dateTimeBetween(),\n 'updated_at' => $faker->dateTimeBetween(),\n ]);\n }\n }", "title": "" }, { "docid": "b3e9a647fe40c3c7848b4498aaefaeb3", "score": "0.76392335", "text": "public function run()\n {\n $faker = Faker\\Factory::create('ja_JP');\n DB::table('MST_SALES_DETAILS')->delete();\n $data = [];\n foreach (range(1, 100) as $value) {\n foreach (range(1, 5) as $value_v) {\n $data[] = [\n 'sales_id' => $value,\n 'product_id' => $value_v,\n 'price' => 400\n ];\n }\n }\n DB::table('MST_SALES_DETAILS')->insert($data);\n }", "title": "" }, { "docid": "3b722497c87d9f24b84a12a29c4abd9f", "score": "0.76390076", "text": "public function run()\n {\n\n // $this->call(UserTableSeeder::class);\n\n // App\\User::create([\n // 'name'=>'tester',\n // 'email'=>'test@example.com',\n // 'password'=>bcrypt('secret')\n // ]);\n\n $severities = [\n [\n 'rating' => 1,\n 'description' => 'easy walk',\n ],\n [\n 'rating' => 2,\n 'description' => 'moderate walk',\n ],\n [\n 'rating' => 3,\n 'description' => 'strenuous walk',\n ],\n [\n 'rating' => 4,\n 'description' => 'very strenuous walk',\n ]\n ];\n\n $exposures = [\n [\n 'rating' => '1',\n 'description' => 'no exposure to heights',\n ],\n [\n 'rating' => '2',\n 'description' => 'mild exposure to heights',\n ],\n [\n 'rating' => '3',\n 'description' => 'moderate exposure to heights',\n ],\n [\n 'rating' => '4',\n 'description' => 'extreme exposure to heights',\n ]\n ];\n\n DB::table('severities')->delete();\n foreach ($severities as $severity) {\n DB::table('severities')->insert($severity);\n }\n\n DB::table('exposures')->delete();\n foreach ($exposures as $exposure) {\n DB::table('exposures')->insert($exposure);\n }\n\n if (!$severities = DB::table('severities')->select('id')->get()) {\n exit('There are no severities in the db.');\n }\n\n if (!$exposures = DB::table('exposures')->select('id')->get()) {\n exit('There are no exposures in the db.');\n }\n\n $severity_ids = [];\n foreach ($severities as $s) {\n $severity_ids[] = $s->id;\n }\n\n $exposure_ids = [];\n foreach ($exposures as $e) {\n $exposure_ids[] = $e->id;\n }\n\n $trails = [\n [\n 'name' => 'Skeleton Gorge',\n 'description' => 'strenuous shady trail, that leads to a dam',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2015-01-09 22:14:06',\n ],\n [\n 'name' => 'Contour Path',\n 'description' => 'very long level path that goes almost around the table mountain.',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2016-07-10 10:16:11',\n ],\n [\n 'name' => 'Pipe Track',\n 'description' => 'easy trail with historical water pipes.',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2015-01-06 13:04:06',\n ],\n [\n 'name' => 'platteklip gorge',\n 'description' => 'steep trail up the face of table mountain.',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2016-02-28 16:10:06',\n ],\n [\n 'name' => 'kasteels poort',\n 'description' => 'goes from the pipe track up to the twelve apostles',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'table mountain road',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'tokai forest',\n 'description' => 'walk under the trees',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'muizenberg peak',\n 'description' => 'ajofda owerij pasofk ewfjolefakfdj oa fej, asldfj',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2015-05-22 19:01:38',\n ],\n [\n 'name' => 'sIlvermines',\n 'description' => 'o accessused t plowerf the mountain by carts oar',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'newlands Ravine',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2014-12-31 23:59:59',\n ],\n [\n 'name' => 'the saddle',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2015-06-10 00:14:06',\n ],\n [\n 'name' => 'cable car',\n 'description' => 'fsadofewm fpaofk epwfkpwef faehg kuylo ',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'hely hutchinson dam',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n [\n 'name' => 'old dogs trail',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2016-10-16 15:14:06',\n ],\n [\n 'name' => '1234 32432 afasdfsa',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n 'created_at' => '2015-08-19 22:14:06',\n ],\n [\n 'name' => 'pfasdf 99',\n 'description' => 'used to access lower parts of the mountain by car',\n 'severity_id' => $severity_ids[rand(0, 3)],\n 'exposure_id' => $exposure_ids[rand(0, 3)],\n ],\n ];\n\n DB::table('trails')->delete();\n foreach ($trails as $trail) {\n DB::table('trails')->insert($trail);\n }\n\n $trails = DB::table('trails')->select('id')->get();\n\n $trail_ids = [];\n foreach ($trails as $trail) {\n $trail_ids[] = $trail->id;\n }\n\n $count = count($trail_ids);\n\n $hikes = [\n [\n 'title' => 'newlands forest to the blockhouse',\n 'description' => 'Hike from newlands forest to the King\\'s Blockhouse.',\n 'severity_id' => $severity_ids[rand(0,3)],\n 'exposure_id' => $exposure_ids[rand(0,3)],\n 'slug' => str_slug('newlands forest to the blockhouse'),\n ],\n [\n 'title' => 'cecilia forest to hely hutchinson dam via skeleton gorge',\n 'description' => 'A steep climb up skeleton gorge to hely hutchinson dam and back down via nursery ravine',\n 'severity_id' => $severity_ids[rand(0,3)],\n 'exposure_id' => $exposure_ids[rand(0,3)],\n 'slug' => str_slug('cecilia forest to hely hutchinson dam via skeleton gorge'),\n ],\n [\n 'title' => 'Rhodes Memorial to Woodstock Cave',\n 'description' => 'A nice hike from Rhodes Mem to Woodstock Cave.',\n 'severity_id' => $severity_ids[rand(0,3)],\n 'exposure_id' => $exposure_ids[rand(0,3)],\n 'slug' => str_slug('Rhodes Memorial to Woodstock Cave'),\n ],\n [\n 'title' => 'Twelve Apostles',\n 'description' => 'A very long hike.',\n 'severity_id' => $severity_ids[rand(0,3)],\n 'exposure_id' => $exposure_ids[rand(0,3)],\n 'slug' => str_slug('Twelve Apostles'),\n ],\n ];\n\n DB::table('hikes')->delete();\n DB::table('hike_trail')->delete();\n foreach ($hikes as $hike) {\n $id = DB::table('hikes')->insertGetId($hike);\n $number_of_trails_to_add = rand(0, $count);\n\n $i = 0;\n $used_trail_ids = [];\n while($number_of_trails_to_add >= $i) {\n\n while(in_array($trail_id = rand(0, ($count - 1)), $used_trail_ids)) {\n continue;\n }\n\n $used_trail_ids[] = $trail_id;\n $hike_trail = [\n 'hike_id' => $id,\n 'trail_id' => $trail_ids[$trail_id],\n ];\n DB::table('hike_trail')->insert($hike_trail);\n $i++;\n }\n\n }\n\n\n }", "title": "" }, { "docid": "154cba18dfdeb8c4ad5a965ced753dd9", "score": "0.76387894", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,25) as $value) {\n DB::table('posts')->insert([\n 'title' => $faker->title(),\n 'image' => $faker->imageUrl('public/storage/images', 640, 480, null, false),\n 'description' => $faker->text(),\n 'category_id' => rand(1,5),\n 'user_id' => rand(1,15),\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n }\n }", "title": "" }, { "docid": "2484f545498eece99a69d15fb3058fc2", "score": "0.76387566", "text": "public function run()\n {\n // Create fixed statuses\n foreach (array('hotovo', 'rozpracované', 'v poradí') as $status) {\n DB::table('statuses')->insert([\n 'name' => $status,\n ]);\n };\n\n $this->call([\n UsersTableSeeder::class,\n GrantsTableSeeder::class,\n SolventsTableSeeder::class,\n SpectrometersTableSeeder::class,\n LabsTableSeeder::class,\n AnalysesTableSeeder::class,\n SamplesTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "db33a8329f4133fb77121f041bfcf078", "score": "0.7637611", "text": "public function run()\n\t{\n\t\tDB::table('users')->delete();\n\n\t\t$faker = Faker\\Factory::create();\n\t\t\n\t\t$seeds = array(\n\t\t\tarray(\n\t\t\t\t'id' => 1,\n\t\t\t\t'name' => 'admin',\n\t\t\t\t'slug' => 'admin',\n\t\t\t\t'first_name' => 'John',\n\t\t\t\t'last_name' => 'Doe',\n\t\t\t\t'location' => 'Anytown, USA',\n\t\t\t\t'email' => 'email@example.com',\n\t\t\t\t'password' => Hash::make('password'),\n\t\t\t\t'admin' => true\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'id' => 2,\n\t\t\t\t'name' => 'username',\n\t\t\t\t'slug' => 'username',\n\t\t\t\t'first_name' => $faker->firstName,\n\t\t\t\t'last_name' => $faker->lastName,\n\t\t\t\t'location' => $faker->city . ', ' . $faker->country,\n\t\t\t\t'email' => 'email@example.net',\n\t\t\t\t'password' => Hash::make('password'),\n\t\t\t\t'admin' => false\n\t\t\t)\n\t\t);\n\n\t\tDB::table('users')->insert($seeds);\n\n\t\t$users = factory(App\\User::class, 8)->create();\n }", "title": "" }, { "docid": "a94882201bbeb65b0ddb261fe6987a0a", "score": "0.76362485", "text": "public function run()\n { \n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@test.com',\n 'password' => Hash::make('admin'),\n 'role' => 2\n ]);\n User::create([\n 'name' => 'User',\n 'email' => 'user@test.com',\n 'password' => Hash::make('secret'),\n 'role' => 1\n ]);\n User::create([\n 'name' => 'Infinety Admin',\n 'email' => 'erickfernando_20@hotmail.com',\n 'password' => Hash::make('12345678'),\n 'role' => 1\n ]);\n // \\App\\Models\\User::factory(10)->create();\n Categorias::factory(20)->create();\n Productos::factory(100)->create();\n }", "title": "" }, { "docid": "d63961b4949c2a17bd2ffc48673c0ad3", "score": "0.763493", "text": "public function run()\n {\n factory(App\\User::class, 50)->create();\n\n factory(App\\Team::class, 10)->create();\n\n App\\Role::insert([\n ['id' => 1, 'title' => 'developer'],\n ['id' => 2, 'title' => 'junior developer'],\n ['id' => 3, 'title' => 'quality assurance'],\n ['id' => 4, 'title' => 'project manager'],\n ['id' => 5, 'title' => 'team leader']\n ]);\n }", "title": "" }, { "docid": "4ae83842aaa0c70b457171306e60ba4a", "score": "0.7630802", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $user=factory(\\App\\User::class)->create();\n factory(\\App\\Course::class,6)->create(['user_id'=>$user->id])->each(function($course){\n factory(\\App\\Episode::class,rand(5,20))->make()->each(function($episode,$key) use ($course){\n $episode->number=$key+1;\n $course->episodes()->save($episode);\n });\n });\n }", "title": "" }, { "docid": "09a6cf87bc1f7ee46aa35dd6a863c3f3", "score": "0.7628901", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n DB::table('companies')->insert([\n 'ar_name' => 'نبذة تعريفية عن الشركة',\n 'ar_profile' => 'نبذة',\n 'en_name' => 'A brief about the company',\n 'en_profile' => 'Details',\n 'projectSuccessful' => '1',\n 'yearsOfExperienced' => '2',\n 'professionalExpert' => '3',\n 'happyCustomers' => '4',\n ]);\n factory(\\App\\User::class, 1)->create();\n factory(\\App\\Account::class, 1)->create();\n factory(\\App\\Affair::class, 1)->create();\n factory(\\App\\System::class, 1)->create();\n factory(\\App\\Pharmacy::class, 1)->create();\n factory(\\App\\Support::class, 1)->create();\n // $this->call(CompaniesSeeder::class);\n }", "title": "" }, { "docid": "576a34543681e3fe684e1e40febacb80", "score": "0.7628569", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n // $user = \\App\\Models\\User::factory()\n // ->has(\\App\\Models\\Article::factory()->count(10))\n // ->create();\n\n $posts = Article::factory()\n ->count(10)\n ->for(User::factory()->state([\n 'name' => 'admin',\n 'email' => 'admin@example.com',\n 'password' => Hash::make('12345678'),\n ]))\n ->create();\n\n // \\App\\Models\\Article::factory(10)->create();\n \\App\\Models\\Tag::factory(20)->create();\n $tags = Tag::all();\n Article::all()->each(function ($article) use ($tags) { \n $article->tags()->attach(\n $tags->random(rand(1, 3))->pluck('id')->toArray()); \n });\n }", "title": "" }, { "docid": "d2507ab89d2d83f52c957a1a22b5f496", "score": "0.76283425", "text": "public function run()\n {\n $faker = Factory::create();\n\n GrupoEquipo::truncate();\n Equipo::truncate();\n\n foreach(range(1, 5) as $i) {\n GrupoEquipo::create([\n 'zona_id' => $i,\n 'name' => $faker->unique()->name,\n 'description' => $faker->paragraph\n ]);\n foreach(range(1, 10) as $i) {\n Equipo::create([\n 'grupo_equipo_id' => mt_rand(1, 5),\n 'name' => $faker->unique()->name,\n 'marca' => $faker->name,\n 'tipo' => $faker->name,\n 'tarifa' => $faker->randomFloat($nbMaxDecimals = 5, $min = 0, $max = 400)\n ]);\n }\n }\n }", "title": "" }, { "docid": "0ec002cddee037e0013565674e9189ca", "score": "0.76273686", "text": "public function run()\n {\n $this->call([\n BlogStatusSeeder::class,\n CategorySeeder::class,\n SiteConfigSeeder::class,\n ]);\n User::factory(1)->create();\n\n Blog::factory(100)->create();\n\n BlogView::factory(200)->create();\n\n BlogComment::factory(200)->create();\n\n ContactMessage::factory(15)->create();\n }", "title": "" }, { "docid": "3c41de562e9a6d240427b1bd3d7ddd73", "score": "0.76248515", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Master User',\n 'email' => 'master@master.com',\n 'password' => bcrypt('secret'),\n ]);\n\n $faker = Faker\\Factory::create();\n\n \tfor ($i=0; $i < 9; $i++) { \n\t \tDB::table('posts')->insert([\n\t 'title' => $faker->sentence($nbWords = 4, $variableNbWords = true) , \n\t 'body' => $faker->text,\n\t 'created_at' => date(\"Y-m-d h:i:s\"),\n\t 'updated_at' => date(\"Y-m-d h:i:s\"),\n\t 'author' => 'Master User',\n\t 'thumbnail' => 'blog_pic.png',\n\t 'user_id' => 1\n\t ]);\n\n \t}\n }", "title": "" }, { "docid": "fb3e6d03992e991fc3469db9d336e1d0", "score": "0.7623802", "text": "public function run()\n {\n $faker = Factory::create();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Fruit::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n for ($i = 1; $i <= 20; $i++) {\n Fruit::create([\n 'nom' => $faker->name,\n 'pays_origin' => $faker->name,\n 'price' => mt_rand(1, 1000)\n ]);\n }\n }", "title": "" } ]
3887d0a2849c8d5175b701dffc43d7ce
$oDiscount = $this>getMock( 'oxdiscount', array( 'getAbsValue') );
[ { "docid": "b3671a7d87af11cc9019b010034b6377", "score": "0.6408027", "text": "public function testApplyDiscounts()\n {\n //$oDiscount->expects( $this->any() )->method( 'getAbsValue')->will( $this->returnValue( 13 ) );\n\n $oDiscount = new oxdiscount();\n $oDiscount->oxdiscount__oxaddsumtype = new oxField('abs', oxField::T_RAW);\n $oDiscount->oxdiscount__oxaddsum = new oxField(13, oxField::T_RAW);\n\n $aDiscounts = array($oDiscount);\n $oPrice = oxNew( 'oxPrice' );\n $oPrice->setPrice(123);\n\n $oDiscountList = new oxDiscountList();\n $oDiscountList->applyDiscounts( $oPrice, $aDiscounts );\n $this->assertEquals( 110, $oPrice->getBruttoPrice() );\n }", "title": "" } ]
[ { "docid": "3024f59c43c2cfce39bdc8e8b32d1148", "score": "0.68920505", "text": "public function testGetArticleDiscounts()\n {\n // just simulating article\n $oArticle = new oxArticle();\n $oArticle->xxx = 'yyy';\n\n $aDiscounts[0] = $this->getMock( 'oxdiscount', array( 'isForArticle', 'getId' ) );\n $aDiscounts[0]->expects( $this->once() )->method( 'isForArticle' )->will( $this->returnValue( true ) );\n $aDiscounts[0]->expects( $this->once() )->method( 'getId' )->will( $this->returnValue( 'xxx' ) );\n\n $aDiscounts[1] = $this->getMock( 'oxdiscount', array( 'isForArticle', 'getId' ) );\n $aDiscounts[1]->expects( $this->once() )->method( 'isForArticle' )->will( $this->returnValue( true ) );\n $aDiscounts[1]->expects( $this->once() )->method( 'getId' )->will( $this->returnValue( 'yyy' ) );\n\n $aDiscounts[2] = $this->getMock( 'oxdiscount', array( 'isForArticle', 'getId' ) );\n $aDiscounts[2]->expects( $this->once() )->method( 'isForArticle' )->will( $this->returnValue( false ) );\n $aDiscounts[2]->expects( $this->never() )->method( 'getId' )->will( $this->returnValue( 'zzz' ) );\n\n $aDiscounts[3] = $this->getMock( 'oxdiscount', array( 'isForArticle', 'getId' ) );\n $aDiscounts[3]->expects( $this->once() )->method( 'isForArticle' )->will( $this->returnValue( false ) );\n $aDiscounts[3]->expects( $this->never() )->method( 'getId' )->will( $this->returnValue( 'www' ) );\n\n $oDList = $this->getMock( 'oxList', array( 'getArray' ) );\n $oDList->expects( $this->once() )->method( 'getArray' )->will( $this->returnValue( $aDiscounts ) );\n\n $oList = $this->getMock( 'oxdiscountlist', array( '_getList' ) );\n $oList->expects( $this->once() )->method( '_getList' )->will( $this->returnValue( $oDList ) );\n\n // now proceeding to disocunt id check\n $this->assertEquals( array( 'xxx' => $aDiscounts[0], 'yyy' => $aDiscounts[1] ), $oList->getArticleDiscounts( $oArticle ) );\n }", "title": "" }, { "docid": "fd8d2d1d63b2962ab69897a03cfe1365", "score": "0.67137927", "text": "public function testRetirementCalculatorExpenses()\n {\n }", "title": "" }, { "docid": "d5b1da2acd5e83ad91f838f0f2245e06", "score": "0.65876216", "text": "public function testPurchaseCalculatorAmount()\n {\n }", "title": "" }, { "docid": "4753a85beafd86677349374eff5c9d44", "score": "0.65010935", "text": "public function testPurchaseCalculatorDepositAmount()\n {\n }", "title": "" }, { "docid": "97855fc05b67509fec2b853565419f35", "score": "0.64922833", "text": "public function testCartAddDiscount()\n {\n }", "title": "" }, { "docid": "4a2fcb48cc3dc740502633d7a82b7383", "score": "0.64647037", "text": "public function testCartRemoveDiscount()\n {\n }", "title": "" }, { "docid": "0c958d14c71572128d6bfd9d84b1a412", "score": "0.63832724", "text": "public function testPayersPayerTypeCommissionAmountGet()\n {\n }", "title": "" }, { "docid": "dda4bc43f2bed96deab23104cbda6b23", "score": "0.6354906", "text": "public function testRetirementCalculatorDepositAmount()\n {\n }", "title": "" }, { "docid": "874be01854757e04b83bb5007c6b5e9f", "score": "0.6291343", "text": "public function test_getFcpoBankaccountholder_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoBankaccountholder());\n }", "title": "" }, { "docid": "68aa905217b2ad703a5e4186edb51c3b", "score": "0.6250882", "text": "public function testEducationCalculatorDepositAmount()\n {\n }", "title": "" }, { "docid": "0cb67712b6a1fb3bca833c6d3eb5718b", "score": "0.62411803", "text": "public function testMortgageCalculatorHomePrice()\n {\n }", "title": "" }, { "docid": "bd2eb1adae40a2355e5ecd3d97a34d96", "score": "0.62336177", "text": "public function test_fcGetArtStockInBasket_Coverage() \n {\n $oMockProduct = $this->getMock('oxArticle', array('getId'));\n $oMockProduct->expects($this->any())->method('getId')->will($this->returnValue('someId'));\n\n\n $oMockOrderArticle = $this->getMock('oxOrderArticle', array('getArticle', 'getAmount'));\n $oMockOrderArticle->expects($this->any())->method('getArticle')->will($this->returnValue($oMockProduct));\n $oMockOrderArticle->expects($this->any())->method('getAmount')->will($this->returnValue(2));\n $aContents[] = $oMockOrderArticle;\n\n $oMockBasket = $this->getMock('oxBasket', array('getContents'));\n $oMockBasket->expects($this->any())->method('getContents')->will($this->returnValue($aContents));\n\n $oTestObject = oxNew('fcPayOneOrder');\n\n $this->assertEquals(2, $oTestObject->fcGetArtStockInBasket($oMockBasket, 'someId'));\n }", "title": "" }, { "docid": "df55aa9baf9b789d56d2a865e060234d", "score": "0.6233615", "text": "public function testGetQuickAdjustmentById()\n {\n }", "title": "" }, { "docid": "73e818bde3afa46aceac7b68be53a7ef", "score": "0.61873865", "text": "public function testGetResursPaymentMethodCost()\n {\n }", "title": "" }, { "docid": "4ddec78c491535595a52da194a298a73", "score": "0.61613077", "text": "public function test_getFcpoBanknumber_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoBanknumber());\n }", "title": "" }, { "docid": "ea94bc616e3d6e515daac5347f6f6582", "score": "0.6157053", "text": "public function testSomething(): void\n {\n // $result = $calculator->add(1,9);\n // $this->assertEquals(10, $result);\n $calculator = $this->getMockBuilder(PromotionCalculator::class)\n ->setMethods(['getPromotionPercentage'])\n ->getMock();\n\n $calculator->expects($this->any())\n ->method('getPromotionPercentage')\n ->willReturn(20);\n\n $result = $calculator->calculatePriceAfterPromotion(1,9);\n $this->assertEquals(8, $result);\n\n $result = $calculator->calculatePriceAfterPromotion(10,20,50);\n $this->assertEquals(64, $result);\n\n }", "title": "" }, { "docid": "50b17a13bc1f81ed97d8fb08ac75606e", "score": "0.6133713", "text": "public function test_getFcpoIbannumber_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoIbannumber());\n }", "title": "" }, { "docid": "dee8ae6a9a8017acde4a890f996b145d", "score": "0.6127064", "text": "public function testSalesProbabilitiesGet()\n {\n\n }", "title": "" }, { "docid": "d2223a53d67b579fc7d05c8a64adadd5", "score": "0.6094042", "text": "public function testGetCreditBureau()\n {\n }", "title": "" }, { "docid": "d42b1ff894b59e2a4e9cd80234bb1589", "score": "0.60924786", "text": "public function testRetirementCalculatorPercentCovered()\n {\n }", "title": "" }, { "docid": "7ef040ca46745c78d6e18f8fcc7fa564", "score": "0.60856587", "text": "public function test__setProxy()\n {\n $object = $this->getMock('Varien_Object', array('setData'));\n $object->expects($this->once())\n ->method('setData')\n ->with('final_product_price', 10);\n\n $object->finalProductPrice = 10;\n }", "title": "" }, { "docid": "6f8b0a2d7b8f04fe013e104193af96fc", "score": "0.60781944", "text": "public function test_getResponseParameter_Coverage() \n {\n $aMockResponse = array('someIndex' => 'someParameter');\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponse'));\n $oTestObject->expects($this->any())->method('getResponse')->will($this->returnValue($aMockResponse));\n\n $this->assertEquals('someParameter', $oTestObject->getResponseParameter('someIndex'));\n }", "title": "" }, { "docid": "df0b18cc63838c1d4243237c0dd570cd", "score": "0.6074413", "text": "public function testGetAchBusinessBalanceUsingGet()\n {\n }", "title": "" }, { "docid": "8c890fb0df3508807a81d2b88f605ecb", "score": "0.6056618", "text": "public function testcalcDiscount() {\n\t$this->empty->setDiscount(10); \n\t$rv = $this->empty->calcDiscount();\n\t$this->assertEquals(0, $rv);\n\t\n\t$this->single->setDiscount(10); \n\t$rv = $this->single->calcDiscount();\n\t$this->assertEquals(0.60, $rv);\n\t\n\t$this->multi->setDiscount(10); \n\t$rv = $this->multi->calcDiscount();\n\t$this->assertEquals(1.80, $rv);\t\n\t\n\t$this->complex->setDiscount(10); \n\t$rv = $this->complex->calcDiscount();\n\t$this->assertEquals(6.00, $rv);\n\n\t\n }", "title": "" }, { "docid": "169bab149a30cfc47c28e3dc41b5db4c", "score": "0.59862584", "text": "public function testVsk0()\n{\n\n $actual = $this->company->vsk();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "8368d4b47d7475ff9ef43721705f205c", "score": "0.5959182", "text": "public function testGetInvoice()\n {\n }", "title": "" }, { "docid": "8cb6965acba4ca043c202460cfb4d9f4", "score": "0.5945539", "text": "public function testGetOrganisationCreditBureau()\n {\n }", "title": "" }, { "docid": "3cc35ce451837f6f134c38c4c5223f4f", "score": "0.59448856", "text": "public function test__fcpoGetOrderNotChecked_Coverage() \n {\n $oTestObject = oxNew('fcPayOneOrder');\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('fcpoGetSessionVariable')->will($this->returnValue(500));\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n\n $this->assertEquals(0, $oTestObject->_fcpoGetOrderNotChecked());\n }", "title": "" }, { "docid": "0522eba0261308afc121a17bca22f8d5", "score": "0.59398997", "text": "public function test_getFcpoBankcode_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoBankcode());\n }", "title": "" }, { "docid": "e2f97bd0cb9e04e6033ccf1d145993a6", "score": "0.590896", "text": "public function testMortgageCalculatorDownPayment()\n {\n }", "title": "" }, { "docid": "23ab83f23e0fab05206f587037d26762", "score": "0.58915085", "text": "public function test_getFcpoBankname_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoBankname());\n }", "title": "" }, { "docid": "98bc86b874962e1637a3593e1681dda4", "score": "0.58878815", "text": "public function testGetMarketsPrices()\n {\n\n }", "title": "" }, { "docid": "6a074173d1ea46eb4e53e5935cf23e05", "score": "0.5880432", "text": "function testSetDiscountValue()\n {\n // first product\n $id = '1';\n $description = 'Um produto muito bom!';\n $quantity = 2;\n $value = 21.50;\n $this->process->addProduct($id, $description, $quantity, $value);\n\n // second product\n $id = '2';\n $description = 'Outro produto da minha loja';\n $quantity = 1;\n $value = 44.10;\n $this->process->addProduct($id, $description, $quantity, $value);\n\n // third product\n $id = '3';\n $description = 'Outro produto da minha loja';\n $quantity = 7;\n $value = 3.10;\n $this->process->addProduct($id, $description, $quantity, $value);\n\n $this->process->setDiscount(\n 10,\n Payment_PagamentoCerto_Order::DISCOUNT_TYPE_VALUE\n );\n\n $this->assertEquals(10, $this->process->getDiscountValue());\n\n $this->assertEquals(\n Payment_PagamentoCerto_Order::DISCOUNT_TYPE_VALUE,\n $this->process->getDiscountType()\n );\n\n $subTotal = $this->process->getOrderSubTotal();\n\n $this->assertEquals(\n $subTotal - 10,\n $this->process->applyDiscount($subTotal)\n );\n\n }", "title": "" }, { "docid": "c79284d87f4737d74dd35504eb76f403", "score": "0.58678997", "text": "public function testCvr0()\n{\n\n $actual = $this->company->cvr();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e3313325a9f70a3b5956c9a580650f33", "score": "0.5866269", "text": "public function testGetResursPaymentMethods()\n {\n }", "title": "" }, { "docid": "fc3f89ac657eda0672353795bdbeb729", "score": "0.58648545", "text": "public function testRetrieveRate()\n {\n }", "title": "" }, { "docid": "3527449753e15bcb49da8e52a6ac05be", "score": "0.5847773", "text": "public function test_fcpoGetSalByFirstName_Coverage() \n {\n $oTestObject = oxNew('fcPayOneOrder');\n\n $oMockDatabase = $this->getMock('oxDb', array('GetOne'));\n $oMockDatabase->expects($this->any())->method('GetOne')->will($this->returnValue('someSalutation'));\n $this->invokeSetAttribute($oTestObject, '_oFcpoDb', $oMockDatabase);\n\n $this->assertEquals('someSalutation', $oTestObject->fcpoGetSalByFirstName('someFirstname'));\n }", "title": "" }, { "docid": "40d7d9342174772aaf3d7f397dc759ce", "score": "0.5812094", "text": "public function test_fcpoGetMandateFilename_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getId'));\n $oTestObject->expects($this->any())->method('getId')->will($this->returnValue('someId'));\n\n $oMockDatabase = $this->getMock('oxDb', array('GetOne'));\n $oMockDatabase->expects($this->any())->method('GetOne')->will($this->returnValue('someFile'));\n $this->invokeSetAttribute($oTestObject, '_oFcpoDb', $oMockDatabase);\n\n $this->assertEquals('someFile', $oTestObject->fcpoGetMandateFilename());\n }", "title": "" }, { "docid": "319809a0fba371409da5fac48d0ed12b", "score": "0.58073163", "text": "public function testPayInvoice()\n {\n }", "title": "" }, { "docid": "c57dc1fb41ba7832cad840c5b5171188", "score": "0.5794721", "text": "public function testGetKezsStockWasteMassGroup()\n {\n }", "title": "" }, { "docid": "d2a8b4fd2f56e044a6e032d643c3831d", "score": "0.57927656", "text": "public function testGetGDPRContract()\n {\n }", "title": "" }, { "docid": "4225131ab8e1b602561a3bb6947e0a01", "score": "0.57918686", "text": "public function testP0()\n{\n\n $actual = $this->company->p();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "bbb39ce14a3350191cee2488d3ab5de9", "score": "0.57895744", "text": "public function testCalculateTotalDiscount()\n {\n $basketMock = $this->getBasketMock($this->itemsData);\n\n $totalDiscount = new TotalDiscount();\n $totalDiscount->setValue(0.1);\n $this->assertEquals(90, $totalDiscount->calculateDiscount($basketMock));\n }", "title": "" }, { "docid": "92c19c46b4f1e1540973b4ca36ae5962", "score": "0.5777805", "text": "public function testSalesProbabilitiesCountGet()\n {\n\n }", "title": "" }, { "docid": "5d552736699db1c822652233e7e54cd9", "score": "0.5770626", "text": "public function testGetAchBalanceUsingGet()\n {\n }", "title": "" }, { "docid": "e6578df157bea6eb77e08deaeb6f83b1", "score": "0.57696843", "text": "public function test_getFcpoBiccode_Coverage() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('getResponseParameter'));\n $oTestObject->expects($this->any())->method('getResponseParameter')->will($this->returnValue('someParameter'));\n\n $this->assertEquals('someParameter', $oTestObject->getFcpoBiccode());\n }", "title": "" }, { "docid": "69e0deb063e4884e1b83336e348b35c3", "score": "0.57691765", "text": "public function testCurrencyGetAllCurrencies()\n {\n }", "title": "" }, { "docid": "2b92904abe93811fbda7f9c02a57d2b0", "score": "0.57631737", "text": "public function testSalesProbabilitiesIdGet()\n {\n\n }", "title": "" }, { "docid": "4bb97bccf5ee09d776e3930e7e5ffb5d", "score": "0.575791", "text": "public function testGetMock0()\n{\n\n $actual = $this->invalidCountException->getMock();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e61b3acf608d973beee86cab87d632e2", "score": "0.5749373", "text": "public function test_getResponse_Coverage() \n {\n $oTestObject = oxNew('fcPayOneOrder');\n $this->invokeSetAttribute($oTestObject, '_aResponse', null);\n\n $aResponse = array('someResponse');\n\n $oMockRequestLog = $this->getMock('fcporequestlog', array('load', 'getResponseArray'));\n $oMockRequestLog->expects($this->any())->method('load')->will($this->returnValue(true));\n $oMockRequestLog->expects($this->any())->method('getResponseArray')->will($this->returnValue($aResponse));\n\n $oMockDatabase = $this->getMock('oxDb', array('GetOne'));\n $oMockDatabase->expects($this->any())->method('GetOne')->will($this->returnValue(1));\n $this->invokeSetAttribute($oTestObject, '_oFcpoDb', $oMockDatabase);\n\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('getFactoryObject')->will($this->returnValue($oMockRequestLog));\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n\n $this->assertEquals($aResponse, $oTestObject->getResponse());\n }", "title": "" }, { "docid": "a58438db0f3b49cd22fed59e9ab8cb49", "score": "0.5747436", "text": "public function testGetDocumentStatuteWithTaxMark(): void\n {\n /** @var Organization|MockObject $stub */\n $stub = $this->getMockBuilder(Organization::class)\n ->setMethods(null)\n ->getMock();\n\n $this->assertNull($stub->getDocumentStatuteWithTaxMark());\n }", "title": "" }, { "docid": "9200f1228100e91aca87578d699bb66e", "score": "0.5745938", "text": "public function testGetCorrelations()\n {\n }", "title": "" }, { "docid": "2e6e963b800ff3cf6fac357e45850cbd", "score": "0.57328063", "text": "public function testCartAddLoyalty()\n {\n }", "title": "" }, { "docid": "8ffbedb6f864925ce2175dadc9166ea1", "score": "0.5716267", "text": "public function testTransferMoneyFrom()\n {\n }", "title": "" }, { "docid": "eae7375da000d7bb27b5d07cda1042e5", "score": "0.57161283", "text": "public function testPurchaseCalculatorHorizon()\n {\n }", "title": "" }, { "docid": "daf3744188ae2d9d3af81334e8c4ed85", "score": "0.571375", "text": "function getValueToTest()\n {\n return $this->valueToTest;\n }", "title": "" }, { "docid": "cd776d7e3df69c776516b6cbd9354d02", "score": "0.57087976", "text": "public function testEducationCalculatorPercentCovered()\n {\n }", "title": "" }, { "docid": "32f0e3560664b2b03fff7244dd8a88db", "score": "0.57083046", "text": "public function testGetDuplicateQuickAdjustmentById()\n {\n }", "title": "" }, { "docid": "c64edb7a72290602102475daa3b4e670", "score": "0.56966877", "text": "public function testGetItemEligibilityPreview()\n {\n }", "title": "" }, { "docid": "01a7f148fbaa4f8026a1d276f6fa3cb3", "score": "0.56919914", "text": "public function testGetCorrelationExplanations()\n {\n }", "title": "" }, { "docid": "01e9afa4421c5a43d59653cb4a6f60ab", "score": "0.5690428", "text": "public function testEducationCalculatorAnnualCost()\n {\n }", "title": "" }, { "docid": "7c67f12d34ec6873b0bfbdc15f6efc26", "score": "0.56860757", "text": "public function testRetreiveFund()\n {\n }", "title": "" }, { "docid": "2daf1d1ebc95e33e0952b7d2397c4976", "score": "0.56847703", "text": "public function testGet_instance0()\n{\n\n $actual = $this->cI_Controller->get_instance();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "326df8e27c5ac01b8805e9761cc61ee5", "score": "0.56665677", "text": "public function test__construct() {\n\n $obj = new CdeFournisseurMensu();\n\n $this->assertNull($obj->getCodeAffaire());\n $this->assertNull($obj->getCodeArticle());\n $this->assertNull($obj->getCodeChantier());\n $this->assertNull($obj->getCodeClient());\n $this->assertNull($obj->getCodeCollaborateur());\n $this->assertNull($obj->getCodeFournisseur());\n $this->assertNull($obj->getCodeInspecteur());\n $this->assertNull($obj->getCodeLivraison());\n $this->assertNull($obj->getCodeLivreur());\n $this->assertNull($obj->getCommandeIsolee());\n $this->assertNull($obj->getCritereTexte1());\n $this->assertNull($obj->getDateLivraison());\n $this->assertNull($obj->getDateTransfert());\n $this->assertNull($obj->getDesignation());\n $this->assertNull($obj->getDesignation2());\n $this->assertNull($obj->getDesignation3());\n $this->assertNull($obj->getFromCdeType());\n $this->assertNull($obj->getMajStockByDa());\n $this->assertNull($obj->getNoBonInt());\n $this->assertNull($obj->getNoPieceCde());\n $this->assertNull($obj->getNoPieceCdeCli());\n $this->assertNull($obj->getNumeroBsGenere());\n $this->assertNull($obj->getNumeroLigne());\n $this->assertNull($obj->getPuBrut());\n $this->assertNull($obj->getPeriode());\n $this->assertNull($obj->getPosteRent());\n $this->assertNull($obj->getPrixSaisi());\n $this->assertNull($obj->getQuantite());\n $this->assertNull($obj->getQuantiteBs());\n $this->assertNull($obj->getQuantiteCde());\n $this->assertNull($obj->getQuantiteCdeCli());\n $this->assertNull($obj->getQuantiteLiv());\n $this->assertNull($obj->getRemise1());\n $this->assertNull($obj->getRemise2());\n $this->assertNull($obj->getRemise3());\n $this->assertNull($obj->getTypeGestion());\n $this->assertNull($obj->getTypePiece());\n $this->assertNull($obj->getUniqIdBlocage());\n $this->assertNull($obj->getValidee());\n }", "title": "" }, { "docid": "f96cdf86a7818a87f1ab8c1793d6e2bb", "score": "0.5649071", "text": "public function testAmountGetterSetter()\n {\n $amount = 127;\n\n $this->object->setAmount($amount);\n $this->assertEquals($amount, $this->object->getAmount());\n }", "title": "" }, { "docid": "c733e956dfef7c528d9c3c3aab10cdcc", "score": "0.56397855", "text": "public function testRetrieveProduct1()\n {\n }", "title": "" }, { "docid": "1cf0a0f22c918c554b0c32b31da7f7d5", "score": "0.5626487", "text": "public function testNewOfficeTransactionDetails()\n {\n }", "title": "" }, { "docid": "6aaff6c918eba83c7307a5edbe913e34", "score": "0.5619209", "text": "public function testMortgageCalculatorPeriodicPayment()\n {\n }", "title": "" }, { "docid": "2f2f44175afb6b5769432ed90820642d", "score": "0.5596323", "text": "public function testRetrieveOfficeTransactions()\n {\n }", "title": "" }, { "docid": "ce1f7acb45687d2fa99e7bcfb1c80c06", "score": "0.5595458", "text": "public function testGetInvoiceLogs()\n {\n }", "title": "" }, { "docid": "81cabdaeaca2c730b53f636367aba6a5", "score": "0.5587741", "text": "public function testCartRemoveLoyalty()\n {\n }", "title": "" }, { "docid": "0ca381c560de38d7eb120ae6c074de5f", "score": "0.5586756", "text": "public function testTargetGetItem()\n {\n }", "title": "" }, { "docid": "da47161abcb612c07284d3a090bd4e93", "score": "0.55828124", "text": "public function testLodgingBusiness()\n {\n }", "title": "" }, { "docid": "c8972f88c99aecdc93ef0697deaa6646", "score": "0.55768144", "text": "public function testGetCreditBureauLoanProductMapping()\n {\n }", "title": "" }, { "docid": "99e92a81a6c4e141545fc3c3a0024db1", "score": "0.55744874", "text": "public function test__toString0()\n{\n\n $actual = $this->simplePie_Author->__toString();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "7f38162b3056594fdf53cfde4b07ac87", "score": "0.55684704", "text": "public function test__fcpoGetNextOrderNr_OldShopVersion() \n {\n $oTestObject = $this->getMock('fcPayOneOrder', array('_getCounterIdent'));\n $oTestObject->expects($this->any())->method('_getCounterIdent')->will($this->returnValue('someCounterIdent'));\n\n $oMockDb = $this->getMock('oxDb', array('GetOne'));\n $oMockDb->expects($this->any())->method('GetOne')->will($this->returnValue('someOrderNr'));\n\n $oMockCounter = $this->getMock('oxCounter', array('getNext'));\n $oMockCounter->expects($this->any())->method('getNext')->will($this->returnValue('someOrderNr'));\n\n $oMockConfig = $this->getMock('oxConfig', array('getVersion'));\n $oMockConfig->expects($this->any())->method('getVersion')->will($this->returnValue('4.5.9'));\n\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('getFactoryObject')->will($this->returnValue($oMockCounter));\n $oHelper->expects($this->any())->method('fcpoGetConfig')->will($this->returnValue($oMockConfig));\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n $this->invokeSetAttribute($oTestObject, '_oFcpoDb', $oMockDb);\n\n $this->assertEquals('someOrderNr', $oTestObject->_fcpoGetNextOrderNr());\n }", "title": "" }, { "docid": "e3bb6d03671f60336294429bbfb932e2", "score": "0.55630296", "text": "public function testDefaultAmount()\n {\n $this->assertNull($this->object->getAmount());\n }", "title": "" }, { "docid": "129607e1c7d2887cc8f7ac1c7c94d434", "score": "0.5560003", "text": "public function testPayersPayerTypeGet()\n {\n }", "title": "" }, { "docid": "93a3aa026709bfd1abc84be8bf3a6d69", "score": "0.5552041", "text": "public function test__fcpoCheckRefNr_Coverage() \n {\n $oMockRequest = $this->getMock('fcporequest', array('getRefNr', 'sendRequestAuthorization'));\n $oMockRequest->expects($this->any())->method('getRefNr')->will($this->returnValue('someRefValue'));\n $oMockRequest->expects($this->any())->method('sendRequestAuthorization')->will($this->returnValue(array()));\n\n $oMockPayment = $this->getMock('oxPayment', array('load', 'fcpoGetMode'));\n $oMockPayment->expects($this->any())->method('load')->will($this->returnValue(true));\n $oMockPayment->expects($this->any())->method('fcpoGetMode')->will($this->returnValue('test'));\n $oMockPayment->oxpayments__fcpoauthmode = new oxField('someAuthMode');\n\n $oTestObject = oxNew('fcPayOneOrder');\n\n $oMockLang = $this->getMock('oxLang', array('translateString'));\n $oMockLang->expects($this->any())->method('translateString')->will($this->returnValue('someTranslatedString'));\n\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('fcpoGetSessionVariable')->will($this->returnValue('someSessionValue'));\n $oHelper->expects($this->any())->method('fcpoGetRequestParameter')->will($this->returnValue('someRequestValue'));\n $oHelper->expects($this->any())->method('fcpoGetLang')->will($this->returnValue($oMockLang));\n $oHelper->expects($this->any())->method('getFactoryObject')->will($this->onConsecutiveCalls($oMockRequest, $oMockPayment));\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n\n $this->assertEquals('someTranslatedString', $oTestObject->_fcpoCheckRefNr());\n }", "title": "" }, { "docid": "254740d86f4c718d3d951b5e9a386134", "score": "0.55517906", "text": "public function testGetQuickAdjustmentByFilter()\n {\n }", "title": "" }, { "docid": "d4f3225ef7032b9f7373da5da91ae18d", "score": "0.55514127", "text": "public function testFetchLoanProducts()\n {\n }", "title": "" }, { "docid": "6191072cf211ca4512db2445d369e20c", "score": "0.55493766", "text": "public function testGetAllRates()\n {\n }", "title": "" }, { "docid": "77a1df01ab544cdb7539e499596516d2", "score": "0.5543646", "text": "public function testPurchaseInvoiceSAVERequestSaveGet()\n {\n }", "title": "" }, { "docid": "5c21f1e7d94a6b6a4c8814e42c2d7520", "score": "0.5523444", "text": "public function testGetPaymentStatuses()\n {\n }", "title": "" }, { "docid": "b943ca38304d7e5996e542e6046b1aa6", "score": "0.55214196", "text": "public function testPlaceOrderPositiveAsap() {\n\n }", "title": "" }, { "docid": "a1e2f104bc88a2fe49bafd643c148eb0", "score": "0.55210155", "text": "public function testField_data0()\n{\n\n $actual = $this->cI_DB_result->field_data();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "5162ca39bd0d4cbebf096696073712d3", "score": "0.5518287", "text": "public function testGet()\n {\n \t$this->object->get(0);\n }", "title": "" }, { "docid": "fea3c0229d693622d2c55563d1d68500", "score": "0.551538", "text": "public function testGetRecentProducts()\n {\n }", "title": "" }, { "docid": "e193356328f5e317f9d5f9a8a73dec53", "score": "0.5511936", "text": "public function testGetIndex0()\n{\n\n $actual = $this->elasticaFormatter->getIndex();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "875d18a05a3b0e7cba758e0a01b91f32", "score": "0.55111486", "text": "public function testTargetGet()\n {\n }", "title": "" }, { "docid": "fa15b3e130443f4b979ba8a701271e89", "score": "0.55016637", "text": "public function testGetBalance(){\n\t\t\t// Arrange\n\t\t\t$pm = new PortfolioManager(12);\n\t\t\t// Act\n\t\t\t// Assert\n\t\t\t$this->assertEquals(10000, $pm->getBalance());\n\t\t}", "title": "" }, { "docid": "6f36c510d3f45f8baafd7fddf7d9513a", "score": "0.5494827", "text": "public function testImportationGetProductSample()\n {\n\n }", "title": "" }, { "docid": "286bc88eed04b92e92209791e804d22c", "score": "0.5489991", "text": "public function testRetrieveProduct()\n {\n }", "title": "" }, { "docid": "7e3fbf2bf449ea8295a4b838b1f4da05", "score": "0.54822767", "text": "public function testGetSubscribedServices0()\n{\n\n $actual = $this->translationsCacheWarmer->getSubscribedServices();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "0c8b53c7756b19121cfc42d7bd2d95f1", "score": "0.5477575", "text": "public function testPlaceOrderNegativeAsap() {\n\n }", "title": "" }, { "docid": "c841188167b534466c902a3e5d542c72", "score": "0.5473481", "text": "public function testGetFunctions0()\n{\n\n $actual = $this->securityExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "c0ff42f9a5ebcfd3ec64d4ddae5f44a1", "score": "0.54699546", "text": "public function test__fcGetCurrentVersion_Coverage() \n {\n $oTestObject = oxNew('fcPayOneOrder');\n\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('fcpoGetIntShopVersion')->will($this->returnValue(4800));\n\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n\n $this->assertEquals(4800, $this->invokeMethod($oTestObject, '_fcGetCurrentVersion'));\n }", "title": "" }, { "docid": "b7ec263ad39d141e3a56c34133746b1f", "score": "0.5467413", "text": "function testSetOtherCharges()\n {\n $this->process->setOtherCharges(42.5);\n $this->assertEquals(42.5, $this->process->getOtherCharges());\n }", "title": "" }, { "docid": "dabf32c6e96f27a74d9456d789038f26", "score": "0.5461644", "text": "public function test_getAmount_called_returnAmountWithOutFee()\n {\n $amount = new Money(1210, new Currency('EUR'));\n $fee = new Money(35, new Currency('EUR'));\n $feeLimit = new Money(1200, new Currency('EUR'));\n $sut = new CreditCardChargeEmPay($amount, $fee, $feeLimit);\n $actual = $sut->getAmount();\n $expected = new Money(1210, new Currency('EUR'));\n $this->assertEquals($expected,$actual);\n }", "title": "" }, { "docid": "3f29429f3dd7940f16546ba3b45b9fe9", "score": "0.54568535", "text": "public function testGetClass0()\n{\n\n $actual = $this->entityPopulator->getClass();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
26999f6ed251850dfbf4d8a7900e2c13
delete_location( $name ) Find and delete an existent location
[ { "docid": "64a6ef2502b309293ec6317123a189eb", "score": "0.8043399", "text": "function delete_location( $name ) {\n $name = sanitize_title( $name );\n $locations = array_values( get_option( self::$location_key ) );\n for( $i = 0; $i < count( $locations ); $i++ )\n if( $locations[$i]['name'] == $name ) {\n unset( $locations[$i] );\n update_option( self::$location_key, $locations );\n return true;\n }\n \n return false;\n }", "title": "" } ]
[ { "docid": "27631ee313b7bb8e6f49888895f6599a", "score": "0.714791", "text": "public function remove(string $location): void;", "title": "" }, { "docid": "726b01ffc59a82ab6aff7db28bd435ba", "score": "0.70116043", "text": "function deleteLocation($id) \n\t{\n\t\t\n\t\t $this->db->where('id', $id);\n\t\t $this->db->delete('location');\n\t\treturn 1;\n\t\t// $this->db->delete('employees', array('id' => $id)); // optional method to delete data in one line as an array; just remove the comment tag in front of 'return'.\n\t}", "title": "" }, { "docid": "92591cde0276e6f53683136d17a97b3e", "score": "0.6899602", "text": "function deleteLocation($id) {\r\n\r\n\t\t//Find all users from the database and store in the variable users\r\n\t\t$users = $this->findAllUsers();\r\n\r\n\t\tforeach($users as $user) :\r\n\t\t\t//If a user is location at the location we must set the location_id to 0\r\n\t\t\tif($user['users']['location_id'] == $id) {\r\n\t\t\t\t$this->query('UPDATE users SET location_id=' . 0 .' WHERE id='. $user['users']['id'] .';');\r\n\t\t\t} //end if\r\n\t\tendforeach;\r\n\r\n\t\treturn ($this->query('DELETE FROM locations WHERE locations.id = '. $id .';'));\r\n\r\n\t}", "title": "" }, { "docid": "ee34e65bf1e0f919371e1434114744eb", "score": "0.68649757", "text": "function delete_location($locationinfo){\n\t\t$locationid=$locationinfo[\"locationid\"];\n\t\t\n\t\t$deletequery=\"DELETE FROM gpsdata WHERE id= ?\";\n\t\tif (!($stmt = $this->mysqli->prepare($deletequery)))\n\t\tEgoLib::exit_error(\"db delete prepare statement failed: \". $mysqli->error);\n\n\t\tif (!$stmt->bind_param(\"i\", $locationid))\n\t\tEgoLib::exit_error(\"db binding parameters for delete failed:\" . $stmt->error);\n\n\t\tif (!$stmt->execute())\n\t\tEgoLib::exit_error( \"query execute failed: \" . $stmt->error);\n\t}", "title": "" }, { "docid": "9412205b8f39251115bc6689b299d38b", "score": "0.68041503", "text": "function delete(){\n global $db, $libhtml;\n\n // find out if ward is used\n $db->delete('locations', array('WHERE id = ?',array($this->id), array('integer')));\n $_SESSION[\"feedback\"] .= g_feedback(\"error\", \"This '.$libhtml->local_text['Location'].' has been deleted\");\n\n return true;\n }", "title": "" }, { "docid": "078a21e8411db3e7a811d469209f540e", "score": "0.6581741", "text": "public function delete()\n {\n if ($this->location_id > 0) {\n $query = 'DELETE FROM '. rex::getTablePrefix() .'d2u_courses_locations '\n .'WHERE location_id = '. $this->location_id;\n $result = rex_sql::factory();\n $result->setQuery($query);\n\n // Don't forget to regenerate URL cache\n d2u_addon_backend_helper::generateUrlCache('location_id');\n\n return $result->hasError() ? false : true;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "57610afe49f4afd44c5c6353e92fce68", "score": "0.6527776", "text": "function delete_location() {\n\n mysql_query(\"DELETE FROM org_entities WHERE id = \". intval($_GET[\"id\"]));\n}", "title": "" }, { "docid": "4f5b32b87e13f2f03f3595a53cc8225d", "score": "0.64704067", "text": "private function cleanupLocations() {\n // delete unused locations\n $loc_nids = array_keys($this->location_mapping);\n node_delete_multiple($loc_nids);\n\n // rename HBS Rapperswil -> HBSKMZ Rapperswil\n $node = node_load(6687);\n $node->title = 'HBSKMZ Rapperswil';\n node_save($node);\n }", "title": "" }, { "docid": "2ec79f7da3590b146f858c23ff124441", "score": "0.63372886", "text": "public function destroy(Location $location)\n {\n //\n }", "title": "" }, { "docid": "b861ca8a36f0d7f3d966158b435fcebe", "score": "0.63022536", "text": "public function testDeleteInvalidLocation() {\n\t\t// create a Location and try to delete it without actually inserting it\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->delete($this->getPDO());\n\t}", "title": "" }, { "docid": "957f8c5c9131fc81f459d73277874c1c", "score": "0.6291718", "text": "function deleteLocation($mysqli) {\r\n\t\t$sql = sprintf(\"DELETE FROM `Locations` WHERE `LocationID` = %d\", $mysqli->real_escape_string($_GET['id']));\r\n\r\n\t\tif (!$result = $mysqli->query($sql)) {\r\n\t\t\thttp_response_code(503);\r\n\t\t\techo '<h1>Database Error</h1>';\r\n\t\t\texit(1);\r\n\t\t}\r\n\r\n\t\theader('location: /?action=locations'); // terugkeren naar locations\r\n\t\texit();\r\n\t}", "title": "" }, { "docid": "df38f5deafe5f544531e6f06953ac924", "score": "0.614058", "text": "static public function del($name) {}", "title": "" }, { "docid": "35ee4f43b23743b0c67f0f30b8b0f58e", "score": "0.6112679", "text": "function deleteLocation($la, $c, $l, $m) {\n\n if(array_key_exists($c, $la)) {\n // so the country exists in the array.\n $line = $la[$c];\n $a = explode(\":\", $line);\n\n $test = array_search($l, $a);\n\n\n if($test === false)\n {\n // then the location doesn't exist.\n return 0;\n }\n\n unset($a[$test]);\n $a = array_splice($a, 0);\n\n // now I gotta add everything back to the line.\n\n if(count($a) == 1)\n {\n // then all locations are removed so we remove the country as well.\n unset($la[$c]);\n $la = array_splice($la, 0);\n }\n else\n {\n // else there are still stuff in there.\n $la[$c] = \"$c\";\n foreach($a as $i)\n {\n if(strcmp($c, $i) != 0) {\n $la[$c] = $la[$c] . \":\" . $i;\n }\n }\n $la[$c] = $la[$c];\n }\n }\n else {\n // the country doesn't exists.\n return 0;\n }\n\n exportLocations($la);\n\n return $la;\n }", "title": "" }, { "docid": "b29d5aeb2026cdd1df7a61b636892066", "score": "0.6040511", "text": "public function testDeleteValidLocation() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"location\");\n\n\t\t// create a new Location and insert to into mySQL\n\t\t$location = new Location(null, $this->profile->getProfileId(), $this->payAttention, $this->sinCity, $this->granjalada, $this->stateOfMind, $this->warZone, $this->aptTwo, $this->whatHood);\n\t\t$location->insert($this->getPDO());\n\n\t\t// delete the Location from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"location\"));\n\t\t$location->delete($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the Location does not exist\n\t\t$pdoLocation = Location::getLocationByLocationId($this->getPDO(), $location->getLocationId());\n\t\t$this->assertNull($pdoLocation);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"location\"));\n\t}", "title": "" }, { "docid": "0069b3055ae24fd9b2680c05e3bda8e2", "score": "0.59934163", "text": "abstract public function delete($name);", "title": "" }, { "docid": "1eb7c72696d095e08da131d7202b7353", "score": "0.59182763", "text": "function bc_location_uninstall() {\n}", "title": "" }, { "docid": "858ba0257d513f120205625d958c6a2c", "score": "0.59024674", "text": "public function delete($name);", "title": "" }, { "docid": "b9ace1bc5561606cfe16597061e6adb9", "score": "0.5898059", "text": "function removeFavLocation($username, $place){\n ////$sql = mysql_real_escape_string($sql);\n $sql = \"delete FROM favlocations WHERE username = '\".$username.\"' AND favlocations = '\".$place.\"'\";\n \n $dbh = connectDB();\n $dbh->query($sql);\n $dbh = null;\n}", "title": "" }, { "docid": "67484eb7c7cb8fbca8944a976e062bb0", "score": "0.5860802", "text": "public function delete(int $id): void\n {\n $this->executeOnDatabaseConnection('DELETE FROM location WHERE id=' .$id);\n }", "title": "" }, { "docid": "34886b2061959308269d2fe38070e033", "score": "0.5852657", "text": "public function destroy($id)\n {\n $location = Location::findOrFail($id);\n $location->delete();\n \n return ['message' => 'delete location'];\n }", "title": "" }, { "docid": "6d02ddfe3d7764aa5e003c85565011bd", "score": "0.5817628", "text": "public function destroy(Location $location)\n {\n $name = $location->name;\n\n $location->delete();\n\n return redirect()\n ->route('admin.location.index')\n ->with('message', 'Le lieu de distribution ' . $name . ' a été correctement supprimé');\n }", "title": "" }, { "docid": "2fbd615cbc6e37c5f36f14f76503d8ed", "score": "0.57925344", "text": "public static function deleteLocations($db, $options)\r\n\t\t{\r\n\t\t\tif($db->delete('location', sprintf('%s = %d', 'rsrc_id', $options['rsrc_id']))) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "24f6ab7b0b3713191e206d1e484c33c9", "score": "0.57832366", "text": "public function destroy(location $location)\n {\n //\n }", "title": "" }, { "docid": "9fcd1d0e89ef94ab14c5b32f3eb71319", "score": "0.5772284", "text": "public function deleteWorkshopLocation( $workshopLocID )\n {\n $core = Core::dbOpen();\n $sql = \"SELECT workshopLocationID FROM workshop WHERE workshopLocationID = :id\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':id', $workshopLocID);\n Core::dbClose();\n \n try {\n if( $stmt->execute() ) {\n if( $stmt->rowCount() == 0 ) {\n $core = Core::dbOpen();\n $sql2 = \"DELETE FROM workshop_location WHERE workshopLocationID = :id\";\n $stmt2 = $core->dbh->prepare($sql2);\n $stmt2->bindParam(':id', $workshopLocID);\n Core::dbClose();\n \n try {\n if( $stmt2->execute() )\n return true;\n else\n return false;\n } catch (PDOException $e) {\n return false;\n }\n }\n } return false;\n } catch (PDOException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "e292d7b0808562c1cec723ddd4e5af4d", "score": "0.5768382", "text": "public function destroy($id) {\n \n $location = $this->locationRepository->findById($id);\n\n //$parent_id = $location->parent_id;\n\n // TODO: Check children\n\n $location->delete();\n\n Flash::success('Location succesfully deleted.');\n \n return Redirect::route('admin.locations.index');\n \n }", "title": "" }, { "docid": "902b8e2660f51968737ae8eb674b4f03", "score": "0.574068", "text": "function delete_map_node() {\n\t$user = $_POST['user_id'];\n\t$node = json_decode( stripslashes( $_POST['node'] ), true );\n\n\t$locations = json_decode( get_user_meta( $user, 'mepr_locations', true ), true );\n\n\tforeach( $locations as $key => $location ) {\n\t\t$thisnode = $location['latlng'];\n\n\t\tif( $node['lat'] == $thisnode['lat'] && $node['lng'] == $thisnode['lng'] ) {\n\t\t\tunset( $locations[$key] );\n\t\t\tupdate_user_meta( $user, 'mepr_locations', json_encode( $locations ) );\n\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "83c66e88660206e2f16ba1c9eb44330c", "score": "0.5731634", "text": "public function destroy(Request $request,$id){\n \n $location=Location::find($id);\n\n $location->delete();\n \n return redirect('locations');\n}", "title": "" }, { "docid": "1f8374099367b077df903991742c997c", "score": "0.57234067", "text": "public static function remove($id) {\n $db = Zend_Registry::get('dbAdapter');\n return $db->update('locations', array('deleted' => true), 'locations.id = ' . $id);\n }", "title": "" }, { "docid": "928dbdcdc1fd4424cde306ac88e47ab1", "score": "0.57083493", "text": "public function delete() {\n $current_name = _var( 'current-name' );\n $p = $this->db->prepare(\n \"DELETE FROM countries WHERE country_name=?\"\n );\n $p->bind_param( 's', $current_name );\n $p->execute();\n }", "title": "" }, { "docid": "8145b7735a6386ccf838613ac3aa5f62", "score": "0.56862015", "text": "public function deleteAddress($id, $name, $prename)\n {\n if ($id != 'ID')\n {\n $sql = 'DELETE FROM `' . $this->table . '` WHERE `id` = \"' . $id . '\"';\n }\n else if ($name != \"\" && $prename != \"\")\n {\n $sql = 'DELETE FROM `' . $this->table . '` WHERE `name` = \"' . $name . '\" AND `prename` = \"' . $prename . '\"';\n }\n $db_success = mysql_query($sql)\n or die('Löschen der Daten fehlgeschlagen: ' . mysql_error());\n mysql_close($this->db_link);\n }", "title": "" }, { "docid": "15b9da37fcd3e2bb552c192cd9403269", "score": "0.5683573", "text": "public function delete(){\n\t\t $db = Loader::db();\n\t\t\t$db->Execute(\"DELETE FROM {$this->tableName} WHERE id = ?\", array($this->id));\n $db->Execute(\"DELETE FROM ClinicaPersonnelLocations WHERE personnelID = ?\", array($this->id));\n\t\t}", "title": "" }, { "docid": "fc63b90cc1302426c43cbb16b4e9b121", "score": "0.566393", "text": "public function destroy(GeoLocation $geoLocation)\n {\n //\n }", "title": "" }, { "docid": "4dea246b3a29640f452333cd695d9bd1", "score": "0.5648428", "text": "function delete($name) {\n if ($this->exists($name)) {\n unset($this->store[$name]);\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "934b9d919a9cc07f9aa948243ff1285f", "score": "0.56057835", "text": "public function deleteAboutImgMultiLocation(){\n\t\t\n\t\t\n\t\tif(count($_POST)>0){\t\t\t\n\t\t\t\t\t\t\n\t\t\t$location_id = $_POST['location_id'];\n\t\t\t$photo = $_POST['photo'];\n\t\t\t//echo $_POST['image_path'];die;\n\t\t\t$this->db->where(\"location_id\", $location_id);\n\t\t\t\n\t\t\tif($photo == 'right_photo'){\n\t\t\t\t$query = $this->db->query(\"update tblaboutschoolheader set right_photo='' where location_id=\".$location_id.\"\");\n\t\t\t}else {\n\t\t\t\t$query = $this->db->query(\"update tblaboutschoolheader set left_photo='' where location_id=\".$location_id.\"\");\n\t\t\t}\n\t\t\tif($query)\n\t\t\t{\t\n\t\t\t\t$dir=pathinfo(BASEPATH);\n\t\t\t\t//print_r($dir) ; die;\n\t\t\t\t$img=$dir['dirname'].'/'.$_POST['image_path'];\t\t\t\t\n\t\t\t\tunlink($img);\t\t\t\t\t\n\t\t\t\techo 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo 0;\n\t\t\t}\n\t\t}else{\n\t\t\t\techo 0;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "2216890a4e47da461fc108759c73df59", "score": "0.56008005", "text": "public function destroy(Location $location)\n {\n $image_path = public_path().'uploads/loc_images/'.$location->image;\n //dd($image_path);\n if(File::exists($image_path))\n {\n \n File::delete($image_path);\n //unlink($image_path);\n }\n \n $eventType->delete();\n return redirect()->route('admin.locations.index');\n\n //\n }", "title": "" }, { "docid": "bb0fd07dd1e0bcacec1f89c3555cf0ea", "score": "0.5598704", "text": "function delete($id) {\r\n $req = \"DELETE FROM geolocalisation WHERE id = \".$id;\r\n mysql_query($req) or die(\"********** Erreur de suprission **********<br>\");\r\n echo \"********** Supprission avec succés **********<br>\";\r\n }", "title": "" }, { "docid": "126e5a45ac20c2b45d28a13ce478aa00", "score": "0.55716354", "text": "public function deleteRecordByName($name, $ipAddress);", "title": "" }, { "docid": "fd517d6c4118dbb283ef71fa4aebadd9", "score": "0.5571463", "text": "public function destroy($id)\n {\n $location = Location::find($id);\n $location->localRemove($location->id);\n $location->remove();\n\n return redirect()->route('locations.index');\n }", "title": "" }, { "docid": "7321ee50e48d9ca23ec8a664cfc505ab", "score": "0.55700773", "text": "public function actionDelete_store_location()\n\t{\n\t\t// current product\n\t\t$ids = $_POST['ids'];\n\t\t\n\t\tif (is_array($ids) && sizeof($ids)) {\n\t\t\t$image_base_path = Yii::app()->params['root_url'].'images/stores/';\t\t\t\n\t\t\t\n\t\t\tforeach ($ids as $id) {\n\t\t\t\tif (!$s = Tbl_StoreLocations::model()->findByPk($id)) throw new CException(Yii::t('global','ERROR_INVALID_ID'));\t\n\t\t\t\t\n\t\t\t\tif ($s->image && is_file($image_base_path.$s->image)) unlink($image_base_path.$s->image);\n\t\t\t\t\n\t\t\t\t$criteria=new CDbCriteria; \n\t\t\t\t$criteria->condition='id=:id'; \n\t\t\t\t$criteria->params=array(':id'=>$id);\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// delete all\n\t\t\t\tTbl_StoreLocations::model()->deleteAll($criteria);\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "ae259ebd9aef70db9763b550b611ca9b", "score": "0.55638903", "text": "function deleteOrderAddress($oa_id)\r\n{\r\n\t$myQuery = \"DELETE from `orderAddress` \";\r\n\t$myQuery .= \"WHERE `oa_id` = ? ;\";\r\n \r\n $stat = query($myQuery, $oa_id); \r\n\t\r\n\t\r\n\tif (!($stat === false))\r\n\t{\r\n\t\treturn 'addrsdeleted';\r\n\t}\r\n\telse\r\n\t{\r\n\t\treturn 'addrsndelted';\r\n\t}\r\n\t\t\r\n}", "title": "" }, { "docid": "23963aeb8680ca7517580fb88d0c14cc", "score": "0.55534935", "text": "function deleteLocation()\n{\n $index = '';\n\n if (isset($_GET['i'])) {\n $index = $_GET['i'];\n }\n\n $connect = sqlConnect();\n\n $result = mysqli_query($connect, sprintf(\n 'SELECT location from maps where location_id = %s',\n mysqli_real_escape_string($connect, $index)\n )) or die('Invalid query: ' . mysqli_error($connect));\n\n $location = mysqli_fetch_array($result)[0];\n\n $dynamic = '\n <form action=\"index.php?section=locations&amp;mode=processdelete' .\n '&amp;i=' . htmlspecialchars($index) . '\" method=\"post\">\n <fieldset><legend>Confirm delete</legend>\n <strong>Warning:</strong>\n You\\'ve selected to delete location: <strong>' .\n htmlspecialchars($location) . '</strong><br>\n <strong>ALL RANGES</strong> associated with this location will be\n <strong>REMOVED</strong> from the database!\n <br><br>\n Are you sure you want to proceed?&nbsp;<br>\n <input type=\"submit\" name=\"submit\" value=\"Yes\">\n <input type=\"submit\" name=\"submit\" value=\"No\">\n </fieldset>\n </form>\n ';\n\n return $dynamic;\n}", "title": "" }, { "docid": "caad5c6ca07e67f059323c3dac3f57ae", "score": "0.55376333", "text": "public function destroy($id)\n {\n return $this->destroyModel((new Location()), $id, 'location', '/locations');\n }", "title": "" }, { "docid": "450cbf59d6e169408d5a7fa420aec407", "score": "0.5507925", "text": "public function testDeletePlace()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "1089bd660db14ac0c7c6801d8fbda519", "score": "0.5504432", "text": "public function remove(StorableLocator $storableLocator): void;", "title": "" }, { "docid": "827df5b4c567cdd5d86b574260cdecd7", "score": "0.5502995", "text": "public function destroy($id)\n {\n if(!Gate::forUser(Auth::user())->allows('manage-locations'))\n {\n abort(403, 'Unauthorized action.');\n }\n\n Location::where('id', $id)->delete();\n }", "title": "" }, { "docid": "7565967e4d25c916d0126742efa423b2", "score": "0.5496942", "text": "public function destroy($id)\n {\n $location = Location::findOrFail($id);\n $delete = $location->delete();\n\n if(isset($delete)) {\n return redirect()->route('location.index')\n ->with('message',\n 'Location successfully Deleted.');\n }else{\n return redirect()->route('location.index')\n ->with('message',\n 'Action Failed Please try again.');\n }\n }", "title": "" }, { "docid": "6a5e6955ce78d04c8dee55dbadec7baf", "score": "0.5491803", "text": "public function destroy($id)\n {\n //\n $location=Location::find($id)->delete();\n// User::find($id)->delete();\n return redirect('location/index');\n }", "title": "" }, { "docid": "6e716f25323a498b3fcbda8a8e3cffdc", "score": "0.5481053", "text": "public function locationAndBrandsCleanup() {\n try {\n // check if step has to be performed\n if (!$this->startStep('LocationAndBrandsCleanup')) return true;\n\n // delete unused locations\n $this->cleanupLocations();\n\n // delete unused brands\n $this->deleteTerm('brands', 'KMZ');\n $this->deleteTerm('brands', 'HMZ');\n $this->updateTerm('brands', 'HBS', 'HBSKMZ');\n\n // update location node\n $this->updateEntityType('node', 'nodes/location.node', array(\n 'field_internal_id',\n 'field_standorte',\n ));\n $this->updateView('views/locations.view');\n\n return $this->endStep('LocationAndBrandsCleanup');\n }\n catch (Exception $ex) {\n drupal_set_message(t('LocationAndBrandsCleanup failed: @msg', array('@msg' => $ex->getMessage())), 'error');\n return false;\n }\n }", "title": "" }, { "docid": "201f6d54d34f8f5798df044ce74f2f3d", "score": "0.5478283", "text": "public function forceDeleteByName($name);", "title": "" }, { "docid": "ae5df010521279786963b4c495d0ad05", "score": "0.54670537", "text": "public function destroy($id)\n {\n $location = Location::find($id);\n if(is_null($location))\n return view('admin.404');\n else\n {\n Location::destroy($location->id);\n return redirect()->route('admin.locations.index');\n }\n }", "title": "" }, { "docid": "8d06b63a0498f8972ad00b543e55bbcf", "score": "0.5459883", "text": "public function\n\t\tdelete_page($page_name)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "479771d25357d6faa035f989a95db41d", "score": "0.5454961", "text": "function DeleteNamedEntry($DomainName)\n\t\t{\n\t\t\t$entry = \"zone \\\"\" .$DomainName . \"\\\" { type master; file \\\"/var/named/\" . $DomainName . \".dns\\\"; };\";\n\t\t\t$lines = file(\"/etc/named.conf\");\n\t\t\t\t$ftpuserfile=\"\";\n\t\t\t\tforeach ($lines as $line_num => $line) \n\t\t\t\t\t{\n\t\t\t\t\t\t$pos=strpos($line, $entry);\n\t\t\t\t\t\tif($pos === false){\n\t\t\t\t\t\t\t$ftpuserfile = $ftpuserfile . $line;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t//$ftpuserfile=str_replace($entry ,\"\", $ftpuserfile);\n\n\t\t\t\tif (!$handle = fopen(\"/etc/named.conf\", 'w')) \n\t\t\t\t\t{\n\t\t\t\t\t\t//echo \"Cannot open file (\\\"named.conf\\\") line no 1209\";\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\tif (!fwrite($handle, $ftpuserfile)) \n\t\t\t\t\t{\n\t\t\t\t\t\t//echo \"Cannot write to file (\\\"named.conf\\\") line no 1215\";\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\tfclose($handle);\n\t\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "a4e0adf992d02170f45b336102644773", "score": "0.54380625", "text": "public function delNamedRange($name) {\n\t}", "title": "" }, { "docid": "97efbd5f17c5a4716d1a221f5ddd96f1", "score": "0.54345614", "text": "public function destroy($id)\n {\n $message = $this->productLocation->deleteLocation($id);\n\n return redirect('export/locations')->with('message', $message);\n }", "title": "" }, { "docid": "26c24a2f0b8e7b173f7c93d36b325841", "score": "0.54250395", "text": "function delete($name) {\n $this->vars[$name]='';\n return(0);\n }", "title": "" }, { "docid": "9ec74f59fb2be28969ac8c964449fc3a", "score": "0.5421021", "text": "function delete_portal($x,$y,$realm,$dest_realm)\n{\n\t// Delete from db\n\t$GLOBALS['SITE_DB']->query_delete('w_portals',array('start_location_x'=>$x,'start_location_y'=>$y,'start_location_realm'=>$realm,'end_location_realm'=>$dest_realm),'',1);\n\n\tocw_refresh_with_message(do_lang_tempcode('SUCCESS'));\n}", "title": "" }, { "docid": "31da02fd50e5fbcbef6ccea637929361", "score": "0.5413815", "text": "function delete($item_id, $location_id)\n\t{\n\t\treturn $this->db->delete('location_items_taxes', array('item_id' => $item_id,'location_id' => $location_id)); \n\t}", "title": "" }, { "docid": "f9e5d5f6117a2dbe89b8aab5290b0774", "score": "0.5412883", "text": "function test_deport_import_location()\n\t{\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t// the pre condition ensures this will not be null\n\t\t$this->assertNotEqual($r, null);\n\t\t// delete it from the data base\n\t\t$r->sql_delete();\n\t\t// load it from the database and get NULL to verify its gone\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t$this->assertEqual($r, null);\n\t\t// // now put it back in database - load from file and then insert\n\t\t$new_r = Item::get_by_trip_slug('rtw', LOC_SLUG);\n\t\t$new_r->sql_insert();\n\t\t// finally test it is in database\n\t\t$r = Item::get_by_slug(LOC_SLUG);\n\t\t$this->assertNotEqual($r, null);\n\t}", "title": "" }, { "docid": "5e5890807fba0076540bd2c75d7baf84", "score": "0.5391987", "text": "function deleteCustAddress($ca_id)\r\n{\r\n\t$myQuery = \"DELETE from `custAddress` \";\r\n\t$myQuery .= \"WHERE `ca_id` = ? ;\";\r\n \r\n $stat = query($myQuery, $ca_id); \r\n\t\r\n\t\r\n\tif (!($stat === false))\r\n\t{\r\n\t\treturn 'addrsdeleted';\r\n\t}\r\n\telse\r\n\t{\r\n\t\treturn 'addrsndelted';\r\n\t}\r\n\t\t\r\n}", "title": "" }, { "docid": "b3a3c4df991ef33c7558e19d8b9501be", "score": "0.53909236", "text": "public function destroy(Location $location)\n {\n $location->delete();\n return redirect()->route('locations.index');\n }", "title": "" }, { "docid": "9bcc05956bf6821f25d114aea1ae7772", "score": "0.53895354", "text": "public function delete(string $name)\n {\n\t\t$fileHandler = $this->getFileHandler('r');\n\t\t$tmpHandler = fopen('storage.tmp', 'w');\n\t\t$deleted = false;\n\t\twhile(!feof($fileHandler)){\n\t\t\t$line = fgets($fileHandler);\n\t\t\t$arry = explode('|', $line);\n\t\t\tif(strtolower($arry[0])==strtolower($name)){\n\t\t\t\t$deleted = true;\t\n\t\t\t\tcontinue; //For DELETE operation\n\t\t\t}\n\t\t\tfwrite($tmpHandler, $line);\n\t\t}\n\t\tfclose($tmpHandler);\n\t\t$this->closeFile($fileHandler);\n\n\t\tif($deleted==true){\n\t\t\trename('storage.tmp', 'storage.txt');\n\t\t}else{\n\t\t\tunlink('storage.tmp');\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7e6a6f36e27031b2497eb0346a8d0a69", "score": "0.53869444", "text": "public function destroy($id) //Currently unavailable\n //POST: destroys the geolocation\n {\n // $geolocation = Geolocation::find($id);\n // if($geolocation != null){\n // $geolocation->users()->sync([]);\n // $reviews = $geolocation->reviews;\n // foreach($reviews as &$review){\n // $review->delete();\n // }\n // $geolocation->delete();\n // return Responses::Updated();\n // }\n // else{\n // return Responses::DoesNotExist('Geolocation');\n // }\n }", "title": "" }, { "docid": "0970acf8fdd168509e732f56f44552c4", "score": "0.5385999", "text": "public function destroy(Location $location)\n {\n if($this->useCheck($location) && $location->delete()){\n return redirect()->route('admin.location.index')->with('status', 'Location deleted successfully');\n }\n return back()->with('error', 'Error');\n }", "title": "" }, { "docid": "96b00489e7c0550dcfc026d5610a8f3b", "score": "0.5384774", "text": "public function delete($name)\n {\n unset($this->data[$name]);\n }", "title": "" }, { "docid": "59e799333b76fa14ecfd87f92ae8b246", "score": "0.5371087", "text": "public function deleteAboutImg(){\n\t\t\n\t\t//echo '<pre>'; print_r($_POST); die;\n\t\tif(count($_POST)>0){\t\t\t\n\t\t\t\t\t\t\n\t\t\t$location_id = $_POST['location_id'];\n\t\t\t$this->db->where(\"location_id\", $location_id);\n\t\t\t\n\t\t\tif($this->db->query(\"update tblschool_about_school set photo='' where location_id=\".$location_id.\"\"))\n\t\t\t{\t\n\t\t\t\t/*$dir=pathinfo(BASEPATH);\n\t\t\t\t//echo $dir; die;\n\t\t\t\t$img=$dir['dirname'].'/'.$_POST['image_path'];\t\t\t\t\n\t\t\t\tunlink($img); */\t\t\t\t\t\n\t\t\t\techo 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo 0;\n\t\t\t}\n\t\t}else{\n\t\t\t\techo 0;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "c263dc943e020caad2c4e310f96cd117", "score": "0.5370426", "text": "public function destroy($id)\n {\n //\n $location = Location::findOrFail($id);\n\n if (!$location){\n return redirect()\n ->route('locations.index')\n ->with('warning', 'The Locationo you requested for was not found.');\n }\n\n $location->delete();\n\n return redirect()->route('locations.index')->with('success', \"The <strong>Location</strong> has successfully been archived.\");\n }", "title": "" }, { "docid": "cb0c763b106fc0f48e935eab480b57cf", "score": "0.53648573", "text": "public function delete(string $name): static;", "title": "" }, { "docid": "d7ffa6d914d4105fc073ffc84ef4c541", "score": "0.5355814", "text": "public static function delete($name){\r\n if(self::exists($name)) {\r\n unset($_SESSION[$name]);\r\n }\r\n }", "title": "" }, { "docid": "9a5dfeb522e8b8883397ebfbc0e9d95b", "score": "0.5355336", "text": "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "title": "" }, { "docid": "680d5b9d50b30a45395b377584f7157d", "score": "0.5347006", "text": "public function __unset($name)\r\n {\r\n throw new Xi_Locator_Exception(__METHOD__.' not supported');\r\n }", "title": "" }, { "docid": "0c26a3d65da156a39c961f9986ea1712", "score": "0.5333475", "text": "public function remove($name);", "title": "" }, { "docid": "0c26a3d65da156a39c961f9986ea1712", "score": "0.5333475", "text": "public function remove($name);", "title": "" }, { "docid": "0c26a3d65da156a39c961f9986ea1712", "score": "0.5333475", "text": "public function remove($name);", "title": "" }, { "docid": "c9627e75d413e64208d3103615844581", "score": "0.52987796", "text": "public function destroy(Request $request, Location $location)\n {\n $location_id = $request->input('location_id');\n\n $now = Carbon::now('Africa/Nairobi');\n $delete_location = Location::where(\"id\", $location_id)->delete();\n\n Log::critical(\"ROUTE OF ID \" . $location_id . \" DELETED BY USER ID: \" . Auth::id() . \" NAME \" . Auth::user()->name . \" AT \" . $now);\n\n Toastr::success('Location deleted successfully');\n return back();\n }", "title": "" }, { "docid": "a8803cb75f7d934ad15edcd09b39c290", "score": "0.5291363", "text": "public static function delete($name)\n {\n $pdo = Database::getConnection();\n $query = \"UPDATE section SET deleted = :flag WHERE name = :name\";\n $stm = $pdo->prepare($query);\n $stm->bindValue(':flag', 1);\n $stm->bindValue(':name', $name);\n try {\n return $stm->execute();\n } catch (\\PDOException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "37e149327d7ea35fe9140a8a87c48e51", "score": "0.5286649", "text": "public function deleteDeliveryLocation($id)\n {\n $delivery = $this->deliveryLocation->where('id', $id)->first();\n if($delivery) {\n if ($delivery->delete()) {\n return 'deleted';\n }\n return 'can\\'t be deleted';\n }\n\n }", "title": "" }, { "docid": "cc98759ea7b2fa857040707dab0cce7f", "score": "0.52810097", "text": "public function destroy(Request $request)\n {\n $location= Location::find($request->id);\n\n if($location->restaurants()->count()>0)\n {\n return redirect()->route('backend.dashboard')->with('message','Unable to delete the Location, Please\n move any restaurants that belongs to this Location before delete');\n }\n else{\n $location->delete($request->all());\n return redirect()->route('backend.dashboard')->with('message','Delete Success!');\n }\n }", "title": "" }, { "docid": "400951a363eb4a3abf031b778af6d881", "score": "0.5263824", "text": "public function destroy(Location $location)\n {\n $location->delete();\n\n return redirect('/dashboard/locations')->with('message', 'Location deleted!');\n }", "title": "" }, { "docid": "57993e0b2212bd6e67d770addae6b287", "score": "0.5256366", "text": "public function removeLocation(array $opts = array())\n {\n $this->action('locator.location.remove');\n return $this->_request($opts);\n }", "title": "" }, { "docid": "66d1c769d000d7a725675c803072e74e", "score": "0.525276", "text": "public function delete($location, $postfields = array()){\n $url = self::GraphUrl.OAuthUtil::urlencode_rfc3986($location);\n $postfields = array();\n if(!empty($this->access_token)){\n $postfields[\"access_token\"] = $this->access_token;\n }\n $response = $this->http($url, self::$METHOD_DELETE, $postfields);\n return $this->decode_JSON ? json_decode($response) : $response;\n }", "title": "" }, { "docid": "0eb7aab0ce42151c0221e7d8cc1db171", "score": "0.52438205", "text": "function delete_rso($rsoName) {\n // TODO delete rso\n refresh();\n}", "title": "" }, { "docid": "d5856c2b4cc1994b36f0f3345172d037", "score": "0.52383816", "text": "public function destroy($id)\n {\n $location = Location::findOrFail($id);\n $location->delete();\n \n return redirect()->route('locations.index')\n ->with(\n 'flash_message',\n 'Location successfully deleted.'\n );\n }", "title": "" }, { "docid": "7d9662e9e978f5b630366f07a4aec4db", "score": "0.5233786", "text": "public static function delete($name)\r\n\t{\r\n\t\tif (self::exists($name)) {\r\n\t\t\tunset($_SESSION[$name]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f4a980b6166c470684bd8c401b525a85", "score": "0.5230719", "text": "public function remove($name) {}", "title": "" }, { "docid": "df3a5ee92714532db8860131610cf43d", "score": "0.52272826", "text": "public function removeGPS($id)\r\n {\r\n $this->_bdd->query(\"DELETE FROM `gps` WHERE `id` = '$id'\");\r\n }", "title": "" }, { "docid": "d63ffbb67e08dfc396f9ab91ada5cfb9", "score": "0.52160513", "text": "public static function delete($name) {\n if(self::exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "5996c07692462fa43e1e3750978c1c66", "score": "0.5202681", "text": "public function delete($name)\n {\n return false;\n }", "title": "" }, { "docid": "f3de00d2755da53aa31cf14f044e5557", "score": "0.5193161", "text": "public function destroy(Location $location)\n {\n $location->delete();\n return response()->json([\n 'type' => 'success',\n 'text' => \"De locatie is verwijderd!\"\n ]);\n }", "title": "" }, { "docid": "7b88f642c15dbf968c6d362b89a4448e", "score": "0.51876605", "text": "function remove_by_name($hyperv_discovery_mac) {\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute(\"delete from $this->_db_table where hyperv_ad_mac='$hyperv_discovery_mac'\");\n\t}", "title": "" }, { "docid": "96f22fcff430379231039cf0aa15af78", "score": "0.5179236", "text": "public function unsetLocationId(): void\n {\n $this->locationId = [];\n }", "title": "" }, { "docid": "6274af2895096fbad87f9d7e0643e2b8", "score": "0.51786745", "text": "function delete_path2( $world=0, $thisterritory_id=0, $path_id=0 )\n {\n // Restrict to admin\n if ( !$this->ion_auth->is_admin() )\n {\n log_message('error', 'unathorized access attempt to path tool.');\n redirect($this->config->item('base_url'), 'refresh');\n }\n \n $this->load->model('pathmodel');\n $this->pathmodel->delete($path_id);\n \n $this->load->model('mapmodel');\n if( !isset($world) || $world==0 || !isset($thisterritory_id) || $thisterritory_id==0)\n $page['allterritories'] = $this->mapmodel->get_all();\n else\n {\n $page['allterritories'] = $this->mapmodel->get_all_by_world($world);\n $page['thisterritory'] = $this->mapmodel->get_by_id($thisterritory_id);\n $page['connected'] = $this->mapmodel->get_adjacent_paths($page['thisterritory']->map_id);\n }\n \n $page['message'] = 'Path Deleted!';\n $this->load->view('pathtool2', $page);\n \n }", "title": "" }, { "docid": "09e8c2bb994afa2a084282b8e1caf7ac", "score": "0.51758397", "text": "public static function delete($name){\n if(self::exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "e75abf1835843e3c086a8d3ec7d0237c", "score": "0.51749116", "text": "public function destroy(Location $location)\n {\n $location->delete();\n return response()->json([\n 'message'=>'Location Deleted Successfully!!'\n ]);\n }", "title": "" }, { "docid": "198cdf54abf195d0a7ec026e4dc9c69a", "score": "0.51712626", "text": "function deleteStation($name,$line)\n{\n $station = getStationDB($name, $line);\n\n if (!$station) return \"station does not exist\";\n\n //check if station is terminal\n $stations = getStationsInLine($line);\n\n if ($stations != false) {\n if (sizeof(($stations)) == 2) return \"There are only two stations in the selected line. Try delete line instead\";\n deleteStationDB($station);\n return \"deleting with success\";\n }\n}", "title": "" }, { "docid": "32de5ca79f0b9a6034dcf8e9a7554b96", "score": "0.51639783", "text": "public function destroy(Location $location)\n {\n $location->delete();\n\n return back();\n }", "title": "" }, { "docid": "4ee05621a2109a2ef6e58558af52e08f", "score": "0.51627105", "text": "public function delete(string $name): bool\n {\n }", "title": "" }, { "docid": "21631b15f8e40396bca458046be211ec", "score": "0.5161714", "text": "public static function removeMarker()\r\n { \r\n\t global $conn;\r\n\t\r\n\t //echo \"Check</br>\";\r\n\t //echo $_POST['markerID']; \r\n\t\t$idM = $_POST['markerID'];\r\n\t\techo $_POST['markername']; //echo marker name to alert back in ajax if succesfull\r\n\t\t\r\n try {\r\n // sql to delete a record\r\n $sql = \"DELETE FROM markers WHERE id=$idM\";\r\n\r\n // use exec() because no results are returned\r\n $conn->exec($sql);\r\n echo \" marker deleted successfully\";\r\n }\r\n catch(PDOException $e)\r\n {\r\n echo $sql . \"<br>\" . $e->getMessage();\r\n }\t\t\r\n\t \r\n\t\r\n $conn = null;\r\n\r\n\t}", "title": "" }, { "docid": "cd2c0141416a1c4a32031e1ae5e3b8e0", "score": "0.5161501", "text": "public function delete($id_direccion);", "title": "" }, { "docid": "ce249176c6e581e1d1886ea78ad8831c", "score": "0.5158107", "text": "public function destroy($id)\n {\n Location::find($id)->delete($id);\n\n return redirect()->back()->with('success', 'Location deleted');\n }", "title": "" }, { "docid": "c9771fb00af24c209fb140d3e7631ba6", "score": "0.5157527", "text": "public function deleteLocation(Request $request)\n {\n try{\n $locationId = $request->location_id;\n DB::beginTransaction();\n $location = Salescenterslocations::find($locationId);\n\n if (!empty($location)) {\n $agentIds = Salesagentdetail::where('location_id',$locationId)->pluck('user_id')->toArray();\n\n // Will be deleted with related data\n $telesales = Telesales::whereIn('user_id',$agentIds)->get();\n foreach ($telesales as $key => $telesale) {\n $telesale->delete();\n }\n $userIds = User::whereHas('locations', function ($query) use($locationId) {\n $query->where('location_id',$locationId);\n })\n ->orWhere('location_id',$locationId)\n ->pluck('id')->toArray();\n\n // multiple location assigned users\n $qaIds = User::whereIn('id',$userIds)\n ->has('locations','>',1)\n ->pluck('id')->toArray();\n\n $diffuserIds = array_diff($userIds,$qaIds);\n $allUserIds = array_unique(array_merge($agentIds,$diffuserIds));\n\n Log::info('all user ids: '.print_r($allUserIds,true));\n\n // Will be deleted with related data\n User::destroy($allUserIds);\n $location->delete();\n DB::commit();\n return response()->json([ 'status' => 'success', 'message' => \"Sales center location successfully deleted.\"]);\n } else {\n return response()->json([ 'status' => 'error', 'message'=>'Something went wrong, please try again.' ]);\n }\n } catch(\\Exception $e) {\n DB::rollback();\n Log::error(\"Error while deleting sales center location: \".$e);\n return response()->json([ 'status' => 'error', 'message'=> $e->getMessage()]);\n }\n }", "title": "" } ]
ba2a78d49b2f5c142bae3fb957b7bc87
Scope the query for the given type.
[ { "docid": "94f05323eba1281b22743e2315a85e32", "score": "0.0", "text": "protected function whereType(Builder $query, $type): self\n {\n $query->when($type, static function ($query, $type) {\n return $query->where('type', $type);\n });\n\n return $this;\n }", "title": "" } ]
[ { "docid": "2076ae54e14c76feba700a7ac6b12290", "score": "0.8109204", "text": "public function scopeType($query, $type)\n {\n return $query->whereType($type);\n }", "title": "" }, { "docid": "54f9a64e7b4ae3f5beebea878140bce3", "score": "0.7969236", "text": "public function scopeOfType($query, $type)\n {\n return $query->where('type', $type);\n }", "title": "" }, { "docid": "54f9a64e7b4ae3f5beebea878140bce3", "score": "0.7969236", "text": "public function scopeOfType($query, $type)\n {\n return $query->where('type', $type);\n }", "title": "" }, { "docid": "6b3ed472776b43bb01cc7c1fdaff2171", "score": "0.7327611", "text": "public function scopeOfType(Builder $query, $type)\n {\n return $query->where('type', $type);\n }", "title": "" }, { "docid": "a9ad34c2f5c713dfb222de32543c08f7", "score": "0.7112842", "text": "public function scopeOfSaleType($query, $type)\n {\n return $query->where('sale_type_id', $type);\n }", "title": "" }, { "docid": "8d5c81baae6de7dfe5770826e652196c", "score": "0.7067875", "text": "public function scopeType($query, $type): Builder\n {\n return $query->where('type', $type);\n }", "title": "" }, { "docid": "3ffa315a1c4b411de84236b93b2028ce", "score": "0.67960966", "text": "public function scopeOfType(Builder $query, $typeId)\n {\n if (isset($typeId)) {\n return $query->where('type_id', $typeId);\n }\n }", "title": "" }, { "docid": "6c7df377230d54702cd787db1ec04c9b", "score": "0.6688599", "text": "public function scopeType($query, string $strType)\n {\n return $query->whereHas('references', function ($q) use ($strType) {\n $q->where('reference_id', 'like', '%-' . strtoupper($strType));\n });\n }", "title": "" }, { "docid": "44ef6867f0b14e1b0f807a93ff8e8f75", "score": "0.6490738", "text": "public function scopeOfRoleType($query, $type)\n {\n $type = is_string($type) ? [$type] : $type;\n\n return $query->join('roles', 'roles.id', '=', 'users.role_id')\n ->whereIn('roles.machine_name', $type)\n ->select('users.*');\n }", "title": "" }, { "docid": "af44e7e27d6ca767920ed894a6f6f608", "score": "0.6395939", "text": "public function scopebyTipo($query, $tipo)\n {\n $query->where('tipo', $tipo);\n }", "title": "" }, { "docid": "f6067f5dad04a488331dc32cd15179e3", "score": "0.6381674", "text": "public function query($type) {\n return $this->getRelatedModel()->query($type);\n }", "title": "" }, { "docid": "0ee58265b31243eb6765274906c8cbb4", "score": "0.6251847", "text": "public function scopeOfPropertyType($query, $type)\n {\n return $query->where('property_type_id', $type);\n }", "title": "" }, { "docid": "4245a148b4d780bd47df09736a7b98b1", "score": "0.62116987", "text": "public function scopeDiagnosis ($query, $type)\n {\n DB::enableQueryLog();\n if ($type != null) :\n return $query->whereHas('Diagnosis', function ($q) use ($type)\n {\n $q->where('diagnosislist_id', $type);\n });\n endif;\n\n return false;\n }", "title": "" }, { "docid": "f0f66815ec130dc9ceae168d36ceb673", "score": "0.60247916", "text": "public function query($type)\n\t{\n\t\treturn $this->pixie->db->query_driver('PDO', $this, $type);\n\t}", "title": "" }, { "docid": "690ea38538a6ccd43304ab79bbba61ba", "score": "0.5929414", "text": "protected function scopes(&$query)\n {\n // Concrete class can implement a scopes filter\n // This is in addition of the filters\n }", "title": "" }, { "docid": "ee6fa2325f58f3128b9dec3cc8160c9d", "score": "0.5886538", "text": "public function scopeScope($query)\n {\n $query->where($this->getTable().'.company_id', '=', auth()->user()->company()->id);\n\n return $query;\n }", "title": "" }, { "docid": "c1f1c29f985d6ad4a34d2483550d0a49", "score": "0.5878581", "text": "public function scopeOfParent($q, $parentType, $idparent)\n\t{\n\t\treturn $q->whereParentType($parentType)->whereParentId($idparent);\n\t}", "title": "" }, { "docid": "7b20825a35cdd89281e475c6d403cc9a", "score": "0.5800228", "text": "public function scopeClients($query)\n {\n return $query->where('type', 1);\n }", "title": "" }, { "docid": "9f5d94d1498325934fbe55ff625b02cf", "score": "0.5788544", "text": "public function scopeNaturalPerson($query) {\n\t\treturn $query->where('type', 1);\n\t}", "title": "" }, { "docid": "9f5918f6a17b11cbed53369a78678d48", "score": "0.5767167", "text": "public function setScope($type = 'default', $value = null)\r\n {\r\n $scope = $this->getData('scope');\r\n\r\n if ( !($scope instanceof Mymodules_Google_Model_Calendar_Acl_Rule_Scope) ) {\r\n $scope = Mage::getModel('google/calendar_acl_rule_scope');\r\n }\r\n\r\n $scope->setType($type)\r\n ->setValue($value);\r\n\r\n $this->setData('scope', $scope);\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "c2fe67bbe537cc2aaa9d5a4e84aeeb3f", "score": "0.5763181", "text": "public function scopeTo(Builder $query, string $webhook_type): Builder\n {\n return $query->where(compact('webhook_type'));\n }", "title": "" }, { "docid": "80c5e0647d9d4ccebe5bc7549cfb06a2", "score": "0.5752884", "text": "public function scopeProviders($query)\n {\n return $query->where('type', 2);\n }", "title": "" }, { "docid": "4230ffb022bb75a904d85da2e8af4d02", "score": "0.5686658", "text": "protected function _query($type, array $query = []) {\n return $this->__query($this->index(), $type, $query);\n }", "title": "" }, { "docid": "0063b4a1b7b4c7772c43cbd7984fa646", "score": "0.5674089", "text": "public function getScope(): Scope;", "title": "" }, { "docid": "8ef8f142d1eee52eaec48936ba4f2ee8", "score": "0.5667748", "text": "public function scopeInTeam($query, $team) {\n\n # TOCHECK\n Return $query;\n\n }", "title": "" }, { "docid": "9f270dc35325429a4667f2085101fa26", "score": "0.5665713", "text": "public function scopeByDueDateType($query, $due_date_type)\n {\n if($due_date_type == 'today') {\n return $query->whereDate('due_date', date('Y-m-d'));\n } elseif($due_date_type == 'this_week') {\n return $query->whereBetween('due_date', [Carbon::now()->startOfWeek(), Carbon::now()->endOfWeek()]);\n } elseif($due_date_type == 'overdue') {\n return $query->whereDate('due_date','<',date('Y-m-d'));\n }\n }", "title": "" }, { "docid": "518133362dad080d617cc46694d41beb", "score": "0.5602412", "text": "public function scopeQualifyForSupplier($query, $supplier_id, $currency_id) \n {\n\n return $query;\n }", "title": "" }, { "docid": "12af68afe32a9c38450e6f2ee647e0f9", "score": "0.5589557", "text": "public function scopeLegalPerson($query) {\n\t\treturn $query->where('type', 0);\n\t}", "title": "" }, { "docid": "cc1701625c97d56d3cbbaa7d9b4fd020", "score": "0.55481684", "text": "public function scopeSearch($query){\n if (request()->has('search_query') && !empty(request()->search_query) && request()->has('search_columns') && !empty(request()->search_columns) ) {\n \t$query = $this->getQuery($query , request()->search_columns , request()->search_query );\n }else{\n \tif (request()->has('search_query') && !empty(request()->search_query)) {\n \t\t$query = $this->getQuery($query , $this->fillable , request()->search_query );\n \t}\n }\n\n \n \n \n \n \n return $query;\n }", "title": "" }, { "docid": "6c876f743735fd2f334b2dfc2773251e", "score": "0.55351603", "text": "public function ComputeValues()\n\t{\n\t\t$oAttDef = MetaModel::GetAttributeDef(get_class($this), 'oql_scope');\n\t\t$sType = ($oAttDef->IsNull($this->Get('oql_scope'))) ? 'simple' : 'advanced';\n\n\t\t$this->Set('type', $sType);\n\n\t\treturn parent::ComputeValues();\n\t}", "title": "" }, { "docid": "8cc44678edec4f8090815e121893413d", "score": "0.55303437", "text": "protected function getQueryType()\n {\n }", "title": "" }, { "docid": "98d61c9e24d14cfbde1002a5f70de145", "score": "0.5528409", "text": "public function scopeSocio($query, $rut)\n {\n if ($rut) {\n $socio_id = Socio::obtenerSocioPorRut($rut);\n if($socio_id != null){\n return $query->orWhere('socio_id', '=', $socio_id->id);\n }\n }\n }", "title": "" }, { "docid": "818ba3f45a5b4c2258a03af49b650535", "score": "0.5515257", "text": "public function scopeForOwner($query)\n {\n return $query;\n }", "title": "" }, { "docid": "cdb3f10c3f1f8caeed498b4039e2c69c", "score": "0.55130297", "text": "public function scopeQType($qtype_id) {\n $qsorts = QSortable::where('qpackage_id', '=', $this->id)\n ->where('qtype_id', '=', $qtype_id)\n ->orderBy('index', 'asc')->get();\n\n // Get ALL the question that have the asked subject (qtype)\n $q = Question::where('qtype_id', '=', $qtype_id);\n\n // Then we order the $q according to randomized $qsorts order\n $orderstr = 'FIELD(id';\n foreach($qsorts as $qsort) {\n $q_id = $qsort->question_id;\n $orderstr .= ', \"' . $q_id . '\"';\n }\n $orderstr .= ')';\n $q->orderByRaw($orderstr);\n\n return $q;\n }", "title": "" }, { "docid": "bec959291c96ecf4987c4c126f8c6a2b", "score": "0.55092025", "text": "public function scopeStatus($query, $status = false) {\n $bones = \\App::make('bones');\n\n // If the user is logged in and a status is specific, restrict\n if (Auth::check() && $status) {\n $query->where('status', $status);\n\n // If not, default to only published entries\n } else if (!Auth::check() || !$bones->isAdminView()) {\n $query->where('status', \\Christie\\Bones\\Libraries\\Bones::STATUS_PUBLISHED);\n }\n\n return $query;\n }", "title": "" }, { "docid": "f48b888be28977951e6b7dab9cf32a27", "score": "0.55028266", "text": "public function scopeUsuario($query, $user_id){\n $query->where(\"user_id\",$user_id);\n }", "title": "" }, { "docid": "9b267957b17d95ab3768106e2fa3c084", "score": "0.5458573", "text": "public function scopeStatus($query, $status)\n {\n return $query->where('status', $status);\n }", "title": "" }, { "docid": "9b267957b17d95ab3768106e2fa3c084", "score": "0.5458573", "text": "public function scopeStatus($query, $status)\n {\n return $query->where('status', $status);\n }", "title": "" }, { "docid": "f5a871d25456240d10f83f4cb3f59215", "score": "0.5444802", "text": "function go($type = ''){\n\t\t$query = $this->getQuery();\n\t\treturn $this->find_by_sql($query, $type);\n\t}", "title": "" }, { "docid": "241e120575b38c20ee2c28598630f5ca", "score": "0.5440418", "text": "public function scopeFilterTypes($query, $types)\n {\n return $query->whereIn('type', $types);\n }", "title": "" }, { "docid": "16bb9434624923cdac7bbe033baaddee", "score": "0.5437415", "text": "public function scopes(){\n return array(\n 'approval' => array(\n 'condition' => 'type=1',\n ),\n 'quote' => array(\n 'condition' => 'type=2',\n )\n );\n }", "title": "" }, { "docid": "1827bb6366ac9aa6592ff2f9c87179f2", "score": "0.5404073", "text": "public function scopeStatusOf($query, $status)\n {\n return $query->where('status', $status);\n }", "title": "" }, { "docid": "198bd002148c3f24acaffd03dab49217", "score": "0.53968143", "text": "public function getQueryScope()\n {\n return $this->getQuery();\n }", "title": "" }, { "docid": "ccda3bfb3e7fb1b6d58e7e9b74df60d0", "score": "0.53686637", "text": "protected function getScope($type)\n {\n switch ($type) {\n case AbstractFee::CART_TYPE:\n return 'mageworxFeeForm';\n case AbstractFee::SHIPPING_TYPE:\n return 'mageworxShippingFeeForm';\n case AbstractFee::PAYMENT_TYPE:\n return 'mageworxPaymentFeeForm';\n case AbstractFee::PRODUCT_TYPE:\n return 'mageworxProductFeeForm';\n default:\n return 'mageworxFeeForm';\n }\n }", "title": "" }, { "docid": "08c1af409c8b4422c846c10870307385", "score": "0.5362734", "text": "public function scopeStatus($query) {\n return $query->where('status', 'public');\n }", "title": "" }, { "docid": "457730cc9b15a2592085e47bb2320276", "score": "0.53338677", "text": "public function scopeFromSource($query, $source)\n {\n return $query\n ->where('source_type', get_class($source))\n ->where('source_id', $source->getKey());\n }", "title": "" }, { "docid": "5d59e7be7dbcd8b16b19858a8e31c03f", "score": "0.5333037", "text": "public function scopeFilter($query, $request)\n {\n return (new QueryFilter($request))->apply($query);\n }", "title": "" }, { "docid": "5597518538a856a8f3a9527a5dfecb85", "score": "0.5315974", "text": "protected function query(string $type = null): Builder\n {\n return $this->taxonomy->newQuery()\n ->orderBy('order')\n ->orderBy('name')\n ->tap(function (Builder $query) use ($type) {\n if ($type) {\n $query->where('type', $type);\n }\n });\n }", "title": "" }, { "docid": "8c3463ae6f752fc941af33adb91b665d", "score": "0.5312668", "text": "public function createQuery($type, $value = null)\n {\n return $this->searchEngine->createQuery($type, $value);\n }", "title": "" }, { "docid": "3c0a7ec65c15094683be39f27d56b7d5", "score": "0.53121644", "text": "public function makeSQL( $type ) {\n $this->pager->setTotal( $this->count() );\n $this->pager->setQuery( $this );\n return parent::makeSQL( $type );\n }", "title": "" }, { "docid": "4016f73d4b7e22b43f311da01b805c03", "score": "0.53112125", "text": "public function getQueryType();", "title": "" }, { "docid": "8a8da57a82a4e5ddc7f3969fa1f8362c", "score": "0.53022707", "text": "protected function _all($type) {\n return $this->__query($this->index(), $type);\n }", "title": "" }, { "docid": "cf975cd7f6321ddf3063707f91c93cef", "score": "0.529619", "text": "public function scopeMy($query)\n {\n return $query->where('created_by', auth()->user()->id);\n }", "title": "" }, { "docid": "bf843d41542d87469abd7973b64e1c31", "score": "0.5292645", "text": "public function getScope();", "title": "" }, { "docid": "83a259356b9479ba497a32e619ab58cf", "score": "0.52879345", "text": "public function scopeByStore($query, $store_id)\n {\n return $query->where('store_id', $store_id);\n }", "title": "" }, { "docid": "83a259356b9479ba497a32e619ab58cf", "score": "0.52879345", "text": "public function scopeByStore($query, $store_id)\n {\n return $query->where('store_id', $store_id);\n }", "title": "" }, { "docid": "52e20dfa75131e84a56c780b68314da1", "score": "0.5285734", "text": "public function scopePost($query)\n {\n $query->with('author')->where('type', '=', self::POST);\n }", "title": "" }, { "docid": "6b6aaa313e07a9114f3fb0f8363732e4", "score": "0.52840793", "text": "public function scopeWithProfilerOptions(Builder $query, $type, EntryQueryOptions $options): Builder\n {\n $this->whereType($query, $type)\n ->whereBatchId($query, $options)\n ->whereTag($query, $options)\n ->whereFamilyHash($query, $options)\n ->whereBeforeSequence($query, $options)\n ->filter($query, $options);\n return $query;\n }", "title": "" }, { "docid": "f6b5cbfcf751b87d69be7787afd8b6c3", "score": "0.52834105", "text": "public function scopePage($query)\n {\n $query->with('author')->where('type', '=', self::PAGE);\n }", "title": "" }, { "docid": "84cdf0ea74753d58eb51ce1a2b2266ff", "score": "0.5250809", "text": "public function scopeSearched($query) // this is convention method\n {\n\n $search = request()->query('search');\n\n if (!$search) {\n\n return $query->published();\n\n }\n\n return $query->published()->where('title', 'LIKE', \"%{$search}%\");\n\n }", "title": "" }, { "docid": "03887db84e399e32381f10dcbf725fd9", "score": "0.5249539", "text": "public function scopeOfCity($query, $city) {\n\n $cityId = null;\n\n if ($city instanceof City) {\n $cityId = $city->id;\n } elseif (is_numeric($city)) {\n $cityId = $city;\n } else {\n error_log(\"invalid city argument: value '$city', needs City or int\");\n }\n\n if ($cityId) {\n $query->where('universities.city_id', '=', $cityId);\n }\n\n return $query;\n }", "title": "" }, { "docid": "02710adfe8ac23ab7aef3b49da4c2e8f", "score": "0.52303755", "text": "public function search($query, $type = '', $offset = 0);", "title": "" }, { "docid": "4dc072c73a14a535a9d209b28c34c6e6", "score": "0.52174866", "text": "public function scopeSearch($query)\n {\n $keyword = request('q');\n if ($keyword) {\n $model = $query->getModel();\n $searchable = $model->searchable;\n\n $local = Arr::where($searchable, function ($value, $key) {\n return is_numeric($key);\n });\n\n foreach ($local ?? [] as $key => $field) {\n $where = $key == 0 ? 'where' : 'orWHere';\n $query = $query->{$where}($field, 'like', \"%$keyword%\");\n }\n\n $relations = Arr::where($searchable, function ($value, $key) {\n return is_string($key);\n });\n\n foreach ($relations ?? [] as $key => $field) {\n $fields = Arr::wrap($field);\n $whereHas = empty($local) && $key == 0 ? 'whereHas' : 'orWhereHas';\n $query = $query->{$whereHas}($key, function ($query) use ($fields, $keyword) {\n foreach ($fields as $key => $field) {\n $where = $key == 0 ? 'where' : 'orWHere';\n $query->{$where}($field, 'like', \"%$keyword%\");\n }\n });\n }\n\n return $query;\n }\n }", "title": "" }, { "docid": "24dbe25f35baee93488153db693bf95e", "score": "0.52104086", "text": "public function createFindQuery( $type, ezcSearchDocumentDefinition $definition );", "title": "" }, { "docid": "c8dc9fb6a1cf0f64cb86152ec536cce4", "score": "0.5196407", "text": "public function scopeSearchByUser($query, $user_id)\n {\n if (isset($user_id) && $user_id !== null) {\n return $query->where('user_id', $user_id);\n }\n }", "title": "" }, { "docid": "ea5c48bcd22934294ac694561c53101a", "score": "0.51945883", "text": "public function scopeFilter($query, array $request)\n {\n return (new QueryFilter($request))->apply($query);\n }", "title": "" }, { "docid": "e5b7e4a4d5448a258269c5964b64eeb0", "score": "0.51939905", "text": "public function scopeRestrict($query) {\n return $query->currentSite()->visibleBy()->status();\n }", "title": "" }, { "docid": "dc241e23e7ed982a6ac80f5cd9671da4", "score": "0.51922107", "text": "public function getQueryScope()\n {\n return $this->query_scope;\n }", "title": "" }, { "docid": "a9a924c5f3775a5656a92bc389d72cc2", "score": "0.51871306", "text": "public function scopeEventType($query, array $event_types) {\n return $query->whereIn('events.event_type_id', $event_types);\n }", "title": "" }, { "docid": "a0454aba44785d0fbac04ad6f8536150", "score": "0.5186491", "text": "public function implement_query_scope()\n {\n \\App\\Models\\Pessoa::factory()->count(2)->create(['tipo_pessoa_id'=>1]);\n \\App\\Models\\Pessoa::factory()->count(3)->create(['tipo_pessoa_id'=>2]);\n $lojistas = \\App\\Models\\Lojistas::get();\n\n $this->assertCount(3, $lojistas);\n }", "title": "" }, { "docid": "b7eef1f2d8056c4f5ea10bfa8e759dc1", "score": "0.51710457", "text": "public function scopeSalesAccounts($query)\n {\n return $query\n ->where('is_accountable', 1)\n ->where(function ($x) {\n $x\n //Bring all Income Types.\n //Without worring about sub_types because we need to bring all.\n ->where('type', 4)\n //Bring sub_type = Fixed Asset (Type = Asset) incase you want to sell a car or house.\n ->orWhere(function ($y) {\n $y\n ->where('type', 1)\n ->where('sub_type', 9);\n });\n });\n }", "title": "" }, { "docid": "8863612e2d197252237b6b18ef4a639e", "score": "0.51700646", "text": "public function scopeVisibleBy($query, $level = false, $or_root = false) {\n\n // Use the current user level, if available\n if ($level === false && Auth::check()) {\n $level = Auth::user()->level;\n\n // Default to public\n } else if ($level === false) {\n $level = \\Christie\\Bones\\Libraries\\Bones::LEVEL_PUBLIC;\n\n }\n\n if ($or_root) {\n $query->where(function($query) use($level) {\n $query->where('level', '<=', $level);\n $query->orWhere('level', '>=', \\Christie\\Bones\\Libraries\\Bones::LEVEL_SYSTEM);\n });\n } else {\n $query->where('level', '<=', $level);\n }\n\n return $query;\n }", "title": "" }, { "docid": "262bce35a730391e5e97e5117e5dbbdb", "score": "0.51546144", "text": "public function find(string $type = 'all', mixed ...$args): QueryInterface;", "title": "" }, { "docid": "1a0d77f659c988a1e7a63d54bd993ea1", "score": "0.5154317", "text": "function aurum_search_page_filter_by_post_type( $query ) {\n\t\n\tif ( $query->is_main_query() && $query->is_search() ) { \n\t\t\n\t\t$query->set( 'posts_per_page', apply_filters( 'laborator_search_results_count', 10 ) );\n\t\t\n\t\tif ( isset( $_GET['type'] ) ) {\n\t\t\t$post_type = sanitize_title_for_query( $_GET['type'] );\n\t\t\t$query->set( 'post_type', $post_type );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "85d45df3fed115f1cab792e6a767a330", "score": "0.51414275", "text": "public function scopeActive($query)\n {\n $query->where('active', 1);\n }", "title": "" }, { "docid": "f291f3246b9ea002d02db6ed084f4356", "score": "0.5140366", "text": "public function scopeMine($query)\n {\n //return $query->where('user_id', Auth::user()->id);\n }", "title": "" }, { "docid": "e0e94cb39cfd7f4a3a15abb8a7372644", "score": "0.51311153", "text": "public function scopeSearched($query)\n {\n $search = request()->query('search');\n\n if (!$search && $search != 0) {\n return $query;\n }\n\n return $query->where('number', 'LIKE', \"%{$search}\");\n }", "title": "" }, { "docid": "58b2574200792ee8984fdbe887f73236", "score": "0.5125844", "text": "public function setQueryScope($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\Firestore\\Admin\\V1\\Index\\QueryScope::class);\n $this->query_scope = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0db51f60b94434cd70b4ab1fd6a9ff8e", "score": "0.51256114", "text": "public function scopeUserCart($query, $userId)\n{\n return $query->where('user_id', $userId)->first();\n}", "title": "" }, { "docid": "8d027ca887d249557b9a4216ff136240", "score": "0.51176137", "text": "public function scopeUser($query)\n\t{\n\t\treturn $query->where('user_id', 'LIKE', Auth::user()->id);\n\t}", "title": "" }, { "docid": "54b20ae19d7be8525752faee4f8a0e8e", "score": "0.51167953", "text": "public function scopeGetByUser($query, $id)\n {\n $query->where('user_id', $id);\n }", "title": "" }, { "docid": "1860fcbc36a0ab896cad5ec8556a9609", "score": "0.51135516", "text": "public function scopeForRole($query, $role)\n {\n if ($role === Role::ADMIN) {\n return $query;\n }\n\n if ($role === Role::AUTHOR) {\n return $query->whereReviewerId(Auth::user()->id);\n }\n\n if ($role === Role::MEMBER) {\n return $query->whereUserId(Auth::user()->id);\n }\n }", "title": "" }, { "docid": "702cad63f44bc3a237fb52eedb2e986c", "score": "0.5110184", "text": "public function scopeChoiceStatus($query, $status)\n\t{\n\t\tif ($status == Question::STATUS_NO_STATUS) {\n\t\t\treturn $query;\n\t\t}\n\t\telseif ($status == Question::STATUS_SOLVED ||\n\t\t\t$status == Question::STATUS_AUTO_SOLVED) {\n\t\t\treturn $query->solved();\n\t\t}\n\t\telse {\n\t\t\treturn $query->where('status', $status);\n\t\t}\n\t}", "title": "" }, { "docid": "735627f60c1cd177314e76caea254e1b", "score": "0.5108494", "text": "public function scopeActive($query) {\n $query->where('active', '=', 1);\n }", "title": "" }, { "docid": "582282108c915066b1a72d1580d46a25", "score": "0.5101402", "text": "public function scopeMostWanted($query)\n\t{\n\t\treturn $query->where(\"status\",'=',1);\n\t}", "title": "" }, { "docid": "2bb9e5c362ded943f618225aa704412c", "score": "0.5098772", "text": "public function getQueryType() : ?\\GraphQL\\Type\\Definition\\Type\n {\n }", "title": "" }, { "docid": "27537e39c07d603688e69ab28bc9d188", "score": "0.5087244", "text": "protected function _scope($query, $foreignKeyValue = null)\n {\n $config = $this->getConfig();\n\n if (is_array($config['scope'])) {\n $query = $query->where($config['scope']);\n }\n if (is_callable($config['scope'])) {\n $query = $config['scope']($query);\n }\n if($config['foreignKey'] && $foreignKeyValue != null) {\n $query = $query->where([$config['foreignKey'] => $foreignKeyValue]);\n }\n\n return $query;\n }", "title": "" }, { "docid": "7629090b127a5d34f0532acb3319b484", "score": "0.5073321", "text": "public function scopeOnline($query)\n {\n return $query->where('payment_type', 0);\n }", "title": "" }, { "docid": "fbd8191ec480bd1c4e3c4b245da8e446", "score": "0.5071528", "text": "public function scopeBuscarSolicitudesPorEntidad($query,$identidad)\n\t{\n\t\t\n\t\t$query->where('solicitud.identidad','=',$identidad);\n\t\t\n\t\t$query->select('solicitud.*');\n\t\treturn $query;\n\n\t}", "title": "" }, { "docid": "23db0ce4d498b4e715ab277173aae348", "score": "0.50686836", "text": "private function scopeCondition()\n {\n $theScope = $this->scopeName();\n\n if ($theScope === null) {\n throw new NullScopeException('You cannot pass in a null scope into Listify. It breaks stuff.');\n }\n\n if ($theScope === $this->defaultScope) {\n return $theScope;\n }\n if (is_string($theScope)) {\n //Good for you for being brave. Let's hope it'll run in your DB! You sanitized it, right?\n $this->stringScopeValue = $theScope;\n return $theScope;\n }\n if (! is_object($theScope)) {\n throw new InvalidScopeException('Listify scope parameter must be a String, an Eloquent BelongsTo object, or a Query Builder object.');\n }\n\n $reflector = new \\ReflectionClass($theScope);\n if ($reflector->getName() == 'Illuminate\\Database\\Eloquent\\Relations\\BelongsTo') {\n $relationshipId = $this->getAttribute($theScope->getForeignKey());\n\n if ($relationshipId === null) {\n throw new NullForeignKeyException('The Listify scope is a \"belongsTo\" relationship, but the foreign key is null.');\n }\n\n return $theScope->getForeignKey().' = '.$this->getAttribute($theScope->getForeignKey());\n }\n if ($reflector->getName() != 'Illuminate\\Database\\Query\\Builder') {\n throw new InvalidScopeException('Listify scope parameter must be a String, an Eloquent BelongsTo object, or a Query Builder object.');\n }\n $theQuery = ( new GetConditionStringFromQueryBuilder())->handle($theScope);\n $this->stringScopeValue = $theQuery;\n\n return $theQuery;\n }", "title": "" }, { "docid": "8824628b9f40d7efa2e159e46eb193e1", "score": "0.506208", "text": "public function scopeInventories($query)\n {\n return $query\n ->where('type', 1)\n ->where('sub_type', 8)\n ->where('is_accountable', 1);\n }", "title": "" }, { "docid": "f5c2971cd1f633cbeb5e444eb830a608", "score": "0.5060539", "text": "public function scopeSearch($query, $filter)\n {\n return $query->where('date', '=', $filter)\n // INNER JOIN dealers d on d.id=t.id_dealer\n ->join('dealers', 'tasks.id_dealer', '=', 'dealers.id') \n ;\n \n }", "title": "" }, { "docid": "3360353294f7979ebcf7c5442174702d", "score": "0.5049058", "text": "public function getQueryBuilder($type='default') {\n\t\treturn isset($this->queryBuilders[$type]) ? Injector::inst()->create($this->queryBuilders[$type]) : Injector::inst()->create($this->queryBuilders['default']);\n\t}", "title": "" }, { "docid": "76cd9fc70fed26a4b0dcfcb9b800e5e5", "score": "0.5047823", "text": "public function scopePrimeiro($query)\n {\n return $query->where('ordem', 1);\n }", "title": "" }, { "docid": "6240d4b9ccecde88259ceb9ae9a99f0a", "score": "0.50431865", "text": "public function scopeWithKeyword($query, $keyword)\n {\n return $query->where('name', 'like', '%'.$keyword.'%');\n }", "title": "" }, { "docid": "98a7f57a6d00c3a9d08c872ea084d1df", "score": "0.50390524", "text": "public function scopeSearch($query, $filter)\n {\n return $query->where('name', 'LIKE' , \"%$filter%\");\n }", "title": "" }, { "docid": "3b3d1e52edfb2dc7dbd4a1edfa014486", "score": "0.50389296", "text": "public function scopeOwned($query)\n {\n return $query->where('user_id', auth()->user()->id);\n }", "title": "" }, { "docid": "3bdffdabf186393634152f095a62dfcc", "score": "0.5038392", "text": "public function scopePorAnno( $query, $anno=null ) {\n return $query;\n }", "title": "" }, { "docid": "9633281b06fae85fa3986b20fc7a397a", "score": "0.50367826", "text": "public function scopeTo($query, $to)\n {\n $query->where('invoice_date', '<=', $to);\n }", "title": "" }, { "docid": "5dee872cde92f71a2c2be3ac912a022a", "score": "0.5034104", "text": "public function queryFilter($query)\n {\n global $pagenow;\n\n if (!is_admin() || !$pagenow || $pagenow !== 'edit-comments.php' || !isset($_GET['post_type']) || !$_GET['post_type']) {\n return;\n }\n\n $query->set('post_type', $_GET['post_type']);\n }", "title": "" }, { "docid": "7c1c9351484b6a5dedb0a40de3474d6d", "score": "0.50331384", "text": "public function scopeStars($query)\n\t{\n\t\treturn self::select_stars($query);\n\t}", "title": "" } ]
f036bb1ca5cf1c89504da131e154ef15
Permet d'afficher le tableau des mois
[ { "docid": "d5f1a39041ee142f57c1b665064f5840", "score": "0.0", "text": "function affichageTableau($tab,$tabColor,$key){\n $j=1;\n $s=1;\n $x=0;\n echo '<table class=\"tab\">';\n for($i=1;$i<=4;$i++){//affichage des lignes\n $k=0;\n echo '<tr class=\"row\" style=\"background-color:'.$tabColor[$x].'\">';\n while($j<=12){//affichage des numéros de mois\n\n echo '<td class=\"data\">';\n echo $j;\n echo '</td>';\n echo '<td class=\"data\">';\n echo $tab[$j][$key];\n echo '</td>';\n $k++;\n $j++;\n if($k==3){//arrête l'affichage pour faire un retour à la ligne\n break;\n $s++;\n }\n }\n $x++;\n echo '</tr>';\n }\n echo '</table>';\n }", "title": "" } ]
[ { "docid": "6a33bfdaec0c8230278f851b1ef79669", "score": "0.6514752", "text": "public function tabMois()\n\t\t\t\t{\n\t\t\t\t\treturn $this->_Mois;\n\t\t\t\t}", "title": "" }, { "docid": "396a20c01fdea7ef791bd49aa101b6b2", "score": "0.61923647", "text": "function giveMois($mois){\n\t\tswitch($mois){\n\t\t\tcase '01' : $retour='Janvier';break;\n\t\t\tcase '02' : $retour='Février';break;\n\t\t\tcase '03' : $retour='Mars';break;\n\t\t\tcase '04' : $retour='Avril';break;\n\t\t\tcase '05' : $retour='Mai';break;\n\t\t\tcase '06' : $retour='Juin';break;\n\t\t\tcase '07' : $retour='Juillet';break;\n\t\t\tcase '08' : $retour='Août';break;\n\t\t\tcase '09' : $retour='Septembre';break;\n\t\t\tcase '10' : $retour='Octobre';break;\n\t\t\tcase '11' : $retour='Novembre';break;\n\t\t\tcase '12' : $retour='Décembre';break;\n\n\t\t}\n\t\treturn $retour;\n\t}", "title": "" }, { "docid": "a5e42d53aab09555facd7ec56f8e26bf", "score": "0.6007173", "text": "public function metasPorMeses()\r\n {\r\n $sql = \"SELECT u.id, CONCAT(u.nombre,' ',u.paterno,' ',u.materno) as nombre,m.meta,m.mes,m.gestion\r\n FROM usuarios u\r\n INNER JOIN metas m ON u.id = m.usuario_id AND gestion = YEAR(NOW())\r\n WHERE u.nivel =2 AND u.habilitado = 1\r\n ORDER BY u.id, m.mes ASC\";\r\n $db = new Consultas();\r\n return new Resultset(null, $db, $db->getReadConnection()->query($sql)); \r\n }", "title": "" }, { "docid": "2ce465680037ddcc84a4c1491b40cf2c", "score": "0.5949603", "text": "public function getTimetable();", "title": "" }, { "docid": "0f8328b5dc0649fd4a54d82aceca6b4f", "score": "0.5935647", "text": "public function getMensual(){\r\n $consulta=\"SET lc_time_names = 'es_ES'\"; \r\n $sql=\"SELECT e.id, e.nombre, f.nombre_falta, f.multa, b.nombre_base, DATE_FORMAT(fecha,'%d %M %Y')as'fecha',\r\n r.entrada, r.salida, hour(TIMEDIFF(salida, entrada)) \r\n as'horas' , ':' , minute(TIMEDIFF(salida, entrada))as'minutos', ':', \r\n second(TIMEDIFF(salida ,entrada))as 'segundos',\r\n TIMESTAMPDIFF( minute, entrada, salida )*b.contingencia-f.multa as 'saldo',DATE_FORMAT(fecha,'%M')as'Mes'\r\n FROM registros r \r\n INNER JOIN empleados e ON r.empleado_id=e.id\r\n INNER JOIN bases_cotizacion b ON e.bases_id=b.id\r\n INNER JOIN faltas f on f.id=r.falta_id\r\n WHERE MONTH(fecha) = MONTH(CURDATE()) AND e.id={$this->getId()}\r\n ORDER BY fecha ASC \";\r\n \r\n \r\n \r\n $usuario = $this->db->query($consulta);\r\n $usuario = $this->db->query($sql); \r\n //echo $sql;\r\n return $usuario; \r\n }", "title": "" }, { "docid": "63037bf47cb4aa46f5e80557e757e269", "score": "0.5835862", "text": "function donner_mois_annee(){\r\n\t\t$mois \t=\t[\r\n\t\t\t\t\t\t'1' \t=> 'Janvier',\r\n\t\t\t\t\t\t'2' \t=> 'Février',\r\n\t\t\t\t\t\t'3' \t=> 'Mars',\r\n\t\t\t\t\t\t'4' \t=> 'Avril',\r\n\t\t\t\t\t\t'5' \t=> 'Mai',\r\n\t\t\t\t\t\t'6' \t=> 'Juin',\r\n\t\t\t\t\t\t'7' \t=> 'Juillet',\r\n\t\t\t\t\t\t'8' \t=> 'Août',\r\n\t\t\t\t\t\t'9' \t=> 'Septembre',\r\n\t\t\t\t\t\t'10' \t=> 'Octobre',\r\n\t\t\t\t\t\t'11' \t=> 'Novembre',\r\n\t\t\t\t\t\t'12' \t=> 'Décembre',\r\n\t\t];\r\n\r\n\t\treturn $mois;\r\n\t}", "title": "" }, { "docid": "904705adf7d7e462a1ea2cb26d42c518", "score": "0.56978256", "text": "function mettre_a_jour_maj() {\n\t\t\tsql_updateq('spip_formulaires', array('maj' => 'NOW()'), 'id_formulaire='.intval($this->id_formulaire));\n\t\t}", "title": "" }, { "docid": "1373d24c8b40b1bfd33aca0f53e512be", "score": "0.56881285", "text": "function JournalDesMouvements() {\r\n// Retourne un tableau selon les valeurs spécifié dans la requête\r\n// AJOUT LE 27/05\t\r\n\t$bdd=ConnectBddGestionnaire();\r\n\t$requete = $bdd->prepare(\"SELECT id_mouv, type_mouv, DATE(date_heure_mouv) as date_mouv, TIME(date_heure_mouv) as heure_mouv, mode_paie, montant, id_client,compte_utilisateur.nom as client, id_gestionnaire, compte.nom as gestionnaire, type_tarif, description, n_vol, mouvement.comm FROM mouvement, compte_utilisateur, compte_utilisateur compte, tarif WHERE YEAR(date_heure_mouv)= (SELECT YEAR(NOW())) AND mouvement.id_client=compte_utilisateur.id_util AND mouvement.id_gestionnaire=compte.id_util AND mouvement.type_tarif=tarif.id_tarif ORDER BY id_mouv DESC\") ; // Sélectionne les mouvements de l'année civile en cours\r\n\t$requete->execute();\r\n\t$tab=$requete->fetchAll(PDO::FETCH_NAMED);\r\n\tif (DEBUG_SQL) {echo 'RQ '. __function__ .' <br/>' ; print_r($tab);}\r\n\t$requete->CloseCursor();\r\n\treturn $tab;\r\n\t}", "title": "" }, { "docid": "8d19734f06f66929cf10c9c67300c1e0", "score": "0.56731623", "text": "public function month(){\r\n\t\t\r\n \t\t$init = 1;\r\n \t\twhile ($init<=12){\r\n \t\t\t\r\n \t\t\t$month[$init] = $init.\"月\"; \r\n \t\t\t\r\n \t\t\t$init++;\r\n \t\t}\r\n \t\t\r\n \t\treturn $month;\r\n \t\t\r\n \t}", "title": "" }, { "docid": "68328b16192a1f16caa9e6645d9f8686", "score": "0.56375295", "text": "public function getTotalMonth();", "title": "" }, { "docid": "7749587bf0ffb1bc7e86f899c2c72593", "score": "0.5603523", "text": "public function getmonth($ans,$mois,$daynb,$firstday,$typecalendar) {\n\t\t$monthtab = strtoupper($this->mois_infos[complete($mois,2)]['name']);\n\t\t$monthtab .= \"\\n<table>\";\n\t\t$monthtab .= \"\\n<tr><td style='text-align: center;'><font color='grey' size='2'>Lu</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Ma</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Me</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Je</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Ve</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Sa</font></td>\n\t\t\t\t\t\t \\n<td style='text-align: center;'><font color='grey' size='2'>Di</font></td></tr>\";\n\t\t$jour = 1;\n\t\t$j = 1;\n\t\twhile ($jour <= $this->mois_infos[complete($mois,2)]['nbj']) {\n\t\t\t$daynb += 1;\n\t\t\tif ($j-1 % 7 == 0) {\n\t\t\t\techo (\"<tr>\");\n\t\t\t}\n\t\t\tif ($jour == 1 & (($firstday+$daynb)-1)%7 != 1) {\n\t\t\t\tif (((($firstday+$daynb)-1)%7) != 0) {\n\t\t\t\t\t$i = ((($firstday+$daynb)-1)%7)-1;\n\t\t\t\t} else {\n\t\t\t\t\t$i = 6;\n\t\t\t\t}\n\t\t\t\twhile($i>0)\n\t\t\t\t{\n\t\t\t\t\t$monthtab .= \"<td style='opacity: 0.3;text-align: center;\";\n\t\t\t\t\tif ($ans.(complete($mois,2)).(complete($jour,2)) < date(\"Y\").(complete(date(\"m\"),2)).(complete(date(\"d\"),2))) {\n\t\t\t\t\t\t$monthtab .= \"background-color:#CECDCD;\";\n\t\t\t\t\t}\n\t\t\t\t\t$monthtab .= \"'><font color='red'>\".($this->mois_infos[complete(lastmonth($ans,$mois)[1],2)]['nbj']-$i+1).\"</font></td>\";\n\t\t\t\t\t\t\n\t\t\t\t\t$j += 1;\n\t\t\t\t\t$i -= 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$monthtab .= \"<td\";\n\t\t\tif ($ans.(complete($mois,2)).(complete($jour,2)) < date(\"Y\").(complete(date(\"m\"),2)).(complete(date(\"d\"),2))) {\n\t\t\t\t$monthtab .= \" class='past tabtd'>\";\n\t\t\t\t$monthtab .= \"<font style='color:red;'>\" . $jour . \"</font>\";\n\t\t\t} else {\n\t\t\t\t$monthtab .= \" style='\";\n\t\t\t\tif ($_SESSION['perm'] == \"user\") {\n\t\t\t\t\t$monthtab .= $this->calendar_user($ans,$mois,$jour,$typecalendar);\n\t\t\t\t} else if ($_SESSION['perm'] == \"admin\") {\n\t\t\t\t\t$monthtab .= $this->calendar_admin($ans,$mois,$jour,$typecalendar);\n\t\t\t\t} else if ($_SESSION['perm'] == \"superadmin\") {\n\t\t\t\t\t$monthtab .= $this->calendar_superadmin($ans,$mois,$jour,$typecalendar);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$monthtab .= \"</td>\";\n\t\t\tif ($j % 7 == 0 | ($jour == $this->mois_infos[complete($mois,2)]['nbj'] & ($ans%4 != 0 | $mois != 2))) {\n\t\t\t\t$monthtab .= \"</tr>\";\n\t\t\t}\n\t\t\t\n\t\t\t$jour += 1;\n\t\t\t$j += 1;\n\t\t\t\n\t\t\tif ($jour == 29 & $mois == 2 & $ans%4 == 0) {\n\t\t\t\t$daynb += 1;\n\t\t\t\tif ($j-1 % 7 == 0) {\n\t\t\t\t\t$monthtab .= \"<tr>\";\n\t\t\t\t}\n\t\t\t\t$monthtab .= \"<td\";\n\t\t\t\tif ($ans.(complete($mois,2)).(complete($jour,2)) < date(\"Y\").(complete(date(\"m\"),2)).(complete(date(\"d\"),2))) {\n\t\t\t\t\t$monthtab .= \" class='past tabtd'>\";\n\t\t\t\t\t$monthtab .= \"<font color='red'>\" . $jour . \"</font>\";\n\t\t\t\t} else {\n\t\t\t\t\t$monthtab .= \" style='\";\n\t\t\t\t\tif ($_SESSION['perm'] == \"user\") {\n\t\t\t\t\t\t$monthtab .= $this->calendar_user($ans,$mois,$jour,$typecalendar);\n\t\t\t\t\t} else if ($_SESSION['perm'] == \"admin\") {\n\t\t\t\t\t\t$monthtab .= $this->calendar_admin($ans,$mois,$jour,$typecalendar);\n\t\t\t\t\t} else if ($_SESSION['perm'] == \"superadmin\") {\n\t\t\t\t\t\t$monthtab .= $this->calendar_superadmin($ans,$mois,$jour,$typecalendar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$monthtab .= \"</td>\";\n\t\t\t\t$monthtab .= \"</tr>\";\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t$monthtab .= \"</table>\";\n\t\treturn ['html' => $monthtab, 'daynb' => $daynb];\n\t\t\t\n\t}", "title": "" }, { "docid": "8fa51deaacad6d7f51e8b3720af4c7f5", "score": "0.5600395", "text": "private function _fetch_table()\n {\n if ($this->_table == null) {\n $this->_table = plural(preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))));\n }\n }", "title": "" }, { "docid": "825dfa0742c931563bf4c9a952eed44a", "score": "0.5580478", "text": "public function getMonth(){\treturn $this->retrieve(sfTime::MONTH);\t\t}", "title": "" }, { "docid": "f932eee9606787c3d02ef67872522241", "score": "0.55676764", "text": "public static function table() {\n\t\treturn 'mptt';\n\t}", "title": "" }, { "docid": "da85a18a759c30034a6d675701a0ace0", "score": "0.55336106", "text": "public function getMonths() {\n\t\t$table = $this->getClassMetadata()->getTableName();\n\t\treturn $this->fetchFromCache('Months_'.$table, function() use ($table) {\n\t\t\t$sql = sprintf('SELECT DISTINCT %s AS month, COUNT(*) AS count\n\t\t\t\tFROM %s r\n\t\t\t\tWHERE r.date != \"0000-00-00\"\n\t\t\t\tGROUP BY month', $this->getDateFormatDbFunction('r.date'), $table);\n\t\t\treturn $this->_em->getConnection()->fetchAll($sql);\n\t\t});\n\t}", "title": "" }, { "docid": "3ad6e1ff5809be301e284f6b54ebe94d", "score": "0.547522", "text": "function getMois($date) {\r\n\t@list ( $jour, $mois, $annee ) = explode ( '/', $date );\r\n\tif (strlen ( $mois ) == 1) {\r\n\t\t$mois = \"0\" . $mois;\r\n\t}\r\n\treturn $annee . $mois;\r\n}", "title": "" }, { "docid": "1bfad9b794b9f009d122f21b097bec39", "score": "0.5454213", "text": "public function getOdmTable()\n {\n $odmTable = array(\n \"MH_1_2011-10-24\" => \"\",\n \"MH_2_2011-10-24\" => \"MHSPID\",\n \"MH_3_2011-10-24\" => \"MHCAT\",\n \"MH_4_2011-10-24\" => \"MHSCAT\",\n \"MH_5_2011-10-24\" => \"MHTERM\",\n \"MH_6_2011-10-24\" => \"MHENRF or MHENRTPT\",\n \"MH_7_2011-10-24\" => \"\",\n \"MH_8_2011-10-24\" => \"MHOCCUR\",\n \"MH_9_2011-10-24\" => \"MHSTDTC\",\n \"MH_10_2011-10-24\" => \"MHENDTC\",\n \"MH_11_2011-10-24\" => \"MHDTC\",\n \"MH_12_2011-10-24\" => \"MHOCCUR\",\n \"MH_13_2011-10-24\" => \"MHSTDTC\",\n \"MH_14_2011-10-24\" => \"MHENDTC\",\n \"MH_15_2011-10-24\" => \"MHENRF\",\n \"MH_16_2011-10-24\" => \"MHOCCUR\",\n \"MH_17_2011-10-24\" => \"MHSTDTC\"\n );\n\n return $odmTable;\n }", "title": "" }, { "docid": "0d34ab30e4b8aab60d74653f99224911", "score": "0.54406506", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM mantenimientos_materiales';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "9842b07e778525053bc56fed6715f075", "score": "0.5433353", "text": "private function ArrayMeses()\n {\n $m = date('m');\n $a = date('Y');\n $meses = array();\n $mes = null;\n for ($i = 1; $i <= 12; $i++) {\n if($m==0){ $m=12;}\n switch ($m) {\n case 1:\n $mes = array('mes'=>'Enero', 'num'=>'01','anio' => $a);\n break;\n case 2:\n $mes = array('mes'=>'Febrero', 'num'=>'02','anio' => $a);\n break;\n case 3:\n $mes = array('mes'=>'Marzo', 'num'=>'03','anio' => $a);\n break;\n case 4:\n $mes = array('mes'=>'Abril', 'num'=>'04','anio' => $a);\n break;\n case 5:\n $mes = array('mes'=>'Mayo', 'num'=>'05','anio' => $a);\n break;\n case 6:\n $mes = array('mes'=>'Junio', 'num'=>'06','anio' => $a);\n break;\n case 7:\n $mes = array('mes'=>'Julio', 'num'=>'07','anio' => $a);\n break;\n case 8:\n $mes = array('mes'=>'Agosto', 'num'=>'08','anio' => $a);\n break;\n case 9:\n $mes = array('mes'=>'Septiembre', 'num'=>'09','anio' => $a);\n break;\n case 10:\n $mes = array('mes'=>'Octubre', 'num'=>'10','anio' => $a);\n break;\n case 11:\n $mes = array('mes'=>'Noviembre', 'num'=>'11','anio' => $a);\n break;\n case 12:\n $a = $a-1;\n $mes = array('mes'=>'Diciembre', 'num'=>'12','anio' => $a);\n break;\n }\n array_push($meses, $mes);\n $m=$m-1;\n }\n return $meses;\n }", "title": "" }, { "docid": "2d759e9bfe034ef6093ba3712c2c60a9", "score": "0.54247755", "text": "public static function kal_monate() {\r\n # als nummeriertes Array, beginnend bei 1\r\n #\r\n $mon=array(\r\n 1=>'Januar', 2=>'Februar', 3=>'März', 4=>'April',\r\n 5=>'Mai', 6=>'Juni', 7=>'Juli', 8=>'August',\r\n 9=>'September', 10=>'Oktober', 11=>'November', 12=>'Dezember');\r\n return $mon;\r\n }", "title": "" }, { "docid": "62bd1213549cb166f7c20bdad36707a5", "score": "0.539368", "text": "private function getPerMonthQuery()\n {\n $connection = DB::connection();\n\n if ($connection instanceof SQLiteConnection) {\n return 'CAST(strftime(\\'%m\\', created_at) AS INTEGER)';\n }\n\n return 'MONTH(created_at)';\n }", "title": "" }, { "docid": "cdbf0024164754baae3ee70f010d0d2e", "score": "0.53926283", "text": "protected function fijarTabla(){\n \n return \"asientos\";\n \n }", "title": "" }, { "docid": "d276c2c71d09612c5140c65e646f05ce", "score": "0.53853095", "text": "function setColsFromTable(&$tabelle) {\r\r\n\t\t$this->cols = array();\r\r\n\t\t\r\r\n\t\tif (!empty($tabelle)) {\r\r\n\t\t\t$s = $this->s;\r\r\n\t\t\t\r\r\n\t\t\t// Ueberschriften durchlaufen \r\r\n\t\t\tforeach ($tabelle[$this->key0] as $spalte_name => $spalte_wert) {\r\r\n\t\t\t\tif (!preg_match('/format_([A-Za-z_]*)/', $spalte_name, $fname)) {\r\r\n\t\t\t\t\t$titel = $this->lang->getLL('col_'.$spalte_name);\r\r\n\t\t\t\t\t$len = strlen($titel); \r\r\n\t\t\t\t\t$this->cols[$this->s] = $len;\r\r\n\t\t\t\t\t$this->s++;\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\t// Zeilen durchlaufen \r\r\n\t\t\tforeach ($tabelle as $zeile) {\r\r\n\t\t\t\tif (!empty($zeile)) {\r\r\n\t\t\t\t\t$this->s = $s;\r\r\n\t\t\t\t\tforeach ($zeile as $spalte_name => $spalte_wert) {\r\r\n\t\t\t\t\t\tif (!preg_match('/format_([A-Za-z_]*)/', $spalte_name, $fname)) {\r\r\n\t\t\t\t\t\t\t$len = strlen($spalte_wert); \r\r\n\t\t\t\t\t\t\tif (!isset($this->cols[$this->s]) || ($len > $this->cols[$this->s])) {\r\r\n\t\t\t\t\t\t\t\t$this->cols[$this->s] = $len; \r\r\n\t\t\t\t\t\t\t} \t\t\t\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t$this->s++;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\t$this->s = $s;\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "b5efdc0a65abb75ddf2149ba05dcbfa7", "score": "0.5381538", "text": "function get_months() {\n\treturn [\n\t\t1=>'January',\n\t\t2=>'February',\n\t\t3=>'March',\n\t\t4=>'April',\n\t\t5=>'May',\n\t\t6=>'June',\n\t\t7=>'July',\n\t\t8=>'August',\n\t\t9=>'September',\n\t\t10=>'October',\n\t\t11=>'November',\n\t\t12=>'December'\n\t];\n}", "title": "" }, { "docid": "c463417343a439914d4521bf75d090d3", "score": "0.5372265", "text": "public function reportUserMonth();", "title": "" }, { "docid": "c2e6e456387f12237db6a0d0bff69ddb", "score": "0.5365232", "text": "public static function getTimeMonth()\n {\n $timesMonths = DB::table('glpi_tickets')\n ->select(DB::raw('SEC_TO_TIME(SUM(actiontime)) as time'))\n ->where( 'status', '=', '5')\n ->get();\n\n return $timesMonths;\n }", "title": "" }, { "docid": "e6f9d9fd572e118b0bf3b77d02a16c99", "score": "0.5352501", "text": "private function mostrarMatriz(){\n echo '<table border=\"1\">';\n for($i = 1; $i <= $this->filas; $i++ ){\n echo '<tr>';\n for($j = 1; $j <= $this->columnas; $j++ ){\n echo '<td>';\n echo '<p>'.round($this->matriz[$i][$j], 2).'</p>';\n echo '</td>';\n }\n echo '</tr>';\n }\n echo '</table>';\n echo '<style>table{margin-bottom:10px;} table tr td {width:20px;}</style>';\n }", "title": "" }, { "docid": "020bffff67f2cab03fbb14c4d1ea2c86", "score": "0.534592", "text": "function get_mouvement($mvm_id)\n {\n return $this->db->get_where('tb_bm_mouvements',array('mvm_id'=>$mvm_id))->row_array();\n }", "title": "" }, { "docid": "887256776b25dfee9f2f1cca7c725d77", "score": "0.5343547", "text": "function index_alumnos(){\n\t\t$this->set(\"asignaturas\",\t$this->Asignatura->find('all'));\n\t\t$this->set(\"matriculas\",\t$this->Matricula->find('all',\n\t\t\tarray(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Matricula.users_id ' => $this->Auth->user('id'))\n\t\t\t\t)\n\t\t\t)\n\t\t);\t\n\t}", "title": "" }, { "docid": "20573c81a655db012894cc306d495d7c", "score": "0.52615404", "text": "public function getMillenium(){\treturn $this->retrieve(sfTime::MILLENIUM);\t}", "title": "" }, { "docid": "05721b1fb224985163350df4538e3736", "score": "0.52575064", "text": "public function AlumMatri($num){\n\t\t$alumno=BD::CargaAlumno($num);\n\t\treturn $alumno;\n\t}", "title": "" }, { "docid": "7c146bab80f99e5a2d1f93498ff90688", "score": "0.525736", "text": "function settimane_nel_mese($month, $year)\n{ \n\t\n// array per i giorni della settimana il primo elemento è fittizio (1) \n \n\t$giorni_settimana = array(1, \"Lun\", \"Mar\", \"Mer\", \"Gio\", \"Ven\", \"Sab\", \"Dom\"); \n \n\t// recupero il timestamp del primo giorno del mese \n \n\t$time_primo_del_mese = mktime(0, 0, 0, $month, 1, $year); \n \n\t// recupero il numero per il giorno della settimana (0->Dom 6->Sab) \n \n\t$primo_del_mese = date('w', $time_primo_del_mese); \n \n\t// conto i giorni del mese \n \n\t$giorni_nel_mese = cal_days_in_month(CAL_GREGORIAN, $month, $year); \n \n\t// inizializzo un array che conterra i dati delle settimane \n \n\t$settimane = array(); \n \n\t// dichiaro una variabile che mi servirà per tenere il conto dei giorni da 0 a 6 \n \n\t$giorni = 0; \n \n\t// assegno ad una variabile il numero per il giorno della settimana \n \n\t$j = $primo_del_mese; \n \n\t// inizio il ciclo \n \n\tfor ($i = 1; $i <= $giorni_nel_mese; $i++)\n\t{ \n \n\t\t// se il giorno arriva a Domenica(7) o se è l'ultima iterazione \n \n\t\tif ($j == 7 || $i == $giorni_nel_mese)\n\t\t{ \n \n\t\t\t// recupero il timestamp del giorno \n \n\t\t\t$time_giorno = mktime(0, 0, 0, $month, $i, $year); \n \n\t\t\t// recupero il numero della settimana nell'anno \n \n\t\t\t$numero_settimana = date('W', $time_giorno); \n \n\t\t\t// calcolo la partenza della settimana girono e numero \n \n\t\t\t$giorno_partenza = $j - $giorni; \n $numero_partenza = $i - $giorni; \n \n\t\t\t// popolo l'array che come indice avrà il numero della settimana \n // come valore ho calcolato il giorno e il numero di partenza e di fine della settimana \n //$settimane[(int) $numero_settimana] = \"da $giorni_settimana[$giorno_partenza] $numero_partenza a $giorni_settimana[$j] $i \"; \n\t\t\t// $pale = var_dump($giorni_settimana[$giorno_partenza]);\n \n\t\t\t$settimane[(int) $numero_settimana] = \"da \".$giorni_settimana[$giorno_partenza].\" \".$numero_partenza.\" a \".$giorni_settimana[$j].\" \".$i . $pale; \n\t\t\t\n\t\t\tif ($giorni_settimana[$giorno_partenza] == 'Lun' || $giorni_settimana[$giorno_partenza] == 1)\n\t\t\t{$settimane[(int) $numero_settimana] .= '<span style=\"color:green\"> - SI</span>';}\n\t\t\telse\n\t\t\t{$settimane[(int) $numero_settimana] .= '<span style=\"color:red\"> - NO</span>';}\n\n\t\t\t// riporto al lunedi le varibili \n\t\t\t\n $j = 1; \n $giorni = 0; \n\t\t\t\n // altrimenti \n\t\t\t\n }\n\t\telse\n\t\t{ \n // incremento i valori\n\t\t\t\n $j++; \n $giorni++; \n } \n } \n\t\n return $settimane;\n}", "title": "" }, { "docid": "23a45dcaf0f5082baa7b9cad63cfc63a", "score": "0.52432746", "text": "function montaColunas($aRegistros) {\n echo '<thead>';\n echo '<tr>';\n foreach(getFirstFromArray($aRegistros) as $sColuna => $xValor) {\n trataTituloColuna($sColuna); \n }\n echo '</tr>';\n echo '</thead>';\n}", "title": "" }, { "docid": "f3e6560d12ef4f697e3de0f103d50015", "score": "0.5226557", "text": "abstract protected function get_tabla();", "title": "" }, { "docid": "a7214da3db624d5404746005aa6c4f2f", "score": "0.5219524", "text": "function get_monedas()\n\t{\n\n\t\t$query_listado = \"Select * FROM monedas where activo = 1 order by id \";\n\t\t$result_listado = mysql_query($query_listado);\n\t\t$monedas = array();\n\t\twhile ($row = @mysql_fetch_assoc($result_listado))\n\t\t{\n\t\t$monedas[] = $row;\n\t\t}\n\t\t@mysql_free_result($result_listado);\n\t\treturn($monedas);\n\t}", "title": "" }, { "docid": "cab272d23bd244a2aa860fc2429fe6b4", "score": "0.5217344", "text": "function months()\n{\n return ( [ '01' => Lang::get( 'forms.january' ), '02' => Lang::get( 'forms.february' ), '03' => Lang::get( 'forms.march' ), '04' => Lang::get( 'forms.april' ), Lang::get( 'forms.may' ) => '05', '06' => Lang::get( 'forms.june' ), '07' => Lang::get( 'forms.july' ), '08' => Lang::get( 'forms.august' ), '09' => Lang::get( 'forms.september' ), '10' => Lang::get( 'forms.october' ), '11' => Lang::get( 'forms.november' ), '12' => Lang::get( 'forms.december' ) ] );\n}", "title": "" }, { "docid": "ae0cab62cb4fc9677809fe8bbc549902", "score": "0.5201532", "text": "public function displayAllMoons() {\n //Declare variables\n $moons = new Collection;\n $mHelper = new MoonCalc;\n $lookup = new LookupHelper;\n $system = array();\n\n /**\n * Declare our different flavors of moon goo for the blade\n */\n $r4Goo = [\n 'Zeolites',\n 'Sylvite',\n 'Bitumens',\n 'Coesite',\n ];\n\n $r8Goo = [\n 'Cobaltite',\n 'Euxenite',\n 'Titanite',\n 'Scheelite',\n ];\n\n $r16Goo = [\n 'Otavite',\n 'Sperrylite',\n 'Vanadinite',\n 'Chromite',\n ];\n\n $r32Goo = [\n 'Carnotite',\n 'Zircon',\n 'Pollucite',\n 'Cinnabar',\n ]; \n\n $r64Goo = [\n 'Xenotime',\n 'Monazite',\n 'Loparite',\n 'Ytterbite',\n ];\n\n $systems = [\n '0-NTIS',\n '1-NJLK',\n '35-JWD',\n '8KR9-5',\n 'EIMJ-M',\n 'F-M1FU',\n 'G-C8QO',\n 'I6M-9U',\n 'L5D-ZL',\n 'L-YMYU',\n 'VQE-CN',\n 'VR-YIQ',\n 'XZ-SKZ',\n 'Y-CWQY',\n ];\n\n //Get all of the moons which are not rented\n $allyMoons = AllianceMoon::all();\n\n foreach($allyMoons as $moon) {\n $ores = AllianceMoonOre::where([\n 'moon_id' => $moon->moon_id,\n ])->get(['ore_name', 'quantity'])->toArray();\n\n $moons->push([\n 'system' => $moon->system_name,\n 'moon_name' => $moon->name,\n 'ores' => $ores,\n ]);\n }\n\n return view('miningtax.user.display.moons.allmoons')->with('moons', $moons)\n ->with('systems', $systems)\n ->with('r4Goo', $r4Goo)\n ->with('r8Goo', $r8Goo)\n ->with('r16Goo', $r16Goo)\n ->with('r32Goo', $r32Goo)\n ->with('r64Goo', $r64Goo);\n }", "title": "" }, { "docid": "0ad2663bad6a5eca4d1b171240a37c06", "score": "0.5191839", "text": "function getMois($date)\n{\n @list($jour, $mois, $annee) = explode('/', $date);\n unset($jour);\n if (strlen($mois) == 1) {\n $mois = '0' . $mois;\n }\n return $annee . $mois;\n}", "title": "" }, { "docid": "e756ea6ee3c776688e8dc6f3861cc71b", "score": "0.51912445", "text": "function AbfrageAll($name, $monat)\n {\n $db = new class_database();\n $comm = ('SELECT * FROM time LEFT JOIN user ON time.userid = user.id LEFT JOIN project ON time.projectid = project.id WHERE user.username = \"'.$name.'\" and date LIKE \"%-' . $monat . '-%\" AND NOT project.projectname = \"Feiertage\" AND NOT project.projectname = \"Ferien\" AND NOT project.projectname = \"Krankheit\" ORDER BY date ');\n $rows = array();\n $query = $db->mysql->query($comm);\n while ($res = $query->fetch_assoc()) {\n $rows[] = $res;\n }\n return $rows;\n }", "title": "" }, { "docid": "2c9ce0fc8b597a32b7ff1167fa215262", "score": "0.51844066", "text": "private function _fetch_table()\n {\n if ($this->_table == NULL) {\n $class = preg_replace('/(_model)?$/', '', get_class($this));\n $this->_table = plural(strtolower($class));\n }\n }", "title": "" }, { "docid": "5ada3ce43d2c3cabc12d37fb1af302bc", "score": "0.51775753", "text": "function buscaDadosGestorMaisMedicos($tipo, $muncod, $prgid)\n{\n global $db;\n\n $sql = \"\n SELECT dapid, \n \t\tprgid, \n m.muncod,\n muncodend,\n c.estuf,\n dapnome, \n trim( replace(to_char(cast(dapcpf as bigint), '000:000:000-00'), ':', '.') ) AS dapcpf, \n daprg, \n dapsexo, \n dapdtnascimento, \n daporgao, \n dapfonecomercial, \n dapcelular, \n dapemail, \n dapcargofuncao\n FROM maismedicomec.dadosadesaorepresentante m\n LEFT JOIN territorios.municipio AS c ON c.muncod = m.muncodend\n WHERE m.muncod = '{$muncod}' AND daptipo = '{$tipo}' AND prgid = {$prgid}\n \";\n $dados = $db->pegaLinha($sql);\n return $dados;\n}", "title": "" }, { "docid": "e0c745822e191744e61b8b98b855b55f", "score": "0.5167298", "text": "public function getMarca(){\n return $this->marca;\n }", "title": "" }, { "docid": "a821f3a6f76cfb74d2a7966839b7ef11", "score": "0.5157674", "text": "public function Febre(){\n\n\t\t$sqlOp = \"SELECT * FROM pesquisa WHERE Sintoma = 'Febre' \";\n\n\t\t$buscar= Conectar::conectado()->prepare($sqlOp);\n\n\t\t$buscar->execute();\n\n\t\t$nun = $buscar->rowCount();\n\n\t\t\n\t\treturn $nun;\n\t}", "title": "" }, { "docid": "7ad0fdf340fa6b311a2fdc00f272d8dd", "score": "0.5146037", "text": "function Jornadas(){\n global $sContrato;\n setlocale(LC_TIME,\"es_ES\");\n //la fecha 05 - 11 - 2006 es domingo, es la semilla para iniciar el nombre del dia\n $ano = 2006;\n $mes = 11;\n $dia = 5;\n //lunes\n $nueva = mktime(0,0,0,$mes,$dia+1,$ano);\n $lunes = strftime(\"%A\",$nueva);\n //martes\n $nueva = mktime(0,0,0,$mes,$dia+2,$ano);\n $martes = strftime(\"%A\",$nueva);\n //miercoles\n $nueva = mktime(0,0,0,$mes,$dia+3,$ano);\n $miercoles = strftime(\"%A\",$nueva);\n //jueves\n $nueva = mktime(0,0,0,$mes,$dia+4,$ano);\n $jueves = strftime(\"%A\",$nueva);\n //viernes\n $nueva = mktime(0,0,0,$mes,$dia+5,$ano);\n $viernes = strftime(\"%A\",$nueva);\n //sabado\n $nueva = mktime(0,0,0,$mes,$dia+6,$ano);\n $sabado = strftime(\"%A\",$nueva);\n //domingo\n $nueva = mktime(0,0,0,$mes,$dia+7,$ano);\n $domingo = strftime(\"%A\",$nueva);\n //obtener las jornadas por dia de la semana\n $sql =\"SELECT iJLunes,iJMartes,iJMiercoles,iJJueves,iJViernes,iJSabado,iJDomingo,txtMaterialAutomatico FROM configuracion WHERE sContrato='$sContrato'\";\n $result = mysql_query($sql);\n while ($row = mysql_fetch_array($result)){\n $iJornadas[$lunes] = $row['iJLunes'];\n $iJornadas[$martes] = $row['iJMartes'];\n $iJornadas[$miercoles] = $row['iJMiercoles'];\n $iJornadas[$jueves] = $row['iJJueves'];\n $iJornadas[$viernes] = $row['iJViernes'];\n $iJornadas[$sabado] = $row['iJSabado'];\n $iJornadas[$domingo] = $row['iJDomingo'];\n }\n return $iJornadas;\n }", "title": "" }, { "docid": "fd6893f339ed8c30bd3f31d79913f8d6", "score": "0.51437205", "text": "public function majeur()\n {\n if ($this->age >= 18) {\n return '<h3>'.$this->nom.' a '.$this->age.' ans il est majeur</h3>';\n } else {\n return '<h3>'.$this->nom.' a '.$this->age.' ans il est mineur</h3>';\n }\n }", "title": "" }, { "docid": "bce059d3f658a3491021061aad67650b", "score": "0.51412505", "text": "public static function vistaAlumnosM($table){\n\t\t$statement = Conexion::connect()->prepare(\"SELECT * FROM $table\");\t\n\t\t$statement->execute();\n\t\treturn $statement->fetchAll();\n\t\t$statement->close();\n\t}", "title": "" }, { "docid": "edbd5012038c288a540a0b9c6aa95632", "score": "0.5139926", "text": "public static function listarMaterias(){\n\t\t$sql = 'SELECT * FROM materias where estado=1 order by anio,cuatrimestre,descripcion';\n $consulta = AccesoDatos::ObtenerObjetoAccesoDatos()->ObtenerConsulta($sql);\n\t $consulta->execute();\n\t\treturn $consulta->fetchAll(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "c732193e5ba784d44408f45eaf70030c", "score": "0.51387286", "text": "function DessinerCalendrier(){\n \n $lNombreDeJourDuMois = 0;\n $lNumeroDuJour = 0;\n $lMoisCourant = 0;\n $lAnneeCourante = date('Y');\n $lNbLignes = 0;\n $lDernierJourDuMois = 0;\n $lJourTravaille = true;\n $lNumSemMoisCourant = 0;\n $lNumeroSemaine = 0;\n $lDateDebut = null;\n $lDateFin = null;\n $lNomPremierJourduMois = null;\n $lNomJour = null;\n \n $lNomMois = array ('JANVIER',\n 'FEVRIER',\n 'MARS',\n 'AVRIL',\n 'MAI',\n 'JUIN',\n 'JUILLET',\n 'AOUT',\n 'SEPTEMBRE',\n 'OCTOBRE',\n 'NOVEMBRE',\n 'DECEMBRE');\n\n $lJoursWeekEndDuMois = array();\n $lLargeurColonneSemaine = array();\n\n setlocale(LC_TIME,'fra_fra');\n\n for ($lMoisCourant = 1; $lMoisCourant <= NB_MOIS; $lMoisCourant++){\n \n echo \"<table>\".\"\\n\";\n echo \"<tr class='semaine'>\".\"\\n\";\n echo \"<td colspan='1' class='semaine'></td>\".\"\\n\";\n\n $lNumSemMoisCourant = (int)date(\"W\", strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-01\"));\n \n $lNombreDeJourDuMois = cal_days_in_month(CAL_GREGORIAN,$lMoisCourant,$lAnneeCourante);\n \n for ($lNumeroDuJour = 1; $lNumeroDuJour <= $lNombreDeJourDuMois ; $lNumeroDuJour++) {\n // Tous les premiers du mois courant on recupre le nom abregé du jour\n // puis on déduit le nombre de jour necessaire pour aller jusqu'a la fin de la première semaine de chaque mois (1/xx/18),\n // que l'on mémorise dans l'array lLargeurColonneSemaine[], \n // puis on avance l'index de traitement des jours lNumeroDuJour pour traiter la semaine suivante à partir du lundi.\n if ($lNumeroDuJour == 1){\n \n $lNomPremierJourduMois = strftime(\"%a\", strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-1\"));\n\n switch ($lNomPremierJourduMois) {\n\n case \"lun.\":\n $lLargeurColonneSemaine[]= 7; \n $lNumeroDuJour = 7; \n break;\n\n case \"mar.\":\n $lLargeurColonneSemaine[]= 6;\n $lNumeroDuJour = 6; \n break;\n\n case \"mer.\":\n $lLargeurColonneSemaine[]= 5;\n $lNumeroDuJour = 5; \n break;\n\n case \"jeu.\":\n $lLargeurColonneSemaine[]= 4; \n $lNumeroDuJour = 4;\n break;\n\n case \"ven.\":\n $lLargeurColonneSemaine[]= 3;\n $lNumeroDuJour = 3; \n break;\n\n case \"sam.\":\n $lLargeurColonneSemaine[]= 2;\n $lNumeroDuJour = 2; \n break;\n\n case \"dim.\":\n $lLargeurColonneSemaine[]= 1;\n $lNumeroDuJour = 1; \n break;\n \n default:\n \n break;\n } \n \n }else{\n \n //Ici on calcule la largeur \"colspan\" pour chaque semaine du mois courant.\n $lNomJour = strftime(\"%a\", strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-{$lNumeroDuJour}\"));\n\n // On test si le jour est un Lundi.\n if ($lNomJour == \"lun.\"){\n //On mémorise la date de début de semaine.\n $lDateDebut = strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-{$lNumeroDuJour}\");\n\n }\n\n // On test si le jour est un Dimanche.\n if($lNomJour == \"dim.\"){\n //On mémorise la date de fin de semaine dans lDateFin. \n $lDateFin = strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-{$lNumeroDuJour}\");\n \n // Puis on compare date de début et date de fin,\n // pour en déduire le nombre de jour necessaire pour représenter la semaine traitée (le colspan).\n // On enregistre la largeur de \"colspan\" de la semaine calculée dans un array \"lLargeurColonneSemaine\".\n $lLargeurColonneSemaine[] = (($lDateFin-$lDateDebut)/86400)+1;\n \n // Calcul du nombre de jours entre 2 dates : 60*60*24 = 86400\n // exemple (\"1/01/18\"-\"2/01/18\")/86400 donne 1 ce qui représente l'écart entre les deux dates données \n // le + 1 à la fin est necessaire,\n // car pour représenter un écart minimum de 1 pour un \"colspan\" de une semaine a afficher en début ou fin de mois\n // il faut fusionner au minimum 2 cellules de largeur Jour 1 et Jour 2.\n // l'Exemple donne ceci : \n // |~~Semaine X~~| --> colspan (ou cellules fusionnées) de 2 (ecart entre Jour 1 et Jour 2 + 1) pour la semaine n°X\n // |Jour 1|Jour 2|\n \n }\n\n // On test si on arrive à la fin du mois\n if($lNumeroDuJour == $lNombreDeJourDuMois){\n // On vérifie que le dernier jour du mois n'est pas un dimanche if($lNomJour != \"dim.\") pour traiter le cas d'une semmaine incomplète en fin de mois\n // dans le cas contraire, pas de traitement particulier à faire car le traitement à été fait par le test précédent du\n // if($lNomJour == \"dim.\") qui nous à donné une semaine de 7 jours pour représenter la dernière semaine du mois courant.\n if($lNomJour != \"dim.\"){\n // On compare date de début et date en cours de traitement (que l'on met dans lDateFin),\n // date qui correspond à la date de fin car le mois est terminé\n $lDateFin = strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-{$lNumeroDuJour}\"); \n // Même calcule du nombre de jours et on sauvegarde de la valeur pour la dernière semaine traitée du mois courant\n $lLargeurColonneSemaine[] = (($lDateFin-$lDateDebut)/86400)+1;\n\n }\n\n }\n } \n }\n\n // La boucle pour dessiner les semaines calculées précédement, mois par mois.\n for ($lNumeroSemaine = 1; $lNumeroSemaine <= count($lLargeurColonneSemaine) ; $lNumeroSemaine++, $lNumSemMoisCourant++) {\n \n // Necessaire car un array est à l'indice 0 pour la première valeur\n // ce qui n'est pas le cas pour les numéros semaines et mois qui commencent toujours à 1\n $lNumeroSemaine--;\n echo \"<td colspan='{$lLargeurColonneSemaine[$lNumeroSemaine]}'>S{$lNumSemMoisCourant}</td>\".\"\\n\";\n $lNumeroSemaine++;\n\n }\n\n // On efface l'array des semaines calculées (colspan) pour traiter le mois suivant au prochain tour de boucle\n unset($lLargeurColonneSemaine);\n\n echo \"</tr>\".\"\\n\";\n \n echo \"<tr>\".\"\\n\";\n\n // Necessaire car un array est à l'indice 0 pour la première valeur à extraire\n // ce qui n'est pas le cas pour les numéros semaines et mois qui commencent toujours à 1\n $lMoisCourant--;\n echo \"<td rowspan='2' class='mois'> $lNomMois[$lMoisCourant] </td>\".\"\\n\";\n $lMoisCourant++;\n //On récupère ne nombre de jours du mois courant.\n $lNombreDeJourDuMois = cal_days_in_month(CAL_GREGORIAN,$lMoisCourant,$lAnneeCourante);\n //On parcours tous les jours du mois courant.\n for ($lNumeroDuJour = 1; $lNumeroDuJour <= $lNombreDeJourDuMois; $lNumeroDuJour++) {\n //On récupere le nom du jour. \n $lNomJour = strftime(\"%a\", strtotime(\"{$lAnneeCourante}-{$lMoisCourant}-{$lNumeroDuJour}\"));\n\n if ($lNomJour == \"sam.\" || $lNomJour == \"dim.\"){\n //On affiche le nom du jour avec le numéro et on applique le style Weekend.\n echo \"<td class='weekend'> {$lNomJour} {$lNumeroDuJour} </td>\".\"\\n\";\n //Ici on récupère dans une array tous les WeekEnds détectés, samedi et dimanche.\n $lJoursWeekEndDuMois[] = $lNumeroDuJour;\n\n }else{\n //On affiche le nom du jour avec le numéro et on applique le style jour\n echo \"<td class='jour'> {$lNomJour} {$lNumeroDuJour} </td>\".\"\\n\";\n\n }\n \n }\n //On mémorise / sauvegarde dans lDernierJourDuMois le dernier numéro du jour du mois en cours de traitement\n //pour le reutiliser dans la boucle suivante.\n $lDernierJourDuMois = $lNumeroDuJour;\n //On dessine l'espace vide restant entre la dernière case du mois et la largeur max du tableau en partant du lDernierJourDuMois mémorisé.\n for ($lNumeroDuJour = $lDernierJourDuMois; $lNumeroDuJour <= NB_JOURS_MAX; $lNumeroDuJour++) { \n\n echo \"<td class='vide'> </td>\".\"\\n\";\n\n }\n\n echo \"</tr>\".\"\\n\";\n //On dessine les lignes projet\n for ($lNbLignes = 1; $lNbLignes <=1; $lNbLignes++){\n\n echo \"<tr>\".\"\\n\";\n \n //On colorie les cases WeekEnd pour chaque ligne projet\n for ($lNumeroDuJour = 1; $lNumeroDuJour <= NB_JOURS_MAX; $lNumeroDuJour++) {\n \n foreach ($lJoursWeekEndDuMois as $lJourNonTravaille) {\n //On test si le lNumeroDuJour correspond à un jour non travaillé (Samedi ou Dimanche)\n if ($lNumeroDuJour == $lJourNonTravaille){\n \n $lJourTravaille = false;\n\n }\n \n }\n \n //Si un jour non travaillé est détecté (drapeau lJourTravaille à FAUX), alors on applique la class weekend.\n if ($lJourTravaille == true){\n\n \n include 'afficher_projet.php';\n\n \n } else{\n \n echo \"<td class='weekend'> </td>\".\"\\n\";\n\n // On reinitialise le drapeau à VRAI pour pouvoir redetecter un jour non travaillé\n // au prochain tour de boucle\n $lJourTravaille = true; \n\n }\n \n\n }\n\n echo \"</tr>\".\"\\n\";\n\n }\n\n //On efface l'array lJoursWeekEndDuMois pour le prochain tour de boucle \n unset($lJoursWeekEndDuMois);\n\n echo \"</table>\".\"\\n\";\n\n }\n\n}", "title": "" }, { "docid": "5f2c515a4c650d78858d1344febf11f6", "score": "0.5136466", "text": "protected function _monthly() {\n \n }", "title": "" }, { "docid": "85d997d9b67e3b0699451160732663a5", "score": "0.51346654", "text": "public function nhaptheothang(){\n // ->orderBy('created_at')\n // ->groupBy(DB::raw(\"MONTH(created_at)\"))\n // ->get();\n return 0;\n }", "title": "" }, { "docid": "6c81042bb395e80915f50b63fd5fd226", "score": "0.5126852", "text": "public function getMonths(): int\n {\n return $this->internal->m;\n }", "title": "" }, { "docid": "2a67a36ce95fff63cbbc46b9ae37566d", "score": "0.5119668", "text": "public function getMonths() : array\r\n\t{\r\n\t\treturn self::MONTHS;\r\n\t}", "title": "" }, { "docid": "3e09acda2f984228c6ef3a5623a85541", "score": "0.51176006", "text": "function AppUnitInfoTable()\n {\n $unit=$this->Unit();\n $table=array();\n\n return $table;\n }", "title": "" }, { "docid": "55c650e33e397fb364434076bd98c87d", "score": "0.5116666", "text": "public function TousLesTitres($titre_id,$mois){\n\t\t\t// \t\ttitre_id = \"'.$titre_id.'\" \n\t\t\t// \t\tAND MONTH(date) <= '.$mois 'GROUP BY personnel_id';\n\t\t\t// $pre = $this->db->prepare($sql);\n\t\t // \t$pre->execute();\n\t\t // \treturn $pre->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "b88d84919cde5628185931c9d8c6995f", "score": "0.51154464", "text": "public function monthly()\n\t{\n\t\treturn $this->spliceIntoPosition( 1, 0 )->spliceIntoPosition( 2, 0 )->spliceIntoPosition( 3, 1 );\n\t}", "title": "" }, { "docid": "99a58ae7089daef42227ab0d2df324c9", "score": "0.5104922", "text": "function genMonth($name, $default, $indent, $lang = \"zh\")\r\n{\r\n $aryDateHead = array(\"zh\" => \"¤ë ¥÷\",\r\n \"en\" => \"Month\");\r\n $tbl = space($indent).\"<select name=\\\"\".$name.\"\\\">\\n\";\r\n $tbl .= space($indent + 2).\"<option value=\\\"0\\\"\";\r\n if ($default == 0) $tbl .= \" selected\";\r\n $tbl .= \">\".$aryDateHead[$lang].\"\\n\";\r\n $total_mth = 12;\r\n for ($i = 1; $i <= $total_mth; $i++)\r\n {\r\n $tbl .= space($indent + 2).\"<option value=\\\"\".$i.\"\\\"\";\r\n if ($default == $i) $tbl .= \" selected\";\r\n $tbl .= \">\".$i.\"</option>\\n\";\r\n }\r\n $tbl .= space($indent).\"</select>\\n\";\r\n return $tbl;\r\n}", "title": "" }, { "docid": "0ea255faa427b7011cbad93e8469d913", "score": "0.51026446", "text": "function TennisDefi_menu_page_STAT_display_users() {\n\t$value = [];\n\t$legend = [];\n\t$delta = [];\n\t\n\tfor($k = - 5; $k <= 0; $k ++) {\n\t\t$txt = \"$k months\";\n\t\t$date = getdate ( strtotime ( $txt ) ); // mois precedents\n\t\t$args = array (\n\t\t\t\t'fields' => 'ids',\n\t\t\t\t'date_query' => array (\n\t\t\t\t\t\tarray (\n\t\t\t\t\t\t\t\t'before' => array (\n\t\t\t\t\t\t\t\t\t\t'year' => $date ['year'],\n\t\t\t\t\t\t\t\t\t\t'month' => $date ['mon'],\n\t\t\t\t\t\t\t\t\t\t'day' => 31 \n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'inclusive' => true \n\t\t\t\t\t\t) \n\t\t\t\t),\n\t\t\t\t'post_type' => 'palmares',\n\t\t\t\t'numberposts' => - 1 \n\t\t);\n\t\t\n\t\t$value [] = count ( get_posts ( $args ) );\n\t\t$legend [] = $date ['month'] . ' ' . $date ['year'];\n\t\t// delta\n\t\t$last = count ( $value ) - 1;\n\t\tif ($last == 0)\n\t\t\t$delta [] = 0;\n\t\telse\n\t\t\t$delta [] = $value [$last] - $value [$last - 1];\n\t}\n\t\n\t// Affichage\n\techo \"<table><tr>\";\n\techo \"<tr> <td style=\\\"text-align:center\\\">Mois : </td>\";\n\tfor($k = 0; $k < count ( $legend ); $k ++)\n\t\techo \"<td style=\\\"text-align:center\\\">$legend[$k]</td>\";\n\techo \"</tr>\";\n\techo \"<tr> <td style=\\\"text-align:center\\\">Nb : </td>\";\n\tfor($k = 0; $k < count ( $value ); $k ++)\n\t\techo \"<td style=\\\"text-align:center\\\">$value[$k]</td>\";\n\techo \"</tr>\";\n\techo \"<tr> <td style=\\\"text-align:center\\\">Delta : </td>\";\n\tfor($k = 0; $k < count ( $value ); $k ++)\n\t\techo \"<td style=\\\"text-align:center\\\">$delta[$k]</td>\";\n\techo \"</tr>\";\n\t\n\techo \"</table>\";\n}", "title": "" }, { "docid": "0f2dd777f19e9115ee2c3bad5c0f1e27", "score": "0.50967264", "text": "public function CambioMonto() {\n \r\n $this->Horas();\r\n if ($this->ViajesRestantes() == TRUE) {\n $this->monto = 7.4;\r\n return $this->monto;\r\n }\r\n $this->monto = 14.8;\r\n return $this->monto;\r\n }", "title": "" }, { "docid": "71040a7c2070765d6167bc8a3ccd28e2", "score": "0.50933325", "text": "function PrimerodelMes() {\n $diaquitar = date(\"d\") - 1;\n $dia = time() - ($diaquitar * 24 * 60 * 60);\n $dia_fin = date('Y-m-d', $dia);\n return $dia_fin;\n }", "title": "" }, { "docid": "51f739ae2470c443f3021f9b9860a91a", "score": "0.5091465", "text": "public function getMarca(){\r\n return $this->marca;\r\n }", "title": "" }, { "docid": "7ba26ad23c5b3bf28f6f484cee55f2ea", "score": "0.50868124", "text": "function lang_months(){\n return array(\n 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni',\n 'Juli', 'August', 'September', 'Oktober', 'November', 'December'\n );\n}", "title": "" }, { "docid": "95e6b4c302309dfd0795185a9663ffe8", "score": "0.508526", "text": "public function getMonths( ) {\n if(!self::$_months){\n self::$_months = array(''=>$this->__('Month'));\n for($i=1; $i<13; $i++) {\n self::$_months[$i] = date(\"$i - F\", mktime(0, 0, 0, $i, 1));\n }\n }\n return self::$_months;\n }", "title": "" }, { "docid": "f47fd133e1323be9678660cdf86290a4", "score": "0.50791824", "text": "private static function get_default_columns()\n\t{\n\t\t$columns = array();\t\t\n\t\t$columns[] = new ObjectTableColumn(HistoricVariableTranslation :: PROPERTY_TRANSLATION);\n\t\t$columns[] = new StaticTableColumn(Translation :: get('User', null, 'user'));\n\t\t$columns[] = new ObjectTableColumn(HistoricVariableTranslation :: PROPERTY_DATE);\n\t\t$columns[] = new StaticTableColumn(Translation :: get('Rating'));\n\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "06447997d054e015f67d8d1a1d2e5162", "score": "0.50700366", "text": "function AllMentores()\n\t{\n\t\treturn $this->db->count_all('Mentores');\n\t}", "title": "" }, { "docid": "725b52a30e4c48eecfdf1c03f5bae46d", "score": "0.5067759", "text": "public static function cotejarDatas(){\n $tablaModulo = self::getTable();\n }", "title": "" }, { "docid": "e6d6bcb11cf305225a161ef80d5ffea5", "score": "0.5067685", "text": "private function _get_table()\n\t{\n\t\tif (!is_string($this->table))\n\t\t{\n\t\t\t$this->load->helper('inflector');\n\t\t\t$class = preg_replace('#((_m|_model)$|$(m_))?#', '', strtolower($this->_get_called_class()));\n\t\t\t$this->table = plural(strtolower($class));\n\t\t}\n\t}", "title": "" }, { "docid": "c326f39b35050b77235304024322d755", "score": "0.50623554", "text": "public function getMarca(){\n return $this->marca;\n }", "title": "" }, { "docid": "d58c6d94f215fa7d37171bcb6aae430d", "score": "0.50425243", "text": "function tableMultiplication($nb) {\n\t// Je crée un tableau vide \n\t$table_multiplication = array();\n\n\tfor ($i=0; $i <= 10 ; $i++) { \n\t\t$table_multiplication[$i] = $i*$nb;\n\t}\n\t\n\treturn $table_multiplication;\n}", "title": "" }, { "docid": "9c3e879b7c23031d26208213dfeee094", "score": "0.50405616", "text": "private function make_table_people_timeofday()\n\t{\n\t\tif (is_null($this->month)) {\n\t\t\t$query = @mysqli_query($this->mysqli, 'select sum(`l_total`) as `l_total` from `q_activity_by_year` join `user_status` on `q_activity_by_year`.`ruid` = `user_status`.`uid` where `status` != 3 and `date` = '.$this->year) or $this->output('critical', 'mysqli: '.mysqli_error($this->mysqli));\n\t\t} else {\n\t\t\t$query = @mysqli_query($this->mysqli, 'select sum(`l_total`) as `l_total` from `q_activity_by_month` join `user_status` on `q_activity_by_month`.`ruid` = `user_status`.`uid` where `status` != 3 and `date` = \\''.date('Y-m', mktime(0, 0, 0, $this->month, 1, $this->year)).'\\'') or $this->output('critical', 'mysqli: '.mysqli_error($this->mysqli));\n\t\t}\n\n\t\t$rows = mysqli_num_rows($query);\n\n\t\tif (!empty($rows)) {\n\t\t\t$result = mysqli_fetch_object($query);\n\t\t}\n\n\t\tif (empty($result->l_total)) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$high_value = 0;\n\t\t$times = array('night', 'morning', 'afternoon', 'evening');\n\n\t\tforeach ($times as $time) {\n\t\t\tif (is_null($this->month)) {\n\t\t\t\t$query = @mysqli_query($this->mysqli, 'select `csnick`, `l_'.$time.'` from `q_activity_by_year` join `user_details` on `q_activity_by_year`.`ruid` = `user_details`.`uid` join `user_status` on `q_activity_by_year`.`ruid` = `user_status`.`uid` where `date` = '.$this->year.' and `status` != 3 and `l_'.$time.'` != 0 order by `l_'.$time.'` desc, `csnick` asc limit '.$this->maxrows_people_timeofday) or $this->output('critical', 'mysqli: '.mysqli_error($this->mysqli));\n\t\t\t} else {\n\t\t\t\t$query = @mysqli_query($this->mysqli, 'select `csnick`, `l_'.$time.'` from `q_activity_by_month` join `user_details` on `q_activity_by_month`.`ruid` = `user_details`.`uid` join `user_status` on `q_activity_by_month`.`ruid` = `user_status`.`uid` where `date` = \\''.date('Y-m', mktime(0, 0, 0, $this->month, 1, $this->year)).'\\' and `status` != 3 and `l_'.$time.'` != 0 order by `l_'.$time.'` desc, `csnick` asc limit '.$this->maxrows_people_timeofday) or $this->output('critical', 'mysqli: '.mysqli_error($this->mysqli));\n\t\t\t}\n\n\t\t\t$i = 0;\n\n\t\t\twhile ($result = mysqli_fetch_object($query)) {\n\t\t\t\t$i++;\n\t\t\t\t${$time}[$i]['user'] = $result->csnick;\n\t\t\t\t${$time}[$i]['lines'] = (int) $result->{'l_'.$time};\n\n\t\t\t\tif (${$time}[$i]['lines'] > $high_value) {\n\t\t\t\t\t$high_value = ${$time}[$i]['lines'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$tr0 = '<colgroup><col class=\"pos\"><col class=\"c\"><col class=\"c\"><col class=\"c\"><col class=\"c\">';\n\t\t$tr1 = '<tr><th colspan=\"5\">Most Talkative People by Time of Day';\n\t\t$tr2 = '<tr><td class=\"pos\"><td class=\"k\">Night<br>0h - 5h<td class=\"k\">Morning<br>6h - 11h<td class=\"k\">Afternoon<br>12h - 17h<td class=\"k\">Evening<br>18h - 23h';\n\t\t$tr3 = '';\n\n\t\tfor ($i = 1; $i <= $this->maxrows_people_timeofday; $i++) {\n\t\t\tif (!isset($night[$i]['lines']) && !isset($morning[$i]['lines']) && !isset($afternoon[$i]['lines']) && !isset($evening[$i]['lines'])) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t$tr3 .= '<tr><td class=\"pos\">'.$i;\n\n\t\t\t\tforeach ($times as $time) {\n\t\t\t\t\tif (!isset(${$time}[$i]['lines'])) {\n\t\t\t\t\t\t$tr3 .= '<td class=\"v\">';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$width = round((${$time}[$i]['lines'] / $high_value) * 190);\n\n\t\t\t\t\t\tif ($width != 0) {\n\t\t\t\t\t\t\t$tr3 .= '<td class=\"v\">'.htmlspecialchars(${$time}[$i]['user']).' - '.number_format(${$time}[$i]['lines']).'<br><div class=\"'.$this->color[$time].'\" style=\"width:'.$width.'px\"></div>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$tr3 .= '<td class=\"v\">'.htmlspecialchars(${$time}[$i]['user']).' - '.number_format(${$time}[$i]['lines']);\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}\n\n\t\treturn '<table class=\"ppl-tod\">'.$tr0.$tr1.$tr2.$tr3.'</table>'.\"\\n\";\n\t}", "title": "" }, { "docid": "a48e3cb38b21cde793bffc8ee70b9503", "score": "0.5035477", "text": "public function columns();", "title": "" }, { "docid": "5ff93469f9a108ea8acf582ed7061513", "score": "0.50335366", "text": "function RecuperaMentores()\n\t{\n\t\t$mentores = $this->db->select('*')->from('mentores')->get();\n\t\treturn $mentores->result();\n\t}", "title": "" }, { "docid": "e375dee96f47cdf561662b0768aa854b", "score": "0.5031286", "text": "protected function timer() {\n\t\treturn 'MONTH(FROM_UNIXTIME(`time`))';\n\t}", "title": "" }, { "docid": "98b4d675161547b876bd20292bc3f1f8", "score": "0.5030299", "text": "public abstract function table();", "title": "" }, { "docid": "19f147899cf61e2d82b3aa312568d8a0", "score": "0.50249636", "text": "public static function getAlumnos(){\n $alumnos = [new alumno(\"Antonio\",\"Illana\",\"Jubilado\",\"1111112A\"), \n new alumno(\"Pepe\",\"Quesada\",\"2DAA\",\"222222B\")];\n return $alumnos;\n }", "title": "" }, { "docid": "e328b760fc349cc7fc73389e61d9356d", "score": "0.50227493", "text": "function showCurrentMonth($tblmois, $currentMonth, $currentYear)\n{\n $monthDisplay = $currentMonth - 1; /*$monthDisplay represents the position in the array*/\n\n echo \"<li>\" . $tblmois[$monthDisplay] . \"<br><span style='font-size:18px'>\" . $currentYear . \"</span></li>\"; /*Echo the current month and the current year*/\n\n echo '</ul>';\n}", "title": "" }, { "docid": "652fd850164cfc5e81b9fcf58d946d3c", "score": "0.502021", "text": "public static function getInstance()\n {\n return Doctrine_Core::getTable('devueltoMarca');\n }", "title": "" }, { "docid": "292eea58ffbd8a5e1fce39ee8e7ecae5", "score": "0.5019259", "text": "public function getMarca()\n {\n return $this->marca;\n }", "title": "" }, { "docid": "2af0c2304a206b0b74db4d074580c686", "score": "0.50149137", "text": "function TablaNoticias($id,$inicial,$cantidad)\n{\n\t//id marca un registro de la tabla, si vale \"\" se muestran todos\n\t//inicial indica el registro a partir del cual se muestra la tabla (comienza en el 1)\n\t//cantidad indica el numero maximo de registros, si vale \"\", se muestran todos\n\t\n\t//Conexion a la base de datos\n\t$link=ConectarBD();\n\t$query=\"select * from noticias\";\n\tif($id)\n\t{\n\t\t$query=$query.\" where id=\\\"\".$id.\"\\\"\";\n\t}\n\t$query=$query.\" order by fecha desc\";\n\tif($inicial && $cantidad)\n\t{\n\t\t$query=$query.\" limit \".($inicial-1).\",\".$cantidad;\n\t}\n\t$result=mysql_query($query);\n\tif(mysql_num_rows($result)>0)\n\t{\n \t//LISTADO DE NOTICIAS\n \tif($inicial==1)\n \t{\n \t\t$ultima=true;\n \t}\n \techo \"<table width=\\\"100%\\\" border=\\\"1\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" bordercolor=\\\"0\\\">\";\n \twhile($row=mysql_fetch_array($result))\n \t{\n\t echo \" <tr bgcolor=\\\"#FFCC99\\\">\\n\";\n \techo \" <td>\\n\";\n \techo \" <div align=\\\"right\\\">\";\n \tif($ultima)\n \t{\n\t echo \"<i>&Uacute;ltima Actualizaci&oacute;n</i> - \";\n \t$ultima=false;\n \t}\n \t$fecha=explode(\"-\",$row[\"fecha\"]);\n \techo $fecha[2].\".\".$fecha[1].\".\".$fecha[0].\"</div>\\n\";\n \techo \" </td>\\n\";\n \techo \" </tr>\\n\";\n \techo \" <tr bgcolor=\\\"#FFFFCC\\\">\\n\";\n \techo \" <td>\\n\";\n \techo \" <div align=\\\"justify\\\">\".$row[\"texto\"].\"</div>\\n\";\n \techo \" </td>\\n\";\n \techo \" </tr>\\n\";\n \t}\n \techo \"</table>\";\n\t}\n\telse\n\t{\n \t//NO HAY NOTICIAS\n \treturn false;\n\t}\n\tmysql_free_result($result);\n\tmysql_close($link);\n\treturn true;\n}", "title": "" }, { "docid": "dfb75e4cc72bc5093f442baec775601b", "score": "0.5006391", "text": "private function createMovieTable()\n {\n $sql = '\n CREATE TABLE Rm_Movie\n (\n id INT AUTO_INCREMENT PRIMARY KEY NOT NULL,\n title VARCHAR(100) NOT NULL,\n director VARCHAR(100),\n length INT DEFAULT NULL, -- Length in minutes\n year INT NOT NULL DEFAULT 1900,\n plot TEXT, -- Short intro to the movie\n image VARCHAR(100) DEFAULT NULL, -- Link to an image\n subtext CHAR(3) DEFAULT NULL, -- swe, fin, en, etc\n speech CHAR(3) DEFAULT NULL, -- swe, fin, en, etc\n quality CHAR(3) DEFAULT NULL,\n format CHAR(4) DEFAULT NULL, -- mp4, divx, etc\n price INT DEFAULT NULL,\n imdb VARCHAR(100) DEFAULT NULL,\n youtube VARCHAR(100) DEFAULT NULL,\n published DATETIME,\n rented DATETIME,\n rents INT DEFAULT NULL\n ) ENGINE INNODB CHARACTER SET utf8;\n ';\n\n return $this->db->executeQuery($sql);\n }", "title": "" }, { "docid": "38891d60c4328396e9889c80f7acde30", "score": "0.499922", "text": "public function getMonth(){\r\n return $this->format('m');\r\n }", "title": "" }, { "docid": "717fca66f6041b378f1b386fac400ecb", "score": "0.49887145", "text": "function afficherDemandes()\n {\n $sql = \"SElECT * FROM demande d ORDER BY DATE_DEMANDE DESC\";\n $db = config::getConnexion();\n try {\n $liste = $db->query($sql);\n return $liste;\n } catch (Exception $e) {\n die('Erreur: ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "59e6777b4ce0a5b73f457639d86681e8", "score": "0.49850723", "text": "public function getSmBulan()\n {\n $sm = $this->db->get_where('surat_masuk', 'MONTH(created_at) = MONTH(CURRENT_DATE)')->result();\n return count($sm); // kembalikan jumlah data\n }", "title": "" }, { "docid": "37e7536db1e2a643a7c43671f404bf80", "score": "0.4983808", "text": "public function getAlumno()\r\n {\r\n return $this->alumno;\r\n }", "title": "" }, { "docid": "355169f1cc3c36b762f836667e445027", "score": "0.49820536", "text": "static function GetListMonths()\n\t{\n\t\tLang::SetSection('global');\n\n\t\t$result \t= array();\n\t\t$calendar \t= array(\n '01' => '%january%',\n '02' => '%february%',\n '03' => '%march%',\n '04' => '%april%',\n '05' => '%may%',\n '06' => '%june%',\n '07' => '%july%',\n '08' => '%august%',\n\t\t '09' => '%september%',\n '10' => '%october%',\n '11' => '%november%',\n\t\t '12' => '%december%'\n\t\t);\n\n\t\tforeach($calendar as $key => $value)\n\t\t\t$result[$key] = _l($value);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f3746739af7c10e6ef578924f7fd9949", "score": "0.4969888", "text": "function monthseededdata(){\n\t\t$selectTbdist = new Zend_DB_Table(\"dbt_report_month_wise_beneficary_category\");\n\t\t\t$select = $selectTbdist->select();\n\t\t\t$datadist = $selectTbdist->fetchRow($select);\n\t\t\treturn $datadist;\n\t}", "title": "" }, { "docid": "32ea2fb02e4045412e2d398a02e88561", "score": "0.49672684", "text": "function table()\n {\n return array('to_profile' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,\n 'group_message_id' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }", "title": "" }, { "docid": "04fab144f364708e20884eb9dd765e2b", "score": "0.4952595", "text": "function listStringMonth() : array\n\t{\n\t\treturn ['', 'January', \"February\", \"Maret\", \"April\", \"Mei\", \"Juni\", \"Juli\", \"Agustus\", \"September\", \"Oktober\", \"November\", \"Desember\"];\n\t}", "title": "" }, { "docid": "518796298133f1a46fe3ccd9e2f160b0", "score": "0.49504605", "text": "function TotalInMonth()\r\n\t{\r\n\t\tglobal $connection;\r\n\t\t//Total value of entries in the database for the current month\r\n\t\t$currentTime = time();\r\n\t\t$currentMonth = date(\"Y-m\",$currentTime);\r\n\t\t$currentMonth = $currentMonth . \"-01 00:00:00\";\r\n\r\n\t\t$sql = \"SELECT * FROM Entries WHERE time >= '\".$currentMonth.\"' and `Entering` = 1\";\r\n\t\t$statement = $connection->query($sql);\r\n\t\tif($statement->num_rows < 0) {return -1;}\r\n\t\t//the number of rows calculates the number of people who have walked by this month\r\n\t\t$totalPerMonth = $statement->num_rows;\r\n\t\treturn $totalPerMonth;\r\n\t}", "title": "" }, { "docid": "306b4589dd7dd77f997bfc61ada8912b", "score": "0.49472958", "text": "public function testGetMonths()\n {\n $year = new Year(2015);\n\n $months = $this->calendar->getMonths($year);\n\n $this->assertCount(12, $months, 'There must be 12 months in a year.');\n\n $monthNo = 1;\n foreach ($months as $month) {\n $this->assertEquals($monthNo, $month->value(), 'Month value is incorrect.');\n\n $this->assertEquals($year, $month->getYear(), 'The month is from the wrong year');\n\n $monthNo++;\n }\n }", "title": "" }, { "docid": "017a1fd575159e92166049935d44c154", "score": "0.49456182", "text": "function nombreTabla($result,$indice){\n\t if (isset($result) and isset ($indice)){\n\t\treturn mysql_field_table($result, $indice);\n\t }\n\t}", "title": "" }, { "docid": "7af74c26fe06a31d1bda947febdb406a", "score": "0.49427137", "text": "public function traer_medicamentos(){\n $this->db->consultas('\n select medicamentos.nombrem AS label, medicamentos.idMedicamento AS id\n from medicamentos\n ');\n $medicamentos = $this->db->obtener_data();\n \n return $this->respuesta = ['medicamentos'=>$medicamentos];\n }", "title": "" }, { "docid": "15b2c2154eb78d6b2213ba9f5b0ac16b", "score": "0.4941527", "text": "public function getMejores() {\n $mejores = BD_Modelo::getMejores();\n return $mejores;\n }", "title": "" }, { "docid": "8947917c9b7e7ecedc0285bf0ee0aefb", "score": "0.49307644", "text": "function get_all_medicaments()\n {\n $this->db->order_by('intrant_id', 'desc');\n return $this->db->get('tb_im_produits')->result_array();\n }", "title": "" }, { "docid": "5a62c11ab4bc38fa3d6878e4c952c0ae", "score": "0.49274155", "text": "public function getTimetable()\n\t{\n\t\t//TODO loadFromDB?\n\t\treturn $this->timetable;\n\t}", "title": "" }, { "docid": "e5d8dd225f4551eb487bca86befe2bdf", "score": "0.49243754", "text": "public function idiorm() {\n\n $categories = ORM::for_table('categorie')->find_result_set();\n // print_r($categorie);\n\n // foreach ($categories as $categorie) {\n // echo $categorie->LIBELLECATEGORIE.'<br>';\n // }\n\n $auteurs = ORM::for_table('auteur')->find_result_set();\n\n echo '<table>';\n\n foreach ($auteurs as $auteur) {\n\n echo '<tr>';\n echo '<td>'.$auteur->IDAUTEUR.'</td>';\n echo '<td>'.$auteur->PRENOMAUTEUR.'</td>';\n echo '<td>'.$auteur->NOMAUTEUR.'</td>';\n echo '<td>'.$auteur->EMAILAUTEUR.'</td>';\n echo '</tr>';\n\n echo '</table>';\n\n}\n\n }", "title": "" }, { "docid": "7d83379b3f44109dc6bc72f8d2754ad1", "score": "0.4922462", "text": "public function mostrarMedicos(){\n $rows = self::$DB->selectAll(\"medicos\");\n\n foreach ($rows as $m){\n $numeroConsultas = $this->contaConsultas(strval($m->crm),\"medico\");\n $medico =\n '<tr>\n <th>'.$m->nome.'</th>\n <td>'.$m->endereco.'</td>\n <td>'.$m->telefone.'</td>\n <td>'.$m->email.'</td>\n <td>'.$m->genero.'</td>\n <td>'.$m->especialidade.'</td>\n <td>'.$m->crm.'</td>\n\n <td>\n <a class=\"nav-link dropdown-toggle\" style=\"color: #c2c3c5; font-size: 12px; padding: 0;\" href=\"#\" id=\"navbarDropdown\" role=\"button\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n '. 'Consultas' .'\n </a> \n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"navbarDropdown\">\n <label class=\"dropdown-item\">Total de Consultas:\n '. $numeroConsultas[0] .'\n </label>\n <div class=\"dropdown-divider\"></div>\n <label class=\"dropdown-item\">Consultas este mês:\n '. $numeroConsultas[1] .'\n </label>\n <div class=\"dropdown-divider\"></div>\n <label class=\"dropdown-item\">Consultas hoje:\n '. $numeroConsultas[2] .'\n </label>\n </div>\n '.'\n </td> \n </tr>\n ';\n echo $medico; \n }\n }", "title": "" }, { "docid": "dbda3e4940f8d9013c12b659160c863e", "score": "0.49221516", "text": "public function render(){\n\t\t$start = date('w',mktime(0,0,0,$this->month,1,$this->year));\t\t\t\t\t\t// pozicija prvoj u mesecu koji se crta\n\t\t$days_in_month = cal_days_in_month(CAL_GREGORIAN, $this->month, $this->year);\t\t// broj dana u mesec koji se crta\n\t\t$same_week = 7;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// promenljiva vodi računa o kraju nedelje\n\t\techo \"<table>\";\n\t\techo \"<tr><td>Mesec: </td><th id='month-title'>$this->month</th><td>Godina: </td><th id='year-title'>$this->year</th></tr>\";\n\t\techo \"<tr><td>Nedlja</td><td>Ponedeljak</td><td>Utorak</td><td>Sreda</td><td>Četvrtak</td><td>Petak</td><td>Subota</td><tr>\";\n\t\techo \"<tr>\";\n\t\tfor ($i=0; $i < $start ; $i++) { \t\t\t\t\t\t\t\t\t\t\t\t\t// prazna polja pre prvog u mesecu\n\t\t\techo \"<td></td>\";\n\t\t\t$same_week--;\n\t\t}\n\t\tfor ($i=1; $i <= $days_in_month ; $i++) { \n\t\t\tif ($i==$this->date->format('j') && $this->month == $this->date->format('m') && $this->year == $this->date->format('Y')) {\n\t\t\t\techo \"<td id='today'>$i</td>\"; // današnji dan dobija id \"today\"\n\t\t\t} else {\n\t\t\t\techo \"<td>$i</td>\";\n\t\t\t}\t\n\t\t\t$same_week--;\t\t\t\t\t\t\t\t\t \n\t\t\tif (!$same_week) {\t\t\t\t\t\t\t\t // ukoliko je kraj nedelje, novi red\n\t\t\techo \"</tr><tr>\";\n\t\t\t$same_week = 7;\n\t\t\t}\n\t\t}\n\t\techo \"</tr></table>\";\n\t}", "title": "" }, { "docid": "4017cd569bb9c69c776d0ca190a4143f", "score": "0.49192667", "text": "function create_table(){\r\n\t\t$tables = array();\r\n\t\t/**\r\n\t\t* Table structure for table 'micromenu_list'\r\n\t\t*/\r\n\t\t$fields = array(\r\n\t\t\tarray(\"micromenu_identifier\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"auto_increment\",\"key\"),\r\n\t\t\tarray(\"micromenu_client\"\t\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\",\"key\"),\r\n\t\t\tarray(\"micromenu_label\"\t\t\t\t,\"varchar(255)\"\t\t\t\t,\"NOT NULL\"\t,\"default ''\"),\r\n\t\t\tarray(\"micromenu_creation_date\"\t\t,\"datetime\"\t\t\t\t\t,\"NOT NULL\"\t,\"default '0000-00-00 00:00:00'\"),\r\n\t\t\tarray(\"micromenu_status\"\t\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"micromenu_display_type\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"micromenu_extract_type\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"micromenu_all_locations\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"micromenu_set_inheritance\"\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"micromenu_show_label\"\t\t,\"unsigned small integer\"\t,\"NOT NULL\"\t,\"default '1'\"),\r\n\t\t\tarray(\"micromenu_parent\"\t\t\t,\"signed integer\"\t\t\t,\"NOT NULL\"\t,\"default '-1'\"),\r\n\t\t\tarray(\"micromenu_show_type\"\t\t\t,\"unsigned small integer\"\t,\"NOT NULL\"\t,\"default '0'\")\r\n\t\t\t\r\n\t\t);\r\n\t\t$primary =\"micromenu_identifier\";\r\n\t\t$tables[count($tables)] = array(\"micromenu_list\", $fields, $primary);\r\n\t\t/**\r\n\t\t* Table structure for table 'micromenu_url'\r\n\t\t*/\r\n\t\t$fields = array(\r\n\t\t\tarray(\"mmur_identifier\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"auto_increment\",\"key\"),\r\n\t\t\tarray(\"mmur_client\"\t\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\",\"key\"),\r\n\t\t\tarray(\"mmur_micro\"\t\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\",\"key\"),\r\n\t\t\tarray(\"mmur_title\"\t\t\t,\"varchar(255)\"\t\t\t\t,\"NOT NULL\"\t,\"default ''\"),\r\n\t\t\tarray(\"mmur_label\"\t\t\t,\"varchar(255)\"\t\t\t\t,\"NOT NULL\"\t,\"default ''\"),\r\n\t\t\tarray(\"mmur_rank\"\t\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"default '0'\"),\r\n\t\t\tarray(\"mmur_datecreated\"\t,\"datetime\"\t\t\t\t\t,\"NOT NULL\"\t,\"default '0000-00-00 00:00:00'\")\r\n\t\t);\r\n\t\t$primary =\"mmur_identifier\";\r\n\t\t$tables[count($tables)] = array(\"micromenu_definition\", $fields, $primary);\r\n\t\treturn $tables;\r\n\t}", "title": "" }, { "docid": "1d263d5b80c458503f56a89cada1bb35", "score": "0.49166822", "text": "public function deroulantMatiere() {\n $pdo=new connexionpdo();\n $prepare = $pdo->pdo_start()->prepare(\"SELECT * FROM matiere\");\n $prepare->execute();\n $result = $prepare->fetchAll();\n return $result;\n }", "title": "" }, { "docid": "b6cab5a86c78d09531dbf8058415b65b", "score": "0.49128413", "text": "public function showThemas() {\n\n\t\t$themas = [];\n\n\t\t$manager = $this->manager->getManager(); \n\n\t\t$show = $manager->query('SELECT * FROM Thema ORDER BY id ASC') or die(print_r($manager->errorMessage()));\n\n\t\twhile($shows = $show->fetch()){\n\n\t\t\t$themas[] = new Themas($shows);\n\t\t}\n\n\t\treturn $themas;\n\t}", "title": "" }, { "docid": "b96be29dd980616f098192d601fd3543", "score": "0.49118543", "text": "public function getMonth()\n {\n return $this->getProperty('mon');\n }", "title": "" } ]
4fdedf6ed7bd9f9c0c088965f2bb9794
Fetch a field name in a result
[ { "docid": "a137a3b9924a045bc21f8364b2877347", "score": "0.66909903", "text": "public function fieldName($query = false, $offset)\r\n {\r\n $result = $this->resCalc($query);\r\n return $result->fetch_field_direct($offset);\r\n }", "title": "" } ]
[ { "docid": "640819c5fb72fa2fe1daba64bb3c77d8", "score": "0.77990395", "text": "public function get_field($name);", "title": "" }, { "docid": "57772f3acddd011f23dd85a93ab6dd57", "score": "0.77832484", "text": "function udm_get_res_field($res, $row, $field) {}", "title": "" }, { "docid": "01a01a43c8b81a301a7fc46a7e74ad9e", "score": "0.752487", "text": "public function fetch_field () {}", "title": "" }, { "docid": "078d2a9c374adbe79474dc6cad94ffda", "score": "0.75167745", "text": "function fbsql_fetch_field($result, $field_index = null) {}", "title": "" }, { "docid": "7d462a6e9d784e6861e2f67ac0e07e56", "score": "0.74527156", "text": "private function getByField(): string {\n return $this->getData('packetery/byField') ?? $this->getData('name');\n }", "title": "" }, { "docid": "138078b7a671fbc93f67371ee33390c6", "score": "0.7443506", "text": "function mysql_field_name($result, $field_index) {}", "title": "" }, { "docid": "2a111b2d72bea6a6b7f092b071797bc6", "score": "0.74420553", "text": "function fieldName($result, $field_index) {}", "title": "" }, { "docid": "2a111b2d72bea6a6b7f092b071797bc6", "score": "0.74420553", "text": "function fieldName($result, $field_index) {}", "title": "" }, { "docid": "b5ee0aad69d47c1916859c19f08e6edb", "score": "0.7439711", "text": "function field($fieldname) {\n \n return $this->row[$fieldname];\n }", "title": "" }, { "docid": "b2ba5ec633b3a3da0bb01f567be1305a", "score": "0.73851556", "text": "function fbsql_field_name($result, $field_index = null) {}", "title": "" }, { "docid": "a4c0b4423e5baeaa9683bf0b915cd193", "score": "0.7317682", "text": "function db_get_field($query, $field) {\r\n $res = db_query($query);\r\n $result = db_fetch($res);\r\n\r\n return $result[$field];\r\n}", "title": "" }, { "docid": "bbc5a029bf36e29762d94047d0a79e1b", "score": "0.7263928", "text": "function ovrimos_field_name($result_id, $field_number) {}", "title": "" }, { "docid": "30514747883e44bd84774c096d742f20", "score": "0.725457", "text": "public function fetch_field(){\r\n return mysqli_fetch_field($this->result());\r\n }", "title": "" }, { "docid": "6170bdaad388e57be959df13bb71abc8", "score": "0.7184328", "text": "function fetch_namedField($name, $row=null) {\n if (is_null($row)) {\n if (is_null($this->row)) {\n $this->read();\n }\n \n return $this->row[$name]; \n } else {\n throw new Exception(\"Not yet implemented\"); \n return $this->fetch_field($num, $row);\n }\n }", "title": "" }, { "docid": "8d23aab0ae279e44364e7df76b3ab927", "score": "0.7178843", "text": "function sybase_fetch_field($result, $field_offset = null) {}", "title": "" }, { "docid": "7ad6222ab7716af6f02ba392a3058d82", "score": "0.7175981", "text": "function mysqli_fetch_field ($result) {}", "title": "" }, { "docid": "3749328633e40fd23c04227f56d85b6a", "score": "0.71713406", "text": "function msql_fetch_field($query, $field_offset = null) {}", "title": "" }, { "docid": "9b5baf8dfccf47e6ca57156c79f9082a", "score": "0.71550053", "text": "function mysql_fetch_field($result, $field_offset = null) {}", "title": "" }, { "docid": "3b232c7886cc4f8d98f6e9a055d60064", "score": "0.7139722", "text": "public function field($name);", "title": "" }, { "docid": "3b232c7886cc4f8d98f6e9a055d60064", "score": "0.7139722", "text": "public function field($name);", "title": "" }, { "docid": "236a4431e62f0e1bee9e356a4139b155", "score": "0.7123657", "text": "public function get_field();", "title": "" }, { "docid": "ceb801e9793aa7b6588ee8321ca2e338", "score": "0.71192265", "text": "function fetch_field($field_offset = 0) {\n return mysql_fetch_field($this->result, $field_offset);\n }", "title": "" }, { "docid": "cf127dca604543fc1bed2363b70038d0", "score": "0.7105163", "text": "public function getField($fieldName);", "title": "" }, { "docid": "6ca665deba49d480dbe33080b82ff79e", "score": "0.70982385", "text": "function odbc_field_name($result_id, $field_number) {}", "title": "" }, { "docid": "dd46982d0f17074bb0573cef296f1852", "score": "0.70855945", "text": "function pg_field_name($result, $field_number) {}", "title": "" }, { "docid": "1e760ad6fd0782cddba4c6544401af0b", "score": "0.7075475", "text": "abstract protected function getFieldName();", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.7020401", "text": "public function getFieldName();", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.7020401", "text": "public function getFieldName();", "title": "" }, { "docid": "006af5b470897002fd2fb918076a8149", "score": "0.7020401", "text": "public function getFieldName();", "title": "" }, { "docid": "2cd42942dce31b3b5b4b05c445813874", "score": "0.70051897", "text": "function mssql_field_name($result_id, $offset = null) {}", "title": "" }, { "docid": "b1d3c889cd8f0b77ad8a88e4e7d3b85b", "score": "0.6976326", "text": "function sqlite_field_name($result, $field_index) {}", "title": "" }, { "docid": "16914a82144b44f8ae3dcecaf33ee6a4", "score": "0.69722104", "text": "public function get_field($name) {\n\t\treturn $this->__get(\"_\" . $name);\n\t}", "title": "" }, { "docid": "3c2cd764b9645529ddcb6f5fe5f8af5a", "score": "0.69234", "text": "function msql_field_name($query, $field_index) {}", "title": "" }, { "docid": "7899d5088151309cbf57cab029a157b6", "score": "0.69083005", "text": "function mysql_fieldname($result, $field_index) {}", "title": "" }, { "docid": "7bc4391bd07d220846fe28e33d2456ed", "score": "0.6902061", "text": "public function querableField($name);", "title": "" }, { "docid": "70ca07aeefdd8d78739e1f5fac6bad8b", "score": "0.68249846", "text": "public function getSingleFieldName() : string;", "title": "" }, { "docid": "b1bd78da04db2a127e50bebc5d928572", "score": "0.67950195", "text": "public function getField($name)\n {\n return !empty($this->getResponse()[$name])\n ? $this->getResponse()[$name]\n : '';\n }", "title": "" }, { "docid": "5f8850249635ffeec27ac8c9fc7108f2", "score": "0.6792695", "text": "function fetch_field ($a = \"\") {\n\t\tif (!empty ($this->db_name)) {\n//debug(\"db activa = (\".$this->db_name.\")\");\n\t\t\treturn $this->dbs[$this->db_name]->fetch_field ($a);\n\t\t} else\n\t\t\treturn $this->db->fetch_array ($a);\n//debug(\"fetch field de $a\");\n\t\t$c = $db->fetch_field ($a);\n//debug(\"devolvio $c\");\n\t\treturn $c;\n\t}", "title": "" }, { "docid": "fd0beccf5d8754aac0061a1bab026e44", "score": "0.67917657", "text": "function fetchByField($field, $value);", "title": "" }, { "docid": "10a33b79f99cd13a674f07f18e183878", "score": "0.6783443", "text": "public function getField() {\r\n return $this->obj[$this->names[$this->iterator]];\r\n }", "title": "" }, { "docid": "9122ea6a6bc3e672b07a00799c00de23", "score": "0.6774712", "text": "function mysqli_fetch_field_direct ($result, $fieldnr) {}", "title": "" }, { "docid": "69c9dcc20b284fc47a9ca21ff4100533", "score": "0.67660975", "text": "function pg_fieldname($result, $field_number) {}", "title": "" }, { "docid": "8615d6e3cd976681b8df3c67c9673e40", "score": "0.67271954", "text": "function msql_fieldname($query, $field_index) {}", "title": "" }, { "docid": "7b60c659b73d8479297911f8cb91dc90", "score": "0.66986656", "text": "public function fetch_fields () {}", "title": "" }, { "docid": "b24541865c7423599f61cd400ea0e0ec", "score": "0.6698055", "text": "function mysql_fetch_field($result, $field_offset = false)\n{\n}", "title": "" }, { "docid": "531d669fbd06d78915e8d6c6cd4d7738", "score": "0.6673789", "text": "static public function fetchField($resource, $fieldKey) {\n if (version_compare(TYPO3_version, '6.1', '<')) { \n return mysql_fetch_field($resource, $fieldKey);\n } else {\n \treturn $resource->fetch_field_direct($fieldKey);\n }\n\t}", "title": "" }, { "docid": "832641b9deceda5128f91d09ecb1917c", "score": "0.66725373", "text": "public function getField(): string;", "title": "" }, { "docid": "ca6c0dac64bfd33cc5c0357d82329003", "score": "0.6640665", "text": "function udm_get_res_field_ex($res, $row, $field) {}", "title": "" }, { "docid": "fe4798c8ecdf92daa86f57954cc92ce8", "score": "0.6626913", "text": "public function getFieldByAlias($fieldName);", "title": "" }, { "docid": "3427463371b4e2f2919f57d75e32ef4f", "score": "0.6617484", "text": "function fields($fldname) {\r\n\t\treturn $this->fields[$fldname];\r\n\t}", "title": "" }, { "docid": "953447d5d4824e7bbc5f4039146b2bfb", "score": "0.66072375", "text": "function mssql_fetch_field($result_id, $offset = null) {}", "title": "" }, { "docid": "661b49e5983df47cb3781deb2107f14b", "score": "0.65703577", "text": "function GetField( $szFieldName ) \n { \n\t return $this->arRow[$szFieldName]; \n }", "title": "" }, { "docid": "c0dc1e2ec4fec10ad4b4ead6f1a4d094", "score": "0.65565944", "text": "public function fetch_field_direct ($fieldnr) {}", "title": "" }, { "docid": "8f31ce9ea9d6c535673a48bdcb78d066", "score": "0.65173286", "text": "public function FetchField() {\n\t\t// TODO: Implement FetchField() method.\n\t\tthrow new SqlException(\"PostgreSql\", \"PostgreSqlReader::FetchField() not supported yet !\", -1);\n\t}", "title": "" }, { "docid": "d81338a6d135bf240741368360ee6da6", "score": "0.64957374", "text": "public function get_field( $fname )\n {\n return $this->field($fname)->field();\n }", "title": "" }, { "docid": "bb05c9c27aa0d739e0a218a6683a8734", "score": "0.6491708", "text": "public function getField($key);", "title": "" }, { "docid": "cb0abd1d421ad6ca71b7d60b46887a9d", "score": "0.64850485", "text": "function infofield($num) \n\t{\n\t\t\treturn $this->Result->fetch_field_direct($num);\n\t}", "title": "" }, { "docid": "dc0e7e5fdba266541cafd4fb2607e7b1", "score": "0.6475967", "text": "public function getField($fieldName) {\n return $this->get($fieldName);\n }", "title": "" }, { "docid": "1b89afbfe589ed48a9e1e9aa88b118fe", "score": "0.64662325", "text": "function __get($name) {\n\t\t\treturn $this->fields[$name];\n\t\t}", "title": "" }, { "docid": "ccb10095316103d87fc029c8ca457420", "score": "0.6445656", "text": "public function fields($fieldName) {\n if (!$this->_result) {\n return false;\n }\n $this->_fieldArray = $this->_fieldArray ? $this->_fieldArray : $this->_result->fetch_assoc();\n return $this->_fieldArray[$fieldName];\n }", "title": "" }, { "docid": "956b47bbad51bf46b48531044375967f", "score": "0.64383566", "text": "function mysqli_fetch_fields ($result) {}", "title": "" }, { "docid": "6de3580d91a8b68e188542297c3a6233", "score": "0.6430576", "text": "protected function getField($field)\n {\n $response_field = isset($this->fields[$field]) ? $this->fields[$field] : $field;\n if (!is_null($this->data) && isset($this->data->$response_field)) {\n return $this->data->$response_field;\n }\n return '';\n }", "title": "" }, { "docid": "919a20ab96fac9226d2970b53f9e0cd2", "score": "0.64179045", "text": "function fetch_fields($result) {\n\t\treturn mysqli_fetch_fields($result);\n\t}", "title": "" }, { "docid": "dd74f21a075076b784bd5c54fd3275ce", "score": "0.63996834", "text": "public function fieldName(): string;", "title": "" }, { "docid": "3f3c1c991a239b82f25082fc92c65c83", "score": "0.63772535", "text": "public function getField($field_name){\r\n $r=$this->getFields($field_name);\r\n if(!$r)throw new Exception_InitError(\"Field $field_name is not defined for $this->name\");\r\n return $r;\r\n }", "title": "" }, { "docid": "efd93bca29693ce527e76c4d0d7e45cc", "score": "0.63756126", "text": "function GetFieldValue($sql) {\t}", "title": "" }, { "docid": "1cf4f07e18a88a3351640546871f3742", "score": "0.63738096", "text": "public function getFieldName(){\n\t\treturn $this->field_name;\n\t}", "title": "" }, { "docid": "df64267163a1601db914d7640d269947", "score": "0.6371883", "text": "function companyField(string $field){\n $company = Company::first()->toArray();\n return $company[$field];\n }", "title": "" }, { "docid": "8ad41f28790227f00948658709d3ac19", "score": "0.6357298", "text": "private function get_field_value($field_name)\n {\n }", "title": "" }, { "docid": "a610a56797aa36149eb44c92be8c2dfb", "score": "0.63553894", "text": "public function getValue($field);", "title": "" }, { "docid": "a5571bd831fa20f065d9cf0923cb72fa", "score": "0.6334103", "text": "public function get( string $field_name ): string {\n\t\treturn $this->$field_name ?? '';\n\t}", "title": "" }, { "docid": "1d1c10a803a1e4703ac2a1ecbf36c3e0", "score": "0.63317674", "text": "function getFieldByName($name){\n foreach($this->getFields() as $field)\n if ($field->getName()==$name) return $field;\n return false;\n }", "title": "" }, { "docid": "4fc25dfde3c8bc0c491d97a2c8948544", "score": "0.6326292", "text": "function resolveName($field)\n{\n if($field == \"f_name\"){\n \n return \"First Name\";\n \n }else if($field == \"l_name\"){\n \n return \"Last Name\";\n \n }else if($field == \"email_add\"){\n \n return \"Email Address\";\n \n }else if($field == \"security_ans_input\"){\n \n return \"Security Answer\";\n \n }else if($field == \"username\"){\n \n return \"Username\";\n \n }else if($field == \"pwd_input\"){\n \n return \"Password\";\n \n }else if($field == \"conf_pwd_input\"){\n \n return \"Confirm Password\";\n \n }\n}", "title": "" }, { "docid": "c60e126eb860d8ecebe649bf331c5967", "score": "0.6324643", "text": "function fetch_field_names($Result){\n\t\tif(function_exists('mysqli_connect')){\n\t\t\t$FieldSet = mysqli_fetch_fields($Result);\n\t\t\tforeach($FieldSet as $Field){\n\t\t\t\t$Fields[] = $Field->name;\n\t\t\t}\n\t\t}else{\n\t\t\tfor($i = 0; $i < mysql_num_fields($Result); $i++) {\n\t\t\t\t$FieldInfo = mysql_fetch_field($Result, $i);\n\t\t\t\t$Fields[] = $FieldInfo->name;\n\t\t\t}\n\t\t}\n\n\t\treturn $Fields;\n\t}", "title": "" }, { "docid": "9b93c61ec0f3fa25db25ad2f79e2024b", "score": "0.632459", "text": "function local_lom_get_field($courseid, $categoryname, $fieldname, $contextlev=CONTEXT_COURSE) {\n global $DB;\n $metadata = [];\n $results = '';\n\n $categoryid = $DB->get_field('local_metadata_category', 'id', ['name' => $categoryname]);\n \n // zl_temp handle duplicated fieldname\n\n $fields = $DB->get_records('local_metadata_field', ['contextlevel' => $contextlev, 'categoryid' => $categoryid]);\n if (!empty($fields)) {\n foreach ($fields as $field) {\n // fields can have multiple instance\n if (strpos($field->name, $fieldname)!== false) {\n $databaseentry = $DB->get_field('local_metadata', 'data', ['instanceid' => $courseid, 'fieldid' => $field->id]);\n $metadata[] = $databaseentry;\n }\n }\n }\n \n return $metadata;\n}", "title": "" }, { "docid": "5ee183deca2dfa7dfd09f2c7a7278c89", "score": "0.63106734", "text": "private function fetchFields() {\n\t\tself::$fields[$this->getTableName()] = array();\n\t\t$sql = self::$db->prepare('SELECT * FROM '.$this->getTableName().' LIMIT 1');\n\t\t$sql->execute();\n\t\tfor($i=0;$i<$sql->columnCount();$i++) {\n\t\t\t$meta = $sql->getColumnMeta($i);\n\t\t\tself::$fields[$this->getTableName()][$meta['name']] = $meta;\n\t\t}\n\t}", "title": "" }, { "docid": "2c20d01ba2b3a1dbd817758b28004018", "score": "0.63009423", "text": "function get_field() {\n if (!empty($this->formula)) {\n return $this->handler->get_formula();\n }\n else {\n return $this->handler->table_alias . '.' . $this->handler->real_field;\n }\n }", "title": "" }, { "docid": "eea10ee271c035a3614cbbc9315e520d", "score": "0.6294356", "text": "public function __get($field){ //get value\n if($field=='id') return $this->id;\n else return $this->fields[$field];\n }", "title": "" }, { "docid": "9c079b011dcf6d9191a5bd15cbc55227", "score": "0.62938374", "text": "public function getField(): string\n {\n return $this->field;\n }", "title": "" }, { "docid": "9c079b011dcf6d9191a5bd15cbc55227", "score": "0.62938374", "text": "public function getField(): string\n {\n return $this->field;\n }", "title": "" }, { "docid": "e40ecc83f67686deafed260ceaa24765", "score": "0.6290873", "text": "public function __get($field)\n {\n if ($field == 'id')\n {\n return $this->id;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "title": "" }, { "docid": "15119defe324dc5b027166eec7a09931", "score": "0.62812865", "text": "function fetchField($fieldIndex = 0) {\n if (is_int($fieldIndex)) {\n $data = $this->fetchRow(DB_FETCHMODE_ORDERED);\n return $data[$fieldIndex];\n } elseif (is_string($fieldIndex)) {\n $data = $this->fetchRow(DB_FETCHMODE_ASSOC);\n return $data[$fieldIndex];\n }\n return FALSE;\n }", "title": "" }, { "docid": "061c4c5b4b56c94b5b748d50e0286f6f", "score": "0.6272148", "text": "function __get($field) {\n if ($field == 'id') {\n return \"$this->_id\";\n }\n $i = strpos($field, '.');\n if ($i !== false) {\n return $this->_getDotNotation($field, $this->_data);\n }\n return isset($this->_data[$field]) ? $this->_data[$field] : null;\n }", "title": "" }, { "docid": "50784ccccf06b21a2c9e6a98fc3e7f1e", "score": "0.62717944", "text": "function fetch_field ($id = -1) {\n\t\tif (!isset ($id) OR $id == -1)\n\t\t\t$id = $this->res_point;\n//debug(\"fetch_field; id = \".$this->res_id[$id]);\n\t\t$res_id = mysql_fetch_field ($this->res_id[$id]);\n\t\tif (mysql_errno ())\n\t\t\t$this->errores ($this->consulta);\t/* nuevo */\n\t\treturn $res_id;\n\t}", "title": "" }, { "docid": "bb52eb7100d7e2028476b2031a233637", "score": "0.6265024", "text": "public function __get($name) {\n\t\t$is_safe = in_array($name, $this->safe_fields);\n\t\tif ($name == \"pk\")\n\t\t\t$name = $this->get_pk_name();\n\t\tif ($name == \"_pk\")\n\t\t\t$name = \"_\" . $this->get_pk_name();\n\t\tif (isset($this->fields[$name])) {\n\t\t\t$val = $this->fields[$name]->get_value();\n\t\t\tif (method_exists($this, \"__get_\" . $name)) {\n\t\t\t\t$method = \"__get_\" . $name;\n\t\t\t\t$val = $this->$method($val);\n\t\t\t}\n\t\t\treturn ($is_safe || !is_string($val)) ? $val : htmlentities($val);\n\t\t}\n\t\tif (starts_with($name, \"_\")) {\n\t\t\t$base_name = substr($name, 1);\n\t\t\tif (isset($this->fields[$base_name]))\n\t\t\t\treturn $this->fields[$base_name];\n\t\t}\n\t\t\n\t\tthrow new FieldException($GLOBALS['i18n']['framework'][\"fieldne\"] . ' ' . get_class(new static()) . \":$name.\");\n\t}", "title": "" }, { "docid": "1a3258bf66a1f3e45a8748393e03b8da", "score": "0.6258639", "text": "public function getField($name) {\n return isset($this->fields[$name]) \n ? $this->fields[$name] \n : ($this->parent ? $this->parent->getField($name) : null)\n ;\n }", "title": "" }, { "docid": "c9262cff4ada80ec59b33dfe4d31a2c3", "score": "0.6254767", "text": "public function getField($fieldName)\n {\n return $this->getEntityFields()->getItem($fieldName);\n }", "title": "" }, { "docid": "939de8f7f5092e4fde2b3c46b70170f9", "score": "0.6252664", "text": "function single_value($field_name)\r\n\t{\r\n// $result = mysqli_query(\"SELECT id FROM users WHERE username = '$username'\");\r\n// $row = mysqli_fetch_row($result);\r\n// return $row[0];\r\n\r\n\t\t$value=mysql_result($this->QueryID, 0,$field_name);\r\n \treturn $value;\r\n\t}", "title": "" }, { "docid": "a1fcb825b15ba2a05d9f6d66d1261aee", "score": "0.6248831", "text": "function get_field($field, $table, $id) { \n global $con;\n\n $query = \"SELECT * FROM \".$table.\" WHERE accountID =\".$id.\"\" ;\n $result = mysqli_query($con, $query);\n $row = mysqli_fetch_array($result); \n\n if (!$result) {\n die(\"db error \" . mysqli_error($con));\n }\n\n //echo $row[\"'\".$field.\"'\"];\n return $row[\"\".$field.\"\"];\n }", "title": "" }, { "docid": "af88439247311fc35060027821386ca7", "score": "0.62303936", "text": "public function getFieldName() {\n return $this->_fieldName;\n }", "title": "" }, { "docid": "e5dff83f5d78eef8d7e620f695545c19", "score": "0.6218652", "text": "function getUserDetailFields($id,$field){\n\tGLOBAL $connection;\n\t$id = removeSpecialChars($id);\n\t$field = removeSpecialChars($field);\n\n\t$sql = \"SELECT * FROM users \n\t\t\tWHERE user_id='$id'\n\t\";\n\n\t$query = mysqli_query($connection,$sql) or die(mysqli_error($connection));\n\n\treturn mysqli_fetch_assoc($query)[$field];\n}", "title": "" }, { "docid": "0bb4677bdc8123115dc037f793041736", "score": "0.6209366", "text": "public function __get($field) {\n if ($field == \"fields\") {\n return $this->fields;\n }\n }", "title": "" }, { "docid": "0986e01177cb7ab042c8064fdb31b387", "score": "0.6196993", "text": "public function getListFieldName() : string;", "title": "" }, { "docid": "e922eb577a19544f2195b79ead1670ec", "score": "0.61946785", "text": "public function __get( $p_name ) {\n\t\tif( $this->is_extended_field( $p_name ) ) {\n\t\t\t$this->fetch_extended_info();\n\t\t}\n\t\treturn $this->{$p_name};\n\t}", "title": "" }, { "docid": "6035e2b0b13b8043f6300c17c2192e25", "score": "0.619181", "text": "function getNameField($iterador){\n echo $this->fieldNamesArray[$iterador] = mysql_field_name($this->doQueryS,$iterador);\n }", "title": "" }, { "docid": "d15246ed62e68329b2caa47a7d9594f4", "score": "0.6183588", "text": "function getFieldNameById ($id)\n {\n $db = &JFactory::getDBO();\n $sql = $db->getQuery(true);\n\n $sql->select($db->quoteName('name'))\n ->from($db->quoteName('#__virtuemart_userfields'))\n ->where(array($db->quoteName('virtuemart_userfield_id') . '=' . $id));\n\n $db->setQuery($sql);\n\n if (! $db->query()) {\n $this->_app->enqueueMessage(\n 'Error fetching field by name: ' . $db->stderr(),\n 'error'\n );\n return 0;\n }\n return $db->loadResult();\n }", "title": "" }, { "docid": "08a178290afdc8b118db394a555e1728", "score": "0.61753166", "text": "function get_one($field)\n \t{\n \t\t$result=$this->model->db->get_one($this->to_sql($field));\n \t\treturn $result;\n \t}", "title": "" }, { "docid": "70a3cc05471bac04188c849320c77046", "score": "0.61684", "text": "public function getFieldName(): string\n {\n return $this->fieldName;\n }", "title": "" }, { "docid": "4e9ef84c5be6535f9cdd64fbb1659ed9", "score": "0.6165162", "text": "public function __get($field)\n {\n return $this->fields[$field];\n }", "title": "" }, { "docid": "e369c41a9ec2ede1d4e2c9818ffc4d3f", "score": "0.6139895", "text": "function fieldvalue($field=\"user_id\",$id=\"\",$condition=\"\",$order=\"\")\n\t{\n\t\t$rs=$this->fetchrecordset($id, $condition, $order);\n\t\t$ret=0;\n\t\twhile($rw=mysql_fetch_assoc($rs))\n\t\t{\n\t\t\t$ret=$rw[$field];\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" } ]
bf29ca7a2faf0939dd711c27011384cc
Set the user logged in without password check.
[ { "docid": "d80d5ef896dd7e6c4a0fcc3d182679c2", "score": "0.0", "text": "public function forceLogin($user_login=null) {\n // echo \"user_login: $user_login\\n\";\n if ( empty($user_login) ) $user_login = $this->user_login;\n $user = get_user_by( 'login', $user_login );\n if ( $user === false ) {\n xlog(\"error on forceLogin\");\n }\n wp_set_current_user( $user->ID );\n return $user;\n }", "title": "" } ]
[ { "docid": "2dd003b502154b56390d3f1ee842a617", "score": "0.733294", "text": "public function _setRealUser() {\n\t\t$user = $this->Auth->user();\n\t\t$user['id'] = $user['real_user_id'];\n\t\tunset($user['real_user_id']);\n\n\t\t$this->Auth->login($user);\n\t}", "title": "" }, { "docid": "56eebb0cbd1203eb61cf6bd6e3109ecb", "score": "0.72204715", "text": "private function setCurrentUser()\n {\n if ( $this->session->userdata ) { //if session => get user props\n $id = $this->session->userdata( 'id' );\n $this->user = $this->user_model->get( $id );\n } else {\n redirect( 'user/login' );\n }\n }", "title": "" }, { "docid": "b78afe1a4c3d5a49c4486f65a45d934c", "score": "0.7116631", "text": "private function login() {\n\t\t$user_id = $this->factory->user->create();\n\t\twp_set_current_user( $user_id );\n\t}", "title": "" }, { "docid": "5cd9e9b65c8e00ad89beaa2e98434c76", "score": "0.7115142", "text": "public function controlLogin()\n\t{\n\t\tif (! isset($_SESSION['user_id']) || ! empty($_POST['login']) || ! empty($_REQUEST['logout'])) {\n\t\t\t$this->factory('StandardLogin')->controlLogin();\n\t\t}\n\t\t$this->userConfig();\n\t}", "title": "" }, { "docid": "a0f468d5e233412a312f8d781131d562", "score": "0.7006512", "text": "private function doLoginWithSessionData() {\n $this->user_is_logged_in = true; // ?\n }", "title": "" }, { "docid": "91e50a2720c68af2ca2a5a5178198e63", "score": "0.69724894", "text": "protected function _setCurrentUser()\n {\n $userId = \\core\\Session::forge()->get(static::SESSION_USER_ID_KEY);\n \n if (isset($userId))\n { \n $users = \\models\\User::findBy(array(\"id\" => $userId));\n $this->_user = $users[0];\n }// if \n }", "title": "" }, { "docid": "a7b520be77f9f8acc377472726738f0a", "score": "0.69497937", "text": "public function setLoggedInUser($id)\n\t{\n\t\t$_SESSION['user_openid_url'] = $id;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "06730ef1397966fa0348d85971e8319c", "score": "0.6902491", "text": "public function setLoggedin($value) {\r\n $_SESSION['loggedin'] = $value;\r\n }", "title": "" }, { "docid": "f3f382c4e1f9d86892113a3ed3fe4863", "score": "0.6901889", "text": "public function setLoggedIn($userId) {\r\n\r\n\t\t$userInfo\t= $this->getUserInfo($userId);\r\n\r\n\t\tif (!empty($userInfo['id']) && !empty($userInfo['username'])) {\r\n\r\n\t\t\t// set user login status\r\n\t\t\t$this->setAuthenticated(true);\r\n\r\n\t\t\t// set credential, member is default\r\n\t\t\t$this->addCredential($this->nameSpace);\r\n\r\n\t\t#\tvar_dump($userInfo);\r\n\r\n\t\t\t$this->setAttribute('id', $userInfo['id'], $this->nameSpace);\r\n\t\t\t$this->setAttribute('username', $userInfo['username'], $this->nameSpace);\r\n\r\n\t\t\t$this->setCookie();\r\n\r\n\t\t\treturn\ttrue;\r\n\r\n\t\t}\r\n\t\treturn\tfalse;\r\n\t}", "title": "" }, { "docid": "a8811a181c210ff6810a986d4f3227c7", "score": "0.69008625", "text": "protected function retainUserInfo() {\n\t\tif (!$this->loggedIn) {\n\t\t\tthrow new Login_Failed(\"Your username or password is invalid\");\n\t\t} else {\n\t\t\t$this->user = wp_get_current_user();\n\t\t}\n\t}", "title": "" }, { "docid": "5420e3acf1a55ab0a7c8429b0d662ae0", "score": "0.687989", "text": "public function userAnon () {\n\t\tUser::$user = FALSE;\n\t}", "title": "" }, { "docid": "3dab7c5d766ec8e24e6902f0531a093f", "score": "0.68617105", "text": "public function login()\n\t{\n\t\tif (empty($this->data))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t$user = Authsome::login($this->data['User']);\n\n\t\tif (!$user)\n\t\t{\n\t\t\t$this->Flash->error('Unknown user or wrong password');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$remember = (!empty($this->data['User']['remember']));\n\t\tif ($remember) {\n\t\t\tAuthsome::persist('2 weeks');\n\t\t}\n\n\t\t$this->Flash->info( __('Logged in successfully.', true));\n\t\t$this->redirect('/');\n\t}", "title": "" }, { "docid": "b44900a27268a05396c91da668aa5a16", "score": "0.68498635", "text": "function set_userlogin($id)\n\t{\n\t\t//@INFO: This dosn't seem very safe having this exposed to everything.\n\t\t// Create Users session data\n\t\t$user = $this->CI->user_model->getUsers(array('users.id'=>$id));\n\t\t$user = $user->row_array();\n\t\t$this->CI->session->set_userdata($user);\n\n\t\tif( !$this->CI->session )\n\t\t{\n\t\t\t// Could not log user in, something went wrong\n\t\t\tflashMsg('error',$this->CI->lang->line('userlib_login_failed'));\n\n\t\t\t// Remove autologin value to stop an infinite loop\n\t\t\tdelete_cookie('autologin');\n\n\t\t\tredirect('auth/login','location');\n\t\t}\n\n\t\t// Update users last login time\n\t\t$this->CI->user_model->updateUserLogin($id);\n\t}", "title": "" }, { "docid": "32c456bdb380aece156b3dc2cac897af", "score": "0.6791918", "text": "public function login()\n {\n Models\\User\\Login::create($this);\n $_SESSION['current_userID'] = $this->userID;\n }", "title": "" }, { "docid": "5560aa0ecf5a7dd38886cc86c31b1af9", "score": "0.6786278", "text": "public function setAsAuthorized()\n\t{\n\t\t$_SESSION[self::SESSION_IS_LOGGED] = TRUE;\n\t\t$_SESSION[self::SESSION_USER_NAME] = 'helbrary_user';\n\t}", "title": "" }, { "docid": "cf6bbc3e864d0b6426ce97f5be80e310", "score": "0.6776875", "text": "function login() {\n if ($this->Auth->user()) {\n $user = $this->Auth->user();\n if (!empty($this->data)) {\n if ($this->allowCookie) {\n $cookie = array();\n $cookie['username'] = $this->data['User']['username'];\n $cookie['password'] = $this->data['User']['password'];\n $this->Cookie->write('User', $cookie, true, $this->cookieTerm);\n }\n }\n $this->redirect($this->Auth->redirect('/users/view/' . $user['User']['id']));\n } else {\n $this->Cookie->del('User');\n }\n }", "title": "" }, { "docid": "7092b5101c085270639248dbece71130", "score": "0.67538476", "text": "function auth() {\n\t\t$f3=$this->f3;\n\t\t$salt=crypt($f3->get('POST.password'));\n\t\tif (false &&( $f3->get('POST.user_id')!=$f3->get('user_id') ||\n\t\t\tcrypt($f3->get('password'),$salt)!=$salt)) {\n\t\t\t$f3->set('message','Invalid user ID or password');\n\t\t\t$this->login();\n\t\t}\n\t\telse {\n\t\t\t$f3->set('SESSION.user_id',$f3->get('POST.user_id'));\n\t\t\t$f3->set('SESSION.password',\n\t\t\t\tcrypt($f3->get('password'),$salt));\n\t\t\t$f3->set('SESSION.lastseen',time());\n\t\t\t$f3->reroute('/');\n\t\t}\n\t}", "title": "" }, { "docid": "7b4be27ad2bbfc14273bdfa6278ed118", "score": "0.67493254", "text": "public function login()\n {\n $this->session->set($this->sessionKey, $this->adminData);\n }", "title": "" }, { "docid": "b127d6ee1a314b19266d8b307bbba4e8", "score": "0.674647", "text": "private function setUser()\n {\n $this->cas_user = phpCAS::getUser();\n Session::put('cas_user', $this->cas_user);\n }", "title": "" }, { "docid": "81db82ff11fc1a1257fee95044076ce7", "score": "0.67177224", "text": "public function setUser()\r\n\t{\r\n\t\t$uinfo = Session::get('uinfo');\r\n\t\t\r\n\t\t$this->page['user'] = empty($uinfo) ? AccountService::defaultUser() : json_decode($uinfo,true);\r\n\t}", "title": "" }, { "docid": "c1077e989f5acb58f8ce221e42a1817d", "score": "0.6716874", "text": "function setUser($value){\n $_SESSION[\"User\"] = $value; // Setzt den aktuell eingeloggten User\n }", "title": "" }, { "docid": "ebeb1c228bb40b3ecd8fc7375fe4c868", "score": "0.67142284", "text": "public function login(){\n\n $_SESSION[\"loggedin\"] = true;\n $_SESSION[\"username\"] = $this->username;\n\n }", "title": "" }, { "docid": "9a9212f54f918482efd479dd2ce4dc5e", "score": "0.6702393", "text": "public function set_login($id)\n\t{\n\t\t$this->id = intval($id);\n\t\t$_SESSION['userid'] = intval($this->id);\n\t}", "title": "" }, { "docid": "d42b62ada6712a1596df71d7a0148ede", "score": "0.6686639", "text": "public function foodbakery_auto_login_user() {\n \n }", "title": "" }, { "docid": "33500e3c7917d411bdfd9a4e62c6bb36", "score": "0.66672254", "text": "private function setCredentials($user) {\n\t\t$this->user = $user;\n\t\t$this->username = $_REQUEST['LoginView::UserName'];\n\t\t$this->password = $_REQUEST['LoginView::Password'];\n\t\t$_SESSION['LoginView::UserName'] = $this->username;\n\t}", "title": "" }, { "docid": "5065d84927b42e3fc1361fdc6f0a2aac", "score": "0.6648971", "text": "public function user_login( ) {\n $this->doLogin();\n }", "title": "" }, { "docid": "569f7592359b02fea6a4a4699aa7e0eb", "score": "0.6641983", "text": "function setLoggedInUser($identity_url=null)\n{\n if (!isset($identity_url)) {\n unset($_SESSION['openid_url']);\n } else {\n $_SESSION['openid_url'] = $identity_url;\n }\n}", "title": "" }, { "docid": "1195b8abac2fc437bbc095a61ef00140", "score": "0.66414046", "text": "public function __SET_LOGOUT_USER()\n {\n\n\n $this->CI->session_system->__UNSET_SYSTEM();\n\n }", "title": "" }, { "docid": "2c1d8feb427f1fe95bbd2c385f21fcd1", "score": "0.6627515", "text": "function User() {\n\t\t$this->date = gmdate(\"'Y-m-d'\");\n\t\tif($_SESSION['logged']) {\n\t\t\t$this->_checkSession();\n\t\t} elseif ( isset($_COOKIE['mtwebLogin']) ) {\n\t\t\t$this->_checkRemembered($_COOKIE['mtwebLogin']);\n\t\t}\n\t}", "title": "" }, { "docid": "f69578f8e1efc14cc58b92b0faf2f562", "score": "0.6612295", "text": "public function setloggedOut() {\r\n\t\t$this->clearSession();\r\n\t\t$this->setCookie($broke = true);\r\n\t}", "title": "" }, { "docid": "9b3c0b775f8b8c9407e24eaa9c8a81f5", "score": "0.66023207", "text": "private function logInAsUser()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallContext = 'main';\n\n $token = new UsernamePasswordToken('user', null, $firewallContext, array('ROLE_USER'));\n $session->set('_security_'.$firewallContext, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "a10072c0c02f01cc76aa61d2460b0db2", "score": "0.6600577", "text": "function login() {\n\t\tif ($this->data) {\n\t\t\tif ($this->Auth->user('id')) {\n\t\t\t\t$this->User->id = $this->Auth->user('id');\n\t\t\t\tif (!empty($this->data['User']['remember_me'])) {\n\t\t\t\t\t$token = $this->User->token(null, array('length' => 100, 'fields' => array(\n\t\t\t\t\t\t$this->Auth->fields['username'], $this->Auth->fields['password']\n\t\t\t\t\t)));\n\t\t\t\t\t$this->SwissArmy->loadComponent('Cookie');\n\t\t\t\t\t$this->Cookie->write('User.id', $this->User->id, true, '+2 weeks');\n\t\t\t\t\t$this->Cookie->write('User.token', $token, true, '+2 weeks');\n\t\t\t\t}\n\t\t\t\t$display = $this->User->display();\n\t\t\t\t$this->Session->setFlash(sprintf(__('Welcome back %1$s.', true), $display));\n\t\t\t\tif ($this->RequestHandler->isAjax() && !empty($this->params['refresh'])) {\n\t\t\t\t\treturn $this->_back(null, true);\n\t\t\t\t}\n\t\t\t\treturn $this->_back();\n\t\t\t}\n\t\t} elseif ($this->Auth->user('id')) {\n\t\t\treturn $this->_back(null, true);\n\t\t}\n\t\tif (Configure::read()) {\n\t\t\t$this->Session->setFlash('Debug only message: Save some tedium - check remember me.');\n\t\t}\n\t}", "title": "" }, { "docid": "a4eebf36113405c2988bd523a25a36ff", "score": "0.65982616", "text": "private function defaultAuthentication()\n {\n $this->users = $GLOBALS['config']['users'];\n $this->sessionExpire = $GLOBALS['config']['sessionExpire'];\n }", "title": "" }, { "docid": "ece26c9e01cf45aa466ccc61bb616773", "score": "0.6583672", "text": "function setIsLoggedIn($value){\n $_SESSION[\"Loggedin\"] = $value; // Setzt ob der Nutzer eingeloggt ist oder nicht in die Session\n }", "title": "" }, { "docid": "d433f323a7f102f256a50a243fac15c4", "score": "0.6581336", "text": "private function check_the_login(){\n \n if(isset($_SESSION['user_id'])){\n\n // here we are checking if the session equals to the user_id. Then it's stored into the user_id \n $this->user_id = $_SESSION['user_id'];\n $this->signed_in = true;\n } else {\n unset($this->user_id);\n $this->signed_in = false;\n }\n\n }", "title": "" }, { "docid": "988f7fe92243fe9243d8ee63ca2c3103", "score": "0.6576525", "text": "private function setUserCookies() {\n\t\t$this->setCookieWithTime('LoginView::CookieName', $this->username);\n\t\t$this->setCookieWithTime('LoginView::CookiePassword', $this->password);\n\t}", "title": "" }, { "docid": "3337411fff7599a1ecb6edf92bb91022", "score": "0.65443224", "text": "private function _get_user()\n\t{\n\t\tif (Cookie::get('_sess') and $user = Model_User::find('first', array('where' => array('login_hash' => Crypt::decode(Cookie::get('_sess'))))))\n\t\t{\n\t\t\t$this->current_user = $user;\n\t\t\t$this->current_user->_set_logged_in(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->current_user = Model_User::forge(array('username' => 'Guest', 'group_id' => 5));\n\t\t\t$this->current_user->_set_logged_in(false);\n\t\t}\n\t\t$this->template->set_global('current_user', $this->current_user);\n\t}", "title": "" }, { "docid": "f3d37750735607b452e322642cc885e3", "score": "0.6542723", "text": "function pf_session_set_user($user){\n $_SESSION['current_user'] = user;\n }", "title": "" }, { "docid": "fcfeb28d2d783bd10946bd40dd7192fa", "score": "0.6519014", "text": "public function loggedIn();", "title": "" }, { "docid": "26a94bc1740405ff0110a45f169ad553", "score": "0.6493292", "text": "public function on_auth_changed()\n {\n $this->user = midgardmvc_core::get_instance()->dispatcher->get_midgard_connection()->get_user();\n }", "title": "" }, { "docid": "1836d3809ae7f9641c41b56c0369ea14", "score": "0.64816564", "text": "public function check_logged_in(){\n\t\tif($this->is_logged_in()){\n\t\t\t$this->user_id = $_SESSION['user_id'];\n\t\t\t$this->logged_in = true;\n\t\t}else{\n\t\t\tunset($this->user_id);\n\t\t\t$this->logged_in = false;\n\t\t}\n\t}", "title": "" }, { "docid": "c914016d52d89cfb7585cde250f6b6bb", "score": "0.64809644", "text": "public function set_fully_authenticated($value) {\n\n $this->is_fully_authenticated = !empty($value);\n\n if (!is_cli()) {\n $this->session->set_userdata($this->is_fully_authenticated_session_key, $this->is_fully_authenticated);\n }\n }", "title": "" }, { "docid": "dd833a13fc369ae4559da483e921f264", "score": "0.64786464", "text": "public function login($user) {\n if($user){\n $this->userId = $_SESSION['userId'] = $user->id;\n $this->userName = $_SESSION['userName'] = $user->name;\n $this->userRole = $_SESSION['userRole'] = $user->role;\n $this->isAdmin = $user->role === 'admin';\n $this->loggedIn = true;\n }\n }", "title": "" }, { "docid": "4b2b2b52ec7da5034a4d2d74452af457", "score": "0.64506334", "text": "function setLogin($usr_login, $usr_psw)\n {\n $this->usr_login = $usr_login;\n $this->usr_psw = $this->encryptPassword($usr_psw);\n }", "title": "" }, { "docid": "6aa2bdf5ed9c53c0d2e94d289efa11ac", "score": "0.6447948", "text": "public function loginUser()\n {\n // Get the login data from the POST request or the params if not null\n $username = $this->f3->get(\"POST.username\");\n $password = $this->f3->get(\"POST.password\");\n\n // create the user with the data from the form\n $user = new User();\n $user->setUsername($username);\n $user->setPassword($password);\n\n \n $model = new UserModel();\n if ($model->checkCredentials($user)) {\n $user->tryConstruct();\n\n // save user id in session and set the expiration date of the session\n $this->f3->set(\"SESSION.userid\", $user->getId());\n SessionWrapper::updateExpireDate();\n \n $this->f3->reroute(\"/dashboard\");\n } else {\n $this->error(\"Ungültige Anmeldedaten\");\n $this->f3->reroute(\"/auth\");\n }\n }", "title": "" }, { "docid": "b6c4de45fbf293fa2261e8e9e973e6c5", "score": "0.64451206", "text": "protected function checkAuth(): void\n {\n $check = get_session_instance()->get('shieldon_user_login');\n\n if (empty($check)) {\n $user = new User();\n $user->setCsrfField($this->getCsrfField());\n\n if ($this->mode === 'demo') {\n $user->demo(\n $this->demoUser['user'],\n $this->demoUser['pass']\n );\n }\n\n $this->resolver($user->login());\n }\n }", "title": "" }, { "docid": "f79419578e44704b6b735080a7f77d71", "score": "0.64267445", "text": "public function login($user)\r\n {\r\n $_SESSION['is_logged_in'] = $user;\r\n }", "title": "" }, { "docid": "525782490f83c55108b7748378e21fcb", "score": "0.6420881", "text": "public function loginDefaultUser()\n {\n $response = $this->json('post', '/api/v1/signin', [\n \"email\" => $this->generated_user_model['email'],\n \"password\" => $this->generated_user_model['password'],\n ]);\n $content = json_decode($response->content(), true);\n $this->access_token = $response->headers->get(\"access-token\") ?? null;\n\n $response->assertStatus(Response::HTTP_OK);\n $this->assertNotEmpty($this->access_token, \"Access token empty\");\n\n $this->authorized_user = User::find($content['id']);\n }", "title": "" }, { "docid": "81c87ade9df35623598f03322df736d1", "score": "0.64178157", "text": "public function log_in($remember){\n\t\t\t$time=strtotime('+1 week');\n\t\t\tCookies::set('k2fsuu',base64_encode($this->username),$remember ? $time : 0);\n\t\t\tCookies::set('k2fsup',base64_encode($this->password),$remember ? $time : 0);\n\t\t\tUsers::$user=$this;\n\t\t}", "title": "" }, { "docid": "3793af39226be672d6e3e6d1f128b744", "score": "0.64039236", "text": "public function loginUser($useId)\n {\n $this->_userId = $_SESSION['user'] = $useId;\n $this->_loggedIn = true;\n }", "title": "" }, { "docid": "2498726fc8ed923f20ed1a54687d5167", "score": "0.6396284", "text": "function set_user(){\n\t\t\t$username = $_POST['username'];\n\t \t$_SESSION['username'] = $username;\n\t \tredirect();\n\t}", "title": "" }, { "docid": "3b9c1ac4a6a74729e957620ce106fe86", "score": "0.63952047", "text": "static function ForceLogin() {\n if(isset($_SESSION['user_id'])) {\n // user is logged in\n } else {\n // user is not logged in\n header(\"Location: /login.php\"); exit;\n }\n }", "title": "" }, { "docid": "0e1dbefa6d35219fdbf090227fa24ee4", "score": "0.6385547", "text": "public function login() {\n\t\tforeach($_SESSION as $arg => $var) { unset($_SESSION[$arg]); }\n\t\t$rsu = mq(\"update \" . DB_TBL_MEMBERS . \" set m_lastlogin='\" . DB_SAFE_DATETIME . \"' where mid='\" . $this->data['mid'] . \"'\");\n\t\t$_SESSION['mid'] = $this->data['mid'];\n $_SESSION['loggedin'] = true;\n $_SESSION['m_type'] = $this->data['m_type'];\n\t}", "title": "" }, { "docid": "926fd0dd4796662502474810c193d60e", "score": "0.6385312", "text": "private function logIn()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallName = 'main';\n $token = new UsernamePasswordToken('Matteo', null, $firewallName, ['ROLE_USER']);\n $session->set('_security_'.$firewallName, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "ccdb6a48b47871ace9513d226f952d01", "score": "0.63767403", "text": "public function set_logined_status() {\r\n\t\r\n\t\t//设置登录session uid\r\n\t\t$GLOBALS['user']->uid = $this->uid;\r\n\r\n\t\t//重新变更session id\r\n\t\tSimPHP::$session->regenerate_id();\r\n\t\t\r\n\t\t//新起一个对象来编辑,避免过多更新\r\n\t\t$nUser = new self($this->uid);\r\n\t\t$nUser->lastlogin = simphp_time();\r\n\t\t$nUser->lastip = Request::ip();\r\n\t\t$nUser->save();\r\n\t}", "title": "" }, { "docid": "b944ccd3df39d9006a9fe19194f445c8", "score": "0.6374363", "text": "public function setIsLoggedInToTrue()\n {\n return $this->forceFill([\n 'is_logged_in' => true,\n ])->save();\n }", "title": "" }, { "docid": "f33b5a0a2fd5cc39bb154b70b298b3f3", "score": "0.63667613", "text": "protected function setUser()\n {\n $this->userID = $this->user->id;\n\n $this->session->set_userdata(array(\n \"userID\" => $this->user->id,\n \"username\" => $this->user->username,\n \"roles\" => $this->userWiseRoles(),\n \"loginStatus\" => true\n ));\n\n return redirect(\"home\");\n }", "title": "" }, { "docid": "3cf8c730e4e468b7dc959af7e464c6f6", "score": "0.63575244", "text": "public function loginAndRemember(User $user);", "title": "" }, { "docid": "9c822fde5060b881677f691f9c7b622a", "score": "0.6341384", "text": "function manualLogin($user) {\n\t\tif (isset($user[$this->modelName][Configure::read('accounts.fields.password')])) {\n\t\t\tunset($user[$this->modelName][Configure::read('accounts.fields.password')]);\n\t\t}\n\t\t$this->controller->Session->write('Auth', $user);\n\t\t// Put the auth info in the Login singleton for easy access.\n\t\tLogin::set($this->Auth->user());\n\t\t// Update last login in Account model.\n\t\t$this->User->updateLastLogin();\n\t}", "title": "" }, { "docid": "e9cede1e7594bdcbdc05ec4a3d397838", "score": "0.63413805", "text": "function set_current_user( $user_id ) {\n\t\tglobal $bp;\n\t\t$bp->loggedin_user->id = $user_id;\n\t\twp_set_current_user( $user_id );\n\t}", "title": "" }, { "docid": "ec1171f8f11eedcab4f04d968b992587", "score": "0.6332451", "text": "private function login() {\n if ($this->loginView->hasValidInput()) {\n $username = $this->loginView->getUsername();\n $password = $this->loginView->getPassword();\n if ($this->loginModel->logIn($username, $password)) {\n if ($this->loginView->doRememberMe()) {\n $this->credentialsHandler->saveCredentials($this->loginModel->getUser());\n $this->loginView->setRememberMeLoginMessage();\n } else {\n $this->loginView->setLoginMessage();\n }\n } else {\n $this->loginView->setFailMessage();\n }\n }\n }", "title": "" }, { "docid": "b993f39605c7a136481d862ca0124e2d", "score": "0.6331003", "text": "function setLogin($login=\"\") \r\n\t\t{\r\n\t\t\t\t$this->login=$login;\r\n\t\t}", "title": "" }, { "docid": "4525db90c26eee40033ab992b52fdb2f", "score": "0.6329091", "text": "private function userWithoutPw(){\n\t\tif (!empty($this->_user_exists[0][2])) {\n\t\t\n\t\t\t// if the user shpul get the invisible feeld in PW enter\n\t\t\t$this->status = ($this->_user_exists[0][3]==\"admin\") ? \"pw+invisible\" : \"pw\";\n\n\t\t}\n\t\telse {\n\t\t\t$_SESSION['etchat_'.$this->_prefix.'user_id'] = $this->_user_exists[0][0];\n\t\t\t$_SESSION['etchat_'.$this->_prefix.'username'] = $this->_user_exists[0][1];\n\t\t\t$_SESSION['etchat_'.$this->_prefix.'user_priv'] = $this->_user_exists[0][3];\n\t\t\tif ($_SESSION['etchat_'.$this->_prefix.'user_priv']=='admin' ||\n\t\t\t\t$_SESSION['etchat_'.$this->_prefix.'user_priv']=='mod') setcookie(\"cookie_anzahl_logins_in_XX_sek\",1);\n\t\t\t$this->status = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "7da3ac1cfdb59d0e468301ba3c7a2013", "score": "0.6324038", "text": "static private function loadLoggedInUser(){\r\n\r\n\t\tif (!Session::isLoggedIn()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tself::$user = new \\TaskerMAN\\Application\\User(Session::get('uid'));\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b0f07374907a51d330b3aaa0f3323652", "score": "0.6323541", "text": "public function setActiveUser()\n {\n if (Auth::check()) {\n // Set the active user in session\n if (!Session::has('activeUser')) {\n Session::put('activeUser', Auth::user());\n }\n $this->activeUser = Session::get('activeUser');\n $this->activeUser->updateLastActive();\n }\n\n View::share('activeUser', $this->activeUser);\n }", "title": "" }, { "docid": "9879ed2962f1e03feb9210f2e4427694", "score": "0.63221717", "text": "abstract protected function setUser();", "title": "" }, { "docid": "e544e9162e315f3a6821a4d6bc7e8af3", "score": "0.6319919", "text": "protected function loginUser1() {\n // Log in as user 1.\n /* @var \\Drupal\\user\\Entity\\User $account */\n $account = User::load(1);\n $password = 'foo';\n $account->setPassword($password)->save();\n // Support old and new tests.\n $account->passRaw = $password;\n $account->pass_raw = $password;\n $this->drupalLogin($account);\n }", "title": "" }, { "docid": "b4ebebc6bb7278d1b3345e47d6182c3c", "score": "0.6319384", "text": "public function _autoLogin($user) {\n }", "title": "" }, { "docid": "ab59f79d48166aa3f465bcfe9e487ba2", "score": "0.6308769", "text": "public function login($user){\n \n if($user){\n // here we are assigning two things to the variable. the session to make sure the user is able to go to every page. And the user->id from the object to be able to use in user.php \n $this->user_id = $_SESSION['user_id'] = $user->id;\n $this->user_name = $_SESSION['user_name'] = $user->username;\n $this->signed_in = true;\n }\n \n }", "title": "" }, { "docid": "d662f6ba8693e42f1fe54a4ab19d09bc", "score": "0.6300356", "text": "public function setLoginStatusInSession() {\n $_SESSION['isLoggedIn'] = $this->isLoggedIn;\n }", "title": "" }, { "docid": "98319bdff675c62c4037ba925e75f422", "score": "0.6298871", "text": "public function setLoginId(): void\n {\n }", "title": "" }, { "docid": "98319bdff675c62c4037ba925e75f422", "score": "0.6298871", "text": "public function setLoginId(): void\n {\n }", "title": "" }, { "docid": "6ea31ad9edb2c10f9aac4ac985336285", "score": "0.62976557", "text": "public function logged_in()\n\t{\n\t if ($this->user->loaded) return $this->user;\n\n\t\t// Get the user from the session\n\t\t$session_key = $this->session->get($this->config['session_key']);\n $user = ($session_key instanceof ORM) ? $session_key : ORM::factory($this->user_model, $session_key);\n\t\t$status = $user->loaded ? true : false;\n\t\t\n\t\t// Get the user from the cookie\n\t\tif ($status === FALSE AND $this->config['lifetime'])\n\t\t{\n\t\t\tif ( ($token = cookie::get(\"a1_{$this->config_name}_autologin\")) )\n\t\t\t{\n\t\t\t\t$token = explode('.',$token);\n\t\t\t\n\t\t\t\tif (count($token) === 2 AND is_string($token[0]) AND is_numeric($token[1]))\n\t\t\t\t{\n\t\t\t\t\t// Search user on user ID and token. Because user ID is primary key, this is much faster than\n\t\t\t\t\t// searching on just the token.\n\t\t\t\t\t$user = ORM::factory($this->user_model)->where($this->columns['token'],$token[0])->find($token[1]);\n\t\t\t\t\t\n\t\t\t\t\tif ($user->loaded)\n\t\t\t\t\t{\n\t\t\t\t\t\t$status = true;\n\t\t\t\t\t\t$this->complete_login($user, TRUE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->user = $user;\n\t\treturn $status === TRUE ? $user : FALSE;\n\t}", "title": "" }, { "docid": "38d42b1775401310b106f803b11b4f0a", "score": "0.62938017", "text": "public function afterLogin() {\n\t\tSession::put('user_id', CRUDBooster::myId());\n\t}", "title": "" }, { "docid": "285cae65938ac5a002f2c36e4d3f94f8", "score": "0.6289832", "text": "public static function setLoggedInUser($loggedInUser) {\n App42API::$loggedInUser = $loggedInUser;\n }", "title": "" }, { "docid": "b0129c6f85cbaaca51157e28de6676f5", "score": "0.62803847", "text": "private function storeUserInSession()\n {\n $this->Session->write('user.id', $this->uid);\n }", "title": "" }, { "docid": "1a958a1cee8b74d601268b3d48110723", "score": "0.6280365", "text": "public function on_set_current_user()\n {\n $current_user = wp_get_current_user();\n\n // Default user context to anonymous.\n $user_context = [\n 'id' => 0,\n 'name' => 'anonymous'\n ];\n\n // Determine whether the user is logged in assign their details.\n if ($current_user instanceof \\WP_User) {\n if ($current_user->exists()) {\n $user_context = [\n 'id' => $current_user->ID,\n 'name' => $current_user->display_name,\n 'email' => $current_user->user_email,\n 'username' => $current_user->user_login\n ];\n }\n }\n\n // Filter the user context so that plugins that manage users on their\n // own can provide alternate user context. ie. members plugin\n if (has_filter('wp_sentry_user_context')) {\n $user_context = apply_filters(\n 'wp_sentry_user_context',\n $user_context\n );\n }\n\n // Finally assign the user context to the client.\n $this->set_user_context($user_context);\n }", "title": "" }, { "docid": "f1d211fa233eb982b8e84c25dde7eba8", "score": "0.6277288", "text": "public function login($user, $password) {\n // if true -> session var loggedIn = true and dynamic session id.\n // if true\n $this->user = $user;\n $this->password = $password;\n // sanatize input and check\n \n \n }", "title": "" }, { "docid": "17bc37eb518b6f408f8fcaa5b0b0e075", "score": "0.6265949", "text": "private function logInSimpleUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(41);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "9aa10d7fe17088e85b7a09240ca5ea63", "score": "0.6262816", "text": "static function setUser($user) {\r\n\t\t\t$_SESSION[\"user\"]=$user;\r\n\t\t}", "title": "" }, { "docid": "95676188dc8681e3f73a5ce6f31b9609", "score": "0.6253779", "text": "public function setLogin($user=null,$pass=null) {\r\n\t\t\r\n\t\t$this->user = ($user === null) ? $this->user : $user;\r\n\t\t$this->passw = ($pass === null) ? $this->passw : $pass;\r\n\t\t$this->auth_array = array(\r\n \t\t\t\t\t\t\t\t'user_auth' => array(\r\n \t\t\t\t\t\t\t\t\t\t\t'user_name' => $this->user,\r\n \t\t\t\t\t\t\t\t\t\t\t'password' => md5($this->passw),\r\n \t\t\t\t\t\t\t\t\t\t\t\t)\r\n \t\t\t\t\t\t\t\t);\r\n \t\t$login_results = $this->client->call('login',$this->auth_array);\r\n \t\t$this->session_id = $login_results['id'];\r\n\t}", "title": "" }, { "docid": "4cf407fd903733ac322ce849b39c4476", "score": "0.62475395", "text": "public function reloadCurrentUser()\n {\n if (!Configure::read('debug')) {\n throw new \\LogicException('Reloading this current user is only allowed in debug mode.');\n }\n\n //This reflects what the login process currently (!) does:\n $user = TableRegistry::get('Users')->find('auth')->where(['id' => $this->user('id')])->firstOrFail();\n $user->unsetProperty('password');\n $this->setUser($user);\n }", "title": "" }, { "docid": "d6f982d1a03cbf35e91b1dde82bfd191", "score": "0.62406826", "text": "public function init() {\r\n parent::init();\r\n \\Yii::$app->user->enableSession = false;\r\n \\Yii::$app->user->loginUrl = null;\r\n }", "title": "" }, { "docid": "f1d0ea24264838daa5be871c82a8ce9b", "score": "0.62392056", "text": "public function setCurrentUser($user);", "title": "" }, { "docid": "6369ccd40cbbda9794417566d49cf1a7", "score": "0.6238882", "text": "public static function login() {\n }", "title": "" }, { "docid": "3c4053776a1efed17da6b2a774ae884a", "score": "0.623862", "text": "public function setLogin($value)\n {\n return $this->set('Login', $value);\n }", "title": "" }, { "docid": "41ddb5c9b3277bd71157f2d352afeb96", "score": "0.6237152", "text": "function member_login() {\r\n\t\t$this->login();\r\n\t}", "title": "" }, { "docid": "41ead1f0f5232453abdc0ac75adf77a6", "score": "0.62337005", "text": "public function loggingIn()\n {\n }", "title": "" }, { "docid": "3e826c832fa976d78c2599ea4c7c32cb", "score": "0.62282693", "text": "function _user_login($login_user) {\n global $user;\n\n $user = $login_user;\n $_SESSION['user'] = $login_user['uid'];\n cache_set('user', $login_user['uid'], session_id());\n}", "title": "" }, { "docid": "0ecf6b0a8d64bb10ffa021e5b339b929", "score": "0.62250763", "text": "public function setLoggedIn(bool $loggedIn): void\n {\n $this->loggedIn = $loggedIn;\n }", "title": "" }, { "docid": "d7f40bc5dbde31b91359f9bb65d50b16", "score": "0.62228584", "text": "public function login() {\n\t\t\n\t}", "title": "" }, { "docid": "8f59043350f2817cc36a8b1c846e9aed", "score": "0.62218004", "text": "protected function _setAuth()\n {\n global $registry;\n\n if ($registry->isAuthenticated(array('app' => $this->_app, 'notransparent' => true))) {\n return true;\n }\n\n /* Grab the current language before we destroy the session. */\n $language = $registry->preferredLang();\n\n /* Destroy any existing session on login and make sure to use a\n * new session ID, to avoid session fixation issues. */\n if (($userId = $registry->getAuth()) === false) {\n $registry->getCleanSession();\n $userId = $this->getCredential('userId');\n }\n\n $credentials = $this->getCredential('credentials');\n\n try {\n list(,$credentials) = $this->runHook($userId, $credentials, 'postauthenticate');\n } catch (Horde_Auth_Exception $e) {\n return false;\n }\n\n $registry->setAuth($userId, $credentials, array(\n 'app' => $this->_app,\n 'change' => $this->getCredential('change'),\n 'language' => $language\n ));\n\n /* Only set the view mode on initial authentication */\n if (!$GLOBALS['session']->get('horde', 'mode')) {\n $this->_setMode();\n }\n if ($this->_base &&\n isset($GLOBALS['notification']) &&\n ($expire = $this->_base->getCredential('expire'))) {\n $toexpire = ($expire - time()) / 86400;\n $GLOBALS['notification']->push(sprintf(Horde_Core_Translation::ngettext(\"%d day until your password expires.\", \"%d days until your password expires.\", $toexpire), $toexpire), 'horde.warning');\n }\n\n $registry->callAppMethod($this->_app, 'authAuthenticateCallback', array('noperms' => true));\n\n return true;\n }", "title": "" }, { "docid": "a2853598cdeace124a88cc1c7e1aa89f", "score": "0.621435", "text": "function updateUser(){\n\t\t$this->user = $this->loadResource('access', array(\n\t\t\t'_id' => $this->getSessionData('user'),\n\t\t));\n\t\t// otherwise load default user\n\t\tif(!$this->user) $this->user = $this->loadResource('access', array(\n\t\t\t'identifier' => 'default',\n\t\t\t'type' => 'defaultUser',\n\t\t));\n\t}", "title": "" }, { "docid": "e608d12b11b7d2484110e90a93f45674", "score": "0.6197558", "text": "public function login() {\n\t\t//@todo: sanitize variables\n\t\t$username = isset($_POST['username']);\n\t\t$password = isset($_POST['password']);\n\t\t\n\t\tUser::login($_POST['username'], $_POST['password']);\n\t}", "title": "" }, { "docid": "c59854a22c14ad0028c8afe6d899bdac", "score": "0.61934334", "text": "function userisLoggedIn() {\n\t\t$userisLoggedIn = $this->session->userdata ( 'userisLoggedIn' );\n\t\t\n\t\tif (! isset ( $userisLoggedIn ) || $userisLoggedIn != TRUE) {\n\t\t\tredirect ( 'login' );\n\t\t} else {\n\t\t\t$this->role = $this->session->userdata ( 'role' );\n\t\t\t$this->vendorId = $this->session->userdata ( 'userId' );\n\t\t\t$this->name = $this->session->userdata ( 'name' );\n\t\t\t$this->roleText = $this->session->userdata ( 'roleText' );\n\t\t\t\n\t\t\t$this->global ['name'] = $this->name;\n\t\t\t$this->global ['role'] = $this->role;\n\t\t\t$this->global ['role_text'] = $this->roleText;\n\t\t}\n\t}", "title": "" }, { "docid": "274e6f24e6fb7e60b85fc7c00f036004", "score": "0.6185154", "text": "public function logIn($where=null){\n if( is_array($where) && $this->attempt($where) ){\n $this->__isLoggedIn = true;\n $this->fireEvent(\"login\",\"after\");\n $this->save();\n }\n else if($this->isAttempted()){\n $this->__isLoggedIn = true;\n $this->fireEvent(\"login\",\"after\");\n $this->save();\n }\n\n return $this;\n }", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.6183774", "text": "public function login();", "title": "" }, { "docid": "57f16a1438372e2a7492c36856b514d9", "score": "0.6182847", "text": "public function login() {\n\t\t\t$this->f3->clear('SESSION');\n\n\t\t\t$user = $this->f3->get('POST.username');\n\t\t\t$pass = $this->hashing($this->f3->get('POST.password'));\n\n\t\t\t$login = $this->tabelDB('user');\n\t\t\t$login->load(array('nama=? AND password=?', $user, $pass));\n\n\t\t\tif ($login->dry())\n\t\t\t\t$this->f3->set('SESSION.pesan', 'Username dan atau Password salah!');\n\t\t\telse {\n\t\t\t\tif ($login->akses > 0) {\n\t\t\t\t\t$this->f3->set('SESSION.pesan', 'Berhasil login!');\n\t\t\t\t\t$this->f3->set('SESSION.login', $this->hashing(rand()));\n\t\t\t\t\t$this->f3->set('SESSION.id', $login->id);\n\t\t\t\t\t$this->f3->set('SESSION.nama', $login->nama);\n\t\t\t\t\t$this->f3->set('SESSION.akses', $login->akses);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$this->f3->set('SESSION.pesan', 'Akses ditolak!');\n\t\t\t}\n\n\t\t\t$this->f3->reroute($this->f3->get('hal_admin'));\n\t\t}", "title": "" }, { "docid": "ef382d7b40a0a180728f9e732c5a1c60", "score": "0.617193", "text": "protected function login() {\n if (!empty($this->connid) && !empty($this->key)) {\n $this->logginresult = $this->connid->login($this->settings['username'], $this->key);\n }\n }", "title": "" }, { "docid": "9d82b9cca3cae3be0fa4d59984c63322", "score": "0.61601424", "text": "protected function user_login( )\n {\n if(!self::emptyFieldsValidator()) {\n \n if($this->model->login($this->email, $this->password)) {\n $this->redirect('private');\n } else {\n $this->view->errorEmail = 'Usuario o contraseña incorrecto';\n }\n } \n \n $this->view->email = $this->email;\n $this->view->render();\n }", "title": "" }, { "docid": "4d16672399a45b0b653d4de2753c4d46", "score": "0.6155712", "text": "public function setAuthentificated($authentificated = true)\n\t{\n\t\tif(is_bool($authentificated))\n\t\t{\n\t\t $_SESSION['auth'] = $authentificated;\n\t\t}\n\t}", "title": "" } ]
15970107918ed07610433a8f45c23a66
Set the value of total
[ { "docid": "abc8b3e74d0e821e64f54e6a2b18540d", "score": "0.6276", "text": "public function setTotal($total)\n {\n $this->total = $total;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "d055c4a24ced3304c8eb407f6f719a58", "score": "0.81792873", "text": "public function setTotal($total);", "title": "" }, { "docid": "17a4af2a603dd6519f1b6a817f16d8aa", "score": "0.79070795", "text": "public function set_total($total) {\n $this->_state['total'] = $total;\n }", "title": "" }, { "docid": "48d4b48f88cac540978179cbcc6a65a9", "score": "0.783214", "text": "public function setTotal($total)\n {\n $this->_total = $total;\n }", "title": "" }, { "docid": "ec96898fa0c96c841fe6968371c79fa3", "score": "0.7727308", "text": "public function setTotal($total) {\n\t\t$this->total = $total;\n\t}", "title": "" }, { "docid": "5e0e467916b97368deed08039d293817", "score": "0.765793", "text": "function setTotalPrice($totalPrice);", "title": "" }, { "docid": "701fca02aea71c646116980bb7575f86", "score": "0.7650483", "text": "public function setTotal($value) {\n return $this->set(self::TOTAL, $value);\n }", "title": "" }, { "docid": "d53afbd52e143da9f51c48236a441e92", "score": "0.75674295", "text": "public function setQuantityTotal(): void\n {\n if ($this->getCount() === 0) {\n $this->totalQuantity = 0;\n return;\n }\n\n $sum = 0;\n foreach ($this->items as $item) {\n $sum += $item['quantity'];\n }\n\n $this->totalQuantity = $sum;\n }", "title": "" }, { "docid": "e0437c225d95e4446f078b47c718d571", "score": "0.7507951", "text": "public function setTotal($value)\n {\n return $this->set(self::TOTAL, $value);\n }", "title": "" }, { "docid": "e0437c225d95e4446f078b47c718d571", "score": "0.7507951", "text": "public function setTotal($value)\n {\n return $this->set(self::TOTAL, $value);\n }", "title": "" }, { "docid": "28a10f9d47306127ff840b18e71b1ea5", "score": "0.746236", "text": "public function setPriceTotal(): void\n {\n if ($this->getCount() === 0) {\n $this->totalPrice = 0.00;\n return;\n }\n\n $price = 0.00;\n foreach ($this->items as $item) {\n $price += $item['quantity'] * $item['price'];\n }\n\n $this->totalPrice = $price;\n }", "title": "" }, { "docid": "d9d16d6d3f77fe73a176a311a2c6d0d9", "score": "0.7404754", "text": "public function autoSetTotal()\n {\n $price = $this->getRoom()['price'];\n $date_start_obj = new DateTime($this->dateStart);\n $price_reservation = floatval($date_start_obj->diff(new DateTime($this->dateEnd))->format('%R%a'));\n if ($price_reservation > 0)\n {\n $total_order = 0;\n $orders = $this->getOrders();\n foreach ($orders as $order)\n {\n $total_order += $order['total'];\n }\n $this->total = $price_reservation + $total_order;\n }\n }", "title": "" }, { "docid": "7234575d070da62cab0eccbc0d135ced", "score": "0.73652524", "text": "public function set_total($_totalRows){\n\t\t$this->_totalRows = $_totalRows;\n\t}", "title": "" }, { "docid": "7234575d070da62cab0eccbc0d135ced", "score": "0.73652524", "text": "public function set_total($_totalRows){\n\t\t$this->_totalRows = $_totalRows;\n\t}", "title": "" }, { "docid": "6f3e442300f9ae7816e9c9a63cbed718", "score": "0.73642355", "text": "public function setTotal(string $total): void\n {\n $this->_total = $total;\n }", "title": "" }, { "docid": "ddb1b6072cc001b1a38f4dbd569df2bd", "score": "0.73272073", "text": "public function setAmount($val)\n {\n $this->datas['PBX_TOTAL'] = $val;\n }", "title": "" }, { "docid": "c3296533964bb7056ab8fa84d0544d7c", "score": "0.7224604", "text": "function setTotal_price($data){\n\t\t$this->_total_price = $data;\n\t}", "title": "" }, { "docid": "b626afafd71a138a2c89051d434572a9", "score": "0.71537876", "text": "public function setCartTotal($var) {\n\t\t $this->cartTotal = $var;\n\t\t }", "title": "" }, { "docid": "127a42b9f9918bc940f872447966358a", "score": "0.7144446", "text": "public function setNetTotal($total);", "title": "" }, { "docid": "de83ca4080b7b0cc1b122f6bd98867a4", "score": "0.7125447", "text": "function total($set){\n\t\t$this->items_total = $set;\n\t\t$this->page_count = ceil($this->items_total / $this->items_per_page);\n\t\t$this->page_last = $this->page_count-1 + $this->page_first;\n\t\t}", "title": "" }, { "docid": "791f5ca6e2cc229a547c1e6e1ae51b26", "score": "0.71017784", "text": "private function initialize_items_total($val) {\n if ( ! is_int($val)) {\n $this->invalid_argument_value('items_total');\n }\n $this->items_total = $val;\n }", "title": "" }, { "docid": "ec8c62b86b0acba074105c964d302c5b", "score": "0.69768155", "text": "public function total($amount)\n {\n \t $this->totalEarned += $amount;\n }", "title": "" }, { "docid": "b95b720feafaeb105ab1bd8e75ea6ade", "score": "0.69728476", "text": "public function setTotal($var)\n {\n GPBUtil::checkInt64($var);\n $this->total = $var;\n }", "title": "" }, { "docid": "ad3714a3536e388cd23eebdbad24a6e2", "score": "0.6960016", "text": "public function setTotalAttribute($input)\n {\n $this->attributes['total'] = $input ? $input : null;\n }", "title": "" }, { "docid": "76680542d253c9fc4e79d36a33a11e25", "score": "0.69424516", "text": "public function setOrderTotal($value) \n {\n $this->_fields['OrderTotal']['FieldValue'] = $value;\n return;\n }", "title": "" }, { "docid": "a009b16981ce348df22b024bd2d628fe", "score": "0.6928923", "text": "public function updateTotal($saveState = true);", "title": "" }, { "docid": "dfb059a65b8979a096edb62a58c32c87", "score": "0.69220793", "text": "private function setTotalItems()\n {\n $this->totalItems = Meal::all()->count();\n }", "title": "" }, { "docid": "953a6bffdd347eb8613cc62ccd9e86b1", "score": "0.69212633", "text": "public function setTotal($int_Total = null)\n\t{\n\t\t$obj_Response =& $this->getOutput();\n\t\t$str_Total = $this->m_str_TotalName;\n\t\t$obj_Response->$str_Total = $int_Total;\n\t}", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.6910095", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.6910095", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.6910095", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.6910095", "text": "public function total();", "title": "" }, { "docid": "90cbaf154837a1a1e3d719b802fa583a", "score": "0.6888499", "text": "function setRatingTotal($number);", "title": "" }, { "docid": "788243d9d9a9f9091b432acdf8a81084", "score": "0.6885893", "text": "function set_total_records ($total_records)\r\n {\r\n $this->total_records = $total_records;\r\n }", "title": "" }, { "docid": "099e8d28fa05439f9c803c50fa64ddb9", "score": "0.68091065", "text": "function set_total_pages ($total_pages)\r\n {\r\n $this->total_pages = $total_pages;\r\n }", "title": "" }, { "docid": "611bfca3352e5418d11b24384cad44dd", "score": "0.6792485", "text": "function _update_total()\n\t{ // internal function to update the total in the cart\n\n\t\t$this->itemcount = 0;\n\t\t$this->total = 0;\n\t\tif(sizeof($this->items > 0))\n\t\t{\n\n\t\t\tforeach($this->items as $item) {\n\t\t\t\t$this->total = $this->total + ($this->itemprices[$item] * $this->itemqtys[$item]);\n\t\t\t\t$this->itemcount++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "079eee18921d085b394258a5a10fdf8c", "score": "0.6792411", "text": "public function reset_total() {\n\n unset($this->_state['total']);\n\n }", "title": "" }, { "docid": "07cbfc7d3a0dc2c39225ab1a48e46863", "score": "0.6784266", "text": "public function setTotal($total)\r\n {\r\n $this->total = $total;\r\n return $this;\r\n }", "title": "" }, { "docid": "dd7c8ff19f26a51e69f19122127a7731", "score": "0.67037135", "text": "public function setOrderTotal($orderTotal);", "title": "" }, { "docid": "79148a7dd8ead596343d1b4b9822bb4d", "score": "0.6688948", "text": "public function setTotal($total) {\n\n\t\tif (is_numeric($total) || $total > 0) {\n\t\t\t$this->total = $total;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "dcf6f00378f9e3ee3e4e8dda4fb57aaf", "score": "0.6658096", "text": "public function setTotal(int $amount)\r\n\t{\r\n\t\t$this->total = $amount;\r\n\t}", "title": "" }, { "docid": "7c67f46cae3eae99e9a32cfdaeef5d97", "score": "0.6640636", "text": "public function setTotalNum($num)\r\n {\r\n $this->totalNum = $num;\r\n }", "title": "" }, { "docid": "bb8eb3bdd060e34630f2840f8d0f928f", "score": "0.6615879", "text": "public function setRowTotal($amount);", "title": "" }, { "docid": "99cb8b981ca7e4150942bffc76106fd7", "score": "0.6606439", "text": "static function setRecordsTotal()\n {\n self::$records_total = self::$query->count();\n }", "title": "" }, { "docid": "645ab82cc2ada18785a743736a99c6f9", "score": "0.66044986", "text": "public function total($total) {\n if ($this->locked) {\n throw new ClipLibraryException(\"After the progress is updated, the settings can't be changed.\");\n }\n \n if ($total < 1) {\n throw new ClipLibraryException(\"Progress total can't be lower than 1.\");\n }\n \n $this->total = $total;\n return $this;\n }", "title": "" }, { "docid": "ebf0474d6e68327d5b7dd7aa7407cbd7", "score": "0.65766674", "text": "public function updateTotals()\n {\n parent::updateTotals();\n }", "title": "" }, { "docid": "d2f404c5442675d68d49fe6fcf90fc69", "score": "0.656768", "text": "public function setTotal($total)\n {\n $this->total = $total;\n return $this;\n }", "title": "" }, { "docid": "972695d2cc42cef4eedfe88a4879fc4c", "score": "0.65531105", "text": "public function setTotalProductsAttribute($value)\n {\n $this->attributes['total_products'] = $value * 100;\n }", "title": "" }, { "docid": "3ab5ea182abc0cf49dac5aed01673482", "score": "0.6546616", "text": "public function setTotalShippingAttribute($value)\n {\n $this->attributes['total_shipping'] = $value * 100;\n }", "title": "" }, { "docid": "4fc9fb07eb3fdfd236489860f1153f60", "score": "0.65421355", "text": "public function setTotalPaidAttribute($value)\n {\n $this->attributes['total_paid'] = $value * 100;\n }", "title": "" }, { "docid": "2372202dbd05f1474424228a38b224e6", "score": "0.65385497", "text": "public function addToTotal()\n {\n if ($this->getCurrentPlayer() === \"spelaren\") {\n $this->player1 += $this->currentRound;\n } elseif ($this->getCurrentPlayer() === \"datorn\") {\n $this->player2 += $this->currentRound;\n }\n $this->currentRound = 0;\n $this->rounds = 0;\n }", "title": "" }, { "docid": "e4be94e20db9fc3cf2dc7923cd7334a6", "score": "0.65327054", "text": "public function Total($account_no,$billing_date,$total_value){\n\t\tinclude_once 'db_conn.php';\n\t\tinclude_once 'cls_codes.php';\n\t\t$ledger_no=cls_misc::sanitize_hyp($account_no);\n\t\t//$Ftotal_value=cls_misc::gFormatNumber($total_value);\n\t\t$sql_str=\"update ldg_{$ledger_no} set total='{$total_value}' where reading_date='{$billing_date}'\";\n\t\t$sql_qry=mysql_query($sql_str) or die(mysql_error());\n\t}", "title": "" }, { "docid": "9b69c561207f831cacd9840e6cd9a57f", "score": "0.6474379", "text": "public function makeTotal()\n {\n $total = 0;\n foreach ($this->productList as $product) {\n $total += $product->getPrice();\n }\n echo \"el total de la venta es: \" . $total;\n echo \"<br>\";\n }", "title": "" }, { "docid": "1b0e4170d753d8cb086c652ac105dc05", "score": "0.64722234", "text": "protected function update_total($order)\n {\n $order->calculate_totals();\n }", "title": "" }, { "docid": "1b8ad8f269952a45ffa994d02af5ce09", "score": "0.64652044", "text": "public function setValorTotal($fValorTotal) {\n $this->valor_total = $fValorTotal;\n }", "title": "" }, { "docid": "7e681aae0bccb4c9179b8c66573026e7", "score": "0.6461674", "text": "public function total(): float;", "title": "" }, { "docid": "0c243aea41dbea0558b1ed57b54547bc", "score": "0.64602953", "text": "protected function set_total_item_name( $val ) { $this->user_attr ['total_item'] = $val ; }", "title": "" }, { "docid": "94383b9b568efa908484e697ee68b097", "score": "0.6455495", "text": "public function update_total_tiket($id, $total)\n {\n $num = $total - 1;\n DB::table('sesi')\n ->where('no_sesi', $id)\n ->update(['total' => $num]);\n }", "title": "" }, { "docid": "edab7cf29eb89a09c3c27b5cc9535f47", "score": "0.64482945", "text": "public function setTotalItemCount($value)\n {\n $this->setProperty(\"TotalItemCount\", $value, true);\n }", "title": "" }, { "docid": "abce1ea386f3cafe868a029ce3172b0c", "score": "0.644679", "text": "public function testTotal()\n {\n $this->addItem();\n\n $this->assertEquals('$1.07', $this->laracart->total());\n $this->assertEquals('1.07', $this->laracart->total(false));\n }", "title": "" }, { "docid": "81b4cbe15bb819d25b3ee13356fd1d73", "score": "0.6434891", "text": "public function setTotalRecords($total) {\n\t\t$this->total_records = $total;\n\t\n\t}", "title": "" }, { "docid": "2e0f333b652518fc75336040294e6c9c", "score": "0.6417788", "text": "public function setValues($total, $limit, $page) {\n $this->_total = $total;\n $this->_limit = $limit;\n $this->_page = $page;\n }", "title": "" }, { "docid": "bc8e860cc58234675a42076b74700e8d", "score": "0.639306", "text": "public function setTotalPrice($value) {\n return $this->set(self::TOTAL_PRICE, $value);\n }", "title": "" }, { "docid": "ebfe778b58f033e47377920da4d4201c", "score": "0.63514805", "text": "public function setSumAttribute($value)\n {\n $this->attributes['sum'] = $value * 100;\n }", "title": "" }, { "docid": "c6a1d05c3f3ecb1b5eab20ed18f35444", "score": "0.6344813", "text": "public function setTotal_Price()\n {\n $this->Total_Price = $this->Quantity * $this->Price;\n\n return $this;\n }", "title": "" }, { "docid": "a53e45c653e787043dad5db3f803c9e4", "score": "0.634053", "text": "public function setTotalNum($value)\n {\n return $this->set(self::TOTAL_NUM, $value);\n }", "title": "" }, { "docid": "3584de6a147efd12366da996f8adcfff", "score": "0.6334794", "text": "public function setTotal($total)\n {\n NumericValidator::validate($total, \"Total\");\n $total = FormatConverter::formatToPrice($total, $this->getCurrency());\n $this->total = $total;\n return $this;\n }", "title": "" }, { "docid": "c453c01d039978e1267113ecb9b72c94", "score": "0.6325207", "text": "function calculateTotal(): int;", "title": "" }, { "docid": "a26059b1241e0d70142ac24edda470c2", "score": "0.63232887", "text": "public function total($param)\n {\n }", "title": "" }, { "docid": "c1e30993ce636e705806c2a8b9db87a5", "score": "0.6322867", "text": "public function calcTotals(){\n\t\t//var_dump($value);\n\t\tforeach($this->products as $value){\n\t\t\t$this->productTotal += $value['price'] * $value['qty'];\n\t\t}\n\n\t\t$this->calcDiscount(); \n\t\t$this->calcFullTotal();\n\t\t\n\t}", "title": "" }, { "docid": "5265b66205bed4c1380b515088cb8587", "score": "0.62997127", "text": "public function getTotal()\r\n {\r\n return $this->total;\r\n }", "title": "" }, { "docid": "f993406ebcde130fc614a4eb030c9340", "score": "0.62968534", "text": "public function countTotal() {\n $this->Computer->find('count');\n $this->set('computer');\n }", "title": "" }, { "docid": "6c63e5115af0e4b484365087bdef9308", "score": "0.6282833", "text": "public function setTotal(int $total): self\n {\n $this->total = $total;\n\n return $this;\n }", "title": "" }, { "docid": "4283c76aadf21c35b83838fd882df351", "score": "0.6280418", "text": "function show_total() {\n return $this->total;\n }", "title": "" }, { "docid": "724596d4887b8fd0bf031f32b0e0abc5", "score": "0.6278984", "text": "public function total(){\n $total = 0;\n $total = $this->price * $this->quantity;\n\n return $total;\n }", "title": "" }, { "docid": "84517a0ad341fb27626bfe686a761feb", "score": "0.62776905", "text": "public function getTotal() {\n }", "title": "" }, { "docid": "3e9075f51c693cb2e5ad95824e1218a2", "score": "0.6274998", "text": "public function getValorTotal() {\n return $this->valor_total;\n }", "title": "" }, { "docid": "3662380e37cab19bd75aabc17cceb925", "score": "0.6246473", "text": "function total(float $addCount, float $addPrice, float $currentTotal = 0): float\n{\n return $currentTotal += $addCount * $addPrice;\n}", "title": "" }, { "docid": "936b41ab5d2dc47ae0e73d187582cf99", "score": "0.62422454", "text": "public function setTotal($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->total !== $v) {\n $this->total = $v;\n $this->modifiedColumns[HbfSesionesTableMap::COL_TOTAL] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "29d0e26c6927ed39bbdf58ff99767a4a", "score": "0.62366366", "text": "function setTotalScore( $score )\r\n {\r\n $this->TotalScore = $score;\r\n }", "title": "" }, { "docid": "8c664bebdc8e761bfd9fc55a6577f164", "score": "0.6227256", "text": "public function total(): int\n {\n return $this->total;\n }", "title": "" }, { "docid": "4cd75e58042b7ab7dc467b7191a2c6d4", "score": "0.62181365", "text": "public function getTotal()\n {\n echo number_format(json_encode($this->cart->total()));\n }", "title": "" }, { "docid": "595014cb81138437844a6da8c4c6f7e3", "score": "0.62134236", "text": "public function total() {\n\n\t\tdo_action( 'pods_pods_total', $this );\n\n\t\t$this->data->total();\n\n\t\t$this->total =& $this->data->total;\n\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "de120f60dcc91b31173a1f2ecbcaf9e4", "score": "0.62090474", "text": "function update_skater_total($div, $sid, $total)\n{\n\t$query = \"update raw_results \n\t set total_points=$total\n\t where division_id = $div and\n\t skater_id = $sid\";\n\t#$database->runsql($query);\n\trun_query_no_result($query);\n \n}", "title": "" }, { "docid": "0ad477a76a699287a6c22f1ff978e8ce", "score": "0.6207307", "text": "private function setTotalNumResults($totalNumResults) {\n \t$this->totalNumResults = $totalNumResults;\n }", "title": "" }, { "docid": "168e1a2771eb766c90b61b8d60cce5b1", "score": "0.6201479", "text": "public function getValor_total()\n {\n return $this->valor_total;\n }", "title": "" }, { "docid": "9c882c7f510ca4434770b96f3eb8b35d", "score": "0.620123", "text": "public function setValorTotal($nValorTotal) {\n \t$this->nValorTotal = $nValorTotal;\n }", "title": "" }, { "docid": "e04ca977eb5c07d1b27a82d8eb3e8cee", "score": "0.6197357", "text": "public function testTotal() {\n // loome muutuja \"input\" ja seame ta väärtuseks massiivi numbritest\n $input = [0,2,5,8];\n // \n $output = $this->Receipt->total($input);\n // PHPUniti testi meetod\n $this->assertEquals(\n // oodatav tulemus\n 15,\n // kutsume objektist meetodi \"total\" ja anname talle ette massiivi numbritest\n $output,\n // vea puhul tagastatav teade\n \"When summing the total should equal 15\"\n );\n }", "title": "" }, { "docid": "69b65f1b2701f21cb11932c8c3b52b31", "score": "0.61840725", "text": "public function setTotalCount($value) {\n return $this->set(self::TOTALCOUNT, $value);\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.6145258", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" } ]
ac3b46b37ab5a3a865114eb58a6b2563
This is a nonstandard function. It outputs JS code to render the module preview in the new Divi 3 frontend editor. Return value of the JS function must be full HTML code to display.
[ { "docid": "2e4bbe3e0bc016b4c5e7e49eb6450086", "score": "0.6851869", "text": "function js_frontend_preview() {\n ?><script>\n window.<?php echo $this->slug; ?>_preview = function(args) {\n return '<section class=\"custom_header_shapes et_pb_fullwidth_header\">' +\n ' <div class=\"shapes\">' +\n ' <svg class=\"triangle triangle-first\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">' +\n ' <polygon points=\"0 0, 100 0, 40 100, 0 100\">' +\n ' </polygon>' +\n ' </svg>' +\n ' <svg class=\"triangle triangle-second\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">' +\n ' <polygon points=\"0 20, 100 100, 0 100\">' +\n ' </polygon>' +\n ' </svg>' +\n ' </div>' +\n ' <div class=\"et_pb_fullwidth_header_container\">' +\n ' </div>' +\n ' <div class=\"et_pb_fullwidth_header_overlay\"></div>' +\n ' <div class=\"et_pb_fullwidth_header_scroll\"></div>' +\n '</section>' \n\n }\n </script><?php\n }", "title": "" } ]
[ { "docid": "8fa61ae3d7b9f4ab7a4a69dd791364d5", "score": "0.72193617", "text": "public function render()\n {\n\n $result = '';\n if ($this->getModuleLoader()->hasPlugin('imageEditor')) {\n\n $result = sprintf('<script type=\"text/javascript\" src=\"%s\"></script>\n\t\t\t\t<a href=\"%s\" id=\"btn-imageEditor-current\" class=\"btn btn-imageEditor\" style=\"display: none\"></a>',\n Path::getRelativePath('JavaScript/Media.Plugin.ImageEditor.js'),\n $this->getImageEditorUri()\n );\n };\n return $result;\n }", "title": "" }, { "docid": "b5436a03a17a2603585816fd4b31b833", "score": "0.68206006", "text": "public function getAsPreviewHTML();", "title": "" }, { "docid": "cb9c04e91fdd3eeb1f1f7b2fd8f19e5f", "score": "0.67735064", "text": "public function getContent()\n {\n /* If values have been submitted in the form, process. */\n if (((bool)Tools::isSubmit('submitFavicon_notificationModule')) == true) {\n $this->postProcess();\n }\n\n $this->context->smarty->assign('module_dir', $this->_path);\n\n $output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/preview.tpl');\n\n return $output.$this->renderForm();\n }", "title": "" }, { "docid": "6be99edf8bf92d96b36c0e43552aadb0", "score": "0.6728626", "text": "public function customize_preview_html5() {}", "title": "" }, { "docid": "13e23e9a78184658b8bffe50aedbd4c3", "score": "0.6685199", "text": "public static function preview()\n {\n $task = LSef::getTask();\n ?>\n <li>\n <script>\n <!--\n function popup() {\n document.adminForm.target = '_blank';\n var action = document.adminForm.action;\n document.adminForm.action = '<?php echo _LPATH_SITE; ?>/<?php echo JADMIN_BASE?>/popups/contentwindow.php';\n submitbutton('<?php echo $task; ?>');\n document.adminForm.target = '_self';\n document.adminForm.action = action;\n return false;\n }\n //-->\n </script>\n <a class=\"tb-preview\" href=\"#\" onclick=\"popup();\"><span><?php echo _PREVIEW ?></span></a></li>\n <?php\n }", "title": "" }, { "docid": "ed10a868520126ef9b27e8c99c0f19e2", "score": "0.6654124", "text": "public function html()\n {\n //in the future this behaviour can be changed\n $this->parentWidget->toLayout->assignJS('/admin/tools/htmlarea/init.js');\n $this->parentWidget->toLayout->assignInlineJS(\n <<<JS\n\t\t\t\teditor_generate('{$this->parentWidget->container}');\nJS\n ,\n false\n );\n return '';\n }", "title": "" }, { "docid": "873d9da3ea338e19602544b2e1e1c4d3", "score": "0.6629849", "text": "function embed_code( $preview = true ) {\n return( file_get_contents($this->files['all']) );\n }", "title": "" }, { "docid": "9a5b340077c87ad4be6c6724c971a5a9", "score": "0.656018", "text": "static function get_preview( $settings = array() ){\n\t\t\t\t$content = self::get_content($settings);\n\t\t\t\t$id = mt_rand(0, 9999);\n\t\t\t\t\n\t\t\t\tob_start();\n?><script type=\"text/javascript\" id=\"gdlr-core-preview-portfolio-<?php echo esc_attr($id); ?>\" >\nif( document.readyState == 'complete' ){\n\tjQuery(document).ready(function(){\n\t\tvar portfolio_preview = jQuery('#gdlr-core-preview-portfolio-<?php echo esc_attr($id); ?>').parent();\n\t\t\tportfolio_preview.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_isotope().gdlr_core_fluid_video().gdlr_core_ajax_slide_bar();\n\n\t\tnew gdlr_core_sync_height(portfolio_preview);\n\t});\n}else{\n\tjQuery(window).load(function(){\n\t\tvar portfolio_preview = jQuery('#gdlr-core-preview-portfolio-<?php echo esc_attr($id); ?>').parent();\n\t\t\tportfolio_preview.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_isotope().gdlr_core_fluid_video().gdlr_core_ajax_slide_bar();\n\n\t\tnew gdlr_core_sync_height(portfolio_preview);\n\t});\n}\n</script><?php\t\n\t\t\t\t$content .= ob_get_contents();\n\t\t\t\tob_end_clean();\n\t\t\t\t\n\t\t\t\treturn $content;\n\t\t\t}", "title": "" }, { "docid": "12e1717d8efa92d3a3356ec3d393c6cd", "score": "0.6559693", "text": "public static function editor_js() {}", "title": "" }, { "docid": "932bb6c648f9ed60ab259bd26dc8c300", "score": "0.6492111", "text": "public function render()\n {\n\n $this->script = <<<EOT\n UE.delEditor(\"ssi_ueditor_{$this->id}\");\n var ue = UE.getEditor('ssi_ueditor_{$this->id}',{\n initialFrameHeight:360,//设置编辑器高度\n }); \n ue.ready(function () {\n ue.execCommand('serverparam', '_token', '{{ csrf_token() }}');\n });\n\nEOT;\n return parent::render();\n }", "title": "" }, { "docid": "d13abb25b09133d0c5ed8a194083f594", "score": "0.6384498", "text": "function wp_post_preview_js() {}", "title": "" }, { "docid": "d0978891836837667b7ba9c6c4b38488", "score": "0.6332027", "text": "function editor() {\n\t\tswitch($this->EditPageNr){\n\t\t\tcase WE_EDITPAGE_PREVIEW:\n\t\t\treturn \"we_templates/we_editor_flash_preview.inc.php\";\n\t\t\tdefault:\n\t\t\treturn parent::editor();\n\t\t}\n\t}", "title": "" }, { "docid": "0ff8f2d88158c7188b763b4fb0e5db4d", "score": "0.63262206", "text": "function twentyeleven_customize_preview_js() {}", "title": "" }, { "docid": "7a3f28dedfe1076679f9ecc8836189ac", "score": "0.6324424", "text": "public function renderJavascript();", "title": "" }, { "docid": "c80f3dab6ac364c5a69fcf216a7d8814", "score": "0.6294654", "text": "public function fm_form_preview_shortcode() {\n // check is adminstrator\n if ( !current_user_can('manage_options') ) {\n echo __('Sorry, you are not allowed to access this page.', $this->prefix);\n }\n else {\n $id = WDW_FM_Library(self::PLUGIN)->get('wdform_id', 0);\n\t $display_options = WDW_FM_Library(self::PLUGIN)->display_options( $id );\n $type = $display_options->type;\n $attrs = array( 'id' => $id );\n if ($type == \"embedded\") {\n ob_start();\n $this->FM_front_end_main($attrs, $type); // embedded popover topbar scrollbox\n return str_replace(array(\"\\r\\n\", \"\\n\", \"\\r\"), '', ob_get_clean());\n }\n }\n }", "title": "" }, { "docid": "5b4c9ec51ae1375baece8694c9a9d49c", "score": "0.6252129", "text": "public function getPreviewHTML() {\n\t\t$path = Lonely::model()->rootPath.$this->path;\n\t\treturn \"<video class=\\\"preview preview-controls-sideways\\\" controls src=\\\"\".\\LonelyGallery\\escape($path).\"\\\"></video>\";\n\t}", "title": "" }, { "docid": "c50185d32f99fe0b8bd3b508d89bf5ce", "score": "0.62331855", "text": "public function preview() {}", "title": "" }, { "docid": "c50185d32f99fe0b8bd3b508d89bf5ce", "score": "0.62331855", "text": "public function preview() {}", "title": "" }, { "docid": "c50185d32f99fe0b8bd3b508d89bf5ce", "score": "0.62331855", "text": "public function preview() {}", "title": "" }, { "docid": "c50185d32f99fe0b8bd3b508d89bf5ce", "score": "0.62331855", "text": "public function preview() {}", "title": "" }, { "docid": "7dd8741c7cce33a956a12c5cf4ba3665", "score": "0.6218717", "text": "function twentysixteen_customize_preview_js() {}", "title": "" }, { "docid": "d1c435aa7eee5ad67d7ca41ca0a1c123", "score": "0.6214836", "text": "function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $version_control){\n\n\t?>Editor code goes here<?PHP\n\n}", "title": "" }, { "docid": "5842e0491873066018a88b061c65627d", "score": "0.62108284", "text": "public function customize_preview_html5()\n {\n }", "title": "" }, { "docid": "a377e1cab74e15fec8cc46415d16bd57", "score": "0.6190596", "text": "function twentyseventeen_customize_preview_js() {}", "title": "" }, { "docid": "62bd45f282349cb0c9c091f737b3a6ba", "score": "0.6147589", "text": "function twentythirteen_customize_preview_js() {}", "title": "" }, { "docid": "fc5165fa5b51d6f88be888482f8226a0", "score": "0.61390245", "text": "function editor() {\n\t\tswitch($this->EditPageNr){\n\t\t\tcase WE_EDITPAGE_PREVIEW:\n\t\t\treturn \"we_templates/we_editor_other_preview.inc.php\";\n\t\t\tdefault:\n\t\t\treturn parent::editor();\n\t\t}\n\t}", "title": "" }, { "docid": "8ce9c8b8c146249261bb64027a39894c", "score": "0.61265534", "text": "public function outputModuleVersionJS() {\n $module_info = $this->getModuleName() . \" (\" . $this->VERSION . \")\";\n echo \"<script>$(function() { $('div#south table tr:first td:last, #footer').prepend('<span>$module_info</span>&nbsp;|&nbsp;'); });</script>\";\n }", "title": "" }, { "docid": "fdbd997a01a1c439bf7c16eb998e9451", "score": "0.6122846", "text": "public static function get_preview_template() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "3a8afacc93ccff5c804e1307dc81b003", "score": "0.61069816", "text": "function twentyfourteen_customize_preview_js() {}", "title": "" }, { "docid": "9b1eceb8aef8d41943b87398b9e6aef6", "score": "0.60963726", "text": "function twentytwelve_customize_preview_js() {}", "title": "" }, { "docid": "4f5b93473e60ac4ee23e44ec9c7d7c79", "score": "0.6091195", "text": "function twentyfourteen_preview() {}", "title": "" }, { "docid": "fe2565b0ca2c921fb3922384219d60cc", "score": "0.60890394", "text": "public static function editor_js()\n {\n }", "title": "" }, { "docid": "bc2fa951b1789a6358a039f1744b2ffb", "score": "0.6086276", "text": "public function render()\n {\n $root =& XCube_Root::getSingleton();\n\n $editor = $this->getEditor();\n $id = $this->getId();\n if ($editor && !isset(self::$_editorCheck[$id])) {\n self::$_editorCheck[$id] = true;\n $params['name'] = trim($this->getName(false));\n $params['class'] = trim($this->getClass());\n $params['cols'] = $this->getCols();\n $params['rows'] = $this->getRows();\n $params['value'] = $this->getValue();\n $params['id'] = $id;\n $params['editor'] = $editor;\n\n $html = '';\n switch ($params['editor']) {\n case 'html':\n XCube_DelegateUtils::call('Site.TextareaEditor.HTML.Show', new XCube_Ref($html), $params);\n break;\n case 'none':\n XCube_DelegateUtils::call('Site.TextareaEditor.None.Show', new XCube_Ref($html), $params);\n break;\n case 'bbcode':\n default:\n XCube_DelegateUtils::call('Site.TextareaEditor.BBCode.Show', new XCube_Ref($html), $params);\n break;\n }\n\n return $html;\n }\n\n $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM);\n\n $renderTarget =& $renderSystem->createRenderTarget('main');\n\n $renderTarget->setAttribute('legacy_module', 'legacy');\n $renderTarget->setTemplateName('legacy_xoopsform_dhtmltextarea.html');\n $renderTarget->setAttribute('element', $this);\n $renderTarget->setAttribute('class', $this->getClass());\n\n $renderSystem->render($renderTarget);\n\n $ret = $renderTarget->getResult();\n $ret .= $this->_renderSmileys();\n\n return $ret;\n }", "title": "" }, { "docid": "946797b23ce7e92eca18d18427286d0a", "score": "0.6077261", "text": "function html_show($txt=null){\n global $ID;\n global $REV;\n global $HIGH;\n global $INFO;\n //disable section editing for old revisions or in preview\n if($txt || $REV){\n $secedit = false;\n }else{\n $secedit = true;\n }\n\n if (!is_null($txt)){\n //PreviewHeader\n echo '<br id=\"scroll__here\" />';\n echo p_locale_xhtml('preview');\n echo '<div class=\"preview\"><div class=\"pad\">';\n $html = html_secedit(p_render('xhtml',p_get_instructions($txt),$info),$secedit);\n if($INFO['prependTOC']) $html = tpl_toc(true).$html;\n echo $html;\n echo '<div class=\"clearer\"></div>';\n echo '</div></div>';\n\n }else{\n if ($REV) print p_locale_xhtml('showrev');\n $html = p_wiki_xhtml($ID,$REV,true);\n $html = html_secedit($html,$secedit);\n if($INFO['prependTOC']) $html = tpl_toc(true).$html;\n $html = html_hilight($html,$HIGH);\n echo $html;\n }\n}", "title": "" }, { "docid": "3931dcc60435c0bf15482627ae3840f9", "score": "0.6067503", "text": "public function customizer_preview() {\n\t\t$setting_name = \"{$this->parent_name()}[{$this->name()}]\";\n\t\t?>\n\t\t\twp.customize('<?php echo esc_js( $setting_name ); ?>',function( value ) {\n\t\t\t\tvalue.bind(function(to) {\n\t\t\t\t\t<?php echo $this->preview_function(); ?>(to);\n\t\t\t\t});\n\t\t\t});\n\t\t<?php\n\t}", "title": "" }, { "docid": "9a60b20b9cefc6f4934c2ddf6573d19e", "score": "0.6064947", "text": "public function enqueue_preview_scripts() {}", "title": "" }, { "docid": "9a60b20b9cefc6f4934c2ddf6573d19e", "score": "0.6064947", "text": "public function enqueue_preview_scripts() {}", "title": "" }, { "docid": "9a60b20b9cefc6f4934c2ddf6573d19e", "score": "0.6064947", "text": "public function enqueue_preview_scripts() {}", "title": "" }, { "docid": "9a60b20b9cefc6f4934c2ddf6573d19e", "score": "0.6064947", "text": "public function enqueue_preview_scripts() {}", "title": "" }, { "docid": "22aaad5711d9947235ad4ecbfdca1b82", "score": "0.6058886", "text": "public function content() {\n // L'insieme minimo delle informazioni che servono a dbmng2 sono nell'array sottostante\n $user8 = \\Drupal::currentUser();\n $user = array('uid'=> $user8->id(), 'mail'=>$user8->getEmail(), 'name'=>$user8->getAccountName(), 'roles'=>$user8->getRoles());\n $html = \"\";\n\n // // aggiunge i js esterni al modulo\n // $html .= \"<script src='sites/all/libraries/dbmng2/js/dist/dbmng.js'></script>\";\n // $html .= \"<script src='sites/all/libraries/navigo/navigo.js'></script>\";\n\n\t\t$html .= \"<div id='dbmng2_table_list'></div>\";\n $html .= \"<div id='dbmng2_table_edit'></div>\";\n\n // chiamata di default\n $html .= \"<script>jQuery(document).ready(function(){aedit_dbmng_manager()})</script>\";\n\n // l'oggetto per non essere processato da drupal e deve avere cole type il valore 'inline_template'\n $aReturn['#type'] = 'inline_template';\n $aReturn['#template'] = $html;\n $aReturn['#attached']['library'] = array('mod_aedit_dbmng/mod_aedit_dbmng');\n\n // in questo modo possiamo passare delle variabili al js\n\t\t$aReturn['#attached']['drupalSettings']['mod_aedit_dbmng']['user'] = $user;\n\n\t\treturn $aReturn;\n }", "title": "" }, { "docid": "18e6d7e99dd09a76ec6eec4e1d63b649", "score": "0.60572064", "text": "function twentythirteen_preview() {}", "title": "" }, { "docid": "5d2db8c4db4cad3ba549169ab04b3c64", "score": "0.60483515", "text": "function panels_edit_display_form_preview(&$form, &$form_state) {\n $display = &$form_state['display'];\n ctools_include('ajax');\n\n $display->context = ctools_context_replace_placeholders($display->context, $form_state['values']['preview']);\n $display->skip_cache = TRUE;\n $output = panels_render_display($display);\n\n // Add any extra CSS that some layouts may have added specifically for this.\n if (!empty($display->add_css)) {\n $output = \"<style type=\\\"text/css\\\">\\n$display->add_css</style>\\n\" . $output;\n }\n\n $commands = array();\n $commands[] = array(\n 'command' => 'panel_preview',\n 'output' => $output,\n );\n\n print ajax_render($commands);\n ajax_footer();\n exit;\n}", "title": "" }, { "docid": "c36d8f162e443304f9ec991e1168b308", "score": "0.60297096", "text": "function twentyfifteen_customize_preview_js() {}", "title": "" }, { "docid": "d49ddbce27c36587f90f8ff6320b52f4", "score": "0.60293186", "text": "function twentyseventeen_preview() {}", "title": "" }, { "docid": "afc1839aeedef557a66ed13e21aa2e44", "score": "0.6014397", "text": "function wp_ajax_imgedit_preview() {}", "title": "" }, { "docid": "f6f40f7ebef76ada1defbc128318f0d2", "score": "0.5999015", "text": "public function customize_preview_js() {\r\n\t\twp_enqueue_script( 'stuff-previewer', get_template_directory_uri() . '/inc/customizer/assets/js/previewer.js', array( 'customize-preview' ), '211215', true );\r\n\t}", "title": "" }, { "docid": "4d79ae591f334be1116f96f16ec390be", "score": "0.59819084", "text": "public function getHtml(){\n\t\trequire_once(DIR_WIDGET.'pager/views/pager.php');\n\t\t$oView = new widgetPagerView($this->wname);\n\t\t//return the code\n\t\treturn $oView->getView($this->data);\n\t\t}", "title": "" }, { "docid": "201ed627d5886a4a1d64fc8609f53500", "score": "0.59727675", "text": "function wp_print_editor_js() {}", "title": "" }, { "docid": "3bacd9d925e2345e9bac57f7398db91c", "score": "0.5964335", "text": "public function getContent()\r\n\t{\r\n\t\t$this->html = '<h2>'.$this->displayName.'</h2>';\r\n\t\tif (!count($this->configuration_vars))\r\n\t\t\t$this->addWarning('This module has nothing to configure!');\r\n\r\n\t\t$nb_warnings = $this->displayWarnings();\r\n\t\t$nb_errors = $this->displayErrors();\r\n \r\n\t\tif (Tools::getValue('btnUpdate'))\r\n\t\t{\r\n\t\t\tif ($this->postValidation() && !$nb_errors)\r\n\t\t\t\t$this->updateConfigurationVars();\r\n\t\t}\r\n \r\n\t\tif (count($this->configuration_vars))\r\n\t\t\t$this->displayConfigurationForm();\r\n \r\n\t\treturn $this->html;\r\n\t}", "title": "" }, { "docid": "1a1f54e195a85c105e7ce1d187d640a1", "score": "0.5960487", "text": "public function return_format_editor_panel()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $ret = 'NOT AUTHORIZED TO EDIT USERS';\n\n if ($this->my_user->GetUserLevel() == _USER_LEVEL_SERVER_ADMIN) {\n $ret = '<div id=\"bmlt_admin_format_editor_disclosure_div\" class=\"bmlt_admin_format_editor_disclosure_div bmlt_admin_format_editor_disclosure_div_closed\">'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<a class=\"bmlt_admin_format_editor_disclosure_a\" href=\"javascript:admin_handler_object.toggleFormatEditor();\">';\n $ret .= htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_editor_disclosure']);\n $ret .= '</a>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div id=\"bmlt_admin_format_editor_wrapper_div\" class=\"bmlt_admin_format_editor_wrapper_div bmlt_admin_format_editor_wrapper_div_hidden\">';\n $ret .= '<div class=\"bmlt_admin_format_editor_banner_div\">';\n $ret .= '<div class=\"bmlt_admin_meeting_editor_banner_container_div\">';\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_editor_success_div\">';\n $ret .= '<span class=\"success_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_change_success_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_editor_fail_div\">';\n $ret .= '<span class=\"failure_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_change_fail_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_create_success_div\">';\n $ret .= '<span class=\"success_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_create_success_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_create_fail_div\">';\n $ret .= '<span class=\"failure_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_create_fail_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_editor_delete_success_div\">';\n $ret .= '<span class=\"success_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_delete_success_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div class=\"bmlt_admin_fader_div item_hidden\" id=\"bmlt_admin_fader_format_editor_delete_fail_div\">';\n $ret .= '<span class=\"failure_text_span\">'.htmlspecialchars($this->my_localized_strings['comdef_server_admin_strings']['format_change_fader_delete_fail_text']).'</span>';\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<div id=\"bmlt_admin_format_editor_inner_div\" class=\"bmlt_admin_format_editor_inner_div\"><table class=\"format_editor_table\" id=\"bmlt_admin_format_editor_table\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"></table></div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '</div>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n $ret .= '<script type=\"text/javascript\">admin_handler_object.populateFormatEditor()</script>'.(defined('__DEBUG_MODE__') ? \"\\n\" : '');\n }\n\n return $ret;\n }", "title": "" }, { "docid": "6c9a2d31f205f3dd41134bce7fc621d0", "score": "0.59560055", "text": "public function getPanel()\n {\n $body = Zend_Controller_Front::getInstance()->getResponse()->getBody();\n $length = round(strlen($body)/1024, 2);\n\n $panel = <<<HTML\n\n <h4>HTML Information</h4>\n\n <script type=\"text/javascript\" charset=\"utf-8\">\n\n var CodeBlenderHtmlLoad = window.onload;\n\n window.onload = function()\n {\n if (CodeBlenderHtmlLoad) {\n CodeBlenderHtmlLoad();\n }\n\n jQuery(\"#CodeBlender_Html_Tagcount\").html(document.getElementsByTagName(\"*\").length);\n jQuery(\"#CodeBlender_Html_Stylecount\").html(jQuery(\"link[rel*=stylesheet]\").length);\n jQuery(\"#CodeBlender_Html_Scriptcount\").html(jQuery(\"script[src]\").length);\n jQuery(\"#CodeBlender_Html_Imgcount\").html(jQuery(\"img[src]\").length);\n };\n </script>\n\n <span id=\"CodeBlender_Html_Tagcount\"></span>\n Tags<br />\n HTML Size: {$length}K<br />\n <span id=\"CodeBlender_Html_Stylecount\"></span> Stylesheet Files<br />\n <span id=\"CodeBlender_Html_Scriptcount\"></span> Javascript Files<br />\n <span id=\"CodeBlender_Html_Imgcount\"></span> Images<br />\nHTML;\n\n return $panel;\n }", "title": "" }, { "docid": "82b58a84f1587addd6d1562d16dcb4d3", "score": "0.5936043", "text": "function cp_display_preview_slide_in(){\n\t\t\trequire_once( 'modules/slide_in/style-preview-ajax.php' );\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "2fc27957ff38b589836bdb18ba7f539e", "score": "0.59272087", "text": "public function customize_preview_base() {}", "title": "" }, { "docid": "2b6010adb4666d3a45c94ff776e3f8c5", "score": "0.59267074", "text": "public function htmlpreview() {\n\t\t// create the HTML report and spit it out immediately\n\t\t$format = isset($_REQUEST['f']) ? $_REQUEST['f'] : 'html';\n\t\t$output = $this->data()->ReportTemplate()->createReport($format);\n\t\tif ($output->filename) {\n\t\t\t// do nothing\n\t\t}\n\n\t\tif ($output->content) {\n\t\t\techo $output->content;\n\t\t}\n\t}", "title": "" }, { "docid": "fd9999abbf2d2573abad8ebf0804c3dd", "score": "0.5909539", "text": "function write_html_form ($html) {\n write_js(\"parent.parent.document.getElementById('ecu_preview')\"\n . \".innerHTML = \\\"$html\\\"\"\n . \"+ parent.parent.document.getElementById('ecu_preview')\"\n . \".innerHTML\");\n }", "title": "" }, { "docid": "677889edd22c7190a5ba4aea80c12f4f", "score": "0.5908417", "text": "function twentyfifteen_preview() {}", "title": "" }, { "docid": "b0d53592e8b2a9de701804a08f8575ef", "score": "0.5892918", "text": "protected function _toHtml()\n {\n $element = $this->getElement();\n /* @var $fieldset Varien_Data_Form_Element_Fieldset */\n $fieldset = $element->getForm()->getElement($this->getFieldsetId());\n $config = $this->getConfig();\n $selectId = $element->getId();\n\n\n return '\n<script type=\"text/javascript\">\n(function() {\n var instantiateClerkWidget = function() {\n window.clerkWidget = new WysiwygWidget.ClerkWidget(\"' . $selectId . '\", \"' . $this->getContentUrl() . '\", \"' . $this->getParametersUrl() . '\");\n }\n\n if (document.loaded) { //allow load over ajax\n instantiateClerkWidget();\n } else {\n document.observe(\"dom:loaded\", instantiateClerkWidget);\n }\n})();\n</script>'.$clerk_confirm;\n }", "title": "" }, { "docid": "9099b574932e4f1618bb4a1725fcb257", "score": "0.5888969", "text": "public function display(){\n\t\t$this->enqueue();\n\t\tob_start();\n\t\tinclude CFCORE_PATH .'ui/viewer-two/viewer.php';\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "e13b300361419b5f6d0c0a6268e7825a", "score": "0.58842456", "text": "protected function renderPreview() {\n\t\tif (!$this->fileObject) {\n\t\t\treturn;\n\t\t}\n\n\t\t$preview = '';\n\t\t$downloadLink = '';\n\n\t\t// check if file is marked as missing\n\t\tif ($this->fileObject->isMissing()) {\n\t\t\t$flashMessage = BackendUtility::getFlashMessageForMissingFile($this->fileObject);\n\t\t\t$preview .= $flashMessage->render();\n\n\t\t} else {\n\n\t\t\t// Check if there is a FileRenderer\n\t\t\t$rendererRegistry = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Resource\\Rendering\\RendererRegistry::class);\n\t\t\t$fileRenderer = $rendererRegistry->getRenderer($this->fileObject);\n\t\t\tif ($fileRenderer !== NULL) {\n\t\t\t\t$preview = $fileRenderer->render(\n\t\t\t\t\t$this->fileObject,\n\t\t\t\t\t'590m',\n\t\t\t\t\t'400m',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'title' => $this->fileObject->getName(),\n\t\t\t\t\t\t'showinfo' => TRUE,\n\t\t\t\t\t),\n\t\t\t\t\tTRUE\n\t\t\t\t);\n\t\t\t\t// temp styles fix. Because of iframe { height: 100%} in main_scaffolding.css an iframe isn't shown correct here\n\t\t\t\t// this css makes the iframe embedded video layout responsive\n\t\t\t\t$preview .= '<style type=\"text/css\">\n\t\t\t\t\t\t\t.video-container { position: relative;\n\t\t\t\t\t\t\t\tpadding-bottom: 56.25%;\n\t\t\t\t\t\t\t\tpadding-top: 30px; height: 0; overflow: hidden;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.video-container iframe{\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\t\t\tleft: 0;\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</style>';\n\t\t\t} else {\n\t\t\t\t$fileExtension = $this->fileObject->getExtension();\n\t\t\t\t// Image\n\t\t\t\tif (GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileExtension)) {\n\t\t\t\t\t$thumbUrl = $this->fileObject->process(\n\t\t\t\t\t\tProcessedFile::CONTEXT_IMAGEPREVIEW,\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'width' => '590m',\n\t\t\t\t\t\t\t'height' => '400m'\n\t\t\t\t\t\t)\n\t\t\t\t\t)->getPublicUrl(TRUE);\n\n\t\t\t\t\t// Create thumbnail image?\n\t\t\t\t\tif ($thumbUrl) {\n\t\t\t\t\t\t$preview .= '<img src=\"' . $thumbUrl . '\" ' .\n\t\t\t\t\t\t\t'alt=\"' . htmlspecialchars(trim($this->fileObject->getName())) . '\" ' .\n\t\t\t\t\t\t\t'title=\"' . htmlspecialchars(trim($this->fileObject->getName())) . '\" />';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Display download link?\n\t\t\t$url = $this->fileObject->getPublicUrl(TRUE);\n\n\t\t\tif ($url) {\n\t\t\t\t$downloadLink .= '<a href=\"' . htmlspecialchars($url) . '\" target=\"_blank\" class=\"t3-button\">' .\n\t\t\t\t\tIconUtility::getSpriteIcon('actions-edit-download') . ' ' .\n\t\t\t\t\t$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:download', TRUE) .\n\t\t\t\t\t'</a>';\n\t\t\t}\n\t\t}\n\n\t\treturn ($preview ? '<p>' . $preview . '</p>' : '') .\n\t\t($downloadLink ? '<p>' . $downloadLink . '</p>' : '');\n\t}", "title": "" }, { "docid": "576709c1ff1cee272147bb51261b24c9", "score": "0.5878234", "text": "public function display() {\n\t\tif ($this->disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\t\t// loading template\n\t\t$templateFile = $this->modTSconfig['properties']['skin.']['templateFile'];\n\t\t$templateFile = ($templateFile ? $templateFile : t3lib_extMgm::siteRelPath('feeditadvanced') . 'res/template/feedit.tmpl');\n\t\t$templateFile = $GLOBALS['TSFE']->tmpl->getFileName($templateFile);\n\t\t$this->template = $GLOBALS['TSFE']->tmpl->fileContent($templateFile);\n\n\t\t$markers = array(\n\t\t\t// have a form for adminPanel processing and saving of vars\n\t\t\t'HIDDEN_FORM' => '<form id=\"TSFE_ADMIN_PANEL_Form\" name=\"TSFE_ADMIN_PANEL_Form\" action=\"' . htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')) . '\" method=\"post\">' . $this->getAdmPanelFields() . '</form>',\n\t\t\t'MENU_BAR' => $this->buildMenu(),\n\t\t\t'CSSPREFIX' => $this->cssPrefix\n\t\t);\n\n\t\t\t// @todo\tThis code runs after content has been created, \n\t\t\t// thus we cannot insert data into the head using the page renderer. Are there any other options?\n\t\tif ($this->menuOpen) {\n\t\t\t$markers['INCLUDES'] = $this->getIncludes();\n\t\t} else {\n\t\t\t$markers['INCLUDES'] = $this->getLinkTag(t3lib_extMgm::siteRelPath('feeditadvanced') . 'res/css/fe_edit_closed.css');\n\t\t}\n\n\t\t$content = t3lib_parsehtml::getSubpart($this->template, '###MAIN_TEMPLATE###');\n\t\treturn t3lib_parsehtml::substituteMarkerArray($content, $markers, '###|###');\n\t}", "title": "" }, { "docid": "871b7832cc29b8a119af5b9260cc30b4", "score": "0.5871682", "text": "function inkpro_customize_preview_js() {\r\n\r\n\t$version = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? time() : WOLF_THEME_VERSION;\r\n\twp_enqueue_script( 'inkpro-customize-preview', WOLF_THEME_JS . '/customize-preview.js', array( 'jquery', 'customize-preview' ), $version, true );\r\n}", "title": "" }, { "docid": "3aa5ca7e0128a909d65a59fb7e570138", "score": "0.5863568", "text": "public function renderPreview() {\n if(Director::isDev()) {\n user_error('You should implement the renderPreview() method on your decendent of KapostObject', E_USER_WARNING);\n }\n \n return $this->renderWith(array('KapostPreviewUnsupported', 'Page'));\n }", "title": "" }, { "docid": "0cee24f1f09b9ddfcc127832b81388fe", "score": "0.5855698", "text": "public function makePreview() {\n\t\tif (strlen($this->cObj->data['header'])>0) {\n\t\t\t$preview = ($this->flexFormValue['label']) ? \"[\".$this->flexFormValue['lang'].\"] \".substr($this->flexFormValue['label'], 0, 60) : \"[\".$this->flexFormValue['lang'].\"] \".htmlspecialchars(substr($this->flexFormValue['code'], 0, 60));\n\t\t\t$bodytext = $this->cObj->data['bodytext'];\n\t\t\tif ($bodytext != $preview) {\n\t\t\t\t// copy the code to bodytext for preview in BE\n\t\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tt_content', 'uid='.$this->cObj->data['uid'], array('bodytext'=>$preview));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aa6854c73bcffaa532483b51abfbd31f", "score": "0.58516306", "text": "public function the_content() {\n\n\t\t// Extra cap check just for fun.\n\t\tif ( ! \\wpforms_current_user_can() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$content = esc_html__( 'This is a preview of your form. This page is not publicly accessible.', 'wpforms-lite' );\n\n\t\tif ( ! empty( $_GET['new_window'] ) ) { // phpcs:ignore\n\t\t\t$content .= ' <a href=\"javascript:window.close();\">' . esc_html__( 'Close this window', 'wpforms-lite' ) . '.</a>';\n\t\t}\n\n\t\t$content .= do_shortcode( '[wpforms id=\"' . absint( $this->form_data['id'] ) . '\"]' );\n\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "fc6db0989dcfed1dbd795a46b8473baa", "score": "0.58511007", "text": "public static function getPreview() {\n $result = lC_Newsletters_Admin::preview($_GET['nid']);\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "37d45e7b5e3124789338c06f708c6750", "score": "0.5842445", "text": "function twentynineteen_customize_preview_js() {}", "title": "" }, { "docid": "72b7600675840ac7f082e25b1a12ab36", "score": "0.5833954", "text": "function cpvg_generate_preview()\n{\n print cpvg_process_data();\n exit;\n}", "title": "" }, { "docid": "0aad2dd2dfe3893f902ab01da9a2db58", "score": "0.58333933", "text": "function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $version_control){\n\n\trequire_once(\"config.php\");\n\n $row_username = db_query_one(\"select username from {$xerte_toolkits_site->database_table_prefix}logindetails where login_id=?\" , array($row_edit['user_id']));\n\n if(empty($row_username)) {\n die(\"Invalid user id ?\");\n }\n\n /**\n * create the preview xml used for editing\n */\n\n\tif(isset($_POST['data_save'])){\n\t\n\t\tfile_put_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . \"-\" . $row_username['username'] . \"-\" . $row_edit['template_name'] . \"/preview.inc\", $_POST['data_save']);\n\t\n\t}\n\n $preview = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . \"-\" . $row_username['username'] . \"-\" . $row_edit['template_name'] . \"/preview.inc\";\n $data = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . \"-\" . $row_username['username'] . \"-\" . $row_edit['template_name'] . \"/data.inc\";\n\n if(!file_exists($preview) && file_exists($data)){\n copy($data, $preview);\n chmod($preview, 0777);\n }\n\t\n\tif(file_exists($preview)){\n\t\n\t\t$data = json_decode(file_get_contents($preview));\n\t\t\n\t}else{\n\t\n\t\t$data = \"\";\n\t\n\t}\n\t\n\t?><html>\n\t<head>\n\t\t<script type=\"text/javascript\" src=\"modules/decisiontree/scripts/jquery-1.9.1.min.js\"></script>\n\t\t<script type=\"text/javascript\" src=\"modules/decisiontree/scripts/json-2.js\"></script>\n\t\t<script type=\"text/javascript\" src=\"modules/decisiontree/scripts/jscolor/jscolor.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\">\n\t\t\n\t\t\tfunction create_data(){\n\t\t\t\n\t\t\t\tdata = new Object;\n\t\t\t\t\n\t\t\t\t$(\".prompt\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tset = new Object;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.id = $(value).attr(\"id\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.name = $(value)\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.html();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.html = $(value)\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.last()\n\t\t\t\t\t\t\t\t.prev()\n\t\t\t\t\t\t\t\t.val();\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.colour = $(value)\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.last()\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t.val();\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.choices = Array();\n\t\n\t\t\t\t\t\t\tdata[set.id]=set;\n\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);\t\t\n\t\t\t\n\t\t\t\t$(\".option\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tset = data[$(value)\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.attr(\"id\")];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tset.choices.push(Array(\n\t\t\t\t\t\t\t\t$(value)\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.html(),\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$(value)\n\t\t\t\t\t\t\t\t.next()\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.last()\n\t\t\t\t\t\t\t\t.prev()\n\t\t\t\t\t\t\t\t.val()\n\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\t\n\t\t\t\t\t\t\tdata[$(value)\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t\t\t\t.attr(\"id\")] = set;\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\tif(data){\n\t\t\t\t\n\t\t\t\t\t$(\"#data_send\").val(JSON.stringify(data, null, 2));\n\t\t\t\t\t$(\"#data_save\").val(JSON.stringify(data, null, 2));\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction delete_prompt(obj){\n\t\t\t\n\t\t\t\tvar del = confirm(\"Are you sure you want to delete\");\n\t\t\t\n\t\t\t\tif($(\".title\").length!=1){\n\t\t\t\n\t\t\t\t\tif(del==true){\n\t\t\t\n\t\t\t\t\t\tobj.parentNode.remove();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tselect_menus();\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction delete_choice(obj){\n\t\t\t\n\t\t\t\tobj.parentNode.parentNode.remove();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction expand_choice(obj){\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.children()\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(value.tagName==\"DIV\"){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$(value)\n\t\t\t\t\t\t\t\t\t.toggleClass(\"hide\",1);\n\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\t}\n\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction choices_children(){\n\t\t\t\n\t\t\t\treturn $(\".title\").length;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction get_select_menu_options(){\n\t\t\t\t\n\t\t\t\tchoices_store = Array(\"<option value='null'>Choose</option>\");\n\t\t\t\n\t\t\t\t$(\".title\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tchoices_store.push(\"<option value='\" + $(value).parent().attr(\"id\") + \"'>\" + (index+1) + \". \" + $(value).html() + \"</option>\");\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\t);\n\t\t\t\t\t\n\t\t\t\treturn choices_store.join(\"\");\n\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction select_menus(){\n\t\t\t\n\t\t\t\tchoices_store = Array();\n\n\t\t\t\t$(\".title\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\n\t\t\t\t\t\t\tchoices_store.push(\"<option value='\" + index + \"'>\" + $(value).html() + \"</option>\");\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\t);\n\t\t\t\t\t\n\t\t\t\tselected = Array()\t\n\t\t\t\t\t\n\t\t\t\t$(\".route option:selected\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tselected.push($(value).val());\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\t);\t\n\t\t\t\t\t\n\t\t\t\tconsole.log(selected);\t\n\n\t\t\t\t$(\".route\").html(get_select_menu_options());\n\t\t\t\t\n\t\t\t\tif(choices_children()!=1){\n\t\t\t\t\n\t\t\t\t\t$(\".route\")\n\t\t\t\t\t\t.each(\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$(value).prop(\"disabled\", false);\n\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\t)\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$(\".route\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\n\t\t\t\t\t\t\tselected_item = selected.shift();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$(value)\n\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t.each(\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif($(value).val()==selected_item){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$(value).prop(\"selected\",true);\n\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\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\t);\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\t);\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\tfunction edit_title(obj){\n\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.toggleClass(\"hide\",1);\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.next()\n\t\t\t\t\t.toggleClass(\"hide\",0)\n\t\t\t\t\t.toggleClass(\"show\",1);\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.next()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\n\t\t\t\t\t.val($(obj).html());\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction edit_option_title(obj){\n\t\t\t\n\t\t\t\tconsole.log(\"here\");\n\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.toggleClass(\"hide\",1);\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.next()\n\t\t\t\t\t.toggleClass(\"hide\",0)\n\t\t\t\t\t.toggleClass(\"show\",1);\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.next()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\n\t\t\t\t\t.val($(obj).html());\n\t\t\t\n\t\t\t}\t\t\t\n\t\t\t\t\t\n\t\t\tfunction save_text(obj){\n\t\t\t\t\t\t\n\t\t\t\tif($(obj).prev().val()!=\"\"){\n\t\t\t\t\n\t\t\t\t\t$(obj)\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.children()\n\t\t\t\t\t\t.first()\n\t\t\t\t\t\t.next()\n\t\t\t\t\t\t.html($(obj).prev().val());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.toggleClass(\"show\",0)\n\t\t\t\t\t.toggleClass(\"hide\",1);\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\t\n\t\t\t\t\t.next()\n\t\t\t\t\t.toggleClass(\"hide\",0);\t\n\t\t\t\t\t\n\t\t\t\tselect_menus();\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction save_route_choice(obj){\n\t\t\n\t\t\t\tif($(obj).prev().prev().val()!=\"\"){\n\t\t\t\t\n\t\t\t\t\t$(obj)\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.children()\n\t\t\t\t\t\t.first()\n\t\t\t\t\t\t.children()\n\t\t\t\t\t\t.first()\n\t\t\t\t\t\t.next()\n\t\t\t\t\t\t.html($(obj).prev().prev().val());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.toggleClass(\"show\",0)\n\t\t\t\t\t.toggleClass(\"hide\",1);\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\t\n\t\t\t\t\t.toggleClass(\"show\",1);\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction save_option(obj){\n\t\t\t\t\t\t\n\t\t\t\tif($(obj).prev().val()!=\"\"){\n\t\t\t\t\n\t\t\t\t\tname = $(obj).prev().val();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\tname = \"Option name\"\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.toggleClass(\"show\",0)\n\t\t\t\t\t.toggleClass(\"hide\",1);\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\t\n\t\t\t\t\t.toggleClass(\"hide\",0);\t\n\t\t\t\t\t\n\t\t\t\tif(choices_children()!=1){\n\t\t\t\t\n\t\t\t\t\tstate = \"\";\n\t\t\t\t\tget_children = true;\n\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\tstate = \"disabled\";\n\t\t\t\t\tget_children = false;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\thtml = '<div><div class=\"option\"><span onclick=\"javascript:left_choice(this)\"><</span><p onclick=\"javascript:edit_option_title(this)\">' + name + '</p><span onclick=\"javascript:right_choice(this)\">></span><span onclick=\"javascript:delete_choice(this)\">X</span></div><form class=\"option_form hide\"><input type=\"text\" value=\"\" /><select class=\"route\" ' + state + ' >';\n\t\t\t\tif(get_children){\n\t\t\t\t\thtml += get_select_menu_options();\n\t\t\t\t}\n\t\t\t\thtml += '</select><a onclick=\"javascript:save_route_choice(this)\">Change</a></form></div>';\t\n\t\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.append(html);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction move_up(obj){\n\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.insertBefore(obj.parentNode.parentNode.previousSibling);\n\t\t\t\t\n\t\t\t\t$(\".prompt\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$(value).attr(\"id\",index);\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\t);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction move_down(obj){\n\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.insertAfter(obj.parentNode.parentNode.nextSibling);\n\t\t\t\t\t\n\t\t\t\t$(\".prompt\")\n\t\t\t\t\t.each(\n\t\t\t\t\t\n\t\t\t\t\t\tfunction(index,value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$(value).attr(\"id\",index);\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\t);\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction left_choice(obj){\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.insertBefore(obj.parentNode.parentNode.previousSibling);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction right_choice(obj){\n\t\t\t\t\n\t\t\t\t$(obj)\n\t\t\t\t\t.parent()\n\t\t\t\t\t.parent()\n\t\t\t\t\t.insertAfter(obj.parentNode.parentNode.nextSibling);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfunction add_decision(){\n\t\t\t\n\t\t\t\t$(\"#decisions\")\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\n\t\t\t\t\t.clone()\n\t\t\t\t\t.appendTo(\"#decisions\")\n\t\t\t\t\t.attr(\"id\", parseInt(\n\t\t\t\t\t\t\t\t$(\"#decisions\")\n\t\t\t\t\t\t\t\t\t.children()\n\t\t\t\t\t\t\t\t\t.first()\n\t\t\t\t\t\t\t\t\t.attr(\"id\")) + $(\".title\").length);\n\t\t\t\t\n\t\t\t\t$(\"#decisions\")\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.children()\n\t\t\t\t\t.first()\n\t\t\t\t\t.next()\n\t\t\t\t\t.html(\"New Choice\");\n\t\n\t\t\t\t$(\"#decisions\")\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.prev()\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.children()\n\t\t\t\t\t.last()\n\t\t\t\t\t.html(\"\");\n\t\t\t\t\t\n\t\t\t\tselect_menus();\t\n\t\t\t\n\t\t\t}\n\t\n\t\t</script>\n\t\t<style>\n\t\t\n\t\t\t.hide{\n\t\t\t\n\t\t\t\tdisplay:none;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t.show{\n\t\t\t\n\t\t\t\tdisplay:block;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\thtml{\n\t\t\t\tfont-family:verdana,arial;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt{\n\t\t\t\tfloat:left;\n\t\t\t\tposition:relative;\n\t\t\t\twidth:98%;\n\t\t\t\tclear:both;\n\t\t\t\tborder:2px solid #000;\n\t\t\t\t-webkit-border-radius: 10px;\n\t\t\t\t-moz-border-radius: 10px;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\theight:auto;\n\t\t\t\tmargin-bottom:20px;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt div{\n\t\t\t\tmargin:20px;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt div div{\n\t\t\t\tmargin:0px;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt textarea{\n\t\t\t\twidth:100%;\n\t\t\t\theight:50px;\n\t\t\t}\n\t\t\t\n\t\t\t.choices{\n\t\t\t\tfloat:left;\n\t\t\t\tposition:relative;\n\t\t\t}\n\t\t\t\n\t\t\t.choices div{\n\t\t\t\tfloat:left;\n\t\t\t\tposition:relative;\n\t\t\t}\n\t\t\t\n\t\t\t.title{\n\t\t\t\tdisplay:inline-block;\n\t\t\t}\n\t\t\t\n\t\t\tp.delete{\n\t\t\t\tclear:both;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt div.choices div{\n\t\t\t\tborder:2px solid #000;\n\t\t\t\t-webkit-border-radius: 10px;\n\t\t\t\t-moz-border-radius: 10px;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\tpadding:5px;\n\t\t\t\tfont-size:75%;\n\t\t\t\tmargin-right:5px;\n\t\t\t}\n\t\t\t\n\t\t\t#decisions div.prompt div.choices div div{\n\t\t\t\tborder:none;\n\t\t\t}\n\t\t\t\n\t\t\t.option p{\n\t\t\t\tdisplay:inline;\n\t\t\t}\n\t\t\t\n\t\t\t.option span{\n\t\t\t\tpadding:5px;\n\t\t\t\tmargin:5px;\n\t\t\t\tborder:2px solid #000;\n\t\t\t\t-webkit-border-radius: 10px;\n\t\t\t\t-moz-border-radius: 10px;\n\t\t\t\tborder-radius: 10px;\n\t\t\t\tbackground:#000;\n\t\t\t\tcolor:#fff;\n\t\t\t\tcursor:pointer;\n\t\t\t\tcursor:hand;\n\t\t\t}\n\t\t\t\n\t\t\t.prompt span.expand{\n\t\t\t\tfont-size:200%;\n\t\t\t\tfont-weight:bold;\n\t\t\t}\n\t\t\t\n\t\t\t.prompt p.title{\n\t\t\t\tfont-size:200%;\n\t\t\t\tmargin:0px;\n\t\t\t\tpadding:0px;\n\t\t\t}\n\t\t\t\n\t\t\t.option_form input, .option_form select, .option_form a{\n\t\t\t\tdisplay:block;\n\t\t\t\tmargin:10px 0px;\n\t\t\t\tpadding:10px 0px;\n\t\t\t}\n\t\t\t\n\t\t\t.option_form a{\n\t\t\t\tcursor:pointer;\n\t\t\t\tcursor:hand;\n\t\t\t}\n\t\t\t\n\t\t\t.prompt p.delete{\n\t\t\t\tmargin:20px 0px;\n\t\t\t\tpadding:20px;\n\t\t\t}\n\t\t\t\n\t\t\t.title, .choices_menu p, .delete, .expand{\n\t\t\t\tcursor:pointer;\n\t\t\t\tcursor:hand;\n\t\t\t}\n\t\t\t\n\t\t\t.decision{\n\t\t\t\tclear:both;\n\t\t\t}\n\t\t\t\n\t\t\t.decision a{\n\t\t\t\tcursor:pointer;\n\t\t\t\tcursor:hand;\n\t\t\t}\t\n\t\t\t\n\t\t\tp.delete span{\n\t\t\t\n\t\t\t\tmargin-right: 20px;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t</style>\n\t</head>\n\t<body><?PHP\n\t\n\t\t\tif(isset($_POST['data_save'])){\n\t\t\t\n\t\t\t\techo \"<h2>Data Saved</h2>\";\n\t\t\t\n\t\t\t}\n\t\n\t\t?>\n\t\t<div id=\"decisions\">\n\t\t\t<?PHP\n\t\t\t\n\t\t\t\tif($data!=\"\"){\n\t\t\t\t\n\t\t\t\t\tforeach($data as $index => $choice){\n\t\t\t\t\t\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<div class=\"prompt\" id=\"<?PHP echo $choice->id; ?>\">\n\t\t\t\t\t\t\t<span class=\"expand\" onclick=\"javascript:expand_choice(this)\">+</span>\n\t\t\t\t\t\t\t<p class=\"title\" onclick=\"javascript:edit_title(this)\"><?PHP echo $choice->name; ?></p>\n\t\t\t\t\t\t\t<form class=\"hide\">\n\t\t\t\t\t\t\t\t<input type=\"text\" value=\"\" /><a onclick=\"javascript:save_text(this)\">Change</a>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p>Text to appear for this choice</p>\n\t\t\t\t\t\t\t\t<textarea><?PHP echo $choice->html; ?></textarea>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t<input class=\"color\" type=\"text\" value=\"<?PHP echo $choice->colour; ?>\" />\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\t\t\t\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<h2>Options</h2>\n\t\t\t\t\t\t\t\t<div class=\"choices_menu\">\n\t\t\t\t\t\t\t\t\t<p onclick=\"javascript:edit_title(this)\">Click to add an option</p>\n\t\t\t\t\t\t\t\t\t<form class=\"hide\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" value=\"New option\" /><a onclick=\"javascript:save_option(this)\">Add</a>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t<div class=\"choices\"><?PHP\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$total = count($choice->choices);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\twhile($option = array_shift($choice->choices)){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t?><div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"option\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"javascript:left_choice(this)\"><</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<p onclick=\"javascript:edit_option_title(this)\"><?PHP echo $option[0]; ?></p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"javascript:right_choice(this)\">></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span onclick=\"javascript:delete_choice(this)\">X</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<form class=\"option_form hide\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" value=\"\" />\n\t\t\t\t\t\t\t\t\t\t\t\t\t<select class=\"route\"><?PHP\n\t\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\tif($total!=1){\n\t\t\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\techo \"<option value='null'>Choose</option>\";\n\t\t\t\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\tforeach($data as $optindex => $optvalue){\n\t\t\t\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\t\techo \"<option value='\" . $optindex . \"' \"; \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($option[1]==$optindex){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" selected \";\n\t\t\t\t\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\t\techo \">\" . $optindex . \". \" . $option[0] . \"</option>\";\n\t\t\t\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\t}\n\t\t\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\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t?></select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a onclick=\"javascript:save_route_choice(this)\">Change</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t\t</div><?PHP\n\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\t\t\t\t\n\t\t\t\t\t\t\t\t\t?></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"delete\" onclick=\"javascript:delete_prompt(this)\">Delete</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?PHP\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\n\t\t\t?>\n\t\t\t<div class=\"prompt\" id=\"1\">\n\t\t\t\t<span class=\"expand\" onclick=\"javascript:expand_choice(this)\">+</span>\n\t\t\t\t<p class=\"title\" onclick=\"javascript:edit_title(this)\">Choice</p>\n\t\t\t\t<form class=\"hide\">\n\t\t\t\t\t<input type=\"text\" value=\"\" /><a onclick=\"javascript:save_text(this)\">Change</a>\n\t\t\t\t</form>\n\t\t\t\t<div>\n\t\t\t\t\t<p>Text to appear for this choice</p>\n\t\t\t\t\t<textarea></textarea>\n\t\t\t\t</div>\t\t\t\n\t\t\t\t<div>\n\t\t\t\t\t<h2>Options</h2>\n\t\t\t\t\t<div class=\"choices_menu\">\n\t\t\t\t\t\t<p onclick=\"javascript:edit_title(this)\">Click to add an option</p>\n\t\t\t\t\t\t<form class=\"hide\">\n\t\t\t\t\t\t\t<input type=\"text\" value=\"New option\" /><a onclick=\"javascript:save_option(this)\">Add</a>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t<div class=\"choices\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<p class=\"delete\"><span onclick=\"javascript:delete_prompt(this.parentNode)\">Delete</span><span onclick=\"javascript:move_up(this)\">Move Up</span><span onclick=\"javascript:move_down(this)\">Move Down</span></p>\n\t\t\t</div>\n\t\t\t<?PHP\n\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t?>\n\t\t</div>\n\t\t<p class=\"decision\"><a onclick=\"javascript:add_decision();\">Add Decision</a></p>\n\t\t<p>\n\t\t\t<form onsubmit=\"return create_data();\" action=\"preview.php?template_id=<?PHP echo $_GET['template_id']; ?>\" method=\"post\" target=\"_blank\" enctype=\"application/json; charset=utf-8\">\n\t\t\t\t<button>Preview</button>\n\t\t\t\t<input id=\"data_send\" name=\"data_send\" type=\"hidden\" value=\"\" />\n\t\t\t</form>\n\t\t\t<form onsubmit=\"return create_data();\" action=\"edit.php?template_id=<?PHP echo $_GET['template_id']; ?>\" method=\"post\" enctype=\"application/json; charset=utf-8\">\n\t\t\t\t<button>Save</button>\n\t\t\t\t<input id=\"data_save\" name=\"data_save\" type=\"hidden\" value=\"\" />\n\t\t\t\t<input id=\"publish\" name=\"publish\" type=\"hidden\" value=\"publish\" />\n\t\t\t</form>\n\t\t\t<form onsubmit=\"return create_data();\" action=\"edit.php?template_id=<?PHP echo $_GET['template_id']; ?>\" method=\"post\" enctype=\"application/json; charset=utf-8\">\n\t\t\t\t<button>Save</button>\n\t\t\t\t<input id=\"data_save\" name=\"data_save\" type=\"hidden\" value=\"\" />\n\t\t\t</form>\n\t\t</p>\n\t</body>\n</html><?PHP\n\n}", "title": "" }, { "docid": "26fd35fdfb344b25e5b3f973c3a5c1b7", "score": "0.58296233", "text": "function cw_customizer_preview_js() {\n wp_enqueue_script( 'cw_customizer_preview', get_template_directory_uri().'/inc/customizer/cw-customizer-script.js', array( 'customize-preview', 'jquery' ), '1.0.63' );\n}", "title": "" }, { "docid": "fa6bbf247f25c85af30d90e603f51ebf", "score": "0.58272827", "text": "public function render_control_template_scripts() {\n\t\tparent::render_control_template_scripts();\n\t\t?>\n\t\t<script type=\"text/html\" id=\"tmpl-wp-media-widget-gallery-preview\">\n\t\t\t<# var describedById = 'describedBy-' + String( Math.random() ); #>\n\t\t\t<# if ( data.ids.length ) { #>\n\t\t\t\t<div class=\"gallery media-widget-gallery-preview\">\n\t\t\t\t\t<# _.each( data.ids, function( id, index ) { #>\n\t\t\t\t\t\t<#\n\t\t\t\t\t\tvar attachment = data.attachments[ id ];\n\t\t\t\t\t\tif ( ! attachment ) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#>\n\t\t\t\t\t\t<# if ( index < 6 ) { #>\n\t\t\t\t\t\t\t<dl class=\"gallery-item\">\n\t\t\t\t\t\t\t\t<dt class=\"gallery-icon\">\n\t\t\t\t\t\t\t\t<# if ( attachment.sizes.thumbnail ) { #>\n\t\t\t\t\t\t\t\t\t<img src=\"{{ attachment.sizes.thumbnail.url }}\" width=\"{{ attachment.sizes.thumbnail.width }}\" height=\"{{ attachment.sizes.thumbnail.height }}\" alt=\"\" />\n\t\t\t\t\t\t\t\t<# } else { #>\n\t\t\t\t\t\t\t\t\t<img src=\"{{ attachment.url }}\" alt=\"\" />\n\t\t\t\t\t\t\t\t<# } #>\n\t\t\t\t\t\t\t\t<# if ( index === 5 && data.ids.length > 6 ) { #>\n\t\t\t\t\t\t\t\t\t<div class=\"gallery-icon-placeholder\">\n\t\t\t\t\t\t\t\t\t\t<p class=\"gallery-icon-placeholder-text\">+{{ data.ids.length - 5 }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<# } #>\n\t\t\t\t\t\t\t\t</dt>\n\t\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<# } #>\n\t\t\t\t\t<# } ); #>\n\t\t\t\t</div>\n\t\t\t<# } else { #>\n\t\t\t\t<div class=\"attachment-media-view\">\n\t\t\t\t\t<p class=\"placeholder\"><?php echo esc_html( $this->l10n['no_media_selected'] ); ?></p>\n\t\t\t\t</div>\n\t\t\t<# } #>\n\t\t</script>\n\t\t<?php\n\t}", "title": "" }, { "docid": "d1f78434adbafa6e7285f0eabd98ea57", "score": "0.5824474", "text": "function render() {\n\n if ($this->do_skip) return 'skip';//Module will be skipped if do_skip is true.\n $title = $this->title;\n $inner_HTML = $this->inner_HTML;\n $view_all_url = $this->view_all_url;\n $ajax_url = $this->ajax_url;\n $template_file = CURRENT_THEME_FSPATH.DS.$this->outer_template;\n $block = new Template($template_file); \n $block->set('title', $title);\n $block->set('inner_HTML', $inner_HTML);\n $block->set('ajax_url', $ajax_url);\n $block->set('view_all_url', $view_all_url);\n $contents = $block->fetch();\n\n \n return $contents; // Return the contents\n }", "title": "" }, { "docid": "f03c9f827765d271c0736acf0e3a1ea4", "score": "0.58192086", "text": "function cp_display_preview_modal(){\n\t\t\trequire_once( 'modules/modal/style-preview-ajax.php' );\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "d878c3ffbf648b95990e4c0d5f1422bc", "score": "0.58050454", "text": "public function js() {}", "title": "" }, { "docid": "12b69343db415b90b910d0e997b6ae09", "score": "0.5798374", "text": "public function renderHtml() {\n\t\treturn $this->html_code;\n\t}", "title": "" }, { "docid": "bcfa94d41b5c91c26391a761e9d18358", "score": "0.5795685", "text": "public function CreateContent()\t\t\t{\n\t\treturn $this->_HTMLCode;\t\t\n\t}", "title": "" }, { "docid": "00062a288b76f9cfbe6ac8a17666d347", "score": "0.5790667", "text": "function post_preview() {}", "title": "" }, { "docid": "132b4b5808b4083ec7efb79691f99cd8", "score": "0.5786896", "text": "function customizer_demo_customize_preview_js() {\n\twp_enqueue_script( 'customizer-demo-customize-preview', get_template_directory_uri() . '/customize-preview.js', array( 'customize-preview' ), false, true );\n}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "025d031265eec856c00cbd44390cd2c1", "score": "0.5776253", "text": "public function render_content() {}", "title": "" }, { "docid": "466fb38ea288766abf6127cda556d536", "score": "0.5771915", "text": "public function render()\n {\n $root =& XCube_Root::getSingleton();\n $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM);\n\n $renderTarget =& $renderSystem->createRenderTarget();\n\n $renderTarget->setAttribute('legacy_module', 'legacy');\n $renderTarget->setTemplateName('legacy_xoopsform_textarea.html');\n $renderTarget->setAttribute('element', $this);\n $renderTarget->setAttribute('class', $this->getClass());\n\n $renderSystem->render($renderTarget);\n\n return $renderTarget->getResult();\n }", "title": "" }, { "docid": "82ec9981c64d6543ed3a24bda34a631f", "score": "0.57702017", "text": "function semanticwp_preview_scripts() {\n wp_enqueue_script('semantcwp_customize_preview', get_template_directory_uri().'/js/customize_preview.js', array( 'customize-preview', 'jquery' ));\n}", "title": "" }, { "docid": "22015e8ac4c9cb0b2890a3108f35e05f", "score": "0.5766293", "text": "public static function live_preview() {\n\n\t\t\t/*TO DO - Implement Live Preview using Javascript and postMessage Transport*/\n\n\t\t\t//wp_enqueue_script( 'quest-customizer-preview', get_template_directory_uri() . '/inc/customizer/assets/js/customizer-preview.js', array( 'jquery' ), '', true );\n\n\n\t\t}", "title": "" }, { "docid": "b6a2014e925f04ec46745da36c9d1b19", "score": "0.5760723", "text": "public function run()\n {\n $this->registerClientScript();\n global $admin_preview_scale;\n\n if (!isset($this->data['mode'])) {\n $this->data['mode'] = 'single';\n }\n if ($this->data['mode'] != 'many' && $this->data['mode'] != 'single') {\n throw new Exception('Допускается mode many или single, по умолчанию single');\n };\n\n $new_items = array();\n if (!is_array($this->data['items'])) {\n $this->data['items'] = array($this->data['items']);\n };\n foreach ($this->data['items'] as $item) {\n if ($item) {\n $cAttr = array();\n $cAttr['file_url'] = $item->makeWebPath();\n if ($item->type == 1) {\n $cAttr['preview_url'] = $item->makePreview(array(\"scale\" => $this->scale, 'scaleMode' => $this->scaleMode));\n $cAttr['preview_url'] = $cAttr['preview_url']['src'];\n }\n $cAttr['comment'] = '';\n $cAttr['source'] = '';\n\n $new_items[] = array_merge($item->attributes, $cAttr);\n }\n };\n $this->data['items'] = CJSON::encode($new_items);\n $this->data['needfields'] = $this->needfields;\n $this->data['needbackground'] = $this->needbackground;\n// if(count($this->min_size)>0){\n// $this->data['minheight'] = $this->min_size['height'];\n// $this->data['minwidth'] = $this->min_size['width'];\n// }\n $this->render($this->view, $this->data);\n }", "title": "" }, { "docid": "618bc1a3d0d85b59740625ee157438c0", "score": "0.57573485", "text": "private function formPreview()\n {\n $form = new Dlayer_Designer_Form($this->site_id, $this->form_id);\n\n $this->view->layout_options = $form->layoutOptions();\n $this->view->form = $form->form();\n $this->view->row_styling = $form->rowStyles();\n\n $control_bar_buttons = array(\n array(\n 'uri' => '/form/design/index',\n 'class' => 'primary',\n 'name' => 'Return to Form Builder'\n )\n );\n\n $layout = Zend_Layout::getMvcInstance();\n $layout->assign('preview_at', true);\n\n $this->_helper->populateControlBar($control_bar_buttons, array());\n\n return $this->view->render(\"design/form-preview.phtml\");\n }", "title": "" }, { "docid": "6cd296a601d5a7e9bf9a45b3f0fd2657", "score": "0.57557625", "text": "function html(){\n\t\t?>\n <script type=\"text/javascript\">\n\t\t\tfunction <?php echo $this->id; ?>_insertTemplate() {\n\t\t\t\t<?php $this->shortcode_ja_vars(); ?>\n\t\t\t\t/** Send shortcode to editor */\n\t\t\t\t<?php if($this->content == true): ?>\n\t\t\t\t\twindow.send_to_editor('[<?php echo $this->shortcode; ?> <?php echo $this->shortcode_arguments(); ?>]<?php $this->field_content(); ?>[/<?php echo $this->shortcode; ?>]');\n\t\t\t\t<?php else: ?>\n\t\t\t\t\twindow.send_to_editor('[<?php echo $this->shortcode; ?> <?php echo $this->shortcode_arguments(); ?> /]');\n\t\t\t\t<?php endif; ?>\n\t\t\t}\n\t\t</script>\n <div id=\"<?php echo $this->template_id(); ?>\" class=\"zookit-shortcode-editor\">\n\t\t\t<div class=\"wrap\">\t\t\t\t\t\n\t\t\t\t<?php echo $this->form(); ?>\n \n\t\t\t\t<input type=\"button\" id=\"<?php echo $this->id; ?>-insert-template\" class=\"button-primary\" value=\"<?php echo __( 'Insert Shortcode', 'zoohub_taxdomain' ); ?>\" onclick=\"<?php echo $this->id; ?>_insertTemplate();\" />\n\t\t\t\t<a id=\"<?php echo $this->id; ?>-cancel-template\" class=\"button-secondary\" onclick=\"tb_remove();\" title=\"<?php echo __( 'Cancel', 'zoohub_taxdomain' ); ?>\" style=\"float:right;\"><?php echo __( 'Cancel', 'zoohub_taxdomain' ); ?></a>\n\t\t\t</div>\n\t\t</div>\n <?php\t\n\t}", "title": "" }, { "docid": "5bf3c2e5ca7bbc06d9bbabb55ffe7968", "score": "0.5755445", "text": "function displayHTMLEditor(string $id, string $name, string $iframePage, string $iconsPath, ?string $contents = \"\", int $width = 60, int $height = 20, string $labelsParameter = null): void\n{\n\tdisplayEditorTextAreaDiv($id, $name, $contents, $width, $height);\n\t?>\n\t<script type=\"text/javascript\">\n\tvar editor_<?= $id ?> = new sbeditor.SBEditor('<?= $iconsPath ?>', '<?= $iframePage ?>', <?= $width ?>, <?= $height ?><?= $labelsParameter === null ? \"\" : (\", \".$labelsParameter) ?>);\n\teditor_<?= $id ?>.addEditorCapabilities('<?= $id ?>');\n\t</script>\n\t<?php\n}", "title": "" } ]
f20c101a4d16fcc55738d2bcf7710164
Set the value of namespace AppBundle/Entity;
[ { "docid": "6a3e935ee890870b1c9c500ca6af91f3", "score": "0.0", "text": "public function setName($name)\n {\n $this->name = $name;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "07c1b6bd273cda558e367080d0cd1249", "score": "0.70928264", "text": "public function setEntity($entity) {\n $this->entity = $entity;\n }", "title": "" }, { "docid": "ca0a45948bdecabe33271f4a24f6a691", "score": "0.7062306", "text": "abstract protected function setEntity();", "title": "" }, { "docid": "52ceb982bcd757c7702d20cf8bdbef5a", "score": "0.7002593", "text": "abstract public function setEntity($entity);", "title": "" }, { "docid": "ed6ff3554f6cb34421b242e79f9f22b3", "score": "0.69517857", "text": "public function setEntity($entity)\n\t{\n\t\t$this->entity = $entity;\n\t}", "title": "" }, { "docid": "832749d24d4b711adea1f9c5703fe813", "score": "0.676768", "text": "public function setEntity( $entity )\n {\n\n $this->setEntityWbfsysEntityCategory( $entity );\n\n }", "title": "" }, { "docid": "34f00cdcd51f4c2b34af69ef0a1813c6", "score": "0.6718758", "text": "public function setEntity1($entity);", "title": "" }, { "docid": "7115b6f4c7fc71dba0377d8c13fb4f8a", "score": "0.6596409", "text": "public function setEntity2($entity);", "title": "" }, { "docid": "e9ca26169be5c4b0aad4a032fc57dcbc", "score": "0.6471337", "text": "public function setEntity($entity_name){\n\t\t\n $repository = $this->em->getRepository($entity_name);\n\t\t\n\t\t$this->entity_name = $entity_name;\n\t\t$this->repository = $repository;\n\t}", "title": "" }, { "docid": "8d0ccb9e66143bee193e64949557a77b", "score": "0.63881904", "text": "public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }", "title": "" }, { "docid": "8d0ccb9e66143bee193e64949557a77b", "score": "0.63881904", "text": "public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }", "title": "" }, { "docid": "8d0ccb9e66143bee193e64949557a77b", "score": "0.63881904", "text": "public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }", "title": "" }, { "docid": "8d0ccb9e66143bee193e64949557a77b", "score": "0.63881904", "text": "public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }", "title": "" }, { "docid": "8d0ccb9e66143bee193e64949557a77b", "score": "0.63881904", "text": "public function setEntity( $entity )\n {\n\n $this->entity = $entity;\n $this->rowid = $entity->getId();\n \n }", "title": "" }, { "docid": "a1f3a9369b7c3b892e00e5fb93e7c1fd", "score": "0.61586785", "text": "public function setEntity($entity)\n {\n $this->_entity = (string) $entity;\n return $this;\n }", "title": "" }, { "docid": "516ae3fe0e269c29ba2926b3e1952e61", "score": "0.60245067", "text": "public function setEntity($var)\n {\n GPBUtil::checkString($var, True);\n $this->entity = $var;\n\n return $this;\n }", "title": "" }, { "docid": "9e4767ad4e186d2269d3131d4f724956", "score": "0.5873404", "text": "public function setResource(?Entity $value): void {\n $this->getBackingStore()->set('resource', $value);\n }", "title": "" }, { "docid": "735632e1b32c79bff2b0f81a4caec147", "score": "0.5867499", "text": "public function __set($field, $value) {\r\n $this->entity->$field = $value;\r\n }", "title": "" }, { "docid": "735632e1b32c79bff2b0f81a4caec147", "score": "0.5867499", "text": "public function __set($field, $value) {\r\n $this->entity->$field = $value;\r\n }", "title": "" }, { "docid": "c2a7cfce691f2d557d87e4757365bf01", "score": "0.5820055", "text": "public function setUserEntity($userEntity)\n {\n $this->userEntity = $userEntity;\n }", "title": "" }, { "docid": "cb68ed9a3fbe786bc09bd52b229f9e4e", "score": "0.5806827", "text": "private function setEntity($entity, $data)\r\n {\r\n $entity->setName($data['name']);\r\n $entity->setApartment($data['apartment']);\r\n $entity->setCity($data['city']);\r\n $entity->setNumber($data['number']);\r\n $entity->setPostal($data['postal']);\r\n $entity->setStreet($data['street']);\r\n $entity->setPhone($data['phone']);\r\n $entity->setEmail($data['email']);\r\n $this->persist($entity);\r\n }", "title": "" }, { "docid": "7c1f2796450df6acba748ffeccaf8461", "score": "0.5773359", "text": "public function __set($name, $value)\n {\n $this->_entity->set($name, $value);\n }", "title": "" }, { "docid": "1e19b65ca3379d2b0dbc171bcb41d8fa", "score": "0.57293195", "text": "public function setEntity($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Datastore\\V1\\Entity::class);\n $this->entity = $var;\n\n return $this;\n }", "title": "" }, { "docid": "2c436e0a8bd7afb8dbd267fb21732546", "score": "0.5716611", "text": "protected function setEntityAttributeValue($entity, $field, $value)\n {\n $functionName = 'set'.ucfirst($field);\n\n call_user_func([$entity, $functionName], $value);\n }", "title": "" }, { "docid": "f4c1d864fa7eb543becdff5687d97741", "score": "0.57047105", "text": "public function setEntity($entity)\n {\n if ($entity instanceof Mage_Eav_Model_Entity_Abstract) {\n $this->_entity = $entity;\n } elseif (is_string($entity) || $entity instanceof Mage_Core_Model_Config_Element) {\n $this->_entity = Mage::getModel('eav/entity')->setType($entity);\n } else {\n throw Mage::exception('Mage_Eav', Mage::helper('eav')->__('Invalid entity supplied: %s', print_r($entity, 1)));\n }\n return $this;\n }", "title": "" }, { "docid": "a52c4f956205116e5f8121f2a3acadfe", "score": "0.5668087", "text": "public function setEntity(Entity $entity)\n {\n /** @var SharedEventManager $events */\n $events = $this->getContainer()->get('sharedEventManager');\n $events->attach(\n get_class($entity),\n Save::BEFORE_SAVE,\n [$this, 'beforeSave']\n );\n $events->attach(\n get_class($entity),\n Select::BEFORE_SELECT,\n [$this, 'beforeSelect']\n );\n $events->attach(\n get_class($entity),\n Select::AFTER_SELECT,\n [$this, 'afterSelect']\n );\n $this->getContainer()->set('sharedEventManager', $events);\n return parent::setEntity($entity);\n }", "title": "" }, { "docid": "9b46d3e8a3329ba007d2201ad717c885", "score": "0.56589454", "text": "public static function setValue($entity, $fieldName, $value)\n {\n $entity->{'set' . InflectorFactory::create()->classify($fieldName)}($value);\n }", "title": "" }, { "docid": "c48eb94defba41c28c316467223c760c", "score": "0.560671", "text": "public function setEntityTableName($tableName)\n {\n $this->_entityTableName = $tableName;\n }", "title": "" }, { "docid": "099b63ecb672397711c3a45644258b1f", "score": "0.55755275", "text": "public function setEntityUrl( $url )\n {\n $this->entityUrl = $url;\n }", "title": "" }, { "docid": "d6e1b96a2793de97b9500043798613ca", "score": "0.5554123", "text": "public function setEntityNamespaces(array $entityNamespaces)\n {\n $this->_attributes['entityNamespaces'] = $entityNamespaces;\n }", "title": "" }, { "docid": "d364168dcae71a3adaf4eb63554de3c4", "score": "0.5550279", "text": "public function setUdoPropertiesFromEntity(ContentEntityInterface $entity) {\n // Get the tags from Route.\n // Set the tags in UDO.\n $this->setProperties($this->helper->tagsFromRoute($entity), $entity);\n }", "title": "" }, { "docid": "63f7474df1979eb343794d86005a4c85", "score": "0.5537229", "text": "public function setEntityName(string $entityName)\n {\n $this->entityName = $entityName;\n }", "title": "" }, { "docid": "7767dd6a48c7a46fcaf150ad927bc077", "score": "0.5506545", "text": "abstract public function getEntityNamespace();", "title": "" }, { "docid": "c2b1d8f242aa8aff8d2f6082d5463410", "score": "0.54731786", "text": "private function _setEntity( $entity, $options=array() ) {\n $this->entity = $entity;\n if ( $this->entity_type == 'node' ) {\n $this->bundle_name = $entity->type;\n }\n return $this;\n }", "title": "" }, { "docid": "acab9a81f58a0837eb9e26a7c5e7e74d", "score": "0.5454767", "text": "public function setEntity(/*KnowledgeBase_Entity_Ticket */$entity)\n {\n $this->entity = $entity;\n }", "title": "" }, { "docid": "c413ab00b1aa6584b5b69b085ab3354b", "score": "0.54462117", "text": "public function setEntityClass($entityClass){\n\t\t$this->_entityClass = $entityClass;\n\t}", "title": "" }, { "docid": "bfddf5041cc6b3cd86629a04d1205031", "score": "0.5446196", "text": "public function setValues($values) {\n foreach ($values as $key => $value) {\n $this->entity->$key = $value;\n }\n }", "title": "" }, { "docid": "7ac69937f8b6b45a5a394692877bf6d4", "score": "0.54377383", "text": "public function setEntity($entity)\n {\n $this->_entity = $entity;\n $this->_commentCollection = null; // Changing model and resource model can lead to change of comment collection\n return $this;\n }", "title": "" }, { "docid": "508b84f9796a3166314954a8fa3f0359", "score": "0.54109347", "text": "public function setEntity(Entity $entity)\n {\n $this->entity = $entity;\n\n return $this;\n }", "title": "" }, { "docid": "28230be00cffa3f1e0af240944e7af4c", "score": "0.541077", "text": "public static function getEntityNamespace();", "title": "" }, { "docid": "a5a287f094528c032666c5c7f5a43e47", "score": "0.53997386", "text": "public function setToEntity(Entity $toEntity): void\n {\n $this->toEntity = $toEntity;\n }", "title": "" }, { "docid": "7021a5553ece5b62d85d8523c85d8b54", "score": "0.53704214", "text": "public function setFromEntity(Entity $fromEntity): void\n {\n $this->fromEntity = $fromEntity;\n }", "title": "" }, { "docid": "be1439a9b5b5d9b67dc11bec5735eba0", "score": "0.53392655", "text": "public function setEntityWbfsysEntityCategory( $entity )\n {\n\n $this->register( 'entityWbfsysEntityCategory', $entity );\n $this->register( 'main_entity', $entity );\n\n }", "title": "" }, { "docid": "1b7674f3f3751cfe12d5cabc8b76e71c", "score": "0.5338315", "text": "public function getEntityNamespace()\n {\n return 'Elcodi\\Component\\Cart\\Entity\\Cart';\n }", "title": "" }, { "docid": "a9221f0f5f6d3fa99826412a744856a6", "score": "0.53313446", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Trtabh Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "3f81e58b5f584fd131010e8b32f7ef7f", "score": "0.53289", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Tvdnar Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "90e3103a52efaf2d269e295853182dc8", "score": "0.5324634", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Trcias Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "e5ec83638c9315ca054b1b711feca534", "score": "0.5315746", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Trhpad Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "2b0020a8cf68d2a6f312e930b9410108", "score": "0.5314015", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Trdife Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "8e9b75337d705972ddc2f414f0b6fdb2", "score": "0.53089297", "text": "public function setEntity($entityName) {\n\t\t$this->entity = $entityName;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c72c93d1d45203a4d60b8e4f4a6f2b07", "score": "0.52638096", "text": "public function setEntityFieldValue(ExoComponentValues $values, ContentEntityInterface $entity) {\n $field = $values->getDefinition();\n if ($this->hasDefinition($field->getType())) {\n $component_field = $this->createFieldInstance($field);\n if ($component_field instanceof ExoComponentFieldFieldableInterface) {\n $field_name = $field->getFieldName();\n if ($entity->hasField($field_name)) {\n $entity->get($field_name)->setValue($component_field->getValues($values, $entity->get($field_name)));\n }\n }\n }\n }", "title": "" }, { "docid": "c983d5587b397a339226c37225ed6e0a", "score": "0.52386713", "text": "private function setEntityBody(string $entityBody = null): void\n {\n $this->entityBody = $entityBody;\n }", "title": "" }, { "docid": "6e5a7900111fe3dd899f45b56d062175", "score": "0.5222354", "text": "public function setEntityTagSet(EntityTagSet $entityTagSet): void\n {\n $this->entityTagSet = $entityTagSet;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "6ef22651e027df2837dbb0e0f8839cdb", "score": "0.52110904", "text": "public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }", "title": "" }, { "docid": "c89806fda95a35c599d032130207037c", "score": "0.5209917", "text": "public function testUpdateEntity()\n {\n }", "title": "" }, { "docid": "1e1595db197dc2f2365a27d8a162fdc3", "score": "0.520686", "text": "public function setModel(CoreEntityInterface $entity): self;", "title": "" }, { "docid": "55cb78791acb865124fe97a288b0b60c", "score": "0.5193937", "text": "private function configureEntities(): void\n {\n }", "title": "" }, { "docid": "0cbd7eb79bf442a6baa01d3ff3ab3b04", "score": "0.51938224", "text": "function __set ($name, $value ){\n\t\tif($name=='id')\n\t\t\t$this->id=$value;\n\t\telse if(!isset($this->entity->fields[$name])) throw new Exception('There is no field \"'.$name.'\" in entity \"'.$this->entity->name.'\"');\n\t\telse if(($this->entity->fields[$name] instanceof DateField) and !($value instanceof DateTime))\n\t\t\t\tthrow new Exception('\"'.$name.'\" type must be DateTime');\n\t\telse if($this->entity->fields[$name] instanceof PasswordField)\n\t\t\t$this->fields[$name]=md5($value);\n\t\telse if($this->entity->fields[$name] instanceof UniversalTextField){\n\t\t\tif(!$this->fields[$name]) $this->fields[$name]=array(0,$value);\n\t\t\telse $this->fields[$name][1]=$value;\n\t\t}\n\t\telse if($this->entity->fields[$name] instanceof ReferenceField){\n\t\t\tif(!isset($this->previousReference[$name])) \n\t\t\t\tif(isset($this->fields[$name]) and $this->fields[$name]){\n\t\t\t\t\tif($this->fields[$name] instanceof Persistent)\n\t\t\t\t\t\t$this->previousReference[$name]=$this->fields[$name]->id;\n\t\t\t\t\telse $this->previousReference[$name]=$this->fields[$name];\n\t\t\t\t}\n\t\t\t\telse $this->previousReference[$name]=0;\n\t\t\t$this->fields[$name]=$value;\n\t\t}\n\t\telse $this->fields[$name]=$value;\n\t}", "title": "" }, { "docid": "fcff0cafb5321c9d02f2c992e6564f4f", "score": "0.51768935", "text": "public function setEntityTypeReleaseGroup(): void\n {\n $this->setEntityType(new EntityType(EntityType::RELEASE_GROUP));\n }", "title": "" }, { "docid": "6de9d9b44d51fc9d899df5822e79684b", "score": "0.51578295", "text": "public function setsource(?Entity $value): void {\n $this->getBackingStore()->set('_source', $value);\n }", "title": "" }, { "docid": "361d87eb63f93184ebf5567402cf70c0", "score": "0.51445717", "text": "public function Set($entity, $id, $value)\n\t{\n\t\tif (defined(\"BITRIX_SKIP_STACK_CACHE\") && BITRIX_SKIP_STACK_CACHE)\n\t\t\treturn;\n\n\t\tif (!array_key_exists($entity, $this->cache))\n\t\t\t$this->Load($entity);\n\n\t\t$this->cache[$entity]->Set($id, $value);\n\t}", "title": "" }, { "docid": "b372a2a0209fb064cece256e3992c1bb", "score": "0.5136407", "text": "public function setDefinition(?EntityDefinitionConfig $definition): void\n {\n $this->set(ConfigUtil::DEFINITION, $definition);\n }", "title": "" }, { "docid": "dc7d206e40406c69cec76483189af4d6", "score": "0.5125605", "text": "public function Update($entity) {\n }", "title": "" }, { "docid": "dc7d206e40406c69cec76483189af4d6", "score": "0.5125605", "text": "public function Update($entity) {\n }", "title": "" }, { "docid": "5319249987354516aace7dfdf0cde28f", "score": "0.51253223", "text": "public function updateSetting()\n {\n $this->em->flush();\n }", "title": "" }, { "docid": "aa5ff1ddda29884ffc8be274917207c2", "score": "0.5108759", "text": "public function setSourceEntity(EntityInterface $entity = NULL);", "title": "" }, { "docid": "5005546975ac31b9b71a8916b3d3e591", "score": "0.5103739", "text": "public function setEntity(BaseInterface $entity);", "title": "" }, { "docid": "af2a77191b97aca92afa010ce7db30cf", "score": "0.5102953", "text": "function EntityValueObject(&$entityValue) {\n\t\t$this->entityValue = $entityValue;\n\t}", "title": "" }, { "docid": "c17b20d8a3f83e8ceee081c6178e83aa", "score": "0.5088914", "text": "public function __set($name, $value)\n {\n if (property_exists(get_class($this->entity), $name)) {\n $this->entity->$name = $value;\n }\n\n return $this->entity->__set($name, $value);\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.5087693", "text": "public function update($entity);", "title": "" }, { "docid": "779cc5e671b9b442644643a3bc22cf4b", "score": "0.5086203", "text": "public function setFieldValue($entity, $field, $value)\n {\n $this->reflFields[$field]->setValue($entity, $value);\n }", "title": "" }, { "docid": "779cc5e671b9b442644643a3bc22cf4b", "score": "0.5086203", "text": "public function setFieldValue($entity, $field, $value)\n {\n $this->reflFields[$field]->setValue($entity, $value);\n }", "title": "" }, { "docid": "fd194ce51d24db852cda24bade42113a", "score": "0.50840336", "text": "function setValue($varName, $value='', $uJS) {\n\n $this->varName = $varName;\n $this->value = $value;\n $this->useJS = $uJS;\n \n // run entityConfig method if it exists\n if (method_exists($this, 'entityConfig')) {\n $this->entityConfig();\n }\n \n }", "title": "" }, { "docid": "f7b408bb75893e24653780e68257d796", "score": "0.5071399", "text": "public function setValue($value, $notify = TRUE) {\n // Support passing in the entity object. If it's not yet saved we have\n // to store the whole entity such that it could be saved later on.\n if ($value instanceof EntityInterface && $value->isNew()) {\n $this->newEntity = $value;\n $this->entityType = $value->entityType();\n $value = FALSE;\n }\n elseif ($value instanceof EntityInterface) {\n $this->entityType = $value->entityType();\n $value = $value->id();\n unset($this->newEntity);\n }\n elseif (isset($value) && !(is_scalar($value) && !empty($this->definition['constraints']['EntityType']))) {\n throw new InvalidArgumentException('Value is not a valid entity.');\n }\n // Update the 'id source' property, if given.\n if (!empty($this->definition['settings']['id source'])) {\n $this->parent->__set($this->definition['settings']['id source'], $value, $notify);\n }\n else {\n // Notify the parent of any changes to be made.\n if ($notify && isset($this->parent)) {\n $this->parent->onChange($this->name);\n }\n $this->id = $value;\n }\n }", "title": "" }, { "docid": "6714a93f4e4ce6fbbce11d7743420b5d", "score": "0.5055845", "text": "public function setEntityId($entityId);", "title": "" }, { "docid": "3781b9688fce9075596fcfed065adc84", "score": "0.5052752", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Ttmovc Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "c4688d1ebab90cf1c42004481e88fcbd", "score": "0.5048147", "text": "public function update(Entity $entity) {\n \tparent::update($entity);\n \t$unidadFacultadDAO = DAOFactory::getUnidadFacultadDAO();\n $unidadFacultadDAO->deleteUnidadFacultadPorUnidad($entity->getOid());\n \n //facultades\n\t\t$facultades = $entity->getFacultades();\n\t\tforeach ($facultades as $unidadFacultad) {\n\t\t\t$unidadFacultad->setUnidad( $entity );\n\t\t\t\n\t\t\t$managerUnidadFacultad = ManagerFactory::getUnidadFacultadManager();\n\t\t\t$managerUnidadFacultad->add($unidadFacultad);\n\t\t\t\n\t\t}\n \n }", "title": "" }, { "docid": "c62a0fbb4420bbd0bdd261cae0f60cd8", "score": "0.50373507", "text": "private function setCurrency(object $entity): void\n {\n $entityCurrency = $this->propertyAccessor->getValue($entity, $this->currencyFieldName);\n if (null === $entityCurrency) {\n $currency = $this->getCurrency();\n if (null !== $currency) {\n $this->propertyAccessor->setValue($entity, $this->currencyFieldName, $currency);\n }\n }\n }", "title": "" }, { "docid": "e457e134d467926ed272b1c467722d9f", "score": "0.50246114", "text": "public function setField($entity, $fieldName, $fieldValue, array $options = array())\n {\n $setterName = $this->fieldToSetterMethod($fieldName);\n\n if ($this->isForeignKey($fieldName, $options)) {\n $entity->$setterName($this->getReference($fieldValue));\n } else {\n $entity->$setterName($this->processValue($fieldName, $fieldValue, $options));\n }\n\n $this->entity = $entity;\n }", "title": "" }, { "docid": "9b0110a1e993a7e9ebb9d32b19bdd488", "score": "0.50230426", "text": "public function updateEntity($entity)\n {\n if (method_exists($entity, 'setFechaModificacion')) {\n $entity->setFechaModificacion(new \\DateTime());\n }\n\n parent::updateEntity($entity);\n }", "title": "" }, { "docid": "6a24969a5d4f33de88ba85b278e803dd", "score": "0.50173223", "text": "function set_semantic_uri( $value ){\n $this->set_mapped_property('semantic_uri', $value);\n }", "title": "" }, { "docid": "6e09ea9e32d2919646218bd293974c57", "score": "0.50110453", "text": "public function __set($name, $value) {\n\t\t$name = Model::$inflector->underscore($name);\n\t\t$this->canAccess($name);\n\t\t$field = $this->entity->fields[$name];\n\t\t$value = $field->column->autobox($value);\n\t\tif($value === null && $field->column->notNull)\n\t\t\tthrow new E\\Type\\NotNullValueExpectedException('A not null field cannot be set to null.');\n\t\tif($value === $field->value)\n\t\t\treturn;\n\t\t$updateIdentifiers = false;\n\t\tforeach($this->table->uniqueConstraints as $constraint) {\n\t\t\tif(false !== $index = array_search($field->column, $constraint->columns)) {\n\t\t\t\t$updateIdentifiers = true;\n\t\t\t\t$values = $this->entity->getValues($constraint->columns);\n\t\t\t\t$values[$index] = $value;\n\t\t\t\tif(!in_array(null, $values, true) && $this->table->exists($values, $constraint))\n\t\t\t\t\tthrow new E\\EntityCollisionException('Your changes collide with the unique values of an existing entity.');\n\t\t\t}\n\t\t}\n\t\t$field->modelValue = $value;\n\t\tif($updateIdentifiers)\n\t\t\t$this->table->updateIdentifiers($this->entity);\n\t}", "title": "" }, { "docid": "63e1b3bba5e2cc999e853fe09992d05a", "score": "0.4989731", "text": "protected function setNamespace(NodeValue $value)\n {\n $namespace = $this->directiveArgValue(\n $this->nodeDirective($value->getNode(), $this->name()),\n 'namespace'\n );\n\n if ($namespace) {\n $value->setNamespace($namespace);\n }\n }", "title": "" }, { "docid": "9f1eae5eb63e13d111c8197baba302ee", "score": "0.49893624", "text": "public function setCustomer(ElggEntity $customer);", "title": "" }, { "docid": "81ee5be07459b25b26c7a5d53d75ee9d", "score": "0.4984118", "text": "public function save(&$entity) {\n parent::save($entity);\n //dpm($entity,'saved');\n }", "title": "" }, { "docid": "524e89901f615b75037021a2224b95ea", "score": "0.4977434", "text": "protected function resetEntityType() {\n $updated_entity_type = $this->getUpdatedEntityTypeDefinition(FALSE, FALSE);\n $updated_field_storage_definitions = $this->getUpdatedFieldStorageDefinitions(FALSE, FALSE);\n $this->entityDefinitionUpdateManager->updateFieldableEntityType($updated_entity_type, $updated_field_storage_definitions);\n }", "title": "" }, { "docid": "61e2ef04839010f1754ac8be054a0d5a", "score": "0.4969058", "text": "public function setParentEntity(?object $parentEntity): void\n {\n $this->parentEntity = $parentEntity;\n }", "title": "" }, { "docid": "b16f42444bdb1e67f115ef51efab3b64", "score": "0.49652103", "text": "protected function setRelations(&$entity)\n {\n }", "title": "" }, { "docid": "bfe498be42efea97f2b25b96360652e1", "score": "0.4955606", "text": "function update($entity)\n {\n }", "title": "" }, { "docid": "90f9650655c1780b604e029e78efb8d0", "score": "0.49358088", "text": "public function __set($name, $value)\n\t{\n\t\t$method = 'set' . $name;\n\t\tif (!method_exists($this, $method)) \n\t{\n\t\tthrow new \\Exception('Class Entity: Tvsend Invalid specified property: set'.$name);\n\t}\n\t$this->$method($value);\n\t}", "title": "" }, { "docid": "ff8f9b2358999e5fae98f7c185ce6c29", "score": "0.48996627", "text": "public function setBundleID(?string $value): void {\n $this->getBackingStore()->set('bundleID', $value);\n }", "title": "" }, { "docid": "395328ba82aab2ad0fab89384c8240e4", "score": "0.48983797", "text": "public function setMainUrl($entity);", "title": "" } ]
87a2acd16b993b119ba213e35bd59728
This function is used to get the activity details through ajax to show in the activity modal popup form
[ { "docid": "b738e0a37ffe9112a43668b28bbd843c", "score": "0.6909772", "text": "public function get_activity_details()\n\t\t{\n\t\t\t$data = array();\n\t\t\tif($this->input->post('id'))\n\t\t\t{\n\t\t\t\t$data = $this->admin_model->commonGetData(\"*\" , 'fixed_day_activity_details_id = '.$this->input->post('id') , TABLE_FIXED_DAY_ACTIVITY_DETAILS , 1);\n\t\t\t\t$data['managed_by'] = $this->admin_model->commonGetData(\"managed_by_name\" , 'fixed_day_activity_details_id = '.$this->input->post('id').' AND type = 1' , TABLE_FIXED_DAY_MANAGED_BY , 2);\n\t\t\t\t$data['managed_by_text'] = $this->admin_model->commonGetData(\"managed_by_name\" , 'fixed_day_activity_details_id = '.$this->input->post('id').' AND type = 2' , TABLE_FIXED_DAY_MANAGED_BY , 2);\n\t\t\t}\n\t\t\techo json_encode($data);\n\t\t}", "title": "" } ]
[ { "docid": "c410815e2b457c70eaa795d96e7942ad", "score": "0.6932136", "text": "public function getActivityDetails() {\n $incomingData = $this->readHttpRequest();\n $id = json_decode($incomingData);\n\n $activityDet = $this->ActivityFaculty_model->getActivityDetails($id);\n\n echo json_encode($activityDet);\n }", "title": "" }, { "docid": "70799eb6c6b8c818a1a62c837faa5204", "score": "0.68418866", "text": "public function getActivityDetails() {\n $incomingData = $this->readHttpRequest();\n $id = json_decode($incomingData);\n\n $activityDet = $this->ActivityStudent_model->getActivityDetails($id);\n\n echo json_encode($activityDet);\n }", "title": "" }, { "docid": "cb778a5e05cec57d334d8fc8637a0ca3", "score": "0.6782758", "text": "public function getActivityDetails() {\n\t\t$json = array();\n\t\t$list = $this->act_details->getEmpData();\n\t\t$data = array();\n\t\tforeach ($list as $element) {\n $row = array();\n $row[] = $element['pid'];\n\t\t\t$row[] = $element['fullname'];\n\t\t\t$row[] = $element['gender'];\n\t\t\t$row[] = $element['cadre'];\n\t\t\t$row[] = $element['district'];\n $row[] = $element['mobile'];\n //$row[] = '<input type=\"checkbox\" class=\"data-check\" value=\"' . $element['pid'] . '\">';\n\t\t\t//$row[] = '<a class=\"btn btn-sm btn-primary\" href=\"javascript:void(0)\" title=\"Delete\" onclick=\"delete_from_activity(' . \"'\" . $element['pid'] . \"'\" . ')\"><i class=\"glyphicon glyphicon-pencil\"></i> Delete</a>';\n\t\t\t\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t$json['data'] = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->act_details->pcountAll(),\n\t\t\t\"recordsFiltered\" => $this->act_details->pcountFiltered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\t\t//output to json format\n\t\t//log_message('debug', print_r($json['data'], TRUE));\n\t\t$this->output->set_header('Content-Type: application/json');\n\t\techo json_encode($json['data']);\n\t}", "title": "" }, { "docid": "e2b72ddb969a0e20022a3d6b84393899", "score": "0.62761736", "text": "public function getActivity() {\n $data = $this->readHttpRequest();\n $data = json_decode($data);\n\n $stuActivityList = $this->ActivityStudent_model->getActivity($data);\n \n echo json_encode($stuActivityList);\n }", "title": "" }, { "docid": "bbfba9c312b87d21ba39eaf34a433c1c", "score": "0.6243488", "text": "public function getAttendActivityDetails($id) {\n\t\t$json = array();\n\t\t$this->act_details->setSiteID($id);\n\t\t$list = $this->act_details->getAttendEmpData();\n\t\t$data = array();\n\t\tforeach ($list as $element) {\n $row = array();\n $row[] = $element['pid'];\n\t\t\t$row[] = $element['fullname'];\n\t\t\t$row[] = $element['gender'];\n\t\t\t$row[] = $element['cadre'];\n\t\t\t$row[] = $element['district'];\n $row[] = $element['mobile'];\n //$row[] = '<input type=\"checkbox\" class=\"data-check\" value=\"' . $element['pid'] . '\">';\n\t\t\t//$row[] = '<a class=\"btn btn-sm btn-primary\" href=\"javascript:void(0)\" title=\"Delete\" onclick=\"delete_from_activity(' . \"'\" . $element['pid'] . \"'\" . ')\"><i class=\"glyphicon glyphicon-pencil\"></i> Delete</a>';\n\t\t\t\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t$json['data'] = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->act_details->acountAll(),\n\t\t\t\"recordsFiltered\" => $this->act_details->acountFiltered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\t\t//output to json format\n\t\t//log_message('debug', print_r($json['data'], TRUE));\n\t\t$this->output->set_header('Content-Type: application/json');\n\t\techo json_encode($json['data']);\n }", "title": "" }, { "docid": "dde9069cf0c886d7c24a433cb577e250", "score": "0.6043093", "text": "function activity_get()\n {\n $options = $this->get();\n\n if (!$this->options->has_keys($options, array('id')))\n {\n $this->response('No id provided', 400);\n }\n\n $activity = $this->activities_model->get_activity($options['id']);\n\n $this->response($activity);\n }", "title": "" }, { "docid": "f9e47492841ca701238bfab03431b2af", "score": "0.5936494", "text": "public function cnocGetActivityAssignHist() {// Connection data (server_address, database, name, poassword)\r\n if ($_POST['action'] != 'CNOC_getActivityAssignHist' OR !isset($_SESSION['user']['email'])) {\r\n return false; //\"Invalid action supplied for retrive Activity assign History Data.\";\r\n }\r\n if (isset($_POST['Activityid'])) {\r\n $Activityid = htmlentities($_POST['Activityid'], ENT_QUOTES);\r\n\r\n $sql = \"SELECT `user` ,`assign_time`FROM `cnoc_activity_assignhistory` WHERE `activity_id`=:activityid order by assign_time desc \";\r\n $html = \"\";\r\n $result = array();\r\n try {\r\n $result = $this->query($sql, array('activityid' => $Activityid), PDO::FETCH_OBJ);\r\n } catch (PDOException $e) {\r\n\r\n return($e->getMessage());\r\n }\r\n return json_encode($result);\r\n }\r\n }", "title": "" }, { "docid": "88faff60970f85a22a17933427ff7b8f", "score": "0.5934821", "text": "public function filterActivity() {\n $incomingData = $this->readHttpRequest();\n $formData = json_decode($incomingData);\n\n $activityList = $this->ActivityFaculty_model->filterActivity($formData);\n \n echo json_encode($activityList);\n }", "title": "" }, { "docid": "5702d1c3c37796f9724ead29e12494b5", "score": "0.5914079", "text": "function book_activity () { \n\t\n\t\tglobal $fs_schema;\n\t\t\n\t\t$username \t\t= isset( $_POST[ 'username' ] )? $_POST[ 'username' ] \t\t: '';\n\t\t\n\t\t$password \t\t= isset( $_POST[ 'password' ] )? $_POST[ 'password' ] \t\t: '';\n\t\t\n\t\t$activity_id \t\t= isset( $_POST[ 'activityid' ] )? $_POST[ 'activityid' ] \t: '';\n\t\t\n\t\t$session_key \t\t= isset( $_POST[ 'session_key' ] )\t? $_POST[ 'session_key' ] : '';\n\t\t\n\t\techo json_encode( $fs_schema->public->book_activity ( $username, $password, $activity_id, $session_key ));\n\t\t\n\t\tdie();\n\t}", "title": "" }, { "docid": "e2dd4c2ac945210162fb81f09c0c359c", "score": "0.5894188", "text": "public function copy_activity_details()\n\t\t{\n\t\t\t$data = array();\n\t\t\tif($this->input->post('id'))\n\t\t\t{\n\t\t\t\t$result = $this->admin_model->commonGetData(\"program_name , location , activity\" , 'fixed_day_activity_details_id = '.$this->input->post('id') , TABLE_FIXED_DAY_ACTIVITY_DETAILS , 1);\n\t\t\t\t$managedByResult = $this->admin_model->commonGetData('managed_by_name , type' , 'fixed_day_activity_details_id = '.$this->input->post('id') , TABLE_FIXED_DAY_MANAGED_BY , 2);\n\t\t\t\t$insertData = array(\n\t\t\t\t\t'program_name' => $result['program_name'],\n\t\t\t\t\t'location' => $result['location'],\n\t\t\t\t\t'activity' => $result['activity'],\n\t\t\t\t\t'from_time' => $this->input->post('from_time'),\n\t\t\t\t\t'to_time' => $this->input->post('to_time'),\n\t\t\t\t\t'fixed_day_activity_id' => $this->input->post('fixed_day_activity_id')\n\t\t\t\t);\n\t\t\t\t$detailsId = $this->admin_model->commonAdd(TABLE_FIXED_DAY_ACTIVITY_DETAILS , $insertData);\n\t\t\t\tif(!empty($managedByResult))\n\t\t\t\t{\n\t\t\t\t\tforeach($managedByResult as $value)\n\t\t\t\t\t{\n\t\t\t\t\t\t$value['fixed_day_activity_details_id'] = $detailsId;\n\t\t\t\t\t\t$this->admin_model->commonAdd(TABLE_FIXED_DAY_MANAGED_BY , $value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$data['id'] = $detailsId;\n\t\t\t\t$data['name'] = $result['activity'];\n\t\t\t}\n\t\t\techo json_encode($data);\n\t\t}", "title": "" }, { "docid": "243bbb097d617417bba7b3bcf30bb0f0", "score": "0.58926713", "text": "public function index() {\n $activityData = $this->readHttpRequest();\n $formData = json_decode($activityData);\n\n $activityList = $this->ActivityFaculty_model->getActivityList($formData);\n \n echo json_encode($activityList);\n }", "title": "" }, { "docid": "6072f682b6cf3799a3d5ee55d4a22d79", "score": "0.58177835", "text": "public function activities_load_activities() {\n\n // Check if data was submitted\n if ( $this->CI->input->post() ) {\n\n // Add form validation\n $this->CI->form_validation->set_rules('member_id', 'Member ID', 'trim');\n $this->CI->form_validation->set_rules('type', 'Type', 'trim');\n $this->CI->form_validation->set_rules('order', 'Order', 'trim');\n $this->CI->form_validation->set_rules('page', 'Page', 'trim');\n\n // Get data\n $member_id = $this->CI->input->post('member_id', TRUE);\n $type = $this->CI->input->post('type', TRUE);\n $order = $this->CI->input->post('order', TRUE);\n $page = $this->CI->input->post('page', TRUE);\n\n // Check form validation\n if ($this->CI->form_validation->run() !== false) {\n \n // Verify if page is not false\n if ( !is_numeric($page) ) {\n $page = 1;\n }\n \n // Set limit\n $limit = 10;\n \n // Decrease page\n $page--;\n\n // Where parameters\n $where = array(\n 'user_id' => $this->CI->user_id\n );\n\n // Verify if type exists\n if ( $type ) {\n\n // Set type\n $where['template'] = $type;\n\n }\n\n // Verify if member's ID exists\n if ( is_numeric($member_id) ) {\n\n // Set member's ID\n $where['member_id'] = $member_id;\n\n }\n\n // Default order\n $order_params = array('activity_id', 'desc');\n\n // Verify if $order is 1\n if ( $order ) {\n\n // Set new order\n $order = array('template', 'asc');\n\n }\n\n // Get all activities\n $get_activities = $this->CI->base_model->get_data_where(\n 'activities',\n '*',\n $where,\n array(),\n array(),\n array(),\n array(\n 'order' => $order_params,\n 'start' => ($page * $limit),\n 'limit' => $limit\n )\n );\n \n // Verify if activities exists\n if ( $get_activities ) {\n \n // All activities array\n $all_activities = array();\n\n // List all activities\n foreach ( $get_activities as $get_activity ) {\n \n // Verify if the app exists\n if ( file_exists( MIDRUB_BASE_USER . 'apps/collection/' . $get_activity['app'] . '/activities/' . $get_activity['template'] . '.php' ) ) {\n \n try {\n\n // Create an array\n $array = array(\n 'MidrubBase',\n 'User',\n 'Apps',\n 'Collection',\n ucfirst($get_activity['app']),\n 'activities',\n ucfirst($get_activity['template'])\n ); \n \n // Implode the array above\n $cl = implode('\\\\',$array);\n \n // Instantiate the class\n $response = (new $cl())->template( $get_activity['user_id'], $get_activity['member_id'], $get_activity['id'], $get_activity['activity_id'] );\n \n $response['time'] = $get_activity['created'];\n \n $all_activities[] = $response;\n \n } catch (Exception $ex) {\n \n continue;\n \n }\n\n } else {\n\n continue;\n\n }\n \n }\n\n // Verify if activities exists\n if ( $all_activities ) {\n\n // Get total activities\n $get_total = $this->CI->base_model->get_data_where(\n 'activities',\n 'COUNT(activity_id) AS total',\n $where\n );\n\n // Prepare the success response\n $data = array(\n 'success' => TRUE,\n 'activities' => $all_activities,\n 'date' => time(),\n 'total' => $get_total[0]['total'],\n 'page' => $page\n );\n\n // Display the success response\n echo json_encode($data);\n exit();\n\n }\n \n }\n\n }\n\n }\n\n // Prepare the error response\n $data = array(\n 'success' => FALSE,\n 'message' => $this->CI->lang->line('no_activities_found')\n );\n\n // Display the error response\n echo json_encode($data); \n\n }", "title": "" }, { "docid": "feabe338e51d562264aafddf10afb92e", "score": "0.57973903", "text": "public function activityDetails($activity_id) {\n\t\treturn $this->request(sprintf(self::METHOD_URL_ACTIVITY_DETAILS, $activity_id));\n\t}", "title": "" }, { "docid": "401126ab7798500a81d2ebd851008ad7", "score": "0.57910365", "text": "public function new_activity()\n\t{\n\t\t// Check if we are allowed to be here\n\t\t$this->shared->check_auth('admin');\n\t\t\n\t\t// Starters\n\t\t$data['page'] = 'New Activity &lsaquo; Activities';\n\t\t$data['section'] = 'event';\n\t\t$data['success'] = false;\n\t\t\n\t\t// Get logged in user.\n\t\t$data['user'] = $this->ion_auth->user()->row();\n\t\t//$data['unit'] = $this->shared->get_user_unit($data['user']->id, true);\t\n\t\t\n\t\t// Verify activity details.\n\t\t$this->form_validation->set_rules('activity[title]', 'name', 'required');\n\t\t$this->form_validation->set_rules('activity[description]', 'description', 'required');\n\t\t$this->form_validation->set_rules('activity[eventtype]', 'event type', 'required');\n\t\t$this->form_validation->set_rules('activity[category]', 'category', 'required');\n\t\t$this->form_validation->set_rules('activity[age]', 'minimum age');\n\t\t$this->form_validation->set_rules('activity[long]', 'long description');\n\t\t$this->form_validation->set_rules('activity[short]', 'short description');\n\t\t// add all here\t\t\t\n\t\t\n\t\tif ($this->form_validation->run() === TRUE) {\n\t\t\t// Lets update the activity\n\t\t\t$result = $this->activities_model->create_activity();\n\t\t\t$data['success'] = true;\n\t\t}\n\n\t\t// Form failed or wasn't run\n\t\t$data['message'] = (validation_errors()) ? validation_errors() : null;\n\t\t$data['message'] = (is_null($data['message'])) ? $this->session->flashdata('message'): $data['message'];\n\t\tif ($data['success']) $data['message'] = '<i class=\"icon-ok teal\"></i> Success! Your activity is ready for action. '.anchor(\"event/activities/\".$result, 'View &rarr;', 'class=\"btn btn-small teal right\"').' '.anchor(\"event/activities\", 'All Activities &rarr;', 'class=\"btn btn-small tan right\"');\n\t\t$this->load->view('templates/header_admin', $data);\n\t\t$this->load->view('admin/event/newactivity', $data);\t\n\t\t$this->load->view('templates/footer', $data);\n\n\t}", "title": "" }, { "docid": "7d388512564a5c451b09ec1fe2e9d956", "score": "0.57782847", "text": "function activities_ajax_submit_handler()\n{\n\theader('Content-Type: text/xml; charset='.get_charset());\n\theader(\"Cache-Control: no-cache, must-revalidate\"); // HTTP/1.1\n\theader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); // Date in the past\n\n\t$response ='<'.'?xml version=\"1.0\" encoding=\"'.get_charset().'\" ?'.'>';\n\t$response.='<response><content>';\n\n\t$map=array();\n\n\t$guest_id=intval($GLOBALS['FORUM_DRIVER']->get_guest_id());\n\n\tif (!is_guest(get_member()))\n\t{\n\t\t$map['STATUS']=trim(either_param('status',''));\n\n\t\tif ((post_param('zone','')!='') && ($map['STATUS']!='') && ($map['STATUS']!=do_lang('activities:TYPE_HERE')))\n\t\t{\n\t\t\tcomcode_to_tempcode($map['STATUS'],$guest_id,false,NULL);\n\n\t\t\t$map['PRIVACY']=either_param('privacy','private');\n\n\t\t\tif (strlen(strip_tags($map['STATUS']))<strlen($map['STATUS']))\n\t\t\t{\n\t\t\t\t$cc_guide=build_url(array('page'=>'userguide_comcode'),'site');\n\t\t\t\t$response.='<success>0</success><feedback><![CDATA[No HTML allowed. See <a href=\"'.$cc_guide->evaluate().'\">Comcode Help</a> for info on the alternative.]]></feedback>';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (strlen($map['STATUS'])>255)\n\t\t\t\t{\n\t\t\t\t\t$response.='<success>0</success><feedback>Message is '.strval(strlen($map['STATUS'])-255).' characters too long</feedback>';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$stored_id=activities_addon_syndicate_described_activity('RAW_DUMP',\n\t\t\t\t\t\t\t\t\t\t\t\t\t$map['STATUS'],\n\t\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'',\n\t\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'',\n\t\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'',\n\t\t\t\t\t\t\t\t\t\t\t\t\t($map['PRIVACY']=='public')?1:0\n\t\t\t\t\t);\n\n\t\t\t\t\tif ($stored_id>0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$response.='<success>1</success><feedback>Message received.</feedback>';\n\t\t\t\t\t}\n\t\t\t\t\telseif ($stored_id==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$response.='<success>0</success><feedback>Message already received.</feedback>';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t\t$response.='<success>0</success><feedback>'.do_lang('LOGIN_EXPIRED_POST').'</feedback>';\n\n\t$response.='</content></response>';\n\n\techo $response;\n}", "title": "" }, { "docid": "e9652763be7ec84b9e69ac1700235986", "score": "0.57557946", "text": "function visaDetailsAjax() {\n if($this->pageHandler(\"immigration\", \"visas\") === true) {\n \n $this->crud = $this->_acl->getCrudAccess($this->_currentUser);\n \n $button = new library_decorators_button();\n $button->isDisabled = $this->crud->update;\n $button->addClass(array(\"edit\", \"edit-visa-details\"));\n $button->text = \"Edit\";\n $button->tooltip = array(\n \"title\"=>\"Update this visa details\",\n \"place\"=>\"top\"\n );\n $button->icon = \"pencil\";\n \n $this->view->model = new model_visa($this->_request->id);\n $this->view->user = $this->_currentUser;\n \n $this->view->setView(array(\n \"page\"=>\"immigration/visaDetails\",\n \"template\"=>\"empty\",\n \"header\"=>false\n ));\n $this->_request->addHTML($this->view->getView());\n $this->_request->addResponseItems(array(\n \"buttons\"=>array(\n $button->getElement()\n )\n ));\n echo $this->_request->response();\n }\n }", "title": "" }, { "docid": "a7c2f5f28ec894478747da76ab71b860", "score": "0.5752072", "text": "public function getActivityBySearchAjax($arr)\n\t{\n\t\t $sqlActsFromCalender=\"SELECT distinct(cal.sub_activity_type_id),act.activity_id,opd.id,sad.currency_code FROM \".parent::SUFFIX.\"calender cal \n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"sub_activity_type sat on cal.sub_activity_type_id = sat.id\n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"sub_activity_detail sad on cal.sub_activity_id = sad.sub_activity_id\n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"booker_activities act on sad.activity_id = act.activity_id\n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"country cnt on act.country_id = cnt.country_id\n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"city City on act.city_id=City.city_id\n\t\t\t\t\t\t inner join \".parent::SUFFIX.\"other_price_details opd on cal.other_price=opd.id\n\t\t\t\t\t\t where 1 \".$arr['where_cond'].\" and cal.cal_date>=curdate() and opd.price_type_name='Adult Price' and act.active='yes' and cal.is_price='yes' group by act.activity_id \";\n\t\t$this->result=$this->query($sqlActsFromCalender);\n\t\t$arrActivities=array();\n\t\twhile($this->getRow())\n\t\t{\n\t\t\t\t$arrActivities[]=array($this->getField(\"sub_activity_type_id\"),$this->getField(\"activity_id\"),$this->getField(\"id\"),$this->getField(\"currency_code\"));\n\t\t}\n\t\t/*echo \"<pre>\";\n\t\tprint_r($arrActivities);\n\t\techo \"</pre>\";*/\n\t\t$arrReturnInfo=array();\n\t\t// ok now you get all the sub activities from calender. Now fetch the lastest price info and other related information for this sub activity\n\t\t\n\t\tforeach($arrActivities as $key=>$theSubActivity)\n\t\t{\n\t\t\t$activity_id=$theSubActivity[1];\n\t\t\t$subTypeInfo=array();\n\t\t\t$subTypeInfo=$this->getSubTypeId($activity_id);\t\n\t\t\t$arrReturnInfo[]=$this->getActivityDetailsBySearch($subTypeInfo[0],$theSubActivity[1],$subTypeInfo[2],$theSubActivity[3],$subTypeInfo[1]);\n\t\t}\n\t\t\n\t\t/*foreach($arrActivities as $theSubActivity)\n\t\t{\n\t\t\t$arrReturnInfo[]=$this->getActivityDetailsBySearch($theSubActivity[0],$theSubActivity[1],$theSubActivity[2],$theSubActivity[3]);\n\t\t}*/\n\t\t\n\t/*\techo \"<br>\";\n\t\t\techo \"<pre>\";\n\t\tprint_r($arrReturnInfo);\n\t\t\techo \"</pre>\";*/\n\t\treturn $arrReturnInfo;\n\t}", "title": "" }, { "docid": "3fe5f3bf423d5091cc373ac79af3ad9f", "score": "0.56921476", "text": "public function ModalAdditionalInfo(){\n\t\t\t$this->load->view('CustomerRelationship/Additional/AjaxModal/Modal/ModalAdditionalInfo');\n\t\t}", "title": "" }, { "docid": "7c16ec3ea0a89e023c83b05528257f5a", "score": "0.56140906", "text": "public function getMedicalVisitModal(Request $request, $id){\n // ------ MODAL: MEDICAL HISTORY DATA FOR EACH MEDICAL VISIT ------ //\n // initialize\n $med_visit_doctor = '';\n $med_visit_date = '';\n $med_visit_location = '';\n $med_visit_incident_type = '';\n $med_visit_chronic_conditions = '';\n $med_visit_height = '';\n $med_visit_weight = '';\n $med_visit_temperature = '';\n $med_visit_blood_pressure_systolic = '';\n $med_visit_blood_pressure_diastolic = '';\n $med_visit_skull_perimeter = '';\n $med_visit_exam_results = '';\n $med_visit_lab_results = '';\n $med_visit_diagnosis_results = '';\n $med_visit_medication = '';\n $med_visit_hospitalizations = '';\n $med_visit_referrals = '';\n $med_visit_uploads = '';\n // TODO CREATE A SERVICE THAT RETURNS A JSON WITH ALL INFO FOR EVERY VISIT\n $current_benefiter_medical_visit_id = $request['current_medical_visit'];\n $benefiter_medical_visits_list = $this->medicalVisit->findMedicalVisitsForBenefiter($id);\n $benefiter_folder_number = $this->medicalVisit->find_benefiter_folder_number($id);\n $benefiter = $this->basicInfoService->findExistentBenefiter($id);\n $ExamResultsLookup = $this->medicalVisit->get_medical_examination_results_from_lookup();\n // for every medical visit of the benefiter fetch the corresponding medical data from DB\n foreach($benefiter_medical_visits_list as $med_visit) {\n if ($med_visit['id'] == $current_benefiter_medical_visit_id) {\n //Doctor Name\n $med_visit_doctor = $med_visit['doctor']['name'] . ' ' . $med_visit['doctor']['lastname'];\n // Examination date\n if ($med_visit['medical_visit_date'] == null) {\n $med_visit_date = $this->datesHelper->getFinelyFormattedStringDateFromDBDate($med_visit['created_at']);\n } else {\n $med_visit_date = $this->datesHelper->getFinelyFormattedStringDateFromDBDate($med_visit['medical_visit_date']);\n }\n // Visit location\n $med_visit_location = $med_visit['medicalLocation']['description'];\n // Visit incident type\n $med_visit_incident_type = $med_visit['medicalIncidentType']['description'];\n // Chronic Conditions\n $med_visit_chronic_conditions = $this->medicalVisit->findMedicalChronicConditionsForBenefiter($id, $med_visit['id']);\n // physical examinations\n $med_visit_examination = $this->medicalVisit->findMedicalVisitExamination($med_visit['id']);\n // height\n $med_visit_height = $med_visit_examination['height'];\n // weight\n $med_visit_weight = $med_visit_examination['weight'];\n // temperature\n $med_visit_temperature = $med_visit_examination['temperature'];\n // blood pressure\n $med_visit_blood_pressure_systolic = $med_visit_examination['blood_pressure_systolic'];\n $med_visit_blood_pressure_diastolic = $med_visit_examination['blood_pressure_diastolic'];\n // skull_perimeter\n $med_visit_skull_perimeter = $med_visit_examination['skull_perimeter'];\n // Examination results\n $med_visit_exam_results = $this->medicalVisit->findMedicalVisitExaminationResults($med_visit['id']);\n // Lab results\n $med_visit_lab_results = $this->medicalVisit->findMedicalVisitLabResults($med_visit['id']);\n // Diagnosis results\n $med_visit_diagnosis_results = $this->medicalVisit->findMedicalVisitDiagnosisResults($med_visit['id']);\n // Medication\n $med_visit_medication = $this->medicalVisit->findMedicalVisitMedication($med_visit['id']);\n // Hospitalizations\n $med_visit_hospitalizations = $this->medicalVisit->findMedicalVisitHospitalizations($med_visit['id']);\n // Referrals\n $med_visit_referrals = $this->medicalVisit->findMedicalVisitReferrals($med_visit['id']);\n // Uploads\n $med_visit_uploads = $this->medicalVisit->findMedicalVisitUploads($med_visit['id']);\n }\n }\n // ------ END MODAL: MEDICAL HISTORY DATA FOR EACH MEDICAL VISIT ------ //\n return view('partials.modals.medical_visit_info')\n ->with('benefiter_medical_visits_list', $benefiter_medical_visits_list)\n ->with('med_visit_doctor', $med_visit_doctor)\n ->with('med_visit_location', $med_visit_location)\n ->with('med_visit_incident_type', $med_visit_incident_type)\n ->with('med_visit_chronic_conditions', $med_visit_chronic_conditions)\n ->with('med_visit_height', $med_visit_height)\n ->with('med_visit_weight', $med_visit_weight)\n ->with('med_visit_temperature', $med_visit_temperature)\n ->with('med_visit_blood_pressure_systolic', $med_visit_blood_pressure_systolic)\n ->with('med_visit_blood_pressure_diastolic', $med_visit_blood_pressure_diastolic)\n ->with('med_visit_skull_perimeter', $med_visit_skull_perimeter)\n ->with('med_visit_exam_results', $med_visit_exam_results)\n ->with('med_visit_lab_results', $med_visit_lab_results)\n ->with('med_visit_diagnosis_results', $med_visit_diagnosis_results)\n ->with('med_visit_medication', $med_visit_medication)\n ->with('med_visit_hospitalizations', $med_visit_hospitalizations)\n ->with('med_visit_referrals', $med_visit_referrals)\n ->with('med_visit_uploads', $med_visit_uploads)\n ->with('benefiter_folder_number', $benefiter_folder_number)\n ->with('benefiter', $benefiter)\n ->with('ExamResultsLookup', $ExamResultsLookup)\n ->with('med_visit_date', $med_visit_date);\n }", "title": "" }, { "docid": "5a451cdbd2e40a5cfed16dbe4dccdb19", "score": "0.55948627", "text": "public function popupModel()\n { \n echo $this->api->fetchAdditionalData();\n }", "title": "" }, { "docid": "c2a2ca32cf9c59546ab0c14d2cf15537", "score": "0.55675787", "text": "public function createActivity() {\n $incomingData = $this->readHttpRequest();\n $formData = json_decode($incomingData);\n\n $createResult = $this->ActivityFaculty_model->createActivity($formData);\n\n if($createResult == true) {\n $data['status'] = 'ok';\n } else {\n $data['status'] = 'fail';\n }\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "e6899917abb110af85a8c0a7d3c57492", "score": "0.555944", "text": "function getActivitiesList()\n\t\t{\n\t\t\tglobal $CFG,$objSmarty;\n\t\t\t$sqlsel = \"SELECT id,user_id,activity,addeddate FROM \".$CFG['table']['recentactivity'].\"\";\n\t\t\t$sqlres = $this->ExecuteQuery($sqlsel,'select');\t\t\t\n\t\t\t$objSmarty->assign(\"activities\", $sqlres);\n\t\t}", "title": "" }, { "docid": "a6f180cd4f16b18cd1bf2b226cd27ff3", "score": "0.5547935", "text": "public function ajax_get_content() {\n\n\t\tif ( ! function_exists( 'jet_engine' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_filter( 'jet-engine/listing/grid/posts-query-args', array( $this, 'add_query_args' ), 10, 2 );\n\n\t\tadd_filter( 'jet-smart-filters/render/ajax/data', array( $this, 'add_new_markers_to_response' ) );\n\n\t}", "title": "" }, { "docid": "f67b50f3ed17cbd5281c31a48572f8ed", "score": "0.5526539", "text": "public function ajax()\n {\n \n $attendance = $this->query();\n return Datatables::of($attendance)\n ->addColumn('action', 'path.to.action.view')\n ->addColumn('action', function ($patient) {\n return \"<a href=\\\"show_history/$patient->id/id\\\" class=\\\"\\\"><i title='Click to view history' style='' class=\\\"sm-icon material-icons\\\">pageview</i></a>\";\n })\n ->make(true);\n }", "title": "" }, { "docid": "77adf08f3922a62c73a176e05460a2e3", "score": "0.55227935", "text": "public function getActivityDetails($id) {\n\t\t$json = array();\n\t\t$this->person_details->setPersonID($id);\n\t\t$list = $this->person_details->getActivityData();\n\t\t$data = array();\n\t\tforeach ($list as $element) {\n $row = array();\n $row[] = $element['activity_id'];\n\t\t\t$row[] = $element['location'];\n\t\t\t$row[] = $element['region'];\n\t\t\t$row[] = $element['starts'];\n\t\t\t$row[] = $element['ends'];\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t$json['data'] = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->person_details->countAll(),\n\t\t\t\"recordsFiltered\" => $this->person_details->countFiltered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\t\t//output to json format\n\t\t//log_message('debug', print_r($json['data'], TRUE));\n\t\t$this->output->set_header('Content-Type: application/json');\n\t\techo json_encode($json['data']);\n }", "title": "" }, { "docid": "a24b6d57c440d52416b6fa1de6fe203f", "score": "0.55012053", "text": "public function show()\n\t{\n\t\t$tus = new Service();\n\n\t\t$activityId = $_GET[\"id_aktivnost\"];\n\t\t$aktivnost = $tus->getActivityById($activityId);\n\t\t$voda = $tus->getUserById($aktivnost->id_izvidac)->username;\n\n\t\t$memberList = $tus->getMembersByActivityId($activityId);\n\t\t$isaMember = false;\n\n\t\tforeach ($memberList as $member) {\n\t\t\tif (strcmp($member->id_izvidac, $_SESSION[\"id\"]) === 0)\n\t\t\t\t$isaMember = true;\n\t\t}\n\n\t\t$_SESSION[\"id_aktivnost\"] = $_GET[\"id_aktivnost\"];\n\n\t\trequire_once \"view/activity_show.php\";\n\t}", "title": "" }, { "docid": "a7d5e2187bf1e60629aa1089e202105f", "score": "0.54996043", "text": "function btec_activity_by_activity_page($courseID)\n {\n //get all of the activities on this course\n //load all of their units and criteria etc. \n //table\n //columns: Add, Activity, Units/Criterias\n //rows -> activities, units/criterias\n global $CFG;\n $context = context_course::instance($courseID);\n $retval = '';\n $quals = bcgt_get_course_quals($courseID, BTECQualification::FAMILYID);\n if(count($quals) == 1)\n {\n $retval .= '<h2>'.bcgt_get_qualification_display_name(end($quals)).'</h2>';\n }\n $activities = bcgt_get_coursemodules_in_course($courseID);\n $modLinking = load_bcgt_mod_linking();\n //load the icons\n $modIcons = load_mod_icons($courseID);\n if($activities)\n {\n $manage = has_capability('block/bcgt:manageactivitylinks', $context);\n $link = $CFG->wwwroot.'/blocks/bcgt/forms/add_activity.php?page=addunit&';\n $img = $CFG->wwwroot.'/blocks/bcgt/pix/greenPlus.png';\n $retval .= '<div class=\"bcgtmodlinkingselections\">';\n $retval .= '<table class=\"activityLinks\">';\n $retval .= '<thead><th></th><th></th><th>'.get_string('activity', 'block_bcgt').\n '</th><th>'.get_string('duedate','block_bcgt').'</th><th>'.\n get_string('units', 'block_bcgt').'</th></thead>'; \n $retval .= '<body>';\n foreach($activities AS $activity)\n {\n $dueDate = get_bcgt_mod_due_date($activity->id, $activity->instanceid, \n $activity->cmodule, $modLinking);\n $out = '<tr>';\n $out .= '<td>';\n if($manage)\n {\n $out .= '<a href=\"'.$link.'aID='.$activity->id.'&cID='.$courseID\n .'&fID='.BTECQualification::FAMILYID.'\"><img src=\"'.$img.'\"/></a>';\n }\n $out .= '</td>';\n //the icon\n $out .= '<td>';\n if(array_key_exists($activity->module,$modIcons))\n {\n $icon = $modIcons[$activity->module];\n //show the icon. \n $out .= html_writer::empty_tag('img', array('src' => $icon,\n 'class' => 'bcgtmodcriticon activityicon', 'alt' => $activity->module));\n }\n $out .= '</td>';\n $out .= '<td>'.$activity->name.' ('.$activity->module.')</td>';\n //due date\n $out .= '<td>';\n if($dueDate)\n {\n $out .= date('d M Y : H:m', $dueDate); \n }\n $out .= '</td>';\n //now get the units that are on it. \n $out .= '<td class=\"bcgtmodlinkingunitsummary\">';\n $out .= get_mod_unit_summary_table($activity->id, BTECQualification::FAMILYID);\n $out .= '</td>';\n $activity->out = $out;\n $activity->dueDate = $dueDate;\n }\n \n require_once($CFG->dirroot.'/blocks/bcgt/classes/sorters/ModSorter.class.php');\n $modSorter = new ModSorter();\n usort($activities, array($modSorter, \"ComparisonDelegateByDueDateObj\"));\n \n foreach($activities AS $activity)\n {\n $retval .= $activity->out;\n }\n $retval .= '</body>';\n $retval .= '</table>';\n $retval .= '</div>';\n }\n return $retval;\n }", "title": "" }, { "docid": "f7e568a18b1f11b7a9b0fff996c85c9f", "score": "0.5483456", "text": "function getCampusActivities() {\n $campusId = $this->input->post('campusId');\n $result = $this->packagesmodel->getCampusActivities($campusId);\n if ($result) {\n foreach ($result as $campusAct) {\n ?>\n <option value=\"<?php echo $campusAct['act_id']; ?>\" ><?php echo $campusAct['act_activity_name']; ?></option>\n <?php\n }\n } else {\n echo '';\n }\n }", "title": "" }, { "docid": "ed2ddaf1e3787c09bc1484747f4e6acc", "score": "0.5476007", "text": "public function getVirtualTour() {\n $returnValue = array();\n $returnValue['status'] = \"failure\";\n global $mainframe;\n $mainframe = JFactory::getApplication();\n try {\n $model = $this->getModel(\"mobileData\");\n $responseData = $model->contentVirtualTourDetails();\n if ($responseData == 'failure' || $responseData == 'error') {\n $returnValue['status'] = \"failure\";\n } else {\n $response = array();\n $response['title'] = $responseData->title;\n\n if ($_REQUEST['deviceAgent'] == 'PC') {\n $app = JFactory::getApplication();\n $templateDir = JURI::base() . 'templates/' . $app->getTemplate();\n \n $introtext = '<div><a onclick=\"virtualTourImages(\\'virtual_tour_ext\\');\">Tour the Waiting Room | </a> | <a onclick=\"virtualTourImages(\\'virtual_tour\\');\">Tour the Exam Room</a></div><div><div id=\"virtual_tour_ext\"><div class=\"virtualimages\">\n <div class=\"tourinfo circle circle1\" onclick=\"popoverText(\\'circle1\\');\" \ndata-container=\"body\" data-toggle=\"popover\" data-placement=\"right\" data-content=\"This is Popover.\" \n\n><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle2\"><img src=\"'.$templateDir.'/images/info_arrow.png\"></div>\n <div class=\"tourinfo circle circle3\" onclick=\"popoverText(\\'circle3\\');\" rel=\"popover\"\n data-content=\"This is the body of Popover This is the body of Popover This is the body of Popover\" data-placement=\"left\"><img src=\"'.$templateDir.'/images/info.png\"></div><img src=\"'.$templateDir.'/images/waitingroom.jpg\"/></div>\n </div></div>\n \n<div><div id=\"virtual_tour\" style=\"display:none;\"><div class=\"virtualimages\">\n <div class=\"tourinfo circle circle4\" onclick=\"popoverText(\\'circle4\\');\" rel=\"popover\"\n data-content=\"This is the body of Popover This is the body of PopoverThis is the body of PopoverThis is the body of PopoverThis is the body of PopoverThis is the body of PopoverThis is the body of PopoverThis is the body of PopoverThis is the body of Popover\"\n data-original-title=\"Creativity Tuts\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle5\"><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle6\" onclick=\"popoverText(\\'circle3\\');\" rel=\"popover\"\n data-content=\"This is the body of Popover This is the body of Popover This is the body of Popover\" data-placement=\"left\"><img src=\"'.$templateDir.'/images/info.png\"></div><img src=\"'.$templateDir.'/images/examroom.jpg\"/></div>\n </div></div>';\n \n } else {\n $doc = new DOMDocument();\n $doc->loadHTML($responseData->introtext);\n $doc->preserveWhiteSpace = false;\n \n $app = JFactory::getApplication();\n $templateDir = JURI::base() . 'templates/' . $app->getTemplate(); \n \n \n $out = \"\"; $out1 = \"\";\n $kk=0;\n foreach ($doc->getElementsByTagName('h4') as $param) {\n \n if($kk<2){\n \n $params2 = $param->getElementsByTagName('a');\n \n $j=0;\n $anchorId = \"\";\n foreach ($params2 as $anchor) { \n \n if($j==0){$anchorId=\"virtual_tour_ext\";$anchor->setAttribute('style', 'font-style:italic');}\n else if($j==1){$anchorId=\"virtual_tour\";}\n\n $link = $anchor->removeAttribute('href');\n $anchor->setAttribute('href', '#');\n $anchor->setAttribute('class', $anchorId);\n $anchor->setAttribute(\"onclick\", \"virtualTourImages('$anchorId')\");\n $j++; \n }\n \n $params3 = $param->getElementsByTagName('img');\n \n foreach ($params3 as $image) {\n $path = $image->getAttribute('src'); \n $image->setAttribute('src', JURI::base() . $path); \n \n }\n \n $val=\"\";\n if($kk==0){\n $out .= strip_tags($param->c14n(), \"<a>\");\n }else if($kk==1){\n $out .= \"<br /><br />\".strip_tags($param->c14n(), \"<img>\").\"<br /><br />\";\n }\n \n }\n $kk++;\n }\n \n $out .= $out1;\n foreach ($doc->getElementsByTagName('div') as $divTag) {\n \n $info_checkin = \"\"; $info_door1 = \"\"; $info_monitor = \"\";\n $info_wall = \"\"; $info_computer = \"\"; $info_floor = \"\";\n foreach ($divTag->getElementsByTagName('div') as $divTagInner) {\n \n if($divTagInner->getAttribute('id')==\"info_checkin\"){ \n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_checkin = $Pvalue1[0];\n }\n \n \n if($divTagInner->getAttribute('id')==\"info_door1\"){\n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_door1 = $Pvalue1[0];\n }\n if($divTagInner->getAttribute('id')==\"info_monitor\"){\n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_monitor = $Pvalue1[0];\n }\n \n if($divTagInner->getAttribute('id')==\"info_wall\"){ \n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_wall = $Pvalue1[0];\n }\n if($divTagInner->getAttribute('id')==\"info_computer\"){\n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_computer = $Pvalue1[0];\n }\n if($divTagInner->getAttribute('id')==\"info_floor\"){\n $Pvalue = explode(\"<p>\", $divTagInner->c14n());\n $Pvalue1 = explode(\"</p>\", $Pvalue[1]);\n $info_floor = $Pvalue1[0];\n }\n \n \n }\n \n $divTagText = $divTag->getAttribute('id');\n \n if($divTagText==\"virtual_tour_ext\" || $divTagText==\"virtual_tour\"){\n \n if($divTagText==\"virtual_tour_ext\"){\n \n $addInfoImages = '<div class=\"virtualimages\">\n <div class=\"tourinfo circle circle1\" \n data-content=\"'.$info_checkin.'\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle2\"\n data-content=\"'.$info_door1.'\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info_arrow.png\"></div>\n <div class=\"tourinfo circle circle3\" \n data-content=\"'.$info_monitor.'\" data-placement=\"left\"><img src=\"'.$templateDir.'/images/info.png\"></div>';\n \n $imgPath = $templateDir.\"/images/waitingroom.jpg\";\n $style=\"style='padding : 0px; position:relative;'\";\n } else if($divTagText==\"virtual_tour\"){\n \n $addInfoImages = '<div class=\"virtualimages\">\n <div class=\"tourinfo circle circle4\"\n data-content=\"'.$info_floor.'\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle5\" \n data-content=\"'.$info_computer.'\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info.png\"></div>\n <div class=\"tourinfo circle circle6\" \n data-content=\"'.$info_wall.'\" data-placement=\"top\"><img src=\"'.$templateDir.'/images/info.png\"></div>';\n \n $imgPath = $templateDir.\"/images/examroom.jpg\";\n $style=\"style='padding : 0px; position:relative; display:none;'\";\n }\n \n $out.=\"<div id='\".$divTagText.\"' \".$style.\">\".$addInfoImages.\"<img src='\". $imgPath.\"'></div></div>\"; \n } \n \n } \n \n $introtext=$out;\n }\n \n $introtext = str_replace(\"Roll your mouse over the\", \"Tap on\", $introtext);\n\n $response['introtext'] = $introtext;\n $returnValue['data'] = $response;\n $returnValue['status'] = \"success\";\n }\n } catch (Exception $ex) {\n JError::raiseError(500, \"Error Occured in About Us\");\n $returnValue['status'] = \"failure\";\n }\n echo json_encode($returnValue);\n $mainframe->close();\n }", "title": "" }, { "docid": "1afcb072a30b0c4b64df744f6b6e3433", "score": "0.5472718", "text": "public function getAboutOurClinics() { \n $returnValue = array();\n $returnValue['status'] = \"failure\";\n global $mainframe;\n $mainframe = JFactory::getApplication();\n try {\n $model = $this->getModel(\"mobileData\");\n $responseData = $model->contentAboutOurClinicsDetails();\n if ($responseData == 'failure' || $responseData == 'error') {\n $returnValue['status'] = \"failure\";\n } else {\n $response = array();\n $response['title'] = $responseData->title;\n\n if ($_REQUEST['deviceAgent'] == 'PC') {\n $introtext = $responseData->introtext;\n } else {\n $doc = new DOMDocument();\n $doc->loadHTML($responseData->introtext);\n $doc->preserveWhiteSpace = false;\n\n foreach ($doc->getElementsByTagName('a') as $anchor) {\n $link = $anchor->getAttribute('href');\n $anchor->setAttribute('href', '#');\n $anchor->setAttribute('onclick', 'openInChildBrowser(\"' . $link . '\")');\n $anchor->removeAttribute('target');\n }\n \n $introtext = $doc->saveHTML();\n }\n\n\n $response['introtext'] = $introtext;\n $returnValue['data'] = $response;\n $returnValue['status'] = \"success\";\n }\n } catch (Exception $ex) {\n JError::raiseError(500, \"Error Occured in About Us\");\n $returnValue['status'] = \"failure\";\n }\n echo json_encode($returnValue);\n $mainframe->close();\n }", "title": "" }, { "docid": "91db8d79ded4bf21289cd92a600b1c63", "score": "0.5468271", "text": "public function actionCompanyUserActivityPreview()\n {\n /** @var null|integer $id User ID */\n $id = Yii::$app->request->post('id');\n\n return $this->renderAjax('/client/company/preview/activity', [\n 'logs' => UserLog::find()->where(['user_id' => $id])->orderBy(['created_at' => SORT_DESC])->all(),\n ]);\n }", "title": "" }, { "docid": "2ef7fe824066e0668fcccfa7966382d8", "score": "0.5453918", "text": "public function show_question_detail() {\n if ($this->isAjax()) {\n $mdata=array();\n $error='';\n $data=$this->input->post();\n $leaddat=array();\n foreach ($data as $key=>$val) {\n if ($key=='quest_id') {\n $quest_id=$val;\n } else {\n $leaddat[$key]=$val;\n }\n }\n /* Save data to session */\n usersession('leaddata',$leaddat);\n $this->load->model('questions_model');\n $quest=$this->questions_model->get_quest_data($quest_id);\n $mdata['content']=$this->load->view('questions/details_view',$quest,TRUE);\n $this->ajaxResponse($mdata, $error);\n }\n }", "title": "" }, { "docid": "d82b5c0c36555c3622ffd42d12a78234", "score": "0.54519427", "text": "public function index() {\r\n// $url_template = getTemplateURL($url);\r\n// $masterSubject = new MasterSubject();\r\n// $transActivity = new TransactionActivity();\r\n $db = new Database();\r\n\r\n// $rs_activity = $db->selectByID($transActivity);\r\n $Form = new Form();\r\n include getTemplatePath('page/global/activity.html.php');\r\n }", "title": "" }, { "docid": "4eb18049fea9b9ff69818814f772a716", "score": "0.54403996", "text": "public function activities($id=FALSE)\n\t{\n\t\t// Check if we are allowed to be here\n\t\t$this->shared->check_auth('admin');\n\t\t\n\t\t// Starters\n\t\t$data['page'] = 'Activities';\n\t\t$data['section'] = 'event';\n\t\t\n\t\t// Get logged in user.\n\t\t$data['user'] = $this->ion_auth->user()->row();\n\t\t//$data['unit'] = $this->shared->get_user_unit($data['user']->id, true);\t\n\t\t\n\t\tif ($id === FALSE) {\n\t\t\t// No activity set, lets get all of them\n\t\t\t// The view will get the activities, by eventtype. $data['activities'] = $this->activities_model->get_activities();\n\t\t\t\n\t\t\t// Build the page and send some data in.\n\t\t\t$data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');\n\t\t\t$this->load->view('templates/header_admin', $data);\n\t\t\t$this->load->view('admin/event/activities', $data);\t\n\t\t\t$this->load->view('templates/footer', $data);\n\t\t\t\n\t\t} else {\n\t\t\t// Activity is set\n\t\t\t$data['activity'] = $this->activities_model->get_activity($id);\n\t\t\tif (!$data['activity']) { \n\t\t\t\t$this->session->set_flashdata('message', '<i class=\"icon-info-sign blue\"></i> We couldn\\'t find your activity.');\n\t\t\t\tredirect('event/activities', 'refresh');\n\t\t\t}\n\t\t\t$data['message'] = '';\n\t\t\t\n\t\t\t// Verify activity details.\n\t\t\t$this->form_validation->set_rules('activity[title]', 'name', 'required');\n\t\t\t$this->form_validation->set_rules('activity[description]', 'description', 'required');\n\t\t\t$this->form_validation->set_rules('activity[eventtype]', 'event type', 'required');\n\t\t\t$this->form_validation->set_rules('activity[category]', 'category', 'required');\n\t\t\t$this->form_validation->set_rules('activity[age]', 'minimum age');\n\t\t\t$this->form_validation->set_rules('activity[long]', 'long description');\n\t\t\t$this->form_validation->set_rules('activity[short]', 'short description');\n\t\t\t\n\t\t\tif ($this->form_validation->run() === TRUE) {\n\t\t\t\t// Lets update the user\n\t\t\t\t$result = $this->activities_model->update_activity($id);\n\t\t\t\tif ($result === true) {\n\t\t\t\t\t$data['errors'] = '<i class=\"icon-ok teal\"></i> Good work, '.$data['activity']['title'].' was updated';\n\t\t\t\t} else {\n\t\t\t\t\t$data['errors'] = '<i class=\"icon-info red\"></i> '.$data['activity']['title'].' was not updated';\n\t\t\t\t}\n\t\t\t\t$data['activity'] = $this->activities_model->get_activity($id);\n\t\t\t} \n\n\t\t\t// Build the page and send some data in.\n\t\t\t$data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');\n\t\t\t$data['message'] = (isset($data['errors'])) ? $data['errors']: $data['message'];\n\t\t\t$this->load->view('templates/header_admin', $data);\n\t\t\t$this->load->view('admin/event/singleactivity', $data);\t\n\t\t\t$this->load->view('templates/footer', $data);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "c78683fb05bc7e8a41615ffd904003f2", "score": "0.5437256", "text": "function activities_ajax_update_list_handler()\n{\n\t$map=array();\n\n\t$map['max']=$GLOBALS['SITE_DB']->query_value_null_ok('values','the_value',array('the_name'=>get_zone_name().\"_\".get_page_name().\"_update_max\"));\n\n\tif (is_null($map['max']))\n\t{\n\t\t$map['max']='10';\n\t}\n\n\t$last_id=post_param('last_id','-1');\n\t$mode=post_param('mode','all');\n\n\trequire_lang('activities');\n\trequire_code('activities');\n\trequire_code('addons_overview');\n\n\t$proceed_selection=true; //There are some cases in which even glancing at the database is a waste of precious time.\n\n\t$guest_id=intval($GLOBALS['FORUM_DRIVER']->get_guest_id());\n\t$viewer_id=intval(get_member()); //We'll need this later anyway.\n\n\t$can_remove_others=(has_zone_access($viewer_id,'adminzone'));\n\n\t//Getting the member viewed ids if available, member viewing if not\n\t$member_ids=array_map('intval',explode(',',post_param('member_ids',strval($viewer_id))));\n\n\tlist($proceed_selection,$where_clause)=get_activity_querying_sql($viewer_id,$mode,$member_ids);\n\n\theader(\"Content-Type: text/xml\");\n\theader(\"Cache-Control: no-cache, must-revalidate\"); // HTTP/1.1\n\theader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); // Date in the past\n\n\t$response ='<'.'?xml version=\"1.0\" encoding=\"'.get_charset().'\" ?'.'>';\n\n\t$can_remove_others=(has_zone_access($viewer_id,'adminzone'));\n\n\tif ($proceed_selection===true)\n\t{\n\t\t$activities=$GLOBALS['SITE_DB']->query('SELECT * FROM '.get_table_prefix().'activities WHERE (('.$where_clause.') AND id>'.(($last_id=='')?'-1':$last_id).') ORDER BY a_time DESC',intval($map['max']));\n\n\t\tif (count($activities)>0)\n\t\t{\n\t\t\t$list_items='';\n\t\t\tforeach ($activities as $row)\n\t\t\t{\n\t\t\t\tlist($message,$memberpic,$datetime,$member_url)=render_activity($row);\n\n\t\t\t\t$username=$GLOBALS['FORUM_DRIVER']->get_username($row['a_member_id']);\n\t\t\t\tif (is_null($username)) $username=do_lang('UNKNOWN');\n\t\t\t\t$list_item=do_template('BLOCK_MAIN_ACTIVITIES_XML',array('_GUID'=>'02dfa8b02040f56d76b783ddb8fb382f','LANG_STRING'=>'RAW_DUMP','ADDON_ICON'=>find_addon_icon($row['a_addon']),'BITS'=>$message,'MEMBER_ID'=>strval($row['a_member_id']),'MEMPIC'=>$memberpic,'USERNAME'=>$username,'DATETIME'=>strval($datetime),'MEMBER_URL'=>$member_url,'LIID'=>strval($row['id']),'ALLOW_REMOVE'=>(($row['a_member_id']==$viewer_id) || $can_remove_others)));\n\t\t\t\t// We dump our response in CDATA, since that lets us work around the\n\t\t\t\t// fact that our list elements aren't actually in a list, etc.\n\t\t\t\t// However, we allow comcode but some tags make use of CDATA. Since\n\t\t\t\t// CDATA can't be nested (as it's a form of comment), we take this\n\t\t\t\t// into account by base64 encoding the whole template and decoding\n\t\t\t\t// it in the browser. We wrap it in some arbitrary XML and a CDATA\n\t\t\t\t// tag so that the Javascript knows what it's received\n\t\t\t\t$list_items.='<listitem id=\"'.strval($row['id']).'\"><![CDATA['.base64_encode($list_item->evaluate()).']]></listitem>';\n\n\t\t\t}\n\t\t\t$response.='<response><success>1</success><feedlen>'.$map['max'].'</feedlen><content>'.$list_items.'</content><supp>'.escape_html($where_clause).'</supp></response>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response.='<response><success>2</success><content>NU - Nothing new.</content></response>';\n\t\t}\n\t}\n\telse\n\t{\n\t\t$response.='<response><success>2</success><content>NU - No feeds to select from.</content></response>';\n\t}\n\n\techo $response;\n}", "title": "" }, { "docid": "e3fa613eda0ebfa6c8f0981460215ee1", "score": "0.5420495", "text": "public function actionAjaxViewPartnersBy()\n {\n $model = new ManagePartnersForm();\n $page = $_POST['page'];\n $limit = $_POST['rows'];\n\n $status = $_POST['Status'];\n \n $data = $model->getPartnerDetails($status);\n \n $count = count($data);\n $response = array();\n if ($count > 0)\n {\n $total_pages = ceil($count/$limit);\n }\n else\n { \n $total_pages = 0;\n }\n if ($page > $total_pages)\n {\n $page = $total_pages;\n }\n\n $start = $limit * $page - $limit;\n if($count == 0)\n $start = 0;\n \n $response[\"page\"] = $page;\n $response[\"total\"] = $total_pages;\n $response[\"records\"] = $count;\n //Check there are fetched data\n if ($count > 0)\n {\n $i = 0; \n foreach ($data as $val)\n {\n if ($val['Status'] == 1)\n {\n $val['StatusName'] = 'Active';\n } \n else if ($val['Status'] == 0)\n {\n $val['StatusName'] = 'Inactive';\n }\n else if ($val['Status'] == 2)\n {\n $val['StatusName'] = 'Deactivated';\n }\n \n $response[\"rows\"][$i]['id'] = $val['PartnerID'];\n $response[\"rows\"][$i]['cell'] = array(\"<a href='#' id='partnerNameLink' PartnerID='\".$val['PartnerID'].\"'\n PartnerName='\".$val['PartnerName'].\"'\n CompanyAddress='\".$val['CompanyAddress'].\"'\n CompanyEmail='\".$val['CompanyEmail'].\"'\n CompanyPhone='\".$val['CompanyPhone'].\"'\n CompanyFax='\".$val['CompanyFax'].\"'\n CompanyWebsite='\".$val['CompanyWebsite'].\"'\n ContactPerson='\".$val['ContactPerson'].\"'\n ContactPersonPosition='\".$val['ContactPersonPosition'].\"'\n ContactPersonPhone='\".$val['ContactPersonPhone'].\"'\n ContactPersonMobile='\".$val['ContactPersonMobile'].\"'\n ContactPersonEmail='\".$val['ContactPersonEmail'].\"'\n Status='\".$val['Status'].\"'\n StatusName='\".$val['StatusName'].\"'\n NumberOfRewardOffers='\".$val['NumberOfRewardOffers'].\"'\n >\".$val['PartnerName'].\"</a>\",\n $val['StatusName'],\n $val['NumberOfRewardOffers'],\n $val['ContactPerson'],\n $val['ContactPersonEmail'],\n \"<div title='Edit Details'><a href='#' id='editlinkid' PartnerID='\".$val['PartnerID'].\"'\n PartnerName='\".$val['PartnerName'].\"'\n CompanyAddress='\".$val['CompanyAddress'].\"'\n CompanyEmail='\".$val['CompanyEmail'].\"'\n CompanyPhone='\".$val['CompanyPhone'].\"'\n CompanyFax='\".$val['CompanyFax'].\"'\n CompanyWebsite='\".$val['CompanyWebsite'].\"'\n ContactPerson='\".$val['ContactPerson'].\"'\n ContactPersonPosition='\".$val['ContactPersonPosition'].\"'\n ContactPersonPhone='\".$val['ContactPersonPhone'].\"'\n ContactPersonMobile='\".$val['ContactPersonMobile'].\"'\n ContactPersonEmail='\".$val['ContactPersonEmail'].\"'\n Status='\".$val['Status'].\"'\n NumberOfRewardOffers='\".$val['NumberOfRewardOffers'].\"'\n ><img src='../../images/settings.png'></a></div>\"\n );\n $i++;\n }\n }\n else\n {\n $i = 0;\n $response[\"page\"] = $page;\n $response[\"total\"] = $total_pages;\n $response[\"records\"] = $count;\n $msg = \"Audit Trail: No returned result\";\n $response[\"msg\"] = $msg;\n }\n echo json_encode($response);\n }", "title": "" }, { "docid": "6ba24da85baa21a9cec80c2bc73af68e", "score": "0.5412262", "text": "public function personModal() {\n $mh = new ModalWindow('personModal');\n $mh->dataAttribute = 'data-person-id';\n $mh->loadFunctionName = 'loadPerson';\n $mh->ajaxRoute = base_url().'modal/person/show/';\n $mh->title = 'Person';\n $mh->icon = 'fa-user';\n $this->load->view('partials/modal/wrapper', $mh->getData());\n }", "title": "" }, { "docid": "1191eaf8be799975b3009aecf63d97fe", "score": "0.539098", "text": "public function getAjaxData()\n {\n $input = Factory::getApplication()->input;\n $candidate_id = Factory::getApplication()->input->get('candidate_id', '', 'int');\n $promotion_id = Factory::getApplication()->input->get('promotion_id', '', 'int');\n $this->app = Factory::getApplication();\n\n // check if there are Ids in the request\n $checkIDs = $this->checkIDs($candidate_id, $promotion_id);\n !empty($checkIDs) ? $this->response($checkIDs) : null;\n\n // IDs ok, get Model and fetch data\n $model = $this->getModel($name = 'candidate', $prefix = 'TkdClubModel', $config = array());\n $candidate_data = $model->getCandidateData($candidate_id, $promotion_id);\n\n // Check for some missing candidates-data for finding proper grade to achieve\n $checkData = $this->checkData($candidate_data);\n !empty($checkData) ? $this->response($checkData) : null;\n\n // Check for double promotions and already assigned promotions\n $checkForDouble = $this->checkForDouble();\n !empty($checkForDouble) ? $this->response($checkForDouble) : null;\n\n // check for minimum age and waiting time\n $this->age = (int) Helper::getAgetoDate($this->promotion_date, $this->birthdate);\n $this->changeGrades();\n\n // calculate grade value\n if (!$this->double) {\n $this->grade == '0' ? $grade_achieve_value = 1 : $grade_achieve_value = $this->grades[$candidate_data['grade']] + 1;\n } else {\n $grade_achieve_value = $this->grades[$this->double] + 1;\n }\n\n // Find the correct grade for the grade value\n $grade_achieve = array_search($grade_achieve_value, $this->grades);\n\n // Check if the correct promotion type is selected\n $checkType = $this->checkType($grade_achieve_value);\n !empty($checkType) ? $this->response($checkType) : null;\n\n $checkAgeAndWaitingtime = $this->checkAgeAndWaitingtime($grade_achieve_value, $grade_achieve);\n !empty($checkAgeAndWaitingtime) ? $this->response($checkAgeAndWaitingtime) : null;\n\n // everything is fine, give back the grade achieve and Information about double promotion\n $candidate_data['grade_achieve'] = array_search($grade_achieve_value, $this->grades);\n\n if ($candidate_data['lastpromotion'] == '0000-00-00') {\n $candidate_data['lastpromotion'] = '';\n $candidate_data['grade'] = Text::_('COM_TKDCLUB_NO_GRADE_LISTVIEW');\n } else {\n $candidate_data['lastpromotion'] = JHtml::_('date', $candidate_data['lastpromotion'], Text::_('DATE_FORMAT_LC4'));\n }\n\n if ($this->double) {\n $candidate_data['notes'] = Text::_('COM_TKDCLUB_CANDIDATE_DOUBLE_PROMOTION');\n }\n\n $candidate_data['no_error'] = true;\n $this->response($candidate_data);\n }", "title": "" }, { "docid": "8686d546ff1f487da08857a9b4d5fc14", "score": "0.53882295", "text": "public function sample_activity()\n {\n $data = array(\n 'mno'=>133,\n 'action'=>'Posted',\n '_table'=>'fs_postedarticles',\n '_table_id'=>1,\n '_date'=>$this->date_time,\n 'active'=>1\n );\n return $data;\n }", "title": "" }, { "docid": "33bccc2f7a05683b2a3ddf7eda097055", "score": "0.53873295", "text": "public function ajax_data() {\n\n $userid = $this->session->userdata('aileenuser');\n // ajax for degree start\n\n if (isset($_POST[\"degree_id\"]) && !empty($_POST[\"degree_id\"])) {\n //Get all stream data\n $contition_array = array('is_delete' => '0', 'degree_id' => $_POST[\"degree_id\"]);\n $search_condition = \"((status = '2' AND user_id = $userid) OR (status = '1'))\";\n $stream = $this->data['stream'] = $this->common->select_data_by_search('stream', $search_condition, $contition_array, $data = '*', $sortby = 'stream_name', $orderby = 'ASC', $limit = '', $offset = '', $join_str = array(), $groupby = '');\n\n //Count total number of rows\n //Display stram list\n if (count($stream) > 0) {\n echo '<option value=\"\">Select stream</option>';\n foreach ($stream as $st) {\n echo '<option value=\"' . $st['stream_id'] . '\">' . $st['stream_name'] . '</option>';\n }\n } else {\n echo '<option value=\"\">Stream not available</option>';\n die();\n }\n }\n\n // ajax for degree end\n }", "title": "" }, { "docid": "bb2632945234ff0fe7391d98ce41f70c", "score": "0.53722554", "text": "public function show_appointment_detail() {\n\t\t$data = $this->glbl('practitioner_access');\n\t\t$inputValues = $this->input->post();\n\t\tif(isset($inputValues)) {\n\t\t\t$appntID = $inputValues['appointment_id'];\n $data['casualDetails'] = $this->appointments->get_appoint_data($appntID); \n\t\t\t$data['appntDetails'] = $this->appointments->get_appointment_details($appntID);\n\t\t\t$this->load->view('clinic/appointment/ajax/view_appointment', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "448ef3b6efed09b15f47aedb72e234f1", "score": "0.537075", "text": "public function index()\n {\n if (! Gate::allows('activity_access')) {\n return abort(401);\n }\n\n\n \n if (request()->ajax()) {\n $query = Activity::query();\n $query->with(\"user\");\n $query->with(\"project\");\n $template = 'actionsTemplate';\n if(request('show_deleted') == 1) {\n \n if (! Gate::allows('activity_delete')) {\n return abort(401);\n }\n $query->onlyTrashed();\n $template = 'restoreTemplate';\n }\n $query->select([\n 'activities.id',\n 'activities.user_id',\n 'activities.date',\n 'activities.message',\n 'activities.project_id',\n ]);\n $table = Datatables::of($query);\n\n $table->setRowAttr([\n 'data-entry-id' => '{{$id}}',\n ]);\n $table->addColumn('massDelete', '&nbsp;');\n $table->addColumn('actions', '&nbsp;');\n $table->editColumn('actions', function ($row) use ($template) {\n $gateKey = 'activity_';\n $routeKey = 'admin.activities';\n\n return view($template, compact('row', 'gateKey', 'routeKey'));\n });\n $table->editColumn('user.name', function ($row) {\n return $row->user ? $row->user->name : '';\n });\n $table->editColumn('date', function ($row) {\n return $row->date ? $row->date : '';\n });\n $table->editColumn('message', function ($row) {\n return $row->message ? $row->message : '';\n });\n $table->editColumn('project.name', function ($row) {\n return $row->project ? $row->project->name : '';\n });\n\n $table->rawColumns(['actions','massDelete']);\n\n return $table->make(true);\n }\n\n return view('admin.activities.index');\n }", "title": "" }, { "docid": "caa1705d36e294d2446f1b3e1baef485", "score": "0.53607935", "text": "public function actionModalAjax() {\r\n Yii::app()->clientScript->scriptMap['jquery.js'] = false;\r\n Yii::app()->clientScript->scriptMap['jquery.min.js'] = false;\t\r\n Yii::app()->clientScript->scriptMap['bootstrap.js'] = false;\r\n Yii::app()->clientScript->scriptMap['bootstrap.css'] = false;\r\n Yii::app()->clientScript->scriptMap['bootstrap.bootbox.min.js'] = false;\r\n Yii::app()->clientScript->scriptMap['bootstrap-responsive.css'] = false;\r\n Yii::app()->clientScript->scriptMap['bootstrap-yii.css'] = false;\r\n Yii::app()->clientScript->scriptMap['jquery-ui-bootstrap.css'] = false;\r\n Yii::app()->clientScript->scriptMap['bootstrap.min.css'] = false;\t\r\n Yii::app()->clientScript->scriptMap['bootstrap.min.js'] = false;\r\n \r\n \r\n if($_POST[\"modal\"] == \"perfiles\"){\r\n \r\n $response[\"data\"] = $this->renderPartial(\"_modalAjax\", array(), true, true); \r\n \r\n } \r\n if($_POST[\"modal\"] == \"giftcard\"){\r\n \r\n $response[\"data\"] = $this->renderPartial(\"//giftcard/_modalGiftCard\", array(\"id\" => $_POST[\"id\"]), true, true); \r\n \r\n } \r\n \r\n \r\n echo CJSON::encode($response);\r\n \r\n }", "title": "" }, { "docid": "41547ce00274981ea728a9d195d9b873", "score": "0.5352377", "text": "public static function get_activity_list() {\n global $COURSE, $PAGE;\n\n // Return nothing if no cmid.\n if (!isset($PAGE->cm->id)) {\n return;\n }\n\n $modinfo = get_fast_modinfo($COURSE);\n $sectionsdata = $modinfo->sections;\n $excludedmods = array('label');\n $count = 0; // To print section count in sidebar.\n $courserenderer = $PAGE->get_renderer('core', 'course');\n $sections = array();\n\n foreach ($modinfo->get_section_info_all() as $mod => $value) {\n // Return if sections does not have activities or section is hidden to current user.\n if (!array_key_exists($mod, $modinfo->sections) || !$value->uservisible) {\n continue;\n }\n $sectionname = get_section_name($COURSE, $value);\n\n // Check if current section is being viewed.\n $opensection = '';\n if (in_array($PAGE->cm->id, $sectionsdata[$mod])) {\n $opensection = 'show';\n }\n\n $sections[$count]['name'] = $sectionname;\n $sections[$count]['open'] = $opensection;\n $sections[$count]['count'] = $count + 1;\n\n // Activities.\n foreach ($sectionsdata[$mod] as $activityid) {\n $activity = $modinfo->get_cm($activityid);\n // Check if activity is hidden for current user, or if it is deleted.\n if (!$activity->uservisible || $activity->is_stealth() || empty($activity->url)){\n continue;\n }\n $classes = '';\n $completioninfo = new \\completion_info($COURSE);\n $activitycompletion = $courserenderer->course_section_cm_completion($COURSE, $completioninfo, $activity, array());\n\n if (!in_array($activity->modname, $excludedmods)) {\n // Check if current activity.\n $active = ' ';\n if ($PAGE->cm->id == $activityid) {\n $active = 'active ';\n }\n\n $completion = $completioninfo->is_enabled($activity);\n if ($completion == COMPLETION_TRACKING_NONE) {\n $classes = '';\n } else {\n $completiondata = $completioninfo->get_data($activity, true);\n switch ($completiondata->completionstate) {\n case COMPLETION_INCOMPLETE:\n $classes = 'incomplete';\n break;\n case COMPLETION_COMPLETE:\n $classes = 'complete';\n break;\n case COMPLETION_COMPLETE_PASS:\n $classes = 'complete';\n break;\n case COMPLETION_COMPLETE_FAIL:\n $classes = 'fail';\n break;\n }\n }\n $sections[$count]['activity_list'][] = array(\n 'active' => $active,\n 'name' => $activity->name,\n 'title' => $courserenderer->course_section_cm_name_title($activity, array()),\n 'classes' => $classes\n );\n }\n }\n $count++;\n }\n\n return $sections;\n }", "title": "" }, { "docid": "f42fb6568d790f833314a5ccade49c74", "score": "0.5342853", "text": "public function popupFunction()\n {\n $this->autoRender = false;\n if ($this->request->is('ajax')) {\n $this->set('id', $this->request->data['id']); \n $this->set('controller', $this->request->data['controller']);\n $this->set('action', $this->request->data['action']);\n $this->set('UID', $this->request->data['listPage']);\n if (in_array($this->request->data['action'],array('select-group','update-group'))) {\n $this->set('listPage', 'UID');\n } else {\n $this->set('listPage', $this->request->data['listPage']);\n }\n $this->set('perPage', 10);\n $this->render('/Elements/Front/action_popup', 'ajax');\n }\n }", "title": "" }, { "docid": "94c7d0082226040661dedd06a107371b", "score": "0.53377074", "text": "public function cargarModalJobDetail() \n\t{\n\t\t\theader(\"Content-Type: text/plain; charset=utf-8\"); //Para evitar problemas de acentos\n\t\t\t\n\t\t\t$data['information'] = FALSE;\n\t\t\t$data[\"idJobDetail\"] = $this->input->post(\"idJobDetail\");\t\n\t\t\t\n\t\t\tif ($data[\"idJobDetail\"] != 'x') {\n\t\t\t\t$arrParam = array(\n\t\t\t\t\t\"idJobDetail\" => $data[\"idJobDetail\"]\n\t\t\t\t);\n\t\t\t\t$this->load->model(\"general_model\");\n\t\t\t\t$data['information'] = $this->general_model->get_job_detail($arrParam);\n\t\t\t}\n\n\t\t\t$this->load->view(\"job_detail_modal\", $data);\n }", "title": "" }, { "docid": "09d1f50e44f8a142e4dea59447181345", "score": "0.53313756", "text": "public static function getAjax()\n {\n\t// Function to precess Ajax submitted data and return Ajax output\n\t// Getting input data\n\t$input = JFactory::getApplication()->input;\n\n\t$variable1 = $input->get('variable1');\n\t// the variable 2 could be numeric only (for security reasons, as it is not passed through db->quote\n\t$variable2 = preg_replace('/[^0-9]/', '', $input->get('variable2'));\n\t$mode = $input->get('ajax_mode');\n\n\t$base_sql = '';\n\tif ('parcel_info' == $mode) {\n\t $base_sql = \"SELECT * FROM parcels WHERE parcel_map_version_id = \". $variable2 .\" AND parcel_map_id = \";\n\t}\n\tif ('case_status' == $mode) {\n\t $base_sql = \"SELECT * FROM case_decisions WHERE decision_status = 'vigente' \n\t\tAND parcel_case_id = \". $variable2 . \" ORDER BY decision_modification_date_time DESC LIMIT 1\";\n\t}\n \t\n\n\t$obj = new stdClass;\n\t$obj->rows = modHelloSlavaHelper::getSQLQuery01( $variable1, $base_sql );\n\t$result = \"\";\n\n\t// Retrieve each value in the ObjectList \n \tforeach( $obj->rows as $row ) {\n\t\tif ('parcel_info' == $mode) { \n\t\t\t$result .= \"XML:\" . $row->parcel_map_properties_xml ;\n\t\t}\n\t } \n\tif( !$obj->rows ) {\n\t\t$result = \"Consulta no regreso datos\";\n\t}\n\t$obj->string = $result;\n\treturn json_encode($obj);\n }", "title": "" }, { "docid": "bd17869d2c2b33db6a4299cea46e7f24", "score": "0.5329079", "text": "function ajax_get_news_related(){\n\t\t\t$model = $this -> model;\n\t\t\t$data = $model->ajax_get_news_related();\n\t\t\t$html = $this -> news_genarate_related($data);\n\t\t\techo $html;\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "378422764e631c6469c7daa17269ecc3", "score": "0.5325753", "text": "public function ajaxAddResolution ()\n {\n $this->model->isLogged();\n if (isset($_POST) && !empty($_POST))\n echo (new \\App\\Models\\AjaxData)->getToAddResolution($_POST);\n }", "title": "" }, { "docid": "c3e7fe6617fdd83b6aa5c9a4cf0ed82e", "score": "0.5323818", "text": "public function fetchAnswerContent() {\n $incomingData = $this->readHttpRequest();\n $data = json_decode($incomingData);\n\n $ansConent = $this->ActivityStudent_model->fetchAnswerContent($data);\n\n echo json_encode($ansConent);\n }", "title": "" }, { "docid": "e91fee6f3a7fabd44b7a76a895e9ead0", "score": "0.53163964", "text": "public function edit_beat_information() {\n //array to store ajax responses\n $arr_response = array('status' => ERR_DEFAULT);\n\n //Load Required modal\n $this->load->model('configure_access_model', 'obj_ca', TRUE);\n $return_val = $this->obj_ca->edit_beat_information();\n if ($return_val) {\n $arr_response['status'] = SUCCESS;\n $arr_response['message'] = 'Beat has been updated successfully';\n } else {\n $arr_response['status'] = DB_ERROR;\n $arr_response['message'] = 'Something went Wrong! Please try again';\n }\n echo json_encode($arr_response);\n }", "title": "" }, { "docid": "131c895a8c26d750b6cd0f966d6a71a2", "score": "0.53146684", "text": "function visaTypeDetailsAjax() {\n if($this->pageHandler(\"immigration\", \"visa-types-details\") === true) {\n \n $this->crud = $this->_acl->getCrudAccess($this->_currentUser);\n \n $button = new library_decorators_button();\n $button->isDisabled = $this->crud->update;\n $button->addClass(array(\"edit\", \"edit-visa-type-details\"));\n $button->text = \"Edit\";\n $button->tooltip = array(\n \"title\"=>\"Update this visa types details\",\n \"place\"=>\"top\"\n );\n $button->icon = \"pencil\";\n \n $this->view->model = new model_visaType($this->_request->id);\n $this->view->setView(array(\n \"page\"=>\"immigration/visaTypeDetails\",\n \"template\"=>\"empty\",\n \"header\"=>false\n ));\n $this->_request->addHTML($this->view->getView());\n $this->_request->addResponseItems(array(\n \"buttons\"=>array(\n $button->getElement()\n )\n ));\n echo $this->_request->response();\n }\n }", "title": "" }, { "docid": "b81e3323c3ef46071bd76de672bfe52a", "score": "0.53103966", "text": "function occr_rec_list_ajax()\n{\n\t \n\t $data= get_occrp_data_api($_REQUEST['fullname'],5,$_REQUEST['limit']-5);\n\t//echo \"https://data.occrp.org/api/1/query?limit=\".$asd.\"&offset=\".$asd.\"&q=\".urlencode($_REQUEST['fullname']);\n\tif(count($data->results) > 0)\n\t{ \n\t\n\t$inc2=$_REQUEST['limit']-4;\t\t \n\t$i=1;\n\tforeach($data->results as $val){\n\t\t // print_r($val).'<br><br><br><br><br>';\n\tif($inc2 == 1)\n\t{\n\t\t$first_margine = \"margin-top:0\";\n\t}\n\telse\n\t{\n\t\t$first_margine = '';\n\t}\t \n\t\t\n\tif($inc2 % 2 == 0 )\n\t{\n\t\t$post_even = \"post-even\";\n\t}\t \n\telse\n\t{\n\t\t$post_even = \"\";\n\t}\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t//echo \"https://data.occrp.org/api/1/documents/\".$val->id.\"/pages/\".$val->records->results[0]->page;\n\t\n\t\n\t//print_r($more_details);\n\t\n\t//echo $more_details->text;\n\t\n\t\n\t \n\t\t\n\t\t?> \n <div class=\"timeline-row <?=$post_even?>\" style=\" <?=$first_margine?>\" id=\"hidesec<?=$val->id?>\">\n<div class=\"timeline-icon\" style=\"text-align: center;font-size: 22px;font-weight: 500;line-height: 37px;\">\n<div class=\"bg-info-400\">\n<?=substr($_REQUEST['fullname'],0,1)?>\n</div>\n</div>\n <div class=\"timeline-content\">\n <div class=\"panel border-left-lg border-left-danger invoice-grid timeline-content\">\n<div class=\"panel-body\">\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<h6 class=\"text-semibold no-margin-top\"><?=str_replace(\"&#65533;\",\"\",$val->title)//.\" = \".utf8_decode($val->title)?></h6> \n<ul class=\"list list-unstyled\">\n<li><span class=\"text-semibold\">Source Url:</span> <?=str_replace(\"&#65533;\",\"\",$val->source_url)?></li>\n</ul>\n </div>\n </div>\n</div>\n <div class=\"panel-footer\">\n<ul class=\"pull-right\">\n \n<li> <a href=\"#\" data-toggle=\"modal\" data-target=\"#single_record_occrp_<?=$val->id?>\"><i class=\"icon-eye8 position-left\"></i></a> </a></li>\n<li class=\"dropdown\">\n<a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" aria-expanded=\"false\"><i class=\"icon-menu7\"></i> <span class=\"caret\"></span></a>\n<ul class=\"dropdown-menu dropdown-menu-right\">\n<li><a href=\"#\" data-toggle=\"modal\" data-target=\"#single_record_occrp_<?=$val->id?>\"><i class=\"icon-eye8 position-left\"></i> View Report</a></li>\n\n<li><a href=\"#\" ><i class=\"icon-file-download2 position-left\"></i>Report Download</a></li>\n\n</ul>\n</li>\n\n\n\n <div id=\"single_record_occrp_<?=$val->id?>\" class=\"modal fade in\">\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>\n <h5 class=\"modal-title\"><?=$_REQUEST['fullname']?> Full Report</h5>\n </div>\n \n <div class=\"modal-body\" style=\"font-size:14px; width:100%; display:inline-block; background:transparent;\">\n \n \n <div class=\"col-md-3 prof-serc-img\">\n <?php /*?> <?php\n if($PhotographUrl)\n {\n echo '<div class=\"form-group\">\n <img src=\"'.$PhotographUrl.'\" width=\"100px\" height=\"100px\" />\n </div>';\n }else{\n ?><div class=\"form-group\"><img src=\"https://backcheck.io/verify/images/avtr_case.png\"></div><?php \n }\n \n ?><?php */?>\n \n <?php /*?> <a href=\"<?=SURL?>?action=singlereport&atype=download&id=<?=$id?>\" style=\"width:100%;\" class=\"btn bg-info-400\" target=\"_blank\" >Report Download</a><?php */?>\n \n </div>\n \n \n <div class=\"col-md-8\">\n <div class=\"table-responsive\">\n \n <table class=\"table table-striped\">\n <?php //echo $val->id.' thisisdiddd';//print_r($singlerec).\"<br><br><br>\";\n\t\t\t//echo \"https://data.occrp.org/api/1/documents/\".$val->id.\"/pages/\".$val->records->results[0]->page;\n $occrp_details = occrp_details($val->id,$val->records->results[0]->page);\n\t//print_r($asd);str_replace(\"&#65533;\",\"\",$val->title) utf8_decode($occrp_details->text)\n echo '<tr>\n <td>'.str_replace(\"&#65533;\",\"\",$occrp_details->text).'</td>\n </tr>';\n \t?> \n </table>\n \n </div>\t\n \n </div>\n \n \n \n </div> \n </div>\n </div>\n </div>\n<?php\n $inc++; \n ?>\n\n\n</ul>\n\n\n</div>\n</div>\n\n\n\n</div>\n</div>\n\n <?php $inc2++; $i++; }\n\t\n\t}\n\telse\n\t{\n\t\techo 'No More Record Found.';\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "710ffa62e36ed9592e00b7eaeffcb495", "score": "0.5308278", "text": "function partialActivities() {\n $history = [];\n if (isset($_SESSION[\"history\"])) {\n $history = $_SESSION[\"history\"]['query'];;\n }\n if (count($history) > 0) {\n $counter = 0;\n ?>\n <div class=\"panel panel-success\" id=\"recent\">\n <div class=\"panel-heading\"><strong>Recent Activity</strong></div>\n <div class=\"panel-body\">\n <ul class=\"no-disk\">\n <?php foreach (array_reverse($history) as $historyItem): \n\t\t\t$items = explode(\"|||\", $historyItem);\n \t\t$query = $items[0];\n \t\t$searchtype = $items[1]\n\t?>\n <li>\n <span class=\"fa fa-search\"></span>\n <a href=\"./search.php?query=<?php echo $query ?>&searchtype=<?php echo $searchtype ?>\"><?php echo $query.\"(\".$searchtype.\")\" ;?></a>\n </li>\n <?php if (++$counter === 5) break; ?>\n <?php endforeach; ?>\n </ul>\n </div>\n <div class=\"panel-footer\">\n <a class=\"hyperlink\" href=\"./recentactivity.php\">See more and save search query</a>\n </div>\n </div>\n <?php\n }\n}", "title": "" }, { "docid": "215206d674b144977fa74dc6c857158e", "score": "0.5292792", "text": "public function showLiveEvent()\n\t{\n\t\tif (!$this->input->is_ajax_request()) \n\t\t{\n\t show_error(\"No direct access allowed\");\n\t\t}else{ \n\t\t\t$data[\"date\"] = $date = $this->Common_games_model->filterval($this->input->get('date',true));\n\t\t\t$data[\"game\"] = 'otomobil-yarisi';\n\t\t\t$list = $this->Common_games_model->get_live_event($this->sportFK,$date);\n\t\t\t$events = array_filter(array_map(function($val){\n\t\t\t//if($val->status_text != 'Finished' && $val->gameStarted != '' && $val->gameEnded==''){\t\t\t\n\t\t\tif($val->status_text == 'Bitti'){\n\t\t\t\t\t\treturn $val->id;\n\t\t\t\t}\n\t\t\t},array_values($list)));\t\n\t\t\t//$this->test($events);\n\t\t\tif(count($events)>0){\n\t\t\t\t$wherein = $events;\n\t\t\t\t$data[\"list\"] = $this->Motorsport_model->get_live_list($this->sportFK,$date,$wherein);\n\t\t\t\techo json_encode($data[\"list\"]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c6eb8b111723a6ccbccdfe57979ca99a", "score": "0.52846575", "text": "function echoDetailModal($response)\n{\n $imdbID = $response['imdbID'];\n $title = $response['Title'];\n $released = $response['Released'];\n $plot = $response['Plot'];\n $rated = $response['Rated'];\n $director = $response['Director'];\n $actors = $response['Actors'];\n $country = $response['Country'];\n $genre = $response['Genre'];\n echo '<div style=\"height: 20%;\">';\n echo '<button type=\"button\" class=\"btn btn-dark btn-lg\" data-toggle=\"modal\" data-target=\"#modalForID' . $imdbID . '\">Read More</button>';\n echo '<div class=\"modal fade\" id=\"modalForID' . $imdbID . '\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title text-center\">' . $title . '</h5>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12 text-left mb-2\"><b>Released: &nbsp;</b>' . $released . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Rated: &nbsp;</b>' . $rated . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Genre: &nbsp;</b>' . $genre . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Director: &nbsp;</b>' . $director . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Actors: &nbsp;</b>' . $actors . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Country: &nbsp;</b>' . $country . '</div>\n <div class=\"col-12 text-left mb-2\"><b>Plot: &nbsp;</b>' . $plot . '</div>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>\n </div>\n </div>\n </div>\n </div>';\n echo '</div>';\n}", "title": "" }, { "docid": "61a82d67550780e9962095a2954e4d2c", "score": "0.5277769", "text": "function newsDetails(){\n\tinclude_once('../core/class.crud.php');\n\t$param =json_decode(file_get_contents('php://input'));\n\t$catCRUD = new crud('package_news');\n $actionItem = $param->action;\n\tunset($param->action);\n\t\n\tswitch($actionItem ){\n\t\tcase \"Insert\": {\n\t\t\t$returnArr = $catCRUD->addItems($param);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"Get\":{\n\t\t\t$returnArr = $catCRUD->getItems();\n\t\t\tbreak;\n\t\t}\n\t\tcase \"Order\":{\n\t\t\t$returnArr = $catCRUD->orderItems($param);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"Edit\" :{\n\t\t\t$returnArr = $catCRUD->editItems($param);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"Delete\" :{\n\t\t\t$returnArr = $catCRUD->deleteItems($param);\n\t\t\tbreak;\n\t\t}\n\t}\n\techo $_GET['jsoncallback'] . $returnArr ;\n}", "title": "" }, { "docid": "a85b5d9ee4a9773c8932abf5db248768", "score": "0.5256944", "text": "public function activity($id){\n\t\t$data['activity'] = $this->admin_model->get_the_activity($id);\n\n\t\t$this->load->view('admin_layouts/header');\n\t\t$this->load->view('admin_layouts/sidebar');\n\t\t$this->load->view('admin_layouts/activity',$data);\n\t\t$this->load->view('admin_layouts/footer');\n\t}", "title": "" }, { "docid": "d61d030a95931b44b65c467c4b238994", "score": "0.5244746", "text": "public function ajaxloadannouncement(){\n $length\t\t\t\t= \tInput::get('length');\n $start\t\t\t\t= \tInput::get('start');\n $search\t\t\t\t= \tInput::get('search');\n\t$totaldata \t\t\t= \tAnnouncementModel::count();\n $total_filtered_data\t=\t$totaldata;\n $search\t\t\t\t=\t$search['value'];\n $order\t\t\t\t=\tInput::get('order');\n $column_id\t\t\t=\t$order[0]['column'];\n $column_order\t\t\t=\t$order[0]['dir'];\n if($search != null){\n $announcements\t\t=\tAnnouncementModel::GetAnnouncement($search,$start,$length,$column_id,$column_order);\n }else{\n $announcements\t\t=\tAnnouncementModel::GetAnnouncement($search=\"\",$start,$length,$column_id,$column_order);\n }\n $table_data\t\t\t=\tarray();\n return view('admin.announcement.indexajax', ['announcements' => $announcements,'total_data' => $totaldata ,'total_filtered_data' => $total_filtered_data ]);\n }", "title": "" }, { "docid": "54a765287451cbfa9ecf9007b3345855", "score": "0.5236977", "text": "public function ResultAdditionalInfo(){\n\t\t\t$id = strtoupper($this->input->post(\"id\"));\n\t\t\t$data['AdditionalInfo'] = $this->M_customeradditional->getAdditionalInfoByKey($id);\n\t\t\t$this->load->view('CustomerRelationship/Additional/AjaxModal/Result/ResultAdditionalInfo',$data);\n\t\t}", "title": "" }, { "docid": "cf41107117817761190c248979d5f4e2", "score": "0.52341306", "text": "public function show(Activity $activity)\n {\n //\n }", "title": "" }, { "docid": "cf41107117817761190c248979d5f4e2", "score": "0.52341306", "text": "public function show(Activity $activity)\n {\n //\n }", "title": "" }, { "docid": "cf41107117817761190c248979d5f4e2", "score": "0.52341306", "text": "public function show(Activity $activity)\n {\n //\n }", "title": "" }, { "docid": "cf41107117817761190c248979d5f4e2", "score": "0.52341306", "text": "public function show(Activity $activity)\n {\n //\n }", "title": "" }, { "docid": "cf41107117817761190c248979d5f4e2", "score": "0.52341306", "text": "public function show(Activity $activity)\n {\n //\n }", "title": "" }, { "docid": "37cda2cafaea9e1ce1b44a643cf9ccb0", "score": "0.5206749", "text": "public function getDataViewAct() {\n $data['Activity_information']=$this->lang->line('Activity_information');\n $data['Title']=$this->lang->line('Title');\n $data['Time']=$this->lang->line('Time');\n $data['Number_Of_Participants']=$this->lang->line('Number_Of_Participants');\n $data['Description']=$this->lang->line('Description');\n $data['DELETE']=$this->lang->line('DELETE');\n $data['Event']=$this->lang->line('Event');\n $data['Participate_no']=$this->lang->line('Participate_no');\n $data['already_participates']=$this->lang->line('already_participates');\n $data['Participate']=$this->lang->line('Participate');\n $data['Wil_activiteit']=$this->lang->line('Wil_activiteit');\n return $data;\n }", "title": "" }, { "docid": "22b9e5f1a3a4a5b9ac9936571b61f998", "score": "0.51918495", "text": "public function ajax_data(){\n\t\tglobal $DOT;\n\t\t\n\t\tif ($DOT->post(DOT_AJAX_VAR)){\n\t\t $calendar_id = $DOT->post('calendar_id');\n\t\t \n\t\t $data = new stdClass;\n\t\t \n\t\t $data->availability = $DOT->models->availability->get($calendar_id); \n\t\t\t \n\t\t echo json_encode($data);\n\t\t}\n\t\telse{\n\t\t echo 'false';\n\t\t}\n\t\t\n\t\texit;\n\t }", "title": "" }, { "docid": "bfa70aecd80e39411ec28393cf28d5f8", "score": "0.5190256", "text": "public function show_proof_details() {\n if ($this->isAjax()) {\n $mdata=array();\n $error='';\n $data=$this->input->post();\n $leaddat=array();\n foreach ($data as $key=>$val) {\n if ($key=='proof_id') {\n $proof_id=$val;\n } else {\n $leaddat[$key]=$val;\n }\n }\n /* Save data to session */\n usersession('leaddata',$leaddat);\n $this->load->model('artproof_model');\n $proof=$this->artproof_model->get_proof_data($proof_id);\n $mdata['content']=$this->load->view('artproof/details_view',$proof,TRUE);\n $this->ajaxResponse($mdata, $error);\n }\n }", "title": "" }, { "docid": "d1a9b1deee7e4416973aa254c55e1b3e", "score": "0.51863164", "text": "public function getajax() {\n // $id = $_POST['id'];\n $test = armrestbusiness::showmodels ();;\n // $result = $test->getData($id);\n $result=$test;\n $html=1;\n /*foreach($result as $row)\n {\n $html =\t'<p>Новый контент</p>.'.\n '<tr>\n <td>' . $row->name . '</td>' .\n '<td>' . $row->address . '</td>' .\n '<td>' . $row->age . '</td>' .\n '</tr>';\n }*/\n return $html;\n }", "title": "" }, { "docid": "ba0b81f02ff41b36161b8bb1b72f59e0", "score": "0.5185131", "text": "public function editActivity()\n {\n if($_SERVER['REQUEST_METHOD'] === 'POST') {\n $activityId = $_POST['activity_id'];\n $this->activityModel->editActivity($activityId);\n }\n\n }", "title": "" }, { "docid": "1a8ca25f05576d390f86a9e14d747e1a", "score": "0.51838475", "text": "public function ajaxGetAction()\n {\n $this->view->disable();\n $response = new \\Phalcon\\Http\\Response();\n if (!$this->request->isAjax()) {\n echo \"is not Ajax ! \";\n }\n if (!$this->request->isPost()) {\n echo \"is not Post ! \";\n }\n $tantons = TantouMrs::find(array(\n 'order' => 'cd',\n 'conditions' => ' cd LIKE ?1 ',\n 'bind' => array(1 => $this->request->getPost('cd').'%')\n ));\n $res_flds = [\"id\",\"cd\",\"name\",];\n $resData = array();\n foreach ($tantons as $tanton) {\n $resAdata = array();\n foreach ($res_flds as $res_fld) {\n $resAdata[$res_fld] = $tanton->$res_fld;\n }\n $resData[] = $resAdata;\n }\n $response->setContent(json_encode($resData));\n return $response;\n }", "title": "" }, { "docid": "65fd3202add37109a95f7a927cf3af3f", "score": "0.51818264", "text": "public function getEventDetails()\n\t{\n\t\tif($this->request->is('get')){\n\t\t\t$anyTable = $this->loadModel('Event');\n\t\t\t$getUsersList=$this->Event->find('first',array('conditions'=>array('Event.id'=>$_GET['event_id']),'recursive'=>1));\n\t\t\tif($getUsersList)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$finalDataArray['event_token']=$getUsersList['Event']['event_token'];\n\t\t\t\t$finalDataArray['event_name']=$getUsersList['Event']['event_name'];\n\t\t\t\t$finalDataArray['event_type']=$getUsersList['EventCategory']['name'];\n\t\t\t\t$finalDataArray['gender']=$getUsersList['Event']['gender'];\n\t\t\t\t\n\t\t\t\tif($getUsersList['Event']['image']!=\"\")\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t$finalDataArray['image']='https://looklistenandfeel.online'.$this->webroot.'img/media/'.$getUsersList['Event']['image'];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$finalDataArray['image']=\"\"; \n\t\t\t\t}\n\t\t\t\t$finalDataArray['expiry_time']=$getUsersList['Event']['event_date'];\n\t\t\t\t$finalDataArray['total_friends']=0;\n\t\t\t\tif($getUsersList['User']['full_name']!=\"\")\n\t\t\t\t{\n\t\t\t\t$finalDataArray['user_name']=$getUsersList['User']['full_name']; \n\t\t\t\t}\n\t\t\t else\n\t\t\t\t{\n\t\t\t\t$finalDataArray['user_name']=$getUsersList['User']['first_name'].\" \".$getUsersList['User']['last_name']; \t\n\t\t\t\t} \n\t\t\t\t//$finalDataArray['image']=$getUsersList['User']['profile_image'];\n\t\t\t\t$finalDataArray['total_medias']=count($getUsersList['Media']); \n\t\t\t\tif(isset($_GET['get_notification']) && $_GET['get_notification']==\"1\")\n\t\t\t\t{\n\t\t\t\t//get the joined users\n\t\t\t\t$notificationsData=$this->EventUser->find('all',array('conditions'=>array('EventUser.event_id'=>$_GET['event_id']),'fields'=>array('EventUser.user_id')));\n\t\t\t\tforeach($notificationsData as $key=>$value)\n\t\t\t\t{\n\t\t\t\t\t$joinedUser[]=$value['EventUser']['user_id'];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$getMediaList=$this->Media->find('all', array('order'=>array('Media.id'=>'desc'), 'conditions' => array( \"Media.user_id\" => $joinedUser , \"Media.event_id\" =>$_GET['event_id'])));\n\t\t\t\t$finalNoti=array();\n\t\t\t\tforeach($getMediaList as $key=>$value)\n\t\t\t\t{\n\t\t\t\t $finalNoti[$key]['media_id']=$value['Media']['id'];\n\t\t\t\t $finalNoti[$key]['time']=strtotime($value['Media']['created']);\n\t\t\t\t if($value['User']['profile_image'])\n\t\t\t\t {\n\t\t\t\t $finalNoti[$key]['profile_image'] ='https://looklistenandfeel.online'.$this->webroot.'img/user_profile_pics/'.$value['User']['profile_image'];\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t $finalNoti[$key]['profile_image']=\"\"; \n\t\t\t\t }\n\t\t\t\t $finalNoti[$key]['user_name']=$value['User']['full_name'];\n\t\t\t\t $finalNoti[$key]['message']=\" Uploaded new\";\n\t\t\t\t if($value['Media']['media_type']==1){\n\t\t\t\t $finalNoti[$key]['mdeia_type']=\" Video.\";\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t $finalNoti[$key]['mdeia_type']=\" Image.\"; \n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t$result = array('status'=>1,'eventDetails'=>$finalDataArray,'notificationsData'=>$finalNoti); \n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t$result = array('status'=>1,'eventDetails'=>$finalDataArray); \t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t$result = array('status'=>0,'message'=>'No event details found'); \n\t\t\t}\n\t\t\t\n\t\t}\n\t\t echo json_encode($result);die;\n\t\t\n\t}", "title": "" }, { "docid": "d2520de4c13931872e405f0ee0e8463e", "score": "0.5167195", "text": "function history()\n {\n if(!$this->input->is_ajax_request())\n exit('No direct script access allowed');\n\n $medHistory = $this->meds->history($this->uri->segment(3));\n $med = $this->db\n ->select(\"child_meds.*,CONCAT(children.first_name,' ',children.last_name) as child_name\")\n ->where('child_meds.id', $this->uri->segment(3))\n ->from('child_meds')\n ->join('children', 'children.id=child_meds.child_id')\n ->get()->row();\n\n $this->load->view($this->module.'meds/med_history_modal', compact('medHistory', 'med'));\n }", "title": "" }, { "docid": "1a7771fb83155e3045857614c51520dd", "score": "0.5165484", "text": "public function ModalHarvester(){\n\t\t\t$this->load->view('CustomerRelationship/Additional/AjaxModal/Modal/ModalHarvester');\n\t\t}", "title": "" }, { "docid": "02c4130a26f1c0f97402a3cad5b29a10", "score": "0.5159993", "text": "public function ModalCustomer(){\n\t\t\t//$data['Customer'] = $this->M_customer->getCustomer();\n\t\t\t$this->load->view('CustomerRelationship/Additional/AjaxModal/Modal/ModalCustomer');\n\t\t}", "title": "" }, { "docid": "a608afce8b518967fd0d1289fc7a1b7b", "score": "0.5156205", "text": "public function getInfosCustomersModal()\n {\n $this->id_customer = $this->input->post('id');\n $return = $this->modelCustomers->selectAllCustomersForModal($this->id_customer);\n echo json_encode($return);\n }", "title": "" }, { "docid": "fbd9729f044fa8eb77c2d63a7685a3f9", "score": "0.51518446", "text": "public function getSection() {\n $incomingData = $this->readHttpRequest();\n $formData = json_decode($incomingData);\n\n $result = $this->ActivityFaculty_model->getSection($formData);\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "53b219657558042abdffb6c6248c1cf5", "score": "0.5145987", "text": "function recent_get()\n {\n $options = $this->get();\n\n $recent_activities = $this->activities_model->get_recent_activities($options);\n\n //As long as it is an array, we return success. Even if empty.\n if (is_array($recent_activities))\n {\n $this->response($recent_activities, 200);\n }\n else\n {\n $this->response('Error getting activities', 404);\n }\n }", "title": "" }, { "docid": "293ca7e828b929234d505871d2296970", "score": "0.51387507", "text": "function visaProgressAjax() {\n if($this->pageHandler(\"immigration\", \"visas\") === true) {\n\n $this->view->model = new model_visa($this->_request->id);\n \n $this->view->setView(array(\n \"page\"=>\"immigration/visaProgress\",\n \"template\"=>\"empty\",\n \"header\"=>false\n ));\n $this->_request->addHTML($this->view->getView());\n echo $this->_request->response();\n }\n }", "title": "" }, { "docid": "4edc75a7957631f86b93ece21f48c080", "score": "0.5138621", "text": "public function infoAction() {\n $this->pathView = '/ui/modal/info';\n if ($this->collectdata() == false)\n return false;\n if (isset($this->data->title))\n $this->setTitle($this->data->title);\n if (isset($this->data->btn))\n $this->setButton($this->data->btn);\n if (isset($this->data->content))\n $this->setData($this->data->content);\n return $this->render();\n }", "title": "" }, { "docid": "994e69909fb82d814a5664190cf7b7c3", "score": "0.5136397", "text": "public function getJS()\n\t{\n\t\treturn <<<END\n\t\t\t<script>\n\t\t\t\t$(document).ready(function(){\n\t\t\t\t\tvar activitiesFilterGroups = [];\n\t\t\t\t\n\t\t\t\t\t// bind click handlers to 'view' and 'history' buttons\n\t\t\t\t\tvar handleButtons = function()\n\t\t\t\t\t{\n\t\t\t\t\t\t$('.widget-activities .mt-action-buttons a:not(.handled)').each(function()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(($(this).data('profile') == false) || $(this).hasClass('dx-button-history'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$(this).click(function()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tview_list_item('form', $(this).data('item_id'), $(this).data('list_id'), 0, 0, '', '');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$(this).addClass('handled');\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\t\n\t\t\t\t\thandleButtons();\n\t\t\t\t\t\n\t\t\t\t\tvar items = $('.widget-activities .mt-actions > .mt-action');\n\t\t\t\t\tvar mult = (items.length < 5 ? items.length : 5);\n\t\t\t\t\t\n\t\t\t\t\t// init scrollbar\n\t\t\t\t\t$('.widget-activities .mt-actions').slimScroll({\n\t\t\t\t\t\theight: (items.first().outerHeight() * mult) + 'px' // calculate height of scrollable area\n\t\t\t\t\t})\n\t\t\t\t\t\n\t\t\t\t\t// lazyload more records when bottom of scrollable area has reached\n\t\t\t\t\t.bind('slimscroll', function(e, pos)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(pos != 'bottom')\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar request = {\n\t\t\t\t\t\t\tparam: 'OBJ=ACTIVITIES',\n\t\t\t\t\t\t\tlastId: $('.widget-activities .mt-actions > .mt-action').last().data('id'),\n\t\t\t\t\t\t\tgroups: activitiesFilterGroups\n\t\t\t\t\t\t};\n\t\t\t\t\t\t\n\t\t\t\t\t\tshow_page_splash(1);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\turl: DX_CORE.site_url + 'block_ajax',\n\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\tdata: request,\n\t\t\t\t\t\t\tsuccess: function(data)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(typeof data.success != \"undefined\" && data.success == 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnotify_err(data.error);\n\t\t\t\t\t\t\t\t\thide_page_splash(1);\n\t\t\t\t\t\t\t\t\treturn;\n\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\t$('.widget-activities > .portlet-body .mt-actions').append(data.html);\n\t\t\t\t\t\t\t\thandleButtons();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thide_page_splash(1);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: function(jqXHR, textStatus, errorThrown)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconsole.log(textStatus);\n\t\t\t\t\t\t\t\tconsole.log(jqXHR);\n\t\t\t\t\t\t\t\thide_page_splash(1);\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\n\t\t\t\t\tvar labels = $('.widget-activities > .portlet-title > .actions > .btn-group label');\n\t\t\t\t\tvar checkboxes = $('.widget-activities > .portlet-title > .actions > .btn-group input');\n\t\t\t\t\t\n\t\t\t\t\t// prevent closing of filter dropdown after clicking on checkbox label\n\t\t\t\t\tlabels.click(function(e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t// filtering of results\n\t\t\t\t\tcheckboxes.change(function()\n\t\t\t\t\t{\n\t\t\t\t\t\tactivitiesFilterGroups = [];\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckboxes.each(function()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($(this).is(':checked'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tactivitiesFilterGroups.push($(this).val());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar request = {\n\t\t\t\t\t\t\tparam: 'OBJ=ACTIVITIES',\n\t\t\t\t\t\t\tgroups: activitiesFilterGroups\n\t\t\t\t\t\t};\n\t\t\t\t\t\t\n\t\t\t\t\t\tshow_page_splash(1);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\turl: DX_CORE.site_url + 'block_ajax',\n\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\tdata: request,\n\t\t\t\t\t\t\tsuccess: function(data)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(typeof data.success != \"undefined\" && data.success == 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnotify_err(data.error);\n\t\t\t\t\t\t\t\t\thide_page_splash(1);\n\t\t\t\t\t\t\t\t\treturn;\n\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\tvar root = $('.widget-activities > .portlet-body .mt-actions');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\troot.html(data.html);\n\t\t\t\t\t\t\t\thandleButtons();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\thide_page_splash(1);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: function(jqXHR, textStatus, errorThrown)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconsole.log(textStatus);\n\t\t\t\t\t\t\t\tconsole.log(jqXHR);\n\t\t\t\t\t\t\t\thide_page_splash(1);\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</script>\nEND;\n\t}", "title": "" }, { "docid": "5ff0cba693c3c5839e3f562b69b2aa6f", "score": "0.5130641", "text": "function visaDocumentReminderAjax() {\n if($this->pageHandler(\"immigration\", \"visa-document-reminder\") === true) {\n\n $this->crud = $this->_acl->getCrudAccess($this->_currentUser);\n $this->view->user = $this->_currentUser;\n\n $this->view->reminders = new model_documentReminder();\n $this->view->userObj = new model_user();\n \n $this->view->setView(array(\n \"page\"=>\"immigration/visaDocumentReminder\",\n \"template\"=>\"empty\",\n \"header\"=>false\n ));\n\n $this->_request->addHTML($this->view->getView());\n echo $this->_request->response();\n\n }\n }", "title": "" }, { "docid": "29253bab2a80e16b7450d1e43f770753", "score": "0.5127458", "text": "function activities_hourly_get(){\n\t\t$current = $this->Activities_model->getHourlyActivitiesDashboard($this->get('from_date'), $this->get('from_date'));\n\t\tif ($current) {\n\t\t\t$this->response($current, 200); // 200 being the HTTP response code\n\t\t} else {\n\t\t\t$this->response(array('error' => 'Couldn\\'t save servey!'), 404);\n\t\t}\n\t}", "title": "" }, { "docid": "201addeb0011149fb1710ee62381f811", "score": "0.51238763", "text": "function getActivity($id,$staff_id,$pupil_id = null){\r\n\t\t$a = $this->find('all',array('conditions'=>array('id'=>$id)));\r\n\t\t\t$html = '<h3>'.$a[0]['Activity']['title'].'</h3>';\r\n\t\t\t$html .= '<div>';\r\n\t\t\t\t$html .= '<p>'.$a[0]['Activity']['activity'].'</p>';\r\n\t\t\t\t\r\n\t\t\t\tif(isset($pupil_id)){//something different for dialysis\r\n\t\t\t\t\t$html .= '<p style=\"width:20%;float:left;font-size:80%;\"><input type=\"checkbox\" name=\"'.$pupil_id.'-'.$id.'\" class=\"regular-checkbox big-checkbox\" value=\"1\" id=\"'.$id.'\"><label for=\"'.$id.'\">This One</label></p>';\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$html .= '<p style=\"width:20%;float:left;font-size:80%;\"><input type=\"checkbox\" name=\"'.$id.'\" class=\"regular-checkbox big-checkbox\" value=\"1\" id=\"'.$id.'\"><label for=\"'.$id.'\">This One</label></p>';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$html .= '<p class=\"icons-home\">\r\n\t\t\t\t<a href=\"'.Configure::read('webroot').'/activitys/hide/'.$id.'\">\r\n\t\t\t\t<img src=\"'.Configure::read('webroot').'/img/icons/eyegray.png\">\r\n\t\t\t\t</a></p>'; \r\n\t\t\t\t\r\n\t\t\t\t$html .= '<p class=\"icons-home\"><a href=\"'.Configure::read('webroot').'/activitys/delete/'.$id.'/'.$staff_id.'\">\r\n\t\t\t\t<img src=\"'.Configure::read('webroot').'/img/icons/delete.png\">\r\n\t\t\t\t</a></p>';\r\n\t\t\t\t\r\n\t\t\t\t$html .= '<p class=\"icons-home\">\r\n\t\t\t\t<a href=\"'.Configure::read('webroot').'/activitys/edit/'.$id.'\">\r\n\t\t\t\t<img src=\"'.Configure::read('webroot').'/img/icons/edit.png\">\r\n\t\t\t\t</a></p>';\r\n\t\t\t\t\r\n\t\t\t$html .= '</div>';\t\r\n\r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "ed75b6f6bc5e195a3d512827ff3a41f9", "score": "0.5123609", "text": "public function get_modal()\n {\n is_login();\n if ($this->input->post('id')) {\n $data['userData'] = getDataByid('users', $this->input->post('id'), 'users_id');\n echo $this->load->view('add_user', $data, true);\n } else {\n echo $this->load->view('add_user', '', true);\n }\n exit;\n }", "title": "" }, { "docid": "b11d1b4d272937dd9bb277b1e5caedca", "score": "0.5114602", "text": "public function getMembers() {\n //$returnValue = array();\n //$returnValue['status'] = \"failure\";\n $returnValue = \"failure\";\n global $mainframe;\n $mainframe = JFactory::getApplication();\n try {\n $model = $this->getModel(\"mobileData\");\n //$responseData = $model->contentAboutUsDetails();\n $membersResponseData = $model->contentMembersDetails();\n if ($membersResponseData == 'failure' || $membersResponseData == 'error') {\n $returnValue = \"failure\";\n } else {\n $response = array();\n $response['title'] = $membersResponseData->title;\n\n /*if ($_REQUEST['deviceAgent'] == 'PC') {\n $finalValue = $membersResponseData->introtext;\n } else {*/\n\n $doc = new DOMDocument();\n\n preg_match_all(\"/(<([\\w]+)[^>]*>)(.*?)(<\\/\\\\2>)/\", $membersResponseData->introtext, $matches, PREG_SET_ORDER);\n\n $finalValue=\"\";\n $m=0; \n foreach ($matches as $val) {\n \n if($val[2]==\"h3\"){\n if(strip_tags($val[3])){\n $padding = \"\";\n if($m!=0){$finalValue .= \"</ul></div>\"; $padding = \"style='padding-top:30px;'\"; }\n \n $finalValue .= \"<div class='span12' \".$padding.\"><div class='members_title'><label>\".strip_tags($val[3]).\"</label></div><ul class='members_list'>\";\n }\n \n $m++;\n }else if($val[2]==\"p\"){\n \n $doc->loadHTML($val[0]);\n $doc->preserveWhiteSpace = false;\n \n $link = \"\";\n $params2 = $doc->getElementsByTagName('img');\n $params3 = $doc->getElementsByTagName('a');\n\n $j = 0;\n foreach ($params3 as $param3) {\n if ($param3 && $j == 0) {\n $link = $param3->getAttribute('href');\n $j++;\n }\n }\n\n\n $jj = 0;\n foreach ($params2 as $param2) {\n $imgPath = $param2->getAttribute('src');\n $altText = $param2->getAttribute('alt');\n if ($param2 && $jj == 0 && $imgPath != \"plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/pdf_small.gif\") {\n\n\n if($link){\n $link = str_replace(\"/\", \"\\/\", $link);\n $anchor1=\"<a href='#' onclick='openInChildBrowser(\\\"$link\\\")'>\"; $anchor2=\"</a>\";\n }else{\n $anchor1=\"\"; $anchor2=\"\";\n }\n\n $finalValue .= \"<li>\".$anchor1.\"<img src='\" . JURI::base() . $imgPath . \"' alt='\".$altText.\"' align='absmiddle' width='75px' height='30px'>\".$anchor2.\"</li>\";\n\n $jj++;\n }\n } \n } \n }\n //}\n\n //$response['introtext1']=$finalValue;\n //$response['introtext']=$this->getIntroContentforIndexPage();\n \n //$response['memberlogos'] = $finalValue.\"</ul>\";\n \n $returnValue = $finalValue.\"</ul>\";\n //$returnValue['status'] = \"success\";\n \n //$teest = $finalValue.\"</ul>\";\n //$teest = \"dddddd\";\n //cho json_encode($teest);\n \n }\n } catch (Exception $ex) {\n JError::raiseError(500, \"Error Occured in About Us\");\n $returnValue['status'] = \"failure\";\n }\n return $returnValue;\n //echo json_encode($returnValue);\n $mainframe->close();\n }", "title": "" }, { "docid": "db2ed419fed7e780270d532e079c986c", "score": "0.5114156", "text": "public function store()\n {\n if (Request::ajax()) {\n $params = Input::all();\n\n if (isset($params['action_code']) && $params['action_code']) {\n $userName = Auth::check() ? $this->currentUser->username : trans('logs.someone');\n $userId = Auth::check() ? $this->currentUser->id : 0;\n $position = isset($params['position']) && $params['position'] ? $params['position'] : 0;\n $message = $userName . trans('logs.connect_to') . $params['action_code'] .' from '. $params['screen_code'] .' at '. Carbon::now();\n \n $activity = array(\n 'message' => $message,\n 'user_id' => $userId,\n 'screen_code' => $params['screen_code'],\n 'action_code' => $params['action_code'],\n 'position_click' => $position,\n );\n Activity::create($activity);\n }\n }\n }", "title": "" }, { "docid": "92739b5532559f2fa9bc261e6e1c9a31", "score": "0.5113692", "text": "public function ajax_detail_personal($id)\n {\n $data = $this->db->query(\"SELECT --customer_religion.cust_religion_id, customer_religion.cust_religion_name,\n customer_personal.cust_personal_id, customer_personal.cust_code, customer_personal.cust_name, \n customer_personal.cust_birth_date, customer_personal.cust_type_id, customer_personal.cust_gender, \n customer_personal.cust_religion_id, customer_personal.cust_personal_email,\n customer_personal.cust_personal_phone, customer_personal.cust_personal_mobile_phone, customer_personal.cust_personal_address, \n customer_personal.cust_start_date_contract, customer_personal.cust_end_date_contract, customer_personal.cust_personal_insert, \n customer_personal.cust_personal_update, customer_personal.cust_personal_user, customer_personal.status\n FROM customer_personal \n \n\n WHERE customer_personal.cust_personal_id='$id' \")->row();\n echo json_encode($data);\n }", "title": "" }, { "docid": "4fa8e729ed5f321e8e9266c9ea08913b", "score": "0.51044846", "text": "public function ModalItem(){\n\t\t\t$this->load->view('CustomerRelationship/Additional/AjaxModal/Modal/ModalItem');\n\t\t}", "title": "" }, { "docid": "a859c45b3a834ef6be98af7f56fbf3c7", "score": "0.51034564", "text": "public function getActivities()\n\t{\n JModelLegacy::addIncludePath(JPATH_ROOT.'/components/com_hwdmediashare/models');\n $this->_model = JModelLegacy::getInstance('Activities', 'hwdMediaShareModel', array('ignore_request' => true));\n $this->_model->populateState();\n $this->_model->setState('user.id', $this->getState('filter.user_id'));\n\t\t$this->_model->setState('list.ordering', 'a.created');\n\t\t$this->_model->setState('list.direction', 'desc');\n \n $this->_activities = $this->_model->getItems();\n\n return $this->_activities; \n\t}", "title": "" }, { "docid": "bb5af9b31f984fd18c6930130ce7cd88", "score": "0.5100484", "text": "public function actionDetails(): Response\n {\n $requestId = $this->request->getRequiredBodyParam('requestId');\n $request = Plugin::getInstance()->getRequestData($requestId);\n\n if ($request['requestHeaders'] && $request['requestBody'] && $this->_isJson($request['requestHeaders'])) {\n $request['requestBody'] = $this->_prettyJson($request['requestBody']);\n }\n if ($request['responseHeaders'] && $request['responseBody'] && $this->_isJson($request['responseHeaders'])) {\n $request['responseBody'] = $this->_prettyJson($request['responseBody']);\n }\n\n return $this->asJson([\n 'html' => Craft::$app->getView()->renderTemplate('webhooks/_activity/details', [\n 'request' => $request,\n ]),\n ]);\n }", "title": "" }, { "docid": "d35b90db16e2129ce5713b4b67b43eaa", "score": "0.5096011", "text": "public function updateActivity() {\n $incomingData = $this->readHttpRequest();\n $formData = json_decode($incomingData);\n\n $updateResult = $this->ActivityFaculty_model->updateActivity($formData);\n\n if($updateResult == true) {\n $data['status'] = 'ok';\n } else {\n $data['status'] = 'fail';\n }\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "47150242e495ed96e0c6c898687e685b", "score": "0.50941443", "text": "public function get_ajax_data(){\n\n // Envio en formato json las franquicias obtenidas en el modelo\n $this->output->set_content_type('application/json')->set_output(json_encode($this->franquicias->get_ajax_data()));\n }", "title": "" }, { "docid": "a1d144ad983da8d8dcb0687037b544ec", "score": "0.50931907", "text": "public function fetchLogsAjax() {\n $dateFrom = Request::get('from', 'string');\n $dateTo = Request::get('to', 'string');\n\n $dt = new \\DateTime($dateTo);\n $dt->modify('+1 day');\n\n $logs = Log::fetchLogs($dateFrom, $dt->format('Y-m-d'));\n\n echo json_encode($logs);\n }", "title": "" }, { "docid": "61ce3f1cb16db1b9c00d4f61ac1ff4fa", "score": "0.5091056", "text": "function event_details()\n\t{\n\t\t$data['event'] = $this->get_event_data();\n\n\t\t// get pagination\n\t\t$rownum = (int)$this->EE->input->get('rownum');\n\t\t$perpage = (int)$this->EE->input->get('perpage');\n\t\tif ($perpage == 0)\n\t\t{\n\t\t\t$perpage = (int)$this->EE->input->cookie('perpage');\n\t\t\tif ($perpage == 0) { $perpage = 50; }\n\t\t}\n\n\t\t$data['attendance'] = $this->EE->rsvp_model->get_rsvp_attendance(array(\n\t\t\t'entry_id' => $data['event']['entry_id'],\n\t\t\t'limit' => $perpage,\n\t\t\t'offset' => $rownum,\n\t\t))->result_array();\n\t\tforeach ($data['attendance'] as $key => $row)\n\t\t{\n\t\t\t$data['attendance'][$key]['member_link'] = BASE.AMP.'C=myaccount'.AMP.'id='.$row['member_id'];\n\t\t}\n\n\t\t$data['attendance_export_link'] = BASE.AMP.RSVP_CP.AMP.'method=attendance_export'.AMP.'entry_id='.$data['event']['entry_id'];\n\t\t$data['email_link'] = BASE.AMP.RSVP_CP.AMP.'method=email_attendees'.AMP.'entry_id='.$data['event']['entry_id'];\n\t\t$data['edit_entry_link'] = BASE.AMP.'C=content_publish'.AMP.'M=entry_form'.AMP.'channel_id='.$data['event']['channel_id'].AMP.'entry_id='.$data['event']['entry_id'];\n\n\t\t// configure pagination\n\t\t$this->EE->load->library('pagination');\n\t\t$current_url = BASE.AMP.RSVP_CP.AMP.'method=event_details'.AMP.'entry_id='.$data['event']['entry_id'].AMP.'perpage='.$perpage;\n\t\t$page_config = $this->get_pagination_config($current_url, $data['event']['total_members_responded'], $perpage);\n\t\t$this->EE->pagination->initialize($page_config);\n\t\t$data['pagination'] = $this->EE->pagination->create_links();\n\n\t\t// load view\n\t\t$this->EE->cp->set_breadcrumb(BASE.AMP.RSVP_CP.AMP.'method=events', lang('rsvp_events'));\n\t\t$this->EE->view->cp_page_title = $data['event']['title'];\n\n\t\treturn $this->EE->load->view('event_details', $data, TRUE);\n\t}", "title": "" }, { "docid": "8c4783c44a4a9bcd3de3c61bd354a12f", "score": "0.5088503", "text": "public function load_insert_member_view(){\r\n $data;\r\n if(!empty($_POST['id'])){\r\n\r\n $result=$this->Team_Modal->get_all($this->table,$_POST['id']);\r\n $this->team_info=$result->fetch_assoc();\r\n $data=$this->load->view('admin/team/admin_add_member',$this->team_info,TRUE);\r\n }\r\n\r\n else{\r\n $data=$this->load->view('admin/team/admin_add_member',\"\",TRUE);\r\n }\r\n\r\n echo json_encode(array(\"view\"=>$data));\r\n\r\n }", "title": "" }, { "docid": "61c564245c1bfa0e11d7fbea47fb74b6", "score": "0.508841", "text": "public function getCourse() {\n $incomingData = $this->readHttpRequest();\n $formData = json_decode($incomingData);\n\n $result = $this->ActivityFaculty_model->getCourse($formData);\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "6a601f78365964957354edb74f2b9224", "score": "0.50850016", "text": "function ajax_update_activity_contents () {\r\n\t\t$bpfb_code = $activity = '';\r\n\t\t$aid = 0;\r\n\t\t$codec = new BpfbCodec;\r\n\t\tif (@$_POST['data']['bpfb_video_url']) {\r\n\t\t\t$bpfb_code = $codec->create_video_tag($_POST['data']['bpfb_video_url']);\r\n\t\t}\r\n\t\tif (@$_POST['data']['bpfb_link_url']) {\r\n\t\t\t$bpfb_code = $codec->create_link_tag(\r\n\t\t\t\t$_POST['data']['bpfb_link_url'],\r\n\t\t\t\t$_POST['data']['bpfb_link_title'],\r\n\t\t\t\t$_POST['data']['bpfb_link_body'],\r\n\t\t\t\t$_POST['data']['bpfb_link_image']\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (@$_POST['data']['bpfb_photos']) {\r\n\t\t\t$images = $this->move_images($_POST['data']['bpfb_photos']);\r\n\t\t\t$bpfb_code = $codec->create_images_tag($images);\r\n\t\t}\r\n\r\n\t\t$bpfb_code = apply_filters('bpfb_code_before_save', $bpfb_code);\r\n\r\n\t\t// All done creating tags. Now, save the code\r\n\t\t$gid = (int)@$_POST['group_id'];\r\n\t\tif ($bpfb_code) {\r\n\t\t\t$content = @$_POST['content'] . \"\\n\" . $bpfb_code;\r\n\t\t\t$content = apply_filters('bp_activity_post_update_content', $content);\r\n\t\t\t$aid = $gid ?\r\n\t\t\t\tgroups_post_update(array('content' => $content, 'group_id' => $gid))\r\n\t\t\t\t:\r\n\t\t\t\tbp_activity_post_update(array('content' => $content))\r\n\t\t\t;\r\n\t\t\tglobal $blog_id;\r\n\t\t\tbp_activity_update_meta($aid, 'bpfb_blog_id', $blog_id);\r\n\t\t}\r\n\t\tif ($aid) {\r\n\t\t\tob_start();\r\n\t\t\tif ( bp_has_activities ( 'include=' . $aid ) ) {\r\n\t\t\t\twhile ( bp_activities() ) {\r\n\t\t\t\t\tbp_the_activity();\r\n\t\t\t\t\tlocate_template( array( 'activity/entry.php' ), true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$activity = ob_get_clean();\r\n\t\t}\r\n\t\theader('Content-type: application/json');\r\n\t\techo json_encode(array(\r\n\t\t\t'code' => $bpfb_code,\r\n\t\t\t'id' => $aid,\r\n\t\t\t'activity' => $activity,\r\n\t\t));\r\n\t\texit();\r\n\t}", "title": "" }, { "docid": "95ab13d2b1e73644f02af4008a78c267", "score": "0.508452", "text": "function get_detalleventa()\r\n {\r\n if($this->input->is_ajax_request()){\r\n $venta_id = $this->input->post(\"venta_id\");\r\n \r\n $this->load->model('Detalle_venta_model');\r\n $detalle = $this->Detalle_venta_model->get_detalle_venta($venta_id);\r\n \r\n echo json_encode($detalle);\r\n }else{\r\n show_404();\r\n }\r\n }", "title": "" }, { "docid": "dd876090efb0058edd9e23b0492721c6", "score": "0.5079675", "text": "public function detail($city_id,$category_id,$activity_id)\n {\n $category = Category::findOrFail($category_id);\n $city = City::findOrFail($city_id); \n $activity = Activity::findOrFail($activity_id); \n $reviews = $activity->reviews; \n $owner = $activity->user;\n $activities = Activity::where('user_id', $owner->id)->get(); \n\n $user = auth()->user(); \n\n return view('activity.detail', compact('activity', 'city', 'owner','user', 'category', 'activities', 'reviews')); \n }", "title": "" } ]
ad700c9ceba356d346a9df22907fbd8b
Returns a time to live left for a given key, in milliseconds. If the key doesn't exist, FALSE is returned.
[ { "docid": "0db97cc207a60733943f11dd2e43c485", "score": "0.0", "text": "public function pttl($key) {}", "title": "" } ]
[ { "docid": "ae67c59793039bae3c5831d468af1cd6", "score": "0.70474964", "text": "public static function GetTimeRemaining($sesskey)\n {\n //NOTE: This function is called by IsValidSession so it may not use it to validate the session.\n global $SESSDB;\n \n $q = $SESSDB->prepare(\"SELECT deleteafter FROM `smap` WHERE sesskeyhash=:sesskeyhash\");\n $sesskeyhash = self::SessionHash($sesskey);\n $q->bindParam(':sesskeyhash', $sesskeyhash);\n $q->execute();\n $res = $q->fetch();\n\n if($res === FALSE)\n return FALSE;\n\n $remaining = (int)$res['deleteafter'] - time();\n if($remaining <= 0)\n {\n self::EndSession($sesskey);\n return FALSE;\n }\n else\n {\n return $remaining;\n }\n }", "title": "" }, { "docid": "4abbff554a49ba850c85bf1166f5d594", "score": "0.6934183", "text": "public function pexpiretime(string $key): Redis|int|false;", "title": "" }, { "docid": "27681d281b217bd68b71959a1a03fc85", "score": "0.68222064", "text": "public function expiretime(string $key): Redis|int|false;", "title": "" }, { "docid": "00269acdecf828fbb84e0a62f339927d", "score": "0.6767998", "text": "public function ttl(string $key): Redis|int|false;", "title": "" }, { "docid": "a2ceb40355939978712335823de2dd88", "score": "0.6638247", "text": "public function getItemTtl($key)\n {\n $data = $this->memcached->get($key);\n\n if ($data['ttl'] === 0 || (time() - $data['start'] <= $data['ttl'])) {\n $ttl = $data['ttl'];\n } else {\n $this->deleteItem($key);\n }\n\n return (isset($ttl)) ? $ttl : false;\n }", "title": "" }, { "docid": "f7605e7a2f713203e7fcfa371c17307b", "score": "0.6392053", "text": "public static function timeOf($key)\n {\n static::$with_meta = true;\n\n $cache = static::get($key);\n\n static::$with_meta = false;\n\n if ($cache == null) {\n return false;\n }\n\n return $cache['__bow_meta']['expire_at'];\n }", "title": "" }, { "docid": "38f724021c4053fbb654b2fb64442864", "score": "0.62847924", "text": "public static function expired($key)\n {\n static::$with_meta = true;\n\n $cache = static::get($key);\n\n if ($cache == null) {\n return false;\n }\n\n static::$with_meta = false;\n\n return $cache['__bow_meta']['expire_at'] == '+'\n ? false\n : (time() > $cache['__bow_meta']['expire_at']);\n }", "title": "" }, { "docid": "97ea222ab5fe1bfc4cea64cc1a9e775b", "score": "0.62605447", "text": "public function ttl($key=null){\n\n //get remaining time\n if($key!==null){\n return $this->client->ttl($key);\n }\n return null;\n\n }", "title": "" }, { "docid": "97be2590c04713c5905317c3341ba3de", "score": "0.6210193", "text": "public function pttl(string $key): Redis|int|false;", "title": "" }, { "docid": "7a8612997757127b7924b5ab676bb0f9", "score": "0.6183399", "text": "public function timeLeft()\n {\n return Carbon::now()->addSeconds($this->redis->ttl($this->keys->visits));\n }", "title": "" }, { "docid": "5577cd24e8562a4f878c631bfd6c4616", "score": "0.60863173", "text": "public static function pStop($key)\n {\n if (!isset(self::$time[$key])) return false;\n return number_format(microtime(true) - self::$time[$key], 6);\n }", "title": "" }, { "docid": "9c2887cc4215094b64a836be3c87503d", "score": "0.6064153", "text": "function check_time( $k )\n {\n global $cache, $gc;\n\n if( ! is_string($k) ) { echo 'not string'; return; }\n\n if( array_key_exists( $k, $gc ) )\n if( date( \"m/d/Y h:i:s a\", time() ) > $gc[$k]['expires'] ) \n {\n try {\n unset( $cache[$k] );\n unset( $gc[$k]['expires'] );\n echo 'EVICTED EXPIRED KEY';\n return true;\n } catch ( Exception $e ) {\n echo 'An exception occurred: ', $e->getMessage(), \"\\n\";\n }\n return false;\n }\n }", "title": "" }, { "docid": "3238951e21eb418cdd24d226c6538d15", "score": "0.60055935", "text": "function timeLeft()\n\t{\n\t\tglobal $dbconnect;\n\t\t$timeleft = 0;\n\n\t\t$function = \"SELECT ID, duration from times\";\n\t\t$queryfunction = mysqli_query($dbconnect, $function);\n\n\t\twhile($resultfunction = mysqli_fetch_assoc($queryfunction))\n\t\t{\n\t\t\t$savedId = $resultfunction[\"ID\"];\n\t\t\t$savedDuration = $resultfunction[\"duration\"];\n\t\t\t$newfunction = \"SELECT finished FROM done WHERE ID = '$savedId'\";\n\t\t\t$newquery = mysqli_query($dbconnect, $newfunction);\n\n\t\t\tif($newResult = mysqli_fetch_assoc($newquery))\n\t\t\t{\n\t\t\t\tif($newResult['finished'] == 'N')\n\t\t\t\t{\n\t\t\t\t\t$timeleft += $savedDuration;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$timeleft += $savedDuration;\n\t\t\t}\n\t\t}\n\n\t\treturn $timeleft;\n\t}", "title": "" }, { "docid": "79853177772413f1f0e9765bd59facbe", "score": "0.5972193", "text": "abstract public function cachedTime(string $key): ?int;", "title": "" }, { "docid": "b079e891e22ea9143edb81f04549e6fb", "score": "0.59631664", "text": "public function has($key)\n {\n $result = $this->mongo->findOne(array('_id' => $id), array('lifetime'));\n\n if ($result !== null) {\n $expire = (int) $result['lifetime'];\n return $expire === 0 || time() < $expire;\n }\n\n return false;\n }", "title": "" }, { "docid": "0a22d5f45b592a97796d033d33322dcc", "score": "0.59382755", "text": "public function getTimeLeft()\n {\n return $this->timeLeft;\n }", "title": "" }, { "docid": "2c5d21a2e5c0d5d3e16db1e199c6b23f", "score": "0.59123296", "text": "public function isExpired($key)\n {\n if ($this->_exists($key)) {\n $fileTime = gmdate('U', filemtime($this->_cacheFilePath($key)));\n return (!$fileTime || ((gmdate('U', time()) - $fileTime) >= $this->_maxAge)) ? true : false;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "cf99429d1d652017cbf28c1b65d56f71", "score": "0.5902553", "text": "public function pauseTimeLeft()\n {\n return $this->get('pause-time-left', 0);\n }", "title": "" }, { "docid": "0d15b19e867dc791e648bf5e9feb238c", "score": "0.58359593", "text": "public function isExpired($key)\n { \n return empty($_SESSION['__CACHE__'][$key]) || $_SESSION['__CACHE__'][$key][1] <= time();\n }", "title": "" }, { "docid": "bbaba9f5953ba2e21fea6fe0f1de9717", "score": "0.5813004", "text": "public function hLen(string $key): Redis|int|false;", "title": "" }, { "docid": "d82160ca17629fcb4625a8931ec7b43a", "score": "0.58104587", "text": "public function expired($key)\n {\n $key = $this->sanitize($key);\n $expired = false;\n\n try {\n $cacheExpiryTime = time() - $this->cacheExpiryTime;\n\n $expired = $this->cache->exp($key, $cacheExpiryTime);\n } catch (CacheException $exception) {\n }\n\n return $expired;\n }", "title": "" }, { "docid": "69a92c93b758e6e4d34cdc2a9bc157dc", "score": "0.5785785", "text": "public function hasExpired()\n\t{\n\t\treturn $this->getInstance()->load($this->getId()) ? FALSE : TRUE;\n\t}", "title": "" }, { "docid": "705a42fc7f7e133db085d8226db5eeb3", "score": "0.574489", "text": "public function timerIsRunning($key);", "title": "" }, { "docid": "87dd08fd394c063036b34106098fad63", "score": "0.570243", "text": "public function xlen(string $key): Redis|int|false;", "title": "" }, { "docid": "9a69cad98bd283584700173601cc6e90", "score": "0.56881404", "text": "function contains($key) {\n\t\tif(!isset($this->_cache[$key])) return false;\n\t\t$expiry_time = $this->_cache[$key][1];\n\t\t// FLAG values are always expired\n\t\tif($expiry_time == self::CACHE_FLAG) return false;\n\t\t// other special values are always current\n\t\tif($expiry_time <= 0) return true;\n\t\t// check the timestamp\n\t\tif($expiry_time > $this->now) return true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6259f209bb7ffb4887523ed7ee2aa0c5", "score": "0.56712466", "text": "function getLastAlive()\r\n {\r\n $timestamp = intval($this->getVariable('_pingTime'));\r\n if ($timestamp == 0)\r\n return 0;\r\n else\r\n return (time() - $timestamp);\r\n }", "title": "" }, { "docid": "07e81d3ff3c78adcad387028ff6ee434", "score": "0.56466687", "text": "function expired($name)\n {\n if (!isset($this->info[$name]))\n {\n return true;\n }\n else\n {\n return ($this->info[$name]<time());\n }\n }", "title": "" }, { "docid": "3dd932292be807381b2d9e72dceac3c4", "score": "0.56440467", "text": "function cacheObjectTimedOut ()\n {\n if ($this->cacheObjectExists()) {\n if (time() - filemtime($this->cacheObjectId) > $this->timeout) {\n $return = TRUE;\n } else {\n $return = FALSE;\n }\n } else {\n $return = TRUE;\n }\n\n return $return;\n }", "title": "" }, { "docid": "5df23f9ae1dae2d39a6bfa671bffc633", "score": "0.5624594", "text": "public function getTimeLeft()\n\t{\n\t\treturn $this->max_exec_time - $this->getRunningTime();\n\t}", "title": "" }, { "docid": "f79e05805495dc3650fd2defb7a717a5", "score": "0.5622143", "text": "public function ttl($key) {}", "title": "" }, { "docid": "6608555fca569a32c228bf8f8f8c43eb", "score": "0.5571638", "text": "function VerifyTime() {\r\n $current = time();\r\n // check if the session has expired\r\n $this->err_level = 16;\r\n $this->err = \"Verify expire. LastUsed: \" . (string)$this->sessdata[\"lastused\"] . \" ExpireTime: \" . (string)$this->expire_time . \" Current: \" . (string)$current ;\r\n $this->err_no = 0;\r\n $this->DbgAddSqlLog();\r\n if ($this->sessdata[\"lastused\"]+$this->expire_time<$current) {\r\n return 0;\r\n }\r\n return 1;\r\n }", "title": "" }, { "docid": "eaf7dc4b006659f2a2903a4a4600e6be", "score": "0.55663025", "text": "public function require_counter_update() {\r\n\t\t$expire_time = get_option ( $this->hellofollowers_expire_name );\r\n\t\t$now = time ();\r\n\t\t\r\n\t\t$is_alive = ($expire_time > $now);\r\n\t\t\t\t\r\n\t\tif (true == $is_alive) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b491976c3309210062342a89a7f33ae4", "score": "0.5548951", "text": "public function strlen(string $key): Redis|int|false;", "title": "" }, { "docid": "173f6875bfed5bc886babce0db91c412", "score": "0.5541947", "text": "public function pexpiretime($key) {}", "title": "" }, { "docid": "772b1cb8b20b29331b77892ff8933675", "score": "0.55414593", "text": "public function getTimeout(): float|false;", "title": "" }, { "docid": "c6a3481b698e05aaed5c6a5742d54f4c", "score": "0.5540977", "text": "public function remaining(): int {\n $alert = $this->alert();\n return is_null($alert) ? 1 : ($alert['created'] + $alert['expiry'] * 60) - time();\n }", "title": "" }, { "docid": "9c5c73bb093b4dcbaff7ed1833d860fd", "score": "0.5540755", "text": "public function hasExpired($key) {\n\t\treturn $this->cacheStrategy->hasExpired($this->getInternalKey($key));\n\t}", "title": "" }, { "docid": "24388878fb6bb44f0e340df947734c9f", "score": "0.5534381", "text": "public function ttl($key) {\n return $this->handler->ttl($key);\n }", "title": "" }, { "docid": "55ceed7e769a10c2f02ea1d318700e4f", "score": "0.5515997", "text": "public function hasTimeLimitReached(): bool;", "title": "" }, { "docid": "5da189f9370681e5f1501cd712ccc37b", "score": "0.55028147", "text": "public function getItem($key)\n {\n $data = $this->memcached->get($key);\n\n if ($data['ttl'] === 0 || (time() - $data['start'] <= $data['ttl'])) {\n $value = $data['value'];\n } else {\n $this->deleteItem($key);\n }\n\n return (isset($value)) ? $value : false;\n }", "title": "" }, { "docid": "4c18ae7f98f3eda18a86e24e281d59b6", "score": "0.5473397", "text": "public function ipTimeLeft()\n {\n return Carbon::now()->addSeconds($this->redis->ttl($this->keys->ip(request()->ip())));\n }", "title": "" }, { "docid": "79f3b7bf6a0ea613efaf3e971c60fe79", "score": "0.5463472", "text": "private function isCacheExpired(): bool\n\t{\n\t\t$path = $this->_cacheFolder . $this->generateCacheName();\n\t\tif (file_exists($path)) {\n\t\t\t$filetime = filemtime($path);\n\t\t\treturn $filetime < (time() - $this->_cacheTtl);\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "11bbfb56ae9cb441688b0ccbe99b46de", "score": "0.54525256", "text": "public function checkIfKeyExpired($UserKey)\n\t{\n\t\t$query = \"\n\t\t\tSELECT\t`UserKeyExpires` \t\t\t\t\n\n\t\t\tFROM \t`User`\n\n\t\t\tWHERE\t`UserKey` = ?\n\t\t\";\n\t\t\n\t\t$result = $this->db->query($query, [$UserKey])->result_array();\n\t\t$key = \"\";\n\t\t\n\t\tif(!empty($result))\n\t\t\tforeach ($result as $row) $key = $row[\"UserKeyExpires\"];\n\t\t\n\t\treturn ($key > time())?1:0; \n\t}", "title": "" }, { "docid": "33eaa361d0122660df8bce5a58541489", "score": "0.54492193", "text": "public function expiretime($key) {}", "title": "" }, { "docid": "717d0567798e356b1908f7d8e7ae4039", "score": "0.5442657", "text": "public function getWasted()\n {\n if (empty($this->deadline)) {\n return false;\n } else {\n return time() > strtotime($this->deadline);\n }\n }", "title": "" }, { "docid": "92ab2c9cb5dc2826bb555826fbe65fbb", "score": "0.54161555", "text": "protected function getCacheTime($cacheKey)\n {\n $path = $this->getCachePath($cacheKey);\n\n if (is_file($path)) {\n return filemtime($path);\n }\n\n return false;\n }", "title": "" }, { "docid": "8a59681392cf1ddf2e1b51f9fc22ca90", "score": "0.53698695", "text": "public function getLeftTime()\n {\n return $this->get(self::_LEFT_TIME);\n }", "title": "" }, { "docid": "8a59681392cf1ddf2e1b51f9fc22ca90", "score": "0.53698695", "text": "public function getLeftTime()\n {\n return $this->get(self::_LEFT_TIME);\n }", "title": "" }, { "docid": "8a59681392cf1ddf2e1b51f9fc22ca90", "score": "0.5368598", "text": "public function getLeftTime()\n {\n return $this->get(self::_LEFT_TIME);\n }", "title": "" }, { "docid": "fde721b8cbe79fb9b7c8b57753631250", "score": "0.5348701", "text": "protected function _timedOut(): bool\n {\n $time = $this->read('Config.time');\n $result = false;\n\n $checkTime = $time !== null && $this->_lifetime > 0;\n if ($checkTime && (time() - (int)$time > $this->_lifetime)) {\n $result = true;\n }\n\n $this->write('Config.time', time());\n\n return $result;\n }", "title": "" }, { "docid": "2e16ce162fbe544df6a8cec107f89192", "score": "0.5347092", "text": "function smarty_function_time_left($params, &$smarty)\r\n{\r\n if(!isset($params['t'])) return false;\r\n\r\n $interval_time = strtotime($params['t']);\r\n $time = time();\r\n \r\n if($time > $interval_time)\r\n return 'GEÇTİ';\r\n \r\n $sub = $interval_time - $time;\r\n \r\n $ret = '' ;\r\n \r\n $time_strings = array(31556926 => 'Yıl', 2629743 => 'Ay', 604800 => 'Hafta', 86400 => 'Gün', 3600 => 'Saat', 60 => 'Dakika',1 => 'Saniye');\r\n \r\n\r\n $long = 0;\r\n \r\n foreach($time_strings as $t => $string)\r\n {\r\n if($t > $sub or $sub == 0)\r\n continue;\r\n \r\n if($t == $sub)\r\n {\r\n $ret .= '1 '.$string.' ';\r\n $sub = 0;\r\n }\r\n else\r\n {\r\n if($long >= 2)\r\n continue;\r\n \r\n $d = round($sub / $t);\r\n $sub -= $d*$t;\r\n \r\n $ret .= $d.' '.$string.' ';\r\n $long++;\r\n }\r\n }\r\n \r\n return $ret.' kaldı';\r\n}", "title": "" }, { "docid": "795ea9824f7e129aa3c99b8944ed691f", "score": "0.5342114", "text": "public function hasLastTime(){\r\n return $this->_has(7);\r\n }", "title": "" }, { "docid": "fb290c6406998409c6943cc98c9530d1", "score": "0.53149885", "text": "public function runTimeCacheExists($key)\n\t{\n\t\treturn array_key_exists($key, $this->runTimeCache);\n\t}", "title": "" }, { "docid": "830baf0c15ddaf2c749429b49f21fcdd", "score": "0.53025776", "text": "public function expire(string $key, int $timeout, ?string $mode = NULL): Redis|bool;", "title": "" }, { "docid": "7031622d935c3ae6c5b38aa43067d1d1", "score": "0.5297379", "text": "public function has($key) {\n $default = microtime(true);\n return $this->get($key, $default) !== $default;\n }", "title": "" }, { "docid": "e474bd33c4dc4bea87bb040e0acf18a5", "score": "0.52813464", "text": "public function getTimeToUnlock()\n {\n $currentTime = time();\n $blockedTime = Yii::$app->session->get('blockedTime');\n $timeToUnlock = date('i:s', $blockedTime - $currentTime);\n\n if ($currentTime > $blockedTime) {\n Yii::$app->session->remove('blockedTime');\n Yii::$app->session->remove('attempt_count');\n return false;\n }\n return $timeToUnlock;\n }", "title": "" }, { "docid": "6b4c5229ad38cf00ebc0d06dcfd7a875", "score": "0.5262338", "text": "protected function cacheLifespan()\n {\n //return $GLOBALS['siteConfig']->getVar('MAP_CACHE_LIFESPAN');\n return 86400;\n }", "title": "" }, { "docid": "e9c8ded5e378f8266f660350555e96e7", "score": "0.52588546", "text": "public function get($key, $seconds = 60)\n {\n $result = $this->connection()->setnx($key, 1);\n\n if ($result === 1) {\n $this->connection()->expire($key, $seconds);\n }\n\n return $result === 1;\n }", "title": "" }, { "docid": "3992420d56439699aa3c797bcb100949", "score": "0.52574605", "text": "public function hasExpired()\n {\n return (new Time($this->expires->getTimestamp()))->isPast();\n }", "title": "" }, { "docid": "26bd248e42f5fb5926d87c7f96638225", "score": "0.52379054", "text": "public function exists($key)\n {\n return $this->_cache->getExpires($this->buildKey($key)) !== false;\n }", "title": "" }, { "docid": "bb243e76147231ad60bbd75052de8600", "score": "0.5232311", "text": "function checkTimeout( $tmo_secs )\r\n {\r\n return (($this->last_stamp + intval($tmo_secs) <= time() )===TRUE); \r\n }", "title": "" }, { "docid": "cdbc4f32662f35466b418911d2c35619", "score": "0.5226344", "text": "function isKeyExpired($r, $userId) {\n if (strtotime('now') > (int)$r['expire_date']) {\n $query = \"delete from tokens where user_id = $userId;\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "823cc82e229e8c8b919417976d88aa0a", "score": "0.52219236", "text": "public function getCacheLifeTime();", "title": "" }, { "docid": "ae0871967c10a545182faaf7a08d4535", "score": "0.52198446", "text": "public function get_upTime(): float\n {\n // $res is a long;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::UPTIME_INVALID;\n }\n }\n $res = $this->_upTime;\n return $res;\n }", "title": "" }, { "docid": "dc1fdd2a4eaa7f105901bbc388bb81b2", "score": "0.52196187", "text": "public function get_soul_ascend_time () {\n $queue = $this->get_queue();\n if (empty($queue)) return FALSE;\n return max(0, ($queue->execute - time()));\n }", "title": "" }, { "docid": "640f89725d03f73ddad0e77e1ef2a725", "score": "0.5213709", "text": "private function hasCacheExpired(): bool\n {\n $sFile = $this->getFile();\n\n return !$this->bEnabled || !is_file($sFile) || (!empty($this->iTtl) && $this->oFile->getModifTime($sFile) < time());\n }", "title": "" }, { "docid": "f304be260272047b69ebe7d26a0a5907", "score": "0.5208427", "text": "public function hasTimeout(): bool;", "title": "" }, { "docid": "a4caf718635a61c0bb095910f8d1ea4d", "score": "0.5192238", "text": "public function has($key) {\n $filename = $key.'.cache';\n $maxtime = cache::now() - $this->definition->get_ttl();\n if ($this->prescan) {\n return array_key_exists($filename, $this->keys) && $this->keys[$filename] >= $maxtime;\n }\n $file = $this->file_path_for_key($key);\n return (file_exists($file) && ($this->definition->get_ttl() == 0 || filemtime($file) >= $maxtime));\n }", "title": "" }, { "docid": "49bb7d4cc073aa61ec48aec6cb2c0ef6", "score": "0.5191507", "text": "public function getTokenExpire()\n {\n return $this->state->token->obtained\n + $this->state->token->data->expires_in - time();\n }", "title": "" }, { "docid": "4f4454f406a9c0f1d5f23b04dbb37cb2", "score": "0.51910365", "text": "public function has($key)\n {\n $path = sprintf('%s/%s/%s.xml', sys_get_temp_dir(), $this->path, $key);\n\n return file_exists($path) && (time() - filectime($path) < $this->ttl);\n }", "title": "" }, { "docid": "8b8aa3c8cde0f45f877f241ef0ef2543", "score": "0.5189606", "text": "function timeCheck()\n {\n $maxTime = mktime($this->param1, $this->param2, 0);\n $currentTime = time();\n if ($currentTime >= $maxTime) {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "df0f367e8f4ccb9e21cd18cf17d23185", "score": "0.518947", "text": "public function pexpire(string $key, int $timeout, ?string $mode = NULL): bool;", "title": "" }, { "docid": "f653aa05c79d1e28dda5d173326eb239", "score": "0.51711595", "text": "public function getWaitTime() : int {\r\n\r\n return (int) $this->getMain()->getDatabase()->get(\"waiting_time\", [\"table\" => \"Games\", \"name\" => $this->getName()])->fetchArray()[0];\r\n\r\n }", "title": "" }, { "docid": "a9783ad3220fb957952d1ca93afbbd3e", "score": "0.5166148", "text": "private function isTimeLimitReached() \n {\n return $this->timeLimit < (microtime(true) - $this->startTime);\n }", "title": "" }, { "docid": "af319b16cc97e5a6e55d95d732e0d003", "score": "0.5165757", "text": "function idle( )\r\n {\r\n if ( isset( $this->StoredIdle ) && is_numeric( $this->StoredIdle ) )\r\n return $this->StoredIdle;\r\n\r\n $db =& eZDB::globalDatabase();\r\n\r\n $value_array = array();\r\n\r\n $timeStamp = eZDateTime::timeStamp( true );\r\n $db->array_query( $value_array, \"SELECT ( $timeStamp - LastAccessed ) AS Idle\r\n FROM eZSession_Session WHERE ID='$this->ID'\" );\r\n $ret = false;\r\n if ( count( $value_array ) == 1 )\r\n {\r\n $ret = $value_array[0][$db->fieldName(\"Idle\")];\r\n\r\n $this->StoredIdle = $ret;\r\n }\r\n\r\n return $ret;\r\n }", "title": "" }, { "docid": "7d443b530fd2f4242c5530b413d8ae40", "score": "0.51553804", "text": "function getUserRightsWithTime($key)\n\t{\n\t\tif($key != '')\n\t\t{\n\t\t\t$time = time();\n\t\t\tforeach($key AS $key_name => $inhalt)\n\t\t\t{\n\t\t\t\tif(!(!is_array($inhalt) && ($key['time'][$key_name] == 0 || $key['time'][$key_name] > $time)))\n\t\t\t\t{\n\t\t\t\t\tif(!is_array($inhalt))\n\t\t\t\t\t{\n\t\t\t\t\t\tunset ($key[$key_name], $key['ports'][$key_name]);\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t};\n\t}", "title": "" }, { "docid": "edb6996fc08f84e26ea42c27feffc777", "score": "0.5151914", "text": "public function getDurationLeft()\n {\n $opt_in = new \\DateTime($this->optedInDate);\n\n $current_date = (new \\DateTime())->setTime(0, 0);\n if ($current_date > $opt_in) {\n return 0;\n }\n return $current_date->diff($opt_in)->days;\n }", "title": "" }, { "docid": "ada36927840ed926106d7b2bc184ad74", "score": "0.51441926", "text": "public function is_expired() {\n\n\t\t$date = (int) strtotime( $this->ttw_expiration );\n\n\t\treturn $date <= time();\n\t}", "title": "" }, { "docid": "ff4706f299d3f5b93d96f6c47e8367a5", "score": "0.5129329", "text": "public function getTtl($key){\n return $this->getAdapter()->ttl($this->_keyFromId($key));\n }", "title": "" }, { "docid": "f92b95dba439927548b67590dc553cfd", "score": "0.51264435", "text": "function get_left($key)\n\t{\n\t\t$ret \t= $this->_post_data(\"http://bypasscaptcha.com/ex_left.php\", array(\"key\" => $key));\n\t\t$dict \t= $this->_get_result($ret);\n\t\t$left\t= (isset($dict['Left'])) ? $dict['Left'] : FALSE;\n\t\t\n\t\treturn $left;\n\t}", "title": "" }, { "docid": "8ad08568a2c1b117d3f0c1b565fe3dd0", "score": "0.51231885", "text": "public function isExpired()\n {\n $dataTimeSec = $this->getTime() / 1000;\n\n return ($dataTimeSec < time());\n }", "title": "" }, { "docid": "e99816686fd8e870fd2e402e48c26f5c", "score": "0.51227015", "text": "public function holdingLeft(){\n\t\treturn $this->_sendPacketToController(self::HOLDING_LEFT);\n\t}", "title": "" }, { "docid": "4aa7d88951c6db3b95e6cc76d5ca1f81", "score": "0.5121331", "text": "public function getDelayedTime()\n {\n $packet = $this->getPacket();\n\n if ($packet['delayed'] > 0) {\n return $packet['delayed'];\n }\n\n return -1;\n }", "title": "" }, { "docid": "dc6186e1401dd0e55d0d076537a19595", "score": "0.5114727", "text": "private function _getCacheLifeTime() {\n\n $getDefaultCache = $this->_readDefaultCache();\n if (isset($getDefaultCache['frontend']['lifetime']) && !empty($getDefaultCache['frontend']['lifetime']))\n $chacheLifetime = $getDefaultCache['frontend']['lifetime'];\n $chacheLifetime = !empty($chacheLifetime) ? $chacheLifetime : 300;\n return $chacheLifetime;\n }", "title": "" }, { "docid": "a619baa2a367c861c60726fd4ba5aa34", "score": "0.51146543", "text": "public function expired(): bool;", "title": "" }, { "docid": "e70fa97d0a6b0d8174f213e9c8e775dc", "score": "0.51136076", "text": "public function is_expired() {\n\t\treturn $this->get_expires() < time();\n\t}", "title": "" }, { "docid": "9289543c5bc0ce46d9dafb2943a4e850", "score": "0.5108742", "text": "function checkKeys()\n{\n $cache = Cache::get()->first();\n\n if (!$cache) {\n $cache = new Cache();\n refreshKeys($cache);\n }\n else { \n if (time() > $cache->timeout){\n refreshKeys($cache);\n }\n }\n}", "title": "" }, { "docid": "3b20c805e0fd506ca562f6442b6f2807", "score": "0.51083016", "text": "public function hasPassedDuration()\n {\n if (!$this->closes_at) {\n return false;\n }\n\n return Carbon::now()->gt($this->closes_at);\n }", "title": "" }, { "docid": "20cb8616fe521de4dcd18148e8981999", "score": "0.5106404", "text": "public function getIsExpired(): bool\n {\n $expirationDuration = $this->getExpireDuration();\n if ($expirationDuration === null) {\n return false;\n }\n\n return time() >= ($this->createTimestamp + $expirationDuration);\n }", "title": "" }, { "docid": "a3fc16c93c1d5963ee48f206a7373098", "score": "0.5101555", "text": "public function getCacheLife()\n {\n return $this->cache_life_time;\n }", "title": "" }, { "docid": "60c2e00054151a9dcabb532aaba686e4", "score": "0.509724", "text": "public function hasTime(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "60c2e00054151a9dcabb532aaba686e4", "score": "0.509724", "text": "public function hasTime(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "4637dad2168f7e7bd9a638166fb37519", "score": "0.5088562", "text": "function checkCacheAge() {\n\tif( ! file_exists( 'cache/data.json' ) ) {\n\t\treturn true;\n\t}\n\t\n\tif( time() - filemtime( 'cache/data.json' ) > 7 * 24 * 3600) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "e57819baa7609c88f427c4cb948034b8", "score": "0.50860643", "text": "public function get($key)\n {\n $status = $this->redis->set($key, 1, 'EX', $this->expire, 'NX');\n if ($status) {\n return $status->getPayload() === 'OK';\n }\n return false;\n }", "title": "" }, { "docid": "ddb739bcfc33226aa8adfe2a4794f26d", "score": "0.5085672", "text": "public function hasQueued(string $key, string $path = null): bool;", "title": "" }, { "docid": "af96a8c35c97782a43c0bac92123b84c", "score": "0.5083665", "text": "function isTemperatureUpToDate() {\n global $getLastUpdateStatement, $timeBetweenUpdate;\n\n if (!$getLastUpdateStatement->execute())\n die(\"Unable to execute getLastUpdateStatement)\");\n\n $result = $getLastUpdateStatement->fetch();\n\n // if the key does not exists\n if ($getLastUpdateStatement->rowCount() === 0)\n return false;\n\n $time = strtotime($result[\"last_update\"]);\n\n $currtime = time();\n\n // if the time is lower than time between update\n return ($currtime - $time) <= $timeBetweenUpdate * 60;\n}", "title": "" }, { "docid": "0bc356f8925557d3f61065cc6e31c088", "score": "0.50808686", "text": "public function isExpired() {\n\t\treturn $this->expires && ( (float)$this->expires - (float)wfTimestamp( TS_MW ) ) <= 0;\n\t}", "title": "" }, { "docid": "a50e3b534dfd00d139b24db486d2d205", "score": "0.5074717", "text": "public function getMaxLockTime(): float;", "title": "" }, { "docid": "e716b626172a065b6e3d2473c3560452", "score": "0.5072146", "text": "public function hasDelay()\n\t{\n\t global $conf;\n\n if (! ($this->statut == 1)) return false;\n if (! $this->datee && ! $this->date_end) return false;\n\n $now = dol_now();\n\n return ($this->datee ? $this->datee : $this->date_end) < ($now - $conf->projet->warning_delay);\n\t}", "title": "" }, { "docid": "95fee5c989b2e81d40109e04ac3ab510", "score": "0.50666445", "text": "public function hasCTime(){\n return $this->_has(6);\n }", "title": "" }, { "docid": "b43cf167386da3b20c91f14354686503", "score": "0.50620145", "text": "public function isExpired()\n {\n return time() > strtotime( $this->expires );\n }", "title": "" } ]
4063f977cac2609fd203a845bdac9d8e
Get the last unpaid subscription, if any.
[ { "docid": "8aca988689af138a3de902f5327af0bd", "score": "0.89533335", "text": "public function lastUnpaidSubscription()\n {\n return $this->subscriptions()->latest('starts_on')->notCancelled()->unpaid()->first();\n }", "title": "" } ]
[ { "docid": "9995943b412864a3057fed9cbdb19757", "score": "0.79382926", "text": "public function lastDueSubscription()\n {\n if (! $this->hasSubscriptions()) {\n return;\n }\n\n if ($this->hasActiveSubscription()) {\n return;\n }\n\n $lastActiveSubscription = $this->lastActiveSubscription();\n\n if (! $lastActiveSubscription) {\n return $this->lastUnpaidSubscription();\n }\n\n $lastSubscription = $this->lastSubscription();\n\n if ($lastActiveSubscription->is($lastSubscription)) {\n return;\n }\n\n return $this->lastUnpaidSubscription();\n }", "title": "" }, { "docid": "d17224e7d618006dfa2be30bb2a8456d", "score": "0.73323214", "text": "public function lastActiveSubscription()\n {\n if (! $this->hasSubscriptions()) {\n return;\n }\n\n if ($this->hasActiveSubscription()) {\n return $this->activeSubscription();\n }\n\n return $this->subscriptions()->latest('starts_on')->paid()->notCancelled()->first();\n }", "title": "" }, { "docid": "da6f4f2fa1f63fb4f44a6775d3768e3a", "score": "0.7096867", "text": "public function lastSubscription()\n {\n if (! $this->hasSubscriptions()) {\n return;\n }\n\n if ($this->hasActiveSubscription()) {\n return $this->activeSubscription();\n }\n\n return $this->subscriptions()->latest('starts_on')->first();\n }", "title": "" }, { "docid": "edbf3d984b7c9cc6fc4a0d3028f22120", "score": "0.7019066", "text": "public function activeSubscription()\n {\n return $this->currentSubscription()->paid()->notCancelled()->first();\n }", "title": "" }, { "docid": "da6cec96cbe2b445cea33b895a60272e", "score": "0.6508878", "text": "public function getCurrentSubscriptionAttribute()\n {\n return auth()->user()->subscriptions->isEmpty() ? null : $this->subscriptions->first();\n }", "title": "" }, { "docid": "85efb1520f9f7767befba38c5377b120", "score": "0.64308393", "text": "public function getLastAmountPaid()\n {\n return $this->lastAmountPaid;\n }", "title": "" }, { "docid": "baa1bb64ef9ecb2b938eb2b005796ff8", "score": "0.62510884", "text": "public function unpaid(): static\n {\n return $this->state([\n 'stripe_status' => StripeSubscription::STATUS_UNPAID,\n ]);\n }", "title": "" }, { "docid": "04d19e9ad3cf42584f2ed1ab6d796c3d", "score": "0.61615694", "text": "public function latestPayment()\n {\n $subscription = $this->asStripeSubscription(['latest_invoice.payment_intent']);\n\n if ($invoice = $subscription->latest_invoice) {\n return $invoice->payment_intent\n ? new Payment($invoice->payment_intent)\n : null;\n }\n }", "title": "" }, { "docid": "363a73d022036a4e312e0200501b12f4", "score": "0.5933019", "text": "public function getSubscription()\n {\n return $this->subscription;\n }", "title": "" }, { "docid": "ab62eb878427e04d2693d9d25d9312e9", "score": "0.59309995", "text": "public function latestPayment()\n {\n return $this->hasOne('App\\Models\\Payment')->latest();\n }", "title": "" }, { "docid": "10be14c95f2b891d63177b5673e74851", "score": "0.5927598", "text": "public function current_and_prior_subscriptions() {\n global $wpdb;\n $mepr_db = new MeprDb();\n\n $q = \"SELECT DISTINCT(product_id)\n FROM {$mepr_db->transactions}\n WHERE user_id = %d\n AND ( (txn_type = %s AND status = %s) OR ((txn_type = %s AND status = %s)) )\";\n\n $q = $wpdb->prepare($q, $this->ID,\n MeprTransaction::$payment_str,\n MeprTransaction::$complete_str,\n MeprTransaction::$subscription_confirmation_str,\n MeprTransaction::$confirmed_str);\n\n return $wpdb->get_col($q);\n }", "title": "" }, { "docid": "6556933dfd936d3e426b3015dcb8d35c", "score": "0.5922643", "text": "public function last(){\n return LoanProtectionPolicy::last();\n }", "title": "" }, { "docid": "69b7da03644ef935b08d9cc92d5c0ecc", "score": "0.59019566", "text": "function wmf_civicrm_get_legacy_paypal_subscription($msg) {\n // We include recently-canceled donations because PayPal has apparently\n // not communicated about their ID migration to the team that makes their\n // audit files, leading a ton of subscriptions to be mistakenly canceled\n // starting around October 2018.\n // civicrm_contribution.trxn_id is the individual payment ID prefixed with\n // RECURRING PAYPAL\n // civicrm_contribution_recur.trxn_id is what PayPal sends as the subscr_id\n // field. For legacy subscriptions that was always S-%.\n // In case someone has multiple legacy PayPal subscriptions, prefer the one\n // with the closest amount, then the most recent.\n $query = \"SELECT ccr.*\n FROM civicrm_contribution_recur ccr\n INNER JOIN civicrm_email e ON ccr.contact_id = e.contact_id\n INNER JOIN civicrm_contribution c ON c.contribution_recur_id = ccr.id\n WHERE email = %1\n AND c.trxn_id LIKE 'RECURRING PAYPAL %'\n AND ccr.trxn_id LIKE 'S-%'\n AND (ccr.cancel_date IS NULL OR ccr.cancel_date > '2018-09-01')\n AND (ccr.end_date IS NULL OR ccr.end_date > '2018-09-01')\n ORDER BY ABS(ccr.amount - %2) ASC, c.receive_date DESC\n LIMIT 1\";\n $dao = CRM_Core_DAO::executeQuery($query, [\n 1 => [$msg['email'], 'String'],\n 2 => [$msg['gross'], 'Float'],\n ]);\n\n if (!$dao->fetch()) {\n return FALSE;\n }\n\n return $dao;\n}", "title": "" }, { "docid": "42e37abf26ddd5de7320c3f0a59fbcda", "score": "0.58882684", "text": "public function getSubscription()\n {\n return $this->_subscription;\n }", "title": "" }, { "docid": "42e37abf26ddd5de7320c3f0a59fbcda", "score": "0.58882684", "text": "public function getSubscription()\n {\n return $this->_subscription;\n }", "title": "" }, { "docid": "1a70b7c0ce79ed91241eab53bfbe386f", "score": "0.5881837", "text": "public function getLastPaymentDate()\n {\n return $this->lastPaymentDate;\n }", "title": "" }, { "docid": "73238a27925389ffe2d21385f987810f", "score": "0.58804154", "text": "public function getNonSubscription()\n {\n return $this->nonSubscription;\n }", "title": "" }, { "docid": "9148b581a0a536521c702914a87bc01c", "score": "0.5793228", "text": "public function getSubscriptionEnd()\n {\n return $this->subscriptionEnd;\n }", "title": "" }, { "docid": "845b820ed02ea7a4b20f80ed624717b1", "score": "0.57438153", "text": "public function currentSubscriberID(){\n //TODO use subscription_status field in the table?\n $latest_sub = $this->subscriptions()->get()->last();\n if(is_null($latest_sub)) return null;\n return $latest_sub->user_id;\n }", "title": "" }, { "docid": "27984c4cee732ac9f6fc8fddaa70975c", "score": "0.5700935", "text": "public function get_last_consent()\n {\n // check the primary key value\n if( is_null( $this->id ) )\n {\n log::warning( 'Tried to query participant with no id.' );\n return NULL;\n }\n \n // need custom SQL\n $consent_id = static::db()->get_one(\n sprintf( 'SELECT consent_id '.\n 'FROM participant_last_consent '.\n 'WHERE participant_id = %s',\n database::format_string( $this->id ) ) );\n return $consent_id ? new consent( $consent_id ) : NULL;\n }", "title": "" }, { "docid": "00ba4d8af7aa789f743254e4f6e02d02", "score": "0.57002413", "text": "public function getSubscriptionId(): ?string\n {\n return $this->subscriptionId;\n }", "title": "" }, { "docid": "2bbb7ec300df2f46bb9667c773d6356c", "score": "0.5630545", "text": "public function currentSubscription()\n {\n return $this->subscriptions()\n ->where('starts_on', '<', Carbon::now())\n ->where('expires_on', '>', Carbon::now());\n }", "title": "" }, { "docid": "7a7188835fb7576d73d18e02f4ba3734", "score": "0.5620944", "text": "public function getLatestPaymentByUser($uid) {\n $payments = $this->entityTypeManager->getStorage('stripe_payment')->loadByProperties(['user_id' => $uid, 'type' => 'individual_sponsorship']);\n $payments = array_reverse($payments);\n foreach($payments as $payment) {\n return $payment;\n }\n }", "title": "" }, { "docid": "c3ee5d1f075191b17dde169828bcaf2e", "score": "0.56073296", "text": "public function subscription()\r\n {\r\n return $this->subscriptionController->get($this->subscription_id);\r\n }", "title": "" }, { "docid": "43a2d2e1beaad395d643eb132689bc2a", "score": "0.55771", "text": "public function loadSubscription()\n {\n if ($this->hasSubscriptionId()) {\n\n \\Iugu::setApiKey($this->getApiKey());\n\n $subscription = \\Iugu_Subscription::fetch($this->subscription_id);\n\n if ($subscription) {\n if ($subscription->expires_at) {\n $this->expires_at = $subscription->expires_at;\n $this->status = 'active';\n }\n\n if( $subscription->suspended ){\n $this->status = 'suspend';\n }\n\n $this->subscription_plan = $subscription->plan_identifier;\n $this->subscription_active = $subscription->active;\n $this->subscription_suspended = $subscription->suspended;\n }\n\n $this->save();\n\n return $subscription;\n }\n }", "title": "" }, { "docid": "33bcbf95f9cb19b940bbcf54a3227c6e", "score": "0.55286497", "text": "public function getLast()\n {\n $array = $this->toArray(false);\n\n return array_pop($array);\n }", "title": "" }, { "docid": "d4f09dedb725813b0f97dcc53dc103b1", "score": "0.5524068", "text": "public function latestInvoice()\n {\n $stripeSubscription = $this->asStripeSubscription(['latest_invoice']);\n\n if ($stripeSubscription->latest_invoice) {\n return new Invoice($this->owner, $stripeSubscription->latest_invoice);\n }\n }", "title": "" }, { "docid": "53f84dfb37fb366bfe14e4d314e38270", "score": "0.5510259", "text": "function get_last_complete_order ($account)\n\t{\n\t\t$last = get(\"/orders\", array(\n\t\t\t'account_id' => $account['id'],\n\t\t\t'shipping' => array('$ne' => null),\n\t\t\t'billing' => array('$ne' => null),\n\t\t\t':last' => true\n\t\t));\n\t\t\n\t\treturn $last;\n\t}", "title": "" }, { "docid": "40600d5cb5af96879c982c02d0f9a156", "score": "0.54948425", "text": "public function getLastPrize()\n\t{\n\t\treturn User2prize::getLastByUser($this->id);\n\t}", "title": "" }, { "docid": "344e5d5568eaf5d3133e78cf88042641", "score": "0.549168", "text": "public function getSubscriptionId()\n {\n return $this->subscriptionId;\n }", "title": "" }, { "docid": "344e5d5568eaf5d3133e78cf88042641", "score": "0.549168", "text": "public function getSubscriptionId()\n {\n return $this->subscriptionId;\n }", "title": "" }, { "docid": "ad1f0290e2014060da217a8b4f035252", "score": "0.5475877", "text": "public function getSubscriptionReference()\n {\n return $this->subscription_reference;\n }", "title": "" }, { "docid": "cbd3736eb0d1cc62ac7d44e3a8248bbe", "score": "0.54667634", "text": "private function findSubscription() {\n $result = mysqli_query( $this->db, \"SELECT * FROM `subscriptions` s WHERE s.user_id = \" . $this->id . \" ORDER BY id DESC\");\n if( mysqli_num_rows( $result ) > 0 ) {\n $row = mysqli_fetch_array( $result );\n if( $row['canceled_at'] == null || $row['next_capture_at'] > time() ) {\n $this->subscription = new Subscription();\n $this->subscription->setOffer( $this->offerId );\n $this->subscription->setPayment( $row['payment_id'] );\n $this->subscription->setPaymillId( $row['paymill_id'] );\n $this->subscription->setActive( $row['active'] );\n $this->subscription->setCanceledAt( $row['canceled_at'] );\n } else {\n $update = \"UPDATE subscriptions s SET active = false WHERE s.id = \" . $row['id'];\n $this->log->addInfo( $update );\n mysqli_query( $this->db, $update );\n }\n }\n }", "title": "" }, { "docid": "dd318db08eb7fe4cbb2cdda673631c7f", "score": "0.5454793", "text": "public function getPremiumSubscription()\n {\n return $this->premiumSubscription;\n }", "title": "" }, { "docid": "d1cf9e81faa78c1c716b046f8c5f8143", "score": "0.5425535", "text": "public function getFinalSubscriptionStatus(): int;", "title": "" }, { "docid": "a073d6efe1f5f2cf86ff3454ee76a302", "score": "0.5404914", "text": "public function getSubscriptionId(): string\n {\n return $this->subscriptionId;\n }", "title": "" }, { "docid": "5494c3f380d543d8e6a403cb95c85438", "score": "0.5398539", "text": "public function getApiSubscription()\n {\n return $this->apiSubscription;\n }", "title": "" }, { "docid": "bb4e4379c42828dedbcbe79fdd30250d", "score": "0.539788", "text": "public static final function USER_UNSUBSCRIPTION()\r\n\t{\r\n\t\tif(self::$USER_UNSUBSCRIPTION === null)\r\n\t\t\tself::$USER_UNSUBSCRIPTION = new Inx_Api_TrackingPermission_OriginatorType(16);\r\n\r\n\t\treturn self::$USER_UNSUBSCRIPTION;\r\n\t}", "title": "" }, { "docid": "2c2b04d011596eaad3572c60ffbb46a7", "score": "0.5355652", "text": "public function last()\n {\n return $this->getRepo()->last();\n }", "title": "" }, { "docid": "15b880446453c1d438bc558e0a0eb161", "score": "0.5353109", "text": "public function getPackSubscription(): ?SubscriptionContract;", "title": "" }, { "docid": "cf59b6dffd9977f369bb5354cd049dab", "score": "0.5352397", "text": "public function last()\n {\n return count($this->items) > 0 ? end($this->items) : null;\n }", "title": "" }, { "docid": "60c7bbb3f91f0ee118b92ef64c365ee0", "score": "0.5346733", "text": "public function getRegularSubscription()\n {\n return $this->regularSubscription;\n }", "title": "" }, { "docid": "dbd32f3b885ec164497a12c884406d73", "score": "0.5342534", "text": "public function last() {\n\t\treturn count( $this->items ) > 0 ? end( $this->items ) : null;\n\t}", "title": "" }, { "docid": "e8740781efb17fa26dc9238eaf8f9cf6", "score": "0.5311703", "text": "public function getLast()\n {\n return $this->get(count($this) - 1);\n }", "title": "" }, { "docid": "c654b38dec841dbfa960faea9276cbb0", "score": "0.53061444", "text": "public function lastperiod()\n {\n// $lastperiod = UtObor::find()->all();\n $lastperiod = UtObor::find()->max('period');\n// $lastperiod = UtObor::find()->select(['period, id_org'])->distinct();\n// $lastperiod = ArrayHelper::map(UtUlica::find()->asArray()->all(), 'ID', 'ul'),\n return $lastperiod;\n }", "title": "" }, { "docid": "a63cf76868b6403b6da85d2a0aa0dbeb", "score": "0.53048337", "text": "public function getLast()\n {\n return $this->count() > 0 ?\n $this->getIterator()->offsetGet($this->count() - 1) : null;\n }", "title": "" }, { "docid": "9bc68ba7958319f0cb8933ca347a917b", "score": "0.52990144", "text": "function get_stripe_subscription_id(){\n \n $where = array('id'=>$_SESSION[USER_SESS_KEY]['userId']);\n $user_detail = $this->common_model->getsingle(USERS\n, $where, 'subscriptionId');\n \n if($user_detail)\n return $user_detail->subscription_id;\n \n return FALSE;\n }", "title": "" }, { "docid": "8d17a25e7081721e586b6de953787c7f", "score": "0.52937746", "text": "public function last()\n {\n return $this->data[$this->order[sizeof($this->order) - 1]];\n }", "title": "" }, { "docid": "195e05caed9ee3024718a5f30d14b1c0", "score": "0.5285543", "text": "public function getPaidAt(): ?string\n {\n return $this->paidAt;\n }", "title": "" }, { "docid": "d06fcdec57c43d061e7d9aeb1f0ab429", "score": "0.52840257", "text": "function getLastMail()\n {\n return $this->getMails(1)[0];\n }", "title": "" }, { "docid": "d8dc0b330b3beab295553c6164930627", "score": "0.5278983", "text": "public function subscription($subscription = 'default')\n {\n return $this->subscriptions->sortByDesc(function ($value) {\n return $value->created_at->getTimestamp();\n })->first(function ($value) use ($subscription) {\n return $value->name === $subscription;\n });\n }", "title": "" }, { "docid": "67a75a8b3f7a149fa0daa13ae65be9bb", "score": "0.5271932", "text": "public function getLast()\n {\n $count = $this->count();\n if ($count == 0)\n {\n return null;\n } else\n {\n $this->getInternalIterator()->seek($count - 1);\n return $this->getCurrent();\n }\n }", "title": "" }, { "docid": "934a76457a3b280ebbe327b2a08be6a1", "score": "0.5264121", "text": "public function max()\n {\n $this->sortUSDDesc();\n\n return reset($this->data);\n }", "title": "" }, { "docid": "3c0e168139197207626811d4cb940336", "score": "0.5258", "text": "public function getLastOrder()\n {\n $order = $this->_checkoutSession->getLastRealOrder();\n $connectifOrder = $this->_purchaseHelper->getOrderData($order);\n return $connectifOrder;\n }", "title": "" }, { "docid": "51dbc684ab844096e3aa3e81c55de126", "score": "0.5256979", "text": "public function getSubscriptionPeriodAmount()\n {\n return 1;\n }", "title": "" }, { "docid": "b71c949fdbc2fcbd82b9395207264e51", "score": "0.52560055", "text": "public function last()\n {\n if (empty($this->items)) {\n return null;\n }\n\n return end($this->items);\n }", "title": "" }, { "docid": "5cd8b6524464043fc57b344a2aaa8507", "score": "0.52490664", "text": "public function getRenewal()\n\t{\n\t\treturn $this->renewal;\n\t}", "title": "" }, { "docid": "6bfdafe1814c4360ee3ffa155abcc142", "score": "0.5238856", "text": "function get_last()\r\n\r\n {\r\n\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::get_last()',0);}\r\n\r\n \t$this->index = count($this->ordered_items)-1;\r\n\r\n \treturn $this->ordered_items[$this->index];\r\n\r\n }", "title": "" }, { "docid": "8d5be7038dda5cc0b6b1d35d433e403b", "score": "0.52224535", "text": "public function getLastOrder()\n {\n $itemCollection = $this->ordersCollection->create()\n ->addFieldToFilter('product_id', $this->getProductId());\n\n $itemCollection->getSelect()\n ->columns('MAX(created_at) as last_order');\n\n $lastOrderDate = $itemCollection->getFirstItem()->getLastOrder();\n\n $lastOrderDate = $this->dateFormater->formatDate($lastOrderDate, \\IntlDateFormatter::MEDIUM, true);\n\n return $lastOrderDate;\n }", "title": "" }, { "docid": "1943812a23824ec82b7933b6b73e7e20", "score": "0.52160245", "text": "public function last()\n\t{\n\t\tif ($count = $this->count())\n\t\t{\n\t\t\treturn $this->offsetGet($count - 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t}", "title": "" }, { "docid": "d37dc790c56e758c8b829a0dab201dc9", "score": "0.5211291", "text": "public function subscription($service)\n {\n return $this->subscriptions->sortByDesc(function ($value) {\n return $value->created_at->getTimestamp();\n })->first(function ($value) use ($service) {\n return $value->service === $service;\n });\n }", "title": "" }, { "docid": "816398f7cca5173458c0e1dbcf814682", "score": "0.5210122", "text": "function getSubscriptionId() {\n $subscriptionId = FALSE;\n $sql = \"SELECT catalog_subscription_id\n FROM %s\n WHERE catalog_subscription_email = '%s'\";\n $res = $this->catalog->databaseQueryFmt(\n $sql, array($this->tableCatalogSubscriptionsMeta, $this->params['email'])\n );\n if ($res) {\n if ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $subscriptionId = $row['catalog_subscription_id'];\n } else {\n $dataMeta = array(\n 'catalog_subscription_email' => $this->params['email'],\n 'lng_id' => $this->parentObj->getContentLanguageId(),\n );\n $subscriptionId = $this->catalog->databaseInsertRecord(\n $this->tableCatalogSubscriptionsMeta,\n 'catalog_subscription_id',\n $dataMeta\n );\n }\n }\n return $subscriptionId;\n }", "title": "" }, { "docid": "d0fc90d822f3252efef1c493cb36b62a", "score": "0.51861334", "text": "public final function last(){\n $res = $this->fetch();\n $len = count($res)-1;\n if(isset($res[$len])){\n return $res[$len];\n }//if\n return null;\n }", "title": "" }, { "docid": "9df80535327c092d55c55e1191e8a5e3", "score": "0.51853657", "text": "public function getCurrentPayment(): ?Payment\n {\n if (null !== $this->currentPayment) {\n return $this->currentPayment;\n }\n\n return PaymentProxy::where('payable_id', $this->getPayableId())\n ->where('payable_type', $this->getPayableType())\n ->orderByDesc('id')\n ->take(1)\n ->first();\n }", "title": "" }, { "docid": "80312c41a15b9048d2c788932378619c", "score": "0.5179135", "text": "public function last()\n\t{\n\t\treturn $this->get($this->size() - 1);\n\t}", "title": "" }, { "docid": "5d618c3f473f0e649b2372d61464fde6", "score": "0.517259", "text": "public static final function EMAIL_UNSUBSCRIPTION()\r\n\t{\r\n\t\tif(self::$EMAIL_UNSUBSCRIPTION === null)\r\n\t\t\tself::$EMAIL_UNSUBSCRIPTION = new Inx_Api_TrackingPermission_OriginatorType(10);\r\n\r\n\t\treturn self::$EMAIL_UNSUBSCRIPTION;\r\n\t}", "title": "" }, { "docid": "64547101095e1f247d34778730f6b979", "score": "0.5162883", "text": "public function unpaid()\n {\n return is_null($this->paid_at);\n }", "title": "" }, { "docid": "6ce61d7fcb4c7fd02be1ccd3d2bc4762", "score": "0.51577437", "text": "public function getLocalMarketNonSubscription()\n {\n return $this->localMarketNonSubscription;\n }", "title": "" }, { "docid": "c5b1b7d837ea5748601dc5323edd4ad3", "score": "0.5157529", "text": "public function getAutoPay()\n {\n return $this->getAutoPays()->first();\n }", "title": "" }, { "docid": "9b9158ea45cd87b6141d0cc089ffd199", "score": "0.51547396", "text": "public function getSubscriptionProfile()\n {\n if ($this->_coreRegistry->registry('md_subscribenow_subscriptionproduct')) {\n return $this->_coreRegistry->registry('md_subscribenow_subscriptionproduct');\n }\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__('We can\\'t get the subscription profile instance right now.'));\n }", "title": "" }, { "docid": "5c83e20db3751a02fa24ccb247fb1ac7", "score": "0.51543033", "text": "public function getLastRealOrder()\n {\n return $this->checkoutSession->getLastRealOrder();\n }", "title": "" }, { "docid": "483d22236300e2113b42210f827f5b5e", "score": "0.5141506", "text": "public function getLast()\r\n {\r\n return $this->_last;\r\n }", "title": "" }, { "docid": "6d1c90ab296faa425bccfa61c60bdd62", "score": "0.5140514", "text": "public function getSubscriptionEmail()\n {\n $subscriptionEmail = $this->_cookieManager->getCookie('connectif_newsletter_subscribed');\n if (!$subscriptionEmail) {\n return '';\n }\n $this->_cookieManager->deleteCookie(\n 'connectif_newsletter_subscribed',\n $this->_cookieMetadataFactory\n ->createCookieMetadata()\n ->setPath($this->_sessionManager->getCookiePath())\n ->setDomain($this->_sessionManager->getCookieDomain())\n );\n return $subscriptionEmail;\n }", "title": "" }, { "docid": "16a6ccabc7117d0e0c993c70ce9c6912", "score": "0.51382697", "text": "public function getLastSoldPrice() {\n return $this->lastSoldPrice;\n }", "title": "" }, { "docid": "83ee76dc2eef5250221db3eb28c0939e", "score": "0.51267314", "text": "public function last_booking_id()\n {\n $query = \"select max(`order_id`) from `\" . $this->table_name . \"`\";\n $result = mysqli_query($this->conn, $query);\n $value = mysqli_fetch_row($result);\n return $value[0];\n }", "title": "" }, { "docid": "ab29557c4fe9f030cee89b6ef1e9fd81", "score": "0.51233953", "text": "public function getLocalMarketRegularSubscription()\n {\n return $this->localMarketRegularSubscription;\n }", "title": "" }, { "docid": "43adc3071ccf4792a10f8f7496a0586f", "score": "0.51202714", "text": "function getAffiliatePayout()\n\t{\n\t\treturn $this->affiliate_payout;\n\t}", "title": "" }, { "docid": "193474acdea550c8c9e1dda6175a8a60", "score": "0.5116993", "text": "public function getLastRegistered()\n\t{\n\t\treturn $this->model->orderBy('id', 'desc')->first();\n\t}", "title": "" }, { "docid": "bc0f76f83b88f64a54fb15084eb368fb", "score": "0.5111905", "text": "public function getSubscriptionProfile() {\n return $this->coreRegistry->registry('md_subscribenow_subscriptionproduct');\n }", "title": "" }, { "docid": "3352343215060feb9a04d4c1f3fa55b3", "score": "0.51097786", "text": "public static function pull($subscription_name = \"\")\n {\n $subscription = self::pubsub()->subscription($subscription_name);\n return $subscription->pull();\n }", "title": "" }, { "docid": "d691116bce44457418304d4e88b9e374", "score": "0.5099051", "text": "public function getlastResponse() {\n\t\t\n\t\treturn $this->lastResponse;\n\t}", "title": "" }, { "docid": "7b7e0e4c1d3e806e168cd373cc77a7b5", "score": "0.5097812", "text": "public function last()\n {\n if (!(sizeof($this->data) > 0))\n return;\n\n return $this->data[sizeof($this->data) - 1];\n }", "title": "" }, { "docid": "d00800fec792916343e58f49fb38e805", "score": "0.50826204", "text": "public static function getDefaultSubscription($is_rw=true){\n $subscription = new Subscription;\n $subscription->plan=Plan::getDefaultPlan($is_rw);\n $subscription->plan_name=$subscription->plan->plan_id;\n $subscription->ends_at=gmdate('Y-m-d').' 00:00:00';\n $subscription->starts_at=gmdate(\"Y-m-d H:i:s\", strtotime(\"-1 months\"));\n $subscription->status='cancelled';\n $subscription->location='online';\n $subscription->next_billing=gmdate('Y-m-d').' 00:00:00';\n $subscription->period_unit='month';\n return $subscription;\n }", "title": "" }, { "docid": "bd5afc95499caea7432072b211c1feab", "score": "0.5082131", "text": "public function getPricingLastUpdateTime()\n {\n if (isset($this->updated['Pricing'])) {\n return $this->updated['Pricing'];\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "350e610c5fc8c2f758fefd2be7a1c015", "score": "0.50810087", "text": "function getPaid() {\n\t\tif (!$this -> paid)\n\t\t\treturn(round($this -> amount * $this -> rate,4));\n\t\t\t\n\t\treturn(round($this -> amount * $this -> paid, 4));\n\t}", "title": "" }, { "docid": "92b6432a13db716d457c23f1173d2e38", "score": "0.5066318", "text": "protected function getLastSlide()\r\n {\r\n $user = SessionManager::instance()->getUser();\r\n $presentationId = SessionManager::instance()->getActivePresentationId();\r\n $presentation = $user->getPresentation($presentationId);\r\n\r\n $slides = array_reverse($presentation->getSlides());\r\n $slide = reset($slides);\r\n\r\n return $slide->getId()->__toString();\r\n\r\n }", "title": "" }, { "docid": "98283be4e13306fdb96785aa66634f58", "score": "0.5065385", "text": "public function lastOrNull();", "title": "" }, { "docid": "9f2c0351c5cb9a72baf350f23b8a3eff", "score": "0.5059185", "text": "public function hasDueSubscription()\n {\n return (bool) $this->lastDueSubscription();\n }", "title": "" }, { "docid": "75b7a4d5aa6a22b06ea54433938e3451", "score": "0.5058917", "text": "public function getSubscriptionId(): string\n {\n return '';\n }", "title": "" }, { "docid": "5e0934ee8671cdcbd02f97036ddd88c8", "score": "0.50558454", "text": "public function last()\n {\n return $this->getLast();\n }", "title": "" }, { "docid": "b2879b686d54c3bbb48799ec29a7c6e7", "score": "0.50556415", "text": "public function getPayment(){\n $payment = Mage::getModel('mysubscription/payment')->getPaymentMethod($this);\n $this->_payment = $payment;\n return $payment;\n }", "title": "" }, { "docid": "a6e7f139a3adec7f67e01be365d9d824", "score": "0.5055056", "text": "protected function getLastCharge(Shop $shop)\n {\n return $shop->charges()\n ->whereIn('type', [Charge::CHARGE_RECURRING, Charge::CHARGE_ONETIME])\n ->where('plan_id', $shop->plan_id)\n ->orderBy('created_at', 'desc')\n ->first();\n }", "title": "" }, { "docid": "bcba398531a343ef7f3ba9e9c39db7a9", "score": "0.504969", "text": "public function cancelCurrentSubscription()\n {\n if (! $this->hasActiveSubscription()) {\n return false;\n }\n\n $activeSubscription = $this->activeSubscription();\n\n if ($activeSubscription->isCancelled() || $activeSubscription->isPendingCancellation()) {\n return false;\n }\n\n $activeSubscription->update([\n 'cancelled_on' => Carbon::now(),\n 'is_recurring' => false,\n ]);\n\n event(new \\Creatydev\\Plans\\Events\\CancelSubscription($this, $activeSubscription));\n\n return $activeSubscription;\n }", "title": "" }, { "docid": "ebbb8bb4131219b3242024ffb5155d67", "score": "0.50417405", "text": "private function getPeriodFrom($last) {\n\t\t$now = new \\DateTime(gmdate('Y-m-d H:i:s'));\n\t\tswitch ($last) {\n\t\t\tdefault: return $last; break;\n\t\t\tcase '12-hour': $now->modify('-12 hour'); return $now->format('Y-m-d H:i:s'); break;\n\t\t\tcase 'day': $now->modify('-1 day'); return $now->format('Y-m-d H:i:s'); break;\n\t\t\tcase 'week': $now->modify('-1 week'); return $now->format('Y-m-d H:i:s'); break;\n\t\t\tcase '2-weeks': $now->modify('-2 week'); return $now->format('Y-m-d H:i:s'); break;\n\t\t\tcase 'month': $now->modify('-1 month'); return $now->format('Y-m-d H:i:s'); break;\n\t\t\tcase '2-months': $now->modify('-2 month'); return $now->format('Y-m-d H:i:s'); break;\n\t\t}\n\t}", "title": "" }, { "docid": "5c4fd38db24eebf410fa7503eaef5b8e", "score": "0.503882", "text": "protected function getTrialEndForPayload()\n {\n $trial_date = Carbon::now()\n\t\t\t->addDays($this->trialDays)\n\t\t\t->getTimestamp();\n\t\t\n\t\treturn ($this->skipTrial)? \n 'now':\n\t\t\t$trial_date;\n }", "title": "" }, { "docid": "bd337c19f6c58871cb09cfc84baf2e11", "score": "0.5034104", "text": "protected function getTrialEndForPayload()\n {\n if ($this->skipTrial) {\n return Carbon::now();\n }\n\n if ($this->trialDays) {\n return Carbon::now()->addDays($this->trialDays);\n }\n }", "title": "" }, { "docid": "dbd0a213d1349b62e2ff08bad4c9b052", "score": "0.50256664", "text": "public function last()\n {\n return parent::last();\n }", "title": "" }, { "docid": "dbd0a213d1349b62e2ff08bad4c9b052", "score": "0.50256664", "text": "public function last()\n {\n return parent::last();\n }", "title": "" }, { "docid": "dbd0a213d1349b62e2ff08bad4c9b052", "score": "0.50256664", "text": "public function last()\n {\n return parent::last();\n }", "title": "" }, { "docid": "dbd0a213d1349b62e2ff08bad4c9b052", "score": "0.50256664", "text": "public function last()\n {\n return parent::last();\n }", "title": "" } ]
89701ca85e0cd04c7a926aed96011c36
Use this method to forward messages of any kind. On success, the sent Message is returned.
[ { "docid": "eda64c30ab88477a3b0bff8584fd7d76", "score": "0.6863224", "text": "public function forwardMessage($parameters)\n {\n $response=$this->endpoint(\"forwardMessage\", $parameters);\n\n /** @var Message $object */\n $object=$this->mapper->map($response->result,new Message());\n return $object;\n }", "title": "" } ]
[ { "docid": "e495b10cf88da6629727e848b04f1430", "score": "0.67567784", "text": "public function forwardMessage(array $params)\n {\n return $this->client->request('forwardMessage', $params);\n }", "title": "" }, { "docid": "a00cb6526f71aa7b4d0be867781d10bc", "score": "0.6660039", "text": "function forward_message($mid=0, &$headers=null, $queue=0)\n\t{\n\t}", "title": "" }, { "docid": "d97730b0e802390af81d7b5dcb98d288", "score": "0.6348052", "text": "abstract function forward();", "title": "" }, { "docid": "c6b00b45403a47d332e4380467df5b4d", "score": "0.6305424", "text": "public function send()\n {\n $validator = \\Validator::make($data = \\Request::all(), Message::$rules);\n\n if ($validator->fails()) {\n return \\Redirect::back()->withErrors($validator)->withInput();\n }\n\n $messageSender = MessageSender::findOrFail($data['sender_id']);\n\n $data['sender'] = $messageSender->number;\n $data['is_incoming'] = false;\n $data['is_sent'] = false;\n $data['source'] = $messageSender->provider;\n $receivers = $data['receiver'];\n unset($data['sender_id'], $data['provider_id']);\n\n\n\n foreach ($receivers as $receiver) {\n\n $data['receiver'] = $receiver;\n if (Message::send($data['content'], $receiver, $messageSender->number, $messageSender->provider)) {\n Message::create($data);\n } else {\n return \\Redirect::back()->withErrors(\"Message could not be sent\")->withInput();\n }\n\n }\n\n return \\Redirect::route('messages');\n }", "title": "" }, { "docid": "8581c1a6270cf1f110cc8295297b682a", "score": "0.6079709", "text": "public function service_sendForward($request, $response)\n {\n\n // prüfen ob irgendwelche steuerflags übergeben wurde\n $params = $this->getFlags($request);\n\n $msgId = $request->param('objid', Validator::EID);\n\n /* @var $model BuizMessage_Model */\n $model = $this->loadModel('BuizMessage');\n $model->loadTableAccess($params);\n\n if (!$model->access->access) {\n throw new InvalidRequest_Exception\n (\n 'Access denied',\n Response::FORBIDDEN\n );\n }\n\n $msgNode = $model->loadMessage($msgId);\n\n\n $userId = $request->data('receiver', Validator::EID);\n\n $mgsData = new TDataObject();\n $mgsData->subject = 'Fwd: '.$msgNode->subject;\n $mgsData->message = $msgNode->content;\n $mgsData->channels = $request->data('channels', Validator::CKEY);\n $mgsData->confidentiality = $request->data('id_confidentiality', Validator::INT);\n $mgsData->importance = $request->data('importance', Validator::INT);\n\n $model->sendUserMessage($userId, null, null, $mgsData);\n\n }", "title": "" }, { "docid": "88ccb5cf6674453d479052bb930ce2d2", "score": "0.6076075", "text": "function forward_message2($mailobject, $uid, $subject, $_message, $queue=0)\n\t{\n\t\t$this->smtpMail->ClearAddresses();\n\t\t$this->smtpMail->clearParts();\n\t\t$this->smtpMail->AddAddress(\n\t\t\t$this->mailhandling[$queue]['forward_to'],\n\t\t\t$this->mailhandling[$queue]['forward_to']\n\t\t);\n\n\t\t// Mailer Headers\n\t\t$headers = array (\n\t\t\t'X-EGroupware-type'\t\t=> 'tracker-forward',\n\t\t\t'X-EGroupware-Tracker'\t=> $queue,\n\t\t\t'X-EGroupware-Install'\t=> $GLOBALS['egw_info']['server']['install_id'].\n\t\t\t\t'@'.$GLOBALS['egw_info']['server']['default_domain'],\n\t\t\t'Subject'\t\t\t\t=> lang('[FWD]').' '.$subject\n\t\t);\n\n\t\t$notificationSender = !empty($this->notification[$queue]['sender']) ?\n\t\t\t\t$this->notification[$queue]['sender'] : $this->notification[0]['sender'];\n\n\t\tif (!empty($notificationSender))\n\t\t{\n\t\t\t$this->smtpMail->setFrom($notificationSender, $notificationSender);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->smtpMail->setFrom(\n\t\t\t\tApi\\Accounts::id2name($this->mailSender, 'account_email'),\n\t\t\t\tApi\\Accounts::id2name($this->mailSender, 'account_lid')\n\t\t\t);\n\t\t}\n\n\t\t$this->smtpMail->addHeaders($headers);\n\t\t$this->smtpMail->setBody(\n\t\t\tlang(\"This message was forwarded to you from EGroupware-Tracker\".\n\t\t\t\t\t\" Mailhandling: %1. \\r\\nSee attachment (original mail)\".\n\t\t\t\t\t\" for further details\\r\\n %2\", $queue, $_message)\n\t\t);\n\n\t\t$rawBody = $mailobject->getMessageRawBody(\n\t\t\t$uid,\n\t\t\t'',\n\t\t\t!empty($this->mailhandling[$queue]['folder']) ?\t$this->mailhandling[$queue]['folder'] : 'INBOX'\n\t\t);\n\n\t\t$this->smtpMail->AddStringAttachment($rawBody, $subject, 'message/rfc822');\n\n\t\tif(!$error=$this->smtpMail->Send())\n\t\t{\n\t\t\terror_log(__METHOD__.__LINE__.\" Failed forwarding message via email.$error\".print_r($this->smtpMail->ErrorInfo,true));\n\t\t\treturn false;\n\t\t}\n\t\tif (self::LOG_LEVEL>2) error_log(__METHOD__.__LINE__.array2string($this->smtpMail));\n\t\treturn true;\n\t}", "title": "" }, { "docid": "609c28813906f93cf710d581244e3846", "score": "0.60324085", "text": "function forward() {\n return app()->router->forward(...func_get_args());\n }", "title": "" }, { "docid": "b524db45b627b83ae63bf145ba351b93", "score": "0.6014417", "text": "public function forward($forward) {}", "title": "" }, { "docid": "eaa93566ed6a48cf7b217eb60c686605", "score": "0.60027736", "text": "function forward_message ( $TITLE, $MESSAGE, $URL, $STATUS = '')\n{\n global $FD;\n\n //check for addition HTTP Status\n\tif (!empty($STATUS) && false !== ($text = http_response_text($STATUS)))\n\t\theader($text, true, $STATUS);\n\n $forward_script = '\n<noscript>\n <meta http-equiv=\"Refresh\" content=\"'.$FD->cfg('auto_forward').'; URL='.$URL.'\">\n</noscript>\n<script type=\"text/javascript\">\n function auto_forward() {\n window.location = \"'.$URL.'\";\n }\n window.setTimeout(\"auto_forward()\", '.($FD->cfg('auto_forward')*1000).');\n</script>\n ';\n\n $template = new template();\n\n $template->setFile ( '0_general.tpl' );\n $template->load ( 'FORWARDMESSAGE' );\n\n $template->tag ( 'message_title', $TITLE );\n $template->tag ( 'message', $MESSAGE );\n $template->tag ( 'forward_url', $URL );\n $template->tag ( 'forward_time', $FD->cfg('auto_forward') );\n\n $template = $template->display ();\n return $forward_script.$template;\n}", "title": "" }, { "docid": "45e5c445ab2821c1ed835d1b8cfbcd40", "score": "0.59898007", "text": "public function sendMessage() {\n $requiredFields = ['to', 'reply', 'subject', 'message', 'emailFrom', 'nameFrom'];\n $errors = $this->sendMessageValidator($requiredFields);\n\n if (count($errors)) {\n return $this->redirect('/', [\n \"errors\" => $errors,\n \"post\" => $_POST,\n ]);\n }\n\n $mailer = new Mailer();\n $mailer = $this->addEmailsToMailer($mailer);\n\n if (is_array($mailer) && count($mailer['errors'])) {\n return $this->redirect('/', [\n \"errors\" => $mailer['errors'],\n \"post\" => $_POST,\n ]);\n }\n\n $mailer->addReplyTo(getenv('IMAP_USERNAME'), getenv('IMAP_ALIAS'));\n $mailer->setFrom($_POST['emailFrom'], $_POST['nameFrom']);\n $mailer->setSubject($_POST['subject']);\n $mailer->setBody($_POST['message']);\n\n if ($_FILES['attachment'] && $_FILES['attachment']['error'] == UPLOAD_ERR_OK) {\n $mailer->AddAttachment(\n $_FILES['attachment']['tmp_name'],\n $_FILES['attachment']['name']\n );\n }\n\n $sended = $mailer->send();\n if ($sended) {\n $mailer->save();\n return $this->redirect('/');\n }\n\n return $this->redirect('/', [\n \"errors\" => [],\n \"post\" => $_POST,\n ]);\n }", "title": "" }, { "docid": "74f86b1b81eff1084a8f5d76c83a5159", "score": "0.58733773", "text": "function forward()\n {\n \n }", "title": "" }, { "docid": "03bb85154fd74bc77d170f7a097348b5", "score": "0.5842113", "text": "public function forwardMessage($token, $datas = [])\r\n {\r\n return $this->telegram($token, \"forwardMessage\", $datas);\r\n }", "title": "" }, { "docid": "57c76cd5ce0368ab7dd8a9b815b29e93", "score": "0.5743487", "text": "public function forwardMessage($chat_id, $from_chat_id, $message_id)\r\n {\r\n $typeMethod = 'forwardMessage';\r\n\r\n $params = [\r\n 'chat_id' => $chat_id,\r\n 'from_chat_id' => $from_chat_id,\r\n 'message_id' => $message_id\r\n ];\r\n\r\n $result = $this->methodType($typeMethod, $params);\r\n\r\n return $result;\r\n }", "title": "" }, { "docid": "fd240e150405e1256ce495e7ec9d39e3", "score": "0.565792", "text": "public function forward()\n {\n $this->getSession()->forward();\n }", "title": "" }, { "docid": "b5ab486364dff64ae445f0d6b520a3c2", "score": "0.56273943", "text": "public function forward($name)\n\t{\n return $this->_findForward($name);\n\t}", "title": "" }, { "docid": "8a02b9aaa139f54b9c85d84d05b02f5c", "score": "0.5544771", "text": "public function forwardMessage( $chatId , $fromChatId , $messageId ) {\n\n return DataTransformer::transform( $this->post( 'forwardMessage' , [\n 'chat_id' => $chatId,\n 'from_chat_id' => $fromChatId,\n 'message_id' => $messageId\n ] )->getResult() , Message::class );\n\n }", "title": "" }, { "docid": "76f586bf5f8520092d1cf746b157a2e1", "score": "0.5469016", "text": "function forward($id, $options = null)\n {\n global $modx;\n\n if (!empty($id)) {\n $modx->sendForward($id, $options);\n }\n }", "title": "" }, { "docid": "ebbb44d2fa700f6a892df0997f916a71", "score": "0.53358185", "text": "public function forward(string $action, array $invoke_args = NULL);", "title": "" }, { "docid": "43de804152bcbbfd0c2de607c02166e4", "score": "0.5335647", "text": "function Communicator_ajax_forwardAsMail()\r\n{\r\n // Get parameters\r\n $id = (int) FormUtil::getPassedValue('id');\r\n\r\n // Language Domain\r\n $dom = ZLanguage::getModuleDomain('Communicator');\r\n\r\n // get message and let API send the receipt\r\n $forwardAction = pnModAPIFunc('Communicator','user','sendMailAtHome',array('id' => $id));\r\n if (!$forwardAction) {\r\n $output = __('Mail could not be read for forwarding!', $dom);\r\n } else {\r\n $output = __('Mail was forwarded to your mailbox:', $dom).' '.$forwardAction;\r\n }\r\n print $output;\r\n return true;\r\n}", "title": "" }, { "docid": "fc396116030b723637b3ae3f822caa84", "score": "0.53230494", "text": "final protected function Forward($box, $params) {\n $this->status = BoxModel::STATUS_FORWARD;\n $this->forwardbox = array($box, $params);\n }", "title": "" }, { "docid": "cbe7a3e9c4e8cf746edb6a184b03aceb", "score": "0.53130776", "text": "public function sendMessage() {\n $this->messageValidator();\n if ($this->validator->fails()) {\n return $this->validator;\n } else {\n $message = new Message();\n $message->from_user = Auth::id();\n $to_user = trim($this->custom_request->get('to_user'));\n if (filter_var($to_user, FILTER_VALIDATE_EMAIL)){\n $user = User::where('email', $to_user)->get();\n $message->to_user = $user[0]['id'];\n }\n else{\n $message->to_user = $to_user;\n }\n $message->body = $this->custom_request->get('body') !== null ? $this->custom_request->get('body') : '';\n $message->is_read = 0;\n\n if($message->save()){\n return $message->to_user;\n }\n }\n }", "title": "" }, { "docid": "5cdd3e0890d0792a2421cd7d87daea9c", "score": "0.52984095", "text": "public function sendMessage();", "title": "" }, { "docid": "d4ca169eb9da559b1f6a088a0e0f4164", "score": "0.5280166", "text": "public function dispatch(): Message;", "title": "" }, { "docid": "1f2d0e908bea0de7c68ee2a0cbf8f2bc", "score": "0.5261975", "text": "protected function & forward( $a_to )\n\t{\n\t\t$route = new ZRoute($a_to);\n\t\t//$route = clone $this->router->getCurrent();\n\t\t//$route->setController($rt->controller)->setAction($rt->action);\n\n\t\t$ret = null;\n\t\ttry\n\t\t{\n\t\t\t$ctl = $this->load->controller($route->controller);\n\t\t}\n\t\tcatch( ZControllerException $e )\n\t\t{\n\t\t\tif( Zoombi::getApplication()->isMode(ZApplication::MODE_DEBUG) )\n\t\t\t\ttrigger_error($e->getMessage(), Zoombi::EXC_ERROR);\n\t\t}\n\n\t\tif( !$ctl )\n\t\t\treturn;\n\n\t\t$old = clone $this->router->setForward($route)->getCurrent();\n\t\t$this->router->setCurrent($route);\n\n\t\ttry\n\t\t{\n\t\t\t$ret = $ctl->setForwarder($this)->requestAction(\n\t\t\t\t\t\t\t$route->getAction(),\n\t\t\t\t\t\t\t$route->getParams()\n\t\t\t);\n\t\t}\n\t\tcatch( ZControllerException $e )\n\t\t{\n\t\t\tif( $e->getCode() == ZControllerException::EXC_ACTION )\n\t\t\t{\n\t\t\t\ttrigger_error($e->getMessage());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( $this->application->isMode(ZApplication::MODE_DEBUG) )\n\t\t\t\t\tthrow $e;\n\t\t\t}\n\t\t}\n\t\t$this->router->setCurrent($old);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "68b83d6e477e0c8afbd2bf9baab64929", "score": "0.52378786", "text": "protected static /* @run */ function forward_to($target) {\n $forward = new action_forward();\n if (!$target instanceof target) {\n $target = new target($target);\n }\n $forward->set_target($target);\n throw $forward;\n }", "title": "" }, { "docid": "6de4481ca23fa5682acc9eb86dd60d69", "score": "0.5232445", "text": "public function forward(Request $request);", "title": "" }, { "docid": "94f65a0690749ab320b0074f7c2bdf88", "score": "0.52140296", "text": "public function sent();", "title": "" }, { "docid": "94f65a0690749ab320b0074f7c2bdf88", "score": "0.52140296", "text": "public function sent();", "title": "" }, { "docid": "3567def9e0bba60dbe7641cf2e1f02d9", "score": "0.5192074", "text": "public function send() {\n switch ($this->getTransport()) {\n case 'ftp':\n // strip possible '+' from phone number\n $to = str_replace('+', '', $this->getTo());\n // format SMS message for the gateway\n $sms = \"To: {$to}\\n\\n{$this->getMessage()}\";\n // make a temp file for the message\n $file = tempnam('/tmp', \"sms_{$to}_\" . time());\n file_put_contents($file, $sms);\n // ftp the message to the outgoing directory of the server\n $conn = ftp_ssl_connect($this->getHost(), $this->getPort());\n if ($conn && ftp_login($conn, $this->getUser(), $this->getPassword())) {\n ftp_pasv($conn, true);\n ftp_chdir($conn, $this->getOutdir());\n ftp_put($conn, basename($file), $file, FTP_ASCII);\n ftp_close($conn);\n @unlink($file);\n return true;\n } else if ($conn) {\n ftp_close($conn);\n @unlink($file);\n return false;\n }\n break;\n\n default:\n return false;\n break;\n }\n return false;\n }", "title": "" }, { "docid": "83b56a502fa398d489ac2aaf6cf65bcb", "score": "0.5187836", "text": "function message_send() {\n\t\texit ( 'Function ' . __FUNCTION__ . ' moved to the users API' );\n\t\t\n\t\tif ($_POST) {\n\t\t\t\n\t\t\t$this->_requireLogin ();\n\t\t\t\n\t\t\t$currentUser = CI::library('session')->userdata ( 'user' );\n\t\t\t\n\t\t\t$messageKey = $_POST ['mk'];\n\t\t\tunset ( $_POST ['mk'] );\n\t\t\t$messageKey = base64_decode ( $messageKey );\n\t\t\t$messageKey = CI::model('core')->securityDecryptString ( $messageKey );\n\t\t\t\n\t\t\tif ($currentUser ['email'] != $messageKey) {\n\t\t\t\texit ( 1 );\n\t\t\t}\n\t\t\t\n\t\t\t$data = $_POST;\n\t\t\t$data = stripFromArray ( $data );\n\t\t\t$data = htmlspecialchars_deep ( $data );\n\t\t\t\n\t\t\t/*\n\t\t\t * Format data array\n\t\t\t */\n\t\t\t\n\t\t\t// from user\n\t\t\t$data ['from_user'] = intval ( $currentUser ['id'] );\n\t\t\t\n\t\t\t// to user\n\t\t\t$data ['to_user'] = intval ( $data ['receiver'] );\n\t\t\tunset ( $data ['receiver'] );\n\t\t\t\n\t\t\t// parent id\n\t\t\tif ($data ['conversation']) {\n\t\t\t\t$data ['parent_id'] = $data ['conversation'];\n\t\t\t}\n\t\t\tunset ( $data ['conversation'] );\n\t\t\t\n\t\t\t// validate 'to_user'\n\t\t\tif ($data ['parent_id']) {\n\t\t\t\t\n\t\t\t\t$parentMessage = CI::model('core')->fetchDbData ( 'firecms_messages', array (array ('id', $data ['parent_id'] ) ) );\n\t\t\t\t\n\t\t\t\t$parentMessage = $parentMessage [0];\n\t\t\t\t\n\t\t\t\tif (! in_array ( $data ['to_user'], array ($parentMessage ['from_user'], $parentMessage ['to_user'] ) )) {\n\t\t\t\t\tthrow new Exception ( 'Cheating detected.' );\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$sent = CI::model('core')->saveData ( 'firecms_messages', $data );\n\t\t\t\n\t\t\techo $sent;\n\t\t\t\n\t\t\tCI::model('core')->cleanCacheGroup ( 'messages' );\n\t\t\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "5cc201e3825f1d6eaea137bd0b1b3350", "score": "0.5182697", "text": "public function send($message) { }", "title": "" }, { "docid": "8795fb9290404272112b373fb1dff50b", "score": "0.51618826", "text": "abstract public function send();", "title": "" }, { "docid": "8795fb9290404272112b373fb1dff50b", "score": "0.51618826", "text": "abstract public function send();", "title": "" }, { "docid": "8795fb9290404272112b373fb1dff50b", "score": "0.51618826", "text": "abstract public function send();", "title": "" }, { "docid": "190f5aafb439f27bc6b40cb549953334", "score": "0.5134356", "text": "public function send()\n\t\t{\n\t\t$this->gateway->Pre_SendMessage();\n\t\t$this->gateway->SendMessage();\n\t\t}", "title": "" }, { "docid": "23fe6c03bb5b41f61c91372326077de6", "score": "0.5127116", "text": "public function deliver()\n {\n return $this->send();\n }", "title": "" }, { "docid": "b6783d5fb87a26641b6525e42280af3f", "score": "0.5116694", "text": "public function forward() {\n\t\t$this->getSession()->forward();\n\t\t$this->__logCurrentUrl();\n\t\t$this->__assertNoCakeError();\n\t}", "title": "" }, { "docid": "f28da88f9bba50fe07633ec5b2028a03", "score": "0.5105787", "text": "public function sendTo()\r\n {\r\n $url = $this->protocol.'://mymsg.pw/api/v1/sendto';\r\n $params = array(\r\n 'email1' => $this->email1,\r\n 'email2' => $this->email2,\r\n 'telegram' => $this->telegram,\r\n 'replyto' => $this->replyTo,\r\n 'froma' => $this->fromAddress,\r\n 'fromt' => $this->fromTitle,\r\n 'subject' => $this->subject,\r\n 'message' => $this->message,\r\n );\r\n return $this->send($url, $params);\r\n }", "title": "" }, { "docid": "562baf2f8c4ff7cbb4df786d5a36f1d4", "score": "0.5080542", "text": "public function send() {\n return null; // This method sould be implemented by the derived class.\n }", "title": "" }, { "docid": "fe6d348973cded29675db81b8e3eb19e", "score": "0.5067557", "text": "public function send($message);", "title": "" }, { "docid": "123a07a7f4d16b4f5df3131dfb2e4bf4", "score": "0.50529504", "text": "abstract protected function _send();", "title": "" }, { "docid": "123a07a7f4d16b4f5df3131dfb2e4bf4", "score": "0.50529504", "text": "abstract protected function _send();", "title": "" }, { "docid": "ce3d1938d5b75c3177f98a22b1870324", "score": "0.5046984", "text": "public function execute()\n {\n $message = $this->getMessage();\n\n $chat_id = $message->getChat()->getId();\n $message_id = $message->getMessageId();\n\n $insult = insult();\n $data = [\n 'chat_id' => $chat_id,\n 'text' => $insult,\n 'reply_to_message_id' => $message_id,\n ];\n\n return Request::sendMessage($data); // Send message!\n }", "title": "" }, { "docid": "09499cc06a66d30ba12b6e03691ab92a", "score": "0.5046198", "text": "abstract public function send($message, $type);", "title": "" }, { "docid": "eb721e9dca420c9cc828c799d320c72f", "score": "0.5041414", "text": "public function send() {}", "title": "" }, { "docid": "eb721e9dca420c9cc828c799d320c72f", "score": "0.5041414", "text": "public function send() {}", "title": "" }, { "docid": "d01b86517b5c99f99e02e41f0b9c05bc", "score": "0.50363624", "text": "public function sendsms(){\n\t\t$this->sm->compose();\n\t}", "title": "" }, { "docid": "75c6c38d7f6963124b46ad437f2769b8", "score": "0.50239307", "text": "public function dispatch()\r\n {\r\n $page = get_post('_page') ? get_post('_page') : DEFAULT_PAGE;\r\n $action = get_post('_action') ? get_post('_action') : DEFAULT_ACTION;\r\n\r\n $this->forward($page, $action);\r\n }", "title": "" }, { "docid": "b91f9405d193ac8c19164b6b4fae8cc6", "score": "0.50180125", "text": "function send($message);", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "64f5c01a959e6b9a81dcd36559fe3b0d", "score": "0.50025535", "text": "public function send();", "title": "" }, { "docid": "3cc4e843185c0aeb2bf10dc8c4de3a8a", "score": "0.500132", "text": "public function service_formForward($request, $response)\n {\n\n // prüfen ob irgendwelche steuerflags übergeben wurde\n $params = $this->getFlags($request);\n\n $msgId = $request->param('objid', Validator::EID);\n\n /* @var $model BuizMessage_Model */\n $model = $this->loadModel('BuizMessage');\n $model->loadTableAccess($params);\n\n if (!$model->access->access) {\n throw new InvalidRequest_Exception\n (\n 'Access denied',\n Response::FORBIDDEN\n );\n }\n\n $model->loadMessage($msgId);\n\n // create a window\n $view = $response->loadView\n (\n 'form-messages-forward-'.$msgId,\n 'BuizMessage_Forward',\n 'displayForm'\n );\n $view->setModel($this->loadModel('BuizMessage'));\n\n $view->displayForm($params);\n\n }", "title": "" }, { "docid": "edf8c0ecdb2d7811c0145e9104b2ce98", "score": "0.49912626", "text": "public function forward($path);", "title": "" }, { "docid": "8554bc2e73329463948f0cf1881992a0", "score": "0.49772638", "text": "public function send()\n {\n return $this->next->send();\n }", "title": "" }, { "docid": "aeec73750a839872056e1d13e1a2c446", "score": "0.49578246", "text": "public function send(MessageInterface $message);", "title": "" }, { "docid": "aeec73750a839872056e1d13e1a2c446", "score": "0.49578246", "text": "public function send(MessageInterface $message);", "title": "" }, { "docid": "220aa499e8ddf21628c9383446401654", "score": "0.4932637", "text": "public function directCommunication()\n\t{\n\t\t$this->handle();\n\t}", "title": "" }, { "docid": "2519169aef3beda5c5ca45753f62b83a", "score": "0.49284768", "text": "public function forward($moduleName, $actionName)\n {\n\n try\n {\n parent::forward($moduleName, $actionName);\n }\n catch(sfForwardException $e)\n {\n throw new sfForwardException(sprintf(\"Error forwarding to %s %s: %s\",$moduleName, $actionName, $e->getMessage()));\n }\n }", "title": "" }, { "docid": "bda0db394a3b31f3d7bdb0be91c27b24", "score": "0.4920557", "text": "function addForwarder($forward)\n {\n $data['email'] = $this->email;\n $data['domain'] = $this->domain;\n $data['forward'] = $forward;\n $response = $this->HTTP->getData('mail/doaddfwd.html', $data);\n if (strpos($response, 'redirected')) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "eb7ea2b40e8302cfe4effc03cb75bb1c", "score": "0.49123663", "text": "public function send()\n {\n $data = [\n 'from' => $this->_sender,\n 'to' => implode(',', $this->_recipients),\n 'subject' => $this->_subject,\n 'html' => $this->_message,\n 'text' => strip_tags($this->_message),\n ];\n \n // Append trackings to data, eg:\n // 'o:tracking' => 'yes'\n // 'o:tracking-clicks' => 'yes'\n // 'o:tracking-opens' => 'yes'\n if (!empty($this->_trackings)) {\n foreach ($this->_trackings as $key => $val) {\n $data[ \"o:{$key}\" ] = $val;\n }\n }\n\n if (!empty($this->_tag)) {\n $data['o:tag'] = $this->_tag;\n }\n\n // Add the reply-to address (@since 1.2.0)\n if ($this->_replyTo) {\n $data['h:Reply-To'] = $this->_replyTo;\n }\n\n // Add the custom variables\n if (!empty($this->_customVars)) {\n foreach ($this->_customVars as $key => $val) {\n $data[ \"v:{$key}\" ] = $val;\n }\n }\n\n $curl = curl_init($this->_apiBase . $this->_domain . '/messages');\n\n // Add headers to the call, if any (@since 1.2.0)\n if (sizeof($this->_headers) > 0) {\n curl_setopt($curl, CURLOPT_HTTPHEADER, $this->_headers);\n } else {\n curl_setopt($curl, CURLOPT_HEADER, false);\n }\n\n if (sizeof($this->_attachments) > 0) {\n foreach ($this->_attachments as $key => $att) {\n $data[$att['disposition'] . '[' . ($key + 1) . ']'] = curl_file_create(\n $att['path'],\n $att['type'],\n $att['name']\n );\n }\n }\n\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($curl, CURLOPT_USERPWD, 'api:' . $this->_apiKey);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n curl_setopt($curl, CURLOPT_ENCODING, $this->_encoding);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $this->_timeout);\n\n $response = curl_exec($curl);\n\n $this->_info = curl_getinfo($curl);\n\n curl_close($curl);\n\n $results = json_decode($response, true);\n\n return $results;\n }", "title": "" }, { "docid": "e355b4a5c40b3505893034d736cc13fe", "score": "0.4901438", "text": "public function __call($method, $parameters)\n {\n return $this->forwardCallTo($this->sentMessage, $method, $parameters);\n }", "title": "" }, { "docid": "2f009920f177d5c9424bc7dc3ee54cb0", "score": "0.4875566", "text": "public function toMessage();", "title": "" }, { "docid": "fba809be0715663142bb7515bba46c25", "score": "0.4874376", "text": "public function send ();", "title": "" }, { "docid": "ac94e6efb06481368b84a9c277a857ec", "score": "0.48587748", "text": "public function post()\n {\n #/ Check for initial errors from api\n if(!empty($this->apiObj->errorMsg))\n return $this->error_return($this->apiObj->errorMsg);\n\n #/ send message\n $req_result = $this->apiObj->post_message($this->POST);\n\n #/ check for error\n if(!empty($this->apiObj->errorMsg))\n return $this->error_return($this->apiObj->errorMsg);\n\n #/ check for other notices\n if(!empty($this->apiObj->notices))\n return $this->msg_return($this->apiObj->notices);\n\n\n #/ return success\n return response()\n ->json(['success'=> 'Your message has been dispatched successfully.'], 200)\n ->withHeaders([\n 'Content-Type'=>'application/json',\n ]);\n }", "title": "" }, { "docid": "4171958c1571131cd0da6a01c140e5aa", "score": "0.48567757", "text": "abstract public function sendMessage(AbstractMessage $message);", "title": "" }, { "docid": "2a9e6292a66c10656e3c0b5e294a9918", "score": "0.48458347", "text": "abstract protected function sendMessage(MessageInterface $message): void;", "title": "" }, { "docid": "126217bc32c79d73b81ad95031fc2d83", "score": "0.48434618", "text": "function send($_receiver, $_message, $_sender=null)\n\t{\n\t\tif (!$this->dnsResolver)\n\t\t{\n\t\t\t$dnsResolverFactory = new \\React\\Dns\\Resolver\\Factory();\n\t\t\t$this->dnsResolver = $dnsResolverFactory->createCached('8.8.8.8', $this->loop);\n\t\t}\n\t\t$sender=$_sender;\n\t\tif (!$sender) $sender=$this->config->data->defaultSender;\n\n\t\t$factory = new \\React\\HttpClient\\Factory();\n\t\t$client = $factory->create($this->loop, $this->dnsResolver);\n\t\t$parameters=array(\"key\"=>$this->config->data->apiKey,\n\t\t\t\t\t\t \"message\"=>$_message,\n\t\t\t\t\t\t \"to\"=>$_receiver,\n\t\t\t\t\t\t \"from\"=>$sender,\n\t\t\t\t\t\t \"route\"=>$this->config->data->route);\n\n\t\t$request = $client->request('GET', 'http://gw.mobilant.net/'.http_build_query($parameters));\n\t\t$fullResponse=\"\";\n\t\t$deferred=new Deferred();\n\n\t\t$request->on('response', function ($response) use ($fullResponse,$deferred) {\n\t\t\t$response->on('data', function ($data) use ($fullResponse) {\n\t\t\t\t$fullResponse.=$data;\n\t\t\t});\n\t\t\t$response->on(\"end\",function($_error) use ($fullResponse,$deferred) {\n\t\t\t\tif (!$_error && $fullResponse==\"100\")\n\t\t\t\t{ //all went well!\n\t\t\t\t\t$deferred->resolve(true);\n\t\t\t\t}\n\t\t\t\telse $deferred->reject(\"Response was no success!\");\n\t\t\t});\n\t\t\t$response->on(\"error\",function() use ($deferred){\n\t\t\t\t$deferred->reject(\"Error with response!\");\n\t\t\t});\n\t\t});\n\t\t$request->on('error',function() use ($deferred){\n\t\t\t$deferred->reject(\"Error with http-request!\");\n\t\t});\n\t\t$request->end();\n\t\treturn $deferred->promise();\n\t}", "title": "" }, { "docid": "1ca0947dc707bd3eb2eb2e149a89fef4", "score": "0.4833094", "text": "public function send()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1f66d4775df52792208e78138070ad24", "score": "0.4827837", "text": "public function send()\n {\n\n foreach ($this->replies as $reply) {\n\t \n ApiClient::call('POST', 'send_message', $reply->getBody());\n \n }\n \n $this->replies = [];\n \n return $this;\n\n }", "title": "" }, { "docid": "20de593e797ec18726110d58a5dcc3bc", "score": "0.48199916", "text": "abstract public function deliver(Message $message): void;", "title": "" }, { "docid": "3c3b2c26b2ccbd66da7351175fb3a54c", "score": "0.4810084", "text": "public function doForward(IEvent $Event)\n {\n // Check current page\n if ($this->_Current < count($this->_History) - 1) {\n\n // Retrieve page\n $this->_Current ++;\n\n $Page = $this->_History[$this->_Current];\n\n // Browser.Page.Change event\n $this->_do('Page.Change', new Event($this, array(\n 'Target' => 'forward',\n 'URI' => &$Page->Base,\n 'BaseURI' => &$this->_Component->Base\n )));\n\n $this->setPage($Page);\n\n $this->debug(sprintf('Navigated forward to (%s)', $Page->Base));\n\n // Browser.Page.Ready Event\n $this->_do('Page.Ready', new Event($this));\n }\n\n // No more history\n else {\n $this->notice('Tried to navigate forward to non existant page');\n }\n }", "title": "" }, { "docid": "c2d5d5203766efb4d25636d593b57b8f", "score": "0.48004442", "text": "public function send()\n {\n // Send email\n return $this->request('messages/send');\n }", "title": "" }, { "docid": "e106449a329a66ba95ee571044652c5b", "score": "0.47901183", "text": "protected function _findForward($name) {\n // load the ActionForward from the ActionMapping\n\t $actionForward = $this->_getActionMapping()->findForward($name);\n\t // check if a redirect has to be done\n\t if (!$actionForward->isRedirect()) {\n\t // if not initialize the Block\n $this->_getBlock($actionForward);\n\t }\n\t // set the ActionForward in the Context\n\t $this->getContext()->setActionForward(\n\t $actionForward\n\t );\n\t // return the ActionForward\n\t return $actionForward;\n\t}", "title": "" }, { "docid": "f204d3cb06abbcb08f679f67fd146e91", "score": "0.47843152", "text": "public function send($message) {\n $this->websocketManager->sendMessage($message);\n $this->messenger()->addStatus('The message has been sent.');\n\n $url = Url::fromRoute('<front>');\n return new RedirectResponse($url->toString());\n }", "title": "" }, { "docid": "bcf2587d7d57c255aa00b9e5255f9ac2", "score": "0.47704008", "text": "public function doSend ()\r\n\t{\r\n\t}", "title": "" }, { "docid": "5d4fac1095278f7140f50905b79facf6", "score": "0.47608784", "text": "public function sendReplyMessage()\n {\n\n $textMessageBuilder = new TextMessageBuilder('Reply');\n // $replyToken = $bot->getEve()\n $response = $this->bot->replyMessage('<replyToken>', $textMessageBuilder);\n return redirect()->back();\n\n echo $response->getHTTPStatus() . ' ' . $response->getRawBody();\n }", "title": "" }, { "docid": "39e516a014b0d0e1b516c0448418385e", "score": "0.47460595", "text": "public function sendMessage()\n {\n if ($this->input->post('message') != NULL) {\n $message = $this->input->post('message');\n $targetID = $this->input->post('targetId');\n $messagesend = array(\n 'Posted_to' => $targetID,\n 'Message' => $message,\n 'User_id' => $this->session->userdata('user_id')\n );\n $this->message_model->sendMessage($messagesend);\n }\n }", "title": "" }, { "docid": "1da2148a12b0243cdf77ca296c650464", "score": "0.4741626", "text": "function forward($location = \"\") {\n\t\t\tglobal $CONFIG;\n\t\t\tif (!headers_sent()) {\n\t\t\t\t \n\t\t\t\t $current_page = current_page_url();\n\t\t\t\t if (strpos($current_page, $CONFIG->wwwroot . \"action\") ===false)\n\t\t\t\t \n\t\t\t\t $_SESSION['messages'] = system_messages();\n\t\t\t\t if ((substr_count($location, 'http://') == 0) && (substr_count($location, 'https://') == 0)) {\n\t\t\t\t \t\n\t\t\t\t \t$location = $CONFIG->url . $location;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t header(\"Location: {$location}\");\n\t\t\t\t exit;\n\t\t\t}\n\t\t\treturn false;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3d0e5c214be26bcaa2268dc2e384a3dc", "score": "0.47381064", "text": "public function send(OutgoingMessage $message)\n {\n $composeMessage = $message->composeMessage();\n\n //Convert to sms77 format.\n $numbers = implode(',', $message->getTo());\n\n $data = [\n 'u' => $this->auth['username'],\n 'p' => $this->auth['password'],\n 'to' => $numbers,\n 'from' => $message->getFrom(),\n 'type' => 'direct',\n 'text' => $composeMessage,\n 'debug' => (int) $this->debug,\n ];\n\n $this->buildCall('');\n $this->buildBody($data);\n\n $response = $this->postRequest();\n $responseBody = $response->getBody()->read(3);\n if ($this->hasError($responseBody)) {\n $this->handleError($responseBody);\n }\n\n return $response;\n }", "title": "" }, { "docid": "b778e1eca1b38f5ca41069f7cc78dce0", "score": "0.47362617", "text": "private function processForward(Request $request, Forward $forward) {\n\t\treturn $forward->run($this->di, $this->config, $request);\n\t}", "title": "" }, { "docid": "64e3b8b07e9b1e4b728f5ff049adbe87", "score": "0.4731906", "text": "function sendMessage($to,$message,$from)\n{\n\n}", "title": "" }, { "docid": "ca8501109837cb22c2f5dabc45fef3e9", "score": "0.47303572", "text": "public function handleErrorNewTranslation()\n {\n // Send the response back to the calling module, with errors intact\n $this->forward($this->getrequestParameter(\"referingModule\"), $this->getrequestParameter(\"referingAction\"));\n }", "title": "" }, { "docid": "956014fe105a1d0ba2fc2c3c887092b9", "score": "0.4729674", "text": "public function send()\n {\n }", "title": "" }, { "docid": "30318393aea6cc1985d3d5f8008330dc", "score": "0.4718127", "text": "public function receive() {\n $post = @$GLOBALS['HTTP_RAW_POST_DATA'];\n\n if (empty($post)) {\n $this->error_msg = 'Empty HTTP_RAW_POST_DATA.';\n return false;\n }\n\n $input = $this->process_post($post);\n\n if ($input == false) {\n return false;\n }\n\n $hit = false;\n $hit_by = null;\n $response = null;\n\n global $modules;\n\n foreach ($modules as $module) {\n /* @var $module BaseModule */\n if ($module->can_handle_input($input)) {\n $hit = true;\n $hit_by = get_class($module);\n $response = $module->raw_output($input);\n break;\n }\n }\n\n echo $response;\n\n do_actions('message_received', array($input, $hit, $hit_by, $response));\n\n return true;\n }", "title": "" }, { "docid": "8a58b5516ff746039b3974cabc93960e", "score": "0.47178704", "text": "public function execute() {\r\n\t\t$to = $this->get_to();\r\n\t\tif (empty($to)) {\r\n\t\t\treturn $this->err; // No recipient, no mail...\r\n\t\t}\r\n\r\n\t\t$message = $this->get_message();\r\n\t\t$append = $this->get_message_extension();\r\n\t\tif (!empty($append)) {\r\n\t\t\tif ($this->html_mail) {\r\n\t\t\t\t$message .= \"\\n\\n<p>------------------------</p>\\n\\n\" . $append;\r\n\t\t\t} else {\r\n\t\t\t\t$message .= \"\\n\\n------------------------\\n\\n\" . $append;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$subject = $this->get_subject();\r\n\r\n\t\tif ($this->err->is_ok()) {\r\n\t\t\t$mail = $this->create_mail_message($subject, $message, $to);\r\n\t\t\t\t\r\n\t\t\t// Set alternative message\r\n\t\t\t$mail->set_alt_message($this->compute_alt_message($message));\r\n\r\n\t\t\t// Set custom attachments\r\n\t\t\tforeach($this->attachments as $attachment) {\r\n\t\t\t\t$mail->add_attachment($attachment);\r\n\t\t\t}\r\n\r\n\t\t\t// Set custom headers\r\n\t\t\tforeach($this->additional_headers as $name => $value) {\r\n\t\t\t\t$mail->add_header($name, $value);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t// Set overlaoded attachments\r\n\t\t\tforeach(Arr::force($this->get_attachments(), false) as $a) {\r\n\t\t\t\t$mail->add_attachment($a);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t// Send\r\n\t\t\t$this->err->merge($mail->send());\r\n\t\t}\r\n\r\n\t\treturn $this->err;\r\n\t}", "title": "" }, { "docid": "b5317ce3a40c769e043f5884860eff8b", "score": "0.4716945", "text": "function send() {\n\t\t$headers = \"From: {$this->getFromMessage()} <{$this->getFromAccount()}> \\r\\n\";\n\t\tif ( $this->getHtml() )\n\t\t\t$headers .= \"Content-Type: text/html; charset=UTF-8\\r\\n\";\n\t\t$headers .= \"Reply-To: {$this->getReplyto()} \\r\\n\";\n\t\t//Send notification\n\t\treturn \\wp_mail( $this->getEmailTo(), $this->getSubject(), $this->getMessage(), $headers );\n\t}", "title": "" }, { "docid": "ada09a579ff537444be0fd414f159939", "score": "0.47034472", "text": "public function createMessageFlow();", "title": "" }, { "docid": "3da06cdfc8aabfac4da2096e04b4204d", "score": "0.47025758", "text": "public function isForward()\n {\n return $this->statusCode >= 300 && $this->statusCode < 400;\n }", "title": "" }, { "docid": "3d1894d270103cc1cf074a0f2a9d95dd", "score": "0.46906126", "text": "public function send ()\n {\n $this->getTransport()->send( $this );\n return $this;\n }", "title": "" }, { "docid": "20d1961e3a54e0513b201511d8e4ecba", "score": "0.4689855", "text": "public function execute()\n {\n /** @var \\Magento\\Backend\\Model\\View\\Result\\Redirect $resultRedirect */\n $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);\n $data = $this->getRequest()->getPostValue();\n\n if ($data) {\n $data = $this->normalizeData($data);\n\n /** @var \\Augustash\\CheckoutMessage\\Model\\Message $model */\n $model = $this->messageFactory->create();\n\n $id = $this->getRequest()->getParam('message_id') ?: null;\n if ($id) {\n try {\n $model = $this->messageRepository->getById($id);\n } catch (LocalizedException $e) {\n $this->messageManager->addErrorMessage(__('This checkout message no longer exists.'));\n return $resultRedirect->setPath('admin/dashboard');\n }\n }\n\n /** @var \\Augustash\\CheckoutMessage\\Model\\Message $model */\n $model->setData($data);\n\n try {\n $this->messageRepository->save($model);\n $this->messageManager->addSuccessMessage(__('The checkout message was saved.'));\n $this->dataPersistor->clear('checkout_message');\n\n $redirect = $data['back'] ?? 'close';\n if ($redirect === 'close') {\n return $resultRedirect->setPath('adminhtml/dashboard/');\n }\n } catch (LocalizedException $e) {\n $this->messageManager->addErrorMessage($e->getMessage());\n } catch (\\Exception $e) {\n $this->messageManager->addExceptionMessage($e, __('Something went wrong while saving the message.'));\n }\n\n $this->dataPersistor->set('checkout_message', $data);\n return $resultRedirect->setPath('*/*/edit');\n }\n\n return $resultRedirect->setPath('adminhtml/dashboard/');\n }", "title": "" }, { "docid": "1d7e90dc1402e044de9ca57e8c2c84a5", "score": "0.468302", "text": "public function insertMessageRequest(Message $message)\n {\n if (!$this->isDbConnected()) {\n return false;\n }\n\n $date = $this->getTimestamp($message->getDate());\n\n $user = $message->getFrom();\n\n // Insert chat, update chat id in case it migrated\n $chat = $message->getChat();\n $this->insertChat($chat, $date, $message->getMigrateToChatId(), $user);\n\n // Insert user and the relation with the chat\n if ($user instanceof User) {\n $this->insertUser($user, $date, $chat);\n }\n\n // Insert the forwarded message user in users table\n $forward_date = null;\n $forward_from = $message->getForwardFrom();\n if ($forward_from instanceof User) {\n $this->insertUser($forward_from, $forward_date);\n $forward_from = $forward_from->getId();\n $forward_date = $this->getTimestamp($message->getForwardDate());\n }\n $forward_from_chat = $message->getForwardFromChat();\n if ($forward_from_chat instanceof Chat) {\n $this->insertChat($forward_from_chat, $forward_date);\n $forward_from_chat = $forward_from_chat->getId();\n $forward_date = $this->getTimestamp($message->getForwardDate());\n }\n\n // New and left chat member\n $new_chat_members_ids = null;\n $left_chat_member_id = null;\n\n $new_chat_members = $message->getNewChatMembers();\n $left_chat_member = $message->getLeftChatMember();\n if (!empty($new_chat_members)) {\n foreach ($new_chat_members as $new_chat_member) {\n if ($new_chat_member instanceof User) {\n // Insert the new chat user\n $this->insertUser($new_chat_member, $date, $chat);\n $new_chat_members_ids[] = $new_chat_member->getId();\n }\n }\n $new_chat_members_ids = implode(',', $new_chat_members_ids);\n } elseif ($left_chat_member instanceof User) {\n // Insert the left chat user\n $this->insertUser($left_chat_member, $date, $chat);\n $left_chat_member_id = $left_chat_member->getId();\n }\n\n $user_id = null;\n if ($user instanceof User) {\n $user_id = $user->getId();\n }\n $chat_id = $chat->getId();\n\n $reply_to_message = $message->getReplyToMessage();\n $reply_to_message_id = null;\n if ($reply_to_message instanceof ReplyToMessage) {\n $reply_to_message_id = $reply_to_message->getMessageId();\n // please notice that, as explained in the documentation, reply_to_message don't contain other\n // reply_to_message field so recursion deep is 1\n $this->insertMessageRequest($reply_to_message);\n }\n $reply_to_chat_id = null;\n if ($reply_to_message_id !== null) {\n $reply_to_chat_id = $chat_id;\n }\n\n $entities = $this->entitiesArrayToJson($message->getEntities(), null);\n $photo = $this->entitiesArrayToJson($message->getPhoto(), null);\n $new_chat_photo = $this->entitiesArrayToJson($message->getNewChatPhoto(), null);\n\n return $this->insertMessageRequestToDb(\n $message, $chat_id, $user_id, $date, $forward_from, $forward_from_chat, $forward_date,\n $reply_to_chat_id, $reply_to_message_id, $entities, $photo, $new_chat_photo, $new_chat_members_ids, $left_chat_member_id\n );\n }", "title": "" }, { "docid": "b52c7cd127caeb116468f65b164b23d3", "score": "0.46752128", "text": "public function send()\n {\n }", "title": "" } ]
9934de49294944fdf5bfdbc6bfc2e091
/ checkLoginUser() purpose : verify user and add login entry
[ { "docid": "47ecc9f5bb901f95b276b6509d661ea6", "score": "0.0", "text": "public function checkLoginUser()\n {\n $data = $this->session->userdata;\n if(empty($data)){\n redirect(site_url().'auth');\n }\n\n $this->load->library('user_agent');\n $browser = $this->agent->browser();\n $os = $this->agent->platform();\n $getip = $this->input->ip_address();\n\n $result = $this->user_model->getAllSettings();\n $stLe = $result->site_title;\n $tz = $result->timezone;\n\n $now = new DateTime();\n $now->setTimezone(new DateTimezone($tz));\n $dTod = $now->format('Y-m-d');\n $dTim = $now->format('H:i:s');\n\n $this->load->helper('cookie');\n $keyid = rand(1,9000);\n $scSh = sha1($keyid);\n $neMSC = md5($data['email']);\n $setLogin = array(\n 'name' => $neMSC,\n 'value' => $scSh,\n 'expire' => strtotime(\"+2 year\"),\n );\n $getAccess = get_cookie($neMSC);\n\n if(!$getAccess && $setLogin[\"name\"] == $neMSC){\n $this->load->library('email');\n $this->load->library('sendmail');\n $bUrl = base_url();\n $message = $this->sendmail->secureMail($data['first_name'],$data['last_name'],$data['email'],$dTod,$dTim,$stLe,$browser,$os,$getip,$bUrl);\n $to_email = $data['email'];\n $this->email->from($this->config->item('register'), 'New sign-in! from '.$browser.'');\n $this->email->to($to_email);\n $this->email->subject('New sign-in! from '.$browser.'');\n $this->email->message($message);\n $this->email->set_mailtype(\"html\");\n $this->email->send();\n \n $this->input->set_cookie($setLogin, TRUE);\n redirect(site_url().'dashboard');\n }else{\n $this->input->set_cookie($setLogin, TRUE);\n redirect(site_url().'dashboard');\n } \n }", "title": "" } ]
[ { "docid": "25117c081fd89595db828832617a378a", "score": "0.71840185", "text": "public function checkLogin() {\n\t\t$user_ok = false;\n\t\t$user_id = \"\";\n\t\t$log_usename = \"\";\n\t\t$category = \"\";\n\t\tif (isset($_SESSION['user_id']) && isset($_SESSION['username'])) {\n\t\t\t$user_id = preg_replace('#[^0-9]#', '', $_SESSION['user_id']);\n\t\t\t$log_usename = preg_replace('#[^a-z0-9]#i', '', $_SESSION['username']);\n\t\t\t// Verify the user\n\t\t\t$user_ok = $this -> evalLoggedUser($user_id, $log_usename);\n\t\t} else if (isset($_COOKIE[\"user_id\"]) && isset($_COOKIE[\"username\"]) && isset($_COOKIE[\"type\"])) {\n\t\t\t$_SESSION['user_id'] = preg_replace('#[^0-9]#', '', $_COOKIE['user_id']);\n\t\t\t$_SESSION['username'] = preg_replace('#[^a-z0-9]#i', '', $_COOKIE['username']);\n\t\t\t$user_id = preg_replace('#[^0-9]#', '', $_SESSION['user_id']);\n\t\t\t$log_usename = preg_replace('#[^a-z0-9]#i', '', $_SESSION['username']);\n\t\t\t// Verify the user\n\t\t\t$user_ok = $this -> evalLoggedUser($user_id, $log_usename);\n\t\t\tif ($user_ok == true) {\n\t\t\t\t// Update their lastlogin datetime field\n\t\t\t\tR::exec(\"UPDATE credentials SET last_login = now() WHERE user_id = '$user_id' LIMIT 1\");\n\t\t\t}\n\t\t}\n\t\treturn $user_ok;\n\t}", "title": "" }, { "docid": "3a9ee7adc4c71698e5b1331d06818e7d", "score": "0.7074062", "text": "protected function validateUser() {\n\t\t$this->user = UserAuth::getInstance()->loginManually($this->username, $this->password);\n\t}", "title": "" }, { "docid": "2ad89796aba209cf975636fba826783e", "score": "0.6976081", "text": "public static function verificaLogin() {\n echo \"O usuário \".self::$user.\" está logado!<br>\";\n }", "title": "" }, { "docid": "9c91d1f1dcfe602685684233383eda4d", "score": "0.694744", "text": "function checkLogin()\n {\n }", "title": "" }, { "docid": "d7aeed64c23896199a6075817d45b1f9", "score": "0.6899919", "text": "private function checkLoginState(): void {\n\t\tif ( !$this->getUser()->isRegistered() ) {\n\t\t\t$this->dieWithError(\n\t\t\t\t[ 'apierror-mustbeloggedin', $this->msg( 'action-editmyprivateinfo' ) ],\n\t\t\t\t'notloggedin'\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "3079d79c155aa5b79894fabf1a696874", "score": "0.68906486", "text": "function checkUserLogin() {\n\n // Verifies if a session exists in the userData\n // Must be an array ant cannot be the $_POST itself\n if ( isset($_SESSION['userData']) \n && !empty($_SESSION['userData']) \n && is_array($_SESSION['userData'])) {\n \n // Configures user data from session\n $aUserData = $_SESSION['userData'];\n\n // must not be http post\n $aUserData['post'] = false;\n }\n\n // Verifies if a POST exists in the userData\n // Must be an array\n if (isset($_POST['userData']) && !empty($_POST['userData']) && is_array($_POST['userData'])\n ) {\n // Instances user data POST\n $aUserData = $_POST['userData'];\n\n // Guarantee POST\n $aUserData['post'] = true;\n }\n\n // Verifies if there is no userData anymore to log out\n if (!isset($aUserData) || !is_array($aUserData)) {\n\n // Removes any user session \n $this->logout();\n\n return true;\n }\n\n // Instances POST in a new var\n if ($aUserData['post'] === true) {\n $aPost = true;\n } else {\n $aPost = false;\n }\n\n // Removes POST from userData\n unset($aUserData['post']);\n\n // Logging Out\n if (empty($aUserData)) {\n $this->isLogged = false;\n $this->loginError = null;\n $this->logout();\n\n return true;\n }\n\n // Extrai from user data\n extract($aUserData);\n\n // VErifies if exists user and password\n if (!isset($user) || !isset($userPassword)) {\n $this->isLogged = false;\n $this->loginError = null;\n\n // Remove qualquer sessão que possa existir sobre o usuário\n $this->logout();\n\n return false;\n }\n\n // Verifies if user exists in database\n $sQuery = $this->db->query('SELECT * FROM users WHERE user = ? LIMIT 1', array($user));\n\n // Verifies query\n if (!$sQuery) {\n $this->isLogged = false;\n $this->loginError = 'Internal database query error.';\n\n // Logs out the application\n $this->logout();\n\n return false;\n }\n\n // Get user data from database\n $aFetch = $sQuery->fetch(PDO::FETCH_ASSOC);\n\n // Get user ID\n $iUserId = (int) $aFetch['user_id'];\n\n // Verifies if Id exists\n if (empty($iUserId)) {\n $this->isLogged = false;\n $this->loginError = 'User does not exists.';\n\n // Logs out, because there is no user\n $this->logout();\n\n return false;\n }\n\n // Checks if password is equal database hash\n if ($this->phpass->CheckPassword($userPassword, $aFetch['userPassword'])) {\n\n // verifies if the session id is equal user's session\n if (session_id() != $aFetch['userSessionId'] && !$aPost) {\n $this->isLogged = false;\n $this->loginError = 'Wrong session ID.';\n\n // Remove qualquer sessão que possa existir sobre o usuário\n $this->logout();\n\n return;\n }\n\n // If there is a post\n if ($aPost) {\n \n // Rebuild session id\n session_regenerate_id();\n $session_id = session_id();\n\n // Send User data to the session\n $_SESSION['userData'] = $aFetch;\n\n // Updates password\n $_SESSION['userData']['userPassword'] = $userPassword;\n\n // Updates session id\n $_SESSION['userData']['userSessionId'] = $session_id;\n\n // Updates session id in database\n $sQuery = $this->db->query('UPDATE users SET userSessionId = ? WHERE user_id = ?', array($session_id, $iUserId));\n }\n\n // Get array with permissions\n $_SESSION['userData']['userPermissions'] = unserialize($aFetch['userPermissions']);\n\n // Configures property saying that the user is logged in\n $this->isLogged = true;\n\n // Set user data from session\n $this->userData = $_SESSION['userData'];\n\n // Verifies if exists a URL to redirects\n if (isset($_SESSION['goToURL'])) {\n // Instance that URL\n $sGoToURL = urldecode($_SESSION['goToURL']);\n\n // Removes URL from session\n unset($_SESSION['goToURL']);\n\n // Redireciona para a página\n //echo '<meta http-equiv=\"Refresh\" content=\"0; url=' . $sGoToURL . '\">';\n //echo '<script type=\"text/javascript\">window.location.href = \"' . $sGoToURL . '\";</script>';\n header('Location: ' . $goToURL );\n }\n\n return true;\n \n } else {\n \n // User not logged\n $this->isLogged = false;\n // Password is not matching:\n $this->loginError = 'Password does not match.';\n $this->logout();\n return false;\n }\n }", "title": "" }, { "docid": "93c4be148ab4bc7d2aec088cdccd1551", "score": "0.6860695", "text": "static function checkLoginUser() {\n self::checkValidSessionId();\n if (!isset($_SESSION[\"glpiname\"])) {\n // Gestion timeout session\n self::redirectIfNotLoggedIn();\n Html::displayRightError();\n }\n }", "title": "" }, { "docid": "bbb6d053adfdcf47064c03aaabadd97d", "score": "0.68566686", "text": "public function checkAddUser(){\r\n\r\n /*\r\n * Comprobamos sesión si no enviamos a login\r\n */\r\n\r\n if (!$this->authService->hasIdentity()) {\r\n return $this->redirect()->toRoute('fruteria',array('controller' => 'login','action' => 'index'));\r\n }else{\r\n $miSesion = $this->storage->getMember();\r\n $this->usuarioLogin = $this->storage->read();\r\n //Debug::dump($this->storage->read());\r\n $this->getIdprofile();\r\n }\r\n }", "title": "" }, { "docid": "0e95aa97d65de04918b33fb4a282c305", "score": "0.6855132", "text": "function usr_login($usr_data){\n \t\n \t$usr_data['usr_email'];\n \t$usr_data['usr_pass'];\n\n $recordCheck = $this->db->query(\"SELECT * FROM admin WHERE usrName = '\".$usr_data['usr_email'].\"'\"); \n \n if($recordCheck->num_rows() == 1){\n foreach ($recordCheck->result() as $record){\n if(password_verify($usr_data['usr_pass'], $record->password)){\n return TRUE;\n }\n else{\n return false;\n \n }\n }\n }\n else{\n \n return false;\n }\n }", "title": "" }, { "docid": "220351ef7c7703f5c1913a61858d5484", "score": "0.68519", "text": "function _check_login ()\n\t{\n\t\t//set form validation rules\n\t\t$rules['username'] = \"trim|required|strip_tags|valid_email|callback__check_user\";\n\t\t$rules['password'] = \"trim|strip_tags|required\";\n\t\t\n\t\t$this->validation->set_rules($rules);\n\n\t\t//repopulate form\n\t\t$fields['username'] = $this->lang->line('email_address');\n\t\t$fields['password'] = $this->lang->line('password');\n\t\t\n\t\t$this->validation->set_fields($fields);\n\t\t\n\t\t$data['show_message'] = '';\n\t\t\t\n\t\tif ($this->validation->run() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c693e61caacdb92d673835de0fa0e0a7", "score": "0.6845808", "text": "function checkLogin() {\n if (!$this->checkVariable('userDetails')) {\n $sess->errors['request_login'] = 'You have to login first';\n $this->setVariable('errors', $sess->errors);\n $this->redirect('index.php');\n }\n }", "title": "" }, { "docid": "fe9b73caee09fbd1ea78f1807117c8c1", "score": "0.6828628", "text": "public function checkUser()\n {\n\n $result = App::get('database')->checkUser('users', [\n 'login' => $_POST['login'],\n 'password' => $_POST['password']\n ]); \n\n foreach($result as $res){\n if(count($result) == 1){\n $_SESSION[\"role\"] = $res->role;\n }\n }\n \n if(!$result){\n echo \"<script>alert('Ошибка авторизации');</script>\";\n echo \"<a href='/'>Вернутся назад</a>\";\n die();\n }\n\n header('Location: /');\n \n }", "title": "" }, { "docid": "7d9484beb10339307a66038c355a10dd", "score": "0.6826859", "text": "function checkLogin()\n{\n\tglobal $db;\n if (isset($_REQUEST['login_user_name']) && isset($_REQUEST['login_password']))\n { \n $isCorrectCred = checkCredentials($_REQUEST['login_user_name'], $_REQUEST['login_password']);\n if ($isCorrectCred)\n {\n\t\tif(validEmail($_REQUEST['login_user_name']))\n\t\t{\n\t\t\t$query = \"SELECT * FROM user WHERE email = '\".clean($_REQUEST['login_user_name']).\"'\";\n\t\t\t$result = mysqli_query($db, $query);\n\n\t\t\twhile ($row = mysqli_fetch_assoc($result)) \n\t\t\t{\n \n\t\t\t\t$_SESSION['user_name'] = $row['username'] ;\n\t\t\t\t$_SESSION['user_id'] = $row['user_id'] ;\n }\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$query = \"SELECT * FROM user WHERE username = '\".clean($_REQUEST['login_user_name']).\"'\";\n\t\t\t$result = mysqli_query($db, $query);\n\t\t\twhile ($row = mysqli_fetch_assoc($result)) \n\t\t\t{\n\t\t\t\t$_SESSION['user_name'] = $row['username'];\n\t\t\t\t$_SESSION['user_id'] = $row['user_id'];\n }\n\t\t}\n\t\t//update last login\n\t\t$user = $_SESSION['user_name'];\n\t\t\n\t\t$query = \"UPDATE `user` SET `last_log_in` = CURRENT_TIMESTAMP WHERE `username` = '\".clean($user).\"'\";\n\t\t$result = mysqli_query($db, $query);\n\t \n\t\treturn true;\n }\n\n }\n\treturn false;\n}", "title": "" }, { "docid": "005fbde450b84ae4bc4afb279285470e", "score": "0.68239105", "text": "public function check_user($log_email,$log_pass){\n\t$log_pass = md5($log_pass);\n\t$sqllo=\"SELECT id FROM user_account WHERE email='$log_email' OR password='$log_pass'\";\n\t//check username is available\n\t$result = mysqli_query($this->connect,$sqllo);\n\t$user_data = mysqli_fetch_array($result);\t\n\t$count_row = $result->num_rows;\n\tif ($count_row == 1) {\n\t\t$_SESSION['logins'] = true;\n\t\t$_SESSION['id_user'] = $user_data['id'];\n\t\treturn true;\n\t}\n\telse{\n\t\treturn false;\n\t}\n\t\n}", "title": "" }, { "docid": "b59a227a38b939af39961e7b32f7fb57", "score": "0.6802765", "text": "function login_check($db) {\r\n if (isset($_SESSION['user']['id'], $_SESSION['user']['email'], $_SESSION['login_string'])) {\r\n $Guid_user = $_SESSION['user']['id'];\r\n $login_string = $_SESSION['login_string'];\r\n $username = $_SESSION['user']['email'];\r\n // Get the user-agent string of the user.\r\n $user_browser = $_SERVER['HTTP_USER_AGENT'];\r\n $db->bindMore( array('Guid_user'=>$Guid_user, 'status'=>'1') );\r\n $stmt = $db->row(\"SELECT * FROM tbluser WHERE Guid_user=:Guid_user AND status=:status LIMIT 1\");\r\n \r\n if (!empty($stmt)) {\r\n // If the user exists get variables from result.\r\n $password = $stmt['password'];\r\n $login_check = hash('sha512', $password . PASSWORD_SALT . $user_browser);\r\n if ($login_check == $login_string) {// Logged In!!!! \r\n return true;\r\n } else { // Not logged in \r\n return false;\r\n }\r\n } else { // Not logged in \r\n return false;\r\n } \r\n } else { // Not logged in \r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "83b21ef161b6810f502a194b8d066cd9", "score": "0.67855716", "text": "function myedb_check_logins($user=\"\", $pass, $email=\"\")\n\t{\n\t\tif (!empty($pass))\n\t\t{ \n\t\t\t//$eids = EntityManagementSystems::get_eids($user, EntDict::get_prop_id(\"userid\"), EntDict::get_type_id(\"user\"));\n\t\t\t//$eid = $eids[0]; //assumes only 1 matching user in the database\n\t\t\t$eid = $this->get_user_eid();\n\t\t\t$passeids = EntityManagementSystems::get_eids($pass, EntDict::get_prop_id(\"userpass\"), EntDict::get_type_id(\"user\"));\n\t\t\t\n\t\t\treturn in_array($eid,$passeids);\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a219d69b54a9be3288b56e0adcf73226", "score": "0.67838436", "text": "public function check_login() {\n return true;\n }", "title": "" }, { "docid": "23e0b21ec47f2da4675d609e10b67f02", "score": "0.678192", "text": "public function processLogin()\n\t{\n\t\t$passwd = trim(Tools::getValue('passwd'));\n\t\t$email = trim(Tools::getValue('email'));\n\t\tif (empty($email))\n\t\t\t$this->errors[] = Tools::displayError('Email is empty.');\n\t\telseif (!Validate::isEmail($email))\n\t\t\t$this->errors[] = Tools::displayError('Invalid email address.');\n\n\t\tif (empty($passwd))\n\t\t\t$this->errors[] = Tools::displayError('The password field is blank.');\n\t\telseif (!Validate::isPasswd($passwd))\n\t\t\t$this->errors[] = Tools::displayError('Invalid password.');\n\t\t\n\t\t\tif (!count($this->errors))\n\t\t\t{\n\t\t\t\t// Find employee\n\t\t\t\t$this->context->employee = new Employee();\n\t\t\t\t$is_employee_loaded = $this->context->employee->getByEmail($email, $passwd);\n\t\t\t\t\n\t\t\t\tif (!$is_employee_loaded)\n\t\t\t\t{\n\t\t\t\t\t$this->errors[] = Tools::displayError('The Employee does not exist, or the password provided is incorrect.');\n\t\t\t\t\t$this->context->employee->logout();\n\t\t\t\t}else{\n\t\t\t\t\t//var_dump($is_employee_loaded);\n\t\t\t\t\t$cookie = new Cookie();\n\t\t\t\t\t// Set cookie name\n\t\t\t\t\t$cookie->setName('employee');\n\t\t\t\t\t// Set cookie expiration time\n\t\t\t\t\t$cookie->setTime(\"+1 hour\");\n\t\t\t\t\t$cookie->create();\n\t\t\t\t\t// Delete the cookie.\n\t\t\t\t\t//$cookie->delete();\n\t\t\t\t\tif(empty($cookie))\t\t\t\t\t\n\t\t\t\t\t\t@header('Location:index:php?controller=AdminAccess&token='.Tools::getToken('AdminAccess'));\n\n\t\t\t\t\t}//end count errors\n\t\t\t}\n\t}", "title": "" }, { "docid": "c8b8c8c2ab12a8047c205c9d6f72ad3a", "score": "0.6750831", "text": "public function verifyNewAccountEntry(){\n\t\trequire_once ($_SERVER['DOCUMENT_ROOT'] . \"/functions.php\");\n\t\trequire_once ($_SERVER['DOCUMENT_ROOT'] . \"/sqlconnect.php\");\n\n\t\t//stop checking if user didn't accept terms\n\t\tif ($this -> checkIfTermsAccepted() == 0){\n\t\t\techo('<p class=\"registrationError\">Terms Must Be Accepted First</p><br>');\n\t\t\t} \n\t\telse{\n\t\t\tif( ($this -> blankParametersFound() == 0) && ($this -> \t\t\t hasExistingUsername() == 0) && ($this -> checkMatchingPasswords() == 1) ){\n\t\t\t\t\n\t\t\t\t\techo \"ready to create user<br>\";\n\t\t\t\t//if free, extract inputs and save to database\n\t\t\t\t\n\t\t\t\t$nameValue = $this -> name;\n\t\t\t\t//mysql_real_escape_string($_POST['name']);\n\t\t\t\t$usernameValue = $this -> username;\n\t\t\t\t//mysql_real_escape_string($_POST['username']);\n\t\t\t\t$passValue = $this -> password1;\n\t\t\t\t//mysql_real_escape_string($_POST['password']);\n\t\t\t\t$emailValue = $this -> emailaddress;\n\t\t\t\t\n\t\t\t\t$sql = \"INSERT INTO login (name, username, pass, emailaddress) VALUES ('$nameValue','$usernameValue','$passValue', '$emailValue')\";\n\t\t\t\t\n\t\t\t\tmysql_query($sql);\n\t\t\t\t\t\t\n //log user in by calling login.php\n\t\t\t\t$_POST['username'] = $this -> username;\n\t\t\t\t$_POST['password'] = $this -> password1;\n\t\t\t\trequire_once($_SERVER['DOCUMENT_ROOT'] . \"/login.php\");\n \n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "7fccc2506b0c886734b97283c585087b", "score": "0.6749319", "text": "public function checkUser()\n\t{\n\t\tif (!$this->session->get(\"user\")) {\n\t\t\t$this->response->redirect('/user/login');\n\t\t}\n\t}", "title": "" }, { "docid": "de1508d305344102b678638593c4638b", "score": "0.6727754", "text": "private function check_the_login() {\n\n\t\t//The user is loged in \n\t\tif (isset($_SESSION['user_id'])) {\n\n\t\t\t$this->user_id = $_SESSION['user_id'];\n\t\t\t$this->signed_in = true;\n\n\t\t//the user is not logged in... if the variables are initialized from a prior session... we turn them back\n\t\t}else {\n\n\t\t\tunset($this->user_id);\n\t\t\t$this->signed_in = false;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "131476835877479bdd29a3800f02b8ed", "score": "0.6716646", "text": "function checkLogin() {\r\n /* Check if user has been remembered */\r\n if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookid'])) {\r\n $_SESSION['username'] = $_COOKIE['cookname'];\r\n $_SESSION['uid'] = $_COOKIE['cookid'];\r\n }\r\n\r\n /* Username and uid have been set and not guest */\r\n if(isset($_SESSION['username']) && isset($_SESSION['uid']) &&\r\n $_SESSION['username'] != GUEST) {\r\n /* Confirm that username and uid are valid */\r\n if($this->database->confirmUserUID($_SESSION['username'], $_SESSION['uid']) != 0) {\r\n /* Variables are incorrect, user not logged in */\r\n unset($_SESSION['username']);\r\n unset($_SESSION['uid']);\r\n return false;\r\n } else {/* User is logged in, set class variables */\r\n $info = array(\"uid\"=>$_SESSION['uid'], \"username\"=>$_SESSION['username']);\r\n if($this->database->confirmUID($info['uid'], DB_TBL_ADMINS)) {\r\n \t$this->user = new Administrator($info);\r\n } else if($this->database->confirmUID($info['uid'], DB_TBL_TELLERS)) {\r\n \t$this->user = new Teller($info);\r\n } else {\r\n \t$this->user = new Customer($info);\r\n }\r\n return true;\r\n }\r\n } else { /* User not logged in */\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "59dce00b12274695c626f7f6ec6e6205", "score": "0.6709183", "text": "public static function login()\r\n {\r\n \r\n $user = accounts::findUserbyEmail($_REQUEST['uname']);\r\n \r\n //test for existing account\r\n if ($user == FALSE) {\r\n echo \"<script type='text/javascript'>alert('User Not Found');</script>\";\r\n header('Refresh: .001; index.php?page=homepage&action=show');\r\n } else {\r\n $currentuser = new account();\r\n //test password\r\n if($currentuser->checkPassword($_POST['pwd'],$user[\"password\"])) {\r\n session_start();\r\n $_SESSION[\"userID\"] = $user[\"id\"];\r\n header(\"Location: index.php?page=tasks&action=getById\");\r\n } else {\r\n echo \"<script type='text/javascript'>alert('Wrong Password');</script>\";\r\n header('Refresh: .001; index.php?page=homepage&action=show');\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e150fdfd4497a65816ae84e98b2f7b6b", "score": "0.6692399", "text": "function _loginCheck() {\r\n\t\tif (constant(\"Website_Require_Login\") == \"true\") {\r\n\t\t\tif (isPageActive('login') == false) {\r\n\t\t\t\tif (isPageActive('register') == false) {\r\n\t\t\t\t\tif ($_SESSION['userName'] == '') {\r\n\t\t\t\t\t\theader('Location: '.constant(\"Website_Url\").'/login?url='.constant(\"Website_Url\").$_SERVER['REQUEST_URI']);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df3619de98564c25fb828fd2c0dac29c", "score": "0.6674638", "text": "public function checkLog($user) {\n //Esta funcion va a verificar que haya alguien logueado\n if (!isset($_SESSION['USERNAME'])) {\n $this->login($user);\n } \n }", "title": "" }, { "docid": "797906ec405f602726a3f64f793369ed", "score": "0.66642916", "text": "public function log_in(){\n\n $this->prepare(\"SELECT * FROM users WHERE username=?\");\n $this->bind(\"s\",array($this->username));\n $this->execute();\n $userdata = $this->fetch();\n \n if(empty($userdata)){\n\n Errors::set('no-valid-username');\n return false;\n }\n else if(password_verify($this->password, $userdata[0]['password']) == false){\n Errors::set('wrong-password');\n return false;\n }\n return true; \n }", "title": "" }, { "docid": "c80eb8bb66509bb41da84d442ff1e79d", "score": "0.66160494", "text": "public function validateLogin()\n {\n if ($this->doesUserExist()) {\n if ($this->validatePassword()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "8a96e62998d8a792b971e209e653402f", "score": "0.6615084", "text": "function chkLogin( $username , $password ){\n $user = $this->getUser( $username, $password );\n if (! empty( $user )){\n return true;\n };\n return false;\n }", "title": "" }, { "docid": "f3331bb0ef98c1d5717c5b48d6e63848", "score": "0.65858257", "text": "public function checkLogin()\n\t{\n\t\t$email = trim($_POST['email']);\n\t\t$pass = strip_tags(trim($_POST['pass']));\n\t\t$result = $this -> facade -> checkLogin($email, $pass);\n\t\tif(is_array($result))\n\t\t{\n\n\t\t\t\t$_SESSION['user'] = $result[0]['name'];\n\t\t\t\t$_SESSION['id'] = $result[0]['id'];\n\t\t\t\theader(\"Location: /~user8/book_shop/user/profile/\"\n\t\t\t\t.$result[0]['id'], true, 301);\n\t\t\t\texit();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this -> view -> setError($result);\n\t\t\t$this -> view -> showLoginForm();\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "19a86a67170a96b42b46ddea61a1a0da", "score": "0.6572605", "text": "private function process_user_login()\n {\n global $index_includes, $g_comp_database, $g_comp_template;\n\n $l_rules = [];\n $l_rules[\"C__CONTACT__PERSON_PASSWORD\"][\"p_strValue\"] = '';\n $l_rules[\"C__CONTACT__PERSON_PASSWORD_SECOND\"][\"p_strSelectedID\"] = '';\n\n $g_comp_template->smarty_tom_add_rules(\"tom.content.bottom\", $l_rules);\n\n $l_error = '';\n $l_user_dao = isys_component_dao_user::instance($g_comp_database);\n $l_user_id = $l_user_dao->get_current_user_id();\n\n $l_row = $l_user_dao->get_user($l_user_id)\n ->get_row();\n\n if (isys_glob_get_param(\"navMode\") == C__NAVMODE__SAVE)\n {\n $_POST['C__CONTACT__PERSON_PASSWORD'] = trim($_POST['C__CONTACT__PERSON_PASSWORD']);\n $_POST['C__CONTACT__PERSON_PASSWORD_SECOND'] = trim($_POST['C__CONTACT__PERSON_PASSWORD_SECOND']);\n $l_password_minlength = (int) isys_tenantsettings::get('minlength.login.password', 4);\n\n if (!empty($_POST['C__CONTACT__PERSON_PASSWORD']) && strlen(\n $_POST['C__CONTACT__PERSON_PASSWORD']\n ) >= $l_password_minlength && $_POST['C__CONTACT__PERSON_PASSWORD'] == $_POST['C__CONTACT__PERSON_PASSWORD_SECOND']\n )\n {\n isys_cmdb_dao_category_s_person_login::instance($g_comp_database)\n ->change_password($l_row['isys_cats_person_list__id'], $_POST['C__CONTACT__PERSON_PASSWORD']);\n isys_notify::success(_L('LC__UNIVERSAL__SUCCESSFULLY_SAVED'));\n }\n else\n {\n $_GET['navMode'] = C__NAVMODE__EDIT;\n $_POST['navMode'] = C__NAVMODE__EDIT;\n\n $l_rules[\"C__CONTACT__PERSON_PASSWORD\"][\"p_strValue\"] = $_POST['C__CONTACT__PERSON_PASSWORD'];\n $l_rules[\"C__CONTACT__PERSON_PASSWORD_SECOND\"][\"p_strValue\"] = $_POST['C__CONTACT__PERSON_PASSWORD_SECOND'];\n\n if ($_POST['C__CONTACT__PERSON_PASSWORD'] != $_POST['C__CONTACT__PERSON_PASSWORD_SECOND'])\n {\n $l_error = _L('LC__LOGIN__PASSWORDS_DONT_MATCH');\n }\n else\n {\n $l_error = _L('LC__LOGIN__SAVE_ERROR', $l_password_minlength);\n } // if\n isys_notify::error($l_error, ['sticky' => true]);\n } // if\n } // if\n\n // navbar stuff.\n $l_navbar = isys_component_template_navbar::getInstance()\n ->set_active(true, C__NAVBAR_BUTTON__EDIT);\n\n if (isys_glob_get_param(\"navMode\") == C__NAVMODE__EDIT)\n {\n $l_navbar->set_visible(false, C__NAVBAR_BUTTON__EDIT)\n ->set_active(true, C__NAVBAR_BUTTON__SAVE)\n ->set_active(true, C__NAVBAR_BUTTON__CANCEL);\n } // if\n\n $g_comp_template->assign('title', _L('LC__LOGIN__SETTINGS_CHANGE', [$l_row['isys_cats_person_list__title']]))\n ->smarty_tom_add_rules(\"tom.content.bottom\", $l_rules);\n\n $index_includes['contentbottomcontent'] = 'content/bottom/content/module__settings__user_login.tpl';\n }", "title": "" }, { "docid": "b0aff6ed7560ba1330671310314a04d5", "score": "0.65692115", "text": "public function login() {\n if ($this->get_user_by_email_passwd($this->input->post('login'), \n $this->input->post('passwd'))) {\n // Idleness Check: Has this user waited too long to continue playing?\n //$check_time = strtotime($this->last_action) + $this->config->item('idleness_check');\n //if ( (is_numeric($check_time)) and ($check_time > $this->config->item('idleness_check')) and ($check_time < strtotime(\"now\")) ) {\n // $this->disable_account();\n //}\n // IF they've seen the game this phase, they can't log in.\n //elseif ($this->check_game_already_started()) {\n // $this->disable_account();\n //}\n\n $this->stash_user();\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "7abbe1f0f2ca17651fb2db0fb40a806b", "score": "0.65684927", "text": "function verifyLogin($username , $password) {\n$pw = getuser($username);\n//if no user with that username exists then return false\n if(empty($pw)) {\n return false;\n }\n if(password_verify($password, $pw['password'])) {\n return true;\n }\n }", "title": "" }, { "docid": "94a2df500489d6837d02a9fdd0fa098d", "score": "0.6567474", "text": "function checkLogin()\n\t{\n\t\tglobal $database; //The database connection\n\t\t/* Check if user has been remembered */\n\t\tif(isset($_COOKIE[COOKIE_USER]) && isset($_COOKIE[COOKIE_ID]))\n\t\t{\n\t\t\t$this->username = $_SESSION['username'] = $_COOKIE[COOKIE_USER];\n\t\t\t$this->userid = $_SESSION['userid'] = $_COOKIE[COOKIE_ID];\n\t\t}\n\n\t\t/* Username and userid have been set and not guest */\n\t\tif(isset($_SESSION['username']) && isset($_SESSION['userid']) && $_SESSION['username'] != GUEST_NAME)\n\t\t{\n\t\t\t/* Confirm that username and userid are valid */\n\t\t\tif($database->confirmUserID($_SESSION['username'], $_SESSION['userid']) != 0)\n\t\t\t{\n\t\t\t\t/* Variables are incorrect, user not logged in */\n\t\t\t\tunset($_SESSION['username']);\n\t\t\t\tunset($_SESSION['userid']);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/* User is logged in, set class variables */\n\t\t\t$this->userinfo = $database->getUserInfo($_SESSION['username']);\n\t\t\t$this->username = $this->userinfo['username'];\n\t\t\t$this->userid = $this->userinfo['userid'];\n\t\t\t$this->userlevel = $this->userinfo['userlevel'];\n\t\t\treturn true;\n\t\t}\n\t\t/* User not logged in */\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "462df4b291e18f0102f1abbe94b3eb51", "score": "0.6560082", "text": "private function loggedInCheck(){\n\t\t// if not redirects to sign up page\n\t\tif( !isset($_SESSION['username']) || $_SESSION['username'] == '')\n\t\t{\n\t\t\theader('Location: '.BASE_URL.'/login');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$user = User::loadByUsername($_SESSION['username']);\n\t\t\t$userName = $user->get('username');\n\t\t}\n\t}", "title": "" }, { "docid": "abc6c6b3644ccd49527a7d04e2eb37b3", "score": "0.6557341", "text": "function checkLogin() {\n if(isset($_SESSION['user_info'])) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "b7e49e5a613bd8da696ac148522f6d23", "score": "0.6554804", "text": "private function verifyUser() {\r\n\t\t// not logged in\r\n\t\tif(!isset($this->auth->getIdentity()->id)) {\r\n\t\t\tPetolio_Service_Util::saveRequest();\r\n\t\t\t$this->msg->messages[] = $this->translate->_(\"You must be logged in to view the requested page.\");\r\n\t\t\treturn $this->_helper->redirector('index', 'site');\r\n\t\t}\r\n }", "title": "" }, { "docid": "cb123eb1adcac67b2fdc1cf9258ff36e", "score": "0.6548948", "text": "function auth_user()\n\t{\n\t\tglobal $usr, $login;\n\t\t$login->verify();\n\n\t\tif ($login->userid != 0)\n\t\t{\n\t\t\t//set up $usr array\n\t\t\t$usr['userid'] = $login->userid;\n\t\t\t$usr['email'] = sqlValue(\"SELECT `email` FROM `user` WHERE `user_id`='\" . sql_escape($login->userid) . \"'\", '');\n\t\t\t$usr['username'] = $login->username;\n\t\t}\n\t\telse\n\t\t\t$usr = false;\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "3afb02130a10ad36e7f4ab161e7ef1b8", "score": "0.6543131", "text": "function login()\n\t\t{\n\t\t\t// get relevant values\n\t\t\t$username = $_POST[\"username\"];\n\t\t\t$sha1 = $_POST[\"sha1\"];\n\t\t\t// step 1: someone could have bypassed the javascript validation, so validate again.\n\t\t\tif(!$this->validate_user_name($username)) {\n\t\t\t\t$this->info(\"log in error: user name did not pass validation\");\n\t\t\t\treturn false; }\n\t\t\tif(preg_match(User::sha1regexp, $sha1)==0) {\n\t\t\t\t$this->info(\"log in error: password did not pass validation\");\n\t\t\t\treturn false; }\n\t\t\t// step 2: if validation passed, log the user in\n\t\t\treturn $this->login_user($username, $sha1);\n\t\t}", "title": "" }, { "docid": "d9f44b791ac29a70bfcafe0b8d0a8637", "score": "0.6542685", "text": "public function checkuser()\n\t{\n\t\t$this->load->model('User_model'); \n\t\t\n\t\t$username\t= $this->input->post('username');\n\t\t$password = $this->input->post('password');\n\t\t\n\t\t$salt = \"yoursecretkeyhere\";\n\t\t$encryptedPassword = crypt($password, $salt);\n\t\t$curuser = $this->User_model->getuserbyusername($username);\n\t\tif($curuser)\n\t\t{\n\t\t\t$passwordFromDatabase = $curuser->password;\n\n\t\t\tif($passwordFromDatabase == $encryptedPassword)\n\t\t\t{\n\t\t\t //Login successful\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Login failed, incorrect password\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Login failed, user does not exist\n\t\t} \n\t}", "title": "" }, { "docid": "b0fcf9781c3e1e24986dfcc23c26f840", "score": "0.6539515", "text": "public function login(){\n\n $_SESSION['reenter_valid'] = TRUE; //Tells session whether user correctly re-entered their password\n $_SESSION['username_exists'] = FALSE; //Tells session whether a user's username of choice already exists\n\n $this->loginForm();\n }", "title": "" }, { "docid": "5d02f6835602c380a60fe3e253527dcb", "score": "0.6518842", "text": "public function addLoginPassword()\n {\n $this->dbChekMake();\n $user_login = $_POST['registerLogin'];\n $user_password = $_POST['registerPassword'];\n $user_password2 = $_POST['registerConfirm'];\n if ($user_password == $user_password2) {\n if (isset($user_login) || isset($user_password)) {\n if (empty($user_login) || empty($user_password)) {\n echo 'Данные введены неверно';\n return false;\n } else {\n $user_login= strip_tags($user_login);\n $a = new Connection();\n\n $result = $a->connect()->query(\n \"select * from users\n where username = '$user_login' LIMIT 0,1\"\n );\n $record = $result->fetch_assoc();\n if (!empty($record)) {\n echo 'Такой пользователь уже существует';\n return false;\n } else {\n $a->connect()->query(\n \"INSERT INTO `users` (username, password) \n VALUES ('$user_login', '$user_password')\"\n );\n\n $res = $a->connect()->query(\n \"select id from users where username = '$user_login' \"\n );\n $record = $res->fetch_assoc();\n $_SESSION ['id'] = $record ['id'];\n $this->getInfo();\n\n return true;\n }\n }\n }\n } else {\n echo 'Пароли не совпадают';\n return false;\n }\n }", "title": "" }, { "docid": "38fd454f686c1f8773216d0346ead700", "score": "0.65157217", "text": "function validuser($login) {\n\t\t$conf = xml::loadxml(\"forward.xml\");\n\t\t$conf = $conf[forward];\n\t\t$users = xml::normalizeseq($conf[users][user]);\n\t\t//print_r($users);\n\t\tforeach ($users as $user) {\n\t\t\t//record::msg_log( \"testing \".$user[login].\"<BR>\\n\");\n\t\t\tif (trim($user[login])==trim($login)) \n\t\t\t\treturn true;\n\t\t}\n\t\t\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4ebb30cb979d8d1e64a9a99d87fd5d8b", "score": "0.64898723", "text": "function loginUser(User $user){\n\n\t$logVariables = array('login_username','login_password');\n\t$hash = \"\";\n\tif(!array_diff($logVariables, array_keys($_POST))){\n\n\t\t// hashed login password to match password stored in database\n\t\t//$hash = crypt($_POST[\"login_password\"],\"$1$\");\n\n\t\t$inputArray = array($_POST[\"login_username\"], $_POST[\"login_password\"]);\n\t\t$login_result = $user->checkUser($inputArray);\n\t\tif($login_result != false){\n\t\t\t//username is added to the $_SESSION array\n\t\t\t$_SESSION['login_username'] = $login_result;\n\n\t\t\t// will jump the welcome page\n\t\t\theader(\"location: welcome.php\");\n\t\t}\n\t\telse {\n\t\t\techo \"Invalid username/password\";\n\t\t}\n\t}\n\t\t\n}", "title": "" }, { "docid": "6c5d5bba81cc8e7ace3177d2a9df19bc", "score": "0.6488484", "text": "private function checkPasswordCorrectnessAndLogin()\n {\n $sql = 'SELECT * FROM users WHERE user_name = :user_name LIMIT 1';\n $query = $this->db_connection->prepare($sql);\n $query->bindValue(':user_name', $_POST['user_name']);\n $query->execute();\n\n // Btw that's the weird way to get num_rows in PDO with SQLite:\n // if (count($query->fetchAll(PDO::FETCH_NUM)) == 1) {\n // Holy! But that's how it is. $result->numRows() works with SQLite pure, but not with SQLite PDO.\n // This is so crappy, but that's how PDO works.\n // As there is no numRows() in SQLite/PDO (!!) we have to do it this way:\n // If you meet the inventor of PDO, punch him. Seriously.\n $result_row = $query->fetchObject();\n if ($result_row) {\n // using PHP 5.5's password_verify() function to check password\n if (password_verify($_POST['user_password'], $result_row->user_password_hash)) {\n // write user data into PHP SESSION [a file on your server]\n $parameters = array ('user_id' => intval($result_row->user_id),\n \t'user_name' => html_entity_decode($result_row->user_name),\n \t\t\t\t\t'user_email' => html_entity_decode($result_row->user_email),\n \t'user_birthday' => html_entity_decode($result_row->user_birthday),\n \t'user_nationality' => html_entity_decode($result_row->user_nationality),\n \t'user_lastname' => html_entity_decode($result_row->user_lastname),\n \t'user_firstname' => html_entity_decode($result_row->user_firstname),\n \t'user_gender' => html_entity_decode($result_row->user_gender),\n \t'user_password_hash' => $result_row->user_password_hash);\n $user = New User ($parameters);\n $_SESSION['user'] = $user;\n //load user events;\n $events = $user->select_user_events();\n $_SESSION['user_events'] = $events;\n $_SESSION['user_is_logged_in'] = true;\n $this->user_is_logged_in = true;\n return true;\n } else {\n $this->feedback = \"Wrong password.\";\n }\n } else {\n $this->feedback = \"This user does not exist.\";\n }\n // default return\n return false;\n }", "title": "" }, { "docid": "4616814515f2f37ba7bd1c51975a025e", "score": "0.64842373", "text": "public function CheckLogin()\r\n {\r\n $post = $this->request->post;\r\n $login = filter_var( $post['login'], FILTER_SANITIZE_SPECIAL_CHARS);\r\n $pass = filter_var( $post['password'], FILTER_SANITIZE_SPECIAL_CHARS);\r\n\r\n $auth = new Auth($post['login']);\r\n\r\n $user = $auth->login($login,$pass);\r\n if($auth->logged_in)\r\n {\r\n header('Location:'.$this->request->script_name.'/defaut/perso/');\r\n }else\r\n {\r\n header('Location:'.$this->request->script_name.'/defaut/login/');\r\n }\r\n }", "title": "" }, { "docid": "e8d4644280005d0e72770a50ca49bd8e", "score": "0.64809346", "text": "private function _checkUser()\n {\n //Already logged in\n if($this->Authorization->user('id'))\n {\n $this->redirect(array(\n 'controller' => 'accounts',\n 'action' => 'index',\n 'prefix' => 'account',\n 'accountSlug' => $this->Authorization->read('Account.slug')\n ));\n }\n \n return false;\n }", "title": "" }, { "docid": "bdbff796b2d597947e3f9911c91bda19", "score": "0.64767295", "text": "public function verifyUserLogin($request)\n\t{\n\t\t$username\t\t=$request['username'];\n\t\t$password \t\t=$request['password'];\n\t\t//read if the user want to keep the session until logout action\n\t\t$remember = (isset($request['remember_me'])) ? true : false;\n\t\t// atempt to authenticate the user to login \n\t\tif (Auth::attempt(array('username' => $request['username'] ,'password' => $request['password']), $remember)){\n\t\t\t\t//get user role id\n\t \t\t\t$roleId = $this->userRepository->find(Auth::user()->id)->role_id; \n\t //check if the user id has access to modules \n\t if ($this->roleTransactionRepository->roleHastAccessToAnyModule($roleId)){\n\t\t\t\t\t//Set a remember key for the username to be display in the login username field next time\n\t\t\t\t\tSession::put('remember_username', $request['usenamre']);\n\t\t\t\t\t// user is autheticated \n\t\t\t\t\treturn true;\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t// force a user logout because he does not have access to any modules\n\t\t\t\t\tAuth::logout();\n\t\t\t\t\t//set the error message for the user\n\t\t\t\t\tSession::flash('error', Lang::get('labels.access_denied'));\n\t\t\t\t\t// user NO autheticated \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t//set the error message for the user\n\t\tSession::flash('error', Lang::get('messages.error_login_fails'));\n\t\t// user NO autheticated\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b5cccd0eaf8fe2ccbacc446b750202dc", "score": "0.64738226", "text": "protected function checkLogin()\n {\n if(!$this->auth->check())\n {\n $this->showResult('login first');\n exit(0);\n }\n }", "title": "" }, { "docid": "f99dce7e7ba225f2e978725f4f14ef22", "score": "0.6471329", "text": "public function check_login() {\n\t\t$email = set_value('email');\n\t\t$password = set_value('password');\n\n\t\tif(!$email && !$password) return FALSE;\n\n\t\t$result = $this->account_model->login_user($email, $password);\n\t\tswitch ($result) {\n\t\t\tcase 'logged_in':\n\t\t\t\treturn TRUE;\n\t\t\t\tbreak;\n\n\t\t\tcase 'incorrect_password':\n\t\t\t\t$this->form_validation->set_message('check_login', 'Incorrect password. Please try again');\n\t\t\t\treturn FALSE;\n\t\t\t\tbreak;\n\n\t\t\tcase 'not_activated';\n\t\t\t\t$this->form_validation->set_message('check_login', 'Account not activated');\n\t\t\t\treturn FALSE;\n\t\t\t\tbreak;\n\n\t\t\tcase 'email_not_found';\n\t\t\t\t$this->form_validation->set_message('check_login', 'Email not found. Please try again');\n\t\t\t\treturn FALSE;\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "e5a050112823fbf933032281ed8cbfef", "score": "0.64709365", "text": "function authenticateUserAndData($check){ \n\t\tif(!is_array($check)){//for easy use in a controller\n\t\t\t$check = array('user_id'=>$check);\n\t\t}\n\t\t$loggedInUser = isset($_SESSION['User']['id'])? $_SESSION['User']['id'] : null;\n\t\tif($loggedInUser){\n\t\t\tif($loggedInUser == $check['user_id']){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "95a4101d551e4b094f603cee875c7a8d", "score": "0.646866", "text": "function login() {\r\n\t// backup username for invalid logins\r\n\t$umail = $this->email;\r\n\t$uname = $this->username;\r\n\r\n\t// Create a temporary user object\r\n\t$u = new User();\r\n\r\n\t// Get this users stored record via their username\r\n\t$u->where('email', $umail)->get();\r\n\r\n\t// Give this user their stored salt\r\n\t$this->salt = $u->salt;\r\n\r\n\t// Validate and get this user by their property values,\r\n\t// this will see the 'encrypt' validation run, encrypting the password with the salt\r\n\t$this->validate()->get();\r\n\r\n\t// If the username and encrypted password matched a record in the database,\r\n\t// this user object would be fully populated, complete with their ID.\r\n\t// If there was no matching record, this user would be completely cleared so their id would be empty.\r\n\tif ($this->exists()) {\r\n\t // Login succeeded\r\n\t return TRUE;\r\n\t} else {\r\n\t // Login failed, so set a custom error message\r\n\t $this->error_message('login', lang('login_error'));\r\n\r\n\t // restore username for login field\r\n\t $this->username = $uname;\r\n\r\n\t return FALSE;\r\n\t}\r\n }", "title": "" }, { "docid": "c46168197abce5567b75909e1297c0e9", "score": "0.6465379", "text": "public function testIsLoginExists()\n {\n $login = UserFixture::getLogin(UserFixture::ID_USER);\n $this->assertTrue(User::isLoginExists($login));\n\n /**\n * Is exists admin user by login and admin type\n */\n $login = UserFixture::getLogin(UserFixture::ID_USER_INACTIVE);\n $this->assertTrue(User::isLoginExists($login, User::TYPE_INACTIVE));\n\n /**\n * Is exists admin user by login and wrong type\n */\n $login = UserFixture::getLogin(UserFixture::ID_USER_ADMIN);\n $this->assertFalse(User::isLoginExists($login, User::TYPE_USER));\n }", "title": "" }, { "docid": "0bbd33a57b951239cebb38e2eb19b11c", "score": "0.6435344", "text": "function is_login_valid($id,$pass,$createCookies=false)\r\n{\r\n\r\nif((!empty($id)) && (!empty($id)))\r\n{\r\n\r\n$mysqli =new mysqli($GLOBALS['host'],$GLOBALS['db_user'],$GLOBALS['db_passwd'],$GLOBALS['selected_db']);\r\nif($mysqli===false)\r\n{\r\ndie(\"<p>Error :\".mysqli_connect_error());\r\n}\r\n$sql=\"select user_id from userdata where user_id='{$id}' && password='{$pass}'\";\r\nif($result=$mysqli->query($sql))\r\n{\r\nif($result->num_rows>0)\r\n{\r\n\r\nif(entity_value(\"userdata\",\"account_status\",\"user_id\",$id)!=\"open\")\r\n{\r\nheader(\"location:restore_account.php?id={$id}\");exit;\r\n}\r\n\r\n/*if(entity_value(\"userdata\",\"email_verified\",\"user_id\",$id)!=1)\r\n{\r\nheader(\"location:verify_email.php?id={$id}\");exit;\r\n}\r\n*/\r\nif(update_entity(\"userdata\",\"user_id\",$id,\"last_login\",date('Y-m-d H:i:s')) && update_entity(\"userdata\",\"user_id\",$id,\"last_login_ip\",getRealIp()))\r\n{\r\n$_SESSION['userid']=entity_value(\"userdata\",\"id\",\"user_id\",$id);$_SESSION[\"username\"]=$id;$_SESSION['userfulname']=user_name($_SESSION['userid']);$_SESSION[\"userkey\"]=$pass;$_SESSION[\"home\"]=\"home\";\r\nif($createCookies)\r\n{\r\n$j = new Jumbler;$key=\"38475757\"; $j->setKey($key);setcookie('usn',$j->encrypt($_SESSION['username']),mktime() + 664999, '/');setcookie('usk',$j->encrypt($_SESSION['userkey']),mktime() + 664999, '/');\r\n}\r\nprevent_hijacking(\"userid\");\r\nreturn true;\r\n}\r\n}\r\nelse return false;\r\n}\r\n\r\n}\r\nelse return false;\r\n}", "title": "" }, { "docid": "628b9471edd75c48e5a395d89441adcb", "score": "0.6427224", "text": "private function __checkUserData()\n\t{\n\t\t\n\t\tglobal $Cmysql, $Ctemplate; // We need to declare the mySQL and template class\n\t\t\n\t\t$userDBArray = mysql_fetch_assoc($Cmysql->Query(\"SELECT * FROM users WHERE username='\" .$Cmysql->EscapeString($_SESSION['username']). \"' AND pwd='\" .$Cmysql->EscapeString($_SESSION['pwd']). \"'\"));\n\t\tif ( $userDBArray == FALSE )\n\t\t{\n\t\t\t// If we cannot do the query (because it contains false data or empty session)\n\t\t\t// we create the guest status\n\t\t\t\n\t\t\t$_SESSION['log_status'] = \"guest\";\n\t\t\t$_SESSION['log_bool'] = FALSE;\n\t\t} elseif ( $userDBArray == TRUE )\n\t\t{\n\t\t\t// If the user is logged in, we check if\n\t\t\t// he or she is logged into the correct session\n\t\t\t// from the correct ip\n\t\t\t\n\t\t\tif ( ( @$_SESSION['curr_ip'] != $userDBArray['curr_ip']) || ( @$_SESSION['curr_sessid'] != $userDBArray['curr_sessid']) )\n\t\t\t{\n\t\t\t\t// If the current session ID or the IP address differs from\n\t\t\t\t// the ID/IP stored in the database\n\t\t\t\t\n\t\t\t\t// We output an error message to the user\n\t\t\t\t// also redirecting him/her to the homepage\n\t\t\t\t$Ctemplate->useStaticTemplate(\"user/ip_id_forced_logout\", FALSE);\n\t\t\t\t\t\n\t\t\t\t$this->Logout($userDBArray['username']); // We purge the user's session\n\t\t\t\t\n\t\t\t\t// We need to recreate a new session\n\t\t\t\t$this->__createSession();\n\t\t\t\t\n\t\t\t\t// We set a specific login status\n\t\t\t\t$_SESSION['log_status'] = \"session_error\";\n\t\t\t\t$_SESSION['log_bool'] = FALSE;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a61f1dfafaa0fc035f5abeef3563b398", "score": "0.6427063", "text": "public function createOrLoginUser($user);", "title": "" }, { "docid": "524f362fbbedcd70b454c5d574200c4a", "score": "0.64257514", "text": "public function verify(){\n\t\t\n\t\t$this->form_validation->set_rules('txtuser', 'Username', 'required');\n\t\t$this->form_validation->set_rules('txtpass', 'Password', 'required|callback_check_user');\n\n\t\tif($this->form_validation->run() == TRUE){\n //if inputs abide by the set of rules, display 'Success'. If not, go back to account_login page\n\t\t\techo 'Success';\n\n\t\t}else{\n\t\t\t$this->index();\n\t\t}\n\t}", "title": "" }, { "docid": "35450e46ac283b186e3976f8e3e9b492", "score": "0.6424138", "text": "public function CheckLogin($data){\n //Compte admin\n $usercheck = $this->CI->Acl_users_model->verifyLogin($data['login'], $data['password']);\n $this->CI->session->set_userdata('usercheck', $usercheck); \n //pas d'accès.\n if (!$this->usercheck->autorize){\n return $this->CI->lang->line('WRONG_ACCES');\n } \n }", "title": "" }, { "docid": "ba8a021fa2a46a5f7b1257dc5b54fea8", "score": "0.64198935", "text": "public function validateLogin($user_username,$user_password) {\n $query = \"SELECT * FROM \" . $this->prefix . \"user WHERE `user_username` = '\" . $user_username . \"' AND `user_password` = '\" . $user_password . \"' LIMIT 1\";\n $result = db_query($query);\n\n $user_found = false;\n while($row = mysqli_fetch_array($result)){\n $user_found = true;\n $this->user_id = $row['user_id'];\n $this->user_username = $row['user_username'];\n $this->user_password = $row['user_password'];\n $this->user_nickname = $row['user_nickname'];\n $this->user_group = $row['user_group'];\n $this->user_level = $row['user_level'];\n }\n\n return $user_found;\n }", "title": "" }, { "docid": "cc01524016a5177b90822b636b051568", "score": "0.6414802", "text": "function checkAndLoginUser(){\n //Step 1: clean data\n $cleanData = cleanPostDataFromUser(unserialize(LOGINVAR));\n\n //Step 2: check data\n $isDataGood = checkCleanDataFromUser($cleanData); \n if($isDataGood['?']){\n //data come back ok\n //Now we send data to server for db check\n $user = new \\Finity\\Profile\\User(array(\"username\"=>$cleanData['email'],'password'=>$cleanData['pwd']));\n\n //Authenticate the user \n $Oauth = new \\Finity\\Authenticate\\Oauth($user);\n\n //check if user is authenticated\n $isloggedIn = $Oauth->login(); //return boolean \n \n if($isloggedIn){\n $user = $Oauth->getLoggedInUser(); \n $_SESSION['user'] = $user->get_username();\n $_SESSION['fname'] = $user->get_firstname();\n $_SESSION['lname'] = $user->get_lastname();\n $_SESSION['userType'] = $user->get_user_type_id();\n $_SESSION['status'] = $user->get_status();\n $_SESSION['dob'] = $user->get_dob();\n $_SESSION['person_id'] = $user->get_person_id();\n $_SESSION['image_url'] = $user->get_image_url();\n\n //setting cookie to main folder\n setcookie('user', $user->get_username(),time()+(86400*30),'/');\n setcookie('isLoggedIn', 'yes',time()+(86400*30),'/');\n setcookie('tz',date_default_timezone_get(),time()+(86400*30),'/');\n \n \n //now we send the user to thier rightful view\n //Normal view\n if($user->get_user_type_id()==675 && $user->get_status()==1)\n header('Location: ../product.php');\n \n if($user->get_user_type_id()==675 && $user->get_status()==0){\n unset($_SESSION['errors']);\n $_SESSION['errors']='You do not have permission, contact your Admin';\n header('Location: ../index.php');\n }\n \n \n if($user->get_user_type_id()==222){}\n header('Location: ../admin.php');\n\n }\n else{\n $_SESSION['errors'] = $Oauth->loginErrors();\n header(\"Location: ../index.php\");\n }\n \n }else{\n $_SESSION['errors'] = $isDataGood['errors'];\n header('Location: ../index.php');\n }\n \n\n }", "title": "" }, { "docid": "8cf6377e28a83010b121b3f01102e9a3", "score": "0.6406809", "text": "function verifyuser()\n{\n\t$u=\"\";\n\t$p=\"\";\n\tif(isset($_COOKIE['adminname']) && isset($_COOKIE['password']))\n\t{\n\t\t$u=$_COOKIE['adminname'];\n\t\t$p=$_COOKIE['password'];\n\t}\n\telse\n\t{\n\t\t$u=$_SESSION['sun'];\n\t\t$p=$_SESSION['spass'];\n\t}\n\t$query=\"select count(*) from admin where adminname='$u' and password='$p'\";\n\t$n=my_login($query);\n\tif($n==1)\n\t{\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "2447db82ec02a64bd49984c6cbd0f3af", "score": "0.64013964", "text": "function _CheckAuth()\n {\n Core::LoadObject('user_auth');\n // Load other modules - End\n\n // Check the login session, redirect based on the login session status - Start\n UserAuth::IsLoggedIn(false, InterfaceAppURL(true).'/user/');\n // Check the login session, redirect based on the login session status - End\n\n return;\n }", "title": "" }, { "docid": "621064ce43cb80ea11f70a2a4db3e2e2", "score": "0.63981485", "text": "function user_login_master($user_data_handler, $cookies_handler) {\n\n // Get user inputs and format them\n $username = format_input($_POST['username']);\n $password = format_input($_POST['pass']);\n\n // Create arrays to hold user inputs\n $user_login_data = array(\n 'username' => $username,\n 'password' => $password\n );\n \n // Run user input tests - Test: User data\n $user_data_test_results = check_user_login_data($user_login_data);\n\n // Check if errors were found and if yes, populate the outcome variable and return\n if ($user_data_test_results[\"error\"]) {\n $outcome[\"error\"] = $user_data_test_results[\"error\"];\n $outcome[\"error_identifier\"] = $user_data_test_results[\"error_identifier\"];\n return $outcome;\n }\n\n // Check that the user has an account\n $username_exists = $user_data_handler->username_exists($user_login_data);\n if (!$username_exists) {\n $outcome[\"error\"] = TRUE;\n $outcome[\"error_identifier\"] = 'username_doesnot_exist';\n return $outcome;\n }\n \n // Check for wrong password before searching in the database!!\n $password_correct = $user_data_handler->password_correct($user_login_data);\n if (!$password_correct) {\n $outcome[\"error\"] = TRUE;\n $outcome[\"error_identifier\"] = 'wrong_password';\n return $outcome;\n }\n \n $pending_registration = $user_data_handler->pending_registration($user_login_data);\n if($pending_registration) {\n $outcome[\"error\"] = TRUE;\n $outcome[\"error_identifier\"] = 'pending_registration';\n return $outcome;\n }\n \n // Log in the user\n $cookies_handler->create_username_cookie($username);\n return $outcome;\n}", "title": "" }, { "docid": "05fbd1b4b16f096c746c17ec743a4c2b", "score": "0.63963604", "text": "function addNewUser($login,$name,$password,$email,$language,$groups,$access_level) {}", "title": "" }, { "docid": "cef1af7739568ddf5ec8b69326e21175", "score": "0.63940567", "text": "private function userslogin() {\n\n if ($this->get_request_method() != \"POST\" || empty($this->_raw['email']) || empty($this->_raw['password'])) {\n $this->response('', 400);\n }\n\n $email = $this->_raw['email'];\n $password = $this->_raw['password'];\n\n // Input validations\n if (!empty($email) and ! empty($password)) {\n if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\n $res = $this->db->query(\"SELECT * FROM users where email='\" . $email . \"' and deletedAccount = 0\");\n if ($res->rowCount() > 0) {\n $result = $res->fetch(PDO::FETCH_ASSOC);\n\n $stored_hash = $result[\"password\"];\n unset($result[\"password\"]);\n if (crypt($password, $stored_hash) == $stored_hash) {\n $this->response($this->json($result), 200);\n }\n }\n }\n }\n\n // If invalid inputs \"Bad Request\" status message and reason\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid Email address or Password\");\n $this->response($this->json($error), 400);\n }", "title": "" }, { "docid": "b4682acef476cf0369f4062d7983d621", "score": "0.6389461", "text": "function execute_login()\n{\n\t$username = $_POST['username'];\n\t$password = $_POST['password'];\n\t$success = user_checkExists($username,$password);\n\texecute_list();\t\n}", "title": "" }, { "docid": "41f4c89a6bd13496af196f4e70c648b7", "score": "0.6387683", "text": "private function checkLogin(array $request) {\n\n $user = $this->user->getUser('login', $request['login']);\n if ($user) {\n if (password_verify($request['password'], $user->password)) {\n $token = sha1($user->login);\n setcookie('auth_local_autorize', $token, 0, '/', 'auth.local');\n $_SESSION['user'][$user->login] = $token;\n $this->user->setToken($user->login, $token);\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "aefd9523c6f2d8549a35c0cc88fe174a", "score": "0.6387107", "text": "private function _checkLogin()\n {\n if ($this->accessToken && (is_null($this->accessTokenExpires) ||\n $this->accessTokenExpires > (time() + 60))) {\n return true;\n }\n\n $data = $this->_doRequest(\n 'login.user',\n [\n 'login' => $this->login,\n 'password' => $this->password\n ]\n );\n\n $this->accessToken = $data->access_token;\n $this->accessTokenExpires = $data->expire_at;\n }", "title": "" }, { "docid": "5027e7b58b5f2827ba6295c18c8fa31e", "score": "0.63840634", "text": "public function testUserLogin()\n {\n try {\n $this->LS->twoStepLogin('test', 'abc', true, false);\n } catch (TwoStepLogin $TSL) {\n $this->assertEquals('login_fail', $TSL->getStatus());\n }\n\n /**\n * Login with correct password\n */\n try {\n $this->LS->twoStepLogin('test', 'xyz', true, false);\n } catch (TwoStepLogin $TSL) {\n $this->assertEquals('enter_token_form', $TSL->getStatus());\n $this->assertEquals(true, $TSL->getOption('remember_me'));\n }\n }", "title": "" }, { "docid": "0cce56700bae5361b9732484ec72e046", "score": "0.63838327", "text": "function user_login($username, $password) { // therefore leave this code as is\n global $CFG;\n global $DB;\n // TODO: might set user->auth to gsaml here :/\n if ($user = $DB->get_record('user', array('username' => $username, 'mnethostid' => $CFG->mnet_localhost_id))) {\n return validate_internal_user_password($user, $password);\n }\n return false;\n }", "title": "" }, { "docid": "cd0f3d0e0189935f28b511add9499d60", "score": "0.6379633", "text": "function __validateLoginStatus() {\r\n\t if($this->action != 'login' && $this->action != 'logout') { //make sure this function wasn't called from the login or logout functions\r\n\r\n\t\t//check if the admin or user is logged in, if they aren't then redirect to the employee login page\r\n\t\tif( ($this->Session->check('sessionUser') == false) && ($this->Session->check('sessionAdmin') == false) ) { \r\n\t\t $this->flash('You must login to view this page. ...redirecting...', '/users/login');\r\n\t\t} //end if\r\n\r\n\t\t//Check if a user is logged in, they must be redirected to the incidents component after logging in\r\n\t\tif( ($this->Session->check('sessionUser') == true) ){\r\n\t\t $this->redirect('/articles/');\r\n\t\t} //end if\r\n\r\n\t } //end if\r\n\t}", "title": "" }, { "docid": "3875ed93d5d33b31bd75612872b06fc6", "score": "0.63792044", "text": "public static function doLogin()\n {\n $_SESSION['User'] = null;\n\n $params = array_intersect_key($_POST, array('email' => 0));\n $potentialUsers = \\UMS\\Models\\User::getAll($params);\n foreach ( $potentialUsers as $user ) {\n if ( $user->isCorrectPass($_POST['pass']) ) {\n $_SESSION['User'] = $user;\n\n if ( !empty($_POST['remember']) ) {\n $cookie = new \\UMS\\Models\\LoginCookie(array(\n 'user' => $user->id\n ));\n $cookie->save();\n }\n\n return;\n }\n } // foreach\n }", "title": "" }, { "docid": "1cf1c6337b2f5ef24d22ab9c68b12197", "score": "0.6377083", "text": "function validate () {\n $email = filter_input(INPUT_POST, 'email');\n $password = filter_input(INPUT_POST, 'password');\n log_event(\"Validate: $email, $password\");\n if (is_valid_login ($email, $password)) {\n $_SESSION['USER'] = $email;\n }\n }", "title": "" }, { "docid": "41d86875a94a20da0213d6531ccc6ac6", "score": "0.6375906", "text": "public function checkLogin() {\n $this->validate();\n $user = User::getOne(['email' => $this->email]);\n if($user){\n if($user->end_date){\n throw new AppException('Este usuario não faz mais parte da empresa');\n }\n if(password_verify($this->password, $user->password)){ //o primeiro password é o que o usuario digitou, o segundo é o que esta gravado no banco\n return $user;\n }\n }\n throw new AppException('O usuario e/ou senha inválidos');\n }", "title": "" }, { "docid": "21ff054158a1812351eb2b2a32bffa61", "score": "0.6374994", "text": "protected function _isUserLogin(){\n if(!User::isLogin()){\n $this->redirect(_WEB_PATH.\"login\");\n die;\n }\n }", "title": "" }, { "docid": "bbf7ef3b5e3ac9f03d6b5d1cf7f4eeb3", "score": "0.6370305", "text": "function logged_user_check() {\n if(is_user_logged())\n send_user_data(\n get_user_username(), \n get_user_name(),\n get_user_surname(),\n get_user_bio(),\n get_user_avatar(),\n get_user_cover()\n );\n else\n launch_error(\"Not yet logged.\");\n}", "title": "" }, { "docid": "921702054c8bbae8ee13399f6f9a0363", "score": "0.6367266", "text": "public function check_user(){\n\t\t\n\t\t$username = $this->input->post('txtuser');\n\t\t$password = $this->input->post('txtpass');\n\n\t\t$this->load->model('accounts_login_model');\n\t\t//pass values of $username and $password as parameters of login method in accounts_login_model\n\t\t$login = $this->accounts_login_model->login($username, $password);\n\n\t\tif($login){\n\t\t\t//if login method of accounts_login_model loaded successfully, return 'true'\n\t\t\treturn true;\n\t\t}else{\n\t\t\t//if login method of accounts_login_model didn't load successfully, proceed to nested if-else statements\n\t\t\tif(isset($_SESSION['error_count'][$username])){\n\t\t\t\t///if an error has occured, add one error corresponded to username\n\t\t\t\t$_SESSION['error_count'][$username]+=1;\n\t\t\t}else{\n\t\t\t\t//if there are no more errors occured then there is only one error corresponding to username\n\t\t\t\t$_SESSION['error_count'][$username] = 1;\n\t\t\t}\n \n\t\t\t$isBlocked = $this->accounts_login_model->isBlocked($username);\n\n\t\t\tif($isBlocked){\n\t\t\t\t//if isBlocked of accounts_login_model loaded successfully, display a message saying, 'Account is temporarily blocked. '\n\t\t\t\t$this->form_validation->set_message('check_user', 'Account is temporarily blocked. ');\n\t\t\t}else if(isset($_SESSION['error_count'][$username])){\n\t\t\t\t$this->accounts_login_model->block($username);\n\t\t\t\t//displays '3 consecutive failed login attempts. Account Blocked' if there are 3 error counts\n\t\t\t\t$this->form_validation->set_message('check_user', '3 consecutive failed login attempts. Account Blocked');\n\t\t\t}else{\n\t\t\t\t//displays 'Invalid Username/password' if there is only one error count\n\t\t\t\t$this->form_validation->set_message('check_user', 'Invalid Username/password');\n\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "ac2cd5b0d0f6580612b5d1df0e1ae6bb", "score": "0.6366879", "text": "public function authUser(){\n\t\t//Check all the time if user is loggedin\n\t\tif(isset($_SESSION['user']) or $this->getFailedLogin()){\n\t\t\tif($this->checkSession($_SESSION['user'])){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "98d94579db02681785eb475095647f2d", "score": "0.63625896", "text": "public function check_login_user(){\n\t\t$query=\"SELECT * FROM `\".$this->table_name.\"` WHERE `user_email`='\".$this->existing_username.\"' AND `status`='E'\";\n\t\t$result=mysqli_query($this->conn,$query);\n\t\t$res=mysqli_fetch_row($result);\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "7e1078ef07b64190799067a6c9e0c6a5", "score": "0.63620627", "text": "function connection_check($login, $password, $users) \n { \n foreach($users as $user)\n {\n if($login == $user->login && password_verify($password, $user->password))\n {\n $_SESSION['id'] = $user->id;\n return 1;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "df1fc9b9589ed8f7e0816dc8a5ea3bca", "score": "0.63596445", "text": "public function login() {\n\n\t\t$result;\n\n\t\t$user_id = $_REQUEST['user'];\t\n\n\t\t$db = new Data();\n\t\t$sql = \"select * from [User] where [UserID] = '\" . $user_id . \"'\";\n\t\t$result = $db->run($sql);\n\n\n\t\tif (count($result) > 0) {\n\t\t\t$hashed_password = $result[0]['Password'];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (md5($_REQUEST['password']) == $hashed_password) {\n\t\t\t\n\t\t\t//if the hashes match, then set the seesion var\n\t\t\t\n\t\t\t\n\t\t\t//get a filled out user object\n\t\t\t$user = $this->get_user_info($user_id);\n\t\t\t\n\t\t\t$_SESSION['user'] = $user;\n\n\t\t\t$result = true;\t\n\t\t} else {\n\t\t\t$result = false;\n\t\t}\n\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "f0fd810470b13c55947094809ed7a8d6", "score": "0.6352798", "text": "function loginUser() \n\t{\n\t\t$email = $_POST['email'];\n\t\t$password = $_POST['password'];\n\n\t\t# Verify if the user currently exists in the Database\n\t\t$result = validateCredentials($email);\n\n\t\tif($result['status'] == 'COMPLETE') {\n\t\t\t$decryptedPassword = decryptPassword($result['password']);\n\n\t\t\t# Compare the decrypted password with the one provided by the user\n\t\t\tif($decryptedPassword === $password) {\n\t\t\t\t$response = array('status' => 'COMPLETE', 'username' => $result['username']);\n\n\t\t\t\t# Start the session\n\t\t\t\tstartSession($email, $result['username']);\n\n\t\t\t\techo json_encode($response);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdie(json_encode(errors(306)));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdie(json_encode($result));\n\t\t}\n\t}", "title": "" }, { "docid": "a27e0fefdf6da8d00aeb85828411e885", "score": "0.6350502", "text": "function validate_login(array $safe_input, array &$form)\n{\n if ($user = App\\App::$db->getRowWhere('users', ['email' => $safe_input['email']])) {\n if (crypt($safe_input['password'], HASH_SALT) == $user['password']) {\n // if password is correct\n $form['success'] = 'Sekmingai prisijungete!';\n\n return true;\n } else {\n $form['error'] = 'Slaptazodis neteisingas!';\n\n return false;\n }\n } else {\n $form['error'] = 'Tokio vartotojo nera!';\n\n return false;\n }\n}", "title": "" }, { "docid": "e06378408ab2f85b9b30a66d18bd9558", "score": "0.63493836", "text": "function login_verify_success()\n\t{\n\t\tglobal $vbulletin;\n\n\t\tif(!defined('_JEXEC')) {\n\t\t\t$mainframe = $this->startJoomla();\n\t\t} else {\n\t\t\tglobal $mainframe;\n\t\t\tdefine('_VBULLETIN_JFUSION_HOOK',true);\n\t\t}\n\n\t\t// do the login\n\t\t$credentials = array('username' => $vbulletin->userinfo['username'], 'password' => $vbulletin->userinfo['password'],'password_salt' => $vbulletin->userinfo['salt']);\n\t\t$options = array('entry_url' => JURI::root().'index.php?option=com_user&task=login');\n\t\t$mainframe->login($credentials, $options);\n\n\t\t// clean up the joomla session object before continuing\n\t\t$session =& JFactory::getSession();\n\t\t$session->close();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2810277ea5bf4db3cd0f06f22dd2d796", "score": "0.63476115", "text": "public function adminCheckValidLogin()\n {\n if($this->adminUserSessionLogin()) {\n return TRUE;\n }\n return FALSE;\n\n }", "title": "" }, { "docid": "ff69a12d5e868a95cdae9c16a8f5a5aa", "score": "0.634464", "text": "private static function login_end() {\n\t\t$username = $_REQUEST['login_user'];\n\t\t\n\t\tif (preg_match('/^(.*)@example.com$/', $username, $matches)) {\n\t\t\t$password = $_POST['login_pass'];\n\t\t\tunset( $_GET['login_pass'], $_POST['login_pass'], $_REQUEST['login_pass'] );\n\t\t\t\n\t\t\t// Using LDAP login\n\t\t\t$ldapuser = 'uid=' .HNLDAP::escape($matches[1]). ',ou=People,dc=example,dc=com';\n\t\t\t\n\t\t\t// Check login to LDAP succeeds\n\t\t\ttry {\n\t\t\t\tHNLDAP::close();\n\t\t\t\tHNLDAP::connect(LDAP_HOST, LDAP_VERSION, $ldapuser, $password, LDAP_PORT);\n\t\t\t} catch (HNDBException $e) {\n\t\t\t\terror('Incorrect Username or Password Entered.');\n\t\t\t\tif (DEBUG)\n\t\t\t\t\terror($e->getMessage());\n\t\t\t\treturn;\n\t\t\t} catch (Exception $e) {\n\t\t\t\terror('Cannot connect to LDAP server.');\n\t\t\t\tif (DEBUG)\n\t\t\t\t\terror($e->getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Check that the user was of staff type\n\t\t\t$uuo = HNOBJBasic::loadObject('mojo_user', $username);\n\t\t\tif ($uuo['employeetype'][0] != 'ps') {\n\t\t\t\terror('The login supplied did not have required permission.');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Login is OK so we need to prepare our normal DB\n\t\t\tif (count($uuo['users']) == 0) {\n\t\t\t\t$uo = $uuo['users']->addNew();\n\t\t\t\t$uo['role'] = 'Unit Coordinator';\n\t\t\t\t$uo->save();\n\t\t\t\t$uuo->load();\n\t\t\t}\n\t\t\t$uo = $uuo['users'][0];\n\t\t\t$GLOBALS['uo'] = $uo;\n\t\t\t\n\t\t\t// Copy all required data to mysql object\n\t\t\t$uo['username'] = $uuo['mail'][0];\n\t\t\t$uo['email'] = $uuo['mail'][0];\n\t\t\t$uo['first_name'] = $uuo['givenname'][0];\n\t\t\t$uo['last_name'] = $uuo['sn'][0];\n\t\t\t\n\t\t\t// Save\n\t\t\t$uo->save();\n\t\t\t$userid = $uo->getId();\n\t\t} else {\n\t\t\t// Using MySQL user login\n\t\t\t// Salt the password for MySQL login\n\t\t\t$pass = hash(LOGIN_HASHALG, LOGIN_PRESALT.$_POST['login_pass'].LOGIN_POSTSALT);\n\t\t\tunset($_GET['login_pass'], $_POST['login_pass'], $_REQUEST['login_pass']);\n\n\t\t\t// Check the login is correct\n\t\t\t$user = HNMySQL::escape($username);\n\t\t\t$pass = HNMySQL::escape($pass);\n\t\t\t// Note: The pipe in the following query is to stop problems with strange trailing chars being ignored\n\t\t\t$sql = 'SELECT `userid` FROM `user` WHERE CONCAT(`username`,\"|\")=\"' .$user. '|\" AND `password`=\"' .$pass. '\" LIMIT 1';\n\t\t\t$result = HNMySQL::query($sql);\n\n\t\t\t// Was login successful?\n\t\t\tif (!$result || $result->num_rows != 1) {\n\t\t\t\t// Record login Failure to login record\n\t\t\t\tself::login_logit(true, false);\n\t\t\t\t\n\t\t\t\t// Set error message\n\t\t\t\terror('Incorrect Username or Password Entered.');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$row = $result->fetch_row();\n\t\t\t$userid = $row[0];\n\t\t}\n\t\t\n\t\t// If successful we prepair to go back into the main of the website\n\t\t// Setup session so the rest of the program knows we are logged in\n\t\t$_SESSION['UserLoggedIn'] = $userid;\n\t\t$_SESSION['UserLastSeen'] = time();\n\t\t$_SESSION['UserSessionId'] = session_id();\n\t\t\n\t\t// Record login Success to login record\n\t\tself::login_logit(true, true);\n\t\t\n\t\t// Redirect to this page again\n\t\t$getVars = self::make_getVars(array('autoquery', 'login', 'logout', 'auto_login', 'login_user', 'login_pass'));\n\t\theader('Location: ' .SERVER_ADDRESS. '/' .$_GET['autoquery']. '?' .$getVars);\n\t\tdie();\n\t}", "title": "" }, { "docid": "94c55646c62f775457bc833e6314c0b5", "score": "0.6343973", "text": "public function validateUser()\n\t{\n\t\t// For purposes of this assignment I am going to assume the SSO is successful and just return the same\n\t\t// user information as a successful authentication of a non SSO login form.\n\t\t$this->username = 'robert_brown';\n\t\t$this->firstname = 'Robert';\n\t\t$this->lastname = 'Brown';\n\t\t$this->userId = 'rb1234567890';\n\t\treturn 'success';\n\t}", "title": "" }, { "docid": "442559ae674996d4fda561ee12c72f08", "score": "0.63439304", "text": "function login($_ui, $_helper)\n{\n global $loggedIn;\n echo ($_ui->yell(\"login\"));\n $userName = readline();\n $params = array();\n $params = $_helper->paramsAdd($params, 'login', 'S', $userName);\n $result = $_helper->getItem($params, 'users');\n\n if(!$_helper->itemExists($result)){\n echo ($_ui->yell(\"login_err1\"));\n login($_ui, $_helper);\n }\n\n echo ($_ui->yell('login_prompt_pass'));\n $inputPass = readline();\n $salt = $_helper->getSalt();\n $pass = md5($inputPass.$salt);\n unset($params);\n $params = array();\n $params = $_helper->paramsAdd($params, 'login', 'S', $userName);\n\n $user = $_helper->getItem($params, 'users');\n if($user['Item']['pass']['S'] === $pass)\n {\n $_SESSION['userName'] = $user['Item']['login']['S'];\n $loggedIn = TRUE;\n welcome($_ui, $_helper);\n }\n else\n {\n echo ($_ui->yell('login_err2'));\n }\n}", "title": "" }, { "docid": "b18e0eab2f17dac963cb10ea3e44a577", "score": "0.63372403", "text": "function existing_user($name, $password) {\n\t\t$users = file(\"users.txt\");\n\t\t$flag = false;\n\t\tforeach($users as $user) {\n\t\t\t$line = explode(\":\", $user);\n\t\t\tlist($username, $user_password) = $line;\n\t\t\tif(trim($username) == $name) {\n\t\t\t\tvalidate_password($name, $password, trim($user_password));\n\t\t\t\t$flag = true;\n\t\t\t}\n\t\t}\n\t\tif(!$flag) {\n\t\t\tsetcookie(\"error\", \"Username Not Recongized\");\n\t\t\theader(\"location: login.php\");\n\t\t\tdie(\"invalid login\");\n\t\t}\n\t}", "title": "" }, { "docid": "c1ee9ff2265f6c0341fc8be1a6f1f946", "score": "0.6332642", "text": "function check_member_login() {\r\n\t$err = array();\r\n\t$email = clean( $_POST['email'] );\r\n\t$password = clean( $_POST['password'] );\r\n\tif( empty( $email ) ) { $err[] = '- Mohon untuk memasukkan email Anda'; }\r\n\tif( empty( $password ) ) { $err[] = '- Mohon untuk mengisi password Anda'; }\r\n\tif( !count( $err ) ) {\r\n\t\t$sql = fetch( query( \"SELECT * FROM \".TABLE_USER.\" WHERE email='$email' AND password='\".md5( $password ).\"'\" ) );\r\n\t\tif( $sql ) { $_SESSION['user_id'] = $sql['user_id']; query( \"UPDATE \".TABLE_USER.\" SET status=1 WHERE user_id='\".$_SESSION['user_id'].\"'\" );}\r\n\t\telse { $err[] = '- Maaf, email dan password Anda salah'; }\r\n\t}\r\n\tif( count( $err ) ) { $_SESSION['msg-error-login-member']['wrong-member-account'] = implode( '<br>', $err ); }\r\n\theader( \"Location: \".SITE_URL );\r\n\texit;\r\n}", "title": "" }, { "docid": "00fe1a76c234a98f153fbec6121efced", "score": "0.6331494", "text": "public function verify_userinfo()\n\t{\n\t\t//load the user model\n\t\t$this->load->model('user');\n\t\t//call login function of user model\n\t\tif ($this->user->login())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t}", "title": "" }, { "docid": "57bab55fe5ccb147f2f3fda5ad7e7a67", "score": "0.63311666", "text": "private function checkUserValidity(){\n\t\t//data needed are in the $_POST['username'] and $_POST['password']\n\t\t\n\t\t$username = $_POST['username'];\n\t\t$password = md5($_POST['password']);\n\n\t\t$data = $this->user_account_model->getUser($username);\n\n\t\tif(!$data){\n\t\t\techo \"Error: username: $username does not exists\";\n\t\t\t$this->load->view('login_view');\t\n\t\t}\n\t\t\n\t\telse{\n\t\t\tif($password == $data['password']){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo \"Wrong password!\";\n\t\t\t\t$this->load->view('login_view');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a3ab7fdbe410be5d6f30a5f716939c00", "score": "0.633115", "text": "function validar_usuario($login, $senha){\r\n }", "title": "" }, { "docid": "a1016097f1c5161fbb75e5b6dfe6a794", "score": "0.63310647", "text": "function checkLogin($post)\n{\n\n //cette requete sert a vérifier si ce qu'il a entrer comme username ou pseudo corresond a quelque chose dans la BD car on ne peut plus vérifier le password vu qu'il est hasher\n $requete = \"SELECT userEmailAddress, userPsw, admin FROM users where userEmailAddress = '\" . $post['username']. \"';\";\n\n $result = executeQuery($requete);\n\n\n if ($result) {\n $passwordHash = $result[0][\"userPsw\"];\n if (password_verify($post['password'], $passwordHash)) {\n $_SESSION['MotCle'] = $post['username'];//SESSION c'est comme un $_GET sauf qu'un $_GET c'est des chose de l'url contrairement a SESSION ou tu peut le faire égale a n'importequoi (MotCle c'est juste l'indentifiant de cette session)\n $_SESSION['MotCleAdmin'] = $result[0][\"admin\"];//SESSION c'est comme un $_GET sauf qu'un $_GET c'est des chose de l'url contrairement a SESSION ou tu peut le faire égale a n'importequoi(MotCleAdmin c'est juste l'indentifiant de cette session)\n return true;\n } else {\n return false;\n }\n\n\n } else\n return false;\n\n}", "title": "" }, { "docid": "2e7530d68d354271c5940ea88b03ab09", "score": "0.6329236", "text": "public function login()\n\t{\n\t\tif ( $this->_session->get('hash') )\n\t\t{\n\t\t if ( $this->confirmAuth() )\n\t\t {\n\t\t \treturn;\n\t\t }\n\t\t}\n\n\t\t// If this is a fresh login, check $_POST variables\n\t\tif ( !isset( $_POST['login'] ) || !isset( $_POST['password'] ) )\n\t\t{\n\t\t\t$this->redirect();\n\t\t}\n\t\t\n //Encrypt password\n\t\t$password = md5( $_POST['password'] );\n\t\t\n\t\ttry\n\t\t{\n\t\t // Query to count number of users with this combination\n\t\t $sql = \"SELECT COUNT(*) AS num_users FROM user WHERE login =:login AND password = :pass\";\n\t\t \n\t\t $stmt = $this->_db->prepare($sql);\n\t\t // bind the user input\n\t\t $stmt->bindParam(':login', $_POST['login']);\n\t\t $stmt->bindParam(':pass', $password);\n\t\t $stmt->execute();\n\t\t $row = $stmt->fetch( \\PDO::FETCH_ASSOC );\n\t\t}\n\t\tcatch ( \\PDOException $e )\n\t\t{\n\t\t error_log('Error in '.$e->getFile().\n\t\t ' Line: '.$e->getLine().\n\t\t ' Error: '.$e->getMessage()\n\t\t );\n\t\t\t$this->redirect();\n\t\t}\n\t\t// If there isn't exactly one entry, redirect\n\t\tif ( $row['num_users'] != 1 )\n\t\t{ \n\t\t\t$this->redirect('notOk');\n\t\t}\n\t\t// Else is a valid user; set the session variables\n\t\telse\n\t\t{\n\t\t\t$this->storeAuth( $_POST['login'], $password );\n\t\t\t\n\t\t\t//We set login flag to 1 \n\t\t\t$user_mapper = new UserMapper();\n\t\t\t$user_mapper->set_logging_flag($_POST['login'], 1);\n\t\t}\n\t }", "title": "" }, { "docid": "d199442f437c741e1ab6b2395a6b542a", "score": "0.6323923", "text": "public static function login()\n {\n\n $user = useraccounts::findUname($_REQUEST['username']);\n if ($user == FALSE) {\n\t\t\theader(\"Location: index.php?page=userlogin&action=login&msg=Incorrect%20User%20Name%20or%20Password\");\n \n } else {\n\t\t\t$pw = utility\\registration::checkPassword($_POST['password'], $user['password']);\n\t\t\techo $pw;\n\t\t\tif($pw == TRUE) {\n echo 'login';\n session_start();\n\t\t\t\t$_SESSION[\"userID\"] = $user['id'];\n\t\t\t\t$_SESSION[\"FName\"] = $user['fname'];\n\t\t\t\theader(\"Location: index.php?page=all_tasks&action=all\");\n //forward the user to the show all todos page\n\t\t\t\n } else {\n header(\"Location: index.php?page=userlogin&action=login&msg=Incorrect%20User%20Name%20or%20Password\");\n }\n }\n\t}", "title": "" }, { "docid": "227e129bd28a764cb940bdd6e7e54de6", "score": "0.63234454", "text": "private function check_login() {\n if(session_id() && isset($_SESSION['user_id'])) {\n \n $this->email = $_SESSION['email'];\n $this->user_id = $_SESSION['user_id'];\n \n $this->logged_in = true;\n } else {\n \n unset($this->email);\n unset($this->user_id);\n $this->logged_in = false;\n }\n }", "title": "" }, { "docid": "602a07cbe68a694404bf29ddb69605b1", "score": "0.63190806", "text": "protected function process_login() {\n\t\t$auth = new WaxAuthDb(array(\"db_table\"=>$this->model_name, \"session_key\"=>\"wildfire_user_cookie\"));\n\t\tif( $auth->verify($_POST['username'], $_POST['password'])){\n\t\t $log = new WildfireLog;\n\t\t $log->action=\"login\";\n\t\t $log->user=$auth->get_user();\n\t\t $log->time = date(\"Y-m-d H:i:s\");\n\t\t $log->save();\n\t\t if($this->authorised_redirect) return $this->authorised_redirect;\t\t \n\t\t\telse return 'index';\n\t\t}\n\t\telse {\n\t\t Session::add_message(\"Sorry, we can't find that username and password. Try again.\");\n\t\t\treturn $this->unauthorised_redirect;\n\t\t}\n\t}", "title": "" }, { "docid": "647ee935143a58f955f700ea75e7d29c", "score": "0.631845", "text": "public function testLoginUser()\n {\n\n // Verify user\n $success = $this->user->loginUser(\"admin\", \"admin\");\n\n // Assertion\n $this->assertTrue($success);\n }", "title": "" }, { "docid": "225305e666eb0e7109e2537d4ed7bb74", "score": "0.63184005", "text": "function validateUser() {\n global $lang;\n $app = \\Slim\\Slim::getInstance();\n if (!isset($_SESSION['email']) || !$_SESSION['email']) {\n $app->flash('danger', $lang->t('alert|login_needed'));\n $app->redirect(LOGIN_URL);\n } else {\n $admin = R::findOne('admin', ' email=:email ', array(':email'=>$_SESSION['email']));\n if (!$admin->id) {\n $app->flash('danger', $lang->t('alert|invalid_login'));\n $app->redirect(LOGIN_URL);\n }\n }\n}", "title": "" }, { "docid": "96345c870360d2593033091071c4f56d", "score": "0.63164407", "text": "private function login()\n {\n $sql = \"SELECT * FROM \" . USERS_TBL . \" \n WHERE `status` = \" . USER_STATUS_ACTIVE . \" \n AND `email` = '{$this->email}' \n AND `password` = '{$this->password}'\";\n \n $rows = $this->db->select($sql);\n\n $this->user = isset($rows[0]) ? new User($this->db, $rows[0]) : null;\n\n if(!$this->user)\n {\n $this->message = LOGIN_MSG;\n }\n }", "title": "" }, { "docid": "9602ca801826332d66e721eae92e1178", "score": "0.6315052", "text": "private function checkUser()\n {\n $session = $this->di->get(\"session\");\n\n if (!$session->get(\"activeUser\") && !$session->get(\"username\")) {\n return $this->di->get('response')->redirect(\"user/login\");\n }\n }", "title": "" } ]
b222cf9abb84f9dc680477968f85a2b2
Cadastro de novas Universidades
[ { "docid": "ed3be300038a40d7e9a81d0acd99ea39", "score": "0.0", "text": "public function novoAction() {\n $form = new Application_Form_Universidade();\n if ($this->getRequest()->isPost()) {\n if ($this->getRequest()->getPost('cancelar') == \"\") {\n $formData = $this->getRequest()->getPost();\n if ($form->isValid($formData)) {\n $nome = $form->getValue('nome');\n $oUniversidades = new Application_Model_DbTable_Universidades();\n $oUniversidades->novoUniversidade($nome);\n $this->_helper->flashMessenger->addMessage(utf8_encode('Cadastro realizado com sucesso!'));\n } else {\n $form->populate($formData);\n }\n }\n $this->_helper->redirector('index');\n }\n }", "title": "" } ]
[ { "docid": "acabae6cdb9ad58a0b2fcbc12c84cff2", "score": "0.6681799", "text": "public function getUniversitas()\n {\n return $this->universitas;\n }", "title": "" }, { "docid": "28d64fa21e04b03db397cfa65c3a7fb1", "score": "0.6545384", "text": "public function listarUnidade(){\n\n $unidadeDAO = new UnidadeDAO();\n\n $listUnidade = $unidadeDAO->selectAll();\n\n return $listUnidade;\n\n }", "title": "" }, { "docid": "dced1c50077b628d919e0b1fc1f5ca43", "score": "0.63792956", "text": "abstract function niveauEtude();", "title": "" }, { "docid": "231cd02fa2e4ce503ce308fb919cef88", "score": "0.6017004", "text": "public function getUnidade () {\n\t\treturn $this->unidade;\n\t}", "title": "" }, { "docid": "ea0b07f1c32f0fdbb1fe32bd7b444a94", "score": "0.5968132", "text": "public function getUniversidad()\n {\n return $this->hasOne(Universidades::className(), ['id' => 'universidad_id']);\n }", "title": "" }, { "docid": "ea0b07f1c32f0fdbb1fe32bd7b444a94", "score": "0.5968132", "text": "public function getUniversidad()\n {\n return $this->hasOne(Universidades::className(), ['id' => 'universidad_id']);\n }", "title": "" }, { "docid": "170872ce94e9888914ab2f4868f8a1e8", "score": "0.5920429", "text": "public function getSujetAutorisation()\n {\n return $this->sujetAutorisation;\n }", "title": "" }, { "docid": "c8ac7ed2113a19aeea4ddc997d3399dc", "score": "0.5887849", "text": "private function Usuarios()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "de3692b65800586a8329cce584f388fd", "score": "0.58614665", "text": "function get_all_direccion_universitaria()\n {\n $this->db->order_by('direccionuniv_id', 'desc');\n return $this->db->get('direccion_universitaria')->result_array();\n }", "title": "" }, { "docid": "c922c81467dc1aa0ca94b4f06bae4a56", "score": "0.58484817", "text": "public function Comunidad(){}", "title": "" }, { "docid": "c7eebfe3574ee785af6b3ac18006e1ad", "score": "0.584556", "text": "public static function vistaUnidadesSelectController(){\r\n\t\trequire_once \"./models/crud.php\";\r\n\t\t$respuesta = Datos::vistaUnidadesModel(\"unidades\");\r\n\t\t#El constructor foreach proporciona un modo sencillo de iterar sobre arrays. foreach funciona sólo sobre arrays y objetos, y emitirá un error al intentar usarlo con una variable de un tipo diferente de datos o una variable no inicializada.\r\n\t\techo\"<option value='0' selected disabled> Selecciona una unidad ... </option>\";\r\n\t\tforeach($respuesta as $row => $item){\r\n\t\t\t\techo\"<option value='\". $item['id_unidad'].\"'>\".$item['num_unidad'].\"</option>\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0eeec8e0fe9907992e0965c8d7b2b664", "score": "0.57790303", "text": "public function universidad()\n {\n return $this->belongsTo(Universidad::class);\n }", "title": "" }, { "docid": "4748639f3a48766ea6440f37b3f75c2c", "score": "0.57483524", "text": "public function mostrarAlunos() {\r\n\t\tforeach($this->alunos as $aluno) {\r\n\t\t\techo $aluno->nome . '<br>';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb5a9889c1902fcdb7c4742be0800bce", "score": "0.570963", "text": "public function somatorioPorUnidade ($arrResultado){\n \n for ($i = 0; $i < count($arrResultado) ; $i++) {\n $qtdeUnidade[] = $arrResultado[$i]['UNIDADE_AUTUADORA'].$arrResultado[$i]['SIGLA_FAMILIA'];\n } \n if ( count($qtdeUnidade) > 0 ) {\n $somatorioUnidade = array_count_values( $qtdeUnidade );\n $arrResultado['somaUnidades'] = $somatorioUnidade;\n }\n return $arrResultado;\n }", "title": "" }, { "docid": "d6be1a6938a5d14cd125bf064959fbb9", "score": "0.5689664", "text": "public function getEscolhaUnica()\n {\n return $this->escolhaUnica;\n }", "title": "" }, { "docid": "99a21e2c624780fb7f104b2aa2c2b082", "score": "0.5677895", "text": "public function obtieneUnidad()\n \t{\n \t\t$sql3 = \"SELECT * FROM unidad ORDER BY unidad\";\n\t\t\t$ejecutar = mysql_query($sql3)or die (\"Error de Consulta-UnidadCombo\");\n\t\t\t$filas = mysql_num_rows($ejecutar);\n\t\t\n if($filas != 0){\n\t\t\t$comboUni = array();\n\t\t\twhile ($rows = mysql_fetch_assoc($ejecutar)) {\n\t\t\t\t$comboUni[] = $rows;\n\t\t\t}\n\t\t\t\n\t\t\treturn $comboUni;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dd5448d0b7ee8871593759ce0629f8eb", "score": "0.5665254", "text": "public function muestraCiudades(){\n try{\n $array = array();\n $con = new Conexion;\n $con = $con->conectar();\n $sql = \"SELECT id,nombre FROM localidades WHERE id_region = '\".$this->estado.\"' \";\n $result = $con->query($sql);\n while($row = $result->fetch_array()){\n array_push($array,array(\"value\"=>$row['id'],\"text\"=>$row['nombre']) );\n }\n return $array;\n\n }catch(Exception $e){\n echo $e->getMessage();\n }finally{\n $con->close();\n }\n }", "title": "" }, { "docid": "37a10da144cdeee50c63958d3cdee926", "score": "0.5656955", "text": "public function ulubione(){\n return $this->ulubione;\n }", "title": "" }, { "docid": "3c988fa2b6b8af2b60817a1b037c3300", "score": "0.5651302", "text": "private function initialize(){\n $data= CDatabaza::getInstance();\n $connected=$data->connected();\n if(!$connected)\n $data->connect();\n \n $sql=\"SELECT * FROM Uzivatel INNER JOIN Uzivatel_info ON Uzivatel.uzivatel_id=Uzivatel_info.uzivatel_id\n WHERE Uzivatel.uzivatel_id<>\".$_SESSION['user'];\n $query=$data->query($sql);\n if($query){\n while($user=$query->fetch_array()){\n $id=$user['uzivatel_id'];\n $this->users[$id]['id']=$id;\n $this->users[$id]['login']=$user['prihlasovacie_meno'];\n $this->users[$id]['name']=$user['meno'];\n $this->users[$id]['surname']=$user['priezvisko'];\n $this->users[$id]['class']=$user['trieda'];\n $this->users[$id]['rights']=$user['pristupove_prava'];\n }\n }\n \n \n if(!$connected)\n $data->close();\n }", "title": "" }, { "docid": "6138ce74d590b20e98e259999fcf798a", "score": "0.5649816", "text": "public function getUsoName() \n {\n return $this->uso->descripcion;\n }", "title": "" }, { "docid": "256f9379f06bc9b413d8c5358e45215b", "score": "0.5639315", "text": "public function lista_unidades_distrital_nivel($unidades,$or_id){\n $tabla='';\n\n $tabla.=' <table class=\"table table-bordered\">\n <thead>\n <tr>\n <th style=\"width:1%;\">#</th>\n <th style=\"width:10%;\">CAT.</th>\n <th style=\"width:50%;\">UNIDAD / ESTABLECIMIENTO</th>\n <th style=\"width:10%;\">PROG.</th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;\n foreach($unidades as $rowu){\n $uni=$this->model_objetivoregion->get_unidad_programado($or_id,$rowu['act_id']);\n $color='';$valor_prog=0;\n if(count($uni)!=0){\n if($uni[0]['or_estado']==1){\n $color='#cbf7cb';\n \n }\n $valor_prog=$uni[0]['prog_fis'];\n }\n $nro++;\n $tabla.=\n '<tr bgcolor='.$color.'>\n <td>'.$nro.'</td>\n <td>'.$rowu['aper_programa'].'</td>\n <td>'.$rowu['tipo'].' '.$rowu['act_descripcion'].'</td>\n <td>'.$valor_prog.'</td>\n </tr>';\n }\n $tabla.='\n </tbody>\n </table>';\n\n return $tabla;\n }", "title": "" }, { "docid": "99690f298ef07685ab83be043b33d9cc", "score": "0.56332004", "text": "function dameUsuariosFabrica(){\n $consultaSql = \"select * from usuarios where activo=1 and id_tipo=1 or id_tipo=3 or id_tipo=6\";\n $this->setConsulta($consultaSql);\n $this->ejecutarConsulta();\n return $this->getResultados();\n }", "title": "" }, { "docid": "647e76609b3dc11e45fe86d4678bd9fd", "score": "0.5616647", "text": "public function auco()\n { \n return DB::connection('sqlite')->select('SELECT DISTINCT auco FROM municipa;');\n }", "title": "" }, { "docid": "08bfbd6b944a47d791f7eced955b6ce4", "score": "0.56052935", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('ControlEquipoBundle:EquiposInternos')->findAll();\n \n if(!empty($entities)) {\n foreach ($entities as $entity) {\n $unidad[$entity->getId()] = $entity->getResponsablePatrimonial()->getNivelorganizacional(); \n }\n } else {\n $unidad = null;\n }\n \n return $this->render('ControlEquipoBundle:EquiposInternos:index.html.twig', array(\n 'entities' => $entities,\n 'unidadResponsable' => $unidad,\n ));\n }", "title": "" }, { "docid": "d0202062825f99be75bc2ade3aea64a7", "score": "0.560379", "text": "public function fakeUniversidad($universidadFields = [])\n {\n return new Universidad($this->fakeUniversidadData($universidadFields));\n }", "title": "" }, { "docid": "8c649390b68e94a1ed459d365e11636b", "score": "0.5597976", "text": "function listarUnidadconstructivamcelec(){\n\t\t$this->procedimiento='snx.ft_unidadconstructivamcelec_sel';\n\t\t$this->transaccion='SNX_MCUC_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_unidadconstructivamcelec','int4');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('areasub','numeric');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('numerobahias','int4');\n\t\t$this->captura('longitudvia','numeric');\n\t\t$this->captura('id_claseaislacion','int4');\n\t\t$this->captura('descripcion','varchar');\n\t\t$this->captura('id_tensionservicio','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('desc_claseaislacion','varchar');\n\t\t$this->captura('desc_tensionservicio','varchar');\n\t\t$this->captura('totalitems','numeric');\n\t\t$this->captura('totalog','numeric');\n\t\t$this->captura('totaluc','numeric');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "c403fb66fbbb440535c79cdb5528acac", "score": "0.5588579", "text": "function miCuenta(){\n \n $usuario = $this->modelo->buscarUsuario($_SESSION[\"email\"]);\n $this->vista->usuario = $usuario;\n $this->vista->localidades = $this->modelo->buscarLocalidadesProvincia($usuario->obtenerProvincia());\n $this->vista->provincias = $this->modelo->buscarProvincias();\n \n $this->vista->render($this,'miCuenta');\n }", "title": "" }, { "docid": "b5a8844126f5e1aaca8801f8259815bd", "score": "0.55751747", "text": "function equipos_club(){\n\t\tglobal $query;\n\t\t$datos=$query->equipos_completo();\n\t\tformatea_envia($datos);\n\t}", "title": "" }, { "docid": "e92ccdba41b9463d25a243257168200e", "score": "0.5573912", "text": "public function getUniversity()\r\n {\r\n return $this->university;\r\n }", "title": "" }, { "docid": "d90e26dd1f538cc53c0ce614e2579597", "score": "0.55697995", "text": "public function unidades()\n {\n return $this->belongsTo('VCCon\\Domains\\Unidades\\Models\\Unidade', 'unidade_id');\n }", "title": "" }, { "docid": "32af13e9b859cf5d8ac5e8926e988491", "score": "0.5569154", "text": "public static function vistaUnidadesMazdaSelectController(){\r\n\t\trequire_once \"./models/crud.php\";\r\n\t\t$respuesta = Datos::vistaUnidadesMazdaModel(\"unidades\");\r\n\t\t#El constructor foreach proporciona un modo sencillo de iterar sobre arrays. foreach funciona sólo sobre arrays y objetos, y emitirá un error al intentar usarlo con una variable de un tipo diferente de datos o una variable no inicializada.\r\n\t\techo\"<option value='0' selected disabled> Selecciona una unidad ... </option>\";\r\n\t\tforeach($respuesta as $row => $item){\r\n\t\t\t\techo\"<option value='\". $item['id_unidad'].\"'>\".$item['num_unidad'].\"</option>\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d6f48816187c0bcad16cb9c9fbf7cf82", "score": "0.55680954", "text": "function accueil(){\r\n\t\t$this->vueSujets->afficheSujets($this->modele->getAllSujets());\r\n\t}", "title": "" }, { "docid": "f2159d4f374c87236c6d2ad9d17e3001", "score": "0.5559774", "text": "public function universities()\n {\n return $this->hasMany(University::class, 'user_id');\n }", "title": "" }, { "docid": "0ae11baf147b7f5174e9c67c6edb68f8", "score": "0.55476755", "text": "public function allUsuarios (){\n\n /**\n * conexión a una base de datos externa a Drupal \n * Con el alias de 'aplicación'\n * Para ver la configuración hay que ir al setting.php\n */\n $nc = $this->nuevaconexion->nuevaConexion();\n\n /**\n * Realizamos la consulta a usuarios\n * \n */\n\n $query = $nc->select('bza_usuarios', 'u');\n $query->fields('u', ['idUsuario', 'dsNombre', 'dsApellido1', 'dsApellido2', 'dsEmail']);\n $result = $query->execute();\n $usuarios = $result->fetchAll();\n\n foreach($usuarios as $usuario){\n $allUsuarios['nombre'][] = $usuario->dsNombre;\n $allUsuarios['apellidos'][] = $usuario->dsApellido1. ' '.$usuario->dsApellido2;\n $allUsuarios['correo'][] = $usuario->dsEmail;\n }\n\n // MANDAR LOS DATOS A LA PLANTILLA DE CORREO\n return [\n '#theme' => 'usuarios',\n '#titulo' => $this->t('TODOS LOS USUARIOS'),\n '#descripcion' => 'mostrar todos los usuarios',\n '#datos' => $allUsuarios\n ];\n\n }", "title": "" }, { "docid": "d3e81b28c0f5be5772cb6a84190ac2e8", "score": "0.55445266", "text": "function aspiranteInstitucionesBYAspiranteUni_get(){\n $id=$this->get('id');\n if (count($this->get())>1) {\n $response = array(\n \"status\" => \"error\",\n \"status_code\" => 409,\n \"message\" => \"Demasiados datos enviados\",\n \"validations\" =>array(\n \"id\"=>\"Envia Id (get) para obtener un especifico articulo o vacio para obtener todos los articulos\"\n ),\n \"data\"=>null\n );\n }else{\n if ($id) {\n $data = $this->DAO->selectEntity('Vw_AspiranteInstituciones',array('idAspiranteUniversidad'=>$id),false);\n }\n else{\n $data = $this->DAO->selectEntity('Vw_AspiranteInstituciones',null,false);\n }\n if ($data) {\n $response = array(\n \"status\" => \"success\",\n \"status_code\" => 201,\n \"message\" => \"Articulo Cargado correctamente\",\n \"validations\" =>null,\n \"data\"=>$data\n );\n }else{\n $response = array(\n \"status\" => \"error\",\n \"status_code\" => 409,\n \"message\" => \"No se recibio datos\",\n \"validations\" =>null,\n \"data\"=>null\n );\n }\n }\n $this->response($response,200);\n }", "title": "" }, { "docid": "dcf3ded258a323590f71ef0837eb74e6", "score": "0.55407196", "text": "public function index()\n\t{\n $unidades = Unidad::where('account_id', '=', Auth::user()->account_id)->select('public_id', 'name' )->get();\n\t return View::make('unidades.index', array('unidades' => $unidades));\n\t}", "title": "" }, { "docid": "9cf7310483ce51e8fe77b179ed27f332", "score": "0.5538872", "text": "function insertarUnidadconstructivamcelec(){\n\t\t$this->procedimiento='snx.ft_unidadconstructivamcelec_ime';\n\t\t$this->transaccion='SNX_MCUC_INS';\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('codigo','codigo','varchar');\n\t\t$this->setParametro('areasub','areasub','numeric');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('numerobahias','numerobahias','int4');\n\t\t$this->setParametro('longitudvia','longitudvia','numeric');\n\t\t$this->setParametro('id_claseaislacion','id_claseaislacion','int4');\n\t\t$this->setParametro('descripcion','descripcion','varchar');\n\t\t$this->setParametro('id_tensionservicio','id_tensionservicio','int4');\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}", "title": "" }, { "docid": "3a3373088969d2054f4d6385c3b92ed9", "score": "0.5527593", "text": "function obtenerCuentas() {\n $sql = \"select * from cuentas \";\n $conexion = new Conexion();\n $cuentas = $conexion->devolverResultados($sql);\n $conexion->CerrarConexion();\n return $cuentas;\n }", "title": "" }, { "docid": "24289c67361e36f310b4494ec2b3df66", "score": "0.5517901", "text": "public function message()\n {\n return 'El libro no tiene unidades disponibles.';\n }", "title": "" }, { "docid": "444940f7bea2dd0845156d7b51054277", "score": "0.5513452", "text": "public function getFaculties() {\r\n $sql = \"SELECT * FROM faculties\";\r\n $result = $this->connect()->query($sql);\r\n $numRows = $result->rowCount();\r\n if ($numRows > 0) {\r\n foreach ($result as $row){\r\n echo \"<option value=$row[facultyCode]>$row[facultyCode]</option>\";\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b3740cb495c80888466579b11f8c5f96", "score": "0.55104154", "text": "public function index()\n {\n return unidades::all();\n }", "title": "" }, { "docid": "9be11fab562f41d9db60c27ac29144a2", "score": "0.5509294", "text": "function listarCuatrimestres() {\r\n $this->ConectarBD();\r\n $sql = \"SELECT * FROM HORARIO_CUATRIMESTRE\";\r\n if (!($resultado = $this->mysqli->query($sql))) {\r\n return 'Error en la consulta sobre la base de datos.';\r\n } else {\r\n $toret = array();\r\n $i = 0;\r\n while ($fila = $resultado->fetch_array()) {\r\n $toret[$i] = $fila;\r\n $i++;\r\n }\r\n return $toret;\r\n }\r\n }", "title": "" }, { "docid": "8237ea19b4be18d809fa54ddfa4f7dcb", "score": "0.5498054", "text": "function UCS_getOrganisationUnits()\n{\n\t$out = array();\n\tforeach (UCS_getUDMCompleteInfo('container/ou') as $info)\n\t\t$out[$info['name']] = $info['name'].' ('.$info['displayName'].')';\n\t\n\treturn($out);\n}", "title": "" }, { "docid": "b64fd2c6020a3ef041f836f4ca5bacb8", "score": "0.54978687", "text": "function dameUsuariosFabricaToro(){\n $consultaSql = \"select * from usuarios where activo=1 and id_tipo=1 or id_almacen=2\";\n $this->setConsulta($consultaSql);\n $this->ejecutarConsulta();\n return $this->getResultados();\n }", "title": "" }, { "docid": "4d35ec8bd2260bd711ac59e9bc063d3e", "score": "0.5492452", "text": "function getDatosUsuario () {\n $this->objFunc=$this->create('MODProcesoCompra');\n $this->res=$this->objFunc->getDatosUsuario($this->objParam);\n $this->res->imprimirRespuesta($this->res->generarJson());\n }", "title": "" }, { "docid": "77355887be086e268565ccf494599be0", "score": "0.549111", "text": "function obtener_aulas ($espacios_concedidos){\n $aulas=array();\n $indice=0;\n foreach($espacios_concedidos as $clave=>$valor){\n $aula=array(); // indice => (aula, id_aula)\n $aula['aula']=$valor['aula'];\n $aula['id_aula']=$valor['id_aula'];\n //$aula=$valor['aula'];\n $existe=$this->existe($aulas, $aula);\n if(!$existe){\n $aulas[$indice]=$aula;\n $indice += 1;\n }\n }\n return $aulas;\n }", "title": "" }, { "docid": "48e555883b06560c8916e33a41ff0d22", "score": "0.54874843", "text": "private function getInstitutionMembersCount() {\n return MembroInstituicao::count();\n }", "title": "" }, { "docid": "a7f8a96c8a63c782a41ec7982d5e933b", "score": "0.5480857", "text": "public function udomi(){\n $udomiModel=new UdomiModel();\n $oglasi=$udomiModel->findAll();\n \n \n $slikaModel=new SlikeModel();\n $slike=$slikaModel->findAll();\n $this->prikaz('Views/stranice/Udomi.php', ['slike'=>$slike], ['oglasi'=>$oglasi]);\n }", "title": "" }, { "docid": "4dfe66fb7dad9e422541b7e32f46cf76", "score": "0.5479971", "text": "static public function TraerLista_Usuariosistema()\n\t\t{\n\t\t\treturn self::select('alias','fecha_registro','hora_registro','estado','hash')->get();\t\n\t\t}", "title": "" }, { "docid": "d2e230fe3ea75c8aeb1e08021cfd5067", "score": "0.547836", "text": "function subscriptos_datos_personales_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"subscriptos_datos_personales\";\n\t\t$this->campoClave=\"subscriptos_datos_personales.IdSubscripto\";\n\t\t$this->id=null;\n\t\t\n\t\n\t\t$v=new Variable(2,$this->tabla,\"IdSubscripto\",1);\n\t\t\n\t\t$v->clave=true;\n\t\t\n\t\t$v->largoTotal=11;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Nombre\",2);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Apellido\",3);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Pais\",4);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Ciudad\",5);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Direccion\",6);\n\t\t\n\t\t$v->largoTotal=255;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"CP\",7);\n\t\t\n\t\t$v->largoTotal=10;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Telefono\",8);\n\t\t\n\t\t$v->largoTotal=20;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Celular\",9);\n\t\t\n\t\t$v->largoTotal=20;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Fax\",10);\n\t\t\n\t\t$v->largoTotal=20;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Web\",11);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Idioma\",12);\n\t\t\n\t\t$v->largoTotal=2;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Sexo\",13);\n\t\t\n\t\t$v->largoTotal=1;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(2,$this->tabla,\"Edad\",14);\n\t\t\n\t\t$v->largoTotal=11;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"RangoEdad\",15);\n\t\t\n\t\t$v->largoTotal=20;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Profesion\",16);\n\t\t\n\t\t$v->largoTotal=50;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Especialidad\",17);\n\t\t\n\t\t$v->largoTotal=50;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Institucion\",18);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"TipoInstitucion\",19);\n\t\t\n\t\t$v->largoTotal=50;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Libre1\",20);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Libre2\",21);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Libre3\",22);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Libre4\",23);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\t\t$v=new Variable(1,$this->tabla,\"Libre5\",24);\n\t\t\n\t\t$v->largoTotal=100;\n\t\t\n\t\t$v->requerida=true;\n\t\t\n\t\t$this->agregarVariable2($v);\n\t\n\n\t}", "title": "" }, { "docid": "0457128a7c85572ca104484427b2dd89", "score": "0.54783577", "text": "public function getAus() \n {\n $result=$this->adapter->query(\"select b.nombre, count(a.id) as valor \n from n_ausentismos a\n inner join n_tip_aus b on b.id = a.idTaus\n group by b.id\" ,Adapter::QUERY_MODE_EXECUTE); \n $datos=$result->toArray();\n return $datos;\n }", "title": "" }, { "docid": "850a01f8af587bf1b581dc9ebfc2a05a", "score": "0.5475878", "text": "public function showUniversities()\n {\n $universities_list = Cache::remember('universities', 43200, function () {\n \n // Retrieve universities from json file\n $contents = file_get_contents('../dependencies/universities.json');\n return collect(json_decode($contents, true));\n });\n\n // Return success\n return $this->success($universities_list);\n }", "title": "" }, { "docid": "fc6fca69ba0dcaa639012b5f472e5224", "score": "0.54727876", "text": "public function menuUsuario()\n {\n // $orden = app($OrdenService)->find($id);\n\n return [\n\n // Inicio\n 'Inicio' => [\n 'submenu' => 0,\n 'ruta' => route('home.user'),\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => 'feather icon-home',\n 'complementoruta' => '',\n ],\n // Fin inicio\n\n // Añadir Saldo\n 'Ecommerce' => [\n 'submenu' => 0,\n 'ruta' => route('shop'),\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => 'feather icon-shopping-cart',\n 'complementoruta' => '',\n ],\n // Fin añadir saldo\n\n // Organización\n 'Negocio' => [\n 'submenu' => 1,\n 'ruta' => 'javascript:;',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => 'feather icon-users',\n 'complementoruta' => '',\n 'submenus' => [\n [\n 'name' => 'Arbol Binario',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('genealogy_type', 'tree'),\n 'complementoruta' => ''\n ],\n [\n 'name' => 'Referidos Directos',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('genealogy_list_network', 'direct'),\n 'complementoruta' => ''\n ],\n [\n 'name' => 'Arbol unilevel',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('genealogy_list_network', 'network'),\n 'complementoruta' => ''\n ],\n ],\n ],\n // Fin Organización\n\n //Inverisones\n 'Inverisones' => [\n 'submenu' => 1,\n 'ruta' => 'javascript:;',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => 'feather icon-activity',\n 'complementoruta' => '',\n 'submenus' => [\n [\n 'name' => 'Activas',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('inversiones.index', 1),\n 'complementoruta' => ''\n ],\n [\n 'name' => 'Culminadas',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('inversiones.index', 2),\n 'complementoruta' => '',\n ],\n ],\n ],\n // Fin Inverisones\n\n // Financiero\n 'Financiero' => [\n 'submenu' => 1,\n 'ruta' => 'javascript:;',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => 'feather icon-dollar-sign',\n 'complementoruta' => '',\n 'submenus' => [\n [\n 'name' => 'Pagos',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('payments.index'),\n 'complementoruta' => ''\n ],\n [\n 'name' => 'Wallet',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('wallet.index'),\n 'complementoruta' => '',\n ],\n [\n 'name' => 'Historial de Ordenes',\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'ruta' => route('shop.orden.history'),\n 'complementoruta' => '',\n ],\n ],\n\n ],\n // Fin Financiero\n\n //Soporte\n 'Soporte' => [\n 'submenu' => 0,\n 'ruta' => route('ticket.list-user'),\n 'blank'=> '', // si es para una pagina diferente del sistema solo coloquen _blank\n 'icon' => '',\n 'complementoruta' => '',\n ],\n\n ];\n }", "title": "" }, { "docid": "a480578b8f640c0f801faae4588b10ed", "score": "0.5471607", "text": "public function getInstituicoes() {\n return $this->sListaInstit;\n }", "title": "" }, { "docid": "97067222df7d1c7897e546af92d8ddfe", "score": "0.5470281", "text": "public function getCdUnidade()\n {\n return $this->cd_unidade;\n }", "title": "" }, { "docid": "6dfdc21b0b285842f62320e87ca09d2b", "score": "0.5469108", "text": "function agregar_unidad()\n {\n $permiso = $this->permiso_administrador();\n\n $this->load->model('tpoadminv1/catalogos/Catalogos_model');\n\n $data['title'] = \"Agregar unidad\";\n $data['heading'] = $this->session->userdata('usuario_nombre');\n $data['mensaje'] = \"\";\n $data['job'] = $this->session->userdata('usuario_job');\n $data['active'] = 'catalogos'; // solo active \n $data['subactive'] = 'servicios'; // class=\"active\"\n $data['optionactive'] = \"busqueda_unidades\"; // class=\"active\"\n $data['body_class'] = 'skin-blue';\n $data['main_content'] = 'tpoadminv1/catalogos/agregar_unidad';\n\n \n $data['unidad_nombre'] = '';\n $data['id_subcategoria'] = '';\n $data['unidad_estatus'] = 'null';\n $data['subcategorias'] = $this->Catalogos_model->dame_todas_subcategorias();\n \n\n $data['scripts'] = \"\";\n\n $this->load->view('tpoadminv1/includes/template', $data);\n }", "title": "" }, { "docid": "2565bc892a4e7992df98f50b019ba9f5", "score": "0.54643923", "text": "private function obteNouId($seleccio, $tipus){\n \t$em = $this->getDoctrine()->getManager();\n \t\n \t$nouId=null;\n \t$rep = null;\n \t\n \t//obtenir repositoris\n \tif($tipus==\"fons\") $rep = $em->getRepository('ArxiuBundle:Fons');\n\t\telse if($tipus==\"arxius\") $rep = $em->getRepository('ArxiuBundle:FonsArxius');\n\t\telse if($tipus==\"mitra\") $rep = $em->getRepository('ArxiuBundle:FonsMitra');\n\t\telse if($tipus==\"monges\") $rep = $em->getRepository('ArxiuBundle:FonsMonges');\n\t\telse if($tipus==\"capellans\") $rep = $em->getRepository('ArxiuBundle:FonsCapellans');\n\t\telse if($tipus==\"seminaristes\")$rep = $em->getRepository('ArxiuBundle:FonsSeminaristes');\n\t\telse if($tipus==\"testaments\") $rep = $em->getRepository('ArxiuBundle:FonsTestaments');\n \t\n\t\t//obte ids\n \t//lletres\n \tif($seleccio==\"lletres\") $nouId=$rep->findNewId(\"U-000-\"); \n \tif($seleccio==\"llicencies\") $nouId=$rep->findNewId(\"Q-000-\");\n \tif($seleccio==\"registres\") $nouId=$rep->findNewId(\"I-000-\");\n \t\n \t//manuals\n \tif($seleccio==\"manuals\") $nouId=$rep->findNewId(\"D-152-\");\n \tif($seleccio==\"beneficis\") $nouId=$rep->findNewId(\"D-001-\");\n \tif($seleccio==\"seu\") $nouId=$rep->findNewId(\"D-002-\"); \n \tif($seleccio==\"patronat\") $nouId=$rep->findNewId(\"A-038-\");\n \t \t\n \t//arxius\n \tif($seleccio==\"curia\") $nouId=$rep->findNewId(\"P-001-\");\n \tif($seleccio==\"almoina\") $nouId=$rep->findNewId(\"P-002-\");\n \tif($seleccio==\"stfeliu\") $nouId=$rep->findNewId(\"P-003-\");\n \tif($seleccio==\"besalu\") $nouId=$rep->findNewId(\"P-004-\");\n \tif($seleccio==\"llado\") $nouId=$rep->findNewId(\"P-005-\");\n \tif($seleccio==\"cadins\") $nouId=$rep->findNewId(\"P-006-\");\n \t\n \t//notaria\n \tif($seleccio==\"notalarum\") $nouId=$rep->findNewId(\"G-000-\"); \n \tif($seleccio==\"deposita\") $nouId=$rep->findNewId(\"U-324-\");\n \t \n \t//ordes\n \tif($seleccio==\"capellans\") $nouId=$rep->findNewId(\"R-001-\"); \n \tif($seleccio==\"monges\") $nouId=$rep->findNewId(\"R-002-\"); \n \tif($seleccio==\"seminaristes\") $nouId=$rep->findNewId(\"R-003-\"); \n\n \t//testaments\n \tif($seleccio==\"testaments\") $nouId=$rep->findNewId(\"T-001-\"); \n \tif($seleccio==\"definicions\")$nouId=$rep->findNewId(\"T-002-\");\n \tif($seleccio==\"resolucions\") $nouId=$rep->findNewId(\"T-003-\");\n \tif($seleccio==\"instuicions\") $nouId=$rep->findNewId(\"T-004-\");\n \t\n \t//processos\n \tif($seleccio==\"medievals\") $nouId=$rep->findNewId(\"C-000-\");\n \tif($seleccio==\"moderns\") $nouId=$rep->findNewId(\"C-001-\");\n \t\n \t//mitra\n \tif($seleccio==\"mitra\") $nouId=$rep->findNewId(\"P-004-\");\n \tif($seleccio==\"delmes\") $nouId=$rep->findNewId(\"R-000-\");\n \t\n \treturn $nouId;\n }", "title": "" }, { "docid": "51077bd279b100699f401a51d9cf75ea", "score": "0.546266", "text": "public function ultimiViaggi(){\n $view=USingleton::getInstance('VRicerca');\n $FViaggio=new FViaggio();\n $viaggi=$FViaggio->ultimiViaggi();\n $view->mostraListaUltimiViaggi($viaggi);\n return $view->processaTemplate();\n }", "title": "" }, { "docid": "b3f0ce7b5d9a3e6cbc5addf76b9af15a", "score": "0.5462067", "text": "public static function getCboUms(){\n return ArrayHelper::map(\n \\common\\models\\masters\\Ums::find()->all(),\n 'codum','desum');\n }", "title": "" }, { "docid": "7a7fede9f330de6d77a177ea97455f74", "score": "0.54598033", "text": "function Usuarios() {\n\n /* Creamos la instancia del objeto. Ya estamos conectados */\n $bd = Db::getInstance();\n\n /* Creamos una query sencilla */\n $sql = \"SELECT idusers as id, nombre as nom, tipo as tipo FROM users\";\n\n /* Ejecutamos la query */\n $bd->Consulta($sql);\n\n // Creamos el array donde se guardarán las tareas\n $usuarios = Array();\n\n /* Realizamos un bucle para ir obteniendo los resultados */\n while ($reg = $bd->LeeRegistro()) {\n $usuarios[$reg['id']] = Array(\n 'idusers' => $reg['id'],\n 'nombre' => $reg['nom'],\n 'tipo' => $reg['tipo']);\n }\n return $usuarios;\n}", "title": "" }, { "docid": "59297c2bd9df8e18698d9f8b286d7437", "score": "0.54534525", "text": "function get_nomescuela($usuario_sesion = null) {\n $where = \"centrocfg.tipo_ct =\".IDTIPOESCUELA.\" \";\n\n if ($usuario_sesion != null) {\n if ($usuario_sesion->tipo->idtipousuario != IDADMINCENTRAL) {\n $niveles = $this->utilswrapper->get_nivelespermisos($usuario_sesion, 'MC_022');\n\n\n if (count($niveles) == 0) {\n return array();\n }\n\n $where = \"and centrocfg.nivel in (\" . implode(\",\", $niveles) . \")\";\n }\n switch ($usuario_sesion->tipo->idtipousuario) {\n\n case IDREGIONALCENTRAL:\n $where .= ($where != \"\" ? \" AND \" : \"\") . \"municipio.region=\" . $usuario_sesion->region;\n\n break;\n }\n }\n $this->db->select(\"cct.nombre,cct.cct,(CASE WHEN cct.turno = '100' THEN 'Matutino' WHEN cct.turno = '130' THEN 'Matutino-Nocturno' WHEN cct.turno = '200'\n THEN 'Vespertino' WHEN cct.turno = '123' THEN 'Matutino-Vespertino-Nocturno' WHEN cct.turno = '300' THEN 'Nocturno'\n WHEN cct.turno='230' THEN 'Vespertino-Nocturno' WHEN cct.turno ='400' THEN 'Discontinuo'\n WHEN cct.turno='124' THEN 'Matutino-Vespertino-Discontinuo' WHEN cct.turno='500' THEN 'Tiempo completo' WHEN cct.turno='700'\n THEN 'Jornada ampliada' WHEN cct.turno='600' THEN 'Complementario' WHEN cct.turno='800' THEN 'Continuo'\n WHEN cct.turno='120' THEN ' Matutino-Vespertino' ELSE cct.turno END) as turno,centrocfg.nivel,cct.idct,municipio.nombre AS muni,centrocfg.idcentrocfg\");\n $this->db->from('cct');\n if ($where != \"\") {\n $this->db->where($where);\n }\n\n $this->db->join('municipio', 'cct.idmunicipio = municipio.idmunicipio');\n $this->db->join('centrocfg', 'cct.idct = centrocfg.idct', 'inner');\n\n $this->db->order_by('cct.idct', 'ASC');\n $result = $this->db->get()->result_array();\n\n return $result;\n }", "title": "" }, { "docid": "062628308654aa3ec6c205afd00294be", "score": "0.54528123", "text": "function get_unidad_filtro()\n {\n $permiso = $this->permiso_capturista();\n $this->load->model('tpoadminv1/catalogos/Catalogos_model');\n \n $id_subcategoria = $this->input->post('id_servicio_subcategoria');\n $registros = $this->Catalogos_model->get_unidades_filtro($id_subcategoria);\n\n header('Content-type: application/json');\n \n echo json_encode( $registros );\n }", "title": "" }, { "docid": "0de21a61d88d903155953b8778a95ddc", "score": "0.5450506", "text": "public function fazerAniversario()\n {\n $this->idade++;\n }", "title": "" }, { "docid": "96af67ec049d5ec6c883cb455e4bc2c9", "score": "0.5439712", "text": "public function run() {\n $list = [];\n $uFN = new VnFullname();\n $uPI = new VnPersonalInfo();\n \n $nXuatXu = 6;\n $xuatXu = [];\n $dsDiaChi= [\n [\n VnBase::RandomNumber(1, 200).\", Khóm Tân Mỹ, P. Tân Quy Đông, TP. Sa Đéc, Đồng Tháp\",\n VnBase::RandomNumber(1, 200).\", Khóm Sa Nhiên, P. Tân Quy Đông, TP. Sa Đéc, Đồng Tháp\",\n VnBase::RandomNumber(1, 200).\" Lê Lợi, Khóm Tân Mỹ, P. Tân Quy Đông, TP. Sa Đéc, Đồng Tháp\"\n ],\n [\n VnBase::RandomNumber(1, 200).\" huyện lộ 90B, Ấp Mỹ Hòa, X. Mỹ Phong, TP. Mỹ Tho, Tiền Giang\",\n VnBase::RandomNumber(1, 200).\", Ấp Mỹ Hưng, X. Mỹ Phong, TP. Mỹ Tho, Tiền Giang\",\n VnBase::RandomNumber(1, 200).\", Ấp Hội Gia, X. Mỹ Phong, TP. Mỹ Tho, Tiền Giang\"\n ],\n [\n VnBase::RandomNumber(1, 200).\", X. Vị Thanh, H. Vị Thủy, Hậu Giang\",\n VnBase::RandomNumber(1, 200).\", Ấp 6, X. Vị Đông, H. Vị Thủy, Hậu Giang\",\n VnBase::RandomNumber(1, 200).\", Ấp 8, X. Vĩnh Trung, H. Vị Thủy, Hậu Giang\",\n ],\n [\n VnBase::RandomNumber(1, 200).\" Ấp Lân Tây, X. Phú Sơn, H. Chợ Lách, Bến Tre\",\n VnBase::RandomNumber(1, 200).\" Ấp An Hòa, X. Long Thới, H. Chợ Lách, Bến Tre\",\n VnBase::RandomNumber(1, 200).\" Ấp Tây Lộc, X. Vĩnh Thành, H. Chợ Lách, Bến Tre\"\n ],\n [\n VnBase::RandomNumber(1, 80) .\" Ấp Phước Định, X. Bình Hòa Phước, H. Long Hồ, Vĩnh Long\",\n VnBase::RandomNumber(81, 150).\" Ấp Phước Định, X. Bình Hòa Phước, H. Long Hồ, Vĩnh Long\",\n VnBase::RandomNumber(151,200).\" Ấp Phước Định, X. Bình Hòa Phước, H. Long Hồ, Vĩnh Long\",\n ],\n [\n VnBase::RandomNumber(1, 200).\" Thánh Mẫu, P. 7, TP. Đà Lạt, Lâm Đồng\",\n VnBase::RandomNumber(1, 200).\" Mai Anh Đào, P. 8, TP. Đà Lạt, Lâm Đồng\",\n VnBase::RandomNumber(1, 200).\" Trương Văn Hoàn, P. 9, Tp. Đà Lạt, Lâm Đồng\",\n VnBase::RandomNumber(1, 200).\" Phù Đổng Thiên Vương, P. 8, TP. Đà Lạt, Lâm Đồng\",\n VnBase::RandomNumber(1, 200).\" Nguyễn Đình Chiểu, P. 9, TP. Đà Lạt, Lâm Đồng\",\n ]\n ];\n\n for ($i=1; $i <= $nXuatXu - 1; $i++) {\n $xs = VnBase::RandomNumber(0, 1000);\n if ($xs < 700) {\n $xuatXu[$i] = 1;\n } else if ($xs < 850) {\n $xuatXu[$i] = 2;\n } else {\n $xuatXu[$i] = 3;\n }\n }\n $xuatXu[$nXuatXu] = VnBase::RandomNumber(2, 5); //Đà Lạt\n\n $today = new DateTime('2010-01-01 08:00:00');\n\n for ($i=1, $count=2; $i <= $nXuatXu; $i++) {\n for ($j=0; $j < $xuatXu[$i]; $j++, $count++) { \n $daiDien = $uFN->FullName(VnBase::VnMixed);\n $email = $uPI->Email($daiDien, \"?\", \"\", \"?\", \"Ymd\", VnBase::VnLowerCase, VnBase::VnTrimNormal);\n\n $tenNCC = $this->getCompanyName($daiDien, $uFN);\n\n $diaChi = $dsDiaChi[$i-1][$j];\n $dienThoai = $uPI->Mobile(\"\", VnBase::VnFalse);\n \n array_push($list, [\n 'ncc_ma' => $count,\n 'ncc_ten' => $tenNCC,\n 'ncc_daiDien' => $daiDien,\n 'ncc_diaChi' => $diaChi,\n 'ncc_dienThoai' => $dienThoai,\n 'ncc_email' => $email,\n 'ncc_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'ncc_capNhat' => $today->format('Y-m-d H:i:s'),\n 'xx_ma' => $i+1\n ]);\n }\n }\n DB::table('cusc_nhacungcap')->insert($list);\n }", "title": "" }, { "docid": "93b7c50d7ca2de460672f8c2626d0218", "score": "0.5438838", "text": "public function tipoUtilizador(){\n }", "title": "" }, { "docid": "5b1a9a8143ba2bf36ae556f55497f1ed", "score": "0.5437092", "text": "public function getUniversityId()\r\n {\r\n return $this->university_id;\r\n }", "title": "" }, { "docid": "bb19de8323b24d0ad6799f03dbbaef45", "score": "0.54328567", "text": "function get_direccion_universitaria($direccionuniv_id)\n {\n return $this->db->get_where('direccion_universitaria',array('direccionuniv_id'=>$direccionuniv_id))->row_array();\n }", "title": "" }, { "docid": "d20b906829fc4f8ced78b6cc3947466d", "score": "0.54281586", "text": "public function getEstudiantestituladosuser()\n\t{\n\t\treturn $this->estudiantestituladosuser;\n\t}", "title": "" }, { "docid": "cc9f9ee96a0bfe36574bd2f490d89a34", "score": "0.5417488", "text": "function zeigealleNutzer (){\n\tglobal $datenbank;\n\tglobal $atv_locations;\n\tglobal $atv_status;\n\tglobal $atv_rechte;\n\tglobal $atv_aktiv;\n\tglobal $atv_bbuchrechte;\n\n\t$nutzersql = \"SELECT\n\t\t\t\t\tid,\n\t\t\t\t\tvname,\n\t\t\t\t\tnname,\n\t\t\t\t\tbname,\n\t\t\t\t\temail,\n\t\t\t\t\tstatus,\n\t\t\t\t\tlocation,\n\t\t\t\t\taktiv,\n\t\t\t\t\trechte,\n\t\t\t\t\trueckmeldung,\n\t\t\t\t\tbbuchstatus\n\t\t\t\tFROM\n\t\t\t\t\t\".atvdbname.\".\".Benutzerzusatz.\"benutzer\n\t\t\t\tORDER BY\n\t\t\t\t\tbname ASC,\n\t\t\t\t\tnname ASC\n\t\t\t\t\";\n\n\t$nutzerresult = $datenbank->query($nutzersql);\n\techo \"<table border=1><tr>\n\t<th>#</th>\n\t<th>ID</th>\n\t<th>Name</th>\n\t<th>ATV Status</th>\n\t<th>Location</th>\n\t<th>Aktiv</th>\n\t<th>Globale Rechte</th>\n\t<th>gültig bis</th>\n\t</tr>\\n\";\n\t$nnr=1;\n\twhile($row = mysql_fetch_assoc($nutzerresult)) {\n\t\techo \"<tr>\n\t\t<td>\".$nnr.\"</td>\n\t\t<td>\".$row['id'].\"</td>\n\t\t<td><a href=\\\"index.php?atv=81&se=006&id=\".$row['id'].\"\\\">\";\n\t\tif(trim($row['bname']!='')) echo $row['bname'];\n\t\telse echo $row['vname'].\" \".$row['nname'].\" v.N.N.\";\n\t\techo \"</a></td><td>\".$atv_status[(int)$row['status']].\"</td>\n\t\t<td>\".$atv_locations[(int)$row['location']].\"</td>\n\t\t<td>\".$atv_aktiv[(int)$row['aktiv']].\"</td>\n\t\t<td>\".$atv_rechte[(int)$row['rechte']].\"</td>\n\t\t<td>\".substr($row['rueckmeldung'],8,2).\".\".substr($row['rueckmeldung'],5,2).\".\".substr($row['rueckmeldung'],0,4).\"</td>\n\t\t</tr>\\n\";\n\t\t$nnr++;\n\t}\n\t echo \"</table>\";\n}", "title": "" }, { "docid": "a6a09a526de8fd320a34f947f400fa4f", "score": "0.5416847", "text": "function dameUsuariosFabricaSimumak(){\n $consultaSql = \"select * from usuarios where activo=1 and id_tipo=1 or id_almacen=1\";\n $this->setConsulta($consultaSql);\n $this->ejecutarConsulta();\n return $this->getResultados();\n }", "title": "" }, { "docid": "9dd698b60a2d8943c787d7dec693e0b5", "score": "0.54091287", "text": "public function ultimoPlusUsado() {\n $this->viajesPlusAbonados = -2;\n }", "title": "" }, { "docid": "9d59f9095b147071ab0d50606954fe52", "score": "0.54079634", "text": "function getUtilisateurNotListe() {\n $result = $this->db->query('SELECT * FROM utilisateur ORDER BY nom ASC');\n\n// Récupération de tous les enregistrements retourne un tableau\n $listeUtilisateur = $result->fetchAll();\n return $listeUtilisateur;\n }", "title": "" }, { "docid": "06810f8f33cd7649b3a8d9021ea3720d", "score": "0.5407748", "text": "function nomeUnico() {\n $this->atual();\n return $this->dia() . $this->mes() . $this->ano() . $this->hora() . $this->minuto() . $this->segundo();\n }", "title": "" }, { "docid": "dde27ba6f7aa9c8eee9ba504f513fa10", "score": "0.5403742", "text": "public function getContaJurosCR()\n {\n return $this->conta_jurosCR;\n }", "title": "" }, { "docid": "ef6bd88ad3608972bcde0c1f4bd9193a", "score": "0.5396266", "text": "public function getAllInvalides() {\n $users = $this->c_users->find();\n $ret = [];\n foreach ($users as $user) {\n if ($user['cp'] == '' || $user['latitude'] == '' || $user['longitude'] == '' || $user['bureau'] == '') {\n $ret[] = $user;\n }\n }\n return $ret;\n }", "title": "" }, { "docid": "9b06ca4aa073c9a5987acec76bc4d274", "score": "0.538716", "text": "function getCuentaSuperior($inicializar = false){\n\t\t$cuenta\t= $this->mCuenta;\n\t\t$cuenta = $this->getCuentaCompleta($cuenta);\n\t\t//$cuenta\t= number_format($cuenta,0, '','');\n\t\t$lm\t\t= $this->mEsquema->LARGO_TOTAL;\n\t\t$xQl\t= new cSQLListas();\n\t\tif ( strlen($cuenta) == $this->mEsquema->LARGO_TOTAL ){\n\t\t\tif($this->mInmediatoSuperior == false){\n\t\t\t\tif($this->mEsquema->NIVEL_ACTUAL <= CONTABLE_CUENTA_NIVEL_TITULO AND ($cuenta != CUENTA_DE_CUADRE) ){\n\t\t\t\t\t$cuenta\t\t\t\t= false;\n\t\t\t\t\t$this->mMessages\t.= \"ERROR\\tCuenta Superio no carga en Titulo y Cuadre : \" . $cuenta . \"\\n\";\n\t\t\t\t} else {\n\t\t\t\t\t$nnivel\t= setNoMenorQueCero(($this->mEsquema->NIVEL_ACTUAL - 1));\n\t\t\t\t\tif(isset($this->mEsquema->SUPERIORES[ $nnivel ])){\n\t\t\t\t\t\t$cuenta\t= $this->mEsquema->SUPERIORES[ $nnivel ];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->mMessages\t.= \"ERROR\\tCuenta Superior de \" . $cuenta . \" no existe al nivel $nnivel\\n\";\n\t\t\t\t\t\t$cuenta\t= false;\n\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$cuenta\t\t= $this->mInmediatoSuperior;\n\t\t\t}\n\t\t\t//return cuenta_completa($cuenta);\n\t\t\t$cuenta\t\t\t= setNoMenorQueCero($cuenta);\n\t\t\t$cuenta\t\t\t= number_format($cuenta,0, '','');\n\t\t\tif ( $inicializar == true AND $cuenta > 0){\n\t\t\t\t$this->mMessages\t.= \"SUPERIOR\\tLa Cuenta Superior de \" . $this->mCuenta . \" es $cuenta\\r\\n\";\n\t\t\t\t\t$this->mArraySuperior \t= obten_filas( $xQl->getInicialDeCuentaContable($cuenta) );\n\t\t\t\t\tif(isset($this->mArraySuperior[\"tipo\"])){ $this->mSuperiorIniciada\t= true;\t}\t\t\t\t\n\t\t\t}\n\t\t\t//Return cuenta como superior\n\t\t\treturn $cuenta;\n\n\t\t} else {\n\t\t\t$this->mMessages\t.= \"CUENTA_INCOMPLETA_O_EXCEDIDA_DE_$lm\\r\\n\";\n\t\t\t$this->mRaiseError\t = true;\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "d9485462f9a50c92f2d5f5be581c12a5", "score": "0.5385892", "text": "public function getIdsujet (){\n\t\treturn $this->idsujet;\n\t}", "title": "" }, { "docid": "2f79a915b2c479829a811ad61b62c171", "score": "0.5383742", "text": "public function getAllUsers(){\r\n $users = $this->selectFromTable(TABLE_UZIVATEL, \"\", \"id_uzivatel\");\r\n return $users;\r\n }", "title": "" }, { "docid": "9efc7cde0b01cb0b6e5f2be04e75d0b8", "score": "0.5382813", "text": "function getLocalitiesByPSU($psu_id)\n{\n $result = db_query('Select distinct(vill_name) from cvd_basetable where vill_name is not null and psu =\"'.$psu_id.'\" order by asha_assigned asc;');\n \n\tif($result && db_num_rows($result)){\n\t\t$data='<option value=\"\">Select</option>';\n\t\twhile ($locality = db_fetch_row($result)) \n\t\t{\t\n\t\t\t$data.=\"<option>\".$locality[0].\"</option>\";\n\t\t}\t\n\t\treturn rtrim($data);\n\t}\t\n}", "title": "" }, { "docid": "bdd71c8869e24448c10ef3c36aeaf42a", "score": "0.53731674", "text": "private static function getLocalUsersData(){\n $result = DB::query(\"SELECT * FROM utente WHERE is_ldap = 0\");\n return self::parseUsersData($result);\n }", "title": "" }, { "docid": "4660e821301eb91507f8a765e75d09fe", "score": "0.5370688", "text": "function getId_anuncio() {\n return $this->id_anuncio;\n }", "title": "" }, { "docid": "b3d94d2a1e9c633b1791d96a9978ffc0", "score": "0.53705883", "text": "public function usuariosNuevos()\n {\n $users = [];\n $rolAgregar = Role::where('slug', 'agregando')->first();\n $usuarios = User::with('roles')->get();\n foreach ($usuarios as $user) {\n if ($user->isRole('agregando')) {\n $res = new \\stdClass();\n $res->nombre = $user->name;\n $res->credencial = $user->id;\n $res->huellas = $user->huellas;\n $user->revokeRole($rolAgregar->id);\n $users[] = $res;\n }\n }\n\n return $users;\n }", "title": "" }, { "docid": "2de9a5a965a3823a45aed8d076254752", "score": "0.5370226", "text": "public function DatosContribuyente()\r\n {\r\n\r\n $buscar = ContribuyenteBase::find()->where(\"id_contribuyente=:idContribuyente\", [\":idContribuyente\" => $_SESSION['idContribuyente']])\r\n ->asArray()->all();\r\n\r\n\r\n return $buscar[0]; \r\n\r\n }", "title": "" }, { "docid": "556f818b36fe70177d3c4c558370118b", "score": "0.53657293", "text": "function listarCidadesEstado($uf=null) {\n return $this->db\n ->where(\"UF\", $uf)\n ->order_by('Nome')\n ->get('cidade')\n ->result_object();\n \n }", "title": "" }, { "docid": "d727b7bf770b988acd298ec9460d6de8", "score": "0.53627145", "text": "function rangoNivelEducacion($codigomodalidadacademicasic,$codigocarrera=\"\",$codigofacultad = \"\",$codigoareadisciplinar=\"\"){\n\t\t$variableestadistico=\"30\";\n\t\t$arraycarrera=$this->carreraOpciones($codigomodalidadacademicasic,$codigocarrera,$codigofacultad,$codigoareadisciplinar);\n\n\t\t$query=\"select nombreniveleducacion nombretipo\n\t\t\t\t\t\tFROM niveleducacion \";\n\t\tif($imprimir)\n\t\t\techo $query;\n\t\t$opertipo=$this->db->query($query);\n\t\twhile ($rowtipo=$opertipo->fetchRow())\n\t\t{\n\t\t\t$arraytipo[]=$rowtipo[\"nombretipo\"];\n\t\t}\n\t\t\n\t\tif(is_array($arraycarrera))\n\t\t\tforeach($arraycarrera as $llave=>$codigocarrerai)\n\t\t\t{\n\t\t\t\tforeach($arraytipo as $llavetipo=>$nombretipo)\n\t\t\t\t{\n\t\t\t\t\t$arrayinterno[$nombretipo][$codigocarrerai]=0;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\tif(!$this->consultaCarrerasVariable($arraycarrera,$variableestadistico)){\n\t\t\tforeach($arraycarrera as $llave=>$codigocarrerai){\n\t\t\t\t$arrayestudiante=$this->estudianteFacultad($codigocarrerai);\n\t\n\t\t\t\tif(is_array($arrayestudiante))\n\t\t\t\tforeach($arrayestudiante as $llavedocente=>$idestudiantegeneral){\n\t\t\n\t\t\t\t\t$query=\"SELECT if(n.nombreniveleducacion is null,'No diligencia',n.nombreniveleducacion) nombrenivelacademico,count(distinct eg.idestudiantegeneral) conteo FROM estudiantegeneral eg\n\t\t\t\t\tleft join estudianteestudio ee on eg.idestudiantegeneral=ee.idestudiantegeneral\t\n\t\t\t\t\tand ee.codigoestado like '1%'\n\t\t\t\n\t\t\t\t\tand ee.idniveleducacion = (select n3.idniveleducacion from niveleducacion n3 where ee.idniveleducacion=n3.idniveleducacion\n\t\t\t\t\tand n3.pesoniveleducacion=(select max(n2.pesoniveleducacion) \n\t\t\t\t\t\t\tfrom niveleducacion n2,estudianteestudio ee2 where n2.idniveleducacion=ee2.idniveleducacion and ee2.idestudiantegeneral=eg.idestudiantegeneral))\n\t\t\t\n\t\t\t\t\tleft join niveleducacion n on n.idniveleducacion=ee.idniveleducacion\n\t\t\t\t\tWHERE eg.idestudiantegeneral='\".$idestudiantegeneral.\"'\n\t\t\t\t\t\tgroup by ee.idniveleducacion\n\t\t\t\t\t\t\";\n\t\t\t\n\t\t\t\t\t$result=$this->db->query($query);\n\t\t\t\t\twhile($row= $result->fetchRow()){\n\t\t\t\t\t\t$arrayinterno[$row[\"nombrenivelacademico\"]][$codigocarrerai]+=$row[\"conteo\"];\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->insertarVariableEstadistica($arrayinterno,$variableestadistico);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arrayinterno=$this->consultaArrayVariable($arraycarrera,$variableestadistico);\n\t\t}\n\n\t\treturn $arrayinterno;\n\t}", "title": "" }, { "docid": "53aba20d737ca5b5d2de0d4838f38849", "score": "0.536097", "text": "public function getVinculacion()\n\t{\n\t\treturn $this->vinculacion;\n\t}", "title": "" }, { "docid": "c27cb696372234177d551412ff1dc37a", "score": "0.535838", "text": "public function getCounselorList()\n {\n $conn = $this->getEntityManager() //calls the Doctrine entity manager to start a query\n ->getConnection();\n\n $sql = '\n SELECT DISTINCT c.counselorId, c.firstName, c.lastName, c.initial, c.department, c.position, c.isAdmin, c.isActive as active\n FROM counselor c \n ORDER BY c.firstName ASC';\n $stmt = $conn->prepare($sql); //finishing the query\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "ea98ffc9e7edb9ef0b1b2df37a0b9a2f", "score": "0.5358022", "text": "function getSucursales($company) {//////////////////////////////////////\n $datosinicio = new Application_Model_Userinfo();\n $sitio = $datosinicio->Sitios($company);\n $optSitio = '<option value=\"\">Selecciona...</option>';\n if ($sitio[0] != 'NoResults') {\n foreach ($sitio as $Data) {\n $optSitio .= '<option value=\"' . $Data['SITEID'] . '\">' . $Data['NAME'] . '</option>';\n }\n } else {\n $optSitio = '<option value=\"\">Sin Sucursales</option>';\n }\n $_SESSION['sucursales'] = $optSitio;\n /////////////////////////////////////////////////////////////////////////////////////////\n }", "title": "" }, { "docid": "01c157dfdeb0345030a0dbfac472cc62", "score": "0.53576976", "text": "function calcular_horarios_disponibles_por_facultad (){\n $aulas_ua=$this->dep('datos')->tabla('aula')->get_aulas_por_sede($this->s__id_sede);\n \n //Si el establecimiento no tiene aulas registradas en sistema no hacemos nada. Pero los mensajes\n //deben quedar si elegimos establecimiento, sede y fecha.\n if(count($aulas_ua)==0){\n //Si esta condicion es true, en el formulario form_ingreso se eligio* establecimiento, sede y\n //fecha.\n if(!$this->s__solo_fecha){ \n $mensaje=\" La Unidad Académica seleccionada no posee aulas registradas en el Sistema \";\n toba::notificacion()->agregar(utf8_decode($mensaje),'info');\n }\n }\n else{\n $anio_lectivo=date('Y', strtotime($this->s__fecha_consulta));\n $periodo=$this->dep('datos')->tabla('periodo')->get_periodo_calendario($this->s__fecha_consulta, $anio_lectivo, $this->s__id_sede);\n \n //Si un establecimiento no registro* periodos en el sistema no realizamos ningun \n //procesamiento.\n if(count($periodo)>0){\n $this->s__dia_consulta=$this->obtener_dia(date('N', strtotime($this->s__fecha_consulta)));\n\n //Obtenemos todas las asignaciones para la fecha seleccionada.\n $asignaciones=$this->procesar_periodo($periodo, 'hd');\n\n //Obtenemos las aulas que poseen asignaciones.\n $aulas=$this->obtener_aulas($asignaciones);\n toba::memoria()->set_dato_instancia(0, $this->s__id_sede);\n $horarios_disponibles=new HorariosDisponibles();\n //Si un establecimiento tiene registrado en el sistema periodos acade*micos que no tienen\n //asociadas asignaciones, la disponibilidad debe ser total para todas las aulas \n //involucradas. Esto se realiza en la clase HorariosDisponibles cuando el cjto. de \n //asignaciones es vacio.\n $this->s__horarios_disponibles=$horarios_disponibles->calcular_horarios_disponibles($aulas, $aulas_ua, $asignaciones);\n\n if(count($this->s__horarios_disponibles)==0){\n //Si esta condicion es true, en el formulario form_ingreso se eligio* establecimiento, sede\n //y fecha.\n if(!$this->s__solo_fecha){\n $mensaje=\"La Unidad Académica seleccionada no posee horarios disponibles\";\n toba::notificacion()->agregar(utf8_decode($mensaje), 'info');\n }\n }\n \n //Agregamos a cada horario disponible el establecimiento, la sede y el id_sede, fundamentales \n //para implementar cortes de control en 'cuadro' de la pantalla pant_reserva.\n $i=0;\n $n=count($this->s__horarios_disponibles);\n while($i < $n){\n $this->s__horarios_disponibles[$i]['establecimiento']=$this->s__establecimiento;\n $this->s__horarios_disponibles[$i]['sede']=$this->s__sede;\n $this->s__horarios_disponibles[$i]['id_sede']=$this->s__id_sede;\n $i++;\n }\n }\n }\n \n }", "title": "" }, { "docid": "80363fbfc1d23f7ed20afe68b4aba47c", "score": "0.53532904", "text": "public function listarUm()\n {\n $pdo = new \\PDO (DSN,USER,PASSWD);\n\n $sql = 'SELECT * FROM Discipulo WHERE id = ?';\n\n $stm = $pdo->prepare($sql);\n\n $stm->bindParam(1, $this->id);\n\n $stm->execute();\n\n return $stm->fetchObject('\\Discipulo\\Modelo\\Discipulo');\n\n }", "title": "" }, { "docid": "56478e65fdc7cf0ce9285a0259ed143d", "score": "0.5352402", "text": "public static function Rechercher_Utilisateurs(){\n\t\t \t//connexion à la base de données\n\t\t \t$oMysqliLib = new MySqliLib();\n\t\t \t//requête de recherche du groupe\n\t\t \t$sRequete = \"SELECT * FROM users\";\t\t \t\t\n\t\t \t\n\t\t \t//exécuter la requête\n\t\t \t$oResult = $oMysqliLib->executer($sRequete); \n\t\t \t//récupérer le tableau des enregistrements\n\t\t \t$aUtilisateurs = $oMysqliLib->recupererTableau($oResult);\n\t\t\t\n\t\t \t//retourner array contenant les utilisateurs\n\t\t \treturn $aUtilisateurs;\t\n\t\t }", "title": "" }, { "docid": "a27d4c203eef7fbf43c5498cb2a4a90a", "score": "0.5349212", "text": "function NodoxNivel($FechaI, $FechaF)\r\n {\r\n $this->data = \"\";\r\n $sql = \"SELECT DISTINCT CODCIUDAD AS CIUDAD, CODNODO AS NODO\r\n \t\t\t FROM AGENDA A\r\n \t\t\t\t WHERE ESTADO IN ('A', 'V')AND ZONI_MANUAL = 'N'\r\n\t\t\t\t AND A.DIAAGENDA BETWEEN TO_DATE('\" . $FechaI . \"','YYYY/MM/DD') AND \r\n\t\t\t\t TO_DATE('\" . $FechaF . \"','YYYY/MM/DD')\r\n\t\t\t\t AND CNIVEL_NODO (CODCIUDAD, IDALIADO, CODNODO, id_tt) NOT IN (1,2)\r\n\t\t\t\tORDER BY CODCIUDAD, CODNODO\";\r\n $this->EjecutaConsulta($sql);\r\n return $this->data;\r\n }", "title": "" }, { "docid": "64549e428039086b2263b10e19922d6c", "score": "0.5348594", "text": "function dameTiposUsuario(){\n\t\t$consultaSql = \"select * from tipos_usuarios order by administrador DESC\";\n\t\t$this->setConsulta($consultaSql);\n\t\t$this->ejecutarConsulta();\n\t\treturn $this->getResultados();\t\n\t}", "title": "" }, { "docid": "25ff9edc110d5e49d99ed78b8a80ab26", "score": "0.5342825", "text": "public function viviendas(){\n $answer = $this->queryList(\"SELECT tipo_vivienda FROM paciente\",[]);\n return $answer;\n }", "title": "" }, { "docid": "022615c67bd5ff9f7c37912e256c8066", "score": "0.53409", "text": "private static function getUsersData()\n {\n $result = DB::query(\"SELECT * FROM utente\");\n return self::parseUsersData($result);\n }", "title": "" }, { "docid": "c449df9b0352a4f0c7dd088706af4ab9", "score": "0.53390163", "text": "public function etreVu()\n {\n // une classe Humain dans le namespace dans lequel on se trouve\n // soit Continent\\Afrique\\Humain\n $humain = new Humain();\n $humain->voirElephant($this);\n }", "title": "" }, { "docid": "f77e864c9d8858a1c4413687aa8a290a", "score": "0.53388655", "text": "public function setUnidade ($unidade) {\n\t\t$this->unidade = $unidade;\n\t}", "title": "" }, { "docid": "13ae3aec4893c1df4341d841da0f4160", "score": "0.5337586", "text": "function GetUsers(){\n\t$clientes = new Cliente();\n\t$usuarios = $clientes->getUsers();\n\n\t$users = array('');\n\n\tif(!empty($usuarios)){\n\n\t\tforeach ($usuarios as $f => $usuario) {\n\t\t\t$users[] = $usuario['usuario'];\n\t\t}\n\t}\n\n\treturn $users;\n}", "title": "" }, { "docid": "69b05d2428c23b1bdd8d0cafd08a0dd2", "score": "0.53361833", "text": "public function get_usuarios()\n {\n try{\n $response=UsuarioModel::obtener_ultimos_ususarios_registrados();\n\n\n }catch (Exception $e){\n return $e->getMessage();\n exit;\n }\n return $response;\n\n\n }", "title": "" }, { "docid": "ac38083aa4b6e6a1a0575f28298b914a", "score": "0.53292394", "text": "public function index()\n {\n\n $id_pnf = Auth::User()->id_pnf;\n//dd($id_pnf);\n $est = Unidad_Curricular::select('unidad_curriculars.nombre as nom_unidad', 'unidad_curriculars.id as id_unidad', 'unidad_curriculars.codigo as codigo_unidad', 'unidad_curriculars.uc as uc_unidad')\n ->where('unidad_curriculars.id_pnf',$id_pnf)\n ->get();\n \n\n return view('unidad.index', ['est'=> $est]); \n }", "title": "" }, { "docid": "e35ae18d8e16a8ed858fd8d07836b379", "score": "0.53291214", "text": "public static function vistaPartidasFinalizarUsuariosController(){\r\n require_once \"./models/crud.php\";\r\n $respuesta = Datos::vistaPartidasFinalizarUsariosTablaModel(\"usuario_partida_os\");\r\n #El constructor foreach proporciona un modo sencillo de iterar sobre arrays. foreach funciona sólo sobre arrays y objetos, y emitirá un error al intentar usarlo con una variable de un tipo diferente de datos o una variable no inicializada.\r\n return $respuesta;\r\n }", "title": "" } ]
0c63b48cfd30ae3a53769d01a298cb54
configure external properties ( pointers) from other objects
[ { "docid": "51ffdd3f301d779b3597c3d3093ec355", "score": "0.53738534", "text": "public function Module_configExternalPointers(&$mod, $objREQ)\n {\n foreach($objREQ AS $key=>$propName)\n {\n if (is_string($key)) {\n # atunci se cere obiectul cu numele key si cu prop propName\n if (is_array($propName)) {\n # daca $propName este un array atunci inseamna ca se doresc mai multe\n # proprietati ale obiectului cu numele $key\n foreach($propName AS $subPropName)\n $mod->$subPropName = &$this->$key->$subPropName;\n\n } else {\n $mod->$propName = &$this->$key->$propName;\n }\n } else {\n $mod->$propName = &$this->$propName;\n }\n #echo $key.' '.var_dump($propName).'<br>';\n }\n\n }", "title": "" } ]
[ { "docid": "38636781a315385ead0cd1a699f7e2ea", "score": "0.6424241", "text": "abstract public function initialize_properties();", "title": "" }, { "docid": "5e2b7056b98861b7600f2ecc5c1c2b6a", "score": "0.6351953", "text": "abstract public function loadotherProperties();", "title": "" }, { "docid": "dd1f23aa45b62071c6bbca718d9a353a", "score": "0.59320784", "text": "private function populateWObject() {\n foreach ($this->lcms_config->toArray() as $key => $value) {\n $field_type = $this->lcms_config->get($key, false);\n if ($field_type != null) {\n $prop = $this->object->__get($key);\n if (!is_null($prop)) {\n $this->$key = $prop;\n settype($this->$key, $field_type[0]);\n } else {\n $this->$key = null;\n }\n }\n }\n }", "title": "" }, { "docid": "4d5983a57160682e35924d1af4812b90", "score": "0.57787156", "text": "function SetProperties()\n\t{\n\t}", "title": "" }, { "docid": "4c99a8926d44f709fc47ba28b24b0f92", "score": "0.57440096", "text": "private function requireProperties () {\n // Properties of items\n $this->tieInDatabase (new\n A (Array (static::$objProperty)));\n }", "title": "" }, { "docid": "abbe17c5abe54c716d51daf74580f512", "score": "0.5741278", "text": "public function getObjectProphecy() {}", "title": "" }, { "docid": "4bb38da779d5ddbbde480c6c25b718b2", "score": "0.5674481", "text": "public function setProperties()\n {\n db_set_active(RADIO);\n $result = db_query(\"SELECT properties=syscolumns.name FROM syscolumns LEFT JOIN sysobjects ON sysobjects.id = syscolumns.id WHERE sysobjects.name = :table;\", array(\":table\" => $this->table))->fetchCol();\n db_set_active(PADRAO);\n\n $this->properties = $result;\n $this->primaryKey = $result[0];\n }", "title": "" }, { "docid": "be67cee0ce37dfb942b634fd75827cb0", "score": "0.5652469", "text": "protected function setProperties() {\n\t\tself::setPropertiesTo($this->Plot, 1, $this->Training, $this->Data);\n\t}", "title": "" }, { "docid": "52a95769bfe5ae3d6bcab0c852143931", "score": "0.5588406", "text": "protected function _initializeObject()\n {\n // Overwrite defaults\n foreach ($this->overwriteDefaults as $key => $value) {\n $this->$key = $value;\n }\n }", "title": "" }, { "docid": "1be13becee6a4ca6f762703edbe94bce", "score": "0.55748683", "text": "public function __wakeup()\n {\n $this->_adapter = StoreManager::getAdapter($this);\n //Instance caches\n $schema = $this->getJsonSchema();\n $this->_jsonSchema = $schema;\n $this->_storePropertiesCache = array_keys($schema['definition']);\n\n }", "title": "" }, { "docid": "4e45eebfc879405501b09e499340624b", "score": "0.55743724", "text": "public final function __wakeup() {\n\t\t$this->pcs = new BLW_CORE_PropertyChangeSupport($this);\n\t}", "title": "" }, { "docid": "631e815a69547abd3687bb48674ab235", "score": "0.5568169", "text": "public function __wakeup()\n {\n // Restore ReflectionClass and properties\n $this->reflClass = new \\ReflectionClass($this->name);\n $this->namespace = $this->reflClass->getNamespaceName();\n\n foreach ($this->fieldMappings as $field => $mapping) {\n if (isset($mapping['declared'])) {\n $reflField = new \\ReflectionProperty($mapping['declared'], $field);\n } else {\n $reflField = $this->reflClass->getProperty($field);\n }\n $reflField->setAccessible(true);\n $this->reflFields[$field] = $reflField;\n }\n\n foreach ($this->associationsMappings as $field => $mapping) {\n if (isset($mapping['declared'])) {\n $reflField = new \\ReflectionProperty($mapping['declared'], $field);\n } else {\n $reflField = $this->reflClass->getProperty($field);\n }\n\n $reflField->setAccessible(true);\n $this->reflFields[$field] = $reflField;\n }\n\n if ($this->hasAttachments) {\n if ($this->attachmentDeclaredClass) {\n $reflField = new \\ReflectionProperty($this->attachmentDeclaredClass, $this->attachmentField);\n } else {\n $reflField = $this->reflClass->getProperty($this->attachmentField);\n }\n $reflField->setAccessible(true);\n $this->reflFields[$this->attachmentField] = $reflField;\n }\n }", "title": "" }, { "docid": "bedc6f67dbaddaa4d84f89b634bd4560", "score": "0.5566613", "text": "protected function setUp()\n {\n $this->object = new TestBoundProps;\n// $this->object->myBoundPro = new TestPropsBinding($this->history);\n }", "title": "" }, { "docid": "3d5d5a9d081d69a88264d03aeeeec93a", "score": "0.5541478", "text": "function __construct( $parentObj )\n {\n $this->pObj = $parentObj;\n // #i0084, 140922, dwildt, 2+\n $this->conf_path = $this->pObj->get_confPath();\n $this->conf_view = $this->pObj->get_confView();\n }", "title": "" }, { "docid": "4f56d754e441508e4dd623c1dc994d6e", "score": "0.5529335", "text": "function __construct($parentObj)\n {\n $this->pObj = $parentObj;\n }", "title": "" }, { "docid": "c377161732880799b828bd19dfe57b42", "score": "0.5504237", "text": "private function setup_properties() {\r\n\t\tif ( $this->is_existing() ) {\r\n\t\t\tforeach ( $this->get_meta_properties( false ) as $property ) {\r\n\t\t\t\t$meta = get_post_meta( $this->id, $property, true );\r\n\t\t\t\tif ( ! empty( $meta ) ) {\r\n\t\t\t\t\t$this->$property = $meta;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Setup thumbnail.\r\n\t\t\t$this->setup_thumbnail();\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Action hook to execute after custom video properties are set.\r\n\t\t *\r\n\t\t * @param mixed $value Field value.\r\n\t\t * @param string $key Field key.\r\n\t\t *\r\n\t\t * @since 1.8.0\r\n\t\t */\r\n\t\tdo_action( 'wpmudev_vids_video_model_after_setup_properties' );\r\n\t}", "title": "" }, { "docid": "7a2fe39dbb5cd73c449cce3d3f67b11f", "score": "0.5493114", "text": "public function set() {\n\n self::$instance = $this;\n $this->base \t= OMAPI::get_instance();\n\n }", "title": "" }, { "docid": "8ee2b1e99668518f2283bdd4345503cd", "score": "0.5490255", "text": "public function setObject($obj){\n\t\t$obj_vars = get_object_vars($obj[0]);\n\t\tforeach($obj_vars as $obj_ref => $obj_var){\n\t\t\t$this->$obj_ref = $obj_var;\n\t\t}\n\t}", "title": "" }, { "docid": "6614717e98a190643e26989a8ed50448", "score": "0.548254", "text": "abstract public function set(&$object);", "title": "" }, { "docid": "3e60cc4fd9ed7caa18887b1603f17be5", "score": "0.546116", "text": "public function initializeObject()\n {\n $this->detailPic = $this->detailPic ?: new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n $this->fFiles = $this->fFiles ?: new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n\t\t\t\t$this->tags = $this->tags ?: new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n }", "title": "" }, { "docid": "84a3357ef6173225b10cbbbcfda60da9", "score": "0.5426287", "text": "protected function SetProperties() {\r\n parent::SetProperties();\r\n\r\n $ref = new ReflectionClass(get_called_class());\r\n $this->config = new EntityImageConfig();\r\n $doc = new \\phpDocumentor\\Reflection\\DocBlock($ref);\r\n foreach($this->config as $key => $value) {\r\n if (!$doc->hasTag($key)) continue;\r\n /** @var \\phpDocumentor\\Reflection\\DocBlock\\Tag $tag */\r\n $tags = $doc->getTagsByName($key);\r\n $tag = array_shift($tags);\r\n $this->config->$key = $tag->getContent();\r\n }\r\n\r\n $this->RemoveProperty('template','-1');\r\n $this->RemoveProperty('target','');\r\n $this->RemoveProperty('accesskey','');\r\n $this->RemoveProperty('titleattribute','');\r\n $this->RemoveProperty('cachable',true);\r\n $this->RemoveProperty('tabindex','');\r\n $this->RemoveProperty('thumbnail','');\r\n $this->RemoveProperty('image', '');\r\n $this->RemoveProperty('extra1', '');\r\n $this->RemoveProperty('extra2', '');\r\n $this->RemoveProperty('extra3', '');\r\n $this->RemoveProperty('showinmenu', '');\r\n $this->RemoveProperty('menutext', '');\r\n $this->RemoveProperty('alias', '');\r\n $this->RemoveProperty('title', '');\r\n\r\n $this->AddProperty('filename', -1);\r\n\r\n unset($this->aspectRatio);\r\n unset($this->filename);\r\n unset($this->cropX);\r\n unset($this->cropY);\r\n unset($this->cropWidth);\r\n unset($this->cropHeight);\r\n\r\n $co = ContentOperations::get_instance();\r\n if (!is_null($this->config->parent)) {\r\n $parent = $co->LoadContentFromAlias($this->config->parent);\r\n if ($parent instanceof ContentBase) $this->RemoveProperty('parent', $parent->Id());\r\n }\r\n }", "title": "" }, { "docid": "260fdc136c2874801b6e351264c02cfd", "score": "0.54246193", "text": "public static function init_properties() {\n\t\t$cop = new grid_properties();\n\t\treturn $cop;\n\t}", "title": "" }, { "docid": "8a9c580864df3ef18bb9b6cd94e21711", "score": "0.5423992", "text": "public static function init ($core)\n\t{\n\t\tforeach ($core->objectInheritance as $property)\n\t\t{\n\t\t\tif (property_exists ($core, $property))\n\t\t\t{\n\t\t\t\t$ref =& $core->$property;\n\t\t\t\tself::$$property = $ref;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "be1137906b0147d342586336673e67db", "score": "0.5422239", "text": "public function __construct()\n {\n $this->supplier = new \\stdClass;\n $this->supplier->address = new \\stdClass;\n $this->customer = new \\stdClass;\n $this->customer->address = new \\stdClass;\n }", "title": "" }, { "docid": "e7b7a3d61c3e067bdae2109f7e7e5bf9", "score": "0.5418013", "text": "public function setMemberVars( $objects )\n\t{\n\t\tif( $objects )\n\t\t{\n\t\t\t$this->m_linked_objects = $this->setLinkedObjects();\n\t\t}\n\t}", "title": "" }, { "docid": "ed3fedb2cd5a552d66a056f6dedfb729", "score": "0.5400055", "text": "private function setNonSharedDICObjects()\n {\n $this->setConnectionObj();\n $this->setSelectorObj();\n $this->setDeadpoolObj();\n $this->setSnifferObj();\n $this->setSerializerObj();\n $this->setConnectionPoolObj();\n }", "title": "" }, { "docid": "a495a9f6eb83ddc0707781bb72b2d1a7", "score": "0.53549075", "text": "public function setProperties($props){\n return parent::setProperties($props);\n }", "title": "" }, { "docid": "7ec59b18ae5e37af75f32bb1edffda56", "score": "0.53483576", "text": "public function SetUp (& $paramsInstance) {\n\t\t/*$type = new \\ReflectionClass($paramsInstance);\n\t\t$props = $type->getProperties(\n\t\t\t\\ReflectionProperty::IS_PUBLIC | \\ReflectionProperty::IS_PROTECTED\n\t\t);\n\t\tforeach ($props as $prop) {\n\t\t\t/* * @var $prop \\ReflectionProperty * /\n\t\t\tif (!$prop->isPublic()) $prop->setAccessible(TRUE);\n\t\t\t$propName = $prop->getName();\n\t\t\t$this->$propName = $prop->getValue($paramsInstance);\n\t\t}*/\n\t\t$params = get_object_vars($paramsInstance);\n\t\tforeach ($params as $key => $value) {\n\t\t\tif (isset(static::$originalyDeclaredProperties[$key])) continue;\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "cc5279ea8b3b2abf269f1ae951ee4077", "score": "0.53130287", "text": "private function setSharedConnectionParamsObj()\n {\n // Allows users to inject shared resources, similar to the multi-handle\n // shared above (but in their own code).\n $this->dic['connectionParamsShared'] = $this->dic->share(\n function ($dicParams) {\n\n $connectionParams = $dicParams['connectionParams'];\n\n // Multihandle connections need a \"static\", shared curl multihandle.\n if ($dicParams['connectionClass'] === '\\Elasticsearch\\Connections\\CurlMultiConnection') {\n $connectionParams = array_merge(\n $connectionParams,\n array('curlMultiHandle' => $dicParams['curlMultiHandle'])\n );\n }\n\n return $connectionParams;\n }\n );\n }", "title": "" }, { "docid": "78cf530e8d5fa2051b569955c27a229b", "score": "0.53023237", "text": "protected function _inner_properties() {\n $properties = [\n 'affected_rows', 'connect_errno', 'connect_error', 'errno', 'error_list', 'error', 'field_count',\n 'client_info', 'client_version', 'host_info', 'protocol_version', 'server_info', 'server_version', 'info',\n 'insert_id', 'sqlstate', 'thread_id', 'warning_count',\n ];\n foreach ($properties as $property) {\n $this->_inner_properties[$property] = $this->_mysqli->$property;\n }\n }", "title": "" }, { "docid": "3a70a8096295353a9453792ce3c87a90", "score": "0.52933127", "text": "function properties()\n {\n }", "title": "" }, { "docid": "cea041aff26ebdf68b8e674b3d24ed6c", "score": "0.52795935", "text": "public function setprop($setval){ // this is a method or class specific function\n $this->prop1 = $setval;\n }", "title": "" }, { "docid": "2768cf701a420e0636679e96bb16c570", "score": "0.52716434", "text": "protected function __originalPropertiesSet(): void\n {\n $this->__originalPropertiesSet = true;\n }", "title": "" }, { "docid": "2ab7ad432fc4f5e50335d8f6923f8a6b", "score": "0.52633953", "text": "public function __clone()\n {\n foreach ( $this->properties as $namespace => $props )\n {\n foreach ( $props as $name => $prop )\n {\n $this->properties[$namespace][$name] = clone $prop;\n }\n }\n }", "title": "" }, { "docid": "310c4e33043224361f47755390927d7a", "score": "0.52505326", "text": "protected function computeProperties()\n {\n }", "title": "" }, { "docid": "41efe450ff37f8fc379ef24a43cc8fe3", "score": "0.5240995", "text": "protected function initProperties(): void\n {\n // Initializes the properties to the list.\n $this->addProperty(self::createPropertyInstance(\n self::NUM_HITS, Item::get(Item::STEAK), 0));\n\n $this->addProperty(self::createPropertyInstance(\n self::PLAYER_HEALTH, Item::get(Item::POTION), $this->player->getHealth()));\n }", "title": "" }, { "docid": "46130c4845947143815d5dedf2562794", "score": "0.5240952", "text": "abstract function _init($obj);", "title": "" }, { "docid": "0eb2cca6266fd5e413c60b19c3c7fda3", "score": "0.52400607", "text": "public function initializeObject()\n {\n $this->postalCodeCoordinates = $this->cache->get('postalCodeCoordinates') ?: [];\n $this->addressCoordinates = $this->cache->get('addressCoordinates') ?: [];\n }", "title": "" }, { "docid": "d3c6f8805d3ed8b8b2b6a60388a3d63b", "score": "0.52348346", "text": "function ContentProperties()\n\t{\n\t\t$this->SetInitialValues();\n\t}", "title": "" }, { "docid": "d661722854d053f2a6e3611bba4d832e", "score": "0.5234029", "text": "protected function reflectionData(): void\n {\n $reflector = new \\ReflectionClass(get_class($this));\n\n // Get all the properties from class A in to $properties array\n $properties = $reflector->getProperties();\n\n // Go through the $properties array and populate each property\n foreach ($properties as $property) {\n if (!$property->isPrivate() && !$property->isStatic()) {\n $propertyName = $property->getName();\n if (isset($this->data[$propertyName])) {\n $this->{$propertyName} = $this->data[$propertyName];\n } elseif (isset($this->data[Helper::camelCase($propertyName)])) {\n $this->{$propertyName} = $this->data[Helper::camelCase($propertyName)];\n }\n }\n }\n }", "title": "" }, { "docid": "5cee8b61bf5f8d0707f894f008c4258a", "score": "0.5231744", "text": "public function registerProperties(): void\n {\n ($this->registerProperty)('ConfigurationNumber', '');\n\n //Save a hash over all accessory properties to only increment number on real changes\n ($this->registerProperty)('ConfigurationHash', '');\n\n //Add all accessory specific properties\n foreach (self::$supportedAccessories as $accessory) {\n ($this->registerProperty)(self::propertyPrefix . $accessory, '[]');\n }\n }", "title": "" }, { "docid": "66a4f9b14c2e58d1b6ce68dffbc0147d", "score": "0.52244717", "text": "function add_refs() {\n // Notifications doesn't require any other objects yet\n\n // Settings\n if (isset($this->settings)) {\n if (isset($this->notifications) && !isset($this->settings->notifications))\n $this->settings->notifications = &$this->notifications;\n if (isset($this->license) && !isset($this->settings->license))\n $this->settings->license = &$this->license;\n if (isset($this->cache) && !isset($this->settings->cache))\n $this->settings->cache = &$this->cache;\n if (isset($this->themes) && !isset($this->settings->themes))\n $this->settings->themes = &$this->themes;\n }\n\n // Cache\n if (isset($this->cache)) {\n if (isset($this->settings) && !isset($this->cache->settings))\n $this->cache->settings = &$this->settings;\n if (isset($this->notifications) && !isset($this->cache->notifications))\n $this->cache->notifications = &$this->notifications;\n }\n\n // Helper\n if (isset($this->helper)) {\n if (isset($this->helper) && !isset($this->helper->notifications))\n $this->helper->notifications = &$this->notifications;\n }\n \n // License\n if ($this->has_packages || !$this->no_license) { \n if (isset($this->license)) {\n if (isset($this->notifications) && !isset($this->license->notifications))\n $this->license->notifications = &$this->notifications;\n }\n }\n\n // Products\n if (isset($this->products)) {\n if (isset($this->products) && !isset($this->products->notifications))\n $this->products->notifications = &$this->notifications;\n }\n \n // Themes\n if (isset($this->themes)) {\n if (isset($this->themes) && !isset($this->themes->notifications))\n $this->themes->notifications = &$this->notifications;\n if (isset($this->settings) && !isset($this->themes->settings)) \n $this->themes->settings = &$this->settings;\n if (isset($this->products) && !isset($this->themes->products)) \n $this->themes->products = &$this->products;\n }\n }", "title": "" }, { "docid": "037225b9e2aa3ccadb6a41e81c454043", "score": "0.5220894", "text": "public function init() {\n parent::init();\n \n //new property for writable.\n $this->_ext = $this->extension;\n \n }", "title": "" }, { "docid": "d48fd0b17356dee85160e3e4c17cd35b", "score": "0.52120245", "text": "public function setParams(\\supplemental_model $datasource) {\n\t\t$param_data = $datasource->getLinkParams($this->id);\n\t\t$this->params = SupplementalLinkParam::datasetToObjects($param_data);\n\t}", "title": "" }, { "docid": "2090e0a9e9793e2b61ff4d04ee3fc2ce", "score": "0.52066594", "text": "final protected function xInit($obj) { \n $fldMap = new Map();\n $map = $this->SQL->select($obj->recId);\n $reflection = new ReflectionClass($obj);\n foreach($reflection->getProperties(ReflectionProperty::IS_PRIVATE) as $prop ) \n {\n if(substr($prop->name, 0, strlen(self::$fldPrfx)) == self::$fldPrfx)\n {\n $refProp = $reflection->getProperty($prop->name);\n $refProp->setAccessible(true);\n $fieldVal = $refProp->getValue($obj);\n $fieldname = strtoupper($fieldVal[SysConstants::sysFldName]);\n if($map->keyExists($fieldname))\n { \n $fldMap->insert($fieldVal); // build FieldMap\n $value = SysPropertys::fldProp($fieldVal[SysConstants::sysFldName], $fieldVal[SysConstants::sysFldType], $map->getValue($fieldname));\n $refProp->setValue($obj, $value); \n } \n }\n } \n $this->createSysFields($map);\n $this->SQL->createFieldsIfNotExists(new MapIterator($fldMap));\n \n $this->origTbl = clone($this); // Initiate the TableCache - usefull for validating old values with news values\n }", "title": "" }, { "docid": "4b257aed1525c9ec320ed4f6f91e607c", "score": "0.520435", "text": "function updateProperties()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a50b7eb45eccc2394a0805c165104570", "score": "0.52031887", "text": "static public function configureObject( $object );", "title": "" }, { "docid": "b36b5b524f3f46f6caa3d41efd20cb5e", "score": "0.5192577", "text": "protected function setProperties() {\n $sql = sprintf(\"desc `%s`\",$this->_table);\n $data = $this->_dbc->fetchAssoc($sql);\n\n foreach ($data as $key=>$value) //$d is fetched column\n $this->_properties[$key] = array(\n 'value' => null,\n 'updated' => false\n ); \n }", "title": "" }, { "docid": "f75510e7f85cf6ff71e3e9837b3086fe", "score": "0.518873", "text": "public function set_props($object_type, $args)\n {\n }", "title": "" }, { "docid": "3aa54f7bd662f6b0c0843147e5f15073", "score": "0.5187311", "text": "public function init_obj()\n {\n $this->_obj_document = new happy_linux_kml_document_object();\n $this->_obj_folder = new happy_linux_kml_folder_object();\n $this->_obj_placemarks = new happy_linux_kml_placemarks_object();\n }", "title": "" }, { "docid": "096ecd2313190af07131fc046bcdd03e", "score": "0.51866376", "text": "protected function init()\n {\n $this->propertyAccessor = PropertyAccess::createPropertyAccessor();\n }", "title": "" }, { "docid": "470d5304b5c5be720f1b81bfeb54fe87", "score": "0.5181986", "text": "protected function init()\n {\n $this->properties = self::$CACHE[get_called_class()]->properties;\n $this->behaviours = self::$CACHE[get_called_class()]->behaviours;\n }", "title": "" }, { "docid": "8698c4e195cabda023f58e4278fe9dc0", "score": "0.51783204", "text": "public function setMovieProperties() //setInfo()\n\t{\n\t\t$jsonconversie = new JsonConversie($this->title); //TITEL wordt niet opgehaald, maar ingevuld door de gebruiker obv titel halen we de rest op dmv de API\n\t\t$jsonconversie->setAPIUrl(\"http://www.omdbapi.com/?apikey=186be766&t=\"); //JSON URL\n\n\t\t$jsonconversie->Conversie();\n\n\t\t//TODO: dit moet GENERIEK, doorloop de properties en doorloop de array, kijk op overeenkomsten\n\t\t$this->year = $jsonconversie->getInfo(\"Year\");\n\t\t$this->imdbID = $jsonconversie->getInfo(\"imdbID\");\n\t\t$this->poster = $jsonconversie->getInfo(\"Poster\");\n\t\t$this->Released = $jsonconversie->getInfo(\"Released\");\n\t\t$this->genre = $jsonconversie->getInfo(\"Genre\");\n\n\n\n\t}", "title": "" }, { "docid": "0e6cfa65bd07b24955104d8ec8bbf0a3", "score": "0.5166846", "text": "protected function extractProperties()\n {\n foreach ($this->refClass->getPropertiesByMatcher(self::$methodAndPropertyMatcher) as $property) {\n $this->properties[$property->getName()] = $this->createSerializerDelegate($property, $property->getName());\n }\n }", "title": "" }, { "docid": "ce45a225aa74447badf21ee3c486b7fe", "score": "0.51597416", "text": "public function init()\n {\n $dependentConfig = array_merge(['class' => FooDependent::className()], $this->fooDependent);\n $this->fooDependent = \\Yii::createObject($dependentConfig);\n }", "title": "" }, { "docid": "efe8ec126d02acb243cb68f204b03e32", "score": "0.51483715", "text": "protected function setUp()\n {\n $this->object = new TestProps;\n }", "title": "" }, { "docid": "6d7d29819eda809c8098d5ea90c8f6e6", "score": "0.5142184", "text": "function InitObjects() {\n\t\t$this->m_objectsMetadata['assigned_reviewer_veiw'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.assigned_reviewer_veiw'\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->m_objectsMetadata['review_round_has_passed'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.review_round_has_passed'\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->m_objectsMetadata['review_round_has_removed'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.review_round_has_removed'\n\t\t\t)\n\t\t);\n\t\t\n\n\t\t$this->m_objectsMetadata['document_approved_for_publish'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.document_approved_for_publish'\n\t\t\t)\n\t\t);\n\n\t\t$this->m_objectsMetadata['new_invitation'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.new_invitation'\n\t\t\t)\n\t\t);\n\n\t\t$this->m_objectsMetadata['canceled_invitation'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.canceled_invitation'\n\t\t\t)\n\t\t);\n\n\t\t$this->m_objectsMetadata['confirmed_invitation'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.confirmed_invitation'\n\t\t\t)\n\t\t);\n\n\t\t$this->m_objectsMetadata['confirmed_invitation_decision_taken'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_dedicated_reviewer.confirmed_invitation_decision_taken'\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->m_objectsMetadata['editor_tabs'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'global.document_tabs',\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->m_objectsMetadata['document_rejected'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_DEFAULT => 'view_document_se.document_rejected'\n\t\t\t)\n\t\t);\n\t\t\n\t\t// SE List for assignment by journal editor\n\t\t$this->m_objectsMetadata['se_assigned_list'] = array(\n\t\t\t'templs' => array(\n\t\t\t\tG_STARTRS => 'view_document_editor.seAssignedListStart',\n\t\t\t\tG_ENDRS => 'view_document_editor.seAssignedListEnd',\n\t\t\t\tG_ROWTEMPL => 'view_document_author.seAssignedListRow',\n\t\t\t)\n\t\t);\n\t\t\n\t}", "title": "" }, { "docid": "f6232ede778eba5d5ce74d32a8d97cea", "score": "0.51389766", "text": "public function setReferences(){\n $this->idToReference('administradora', 'Livraria\\Entity\\Administradora');\n $this->dateToObject('inicio');\n $this->dateToObject('fim');\n }", "title": "" }, { "docid": "706fc53b8d6ac7163469edbb3cdc861b", "score": "0.5137851", "text": "function _loadProperties(){\r\n\t\t$q='\r\n\t\tSELECT\r\n\t\t\tobject_properties.property_id,\r\n\t\t\tobject_properties.value,\r\n\t\t\tobject_properties_desc.name\r\n\t\tFROM\r\n\t\t\tobject_properties,\r\n\t\t\tobject_properties_desc\r\n\t\tWHERE\r\n\t\t\tobject_properties.object_id=\"' . $this->object_data['id'] . '\" AND\r\n\t\t\tobject_properties_desc.id=object_properties.property_id\r\n\t\t';\r\n\t\t$this->object_data['properties'] = dbGetAll($q, 'name', 'value');\r\n\t}", "title": "" }, { "docid": "9b93555e7d2ace1543e840e6f54c07d6", "score": "0.5117171", "text": "final protected function getModelProperties() {\n\n\t\t$sql = \"SELECT primary_key_field, `table` FROM entity_factory where `class` = :class;\";\n\t\t$statement = $this->db->prepare($sql);\n\t\t$statement->execute(array(\n\t\t\t':class' => (new \\ReflectionClass($this))->getShortName(),\n\t\t));\n\t\t$statement->setFetchMode(\\PDO::FETCH_OBJ);\n\t\t$result = $statement->fetch();\n\t\tif(empty($result)) {\n\t\t\t$result = false;\n\t\t}\n\t\t$multiPrimaryKeys = explode(\",\",$this->primary_key);\n\t\tif(count($multiPrimaryKeys) > 1) {\n\t\t\t$i = 0;\n\t\t\tforeach($multiPrimaryKeys as $pk) {\n\t\t\t\t$this->primary_key[$i] = $pk;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->primary_key = $result->primary_key_field;\n\t\t}\n\t\t$this->table_name = $result->table;\n\n\t}", "title": "" }, { "docid": "3386a413f942698ecf127e81dc586c75", "score": "0.5116225", "text": "public function testPropertiesSettings()\n {\n $obj = $this->getObj();\n $mock = $this->getRepositoryMock();\n\n $obj->setRepository($mock);\n $this->assertSame($obj->getRepository(), $mock);\n }", "title": "" }, { "docid": "e9af98f46cd4686a432b1c8245593d18", "score": "0.5110215", "text": "public function populate_own_properties()\n {\n // Get content\n $this->content = RP_WCEC::get_post_content($this->id);\n\n // Import recipients from versions earlier than 1.4\n if (!isset($this->send_to_shop_manager) && !isset($this->send_to_customer) && !isset($this->send_to_other)) {\n if (isset($this->send_to) && in_array($this->send_to, array('admin', 'customer', 'both'), true)) {\n if ($this->send_to === 'admin' || $this->send_to === 'both') {\n $this->send_to_shop_manager = true;\n update_post_meta($this->id, 'send_to_shop_manager', '1');\n }\n if ($this->send_to === 'customer' || $this->send_to === 'both') {\n $this->send_to_customer = true;\n update_post_meta($this->id, 'send_to_customer', '1');\n }\n delete_post_meta($this->id, 'send_to');\n }\n }\n }", "title": "" }, { "docid": "f5c302ddd2529cf429fb9156c69a273d", "score": "0.5106798", "text": "function on_load()\r\n\t{\r\n\t\t$this->properties->cid = $this->id;\r\n\t}", "title": "" }, { "docid": "3b249dd9da433a25bd8aec167dd49e52", "score": "0.51038843", "text": "function set_additional_properties($additionalProperties)\r\n {\r\n $this->additionalProperties = $additionalProperties;\r\n }", "title": "" }, { "docid": "56622b7eb44fbed1f05ab08eab6892f2", "score": "0.51006573", "text": "abstract protected function setupData();", "title": "" }, { "docid": "c0ed380ac257050d3bfd55ae33a3cb21", "score": "0.50957996", "text": "protected function _set($prop, $val)\r\n\t{\r\n// if not registered, build temp registry that gets updated on an insert\r\n\t\tif( $this->registry === null )\r\n\t\t{\r\n\t\t\t$this->buildRegistry(uniqid(microtime(), true));\r\n// creates array properties for new instance\r\n\t\t\tself::$extrafieldChanged[$this->registry] = isset(self::$extrafieldChanged[$this->registry])? self::$extrafieldChanged[$this->registry] : array();\r\n\t\t\tself::$extrafieldIndexes[$this->registry] = isset(self::$extrafieldIndexes[$this->registry])? self::$extrafieldIndexes[$this->registry] : array();\r\n\t\t\tself::$extrafieldValues[$this->registry] = isset(self::$extrafieldValues[$this->registry])? self::$extrafieldValues[$this->registry] : array();\r\n\t\t\tself::$schemaValues[$this->registry] = isset(self::$schemaValues[$this->registry])? self::$schemaValues[$this->registry] : array();\r\n\t\t\tself::$expireList[$this->registry] = isset(self::$expireList[$this->registry])? self::$expireList[$this->registry] : array();\r\n\t\t\tself::$extended[$this->registry] = isset(self::$extended[$this->registry])? self::$extended[$this->registry] : array();\r\n\t\t\tself::$insertId[$this->registry] = isset(self::$insertId[$this->registry])? self::$insertId[$this->registry] : array();\r\n\t\t\tself::$changed[$this->registry] = isset(self::$changed[$this->registry])? self::$changed[$this->registry] : array();\r\n\t\t\tself::$iC[$this->registry] = isset(self::$iC[$this->registry])? self::$iC[$this->registry] + 1 : 1;\r\n\t\t}\r\n\t\t$tables = $this->tableJoinMapping;\r\n\t\t$tables[$this->primaryTable] = $this->primaryKey;\r\n\r\n\t\tforeach( $tables as $table => $k )\r\n\t\t{\r\n\t\t\tif( isset(self::$schema[$table][$prop]) )\r\n\t\t\t{\r\n\t\t\t\tself::$schemaValues[$this->registry][$prop] = $this->dbCast(self::$schema[$table][$prop], $this->setField($prop, $val));\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "565a4e327b56b695ca3cf98304aa6864", "score": "0.5094651", "text": "public function populate()\n {\n // Get post meta\n $post_meta = RightPress_Help::unwrap_post_meta(get_post_meta($this->id));\n\n // Set properties from meta\n foreach ($this->get_meta_properties() as $key => $type) {\n\n // Check if such field exists\n if (isset($post_meta[$key])) {\n $this->$key = RightPress_Help::cast_to($type, maybe_unserialize($post_meta[$key]));\n }\n else {\n $this->$key = null;\n }\n }\n\n // Populate child-specific properties\n $this->populate_own_properties();\n }", "title": "" }, { "docid": "eda0b42470357570f9d60d11dc675fd4", "score": "0.509353", "text": "public function __wakeup() {\n foreach (get_object_vars($this) as $field => $value) {\n $newfield = str_replace('_', '', strtolower($field));\n if ($newfield !== $field) {\n $this->$newfield = $value;\n unset($this->field);\n }\n }\n }", "title": "" }, { "docid": "eda0b42470357570f9d60d11dc675fd4", "score": "0.509353", "text": "public function __wakeup() {\n foreach (get_object_vars($this) as $field => $value) {\n $newfield = str_replace('_', '', strtolower($field));\n if ($newfield !== $field) {\n $this->$newfield = $value;\n unset($this->field);\n }\n }\n }", "title": "" }, { "docid": "db84c8e0604f1fe50d37a9f32ee8c892", "score": "0.50922644", "text": "function __construct(ObjectDescriptor $descriptor)\n {\n parent::__construct($descriptor);\n $this->filepath = 'modules/dynamicdata/xarproperties';\n }", "title": "" }, { "docid": "33fbc7e90b764c3e7416cdb6320f11ea", "score": "0.508836", "text": "public function initialize()\n {\n $this->setSchema(\"promoters\");\n $this->setSource(\"subordinate\");\n }", "title": "" }, { "docid": "b08d4ef4cdda93513217078c13e1bcc1", "score": "0.5085233", "text": "function __construct() {\r\n \tglobal $pec_settings, $pec_database, $pec_localization;\r\n \t\r\n \t$this->settings =& $pec_settings;\r\n \t$this->database =& $pec_database;\r\n \t$this->localization =& $pec_localization;\r\n }", "title": "" }, { "docid": "ecbd5fcda24ecb3325ad500f97773a97", "score": "0.5079896", "text": "public function __wakeup() \n {\n if (isset($this->diggs) && \n is_array($this->diggs)) {\n $this->iterator = 'diggs';\n } elseif (isset($this->comments) &&\n is_array($this->comments)) {\n $this->iterator = 'comments';\n }\n }", "title": "" }, { "docid": "af7e175c21210cb8988ebd1ecd147e69", "score": "0.5075524", "text": "function &getProperties() {\r\n// Load the data\r\n if (empty ($this->_properties)) {\r\n\r\n $database \t=& $this->_db;\r\n $ce \t\t=& $this->_content_element;\r\n $ref_table \t= $ce->table;\r\n $content_id = $this->_id;\r\n\r\n $database = $this->_db;\r\n $ce = $this->_content_element;\r\n// retrieve values\r\n// $selstr[] \t= \"c.id \";\r\n $selstr[] = \"c.\".$ce->id;\r\n $fromstr[] \t= \"#__$ref_table AS c\";\r\n $wherestr\t= \"c.\".$ce->id .\" = '\" . $this->_id . \"'\";\r\n\r\n if($ce->sec_table) {\r\n $selstr[] \t\t= \"sec.\".$ce->sec_table_id.\" AS secid \";\r\n $selstr[] \t\t= \"sec.\".$ce->sec_table_title.\" AS section\";\r\n $fromstr[] \t\t= \"LEFT JOIN #__\".$ce->sec_table.\" AS sec ON(c.\".$ce->sectionid.\" = sec.\".$ce->sec_table_id.\") \";\r\n }\r\n\r\n if($ce->cat_table) {\r\n $selstr[] \t\t= \"cat.\".$ce->cat_table_id.\" AS catid \";\r\n $selstr[] \t\t= \"cat.\".$ce->cat_table_title.\" AS category\";\r\n $fromstr[] \t\t= \"LEFT JOIN #__\".$ce->cat_table.\" AS cat ON(c.\".$ce->catid.\" = cat.\".$ce->cat_table_id.\") \";\r\n }\r\n\r\n\r\n\r\n $query = \"SELECT \" .implode( ',', $selstr). \" FROM \" . implode(' ', $fromstr). \" WHERE $wherestr \";\r\n $database->setQuery($query);\r\n $row = $database->loadObject();\r\n\r\n $properties = \tarray (\t'section' \t=> ($ce->sec_table) ? $row->section : '',\r\n 'category' \t=> ($ce->cat_table) ? $row->category : '',\r\n 'content_element' => $ce->label\r\n );\r\n $this->_properties = $properties;\r\n }\r\n return $this->_properties;\r\n }", "title": "" }, { "docid": "4cc33943b386f96807c7f1183c59ae11", "score": "0.5070899", "text": "function on_insert()\r\n\t{\r\n\t\t$this->properties = new ContentProperties_model ( );\r\n\t\t$this->properties->cid = $this->id;\r\n\t}", "title": "" }, { "docid": "697e7f30b3b7244db613e995cdff64de", "score": "0.5067044", "text": "public function loadFlexProperties()\n {\n collect($this->flex_properties)->flip()->map(function ($value, $type) {\n return Flex::factory($type)\n ->where('linkable_id', $this->{'id'})\n ->where('linkable_type', static::class)\n ->get();\n })\n ->filter()\n ->flatten()\n ->each(function ($property) {\n $this->flex_objects[$property->locale][$property->name] = $property;\n });\n\n return $this;\n }", "title": "" }, { "docid": "8c6cbbc76f6ae418b524dd1a6308eb3d", "score": "0.5051694", "text": "function setConnectionParams (array $params) {\n foreach (self::$CProps as $pn) {\n if (isset($params[$pn])) {\n $this->$pn = $params[$pn];\n }\n }\n }", "title": "" }, { "docid": "00fd1af2c43009faf27e7d36b5dfa425", "score": "0.5050163", "text": "public function set_props($args)\n {\n }", "title": "" }, { "docid": "00fd1af2c43009faf27e7d36b5dfa425", "score": "0.5050163", "text": "public function set_props($args)\n {\n }", "title": "" }, { "docid": "7bea057223ae61bf571810f18850f2ae", "score": "0.50380796", "text": "public function bind($properties=array()) {\n\t\tforeach ($properties as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "7bea057223ae61bf571810f18850f2ae", "score": "0.50380796", "text": "public function bind($properties=array()) {\n\t\tforeach ($properties as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "7bea057223ae61bf571810f18850f2ae", "score": "0.50380796", "text": "public function bind($properties=array()) {\n\t\tforeach ($properties as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "7bea057223ae61bf571810f18850f2ae", "score": "0.50380796", "text": "public function bind($properties=array()) {\n\t\tforeach ($properties as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "ec2af38e5769d2a45d7dca13d9f7f6f9", "score": "0.503806", "text": "protected function initializeProxy()\n {\n //Initialize internal vars\n $this->states = new \\ArrayObject();\n $this->activesStates = new \\ArrayObject();\n $this->callerStatedClassesStack = new \\SplStack();\n }", "title": "" }, { "docid": "3e139b0bcc6c81cc9905dc351f0ae1b7", "score": "0.5031951", "text": "public function _init()\n {\n $this->_auto_info['php_item'] = [\n 'id' => 'php_item',\n 'name' => 'CLONEABLE: php item name',\n 'desc' => 'CLONEABLE: php item desc',\n 'configurable' => [],\n 'cloneable' => 1,\n 'auto_type' => 'php_item',\n ];\n $this->_auto_info['block_item'] = [\n 'id' => 'block_item',\n 'name' => 'CLONEABLE: block item name',\n 'desc' => 'CLONEABLE: block item desc',\n 'configurable' => [],\n 'cloneable' => 1,\n 'auto_type' => 'block_item',\n ];\n $this->_auto_info['stpl_item'] = [\n 'id' => 'stpl_item',\n 'name' => 'CLONEABLE: stpl item name',\n 'desc' => 'CLONEABLE: stpl item desc',\n 'configurable' => [],\n 'cloneable' => 1,\n 'auto_type' => 'stpl_item',\n ];\n }", "title": "" }, { "docid": "3be1947262c93290d14d9d2a2e8fa195", "score": "0.50298506", "text": "abstract protected function setPropertiesOfShape(array $shapeConfig);", "title": "" }, { "docid": "f053980b83400239124fea67f1415035", "score": "0.5019096", "text": "function newProps() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1d2929f373a73bc76db3551dd1846e0c", "score": "0.50187373", "text": "protected function setUp() {\n\t\t$class_name = __NAMESPACE__.\"\\\\\".$this->property_class_name;\n\n\t\t$this->data_model = new DataModel_Definition_DataModelTestMock();\n\n\t\t$this->property_options = $this->data_model->_test_get_property_options($this->property_name);\n\n\t\t$this->object = new $class_name( $this->data_model->getDataModelDefinition(), $this->property_name, $this->property_options );\n\t}", "title": "" }, { "docid": "d1825d242ac1d5b97f10eccd115b9ed0", "score": "0.5017401", "text": "function __construct(&$parent) {\n\t\t$this->parent = &$parent; // framework object\n\t\t$this->loadSettings();\n\t}", "title": "" }, { "docid": "9eee713a8eb95ee32a12835465d32144", "score": "0.50170225", "text": "public function __wakeup()\n {\n $this->registry->load($this->flow, $this->registryData);\n $this->setRefs();\n }", "title": "" }, { "docid": "98b94ba82f0a4bef4e743c536ed69f1f", "score": "0.50151473", "text": "public function set_parent( Inpsyde_Property_List_Interface $object );", "title": "" }, { "docid": "50a7179417736a0077bbf9bed5cbe95d", "score": "0.5010825", "text": "function InitObjects() {}", "title": "" }, { "docid": "ec4ad1e8f82496fe602aee9d9544e294", "score": "0.5010158", "text": "public static function __set_state($properties=null){ }", "title": "" }, { "docid": "33325d87ad9ec9e1c81724d0d479e7ef", "score": "0.50087917", "text": "public function preList()\n {\n if (empty($this->objectref)) return true;\n \n // Get the object associated with this property\n if ($this->objectref->name == $this->initialization_refobject) {\n // Case of the same table in the property and its parent object\n $object = $this->objectref;\n } else {\n // Property table is different from the object table\n $object = DataObjectMaster::getObject(array('name' => $this->initialization_refobject));\n }\n\n // We only support relational storage\n if (!$object || !$object->datastore) return true;\n $store = $object->datastore->name;\n if ($object->datastore->name != \"relational\") return true;\n\n // Assemble the links to the object's table - @todo see DataObjectMaster assembleQuery instead\n $descriptor = $object->descriptor;\n $sources = $descriptor->exists(\"sources\") ? unserialize($descriptor->get(\"sources\") ?? 'a:0:{}') : array();\n $relations = $descriptor->exists(\"relations\") ? unserialize($descriptor->get(\"relations\") ?? 'a:0:{}') : array();\n \n // Debug display\n if (xarModVars::get('dynamicdata','debugmode') && \n in_array(xarUser::getVar('id'),xarConfigVars::get(null, 'Site.User.DebugAdmins'))) {\n echo \"Ref Object: \" . $this->objectref->name . \"<br/>\";\n echo \"Property: \" . $this->name . \"<br/>\";\n echo \"Prop Object: \" . $object->name . \"<br/>\";\n echo \"Sources: \";var_dump($sources);echo \"<br/>\";\n echo \"Relations: \";var_dump($relations);echo \"<br/>\";echo \"<br/>\";\n }\n \n // Get the parent object's query;\n $q = $this->objectref->dataquery;\n\n // The tables of this property will be added with a special prefix\n // to make sure all tables are unique\n $tableprefix = $this->id . \"_\";\n \n // Run through each of the sources and create a table entry\n // The first table is linked with a join to the current object's source table(s)\n // By definition this is an outer join\n // The other relations are added as given in the configurations\n $storeprop = $tableprefix . $object->properties[$this->initialization_store_prop]->source;\n $displayprop = $tableprefix . $object->properties[$this->initialization_display_prop]->source;\n $i = 0;\n foreach($sources as $key => $value) {\n $q->addTable($value[0], $tableprefix . $key);\n if ($i == 0) {\n $q->leftjoin($this->source, $storeprop);\n } else {\n if ($value[1] == 'internal') {\n $q->join($tableprefix . $relations[$i-1][0], $tableprefix . $relations[$i-1][1]);\n } else {\n $q->leftjoin($tableprefix . $relations[$i-1][0], $tableprefix . $relations[$i-1][1]);\n }\n }\n $i++;\n }\n\n // Set the source of this property\n $this->source = $displayprop;\n // Do not transform the raw value\n $this->transform = false;\n return true;\n }", "title": "" }, { "docid": "1ba929f881bc7abaa51c5c124e214ef2", "score": "0.50077957", "text": "public function init()\n {\n parent::init();\n \n if (isset($this->target->type) && $this->target->type == 'VIA' && isset($this->via)) {\n $this->target->id = $this->via->id;\n }\n else {\n $this->target->id = $this->member->profile->id;\n $this->_minPrivilege = null;\n $this->target->acl->owner = true;\n }\n }", "title": "" }, { "docid": "b6f4df3b64553618251cb34978089999", "score": "0.50073546", "text": "public function setProps( $args ) {\r\n helper('functions');\r\n\t\t$args = parse_args( $args );\r\n\r\n\t\t// Args prefixed with an underscore are reserved for internal use.\r\n\t\t$defaults = array(\r\n\t\t\t'labels' => array(),\r\n\t\t\t'description' => '',\r\n\t\t\t'public' => false,\r\n\t\t\t'hierarchical' => false,\r\n\t\t\t'exclude_from_search' => null,\r\n\t\t\t'capability_type' => 'post',\r\n\t\t\t'capabilities' => array(),\r\n\t\t\t'map_meta_cap' => null,\r\n\t\t\t'supports' => array(),\r\n\t\t\t'taxonomies' => array(),\r\n\t\t\t'delete_with_user' => null\r\n\t\t);\r\n\r\n\t\t$args = array_merge( $defaults, $args );\r\n\r\n\t\t$args['name'] = $this->name;\r\n\r\n\t\tif ( empty( $args['capabilities'] ) && null === $args['map_meta_cap'] && in_array( $args['capability_type'], array( 'post', 'page' ) ) ) {\r\n\t\t\t$args['map_meta_cap'] = true;\r\n\t\t}\r\n\r\n\t\t// If not set, default to false.\r\n\t\tif ( null === $args['map_meta_cap'] ) {\r\n\t\t\t$args['map_meta_cap'] = false;\r\n\t\t}\r\n\r\n\t\t$this->cap = $this->getObjectTypeCapabilities( (object) $args );\r\n\t\tunset( $args['capabilities'] );\r\n\r\n\t\tif ( is_array( $args['capability_type'] ) ) {\r\n\t\t\t$args['capability_type'] = $args['capability_type'][0];\r\n\t\t}\r\n\r\n\t\tforeach ( $args as $property_name => $property_value ) {\r\n\t\t\t$this->$property_name = $property_value;\r\n\t\t}\r\n\r\n\t\t$this->labels = $this->getObjectTypeLabels();\r\n\t\t$this->label = $this->labels->name;\r\n }", "title": "" }, { "docid": "b40461dbf65dc8dfbb2dab405f365ee1", "score": "0.5003757", "text": "public function init(&$parentObj, &$rootObj) {\n\t\t$this->parentObj = &$parentObj;\n\t\t$this->rootObj = &$rootObj;\n\t\t$this->queryController = &$this->parentObj;\n\t\t$this->queryFetcher = &$this->parentObj->get_queryFetcher();\n\t\t$this->queryGenerator = &$this->parentObj->get_queryGenerator();\n\t\t$this->useConfig = &$this->rootObj->useConfig;\n\t\t$this->cObj = clone($this->rootObj->cObj);\n\t}", "title": "" }, { "docid": "1bceb47846206673b0e8408d0787abe9", "score": "0.49954873", "text": "protected function initData()\n {\n // Has to be overwritten by generalizations\n if ($this instanceof ContentSet) {\n $this->setProperty('is_container', true);\n } else {\n $this->setProperty('is_container', false);\n }\n }", "title": "" }, { "docid": "be35ef8151bd8f3f29b2dd46a2fe9f23", "score": "0.49926978", "text": "public function init_config_data($host_obj)\n\t\t{\n\t\t}", "title": "" }, { "docid": "bbbfde5de3d2c79372dac8fb4c1b2248", "score": "0.498768", "text": "abstract protected function init();", "title": "" } ]
1000c4778b265969fea03ed0cc501e60
Tells whether the public suffix has a matching rule in a Public Suffix List ICANN Section.
[ { "docid": "90ff7a3a798fbaaae3ab44fcb297e5ba", "score": "0.65814966", "text": "public function isICANN(): bool\n {\n return $this->publicSuffix->isICANN();\n }", "title": "" } ]
[ { "docid": "810aec6bced1ddee6fe08dbb79e72879", "score": "0.6281759", "text": "public function isKnown(): bool\n {\n return $this->publicSuffix->isKnown();\n }", "title": "" }, { "docid": "e47afaba2b65cfe63c2cf0615e046089", "score": "0.5556494", "text": "public function hasSuffixOnly(){\n $info = $this->split();\n return $info[1] && ! $info[0];\n }", "title": "" }, { "docid": "ad285810d3c28a77b9e1404a97d9912d", "score": "0.5520656", "text": "function is_subnetoralias($subnet) {\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$subnet]) && is_subnet($aliastable[$subnet])) {\n\t\treturn true;\n\t} else {\n\t\treturn is_subnet($subnet);\n\t}\n}", "title": "" }, { "docid": "053ca7f7471ca6ad55b4a01b2053055f", "score": "0.5446531", "text": "public function hasSuffix() : bool\n {\n return isset($this->suffix);\n }", "title": "" }, { "docid": "ccaf33deab6621dc9739b92c926589d2", "score": "0.53915733", "text": "private function subCheck($listname, $prefixlist, $mode) {\n $buildtrunk = $listname . '-s';\n foreach ($prefixlist as $value) {\n $stm = $this->query(\"SELECT id FROM `\". $buildtrunk . \"-prefixes` WHERE \" .\n ($mode == 'prefix' ? '`prefix`' : 'hostkey') . ' = x? AND add_chunk_num = ? LIMIT 1', array($value[0], $value[1]));\n // As interpreted from Developer Guide if theres a match in\n // sub list it cancels out the add listing\n // we'll double check its from the same chunk just to be pedantic\n if ($stm->rowCount() > 0) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "671a8ffc5f395e6328b690d29af2f2b3", "score": "0.53367925", "text": "public static function isValidInterwiki( $prefix ) {\n\t\t$result = self::fetch( $prefix );\n\n\t\treturn (bool)$result;\n\t}", "title": "" }, { "docid": "64fcf583afa3d09e00503f5ae3b7459a", "score": "0.5316079", "text": "function _isChannelAlias($alias)\n {\n return file_exists($this->_getChannelAliasFileName($alias));\n }", "title": "" }, { "docid": "64fcf583afa3d09e00503f5ae3b7459a", "score": "0.5316079", "text": "function _isChannelAlias($alias)\n {\n return file_exists($this->_getChannelAliasFileName($alias));\n }", "title": "" }, { "docid": "6b2f3722cd66274ceb9298b954936695", "score": "0.519978", "text": "public function hasMasterAlias(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "051460b9f0bc21401df230e24714a9b7", "score": "0.516633", "text": "public function containsSubstitutions()\n {\n $args = $this->values['args'];\n if (\\count($args) < 2 || \\is_string($args[0]) === false) {\n return false;\n }\n return \\preg_match($this->subRegex, $args[0]) === 1;\n }", "title": "" }, { "docid": "5903cf23e4c606a7ecb9847565d809a0", "score": "0.51558465", "text": "public function isPrivate(): bool\n {\n return $this->publicSuffix->isPrivate();\n }", "title": "" }, { "docid": "068c9918d2b16c9bef6e104906bd535b", "score": "0.5146732", "text": "function _is_alias( $alias ) {\n\treturn Domain::_is_alias( $alias );\n}", "title": "" }, { "docid": "ec38c336fe77ceb719fb6dba2e1bfccc", "score": "0.511464", "text": "public function isAlias(): bool;", "title": "" }, { "docid": "6763ecdab4a05a6d39bd008c5e499312", "score": "0.5024449", "text": "public function isAlien(): bool\n {\n return ! Str::startsWith($this->url, config('app.url'));\n }", "title": "" }, { "docid": "64fb309cd20fd5ab06097ba3ad2ad2f1", "score": "0.5022677", "text": "public function hasAliases()\n {\n return count($this->aliases) > 0;\n }", "title": "" }, { "docid": "94cd78aee6c59f34492bea4ffbf019f5", "score": "0.5022436", "text": "public function hasIdn(): bool\n {\n return $this->domain instanceof Domain && $this->domain->isIdn();\n }", "title": "" }, { "docid": "f7d54f5561cb685596dac64db7be94f1", "score": "0.50023025", "text": "public static function hasInternalOrigin()\n {\n $refer = static::getOrigin();\n return empty($refer) || strpos($refer, 'gustavus.edu') !== false || strpos($refer, 'gac.edu') !== false;\n }", "title": "" }, { "docid": "a37f1787e803281f3ce7d9cbdf344bfd", "score": "0.49959606", "text": "public function has($alias, $far_keys = null);", "title": "" }, { "docid": "f8a3443adfa7f8d00a028c38968a4996", "score": "0.49955624", "text": "public function check()\r\n {\r\n foreach ($this->dns->listRecords($this->zoneID, 'TXT')->result as $record) {\r\n if(strpos($record->name, 'acme-challenge')) {\r\n $this->txtRecords[] = [\r\n 'id' => $record->id,\r\n 'name' => $record->name,\r\n 'content' => $record->content,\r\n ];\r\n print $record->name.\" exists in DNS.\\n\";\r\n }\r\n }\r\n\r\n if(!empty($this->txtRecord))\r\n return true;\r\n return false;\r\n }", "title": "" }, { "docid": "6b7e8d642e4270f9b18ca16b3b70c3d6", "score": "0.49880633", "text": "public function has($alias){ }", "title": "" }, { "docid": "2c9b616912d934b73ff0e5e093bdc2b1", "score": "0.4979357", "text": "function is_indexing($ext)\n\t{\n\t\t$ar_allowed_ext = array\n\t\t(\n\t\t\t'.txt',\n\t\t\t'.dat',\n\t\t\t'.xml'\n\t\t);\n\t\t\n\t\tif(in_array($ext, $ar_allowed_ext))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "c7298f06ac17f50012958c0dc742312d", "score": "0.49710128", "text": "public function hasPrefixOnly(){\n $info = $this->split();\n return $info[0] && ! $info[1];\n }", "title": "" }, { "docid": "81f8483dbf912ca51bf6fe5bae64472b", "score": "0.4962347", "text": "public static function check_internal_url() {\n if (self::$chkMe >= 1) {\n return false;\n }\n $install_pfad = explode(\"/\",dirname(dirname(self::GetServerVars('SCRIPT_NAME')).\"../\"));\n $now_pfad = explode(\"/\",self::GetServerVars('REQUEST_URI')); $pfad = '';\n foreach($now_pfad as $key => $value) {\n if(!empty($value)) {\n if(!isset($install_pfad[$key]) || $value != $install_pfad[$key]) {\n $pfad .= \"/\".$value;\n }\n }\n }\n\n list($pfad) = explode('&',$pfad);\n $pfad = \"..\".$pfad;\n\n if (strpos($pfad, \"?\") === false && strpos($pfad, \".php\") === false) {\n $pfad .= \"/\";\n }\n\n if (strpos($pfad, \"index.php\") !== false) {\n $pfad = str_replace('index.php', '', $pfad);\n }\n\n $url = $pfad.'index.php';\n $get_navi = self::$sql['default']->fetch(\"SELECT `internal` FROM `{prefix_navi}` WHERE `url` = ? OR `url` = ?;\", [$pfad,$url]);\n if(self::$sql['default']->rowCount()) {\n if ($get_navi['internal']) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "7e6dc00fe7c6fce49ad781715f6bca82", "score": "0.49336368", "text": "private function isWithInDomain( $sLink ){\r\n if( $this->aDomainLimitsSz <= 0 ) return true;\r\n if( !is_string($sLink) ) throw new Exception('Spiderman->isWithInDomain() only expects a string as a parameter.' . $sLink );\r\n foreach( $this->aDomainLimits as $url ){\r\n //echo '<span style=\"margin-left:40;\">Domain Compare: </span>' . $url . ' <b>in</b> ' . $sLink ;\r\n if( strpos( WebUtils::getDomain($sLink), $url ) !== false ){\r\n //echo ' <b>True</b> <br/>';\r\n return true;\r\n }\r\n }\r\n //echo ' <b>False</b> <br/>';\r\n return false;\r\n }", "title": "" }, { "docid": "1cfd400e498ad51d73fa75a0b7af411f", "score": "0.4908353", "text": "function existAlias($forMods , $infos) {\n\t\t$criteria = new CriteriaCompo ();\n\t\t$criteria->add ( new Criteria ( 'content_modid', $forMods->getVar ( 'mid' ) ) );\n\t\t$criteria->add ( new Criteria ( 'content_alias', $infos['content_alias'] ) );\n\t\tif($infos['content_id']) {\n\t\t\t$criteria->add ( new Criteria ( 'content_id', $infos['content_id'] , '!='));\n\t\t}\n\t\tif ($this->getCount ( $criteria ) == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "3dde8153fcfd140533e2ecbb9f15cf40", "score": "0.48759028", "text": "public function isRegistered($alias);", "title": "" }, { "docid": "3dde8153fcfd140533e2ecbb9f15cf40", "score": "0.48759028", "text": "public function isRegistered($alias);", "title": "" }, { "docid": "6d4a1a183eff61603eb121f85ed9b303", "score": "0.48741034", "text": "public function hasPublicityId(){\n return $this->_has(11);\n }", "title": "" }, { "docid": "6a46703d506c0461daf0aa1b1f5f7c05", "score": "0.4866828", "text": "public function contains_nyp() {\n\n\t\tif ( ! $this->is_synced() )\n\t\t\t$this->sync_bundle();\n\n\t\treturn $this->contains_nyp;\n\t}", "title": "" }, { "docid": "4ae16ad304d9c641908a49d31b49b9d6", "score": "0.4860953", "text": "public function isSubtitles(String $filename)\r\n {\r\n if (preg_match(\"@^.*\\.(\".implode('|', $this->getSubtitlesExtensions()).\")@i\", $filename))\r\n return true;\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "a8f7b2add4ba89371caf351ce22ffa1e", "score": "0.48513585", "text": "public function hasTransferPatronymic()\n {\n return $this->TransferPatronymic !== null;\n }", "title": "" }, { "docid": "5c0b67f523662368e18024532818afe9", "score": "0.48510772", "text": "public function match()\n {\n if (strpos($this->userInput, '://') === false) {\n return false;\n }\n\n foreach ($this->excludedPrefixes as $prefix) {\n if (strpos($this->userInput, $prefix) === 0) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "f8b53f0db017db1ecc6280a71e45efda", "score": "0.48483545", "text": "public function hasLinkedinPublicUrl()\n {\n return $this->get(self::LINKEDINPUBLICURL) !== null;\n }", "title": "" }, { "docid": "6447d3a6f962c69f8569717d91cf9da4", "score": "0.48483312", "text": "public function Exists($name=null){\n\t\t\tif (empty($name)) return FALSE;\n\t\t\tforeach ( $this->CDNS as $CDN )\n\t\t\t\tif (stripos($name, $CDN->Name()) == TRUE) return True;\t\t\t\n\t\t}", "title": "" }, { "docid": "827aa72ec02fa97a7b98a2f3c5b7ed6b", "score": "0.4845122", "text": "static function isThisInternal() {\n // split the array by spaces\n $IPS = explode(\" \",NTConstants::INTERNAL_IPS);\n\n // look for a match\n foreach($IPS as $IP) { \n if(preg_match($IP,$_SERVER[\"REMOTE_ADDR\"])) {\n return 1;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "b66cfaee4f99103f68bfde76e2609a48", "score": "0.48412508", "text": "function isFullName($n)\n {\n $reg = \"/^[\\\\p{L}][ \\\\p{L}'-.]*[\\\\p{L}]$/\";\n return (preg_match($reg, $n) === true);\n }", "title": "" }, { "docid": "0bc8aa250365cbcf5cd39c6b7e891165", "score": "0.48384133", "text": "function is_ipaddroralias($ipaddr) {\n\tif (is_alias($ipaddr)) {\n\t\tforeach (config_get_path('aliases/alias', []) as $alias) {\n\t\t\tif ($alias['name'] == $ipaddr && !preg_match(\"/port/i\", $alias['type'])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t} else {\n\t\treturn is_ipaddr($ipaddr);\n\t}\n\n}", "title": "" }, { "docid": "0a115b5b4fbd2ef90fbca159026560d2", "score": "0.48369437", "text": "private function inAdministration()\n {\n $segment = 1;\n\n return $this->app['request']->segment($segment) === $this->app['config']->get('society.core.core.admin-prefix');\n }", "title": "" }, { "docid": "239cb7b509cad0755531ac3d13661deb", "score": "0.48322678", "text": "public function has_any($alias, $far_keys = null);", "title": "" }, { "docid": "d753fbefa398cb7ba8d0c103e0234ab8", "score": "0.4826916", "text": "public function isExactAcl();", "title": "" }, { "docid": "e5420d65d9b7713b65749087ece2928c", "score": "0.48174506", "text": "public function isIPNValid()\n {\n $this->sketchyIPN = 'cmd=_notify-validate'; //prepend validation command\n \n foreach ($this->ipn as $key => $value) {\n $value = urlencode(stripslashes($value));\n $this->sketchyIPN .= \"&$key=$value\";\n }\n\n $this->message_status = $this->postIPN();\n\n\n if ($this->message_status) {\n return true;\n }\n \n return false;\n\n }", "title": "" }, { "docid": "94544a24875f8f3691dc2807a2db5ba2", "score": "0.48122078", "text": "public function hasSuffix($suffix) {\n\t\t\t$length = strlen($suffix);\n\t\t\tif ($length == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn (substr($this->string, -$length) === $suffix);\n\t\t}", "title": "" }, { "docid": "8b00f51d24a89a675aa2b3df029cf385", "score": "0.48076752", "text": "public static function isValid($inn)\n {\n return self::checksum(substr($inn, 0, -1)) === substr($inn, -1, 1);\n }", "title": "" }, { "docid": "2b1775bf69897894124de890d17fd80c", "score": "0.4804355", "text": "public function isIp(): bool\n {\n return null === $this->getSuffix() && Util::isValidIp($this->getHostname());\n }", "title": "" }, { "docid": "25a58ef0e58555bdac1df2f134c1dcc5", "score": "0.48025155", "text": "function HasIMAPSupport($display = true) {\n $function_list = array(\"imap_open\",\n \"imap_delete\",\n \"imap_expunge\",\n \"imap_body\",\n \"imap_fetchheader\");\n return(HasFunctions($function_list, $display));\n}", "title": "" }, { "docid": "904bc1854857c05bbf28782425a3db11", "score": "0.4802278", "text": "public function hasInn()\n {\n return $this->Inn !== null;\n }", "title": "" }, { "docid": "f9600b31b1ad043e297e0ae72c24a3b0", "score": "0.47986278", "text": "public function hasProvider($alias);", "title": "" }, { "docid": "658c6410755753c06927218f2601b550", "score": "0.47979558", "text": "static function endsWith($string, $niddle) {\n return substr($string, strlen($string) - strlen($niddle), strlen($niddle)) == $niddle;\n }", "title": "" }, { "docid": "19776b30696e28bc3f48832204c1d35e", "score": "0.4790927", "text": "public function isConfiguration(string $entry): bool\n {\n $pattern = sprintf('/%s.[a-zA-Z0-9\\-\\_]+$/', $this->configurationPrefix);\n return (bool) preg_match($pattern, $entry, $matched);\n }", "title": "" }, { "docid": "7bef71e97f221c3d1922738ab1c09079", "score": "0.4782627", "text": "function is_portalias($port) {\n\tif (is_alias($port)) {\n\t\tforeach (config_get_path('aliases/alias', []) as $alias) {\n\t\t\tif ($alias['name'] == $port && preg_match(\"/port/i\", $alias['type'])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "27a1ad01496b3fdf8021a366571a2076", "score": "0.47800624", "text": "public static function isIri($iri) {\n\t\tif (substr($iri, 0, 4) == 'urn:' || substr($iri, 0, 5) == 'http:' || substr($iri, 0, 6) == 'https:') {\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "e0eed355e0af81f75bf3fe841444d49e", "score": "0.4776543", "text": "public static function isCanonical(string $nickname): bool\n {\n return preg_match('/^(?:' . self::CANONICAL_FMT . ')$/', $nickname) > 0;\n }", "title": "" }, { "docid": "342b509cb45ebf07a46266ddbc5028d7", "score": "0.4776457", "text": "function supermaster_ip_name_exists($master_ip, $ns_name) {\n global $db;\n if ((is_valid_ipv4($master_ip) || is_valid_ipv6($master_ip)) && is_valid_hostname_fqdn($ns_name, 0)) {\n $result = $db->queryOne(\"SELECT ip FROM supermasters WHERE ip = \" . $db->quote($master_ip, 'text') .\n \" AND nameserver = \" . $db->quote($ns_name, 'text'));\n return ($result ? true : false);\n } else {\n error(sprintf(ERR_INV_ARGC, \"supermaster_exists\", \"No or no valid IPv4 or IPv6 address given.\"));\n }\n}", "title": "" }, { "docid": "0128d6b267c750cb3d2fa766b77d8630", "score": "0.4742681", "text": "public function hasLinkedinName()\n {\n return $this->get(self::LINKEDINNAME) !== null;\n }", "title": "" }, { "docid": "cdcb8c6fa37195fc82d88342b9a12b68", "score": "0.47378683", "text": "function checkSAN($certdetails){\n if (isset($certdetails['extensions']['subjectAltName'])){\n // look for a wildcard\n if(substr_count($certdetails['extensions']['subjectAltName'], \"DNS:*\")>=1){\n return \"Wildcard\";\n }\n // if not wildcard, then count the SANs. I arbitrarily picked 3 since www. and the apex domain\n // will show up as SANs.\n if (substr_count($certdetails['extensions']['subjectAltName'], \"DNS:\")>=3){\n return \"SAN\";\n } else {\n return \"Probably Single Domain\";\n }\n }\n }", "title": "" }, { "docid": "ee43b4994f18bdf7aa92f9a354d6a920", "score": "0.47283727", "text": "function matches($mask)\n {\n list($p1,$p2) = $this->canonical($mask);\n $match = true;\n $p1count = count($p1);\n $p2count = count($p2);\n if ($p1count != $p2count) return false;\n for ($i=1; $i < $p1count; $i++) {\n $match = $match && ($p1[$i]==$p2[$i]);\n }\n return $match;\n }", "title": "" }, { "docid": "10e6990dbddf34a00ec1e1bfadba2b36", "score": "0.47280487", "text": "public function isPublic()\n {\n $value = $this->_daResponse->getPublic( $this->getId() );\n return ( $value == 1 ) ? true : false;\n }", "title": "" }, { "docid": "f666bb9d1c6b07051771c87d43790ab6", "score": "0.47278666", "text": "public function has_requiring_ipns() {\n\t\tif (!$this->skeleton->built('requiring_ipns')) $this->build_requiring_ipns();\n\t\treturn $this->skeleton->has('requiring_ipns');\n\t}", "title": "" }, { "docid": "88c56fa40ed56f1577089106fd728da6", "score": "0.47230512", "text": "private function isSubDomain(\\stdClass $subServer) : bool {\n return strpos($subServer->name, $subServer->values->parent_domain[0]) !== false;\n }", "title": "" }, { "docid": "83696f1cf8d5e420abe79601cdb343bd", "score": "0.47194698", "text": "function note_IsNotePublicByNode( $node ) {\n\treturn in_array($node['type'], NODE_TYPES_WITH_PUBLIC_NOTES);\n}", "title": "" }, { "docid": "9eaea29f2b73352b4a466ad7218bed37", "score": "0.47138956", "text": "public function needsDnsNames()\n {\n /// TODO check if SAN/UCC/Multi-Domain\n return false;\n }", "title": "" }, { "docid": "4697ce92b62bbcb8848c352af8e77dc8", "score": "0.4708109", "text": "function is_alias($name) {\n\tglobal $aliastable;\n\n\treturn isset($aliastable[$name]);\n}", "title": "" }, { "docid": "c78121f9f8b2fb3fffef5be3e45f3647", "score": "0.47053695", "text": "function isPrefixedURI($uriString){\n //echo ( $uriString);\n $prefixes = array_keys($this->namespaces);\n //print_r($prefixes);\n $check = substr($uriString,0,strpos($uriString,\":\"));\n //echo $check;\n\n //echo in_array($check,$prefixes);\n return in_array($check,$prefixes);\n }", "title": "" }, { "docid": "2b1a9f549969ee4e96122a4e06eaa552", "score": "0.46927908", "text": "function _is_cdn_path($file)\n\t{\n\t\tforeach($this->domains as $dom)\n\t\t{\n\t\t\tif( strpos($file,$dom) === false)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//cdn found..hence returning\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t//no match found...Hence returning false\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7e8b638b8a9051f3a8898ae41b1d0d99", "score": "0.46905237", "text": "public function isPublic()\n\t{\n\t\treturn ($this->get('public') == self::WISHLIST_STATE_PUBLIC);\n\t}", "title": "" }, { "docid": "7e85f6a4597ebface9992f2c975364e7", "score": "0.4682568", "text": "private function signatureIsPublic() {\n\n if (!isset($this->arguments)) {\n throw new \\Exception('error-request');\n }\n\n $args = explode('/', $this->arguments);\n $user_name = isset($args[0]) ? $args[0] : '';\n $manuscript = isset($args[1]) ? $args[1] : '';\n\n $partial_url = 'Manuscripts:' . $user_name . '/' . $manuscript;\n $signature_wrapper = objectRegistry::getInstance()->getSignatureWrapper();\n $signature = $signature_wrapper->getManuscriptSignature($partial_url);\n\n if ($signature === 'public') {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "945c4fe17491a64a9f491e450325bcaf", "score": "0.4672832", "text": "public function inNamespace()\n {\n return ( $this->getNamespaceName() !== '' );\n }", "title": "" }, { "docid": "ab6e89334a8623b30f55a56a34f0c937", "score": "0.46699405", "text": "protected function supports($attribute, $subject)\n {\n // if it doesn't contain '-can_' we don't care for it\n return strpos($attribute, '_can_') > 0;\n }", "title": "" }, { "docid": "641061f8234b81435b8afb630f856a4a", "score": "0.46616772", "text": "function valid_xname($name, $prefixes) {\n //\n //Step through the allowed prefixes\n foreach ($prefixes as $prefix) {\n //\n //If there is a direct match then that is a valid \n //identification index\n if ($name === $prefix) {\n return true;\n }\n //\n //Get the name suffix\n $suffix = substr($name, strlen($prefix));\n //\n //If the suffix numeric then the index name is valid\n if (is_numeric($suffix)) {\n return true;\n }\n }\n //\n //This is not an identication index\n return false;\n }", "title": "" }, { "docid": "5126dbf684a03e37cb2b6eb7df50e6e9", "score": "0.46498907", "text": "protected function hasPrefix()\n {\n return $this->isNotEmpty($this->getPrefix());\n }", "title": "" }, { "docid": "5e9cb446e453f7a05323e25e3df5369c", "score": "0.4644202", "text": "public function hasNickName() : bool;", "title": "" }, { "docid": "41f0b42d79746c3c803f91406cb6d537", "score": "0.46387386", "text": "function ifbanned($ip){\n if(!$banlist = @file(CONFIG_PATH . 'bans.ini')){\n $banlist = array();\n }\n foreach ($banlist as $banstring){\n $ban = '/^' . str_replace('*', '(\\d*)', str_replace('.', '\\\\.', trim($banstring))) . '$/';\n if(preg_match($ban, $ip)){\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "c851db3a46bd333b9dcbb6b474431cb4", "score": "0.46370962", "text": "public function hasConstraint($alias);", "title": "" }, { "docid": "9015e8dd7350c25473cf9cf817bda747", "score": "0.4629116", "text": "public function ssled($params) {\n //Prefix Specific Check - allow securing of entire admin in one swoop\n if( !empty($this->prefixes) && !empty($params['prefix']) && (in_array($params['prefix'], (array)$this->prefixes)) ) {\n return true;\n }\n\n\t\tif (!array_key_exists($params['controller'], $this->secured)) {\n\t\t\treturn false;\n\t\t}\n\t\t$actions = (array) $this->secured[$params['controller']];\n\n\t\tif ($actions === array('*')) {\n\t\t\treturn true;\n\t\t}\n\t\treturn (in_array($params['action'], $actions));\n\t}", "title": "" }, { "docid": "2a57cab757483d20c8b2ec04286abda4", "score": "0.4626562", "text": "protected function checkAbbreviation(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_string($this->_Abbreviation) && $this->_Abbreviation !== '' ) {\n\t\t\t$inMessage .= \"{$this->_Abbreviation} is not a valid value for Abbreviation\";\n\t\t\t$isValid = false;\n\t\t}\n\t\tif ( $isValid && strlen($this->_Abbreviation) > 50 ) {\n\t\t\t$inMessage .= \"Abbreviation cannot be more than 50 characters\";\n\t\t\t$isValid = false;\n\t\t}\n\t\tif ( $isValid && strlen($this->_Abbreviation) <= 1 ) {\n\t\t\t$inMessage .= \"Abbreviation must be more than 1 character\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}", "title": "" }, { "docid": "26b4ece9b3df82732fd0a12f60eb7094", "score": "0.46245363", "text": "function hasSubdomain($url) {\r\n $parsed = parse_url($url);\r\n $exploded = explode('.', $parsed[\"host\"]);\r\n return (count($exploded) > 2);\r\n}", "title": "" }, { "docid": "7d54e28deab8b2dc6583aa7a203002da", "score": "0.4619927", "text": "public function isApplicable(): bool\n {\n return Str::contains($this->expression, '*');\n }", "title": "" }, { "docid": "0804e67f0d384a1d22411c7d3493ae2d", "score": "0.46194443", "text": "function isValid() {\n\t\treturn( @BitBase::verifyId( $this->mSuggestionId ) && @BitBase::verifyId( $this->mContentId ));\n\t}", "title": "" }, { "docid": "058cbdd85cd9ac8ecb5bff25ae7c48c0", "score": "0.46185353", "text": "private function hasPrefix($data)\r\n {\r\n return (substr($data, $this->getPrefix()) !== false);\r\n }", "title": "" }, { "docid": "a29e1f876da234e407c631aa821a67d3", "score": "0.46176773", "text": "public function shouldCrawl(UriInterface $url): bool {\n $current_path = $url->getPath();\n $sub_domain = $this->isSubdomainOfHost($url);\n $paths = [\n '/locale/zh-CHT/itemtable.aspx',\n '/categoryofcorp.aspx',\n ];\n\n $flag = in_array($current_path, $paths);\n\n if (!$flag) {\n $prefix_path = '/locale/zh-CHT/category/';\n $flag = (substr($current_path, 0, strlen($prefix_path)) == $prefix_path);\n }\n\n return $sub_domain && $flag;\n }", "title": "" }, { "docid": "034d478877f1e7ca330a7e3a1fc70cd0", "score": "0.46169323", "text": "private function beginsWith($str, $sub)\n {\n return (strncmp($str, $sub, strlen($sub)) == 0);\n }", "title": "" }, { "docid": "99b805925b1f99d3e7a7bba7362d976f", "score": "0.46152574", "text": "public function isPublic(): bool;", "title": "" }, { "docid": "2b7a06f43851febc1e7cd42b390033ad", "score": "0.46124792", "text": "public static function isValid_SSN($afm='')\n \t{\n \t\tif(strlen($afm) != 9 || !is_numeric($afm))\n \t\t\treturn false;\n\n \t\t$last = $afm[8];\n\n \t\t$sum = $afm[0]*256 + $afm[1]*128 + $afm[2]*64 + $afm[3]*32 + \n \t\t $afm[4]*16 + $afm[5]*8 + $afm[6]*4 + $afm[7]*2;\n\n \t\treturn (($sum % 11) % 10) == $last;\n \t}", "title": "" }, { "docid": "527226fc2a9a5b276af652a285901a9a", "score": "0.4609962", "text": "private function includeSubDomains(): bool {\n return $this->config->get(self::INCLUDE_SUBDOMAINS_KEY, self::DEFAULT_INCLUDE_SUBDOMAINS);\n }", "title": "" }, { "docid": "ae1c8dbd1f1e4619df5d61dfaf1f218e", "score": "0.46064606", "text": "public function hasCertificate();", "title": "" }, { "docid": "5ac6969dd780365bd437e0402979cde6", "score": "0.4604121", "text": "public function isEnabledPrefix($prefix)\n\t{\n\t\treturn in_array($prefix, $this->prefixes);\n\t}", "title": "" }, { "docid": "6630584f9dd8c314dc8b84269943f589", "score": "0.46030635", "text": "public function hasNzb()\r\n\t{\r\n\t if ($this->getNzb()) {\r\n\t return true;\r\n\t }\r\n\t \r\n\t return false;\r\n\t}", "title": "" }, { "docid": "7ed0ed2578f25cccccc745cde72937dc", "score": "0.45983726", "text": "public function isPublicKey();", "title": "" }, { "docid": "7aa573b8bdc516290ca8b11e7aa48019", "score": "0.45951426", "text": "public function contains($substring);", "title": "" }, { "docid": "fe856298406168147d8f1541d9a979d7", "score": "0.4588477", "text": "public function hasReservedNameList()\n {\n return $this->reserved_name !== null;\n }", "title": "" }, { "docid": "2bb499c76a75c882eb29c089361f5297", "score": "0.45812792", "text": "public function supports(DnsUpstream $dnsUpstream): bool;", "title": "" }, { "docid": "2317053f0858a9f4233979530122662b", "score": "0.45810515", "text": "function wfIsIPPublic( $ip ) {\n\t$n = wfIP2Unsigned( $ip );\n\tif ( !$n ) {\n\t\treturn false;\n\t}\n\n\tstatic $privateRanges = false;\n\tif ( !$privateRanges ) {\n\t\t$privateRanges = array(\n\t\t\tarray( '10.0.0.0', '10.255.255.255' ), # RFC 1918 (private)\n\t\t\tarray( '172.16.0.0', '172.31.255.255' ), # \"\n\t\t\tarray( '192.168.0.0', '192.168.255.255' ), # \"\n\t\t\tarray( '0.0.0.0', '0.255.255.255' ), # this network\n\t\t\tarray( '127.0.0.0', '127.255.255.255' ), # loopback\n\t\t);\n\t}\n\n\tforeach ( $privateRanges as $r ) {\n\t\t$start = wfIP2Unsigned( $r[0] );\n\t\t$end = wfIP2Unsigned( $r[1] );\n\t\tif ( $n >= $start && $n <= $end ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "330614d6277ca40eb5c151dcd6a3e590", "score": "0.45800164", "text": "public function has($identifier);", "title": "" }, { "docid": "cb6724f422b7e99c887ad4400d1f8110", "score": "0.457776", "text": "public function inNamespace(): bool\n {\n $ns = $this->getNamespaceName();\n return !empty($ns);\n }", "title": "" }, { "docid": "1e994230d98e37acbb6df82770d30b64", "score": "0.45714253", "text": "static public function exist($nit){\n\t\tif($nit == '1725045-5')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "50108fe62c6ee3ae4428d732abb64fbb", "score": "0.4568184", "text": "public function isQualified() : bool {\n return 1 < count($this->parts);\n }", "title": "" }, { "docid": "d273ae78fc9c4a2bbbdcbc703f6850d9", "score": "0.4567531", "text": "private function requiresPublicKeyword() {\n return !($this->isHtml && $this->version == 5);\n }", "title": "" }, { "docid": "79a74ba1908a1eec1470c4647c283559", "score": "0.45632118", "text": "public function hasFan(AuthorInterface $auth)\n {\n return array_key_exists($auth->getNickname(), $this->fanList);\n }", "title": "" }, { "docid": "fa88b36c5daa4ac7cc4819da8ed56aa8", "score": "0.4563059", "text": "public function hasInDelegate(string $abstract): bool;", "title": "" }, { "docid": "11db3f5a6f25583a64893c86f16ee08b", "score": "0.4561647", "text": "abstract public function sectionExists ($name);", "title": "" } ]
98eefd715647754bfc8e2ca4f413f581
Grocery crud de grupos registrados
[ { "docid": "40840b2b2b6ce808ed9200f19f315f97", "score": "0.7016868", "text": "public function grupos()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n $crud = $this->new_crud();\n $crud->set_table('grupos');\n\n $output = $crud->render();\n $main_content = $this->load->view('catalogo/gc_output', $output, true);\n $this->template->setSubTitle('Configuración de grupos');\n $this->template->setMainContent($main_content);\n $this->template->getTemplate();\n } catch (Exception $e)\n {\n show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());\n }\n }", "title": "" } ]
[ { "docid": "7e90853002888ad5dccb8b696895d171", "score": "0.68966526", "text": "public function getGruposController(){\n\t\t$informacion = Crud::vistaXTablaModel(\"grupos\");//ejecucion del metodo del modelo\n\t\tif(!empty($informacion)){\n\t\t\t//si el resultado no esta vacio, imprimir los datos de los grupos\n\t\t\tforeach ($informacion as $row => $item) {\n\t\t\t\techo \"<tr>\";\n\t\t\t\techo \"<td>\".$item['id'].\"</td>\";\n\t\t\t\techo \"<td>\".$item['nombre'].\"</td>\";\n \t\techo \"<td>\".\"<a class='btn btn-secondary fa fa-edit' href=index.php?action=editar_grupo&id=\".$item['id'].\"></a></td>\";\n\t\t\t\t//mandar por propiedad onclick el id del elemento tag a para eleminarlo\n\t\t\t\t echo \"<td>\".\"<a class='btn btn-danger fa fa-trash' id='borrar_btn\".$item[\"id\"].\"' onclick='b(\".$item[\"id\"].\");' href='index.php?action=borrar&tipo=grupos&id=\".$item['id'].\"'></a></td>\"; \n \n echo \"</tr>\";\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "50831ce4285080c859c195d870fd820e", "score": "0.68938094", "text": "public function grupos()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n $crud = $this->new_crud();\n $crud->set_table('grupos');\n\n $output = $crud->render();\n $view['ficha_usuario'] = $this->ficha_usuario;\n $view['menu'] = $this->menu;\n $view['contenido'] = $this->load->view('catalogo/gc_output', $output, true);\n $main_content = $this->load->view('admin/admin', $view, true);\n $this->template->setMainContent($main_content);\n $this->template->getTemplate();\n } catch (Exception $e)\n {\n show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());\n }\n }", "title": "" }, { "docid": "ba1a0d24ccd7ef5974209196c7cdb352", "score": "0.6882349", "text": "public function index(){\n $crud = new Grocery_CRUD();\n #setada a tabela usuário para ser renderizada pelo grocery crud\n $crud->set_table(\"usuario\");\n #campos obrigatórios\n $crud->required_fields(\"nome\",\"login\",\"senha\",\"confirma\",\"tipo\",\"data_nascimento\");\n #campo login deve ser único\n $crud->unique_fields(\"login\");\n #alterando o tipo de campo que era texto para password\n $crud->field_type(\"senha\", \"password\");\n $crud->field_type(\"confirma\", \"password\");\n #isto valeria para todos os cruds\n #$crud->fields(\"nome\",\"login\");\n \n #exibe todos os campos da tabela. A ordem de exibição pode ser alterada. Foi criado um campo novo==> \"confirma\".\n #este campo confirma não existia no banco e não vai ser \n $crud->fields(\"nome\",\"login\",\"senha\",\"confirma\",\"tipo\",\"data_nascimento\");\n \n #mudar o texto que está no rótulo\n $crud->display_as(\"confirma\",\"confirma a senha\");\n \n #o campo corfirma, exibido como confirma senha deve ser igual ao campo senha. Tem que que ter no mínimo 4 caracteres\n $crud->set_rules(\"confirma\", \"confirma senha\", \"matches[senha]|min_length[4]\");\n \n #foi criada uma função que remove a confirmação de senha antes de mandar para o banco\n $crud->callback_before_insert(array($this,\"remove_confirma\"));\n \n #Muda o que aparece em cima de Adicionar Registro para Adicionar Usuário\n $crud->set_subject(\"Usuário\",\"Usuários\");\n \n $form = $crud->render(); \n \n $this->template->load(\"template/template_restrito\", \"crud/index\", $form);\n }", "title": "" }, { "docid": "697e100cf034c80ed70bb52f177cf8e8", "score": "0.6725061", "text": "public function registroGrupoController(){\n\t\tif(isset($_POST['btn_agregar'])){//verificar clic en el boton\n\t\t\t//crear array con los datos a registrar tomados de los controles\n\t\t\t$data = array('nombre'=> $_POST['nombre']\n\t\t\t\t\t);\n\t\t\t//peticion al modelo del reigstro del grupo mandando como param la informacion de este\n\t\t\t$registro = Crud::registroGrupoModel($data);\n\t\t\tif($registro == \"success\"){ //verificar la respuesta del modelo\n \t\t\techo \"<script>swal('Exito!','Grupo registrado','success');\n \t\t\t\t window.location='index.php?action=grupos';</script>\";\n\t\t\t}else{\n\t\t\t\techo \"<script>swal('Error','Ocurrió un error al registrar','error');</script>\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "88bc4e85e82799a5b5baffb9fda9af06", "score": "0.6703446", "text": "public function getGrupoController(){\n\t\t$id = (isset($_GET['id'])) ? $_GET['id'] : \"\"; //verificacion del id\n\t\t$peticion = Crud::getRegModel($id, 'grupos'); //peticion al modelo del registro especificado por el id\n\t\tif(!empty($peticion)){\n\t\t\techo \"\n\t\t\t\t<div class='form-group'>\n <p>\n <label>Id</label>\n <input type='text' class='form-control' name='id' value='\".$peticion['id'].\"' placeholder='' required='' readonly='true'>\n </p>\n </div>\n <div class='form-group'>\n <p>\n <label>Nombre</label>\n <input type='text' class='form-control' name='nombre' value='\".$peticion['nombre'].\"' placeholder='Ingresa el nombre del grupo' required=''>\n </p>\n </div>\n \";\n\t\t}\n\t}", "title": "" }, { "docid": "77c568176f54a93e06a8c935646eab2a", "score": "0.66212225", "text": "public function run()\n {\n grupo::create([ #id = 1\n \"alta_baja\"=>\"true\",\n \"descripcion\"=>\"Docentes de la FICCT\",\n \"nombre\"=>\"Docentes\",\n \"usuario\"=>\"miranda\",\n \"fechaR\"=>\"2019-07-10\"\n ]);\n\n grupo::create([ #id = 2\n \"alta_baja\"=>\"true\",\n \"descripcion\"=>\"JefeLab de la FICCT\",\n \"nombre\"=>\"Jefe Laboratorio\",\n \"usuario\"=>\"ali\",\n \"fechaR\"=>\"2018-05-14\"\n ]);\n grupo::create([ #id = 3\n \"alta_baja\"=>\"true\",\n \"descripcion\"=>\"Auxiliares de la FICCT\",\n \"nombre\"=>\"Auxiliares\",\n \"usuario\"=>\"sergio\",\n \"fechaR\"=>\"2020-02-01\"\n ]);\n }", "title": "" }, { "docid": "63b265e0678da878ef13811b78dcd1ad", "score": "0.6449122", "text": "public function grupos_usuarios()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n $crud = $this->new_crud();\n $crud->set_table('grupos_usuarios');\n\n $output = $crud->render();\n $view['ficha_usuario'] = $this->ficha_usuario;\n $view['menu'] = $this->menu;\n $view['contenido'] = $this->load->view('catalogo/gc_output', $output, true);\n $main_content = $this->load->view('admin/admin', $view, true);\n $this->template->setMainContent($main_content);\n $this->template->getTemplate();\n } catch (Exception $e)\n {\n show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());\n }\n }", "title": "" }, { "docid": "5795710c7d2a9ee5dfc6a287d208b339", "score": "0.63545775", "text": "public function index(){\n $crud = new grocery_CRUD();\n $crud->set_subject('Bancos');\n $crud->set_crud_url_path(base_url('banco/index'));\n\n $crud->set_table('banco');\n $crud->columns('nombre');\n $crud->display_as('nombre', 'Nombre');\n //$crud->unset_columns('idbanco');\n\n $crud->add_fields('nombre');\n $crud->edit_fields('nombre', 'idbanco');\n\n $crud->field_type('idbanco', 'hidden');\n //$crud->field_type('estado', 'dropdown', array('Umum' => 'Umum', 'Anak' => 'Anak', 'Bedah' => 'Bedah', 'Anastesi' => 'Anastesi', 'Obsgin' => 'Obsgin', 'Paru' => 'Paru', 'Penyakit Dalam' => 'Penyakit Dalam', 'Radiologi' => 'Radiologi'));\n \n\n $crud->required_fields('nombre');\n\n //$crud->callback_update(array($this,'funcion'));\n \n\n if($crud->getState() === 'insert_validation'){\n $crud->set_rules('nombre', 'Nombre', 'min_length[2]|callback_validar_add_nombre|required' );\n }\n //echo 'fffffffff'.$crud->getStateInfo()->primary_key;\n if($crud->getState() === 'update_validation'){\n $crud->set_rules('nombre', 'Nombre','trim|min_length[2]|callback_validar_edit_nombre|required');\n }\n $this->_example_output($crud);\n }", "title": "" }, { "docid": "45f293a31c7d1bf9de98202250437fc2", "score": "0.6341868", "text": "public function addUsersAction($groupeId)\n {\n /**********************DROIT SECTION************************/\n $requestDroit = Request::createFromGlobals();\n $droit = $requestDroit->query->get('droit');\n \n if ($droit == \"denied\") { // On test si user pour avoir accès à la section \n //throw new AccessDeniedException(\"Section autorisée uniquement pour les administrateurs!\");\n $this->get('session')->getFlashBag()->set('error', \"Vous n'avez pas les droits requis pour accéder à cette section!\"); \n } \n /***********************************************************/ \n \n $request = $this->get('request');\n\n $idUsers=$this->getRequest()->get('idUsers');\n\n //$idUsers = array (\"u136227\"); \n $groupe = $this->get('nipa_groupe.groupe_manager')->loadGroupe($groupeId);\n \n /******2e formulaire en ARGUMENT*****/\n $userManager = $this->get('fos_user.user_manager');\n $users = $userManager->findUsers(); // on accède aux service et on récupère les méthodes dans UserManager\n \n $formModal = $this->get('form.factory')->create(new SelectUserModalType(), $users);\n \n $options = $formModal->get('identifiant')->getConfig()->getOptions();\n $choices = $options['choice_list']->getChoices(); \n /************************************/ \n \n /******3e formulaire en ARGUMENT*****/ \n if($groupe->getPermission() == null)\n {\n $permission = new Permission();\n // On bind le groupe récupéré depuis la BDD au formulaire pour modification\n $formPermission = $this->get('form.factory')->create(new PermissionFormType(), $permission);\n }\n else\n {\n $permission = $groupe->getPermission();\n // On bind le groupe récupéré depuis la BDD au formulaire pour modification\n $formPermission = $this->get('form.factory')->create(new PermissionFormType(), $permission);\n }\n /************************************/ \n \n // Si le groupe soumet le formulaire\n //if ($request->getMethod() == 'POST') {\n if ('POST' == $request->getMethod()) {\n \n $formModal->submit($request->request->get($formModal->getName())); \n //$formModal->handleRequest($request);\n //if ($formModal->isValid()) {\n \n $em = $this->getDoctrine()->getEntityManager();\n //\\Doctrine\\Common\\Util\\Debug::dump($idUsers);\n\n for($i = 0;$i < count($idUsers); $i++)\n {\n\n $userManager = $this->get('fos_user.user_manager');\n $user = $userManager->findUserBy(array('Identifiant' => $idUsers[$i]));\n\n $groupe->addUtilisateurs($user);\n\n $em->flush();\n }\t\n \n $this->get('session')->getFlashBag()->set('success',\n $this->get('translator')->trans(count($idUsers).' utilisateur(s) ajouté(s) au groupe '.$groupe->getNom())\n );\n \n \n return new RedirectResponse($this->generateUrl('groupe_edit', array(\n 'groupeId' => $groupe->getId()\n ))); \n //}\n }\n\n return $this->render('NIPAUserBundle:Groupe:add.html.twig', array('form' => $form->createView(), 'formModal' => $formModal->createView(), 'formPermission' => $formPermission->createView(), 'groupe' => $groupe, 'choices' => $choices)); // On passe à Twig l'objet form et notre objet Groupe\n }", "title": "" }, { "docid": "1dd7e8deafb20c3fd02001631e35249a", "score": "0.63366395", "text": "public function creerAction()\n\t{\n\t\t$groupe = new GroupeContacts();\n\t\t\n\t\t$contacts = array();\n\t\t\n\t\tfor ($i=0; $i<10; $i++) {\n\t \t$member = new User();\n\t\t\t$member->setLastname(\"Messi\".$i);\n\t\t\t$member->setFirstname(\"Louis\".$i);\n\t\t\t$member->setSexe(\"M\");\n\t\t\t$contacts[] = $member;\n\t\t}\n\t\t\n\t\t$groupeForm = $this->createForm(new GroupeType(), $groupe);\n\t\n\t\treturn $this->render(\n\t\t\t\tConstViews::VIEW_FORM_NEW_GROUP,\n\t\t\t\tarray(\n\t\t\t\t\t\t$this::ATTRIBUTE_FORM => $groupeForm->createView(),\n\t\t\t\t\t\t'contacts' => $contacts\n\t\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "2e9cd824a965e36bc1e04ad0ae0152d7", "score": "0.63036186", "text": "public function create()\n {\n //\n\n return view(\"bpart.gall.create\");\n }", "title": "" }, { "docid": "12a90c308c560a72868919d92117dea6", "score": "0.62787145", "text": "public function Crud(){\n require_once 'view/include/cabecera_usuario.php';\n require_once 'view/registrar_gimnasio.php';\n require_once 'view/include/pie.php';\n }", "title": "" }, { "docid": "8e5997e9e994b34e1c580d95bddaf9cb", "score": "0.625937", "text": "public function create() {\n $grupos = Grupousuario::all()->sortBy('nombre')->pluck('nombre', 'id');\n return view('usuarios.usuarios.create')\n ->with('location', 'usuarios')\n ->with('grupos', $grupos);\n }", "title": "" }, { "docid": "1697f3ec87232989c47d907843875b02", "score": "0.6241776", "text": "public function run()\n {\n SupplierGroup::create([\n 'name' => 'punct de lucru / filiala',\n 'name_en' => 'company branch',\n 'user_id' => 1\n ]);\n\n SupplierGroup::create([\n 'name' => 'furnizor extern',\n 'name_en' => 'external supplier',\n 'user_id' => 1\n ]);\n }", "title": "" }, { "docid": "4f5ada0913deb56823ae356f9a6daa89", "score": "0.6237426", "text": "public function add_groupe_get(){\n $user = Auth::user();\n if($user->profil->intitule == \"administrateur\"){\n $parcours = Parcours::all();\n return response()->view('groupe/add_groupe', ['parcours'=>$parcours]);\n }\n return \"Vous êtes pas administrateur\";\n }", "title": "" }, { "docid": "f4d68c7e7c508a6dcc7bf4f712fcf474", "score": "0.6177091", "text": "public function regist(){\r\n\t\t$clsBelong = new BelongModel();\r\n\t\t$divisions = $clsBelong->list_division_tree();\r\n\r\n\t\treturn view('backend.users.regist', compact('divisions'));\r\n\t}", "title": "" }, { "docid": "9bd728653d622c5d0560a15fe760d518", "score": "0.61686546", "text": "public function servicios_grupos()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n $crud = $this->new_crud();\n $crud->set_table('servicios_grupos');\n\n $output = $crud->render();\n $view['ficha_usuario'] = $this->ficha_usuario;\n $view['menu'] = $this->menu;\n $view['contenido'] = $this->load->view('catalogo/gc_output', $output, true);\n $main_content = $this->load->view('admin/admin', $view, true);\n $this->template->setMainContent($main_content);\n $this->template->getTemplate();\n } catch (Exception $e)\n {\n show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());\n }\n }", "title": "" }, { "docid": "180a966411b998ba556969f0e39762b9", "score": "0.61471975", "text": "function registrarGenero() {\n\tconsultarGeneros();\n}", "title": "" }, { "docid": "180a966411b998ba556969f0e39762b9", "score": "0.61471975", "text": "function registrarGenero() {\n\tconsultarGeneros();\n}", "title": "" }, { "docid": "35e3d7834e1410faec86ad6381f06eed", "score": "0.61376154", "text": "function add()\n {\n if($this->acceso(41)){\n $this->load->model('Carrera_model');\n $data['all_carrera'] = $this->Carrera_model->get_all_carreras();\n\n $data['_view'] = 'grupo/add';\n $this->load->view('layouts/main',$data);\n }\n }", "title": "" }, { "docid": "a59653be013155be3039ac47722788ea", "score": "0.6136869", "text": "public function index() {\n\n\t\tif (!$this->session->is_authenticated() || !$this->session->is_admin())\n\t\t\tredirect('/admin/login');\n\t\t\t\n\t\tif (!$this->authentication->has_access($this->session->get_user_id(), $this->module_name, USER_TYPE_ADMIN))\n\t\t\tredirect('/admin/no_access');\n\t\t\n\t\t// BEGIN: Get administrator allowed operations\n\t\t$operations = $this->authentication->get_admin_operations($this->session->get_user_id(), $this->module_name);\n/*\n\t\tif (!$operations->add)\n\t\t\t$this->grocery_crud->unset_add();\n\t\tif (!$operations->edit)\n\t\t\t$this->grocery_crud->unset_edit();\n\t\tif (!$operations->delete)\n\t\t\t$this->grocery_crud->unset_delete();\n\t\t// END: Get administrator allowed operations\n\n\t\t$operation = $this->uri->segment(4);\n\t\t\t\n\t\t$this->grocery_crud->set_table('parameter');\n\t\t$this->grocery_crud->display_as('description', 'Descripción');\n\t\t$this->grocery_crud->display_as('value','Valor');\n\t\t$this->grocery_crud->set_subject('Parámetros');\n\t\t\n\t\tswitch ($operation)\n\t\t{\n\t\t\tcase 'edit':\n\t\t\t\t$this->grocery_crud->fields('descrpition', 'value');\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$this->grocery_crud->unset_add();\n\t\t$this->grocery_crud->unset_delete();\n\t\t$this->grocery_crud->unset_read();\n\t\t\n\t\t$this->grocery_crud->columns('description', 'value');\n\n\t\t// BEGIN: Callbacks\n\t\t$this->grocery_crud->callback_after_insert(array($this, 'after_insert'));\n\t\t$this->grocery_crud->callback_after_update(array($this, 'after_update'));\t\t\n\t\t$this->grocery_crud->callback_after_delete(array($this, 'after_delete'));\n\t\t// END: Callbacks\n\t\t\n\t\t$this->data_parts['content'] \t\t\t= $this->grocery_crud->render();\n\t\t$this->grocery_crud_content\t\t\t\t= $this->data_parts['content'];\n\t\t$this->data_parts['content']->js_files\t= array_merge($this->data_parts['content']->js_files, array(site_url('assets/js/ui.dropdownchecklist-1.4-min.js'), site_url('assets/js/users_management.js')));\n\t\t\n\t\t$this->data_parts['selected'] = $this->module_name;\n\t\t$this->load->view('screen',$this->data_parts);\n\n*/\n\t\t$this->add_js_url('parameter_configuration');\n\n\t\t$this->data_parts['table'] = $this->configuration_model->get();\n\t\t$this->data_parts['content'] = (object)array(\n\t\t\t\t'output' => $this->load->view('parameter_list',$this->data_parts, true) \n\t\t\t);\n\t\t$this->load->view('screen',$this->data_parts);\n\t}", "title": "" }, { "docid": "4f347ee15e678b9085c51d50fb1b7ef6", "score": "0.6120867", "text": "public function run()\n {\n GrupoDocumento::insert([\n ['GRD_Nombre' => 'INSTITUCIONAL', 'GRD_Descripcion' => 'Documentos institucionales'],\n ['GRD_Nombre' => 'FACULTAD DE CIENCIAS ADMINISTRATIVAS, ECONOMICAS Y CONTABLES', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE CIENCIAS AGROPECUARIAS', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE CIENCIAS DEL DEPORTE Y LA EDUCACION FISICA', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE CIENCIAS DE LA SALUD', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE CIENCIAS SOCIALES, HUMANIDADES Y CIENCIAS POLITICAS', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE EDUCACION', 'GRD_Descripcion' => 'Descripcion'],\n ['GRD_Nombre' => 'FACULTAD DE INGENIERIA', 'GRD_Descripcion' => 'Descripcion'],\n ]);\n }", "title": "" }, { "docid": "1ed7a5e1aab37b5be362c5a1336a8cb4", "score": "0.6106892", "text": "function agregar_registros(){\n\t$this -> set_response(\"view\");\n\t\n\t$registrosTemp = new registrosTemp();\n //Se guardan los registros\n\tif($_GET['tipoAccion'] == 1){\n\t $registrosTemp -> registro = $_GET['registro'];\n\t $registrosTemp -> tipo = \"1\";\n\t \n\t $registrosTemp -> save();\n\t}\n\t\n\t//Se eliminan los registros\n\tif($_GET['tipoAccion'] == 2){ \n $db = DbBase::raw_connect();\n\t $db->query(\"DELETE FROM registros_temp WHERE tipo = 1 AND registro = \".$_GET['registro']);\n\t}\n\t\n\t $this -> render_partial('generarReporte');\n }", "title": "" }, { "docid": "37f9efdd8dd347b8e0d58abc53a3d052", "score": "0.610291", "text": "public function create()\n {\n // return 'AdminRegistrationsController@create';\n\n // $types = Type::pluck('name', 'id')->all();\n $tasks = Task::pluck('name', 'id')->all();\n $degrees = Degree::pluck('name', 'id')->all();\n $provinces = Province::pluck('name', 'id')->all();\n $districts = District::pluck('name', 'id')->all();\n $sectors = Sector::pluck('name', 'id')->all();\n $cells = Cell::pluck('name', 'id')->all();\n $villages = Village::pluck('name', 'id')->all();\n $dioceses = Diocese::pluck('name', 'id')->all();\n $parishes = Parish::pluck('name', 'id')->all();\n $chapelles = Chapelle::pluck('name', 'id')->all();\n $zones = Zone::pluck('name', 'id')->all();\n $duties = Duty::pluck('name', 'id')->all();\n $jobs = Job::pluck('name', 'id')->all();\n $categories = Category::pluck('name', 'id')->all();\n // $services = Service::pluck('name', 'id')->all();\n $commissions = Commission::pluck('name', 'id')->all();\n $choirs = Choir::pluck('name', 'id')->all();\n $statuses = Status::pluck('name', 'id')->all();\n\n return view('admin.app.registration.create', compact('tasks', 'degrees', 'provinces', 'districts', 'sectors', 'cells', 'villages', 'dioceses', 'parishes', 'chapelles', 'zones', 'duties', 'jobs', 'categories', 'services', 'commissions', 'choirs', 'statuses'));\n }", "title": "" }, { "docid": "4269a0da64ceb9f35599841e6b4ae412", "score": "0.6097732", "text": "function registrarFamilia() {\n\tconsultarFamilias();\n}", "title": "" }, { "docid": "4269a0da64ceb9f35599841e6b4ae412", "score": "0.6097732", "text": "function registrarFamilia() {\n\tconsultarFamilias();\n}", "title": "" }, { "docid": "06c329e24807da7297256bac24c32210", "score": "0.6093992", "text": "public function run()\n {\n \\App\\Model\\Grupo::create([\n 'docente_id' => '1',\n 'aula' => 'Q7',\n 'grado' => 1,\n ]);\n\n \\App\\Model\\Grupo::create([\n 'docente_id' => '2',\n 'aula' => 'Q6',\n 'grado' => 3,\n ]);\n\n \\App\\Model\\Grupo::create([\n 'docente_id' => '3',\n 'aula' => 'Q5',\n 'grado' => 2,\n ]);\n }", "title": "" }, { "docid": "f4aa881326c85957557c8738197293af", "score": "0.60808396", "text": "public function addPermissionGroupeAction($groupeId)\n {\n /**********************DROIT SECTION************************/\n $requestDroit = Request::createFromGlobals();\n $droit = $requestDroit->query->get('droit');\n \n if ($droit == \"denied\") { // On test si user pour avoir accès à la section \n //throw new AccessDeniedException(\"Section autorisée uniquement pour les administrateurs!\");\n $this->get('session')->getFlashBag()->set('error', \"Vous n'avez pas les droits requis pour accéder à cette section!\"); \n } \n /***********************************************************/ \n \n $request = $this->get('request'); // On récupère l'objet request via le service container\n $groupe = $this->get('nipa_groupe.groupe_manager')->loadGroupe($groupeId);\n\n $form = $this->get('form.factory')->create(new GroupeFormType(), $groupe); // On bind l'objet Groupe à notre formulaire GroupeFormType\n\n /******2e formulaire en ARGUMENT*****/\n $userManager = $this->get('fos_user.user_manager');\n $users = $userManager->findUsers(); // on accède aux service et on récupère les méthodes dans UserManager\n \n // On bind le groupe récupéré depuis la BDD au formulaire pour modification\n $formModal = $this->get('form.factory')->create(new SelectUserModalType(), $users);\n \n $options = $formModal->get('identifiant')->getConfig()->getOptions();\n $choices = $options['choice_list']->getChoices(); \n /************************************/ \n \n /******3e formulaire en ARGUMENT*****/ \n if($groupe->getPermission() == null)\n {\n $permission = new Permission();\n // On bind le groupe récupéré depuis la BDD au formulaire pour modification\n $formPermission = $this->get('form.factory')->create(new PermissionFormType(), $permission);\n }\n else\n {\n $permission = $groupe->getPermission();\n // On bind le groupe récupéré depuis la BDD au formulaire pour modification\n $formPermission = $this->get('form.factory')->create(new PermissionFormType(), $permission);\n }\n /************************************/ \n \n if ('POST' == $request->getMethod()) { // Si on a posté le formulaire\n //$form->bindRequest($request); // On bind les données du form DEPRECATED\n $formPermission->submit($request->request->get($formPermission->getName())); \n //$formPermission->handleRequest($request);\n //if ($formPermission->isValid()) { // Si le formulaire est valide\n\n // On lie les permissions au groupe\n $groupe->setPermission($permission);\n\n // On récupère l'EntityManager\n $em = $this->getDoctrine()->getManager();\n\n // On « persiste » l'entité\n $em->persist($groupe);\n \n // On déclenche l'enregistrement\n $em->flush();\n \n $this->get('session')->getFlashBag()->set('notice',\n $this->get('translator')->trans('Permissions du groupe ajoutées')\n );\n \n // On redirige vers la page de modification du groupe\n return new RedirectResponse($this->generateUrl('groupe_edit', array(\n 'groupeId' => $groupe->getId()\n )));\n //}\n }\n \n return $this->render('NIPAUserBundle:Groupe:add.html.twig', array('form' => $form->createView(), 'formModal' => $formModal->createView(), 'formPermission' => $formPermission->createView(), 'groupe' => $groupe, 'choices' => $choices)); // On passe à Twig l'objet form et notre objet Groupe\n }", "title": "" }, { "docid": "a1ef9bd4bfc9e5b5dbe8a4727de6fc6d", "score": "0.6070508", "text": "public function run()\n {\n $g = new Group();\n $g->name =\"Accounting\";\n $g->save();\n $g = new Group();\n $g->name =\"Finance\";\n $g->save();\n $g = new Group();\n $g->name =\"Technology\";\n $g->save();\n $g = new Group();\n $g->name =\"Programming\";\n $g->save();\n $g = new Group();\n $g->name =\"Mobile Development\";\n $g->save();\n $g = new Group();\n $g->name =\"Human Resource (HR)\";\n $g->save();\n $g = new Group();\n $g->name =\"Frontend Developer\";\n $g->save();\n $g = new Group();\n $g->name =\"Software Engineer\";\n $g->save();\n }", "title": "" }, { "docid": "220cea41bbb19a7f5cf8140d44bcf7de", "score": "0.60533077", "text": "public function registrados() {\n $this->load->css(\"assets/themes/registro/style-tbl-part.css\");\n $data = array();\n\n $this->load->model(\"participante\");\n $data['list'] = $this->participante->findAll();\n\n $this->load->view(\"registro/admin/list-parti\", $data);\n }", "title": "" }, { "docid": "efcb46be0b6029a025718c7aea2e98f1", "score": "0.6022097", "text": "public function create()\n {\n // Check for correct user\n /*\n if (Auth::guard('web') -> check() or Auth::guard('responsavel') -> check()){\n return view('grupos.adicionarGrupo');\n }\n */\n if (Auth::guard('web') -> check()){\n return view('grupos.adicionarGrupo');\n }\n return redirect('/grupos') -> with('error', 'Página não autorizada');\n\n }", "title": "" }, { "docid": "7041bc33857c2e0b7a62ab1031fc6399", "score": "0.60098046", "text": "public function create()\n {\n $subgrupos = Subgrupo::orderBy('codigo','ASC')->pluck('codigo','id');\n return view('catalogo/articulos.create',compact('subgrupos'));\n }", "title": "" }, { "docid": "7ec3aa5dd2e8108c759a31898f205e97", "score": "0.6002977", "text": "function registrar_newgrupomateria()\n {\n if ($this->input->is_ajax_request())\n {\n $carrera_id = $this->input->post('carrera_id');\n $planacad_id = $this->input->post('planacad_id');\n $nivel_id = $this->input->post('nivel_id');\n $materia_id = $this->input->post('materia_id');\n $grupo_nombre = $this->input->post('grupo_nombre');\n \n $gestion_id = $this->session_data['gestion_id'];\n $usuario_id = $this->session_data['usuario_id'];\n \n $yaregistrado = false;\n $haygrupo = $this->Grupo_model->existe_grupomateria($materia_id, $gestion_id, $grupo_nombre);\n if($haygrupo['res'] >0){\n $yaregistrado = true;\n }\n \n if($yaregistrado == false){\n $params = array(\n 'gestion_id' => $gestion_id,\n 'usuario_id' => $usuario_id,\n 'materia_id' => $materia_id,\n 'grupo_nombre' => $grupo_nombre,\n );\n $grupo_id = $this->Grupo_model->add_grupo($params);\n \n echo json_encode(\"ok\");\n }else{\n echo json_encode(\"no\");\n }\n \n }\n else\n {\n show_404();\n }\n \n }", "title": "" }, { "docid": "4d4724a33c65da21df655e0107916dc9", "score": "0.59837914", "text": "function registrarOrden() {\n\tconsultarOrdenes();\n}", "title": "" }, { "docid": "4d4724a33c65da21df655e0107916dc9", "score": "0.59837914", "text": "function registrarOrden() {\n\tconsultarOrdenes();\n}", "title": "" }, { "docid": "5f584bd5c1908c1c3bf347153bec34c3", "score": "0.59823084", "text": "public function create()\n { \n $gc = new generalContainer;\n $gc->create = true;\n $gc->select = true;\n $gc->form = true;\n $gc->date = true;\n $gc->url_base = \"groups\";\n $gc->page_name = \"Crear nuevo grupo de alumnos\";\n $gc->page_description = \"Inserte los campos requeridos\";\n $gc->entity_to_edit = new Group;\n $gc->breadcrumb('groups.create');\n return view('cms.groups.form', compact('gc'));\n }", "title": "" }, { "docid": "93d9f430cdb885bd2d331ea029f00292", "score": "0.5965914", "text": "public function index()\n {\n if (!$this->ion_auth->logged_in()) {\n // redirect them to the login page\n redirect('auth/login', 'refresh');\n }\n $crud = new grocery_CRUD();\n\n $crud->set_theme('datatables');\n $crud->set_table('opinion');\n // $crud->set_relation('location', 'locations', 'loc_name');\n $crud->set_relation('location', 'locations', 'loc_name');\n $crud->set_relation('subject', 'subject', 'title');\n\n $crud->unset_columns(array('date_entered', 'surname'));\n //$crud->field_type('locations','dropdown',\n //array('1' => 'active', '2' => 'private','3' => 'spam' , '4' => 'deleted'));\n $output = $crud->render();\n\n\n $this->_example_output($output);\n\n }", "title": "" }, { "docid": "29a30ddd68e3c8aed353c9fdb965526d", "score": "0.5964865", "text": "public function formularioRelatorio() {\n\n $this->load->model('pessoas');\n $pessoas = new Pessoas();\n $rows = $pessoas->obterProfessor();\n\n $data[\"professores\"] = $rows->result();\n\n $this->load->view('formularioRelatorioReservas', $data);\n }", "title": "" }, { "docid": "fd23038130b8582e2bae14736dd8a9fb", "score": "0.59626716", "text": "public function run()\n {\n GrupoUsuario::create([\n 'descricao'=>'Administrador',\n 'id'=>1\n ]);\n GrupoUsuario::create([\n 'descricao'=>'Coordenador de Turnos',\n 'id'=>2\n ]);\n GrupoUsuario::create([\n 'descricao'=>'Professor',\n 'id'=>3\n ]);\n GrupoUsuario::create([\n 'descricao'=>'Assistente de Alunos',\n 'id'=>4\n ]);\n GrupoUsuario::create([\n 'descricao'=>'Coordenador de Curso',\n 'id'=>5\n ]);\n GrupoUsuario::create([\n 'descricao'=>'Diretor de Ensino',\n 'id'=>6\n ]);\n }", "title": "" }, { "docid": "5cbf0dc7bb726df3c97bf8cedb98cba6", "score": "0.59591264", "text": "function _Registros($Regs=0){\n\t\t// Creo grid\n\t\t$Grid = new nyiGridDB('ADMINISTRAR DEPARTAMENTOS Y ENVÍOS', $Regs, 'base_grid.htm');\n\t\t\n\t\t// Configuro\n\t\t$Grid->setParametros(isset($_GET['PVEZ']), 'nombre_departamento'); // Parametros de la sesion\n\t\t$Grid->setPaginador('base_navegador.htm');\n\t\t$Grid->setFrmCriterio('base_criterios_buscador.htm', array('nombre_departamento'=>'Nombre', 'costo_envio'=>'Costo de envío'));\n\t\n\t\t// Si viene con post\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\"){\n\t\t\t$Grid->setCriterio($_POST['ORDEN_CAMPO'],$_POST['ORDEN_TXT'],$_POST['CBPAGINA']);\n\t\t\tunset($_GET['NROPAG']);\n\t\t}\n\t\t\n\t\t// Numero de Pagina\n\t\tif (isset($_GET['NROPAG'])){\n\t\t\t$Grid->setPaginaAct($_GET['NROPAG']);\n\t\t}\n\t\t\t\n\t\t$campos = \"id_departamento AS id, nombre_departamento, costo_envio\";\n\t\t$from = \"departamento\";\n\t\t\t\n\t\t$Grid->getDatos($this->DB, $campos, $from);\n\t\t\n\t\t// Devuelvo\n\t\treturn($Grid);\n\t}", "title": "" }, { "docid": "4f0356d9c578194a6b5874d21df93e6e", "score": "0.5954031", "text": "public function run()\n {\n $user_ids=User::pluck('id')->toArray();\n Distribucion::create(['nombre'=>'Terraza','user_id'=>$user_ids[0]]);\n Distribucion::create(['nombre'=>'Barra','user_id'=>$user_ids[0]]);\n Distribucion::create(['nombre'=>'Interior','user_id'=>$user_ids[0]]);\n }", "title": "" }, { "docid": "efd9686b1ff1866ff6bf9acf637c8dba", "score": "0.5948435", "text": "public function index()\n {\n $groups = Group::where('classroom_flag',0)->where('identifier',0)->orderBy('name')->get();\n\n foreach ($groups as $group) {\n if($group->id_md5==\"\"){\n $group->id_md5 = Hashids::encode($group->id+1000);\n $group->save();\n }\n }\n\n $gc = new generalContainer;\n $gc->table = true;\n $gc->add_elements = true;\n $gc->msg_add_elements = \"Agregar alumnos\";\n $gc->url_base = \"groups\";\n $gc->groups = $groups;\n $gc->page_name = \"Lista de grupos de alumnos`\";\n $gc->page_description = \"Esta lista contiene la lista de grupos de alumnos\";\n $gc->breadcrumb('groups');\n return view('cms.groups.list', compact('gc'));\n }", "title": "" }, { "docid": "e0b6029a2096c877b5fdbea04eb710dd", "score": "0.594637", "text": "public function create()\n {\n return view('admin.grupo.create');\n }", "title": "" }, { "docid": "503cf62a7295a54143f59707b349bfa4", "score": "0.594553", "text": "public function create()\n {\n\t\t$grupomodulos = Grupomodulo::orderBy('nombre')->get();\n return view('glb.modulos.create', ['grupomodulos' => $grupomodulos]);\n }", "title": "" }, { "docid": "d1a6d657a8f48e673b6d2659025bc553", "score": "0.59453475", "text": "public function tag_crud() {\n\n $crud = new grocery_CRUD();\n\n $crud->set_theme('bootstrap-v4');\n $crud->set_table('tags');\n $crud->set_subject('Tags');\n $crud->columns('tag_id', 'name');\n\n $crud->callback_before_insert(array($this, 'category_iu_before_callback'));\n $crud->callback_before_update(array($this, 'category_iu_before_callback'));\n\n $crud->set_rules('name', 'Nombre', 'required|min_length[3]|max_length[100]');\n // $crud->set_field_upload('image', 'uploads/category');\n\n $crud->unset_jquery();\n $crud->unset_clone();\n $crud->unset_read();\n\n $output = $crud->render();\n $view[\"grocery_crud\"] = json_encode($output);\n $view['breadcrumb'] = breadcrumb_admin(\"tags\");\n $view[\"title\"] = \"Tags\";\n $this->parser->parse(\"admin/template/body\", $view);\n }", "title": "" }, { "docid": "6b9983d06b717319ab6fecd6d6c653a3", "score": "0.59314024", "text": "public function run()\n {\n\n $group_guest = App\\UserType::create(['group' => 'guest', 'name' => 'gast']);\n $group_user = App\\UserType::create(['group' => 'user', 'name' => 'gebruiker']);\n $group_admin = App\\UserType::create(['group' => 'admin', 'name' => 'administrator']);\n\n $function_adviseur = App\\UserFunction::create(['name' => 'adviseur']);\n $function_specialist = App\\UserFunction::create(['name' => 'specialist']);\n $function_projectondersteuner = App\\UserFunction::create(['name' => 'projectondersteuner']);\n $function_onderzoeksmedewerker = App\\UserFunction::create(['name' => 'onderzoeksmedewerker']);\n $function_laborant = App\\UserFunction::create(['name' => 'laborant']);\n $function_projectleider = App\\UserFunction::create(['name' => 'projectleider']);\n $function_overig = App\\UserFunction::create(['name' => 'overig']);\n\n App\\User::create([\n 'name' => 'admin',\n 'last_name' => 'portal',\n \t'mobile' => '000',\n \t'email' => 'admin@portal.lan',\n \t'password' => Hash::make('ABC@123'),\n \t'functions_id' => $function_overig->id,\n \t'user_type_id' => $group_admin->id,\n ]);\n\n }", "title": "" }, { "docid": "2111b986c7e89334ec66adf2d782ae09", "score": "0.59313864", "text": "public function user_management()\n {\n if ($this->session->userdata('logged_in') == 1 && $this->session->userdata('user_type') != 'Admin') {\n redirect('admin/member_panel', 'location');\n }\n \n $this->load->database();\n $this->load->library('grocery_CRUD');\n $crud = new grocery_CRUD();\n $crud->set_theme('flexigrid');\n $crud->set_table('users');\n $crud->order_by('id');\n $crud->where('deleted', '0');\n $crud->set_subject('User');\n\n $crud->fields('name', 'email', 'mobile', 'password', 'address', 'user_type', 'status');\n\n $crud->edit_fields('name', 'email', 'mobile', 'address', 'user_type', 'status');\n\n $crud->add_fields('name', 'email', 'mobile', 'password', 'address', 'user_type', 'status');\n\n $crud->required_fields('name', 'email', 'mobile', 'password', 'address', 'user_type', 'status');\n\n $crud->columns('name', 'email', 'mobile', 'address', 'status', 'user_type');\n\n $crud->display_as('name', 'Name');\n $crud->display_as('email', 'Email');\n $crud->display_as('mobile', 'Mobile');\n $crud->display_as('address', 'Address');\n $crud->display_as('status', 'Status');\n $crud->display_as('user_type', 'User Type');\n\n \n $crud->set_rules(\"email\",\"Email\",'callback_unique_email_check['.$this->uri->segment(4).']');\n\n\n $images_url = base_url(\"plugins/grocery_crud/themes/flexigrid/css/images/password.png\");\n $crud->add_action('Change User Password', $images_url, 'admin/change_user_password');\n\n $crud->callback_column('status', array($this, 'status_display_crud'));\n $crud->callback_field('status', array($this, 'status_field_crud'));\n\n $crud->callback_after_insert(array($this, 'encript_password'));\n \n \n $crud->unset_read();\n $crud->unset_print();\n $crud->unset_export();\n\n $output = $crud->render();\n $data['output']=$output;\n $data['page_title'] = 'User Management';\n $data['crud']=1;\n\n $this->_viewcontroller($data);\n }", "title": "" }, { "docid": "81fe207c1926e49de14989053e037c3e", "score": "0.592176", "text": "public function restituisciFormAggiungiPaziente() \n {\n $this->visualizzaTemplate(\"inserisciUtente\");\n }", "title": "" }, { "docid": "ad11384da853525f716e6ac6edba89fe", "score": "0.59138364", "text": "public function addgasto($type){\n \n if ($this->session->userdata('validated')) {\n \n /*valida que la peticion http sea POST*/\n if (!$this->input->post()){\n\n $this->module($info);\n\n } else {\n\n if ($this->MRecurso->validaRecurso(10)){\n \n /*Captura Variables*/\n $typeGasto = $this->input->post('tipo_gasto'); \n $dataProveedor = explode('|', $this->input->post('idproveedor'));\n $idProveedor = $dataProveedor[1];\n $nameGasto = strtoupper($this->input->post('describe_gasto'));\n $valueGasto = $this->input->post('valor_gasto');\n $nroFactura = $this->input->post('nro_factura');\n $date = new DateTime($this->input->post('fecha_pago')); \n $fechaPago = $date->format('Y-m-d');\n $stateGasto = $this->input->post('estado_gasto'); \n $idGasto = $this->input->post('id_gasto');\n $idCatGasto = $this->input->post('categoria_gasto');\n \n /*Consulta Modelo, datos para formulario*/\n $listTypeGasto = $this->MReport->list_type_gasto();\n $listStateGasto = $this->MReport->list_state_gasto();\n $listProveedores = $this->MReport->list_proveedor();\n $listCategoriaGasto = $this->MReport->list_categoria_gasto();\n $info['dataRow'] = 0;\n $info['listTypeGasto'] = $listTypeGasto;\n $info['listStateGasto'] = $listStateGasto;\n $info['listProveedores'] = $listProveedores;\n $info['listCategoria'] = $listCategoriaGasto;\n \n /*Valida si el Proveedor existe*/\n $validateProveedor = $this->MUser->verify_user($idProveedor);\n \n if ($validateProveedor != FALSE){\n \n if ($this->jasr->validaTipoString($nameGasto,1)){\n\n if ($this->jasr->validaTipoString($valueGasto,2)){\n \n if ($type == 1){\n \n /*Envia datos al modelo para el registro*/\n $registerDataGasto = $this->MReport->add_gasto($typeGasto,$idProveedor,$nameGasto,$valueGasto,$nroFactura,$fechaPago,$stateGasto,$type,null,$idCatGasto);\n\n if ($registerDataGasto == TRUE){\n\n $info['message'] = 'Gasto Registrado Exitosamente';\n $info['alert'] = 1;\n\n } else {\n\n $info['message'] = 'No fue posible registrar el Gasto';\n $info['alert'] = 2;\n\n }\n \n } else if ($type == 2){\n \n /*Envia datos al modelo para el actualizar el registro*/\n $updDataGasto = $this->MReport->add_gasto($typeGasto,$idProveedor,$nameGasto,$valueGasto,$nroFactura,$fechaPago,$stateGasto,$type,$idGasto,$idCatGasto);\n\n if ($updDataGasto == TRUE){\n\n $info['message'] = 'Gasto Actualizado Exitosamente';\n $info['alert'] = 1;\n\n } else {\n\n $info['message'] = 'No fue posible actualizar el Gasto';\n $info['alert'] = 2;\n\n }\n \n }\n \n \n $this->load->view('reports/report_gastos',$info);\n\n } else {\n\n $info['message'] = 'No fue posible registrar el gasto. Valor incorrecto.';\n $info['alert'] = 2;\n $this->load->view('reports/report_gastos',$info);\n\n }\n\n } else {\n\n $info['message'] = 'No fue posible registrar el gasto. Nombre incorrecto.';\n $info['alert'] = 2;\n $this->load->view('reports/report_gastos',$info);\n\n }\n \n } else {\n\n $info['message'] = 'El Proveedor no existe, por favor digite y seleccione de la lista.';\n $info['alert'] = 2;\n $this->load->view('reports/report_gastos',$info);\n\n }\n \n } else {\n \n show_404();\n \n }\n \n }\n \n } else {\n \n $this->index();\n \n }\n \n }", "title": "" }, { "docid": "2e9fd171da9d5ad8b66ca4efc97ef02a", "score": "0.5899266", "text": "public function create()\n {\n $usuarios = User::all();\n $url = 'grupousuarios';\n $modulo = '';\n $nombre = 'Grupos de Trabajos';\n\n return view('grupousuarios.create',compact('usuarios','url','modulo','nombre'));\n }", "title": "" }, { "docid": "c273a51e12502f4d4478d97371739d6d", "score": "0.5898896", "text": "public function agregar(){\r\n\t\t$accion \t\t= $this->tab['agregar'];\r\n\t\t$uri_view \t= $this->path.$this->submodulo.'_'.$accion;\r\n\t\t// Listas\r\n\t\t$dropArray = array(\r\n\t\t\t\t\t 'data'\t\t=> $this->db_model->db_get_proveedores()\r\n\t\t\t\t\t,'value' \t=> 'id_compras_proveedor'\r\n\t\t\t\t\t,'text' \t=> array('clave_corta','razon_social')\r\n\t\t\t\t\t,'name' \t=> \"id_proveedor\"\r\n\t\t\t\t);\r\n\t\t$proveedores = dropdown_tpl($dropArray);\r\n\r\n\t\t$dropArray2 = array(\r\n\t\t\t\t\t 'data'\t\t=> $this->sucursales_model->db_get_data()\r\n\t\t\t\t\t,'value' \t=> 'id_sucursal'\r\n\t\t\t\t\t,'text' \t=> array('cv_sucursal','sucursal')\r\n\t\t\t\t\t,'name' \t=> \"id_sucursal\"\r\n\t\t\t\t\t,'class' \t=> \"requerido\"\r\n\t\t\t\t\t,'event' => array('event' => 'onchange',\r\n\t\t\t\t \t\t\t\t\t\t 'function' => 'show_direccion',\r\n\t\t\t\t \t\t\t\t\t\t 'params' => array('this.value'),\r\n\t\t\t\t \t\t\t\t\t\t 'params_type' => array(0)\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t$sucursales\t = dropdown_tpl($dropArray2);\r\n\r\n\t\t$dropArray3 = array(\r\n\t\t\t\t\t 'data'\t\t=> $this->formas_de_pago_model->db_get_data()\r\n\t\t\t\t\t,'value' \t=> 'id_forma_pago'\r\n\t\t\t\t\t,'text' \t=> array('clave_corta','descripcion')\r\n\t\t\t\t\t,'name' \t=> \"id_forma_pago\"\r\n\t\t\t\t\t,'class' \t=> \"requerido\"\r\n\t\t\t\t);\r\n\t\t$forma_pago\t = dropdown_tpl($dropArray3);\r\n\r\n\t\t$dropArray4 = array(\r\n\t\t\t\t\t 'data'\t\t=> $this->creditos_model->db_get_data()\r\n\t\t\t\t\t,'value' \t=> 'id_administracion_creditos'\r\n\t\t\t\t\t,'text' \t=> array('clave_corta','credito')\r\n\t\t\t\t\t,'name' \t=> \"id_administracion_creditos\"\r\n\t\t\t\t\t,'class' \t=> \"\"\r\n\t\t\t\t);\r\n\t\t$creditos\t = dropdown_tpl($dropArray4);\r\n\r\n\t\t$dropArray5 = array(\r\n\t\t\t\t\t 'data'\t\t=> $this->db_model->db_get_tipo_orden()\r\n\t\t\t\t\t,'value' \t=> 'id_orden_tipo'\r\n\t\t\t\t\t,'text' \t=> array('orden_tipo')\r\n\t\t\t\t\t,'name' \t=> \"id_orden_tipo\"\r\n\t\t\t\t\t,'class' \t=> \"requerido\"\r\n\t\t\t\t\t,'event' => array('event' => 'onchange',\r\n\t\t\t\t \t\t\t\t\t\t 'function' => 'show_proveedor',\r\n\t\t\t\t \t\t\t\t\t\t 'params' => array('this.value'),\r\n\t\t\t\t \t\t\t\t\t\t 'params_type' => array(0)\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t$orden_tipo\t = dropdown_tpl($dropArray5);\r\n\t\t// Botones\r\n\t\t$btn_save = form_button(array('class'=>\"btn btn-primary\",'name' => 'save','onclick'=>'insert()' , 'content' => $this->lang_item(\"btn_guardar\") ));\r\n\t\t$btn_reset = form_button(array('class'=>\"btn btn-primary\",'name' => 'reset','value' => 'reset','onclick'=>'clean_formulario()','content' => $this->lang_item(\"btn_limpiar\")));\r\n\t\t// Etiquetas\r\n\t\t$tabData['proveedor'] \t\t\t= $this->lang_item(\"proveedor\",false);\r\n $tabData['list_proveedores']\t= $proveedores;\r\n $tabData['sucursal'] \t\t= $this->lang_item(\"sucursal\",false);\r\n $tabData['list_sucursales']\t\t= $sucursales;\r\n $tabData['forma_pago'] \t\t= $this->lang_item(\"forma_pago\",false);\r\n $tabData['list_forma_pago']\t\t= $forma_pago;\r\n $tabData['creditos'] \t\t= $this->lang_item(\"creditos\",false);\r\n $tabData['list_creditos']\t\t= $creditos;\r\n $tabData['descripcion'] \t= $this->lang_item(\"descripcion\",false);\r\n $tabData['fecha_registro'] \t= $this->lang_item(\"fecha_registro\",false);\r\n $tabData['registro_por'] \t\t= $this->lang_item(\"registro_por\",false);\r\n $tabData['timestamp'] \t= date('Y-m-d H:i');\r\n $tabData['orden_fecha'] \t= $this->lang_item(\"orden_fecha\",false);\r\n $tabData['entrega_direccion'] = $this->lang_item(\"entrega_direccion\",false);\r\n $tabData['entrega_fecha'] \t= $this->lang_item(\"entrega_fecha\",false);\r\n $tabData['prefactura_num'] \t= $this->lang_item(\"prefactura_num\",false);\r\n $tabData['observaciones'] \t= $this->lang_item(\"observaciones\",false); \r\n $tabData['orden_tipo'] \t\t= $this->lang_item(\"orden_tipo\",false);\r\n $tabData['list_orden_tipo']\t\t= $orden_tipo; \r\n $tabData['button_save'] \t= $btn_save;\r\n $tabData['button_reset'] \t= $btn_reset;\r\n // Respuesta\r\n if($this->ajax_post(false)){\r\n\t\t\t\techo json_encode($this->load_view_unique($uri_view , $tabData, true));\r\n\t\t}else{\r\n\t\t\treturn $this->load_view_unique($uri_view , $tabData, true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8315a1a78af5db65cf8862d994210488", "score": "0.58952004", "text": "public function run() {\n DB::table('grupo_riesgo')->insert(array(array(\n 'id' => 1,\n 'codigo' => 'A',\n 'descripcion' => 'Riesgos por areas',\n ), array(\n 'id' => 2,\n 'codigo' => 'N',\n 'descripcion' => 'Riesgos por niveles',\n )));\n }", "title": "" }, { "docid": "1a71d06d2549858debbfc77dee4cccd0", "score": "0.58808833", "text": "public function store(Request $request)\n {\n //new\n $grupo = new Grupo;\n $grupo->nome = $request->nome;\n $grupo->save();\n }", "title": "" }, { "docid": "c80d715b998bdf049d27a2f57b2b7dd8", "score": "0.587762", "text": "public function store(Request $request)\n {\n $grupos = new Grupos;\n\t\t\n\t\t$a = $request->input('codgrupo');\n\t\t$b = $request->input('idtipogrupo');\n\t\t$c = $request->input('idagnoestudio');\n\t\t$d = $request->input('idnumgrup');\n\t\t$s = $request->input('idsemestre');\n\t\t$g = Carrera::where('codgrupo', $a)->where('inactivo','<>',0)->pluck('id');\n\t\t$ag = Agnoestudio::where('valor', $c)->pluck('id');\n\t\t\n\t\t$grupos->grupo = \"2\".$a.$b.$c.$d;\n\t\t\n\t\tif($s == 1 and $ag == 2 and $b == 1){\n\t\t\t\n\t\t\t$grupos->grupo = \"2\".$a.\"7\".\"0\".$d;\n\t\t}\n\t\tif($s == 1 and $ag == 2 and $b == 2){\n\t\t\t$grupos->grupo = \"2\".$a.\"9\".\"0\".$d;\n\t\t}\n\t\t\n\t\t$sqlgrup = \\DB::table('grupos')->where('grupo','=', $grupos->grupo)->pluck('grupo');\n\t\t$grupos->idcarrera = $g;\n\t\t$grupos->idagnoestudio = $c;\n\t\t\n\t\t$grupos->codgrupo = $request->input('codgrupo');\n\t\t$grupos->idtipogrupo = $request->input('idtipogrupo');\n\t\t$grupos->idnumgrup = $request->input('idnumgrup');\n\t\techo $sqlgrup;\n\t\tif($sqlgrup == $grupos->grupo){\n\t\t\t\\Session::flash('alerta1','ERROR: Este grupo ya esta creado. Genere uno nuevo');\n \t\treturn \\Redirect::route('grupos.index');\n\t\t}\n\t\telse{\n\t\t\t$grupos->save();\n\t\t\treturn redirect()->back();\n\t\t}\n }", "title": "" }, { "docid": "680704d184c3253c08442bbfeb47721b", "score": "0.58668065", "text": "public function create()\n {\n $locataires = Locataire::all()->where('users_id', '==', Auth::id());\n $biens = Bien::with('pieces', 'locations', 'tbien')\n ->get()\n ->where('users_id', '==', Auth::id() And 'statut', '!==', 'Occupé');\n\n\n return response()->json([\n 'locataires' => $locataires,\n 'biens' => $biens\n ]);\n }", "title": "" }, { "docid": "96ea58d027e38730233c4f298b4aa04e", "score": "0.5850709", "text": "public function postRegistrar()\n{\n\n\n $userdata = array(\n 'documento' => Input::get('documento'),\n 'nombre'=> Input::get('nombre'),\n \t'apellido' => Input::get('apellido'),\n 'nacionalidad'=> Input::get('nacionalidad'),\n \t'telefono' => Input::get('telefono'),\n 'correo'=> Input::get('correo'),\n \t'direccion' => Input::get('direccion'),\n 'fechaNacimiento'=> Input::get('fechaNacimiento'),\n\t\t\t'estudiosRealizados' => Input::get('estudiosRealizados'),\n 'nivel'=> Input::get('nivel'),\n \t'cargo' => Input::get('cargo'),\n 'lugarEstudios'=> Input::get('lugarEstudios'),\n\t\t\t'tiempoTrabajo' => Input::get('tiempoTrabajo'),\n 'fechaIngresoTrabajo'=> Input::get('fechaIngresoTrabajo'),\n \t'valorNomina' => Input::get('valorNomina'),\n 'estadoCivil'=> Input::get('estadoCivil'),\n 'Grado_idGrado'=>Input::get('grado')\n );\nEmpleado::crearEmpleado($userdata);\nreturn Redirect::to('registroEmpleado')->with('success','Registro Exitoso');\n\n}", "title": "" }, { "docid": "d2ebf270f4d464b27814dc965fa218f8", "score": "0.58506346", "text": "public function registrarConductor(){\n $idConductor=$this->request->getPost('idConductor');\n $nombre=$this->request->getPost('nombre');\n $telefono=$this->request->getPost('telefono');\n $idContrato=$this->request->getPost('idContrato');\n\n //2. Armar un arreglos asociativo donde las claves\n //seran los nombres de las columnas o atributos de la tabla con los datos que llegan de la peticion\n\n $datosEnvio=array(\n \"idConductor\"=>$idConductor,\n \"nombre\"=>$nombre,\n \"telefono\"=>$telefono,\n \"idContrato\"=>$idContrato\n );\n\n //3. Ejecutamos validacion y agregamos el registro\n if($this->validate('conductores')){\n \n $this->model->insert($datosEnvio);\n $mensaje=array('estado'=>true,'mensaje'=>\"registro agregado con exito\");\n return $this->respond($mensaje);\n\n }else{\n $validation = \\Config\\Services::validation();\n return $this->respond($validation->getErrors(),400);\n\n }\n\n\n }", "title": "" }, { "docid": "efe282c586fcb0be0f7c8fe16dcff2b9", "score": "0.58473426", "text": "public function new_grup(){\n\t\t$this->load->model('m_pengguna','ma');\n\t\t$this->ma->get_privilege();\n\t\t$this->load->view('pengguna/gruppengguna/new_grup',$this->data);\t\n\t}", "title": "" }, { "docid": "213422c97ee7504c027fa1b22250ac86", "score": "0.5841441", "text": "public function run()\n {\n WarrantyGroup::create(['name' => 'Soporte TechGo']);\n WarrantyGroup::create(['name' => 'Garantías extendidas']);\n WarrantyGroup::create(['name' => 'Otros centros de soporte']);\n }", "title": "" }, { "docid": "204abd0a0fc347b32a772a4d7021028c", "score": "0.5841067", "text": "public function create()\n {\n //\n //entrega los tipos de gasto para crear el formulario\n return TipoDeGasto::all();\n }", "title": "" }, { "docid": "658ec2c4333b9616c0cd5aed6d39a040", "score": "0.58396935", "text": "public function store(){\n $json = $this->list();\n $bg = new BienesGenerales();\n\n $bg->id = $_REQUEST['id'];\n\n //? Busco mi elemento con el id y traigo sus datos\n $bien = $this->searchBienGeneral($bg->id, $json);\n\n $bg->direccion = $bien['Direccion'];\n $bg->ciudad = $bien['Ciudad'];\n $bg->telefono = $bien['Telefono'];\n $bg->codigo_postal = $bien['Codigo_Postal'];\n $bg->tipo = $bien['Tipo'];\n\n //* Damos formato al precio \n $precio = $bien['Precio'];\n\n $precio = str_replace(\",\",\".\",$precio);\n $precio = str_replace(\"$\",\"\",$precio);\n\n $bg->precio = $precio;\n\n if($this->model->Unico($bg->id)){\n $this->mensaje=array(\"Advertencia\", \"Ya fue registrado\");\n } else {\n $this->model->Registrar($bg);\n $this->mensaje=array(\"Guardado\", \"Registrado Correctamente\");\n }\n\n $this->index();\n }", "title": "" }, { "docid": "14e4bfe395017d58f7508d9a94c2c579", "score": "0.58384037", "text": "public function run()\n {\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 29;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU1';\n $table->SALON_1 = 'H204';\n $table->HR_2 = 'LU2';\n $table->SALON_2 = 'H204';\n $table->HR_3 = 'MI5';\n $table->SALON_3 = 'H204';\n $table->HR_4 = 'MI6';\n $table->SALON_4 = 'H204';\n $table->HR_5 = 'JU4';\n $table->SALON_5 = 'H111';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 30;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA1';\n $table->SALON_1 = 'C404';\n $table->HR_2 = 'MI1';\n $table->SALON_2 = 'C401';\n $table->HR_3 = 'MI2';\n $table->SALON_3 = 'C401';\n $table->HR_4 = 'JU3';\n $table->SALON_4 = 'C402';\n $table->HR_5 = 'VI3';\n $table->SALON_5 = 'C401';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 31;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU6';\n $table->SALON_1 = 'H221';\n $table->HR_2 = 'MA4';\n $table->SALON_2 = 'H101';\n $table->HR_3 = 'MI3';\n $table->SALON_3 = 'H215';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 32;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA6';\n $table->SALON_1 = 'C201';\n $table->HR_2 = 'VI1';\n $table->SALON_2 = 'C201';\n $table->HR_3 = 'VI2';\n $table->SALON_3 = 'C201';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 33;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU4';\n $table->SALON_1 = 'C222';\n $table->HR_2 = 'JU5';\n $table->SALON_2 = 'C321';\n $table->HR_3 = 'JU6';\n $table->SALON_3 = 'C321';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 34;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA8';\n $table->SALON_1 = 'D121';\n $table->HR_2 = 'MI8';\n $table->SALON_2 = 'D104';\n $table->HR_3 = 'JU7';\n $table->SALON_3 = 'D113';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 35;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA3';\n $table->SALON_1 = 'C101';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 36;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU3';\n $table->SALON_1 = 'C213';\n $table->HR_2 = 'JU1';\n $table->SALON_2 = 'C111';\n $table->HR_3 = 'JU2';\n $table->SALON_3 = 'C111';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 37;\n $table->grupo_id = 1;\n $table->HR_1 = 'MI7';\n $table->SALON_1 = 'H121';\n $table->HR_2 = 'VI7';\n $table->SALON_2 = 'H127';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 38;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA5';\n $table->SALON_1 = '';\n $table->HR_2 = 'VI8';\n $table->SALON_2 = '';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 39;\n $table->grupo_id = 1;\n $table->HR_1 = 'MA2';\n $table->SALON_1 = 'C413';\n $table->HR_2 = 'VI5';\n $table->SALON_2 = 'C413';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 40;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU9';\n $table->SALON_1 = 'A115';\n $table->HR_2 = 'MI4';\n $table->SALON_2 = 'A222';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 41;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU7';\n $table->SALON_1 = 'H221';\n $table->HR_2 = 'MA7';\n $table->SALON_2 = 'D121';\n $table->HR_3 = 'VI6';\n $table->SALON_3 = 'D127';\n $table->save();\n\n $table = new AsignaturaGrupo();\n $table->asignatura_id = 42;\n $table->grupo_id = 1;\n $table->HR_1 = 'LU8';\n $table->SALON_1 = 'D126';\n $table->HR_2 = 'MI9';\n $table->SALON_2 = 'D127';\n $table->HR_3 = 'JU8';\n $table->SALON_3 = 'D127';\n $table->save();\n }", "title": "" }, { "docid": "d10a6268070d63d337ea63b16b59ff1c", "score": "0.5836349", "text": "public function registro(){\n\t\t$pro['provedor'] = $this->proveedor->ver_proveedores();\n\t\t$this->load->view(\"Cuentas_pagar/Registrar_Cuentas_pagar.php\",$pro);\n\t}", "title": "" }, { "docid": "3ff9e1245f31b40876bb58b9521f0335", "score": "0.58350426", "text": "public function getCreate()\n {\n return view('core.grupos.create');\n }", "title": "" }, { "docid": "9d8fbd1571625dab8e6e9c7761c628f2", "score": "0.5834562", "text": "public function create()\n {\n $tipos = Tipo::all();\n $centros = Centro::all();\n $animales = Animal::all();\n $data[\"tipos\"] = $tipos;\n $data[\"centros\"] = $centros;\n $data[\"animales\"] = $animales;\n return view('privada.createGrafic', $data);\n }", "title": "" }, { "docid": "5ad544083761133dddb47f8f8fd9ae6d", "score": "0.58329433", "text": "public function run()\n\t{\n\t\t//administracion de usuarios\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"usarios\",\n\t\t\t\"slug\" => \"usuario.index\",\n\t\t\t\"descripcion\" => \"puede ver todos los usuario\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"usuario\",\n\t\t\t\"slug\" => \"usuario.update\",\n\t\t\t\"descripcion\" => \"puede cambiar los datos de todos los usuario\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"usuario\",\n\t\t\t\"slug\" => \"usuario.show\",\n\t\t\t\"descripcion\" => \"puede su informacion completa de un usuario\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"usuario\",\n\t\t\t\"slug\" => \"usuario.delete\",\n\t\t\t\"descripcion\" => \"Puede eliminar a cualquier usuario\",\n\t\t]);\n\t\t//grupos y privilegios\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"grupos y privilegios\",\n\t\t\t\"slug\" => \"grupo.index\",\n\t\t\t\"descripcion\" => \"Puede ver los grupos\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"grupos y privilegios\",\n\t\t\t\"slug\" => \"grupo.update\",\n\t\t\t\"descripcion\" => \"Puede actualizar los privilegios del los grupos\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"grupos y privilegios\",\n\t\t\t\"slug\" => \"grupo.delete\",\n\t\t\t\"descripcion\" => \"Puede eliminar los grupos\",\n\t\t]);\n\t\t//rutas de acceso\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Acceso a rutas\",\n\t\t\t\"slug\" => \"rutas.index\",\n\t\t\t\"descripcion\" => \"Puede ver la lista de rutas\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Acceso a rutas\",\n\t\t\t\"slug\" => \"rutas.show\",\n\t\t\t\"descripcion\" => \"Puede ver la lista de rutas de cada grupo\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Acceso a rutas\",\n\t\t\t\"slug\" => \"rutas.update\",\n\t\t\t\"descripcion\" => \"Puede actualizar las rutas de los grupos\",\n\t\t]);\n\t\t//Bitacora \n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Bitacora\",\n\t\t\t\"slug\" => \"bitacora.index\",\n\t\t\t\"descripcion\" => \"Puede ver la lista de bitacoras\",\n\t\t]);\n\t\t// Captura por empresa\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Captura por empresa\",\n\t\t\t\"slug\" => \"captura.index\",\n\t\t\t\"descripcion\" => \"Puede ver las lista de las capturas\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Captura por empresa\",\n\t\t\t\"slug\" => \"captura.update\",\n\t\t\t\"descripcion\" => \"puede editar las capturas\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Captura por empresa\",\n\t\t\t\"slug\" => \"captura.delete\",\n\t\t\t\"descripcion\" => \"puede eliminar las capturas\",\n\t\t]);\n\t\t// Indicador general\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Indicador general\",\n\t\t\t\"slug\" => \"indicador.index\",\n\t\t\t\"descripcion\" => \"Puede ver las lista de los indicadores\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"indicador general\",\n\t\t\t\"slug\" => \"indicador.update\",\n\t\t\t\"descripcion\" => \"puede editar las indicadores\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"indicador general\",\n\t\t\t\"slug\" => \"indicador.delete\",\n\t\t\t\"descripcion\" => \"puede eliminar los indicadores\",\n\t\t]);\n\t\t// Permisos para subir archivos o ver archivos subidos\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Gestion de documentos\",\n\t\t\t\"slug\" => \"documento.generate\",\n\t\t\t\"descripcion\" => \"Generar archivo que ha guardado en captura por empresa\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Gestion de documentos\",\n\t\t\t\"slug\" => \"documento.store\",\n\t\t\t\"descripcion\" => \"Puede subir documentos firmados\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Gestion de documentos\",\n\t\t\t\"slug\" => \"documento.own.show\",\n\t\t\t\"descripcion\" => \"Puede ver sus archivos que el usuario ha subido\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Gestion de documentos\",\n\t\t\t\"slug\" => \"documento.show\",\n\t\t\t\"descripcion\" => \"Puede ver todos los archivos subidos\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"Gestion de documentos\",\n\t\t\t\"slug\" => \"documento.own.update\",\n\t\t\t\"descripcion\" => \"Puede actualizar sus archivos que el usuario ha subido\",\n\t\t]);\n\t\t// enlaces operation\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"enlace\",\n\t\t\t\"slug\" => \"enlace.index\",\n\t\t\t\"descripcion\" => \"Puede ver todos los municipios\",\n\t\t]);\n\t\tPermiso::create([\n\t\t\t\"nombre\" => \"enlace\",\n\t\t\t\"slug\" => \"enlace.store\",\n\t\t\t\"descripcion\" => \"Puede crear un nuevo enlace\",\n\t\t]);\n\t}", "title": "" }, { "docid": "37616247c9825e31ce6bc7a4fc11dbc8", "score": "0.5825947", "text": "public function setGrupo(Request $request){\n $input = $request->all();\n $id = $input['id'];\n $registro = Grupo::find($id);\n if($registro){\n $registro->Nombre = $input['nombre'];\n if($registro->save()){\n return response()->json(['code' => 200,'grupo'=>$registro]);\n }else{\n return response()->json(['code' => 500]);\n }\n }else{\n return response()->json(['code' => 600]);\n }\n }", "title": "" }, { "docid": "d049006c3333eaba0f281151058557e4", "score": "0.58217573", "text": "public function run()\t\n {\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 1, 'institucion_id' => 1]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 2, 'institucion_id' => 1]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 3, 'institucion_id' => 1]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 3, 'institucion_id' => 2]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 4, 'institucion_id' => 3]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 5, 'institucion_id' => 4]);\n \tApp\\GradoAcademicoInstitucion::create(['grado_academico_id' => 6, 'institucion_id' => 4]);\n }", "title": "" }, { "docid": "044b4ce3c776658363e9a3edf2960700", "score": "0.58200675", "text": "public function store(Request $request)\n {\n //1) Validacion de datos\n\n $validation =Validator::make($request->all(),[\n 'ciclo_id' => 'required',\n 'escuela_id' => 'required',\n 'clasificacion_id' => 'required',\n 'grupo_nombre' => 'required',\n 'grupo_alumnospermitidos' => 'required'\n ]);\n\n //1.1) La validadcion de datos fue correcta\n if($validation->passes()){\n\n //1.2) Verificar duplicados en base a: Escuela, Ciclo, Clasificacion y Nombre de grupo\n\n $grupo = Grupo::where('grupo_status', true)\n ->where('ciclo_id', $request->get('ciclo_id'))\n ->where('escuela_id', $request->get('escuela_id'))\n ->where('clasificacion_id', $request->get('clasificacion_id'))\n ->where('grupo_nombre', mb_convert_case(trim($request->get('grupo_nombre')),MB_CASE_UPPER, \"UTF-8\"))\n ->first();\n\n //Establecer el valor del campo 'grupo_disponible'\n if($request->get('grupo_disponible')===\"on\")\n {\n $grupo_disponible = true;\n }\n else{\n $grupo_disponible = false;\n }\n\n if($grupo===null)\n {\n //1.3) Sí pasa la validacion, y el grupo no existe, procedemos a guardar el registro\n\n $now = Carbon::now('America/Mexico_City Time Zone');\n\n\n $grupo = new Grupo();\n $grupo->ciclo_id = $request->get('ciclo_id');\n $grupo->escuela_id = $request->get('escuela_id');\n $grupo->clasificacion_id = $request->get('clasificacion_id');\n $grupo->grupo_nombre = mb_convert_case(trim($request->get('grupo_nombre')),MB_CASE_UPPER, \"UTF-8\");\n $grupo->grupo_alumnospermitidos = $request->get('grupo_alumnospermitidos');\n $grupo->grupo_disponible = $grupo_disponible;\n $grupo->grupo_status = true;\n $grupo->created_at = $now;\n $grupo->updated_at = $now;\n\n $grupo->save();\n\n return response()->json([\n 'success' => true,\n 'message' => 'Los datos se han guardado correctamente.'\n ], 200);\n\n\n }\n else\n {\n return response()->json([\n 'extra' => true,\n 'success' => false,\n 'message' => 'El grupo que trata de crear ya existe'\n ], 422);\n\n }\n\n\n }\n\n //No se cumplieron las reglas de validacion de los datos\n $errors = $validation->errors();\n $errors = json_decode($errors);\n\n return response()->json([\n 'extra' => false,\n 'success' => false,\n 'message' => $errors\n ], 422);\n\n }", "title": "" }, { "docid": "9b9c86efbe31d3ef707d9ef15fd4ad85", "score": "0.58141094", "text": "public function grupa($idGru) {\n\n $this->load->model('OglasiModel');\n $this->load->model('VestiModel');\n $this->load->model('ObavModel');\n\n $tipKorisnika = $this->session->userdata('user')['tip'];\n\n\n $clanovi = $this->GrupeModel->dohvatiClanove($idGru);\n $diskusijeGrupe = $this->DiskusijeModel->dohvatiDiskusijeGrupe($idGru, $tipKorisnika);\n $oglasiGrupe = $this->OglasiModel->dohvatiOglaseGrupe($idGru);\n $vestiGrupe = $this->VestiModel->dohvatiVestiGrupe($idGru);\n $obavestenjaGrupe = $this->ObavModel->dohvatiObavestenjaGrupe($idGru);\n $kategorije = $this->DiskusijeModel->dohvatiKategorije();\n $katVesti = $this->VestiModel->dohvatiKategorijeVesti();\n $kursevi = $this->SifrarniciModel->dohvatiKurs();\n $grupa = $this->GrupeModel->dohvatiGrupe();\n\n $data['middle'] = 'grupe/grupa';\n $data['middle_data'] = ['clanovi' => $clanovi, 'diskusijeGrupe' => $diskusijeGrupe,\n 'oglasiGrupe' => $oglasiGrupe, 'vestiGrupe' => $vestiGrupe,\n 'obavestenjaGrupe' => $obavestenjaGrupe, 'kategorije' => $kategorije,\n 'katVesti' => $katVesti, 'kursevi' => $kursevi, 'grupa' => $grupa];\n $this->load->view('viewTemplate', $data);\n }", "title": "" }, { "docid": "9e6080ad1b880f7e39d932f1a9bdae0a", "score": "0.58124554", "text": "public function create()\n {\n $registros = registro::orderBy('user_id')->pluck('user_id','id');\n \n return view('admin.registros.create',compact('registros'));\n }", "title": "" }, { "docid": "29fbaa700acfa90cdec34614cb14817c", "score": "0.5810332", "text": "public function insert(Request $request){\n $this->validate($request,[\n 'grupo' => 'required',\n ]);\n $grupo_name = strtoupper($request->input('grupo'));\n $proteias = $request->input('proteinas');\n $energia = $request->input('energia');\n $grasas = $request->input('grasas');\n $carbo = $request->input('carbohidratos');\n\n $grupo = new Grupo();\n $grupo->grupo = $grupo_name;\n $grupo->proteinas = $proteias;\n $grupo->energia = $energia;\n $grupo->grasas = $grasas;\n $grupo->carbohidratos = $carbo;\n $grupo->save();\n\n return response()->json([\n 'status' => 'OK',\n 'code' => 200,\n 'result' => 'Se registro el grupo correctamente'\n ],200)\n ->header('Access-Control-Allow-Origin','*')\n ->header('Content-Type', 'application/json');\n\n }", "title": "" }, { "docid": "df28e43626327730393590d800ed23df", "score": "0.5807735", "text": "public function create()\n {\n $ciclo = $this->cicloEscolarPredeterminado();\n\n $escuelas = Escuela::where('escuela_status', true)\n ->get();\n\n //return dd($ciclo);\n return view('grupos.create', compact('ciclo','escuelas'));\n }", "title": "" }, { "docid": "7b3289b1bea1dda42d14ff23725fb06f", "score": "0.5806608", "text": "public function run()\n {\n //\n/*\n for ($i = 1 ; $i<= 5; $i++){\n foreach (['Lactantes','Maternales','Preescolares'] as $j){\n foreach (['A','B'] as $k){\n Grupo::create([\n 'nombre' => $j.\" \".$k,\n 'next' => 0,\n 'cupo' => 30 ,\n 'cendi' => $i,\n 'nivel' => 0\n\n ]);\n }\n }\n }*/\n\n\n\n\n\n }", "title": "" }, { "docid": "60ffa0ce00b4f6d4a2e291a43febe9fd", "score": "0.5804594", "text": "public function run(){ \n App\\Models\\GrupoAtendimento::create([\n 'nome' => 'Infra Estrutura',\n 'desc' => str_random(1000) \n ]);\n App\\Models\\GrupoAtendimento::create([\n 'nome' => 'Sistemas',\n 'desc' => str_random(1000) \n ]);\n }", "title": "" }, { "docid": "260067d67132627ac37136b903b29f7f", "score": "0.57972616", "text": "public function actionCreate()\n {\n $model = new Regularity();\n $model->loadDefaultValues(); //load default data from db\n $model->user_id = Yii::$app->user->identity->id;\n if ($model->load(Yii::$app->request->post()) && RegularityAndItemPictureService::save($model)) {\n return $this->redirect('/core/regularity');\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d690240e3e0bd167e3f51ade72e1c19f", "score": "0.57951313", "text": "public function create()\n {\n $indicador_modulo = 17;\n $route = [ 'route' => 'red-conocimiento.store','method'=>'POST' ];\n $nombre_profesor = Profesor::all()->lists('full_name', 'id');\n return view('componentes.red_conocimiento.addred', compact('route', 'nombre_profesor', 'indicador_modulo'));\n }", "title": "" }, { "docid": "e4f233fa562e2594c99dcdb83a2eb40f", "score": "0.5790107", "text": "public function ajaxgravagrupoAction()\r\n {\r\n $this->_helper->layout->disableLayout();\r\n \r\n if(!$this->possuiPermissao('cadastrargrupoacesso') || !$this->possuiPermissao('editargrupoacesso'))\r\n $this->_redirect (\"sistema/logado\");\r\n \r\n $this->view->erros = '';\r\n $teste = '';\r\n \r\n $parametros = $this->_getAllParams();\r\n \r\n //Se tiver idGrupo, significa q esta no editar, entao deve-se deletar\r\n if(isset($parametros['idGrupo'])){\r\n \r\n //deleta o grupo de acesso\r\n $teste = $this->_grupo_de_acesso->gravar(array('nome'=>$parametros['nome']),true,'id_grupo_de_acesso='.$parametros['idGrupo']);\r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;\r\n\r\n $id_grupo = $parametros['idGrupo'];\r\n\r\n // deleta o usuario logado ao grupo criado\r\n $teste = $this->_usuario_grupo->deletarTodosGrupo(array('id_grupo_de_acesso=?'=>$id_grupo));\r\n\r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;\r\n\r\n // deleta as funcionalidade ao grupo\r\n $teste = $this->_grupo_funcionalidade->deletar(array('id_grupo_de_acesso=?'=>$id_grupo));\r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;/**/\r\n \r\n }\r\n else\r\n {\r\n //salva o grupo de acesso\r\n $teste = $this->_grupo_de_acesso->gravar(array('nome'=>$parametros['nome']));\r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;\r\n\r\n $id_grupo = $teste;\r\n }\r\n \r\n \r\n // Inserir o usuario logado ao grupo criado\r\n $teste = $this->_usuario_grupo->gravarNovo(array('id_usuario'=>$this->_id_usuario,'id_usuario_pai'=>$this->_id_usuario,'id_grupo_de_acesso'=>$id_grupo));\r\n \r\n \r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;\r\n \r\n // Inserir as funcionalidade ao grupo\r\n $teste = $this->_grupo_funcionalidade->gravar($id_grupo, $parametros['id_funcionalidades'],(isset($parametros['funcionalidade_editar']))?$parametros['funcionalidade_editar']:array('funcionalidade_editar'=>','),(isset($parametros['funcionalidade_deletar'])?$parametros['funcionalidade_deletar']:array('funcionalidade_deletar'=>',')),(isset($parametros['funcionalidade_liberar'])?$parametros['funcionalidade_liberar']:array('funcionalidade_liberar'=>',')),$parametros['idPai'],$this->_permissoes);\r\n if(is_string($teste))\r\n $this->view->erros .= \" \".$teste;/**/\r\n \r\n }", "title": "" }, { "docid": "d203e2415b74689487ecd333be42745c", "score": "0.57723576", "text": "public function create()\n {\n $data['banks'] = bank::all(['id','bank_title']);\n $data['states'] = state::where(\"country_id\",'1')->get([\"state_name\",\"id\"]);\n $data['pos_incomes'] = pos_income::all(['id','title']);\n $data['user_types'] = user_type::where(\"admin_access\",\"y\")->get(['id','title']);\n $data['fin_products'] = fin_product::all(['id','product_name']);\n return view('crm.admincreate', $data);\n }", "title": "" }, { "docid": "fffbfd407e93f8c34757db80255820c0", "score": "0.5770525", "text": "public function registros()\n {\n return view('debitos.registros');\n }", "title": "" }, { "docid": "4bdda1aef24bf0308a20746f7208bb4f", "score": "0.5764211", "text": "public function create()\n {\n\n //get custom fields\n return view('beneficiary.group.create', compact(''));\n }", "title": "" }, { "docid": "405f8c64f543c92e22984f8f4562ea02", "score": "0.57632905", "text": "public function run()\n {\n //Insercion de 20 clientes\n\t\tfactory(App\\User::class, 1)->create([\n\t\t\t'email' => 'customer1@mail.com',\n \t]);\n \tfactory(App\\User::class, 19)->create();\n\n //Insercion de producto para el paso de pruebas\n factory(App\\Product::class, 1)->create([\n 'name' => 'Cristian Keebler'\n ]);\n \n //Insercion de 30 productos\n \tfactory(App\\Product::class, 30)->create();\n\n //Insertando 20 compras\n factory(App\\Purchase::class, 20)->create();\n\n //Creacion de cupones para pruebas\n Coupon::create([\n 'code' => 'Cupon01',\n 'amount' => '15.0'\n ]);\n\n Coupon::create([\n 'code' => 'Cupon02',\n 'amount' => '10.0'\n ]);\n\n Coupon::create([\n 'code' => 'Cupon03',\n 'amount' => '5.0'\n ]);\n\n Coupon::create([\n 'code' => 'Cupon04',\n 'amount' => '20.0'\n ]);\n\n Coupon::create([\n 'code' => 'Cupon05',\n 'amount' => '8.0'\n ]);\n\n }", "title": "" }, { "docid": "4f0853d30fdf11dc1fac04b5e09d1be3", "score": "0.5762132", "text": "public function run()\n {\n DB::table('proveedoressucursales')->insert([\n \t'idActividadGrupos' => mt_rand(1,4),\n \t'nomProveedorSucursal' => Str::random(10),\n \t'calleProveedorSucursal' => Str::random(10),\n \t'nextProveedorSucursal' => Str::random(10),\n \t'nintProveedorSucursal' => Str::random(10),\n \t'colProveedorSucursal' => Str::random(10),\n \t'munProveedorSucursal' => Str::random(10),\n \t'estadoProveedorSucursal' => Str::random(10),\n \t'cpProveedorSucursal' => mt_rand(10000,99999),\n \t'esActivo' => 1,\n \t'emailProveedorSucursal' => Str::random(10).'@gmail.com',\n \t'telProveedorSucursal' => mt_rand(100000000000,999999999999),\n \t'latitud' => mt_rand(-999999,999999),\n \t'longitud'=> mt_rand(-1000000000,9999999999),\n \t'creadoPor' => Str::random(10),\n \t'editadoPor' => Str::random(10),\n ]);\n }", "title": "" }, { "docid": "f48dde0043fd57b5cbe260c6abed270b", "score": "0.5758863", "text": "public function run()\n {\n solicitudType::create(['name'=>'Proveedor Nacional','orderBy'=>1]);\n solicitudType::create(['name'=>'Proveedor Nacional Materia Prima','orderBy'=>2]);\n solicitudType::create(['name'=>'Proveedor Extranjero','orderBy'=>3]);\n solicitudType::create(['name'=>'Proveedor Extranjero Materia Prima','orderBy'=>4]);\n solicitudType::create(['name'=>'Cliente Nacional','orderBy'=>5]);\n solicitudType::create(['name'=>'Cliente Extranjero','orderBy'=>6]);\n solicitudType::create(['name'=>'Artículo','orderBy'=>7]);\n solicitudType::create(['name'=>'Usuario','orderBy'=>8]);\n }", "title": "" }, { "docid": "6d71bfce2f8123dbfadc16ee64c031a4", "score": "0.57570666", "text": "public function altagrupos()\n {\n\t\t //select * from carreras where activo = 'si'\n\t // group by nombre asc\n\t\t \n\t $clavequesigue = grupos::withTrashed()->orderBy('id_grupo','desc')\n\t\t\t\t\t\t\t\t->take(1)\n\t\t\t\t\t\t\t\t->get();\n\t if (count($clavequesigue)==0)\n\t {\n\t\t $idg = 1;\n\t }\n\t else\n\t {\n $idg = $clavequesigue[0]->id_grupo+1;\n }\n\t $grados = grados::withTrashed()->orderBy('grado','asc')\n\t\t\t\t\t\t ->get();\n\t //return $carreras;\n return view (\"sistema.altagrupos\")\n\t \n\t\t\t->with('grados',$grados)\n\t\t\t->with('idg',$idg);\n }", "title": "" }, { "docid": "3eba548b723d707cfadbf2cd7e218acb", "score": "0.57567513", "text": "function get_grupos()\n\t{\n\t\t// Create a temporary user object\n\t\t$e = new Grupo();\n\t\t$e->where('estatus_general_id', \"1\");\n\n\t\t//Buscar en la base de datos\n\t\t$e->get();\n\t\tif($e->c_rows>0){\n\t return $e;\n\t\t} else {\n\t return FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "47246e9bda7b633a93a2715357b91b56", "score": "0.5754247", "text": "public function agregar_grupo(){\n\n\t if($_POST)\n\t {\n\t \t$datos=$_POST['parametros'];\n\n\t \t$result = $this->Equipos->agregar_grupos($datos);\n\n\t \tif($result)\n\t \t\techo $this->db->insert_id();\n\t \telse echo 0;\n\t }\n \t}", "title": "" }, { "docid": "6688e43c673b6cf69e9aa7f7caeee250", "score": "0.57540345", "text": "public function storegrupousuario(Request $request)\n {\n if (isset($request->identificacion)) {\n if (count($request->identificacion) > 0) {\n foreach ($request->identificacion as $key => $value) {\n $gu = null;\n $gu = new Contratogrupou();\n $gu->identificacion = $value;\n $gu->persona = strtoupper($request->persona[$key]);\n $gu->contrato_id = $request->id;\n $gu->save();\n }\n }\n }\n return redirect(\"cte_contratos/\" . $request->id . \"/show\" . $request->variables_url)->with('flash_message', 'Usuarios procesados');\n }", "title": "" }, { "docid": "1364207ff229f51810e651e6747c22c1", "score": "0.575244", "text": "public function run()\n {\n UserGroup::create([\n 'name' => 'Aluno',\n ]);\n\n UserGroup::create([\n 'name' => 'Coordenador',\n ]);\n\n UserGroup::create([\n 'name' => 'Administrador_Instituicao',\n ]);\n\n UserGroup::create([\n 'name' => 'Administrador_Geral',\n ]);\n }", "title": "" }, { "docid": "ccdf77d115aaaf25f549e2f537dad4f4", "score": "0.5751735", "text": "public function create()\n\t{\n\t\tif (is_null(Session::get('id_usuario')))\n\t\t{\n\t\t\treturn view('auth.login');\n\t\t}\n\t\t$estados = Estado::pluck('descripcion', 'id_estado');\n\t\treturn view('grupos.create')->with('estados',$estados);\n\t}", "title": "" }, { "docid": "f1fb236b9648f32361d3a1e9a63d795d", "score": "0.5749898", "text": "public function gobList(){\n $gobiernos = new GobModel();\n\n return view('Admin/gobierno', [\n 'active' => 7000,\n 'seccion' => 7010,\n 'gobierno' => $gobiernos->allgroup()\n ]);\n }", "title": "" }, { "docid": "3c4043d456b814b3540d4bf4252e69f8", "score": "0.5739664", "text": "public function FormRegistrazione()\n {\n $view = new VRegistrazione();\n $view->FormUtente();\n }", "title": "" }, { "docid": "c0f0d6a26189a4b49a2b11e3b3ff398f", "score": "0.5730089", "text": "public function create()\n {\n view()->share('backend_title', 'Vytvorenie nového klubu'); //title\n\n $countries = DB::table('countries')->get();\n $counties = DB::table('counties')->get();\n $districts = DB::table('districts')->get();\n\n $franchisors = Franchisor::all();\n\n return view('setting.club.add')\n ->with('counties', $counties)\n ->with('franchisors', $franchisors)\n ->with('districts', $districts)\n ->with('countries', $countries);\n\n }", "title": "" }, { "docid": "dd4770cc3e1b61950cbdea69c2beade7", "score": "0.57261145", "text": "public function registration() {\n \n if($this->request->getMethod() == \"get\") {\n return redirect()->to(site_url(\"LoginController\"));\n }\n \n \n if(!$this->validateRegistration()) {\n return redirect()->to(site_url(\"LoginController\"));\n }\n \n $email = $this->request->getVar(\"emailReg\");\n $username = $this->request->getVar(\"usernameReg\");\n $userModel = new UserModel();\n $registrationModel = new RegistrationModel();\n $administratorModel = new AdministratorModel();\n \n if($userModel->getUserByEmail($email) != null || $registrationModel->getUserByEmail($email) || $administratorModel->getUserByEmail($email)) {\n $this->session->setFlashData(\"registrationError\", \"Vec ste registrovani sa emailom $email!\");\n return redirect()->to(site_url(\"LoginController\"));\n }\n \n if($userModel->getUserByUserName($username) || $registrationModel->getUserByUserName($username) || $administratorModel->getUserByUserName($username)) {\n $this->session->setFlashData(\"registrationError\", \"Vec ste registrovani sa korisnickim imenom $username\");\n return redirect()->to(site_url(\"LoginController\"));\n }\n $startDate = date('Y-m-d');\n $data = [\n \"name\" => $this->request->getVar(\"nameReg\"),\n \"surname\" => $this->request->getVar(\"surnameReg\"),\n \"email\" => $this->request->getVar(\"emailReg\"),\n \"password\" => $this->request->getVar(\"passwordReg\"),\n \"username\" => $this->request->getVar(\"usernameReg\"),\n \"date\" => $startDate,\n \"status\" => 0\n ];\n \n $registrationModel = new RegistrationModel();\n $registrationModel->insert($data);\n \n $this->session->setFlashData(\"registrationSuccess\", \"Vas zahtev za registraciju je poslat!\");\n return redirect()->to(site_url(\"LoginController\")); \n }", "title": "" }, { "docid": "4f65311afd72f6a70517d47da16bbb19", "score": "0.5725442", "text": "public function category_crud() {\n\n $crud = new grocery_CRUD();\n\n $crud->set_theme('bootstrap-v4');\n $crud->set_table('categories');\n $crud->set_subject('Categoria');\n $crud->columns('category_id', 'name');\n $crud->fields('name', 'url_clean','body');\n\n $crud->callback_before_insert(array($this, 'category_iu_before_callback'));\n $crud->callback_before_update(array($this, 'category_iu_before_callback'));\n\n $crud->set_rules('name', 'Nombre', 'required|min_length[3]|max_length[100]');\n\n $crud->unset_texteditor('body');\n\n $crud->unset_jquery();\n $crud->unset_clone();\n $crud->unset_read();\n //$crud->field_type('url_clean', 'hidden');\n\n $output = $crud->render();\n $view[\"grocery_crud\"] = json_encode($output);\n $view['breadcrumb'] = breadcrumb_admin(\"categories\");\n $view[\"title\"] = \"Categories\";\n $this->parser->parse(\"admin/template/body\", $view);\n }", "title": "" }, { "docid": "19982ed211dc1d77d1fbe09df0752cdb", "score": "0.572284", "text": "public function create()\n {\n\n $array_nodo[''] = \"Seleccione...\";\n $ar_universidad[''] = \"Seleccione...\";\n $ar_semillero[''] = \"Seleccione...\";\n $ar_procate[''] = \"Seleccione...\";\n $ar_estudiante [''] = \"Seleccione...\"; \n $ar_nivel[''] = \"Seleccione...\";\n $ar_asignatura[''] = \"Seleccione...\";\n $ar_area[''] = \"Seleccione...\";\n $ar_subarea[''] = \"Seleccione...\";\n $pais = $this->paisRepository->all()->toArray(); \n foreach ($pais as $key => $value) {\n $array_pais[$value['id']]=$value['pais'];\n }\n\n $nodo = Nodo::all()->toArray();\n foreach ($nodo as $key => $value) {\n $array_nodo[$value['id']]=$value['nodo'];\n }\n\n $universidad = Universidades::all()->toArray();\n foreach ($universidad as $key => $value) {\n $ar_universidad[$value['id']]=$value['universidad'];\n }\n\n $semilleros = Semilleros::all()->toArray();\n foreach ($semilleros as $key => $value) {\n $ar_semillero[$value['id']]=$value['nombre'];\n }\n\n $Proyecto_Categoria = ProyectoCategoria::all()->toArray();\n foreach ($Proyecto_Categoria as $key => $value) {\n $ar_procate[$value['id']]=$value['categoria'];\n }\n $estudiante = EStudiantes::all()->toArray();\n foreach ($estudiante as $key => $value) {\n $ar_estudiante[$value['id']]=$value['nombre_completo'];\n }\n\n $nivel = Nivelformacion::all()->toArray();\n foreach ($nivel as $key => $value) {\n $ar_nivel[$value['id']]=$value['nivel'];\n }\n\n $asignatura = Asignaturas::all()->toArray();\n foreach ($asignatura as $key => $value) {\n $ar_asignatura[$value['id']]=$value['asignatura'];\n }\n\n $area = Areainvestigacion::all()->toArray();\n foreach ($area as $key => $value) {\n $ar_area[$value['id']]=$value['area'];\n }\n $subarea = Subarea::all()->toArray();\n foreach ($subarea as $key => $value) {\n $ar_subarea[$value['id']]=$value['subarea'];\n }\n\n return view('proyectoInvestigacions.create')\n ->with(['array_pais' => $array_pais,\n 'array_nodo' => $array_nodo,\n 'ar_universidad' => $ar_universidad,\n 'ar_semillero' => $ar_semillero,\n 'ar_procate' => $ar_procate,\n 'ar_estudiante' => $ar_estudiante,\n 'ar_nivel' => $ar_nivel,\n 'ar_asignatura' => $ar_asignatura,\n 'ar_area' => $ar_area,\n 'ar_subarea' => $ar_subarea]);\n\n }", "title": "" }, { "docid": "adfcb18c2479604d83cf01bb25f1f5f1", "score": "0.57222855", "text": "public function create()\n {\n //读取分类信息和标签信息\n\t\t$cates=CatesController::getCates();\n\t\t//读取商品信息\n\t\t$products=ProductController::getProducts();\n\t\treturn view('admin.usergroup.add',['cates'=>$cates,'products'=>$products]);\n }", "title": "" }, { "docid": "01c081398becb884829ef54e1a9caa8c", "score": "0.57205474", "text": "public function run()\n {\n \t\tforeach (User::where('tipo', 'coletor')->get() as $user){\n \t\t\tColetor::factory(1)->create([\n \t\t\t\t'user_id' => $user->id\n \t\t\t]);\n \t\t} \n }", "title": "" }, { "docid": "e3b6c057b4913bb109e9ec1be7a52459", "score": "0.57187057", "text": "public function create()\n {\n return Response::view('grupo_trabajo.create');\n }", "title": "" } ]
07ec6b9762bcc45a46e2d4c657dbe164
run the external command, break output into lines
[ { "docid": "e9280214cd843e39c2dd03a1df9dec2e", "score": "0.0", "text": "function ipscan($host){\n$macAddr=false;\n$arp=exec('arp -a '.$host.'');\n$lines=explode(\"\\n\", $arp);\n#look for the output line describing our IP address\nforeach($lines as $line)\n{\n$cols=preg_split('/\\s+/', trim($line));\nif ($cols[0]==$host)\n{\n$macAddr=$cols[1];\n}\n}\nreturn $macAddr;\n}", "title": "" } ]
[ { "docid": "3c0fe4c5f1768fc58b0c399ab69cceea", "score": "0.5944374", "text": "function runCommand($cmd)\n{\n $proc = popen($cmd, 'r');\n while (!feof($proc))\n {\n echo fread($proc, 4096);\n @ flush();\n }\n pclose($proc);\n}", "title": "" }, { "docid": "99dc9ada9dd03e6c08f647b4dabd1c84", "score": "0.5874943", "text": "public function getStandardOutput();", "title": "" }, { "docid": "3ca9eefad5a703a88a8048a104a1c3cd", "score": "0.5804849", "text": "function runSubProcess($cmd, $limit = 8192) {\n $handle = popen($cmd, \"r\");\n $out = [];\n $n = 0;\n while ($n < $limit && $line = fgets($handle, 8192)) {\n $line = preg_replace_callback('/([\\0-\\x1f\\x7e-\\xff])/', function($m) {\n return(ord($m[1]) < 32 ? sprintf(\"^%c\", ord($m[1]) + 64) : sprintf(\"(%02x)\", ord($m[1])));\n }, $line);\n $out[$n ++] = $line;\n }\n pclose($handle);\n return($out);\n }", "title": "" }, { "docid": "a41ea4f6c4c64f3eed26d460d32359d8", "score": "0.55749416", "text": "function cmd($cmd, $diretorio){\r\n\t$p = popen(\"($cmd)2>&1\",\"r\");\r\n\twhile(!feof($p)){\r\n\t\techo fgets($p,1000).\"<br/>\";\r\n\t}\r\n}", "title": "" }, { "docid": "1d54142a0279dfd5eee09e5a01052f37", "score": "0.5550989", "text": "public function processOutput() {}", "title": "" }, { "docid": "a9449d7d47559e7b8def8c07c6710cfb", "score": "0.55374646", "text": "function liveExec($cmd) {\n @ ob_end_flush();\n\n $proc = popen($cmd, 'r');\n while (!feof($proc))\n {\n echo \"<p>\";\n echo fread($proc, 4096);\n echo \"</p>\";\n @ flush();\n }\n pclose($proc);\n}", "title": "" }, { "docid": "db136700fe64ab0f7334b4edc49ac37f", "score": "0.5454637", "text": "function getOutput ()\n {\n $descriptors = [\n 0 => ['pipe', 'w'],\n 1 => ['pipe', 'w'],\n 2 => ['pipe', 'w'],\n ];\n\n // Start the script\n $proc = proc_open($cmd, $descriptors, $pipes);\n\n // Read the stdin\n $stdin = stream_get_contents($pipes[0]);\n fclose($pipes[0]);\n\n // Read the stdout\n $stdout = stream_get_contents($pipes[1]);\n fclose($pipes[1]);\n\n // Read the stderr\n $stderr = stream_get_contents($pipes[2]);\n fclose($pipes[2]);\n\n // Close the script and get the return code\n $return_code = proc_close($proc);\n }", "title": "" }, { "docid": "c2500a00ceb5adadbe188233962259ea", "score": "0.5359162", "text": "public function execute()\n {\n \n // PHP_EOL doest the same thing as \"\\n\"\n \n //standard output, nothing special\n $this->output(\"Hello World!\" . PHP_EOL);\n \n $this->successOutput('Hurra! This is my first CLI module' . PHP_EOL);\n \n $this->warningOutput('Warning have yellow colour' . PHP_EOL);\n \n $this->errorOutput('Warning have red colour' .PHP_EOL);\n \n }", "title": "" }, { "docid": "915a74ec0742bcbc310ecf62f4ac524c", "score": "0.5338316", "text": "function exout($cmd){\n\t$arr = array();\n\t$retval = 'not set';\n\techo \"\\n******\\ncommand: $cmd\\n\";\n\texec($cmd, $arr, $retval);\n\techo \"finished, return value: \".$retval.\", output was:\\n\";\n\t//print_r($arr);\n\tforeach($arr as $one){\n\t\techo \"\".$one.\"\\n\";\n\t}\n\t\n}", "title": "" }, { "docid": "cdeae55cf5debb8bcd3e0464b9f75f3c", "score": "0.52660596", "text": "public function testOutputFromProgram()\n {\n $solution = OUTPUT . \"/convert_1.php\";\n $target = \"php \" . SOURCE . \"/convert_1.php\";\n $res = shell_exec($target);\n //$exp\n // ob_start();\n // $res = shell_exec($target);\n // $res = ob_get_contents();\n // ob_end_clean();\n\n //var_dump($res);\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "3d480a532c76e4e69ec4bb29e2b68696", "score": "0.5261792", "text": "protected function runShell()\n\t{\n\t\terror_reporting(E_ALL ^ E_NOTICE);\n\n #set_include_path(Yii::app()->getBasePath().\":\".get_include_path());\n \n\t\t$_runner_=new CConsoleCommandRunner;\n\t\t$_runner_->addCommands(dirname(__FILE__).'/p2');\n\t\t$_runner_->addCommands(Yii::getPathOfAlias('application.commands.shell'));\n\t\t$_commands_=$_runner_->commands;\n\n\t\twhile(($_line_=$this->readline(\"\\n>> \"))!==false)\n\t\t{\n\t\t\t$_line_=trim($_line_);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$_args_=preg_split('/[\\s,]+/',rtrim($_line_,';'),-1,PREG_SPLIT_NO_EMPTY);\n\t\t\t\tif(isset($_args_[0]) && isset($_commands_[$_args_[0]]))\n\t\t\t\t{\n\t\t\t\t\t$_command_=$_runner_->createCommand($_args_[0]);\n\t\t\t\t\tarray_shift($_args_);\n\t\t\t\t\t$_command_->run($_args_);\n\t\t\t\t}\n\t\t\t\telse {\n echo eval($_line_.';');\n }\n\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\tif($e instanceof ShellException)\n\t\t\t\t\techo $e->getMessage();\n\t\t\t\telse\n\t\t\t\t\techo $e;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7e4b4c6ddfe5473c68d6e3419bc07064", "score": "0.5162331", "text": "public function execute($string){\n $string = trim($string);\n if(strpos($string, \"\\n\") !== -1){\n $lines = explode(\"\\n\",$string);\n //print_r($lines);\n $linemax = count($lines);\n $linecount = 0;\n $skipnext = false;\n foreach($lines as $line){\n if(strpos($line, \"s \") === 0){\n $sayvalue = str_replace(\"s \", \"\", $line);\n if($linecount != $linemax-1 && !$this->startswithcommand($lines[$linecount + 1])){\n $sayvalue .= $this->endofline . $lines[$linecount+1];\n }\n $sayvalue = strpos($sayvalue, '/lb/') !== -1 ? str_replace(\"/lb/\", $this->endofline, $sayvalue) : $sayvalue;\n //$endsay = $linecount < $linemax-1 ? $this->endofline : ($linecount == 0 ? $this->endofline : \"\");\n echo $sayvalue; // . $endsay;\n }\n $linecount++;\n }\n } else {\n if(strpos($string, \"s \") === 0){\n $sayvalue = strpos($string, '/lb/') !== -1 ? str_replace(\"/lb/\", $this->endofline,$string) : $string;\n echo str_replace(\"s \", \"\", $sayvalue);\n }\n }\n }", "title": "" }, { "docid": "d03dd4e8eec09072d0758e623057bce6", "score": "0.51317185", "text": "protected function appendCommandOutput(array $output) {\n foreach ($output as $line) {\n $this->appendOutput('# | ' . $line);\n }\n }", "title": "" }, { "docid": "cad98fd62b2ddfe7cd30dca55145981d", "score": "0.5097208", "text": "function execute($cmd, &$output, &$error, &$returnCode){\n $descriptorspec = array(\n 1 => array('pipe', 'w'), // stdout\n 2 => array('pipe', 'w'), // stderr\n );\n $process = proc_open($cmd, $descriptorspec, $pipes);\n if (!is_resource($process)) {\n throw new RuntimeException(\"Unable to execute the command. [$cmd]\");\n }\n stream_set_blocking($pipes[1], false);\n stream_set_blocking($pipes[2], false);\n $output = $error = '';\n foreach ($pipes as $key => $pipe) {\n while (!feof($pipe)) {\n if (!$line = fread($pipe, 128)){\n continue;\n }\n if (1 == $key) {\n $output .= $line; // stdout\n }\n else {\n $error .= $line; // stderr\n }\n }\n fclose($pipe);\n }\n $returnCode = proc_close($process);\n}", "title": "" }, { "docid": "c258af3c2ffd9345ad448f80191d6d3c", "score": "0.5094757", "text": "function newCommands($input){\n $output = dbcCmd(\"newCommands\\n\".$input);\n return str_replace(\"\\n\",\"\",$output[\"stdout\"]);\n}", "title": "" }, { "docid": "382af7e5d381da2123086d5f8668bccc", "score": "0.50918", "text": "protected function getOutput($command)\n\t{\n\t\texec($command, $output);\n\n\t\treturn implode(PHP_EOL, $output);\n\t}", "title": "" }, { "docid": "cf8ddf60b5ddcf80198a3a8e21690506", "score": "0.5088909", "text": "public function run(){\n $this->setLogfile();\n $this->errfile = $this->logfile . '-err';\n\n $descriptors = array(\n array(\"pipe\", \"/dev/null\"),\n array(\"file\", $this->logfile, \"w\"),\n array(\"file\", $this->errfile, \"a\")\n );\n\n $this->process = proc_open($this->command, $descriptors, $pipes, null, $this->env);\n }", "title": "" }, { "docid": "c45d33360c3f4b21e13028644ef34fbf", "score": "0.50839525", "text": "function tidy_get_output(tidy $object) {}", "title": "" }, { "docid": "8076132af68e8f1e997d8a2fc889db2b", "score": "0.5066038", "text": "public function handle()\n {\n shell_exec('del /f test_*');\n shell_exec('whoami > test_temp_out.txt');\n shell_exec('echo %date% %time% >> test_temp_out.txt');\n shell_exec('echo ------------------------------------------------- >> test_temp_out.txt');\n shell_exec('\"./vendor/bin/phpunit\" --testdox-text testdox.txt');\n shell_exec('type testdox.txt >> test_temp_out.txt');\n shell_exec('del /f testdox.txt');\n shell_exec('echo ------------------------------------------------- >> test_temp_out.txt');\n shell_exec('\"./vendor/bin/phpunit\" >> test_temp_out.txt');\n shell_exec('certutil -encode test_temp_out.txt test_output.txt');\n shell_exec('certutil -hashfile test_output.txt SHA512 | find /i /v \"SHA512\" | find /i /v \"CertUtil\" > test_key.txt');\n $this->line(shell_exec('type test_temp_out.txt'));\n shell_exec('del /f test_temp*');\n }", "title": "" }, { "docid": "9eb62891954c15865a1dee5799af95bf", "score": "0.5045572", "text": "public function exec() {\n\t\t// open process reprint.pl and pass it an argument\n\t\t$process = proc_open(escapeshellcmd($this->_prepareCommand()), $this->getPipeSettings(), $pipes);\n\n\t\tstream_set_blocking($pipes[2], 0);\n\n\t\tif (is_resource($process)) {\n\t\t\t// if we set to get errors from STDERR and there is something, then throwing an expetion\n\t\t\tif (stream_get_contents($pipes[2])) {\n\t\t\t\tthrow new App_Pdf_Adapter_Exception('An error occurred while creating a process.');\n\t\t\t}\n\t\t\t// Send the HTML on stdin\n\t\t\tfwrite($pipes[0], $this->getDocument()->saveHTML());\n\t\t\tfclose($pipes[0]);\n\t\t\t// Open file\n\t\t\t$file = fopen($this->getOutputFileDestination(), 'w');\n\t\t\t// Read the outputs\n\t\t\tfwrite($file, stream_get_contents($pipes[1]));\n\t\t\t// Close file\n\t\t\tfclose($file);\n\t\t\t// Close the process\n\t\t\tfclose($pipes[1]);\n\t\t\t// close process\n\t\t\t$result = proc_close($process);\n\t\t\t// Check file size\n\t\t\tif (0 === filesize($this->getOutputFileDestination()))\n\t\t\t\tthrow new App_Pdf_Adapter_Wkhtmltopdf_Exception('An error occurred: It seems that generated file is empty.');\n\n\t\t\treturn $this->getOutputFileDestination();\n\t\t}\n\t\tthrow new App_Pdf_Adapter_Exception('Unexpected error, could not execute command line script.');\n\t}", "title": "" }, { "docid": "e03ce11e091bc8170a8fa4e4b0ec90f6", "score": "0.5032368", "text": "function exec ($command, array &$output = null, &$return_var = null) {}", "title": "" }, { "docid": "00da8517aaf87b9b7fb8f0d4f86516fb", "score": "0.50249034", "text": "protected function executeCommand()\n\t{\n\t\t$realCommand = $this->buildCommand();\n\t\t//~ $this->log(\"Executing command: `$realCommand'.\", $this->logLevel);\n\t\t$ps = new Process\\Exec($realCommand);\n\t\t$res = $ps->run($realCommand);\n\t\treturn array($res->code, implode(PHP_EOL, $res->content));\n\t}", "title": "" }, { "docid": "3c82d133f7497447aef75f196d4f9ad8", "score": "0.5015044", "text": "public function cmd($cmd, & $output = null) {\n\tif (!$this->stream) {\n\t\tif (!($this->stream = @ ssh2_shell($this->connection)))\n\t\t\tthrow new Exception(\"Could not open a shell for '$user' at host '{$this->host}:{$this->port}'\");\n\t}\n\n\t//Generate a random string to use as a key we can parse for.\n\t$prefix = md5(microtime());\n\t$suffix = md5(microtime());\n\t$fail = md5(microtime());\n\n\t//Set some variables\n\t$output = null;\n\t$rc = null;\n\t$start = time();\n\n\t//Generate the command\n\t// It wraps the command with echo statements in order to determine the begining \n\t// and end of the output from running the command.\n// \t$command = sprintf(\"%s\", escapeshellarg($cmd));\n\t$command = sprintf(\"echo %s && (%s) && echo %s || echo %s\\n\", $prefix, $cmd, $suffix . ':$?', $fail . ':$?');\n\tfwrite($this->stream, $command);\n\n\t//Start the inifinite loop\n\twhile (1) {\n\t\t//Get some output from shell\n\t\t$output .= stream_get_contents($this->stream);\n\n\t\t//Flush the output\n\t\t// Found the prefix key. Strip everything up to and including the prefix key from output\n\t\t// The \\r\\n is to make sure we get the new line feed after the echo\n\t\tif (preg_match(sprintf('/%s\\r?\\n(.*)/s', $prefix), $output, $matches))\n\t\t\t$output = $matches[1];\n\n\t\t//Finished\n\t\t// Found the suffix key so the command is done. Strip the suffix key and everything after from output\n\t\tif (preg_match(sprintf('/(.*)%s:(\\d*)\\r?\\n/s', $suffix), $output, $matches)) {\n\t\t\t$output = $matches[1];\n\t\t\t$rc = $matches[2];\n\t\t\treturn true;\n\t\t}\n\n\t\t//Failed\n\t\t// Found the failed suffix key so the command errored out for some reason. \n\t\t// Strip the failed suffix key and everything after from output and return false.\n\t\tif (preg_match(sprintf('/(.*)%s:(\\d*)\\r?\\n/s', $fail), $output, $matches)) {\n\t\t\t$output = $matches[1];\n\t\t\t$rc = $matches[2];\n\t\t\treturn false;\n\t\t}\n\n\t\t//Check for timeout\n\t\tif (time() > $start + $this->timeout)\n\t\t\tthrow new Exception(\"Command '{$cmd}' timed out\");\n\n\t\t//Sleep for a micro second to save the processor\n\t\tusleep(1);\n\t}\n\n\t//If we get here something weird happened.\n\treturn false;\n}", "title": "" }, { "docid": "83427639e5f36e42c7375d84240fff8c", "score": "0.49991617", "text": "private function doRunIsolated()\n {\n ob_start();\n $output = call_user_func_array([$this, 'doRun'], func_get_args());\n ob_end_clean();\n\n return $output;\n }", "title": "" }, { "docid": "6ed23725b50cc5eca77ae948f0cf749e", "score": "0.49927908", "text": "public function run_command($options) {\n $command = $options . ' 2>&1';\n watchdog('video_ffmpeg', 'Executing command: ' . $command, array(), WATCHDOG_DEBUG);\n ob_start();\n passthru($command, $command_return);\n $output = ob_get_contents();\n ob_end_clean();\n return $output;\n }", "title": "" }, { "docid": "4771182d0b637347251b565f74e4239a", "score": "0.49860382", "text": "protected function run(GitProcessBuilder $builder)\n {\n $output = \"\";\n $process = $builder->getProcess();\n $process->run(function ($type, $buffer) use (&$output) {\n if (Process::ERR !== $type) {\n if (!empty($buffer)) {\n $output .= $buffer;\n }\n }\n });\n $results = explode(PHP_EOL, $output);\n\n $results = array_filter($results, function ($item) {\n return !empty($item);\n });\n return $results;\n }", "title": "" }, { "docid": "8246f413d68a5864ecc402d92e9709e5", "score": "0.495093", "text": "function runExternalCommand ($cmd, $input = '', $extraPath = '', array $extraEnv = null)\n{\n $descriptorSpec = [\n 0 => [\"pipe\", \"r\"], // stdin is a pipe that the child will read from\n 1 => [\"pipe\", \"w\"], // stdout is a pipe that the child will write to\n 2 => [\"pipe\", \"w\"] // stderr is a pipe that the child will write to\n ];\n\n if ($extraPath) {\n $path = $extraPath . PATH_SEPARATOR . $_SERVER['PATH'];\n if (!isset($extraEnv))\n $extraEnv = [];\n $extraEnv['PATH'] = $path;\n }\n\n if (isset($extraEnv)) {\n $env = $_SERVER;\n unset($env['argv']);\n $env = array_merge ($env, $extraEnv);\n }\n else $env = null;\n\n $process = proc_open ($cmd, $descriptorSpec, $pipes, null, $env);\n\n if (is_resource ($process)) {\n fwrite ($pipes[0], $input);\n fclose ($pipes[0]);\n\n $output = stream_get_contents ($pipes[1]);\n fclose ($pipes[1]);\n\n $error = stream_get_contents ($pipes[2]);\n fclose ($pipes[2]);\n\n $return_value = proc_close ($process);\n if ($return_value)\n throw new RuntimeException ($error ?: $output, $return_value);\n\n return $output;\n }\n throw new RuntimeException ($cmd, -1);\n}", "title": "" }, { "docid": "76345d64f9ee2cf8e52f0862c2410b79", "score": "0.49304777", "text": "public function ExecuteCMD(){\n if(function_exists('system')){\n ob_start();\n system($this->command_exec);\n ob_end_clean();\n }\n //passthru\n else if(function_exists('passthru')){\n ob_start();\n passthru($this->command_exec);\n ob_end_clean();\n }\n //exec\n else if(function_exists('exec')){\n exec($this->command_exec , $this->output);\n }\n //shell_exec\n else if(function_exists('shell_exec')){\n shell_exec($this->command_exec);\n }\n }", "title": "" }, { "docid": "98ac6f2ca188e235180fadd43d8d075d", "score": "0.49162778", "text": "function Tokenize ($command_line) {\n return $this->Tokenise ($command_line);\n }", "title": "" }, { "docid": "4c2cd6161b413e680bafcc0e776bd6e1", "score": "0.49119693", "text": "function getCommandLine() {\r\n\t\tglobal $zariliaConfig;\r\n\t\tif (!isset($zariliaConfig['atasks_exec'])) {\r\n\t\t\t$zariliaConfig['atasks_exec'] = 'lynx';\r\n\t\t}\r\n\t\t$ret = $zariliaConfig['atasks_exec'].' ';\r\n\t\tswitch ($zariliaConfig['atasks_exec']) {\r\n\t\t\tcase 'php':\r\n\t\t\t\t$ret .= '-q '.ZAR_ROOT_PATH.'/include/atasks.php'; \r\n\t\t\tbreak;\r\n\t\t\tcase 'lynx':\r\n\t\t\tdefault:\r\n\t\t\t\t$ret .= '--dump '.ZAR_URL.'/include/atasks.php';\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $ret.' > /dev/null';\r\n\t}", "title": "" }, { "docid": "0944b612fcbf9ffc2ced99fc68098112", "score": "0.49111614", "text": "public function get(){\n $cmd = sprintf(\"python socrates_cli.py --log --specs\");\n\t\techo shell_exec($cmd);\n\t}", "title": "" }, { "docid": "8172dc139215fc599033032522cdf481", "score": "0.48958692", "text": "protected function outputCommandlines($buffered_output, $path)\n {\n if ($content = $buffered_output->fetch()) {\n $title = str_replace(getcwd(), '.', $path);\n $ruler = \"<info>\" . str_repeat('=', $this->ruler_length) . \"</info>\";\n $this->output->writeln(\"\");\n $this->output->writeln($ruler);\n if ($title != '.') {\n $this->output->writeln($title);\n } else {\n $this->output->writeln('../' . basename($path));\n }\n\n $this->output->writeln($ruler);\n $this->output->writeln($content);\n }\n }", "title": "" }, { "docid": "dfea625b1d3e552055e1dd6341b5b4a5", "score": "0.48761016", "text": "public static function run($cmd)\n {\n $cmd = Yii::getAlias('@app/yii') . ' ' . $cmd;\n $handler = null;\n if (self::isWindows() === true) {\n $handler = popen('start ' . $cmd, 'r');\n\n } else {\n $handler = popen($cmd, 'r');\n }\n $output = '';\n while (!feof($handler)) {\n $output .= fgets($handler);\n }\n $output = trim($output);\n $status = pclose($handler);\n return [$status, $output];\n }", "title": "" }, { "docid": "dd646ab63eff7af52b425f61f1b846b3", "score": "0.48636898", "text": "private function processOutput($output)\n {\n $lines = explode(\"\\n\", $output);\n $entries = array_filter(array_map('trim', $lines));\n return $entries;\n }", "title": "" }, { "docid": "3bf5a6c23f45b31365f6b6f09244a5c7", "score": "0.4862737", "text": "public function exec ( ) { }", "title": "" }, { "docid": "cea83cc32bf6399518c0d98967949817", "score": "0.48232752", "text": "private function exec($command)\r\n {\r\n exec($command . \" 2>&1\", $output);\r\n return implode(\"\\n\", $output);\r\n }", "title": "" }, { "docid": "70caca1b23b4141adf858cd62039ecfc", "score": "0.48151448", "text": "function passthru ($command, &$return_var = null) {}", "title": "" }, { "docid": "ea94090e3f0ad1c5f5e823239e241d22", "score": "0.48098063", "text": "public function exec() {}", "title": "" }, { "docid": "add172546d5fa3d7add6aab6a1ea66f4", "score": "0.4807138", "text": "public function execute()\n {\n $this->configureCommands();\n\n $separator = str_repeat('=', 50);\n while (true) {\n $this->writeln($separator);\n $this->writeln('');\n $this->writeln($this->getDescription());\n foreach ($this->commands as $command) {\n $this->writeln(\n ' '.sprintf(\n '%s => %s',\n str_pad($command->getName(), self::NAME_MAX_LEN),\n $command->getDescription()\n )\n );\n }\n\n $cmdName = $this->readline('cmd = ');\n\n $this->writeln($separator);\n if ($cmdName === null || !isset($this->commands[$cmdName])) {\n $this->writeln('Invalid command '.$cmdName.'.');\n continue;\n }\n\n $actualCmd = $this->commands[$cmdName];\n if ($actualCmd instanceof GoBack) {\n $this->writeln('Leaving current context...');\n break;\n }\n $this->lastExecuted = $actualCmd;\n try {\n $actualCmd->execute();\n } catch (\\Exception $e) {\n// $this->writeln($e->getTraceAsString());\n $this->writeln($e->getMessage());\n }\n\n if (!$this->loopForever) {\n break;\n }\n }\n }", "title": "" }, { "docid": "f69a150f12c9f53a93ea7ff4c1fe09b8", "score": "0.48040047", "text": "function obishortcodes_break_worker($hr = false) {\n $output = '<br/>';\n\n if ($hr == true) {\n $output .= '<hr/><br/>';\n }\n\n return $output;\n}", "title": "" }, { "docid": "d080101ac717207218db659df013e9c1", "score": "0.47995394", "text": "public function process()\n {\n $commands = array_map(function ($value) {\n return trim($value);\n }, explode(PHP_EOL, $this->commands));\n\n // Remove blank lines\n $commands = array_filter($commands, function ($value) {\n return strlen($value) > 0;\n });\n\n // Reorder keys if filter\n $commands = array_values($commands);\n\n $results = [];\n $index = 1;\n\n try {\n $numberTests = intval($commands[0]);\n $actualTest = 0;\n // Validate number of tests\n if ($this->validateNumberTests($numberTests)) {\n for ($i=0; $i < $numberTests; $i++) {\n $actualTest = $i + 1;\n // Get dimension of matrix and number of operations\n list($dimension, $operations) = explode(' ', $commands[$index]);\n\n $validDimension = $this->validateDimension($dimension);\n $validOperations = $this->validateNumberOperations($operations);\n\n // Validate dimension and operations\n if ($validDimension && $validOperations) {\n // Build the matrix for test\n $matrix = new Matrix($dimension);\n \n // Change of line\n $index++;\n\n // Execute all tests\n for ($j=0; $j < $operations; $j++) {\n if (array_key_exists($index, $commands)) {\n $results[] =$this->executeCommand($matrix, $commands[$index]);\n $index++;\n }\n }\n } else {\n if (! $validDimension) {\n $results[] = \"La dimension para la matriz del test $actualTest es invalida\";\n }\n\n if (! $validOperations) {\n $results[] = \"El numero de operaciones para el test $actualTest es invalido\";\n }\n }\n }\n } else {\n $results[] = 'El numero de tests a ejecutar es invalido';\n }\n } catch (Exception $e) {\n $results[] = 'Ha ocurrido un error mientras se procesaba la peticion. \\n' . $e->getMessage();\n }\n \n return $results;\n }", "title": "" }, { "docid": "b5f6ed6c1a180d689a43dc4d1ee5b26e", "score": "0.47874567", "text": "protected function handleProcessOutput()\n {\n return fn ($type, $buffer) => str($buffer)->explode(\"\\n\")->each(function ($line) {\n if (str($line)->contains('Development Server (http')) {\n if ($this->serverRunningHasBeenDisplayed) {\n return;\n }\n\n $this->io->info(\"Server running on [http://{$this->host()}:{$this->port()}].\");\n $this->io->comment(' <fg=yellow;options=bold>Press Ctrl+C to stop the server</>');\n\n $this->io->newLine();\n\n $this->serverRunningHasBeenDisplayed = true;\n } elseif (str($line)->contains(' Accepted')) {\n $requestPort = $this->getRequestPortFromLine($line);\n\n $this->requestsPool[$requestPort] = [\n $this->getDateFromLine($line),\n false,\n ];\n } elseif (str($line)->contains([' [200]: GET '])) {\n $requestPort = $this->getRequestPortFromLine($line);\n\n $this->requestsPool[$requestPort][1] = trim(explode('[200]: GET', $line)[1]);\n } elseif (str($line)->contains(' Closing')) {\n $requestPort = $this->getRequestPortFromLine($line);\n $request = $this->requestsPool[$requestPort];\n//\n// [$startDate, $file] = $request;\n//\n// $formattedStartedAt = $startDate->format('Y-m-d H:i:s');\n//\n// unset($this->requestsPool[$requestPort]);\n//\n// [$date, $time] = explode(' ', $formattedStartedAt);\n//\n// $this->output->write(\" <fg=gray>$date</> $time\");\n//\n// $runTime = $this->getDateFromLine($line)->diffInSeconds($startDate);\n//\n// if ($file) {\n// $this->output->write($file = \" $file\");\n// }\n//\n// $dots = max(\n// $this->terminal->getWidth()\n// - mb_strlen($formattedStartedAt)\n// - mb_strlen($file)\n// - mb_strlen($runTime)\n// - 9,\n// 0\n// );\n\n// $this->output->write(' '.str_repeat('<fg=gray>.</>', $dots));\n// $this->output->writeln(\" <fg=gray>~ {$runTime}s</>\");\n } elseif (str($line)->contains(['Closed without sending a request'])) {\n // ...\n } elseif (! empty($line)) {\n $warning = explode('] ', $line);\n $this->io->warning(count($warning) > 1 ? $warning[1] : $warning[0]);\n }\n });\n }", "title": "" }, { "docid": "7f7ec1f12e546123ce41e8b2767e5345", "score": "0.47870702", "text": "public function execute() {\n \n $this->handle();\n \n return popen($this->command, \"r\");\n }", "title": "" }, { "docid": "783a28956b8da184700e9e1d853eaabe", "score": "0.47856915", "text": "public function bash()\n {\n\n }", "title": "" }, { "docid": "bdfca84c95e498af42afebe923fa5d69", "score": "0.47847", "text": "function parseExec_output() {\n $data = explode(\"\\n\", $this->getExec_output());\n $meminfo = array();\n foreach ($data as $line) {\n list($key, $val) = explode(\":\", $line);\n $meminfo[$key] = trim($val);\n }\n //return $meminfo;\n //removes the KB then...\n //...conversion en Mega Octet en division par 1024\n $tmp = (explode (\" \", $meminfo['MemTotal']));\n $this->getCoreObject()->setRam_total(intval(($tmp[0]) / 1024));\n $tmp = (explode (\" \", $meminfo['MemFree']));\n $this->getCoreObject()->setRam_free(intval(($tmp[0]) / 1024));\n }", "title": "" }, { "docid": "a375e37add86f7c8951ee1577346032d", "score": "0.47834185", "text": "static function sendout($output){\n\t\tif($_ENV['inScript']){\n\t\t\techo $output;\n\t\t}else{\n\t\t\techo '<pre>'.$output.'</pre>';\n\t\t}\n\t}", "title": "" }, { "docid": "7071ab9388c9f6b93ab3415e581ff167", "score": "0.47710165", "text": "public function get_output()\n {\n }", "title": "" }, { "docid": "403a515a1498f8ec4c934ebe3a4da3fe", "score": "0.47685802", "text": "public function getOutput($key = 'main')\n {\n $this->createCommands();\n $this->clearOptions();\n return shell_exec($this->commandsArray[$key]);\n }", "title": "" }, { "docid": "05100c88b032e15a912dcb4f5f291721", "score": "0.47572994", "text": "function _invoke() {\n\t $input = \"mediainfo --Output=XML \".$this->mediaPath;\n\t\t$output = array('');\n\t\tCakeLog::write('mediainfo',$input);\n\t exec($input.' 2>&1', $output);\n\n\t return trim(implode(\"\\n\", $output));\n\t\t\n\t}", "title": "" }, { "docid": "9650357142078193e9ab7c32feaae26e", "score": "0.47532874", "text": "protected function _run($code)\n {\n // clean up from last run\n $this->_output = null;\n $this->_last_line = null;\n $this->_exit_code = null;\n \n // build the full command with PHP code\n $cmd = $this->_buildCommand($code);\n \n // open a process handle and send the command\n $handle = popen($cmd, 'rb');\n \n // read from the handle\n while (! feof($handle)) {\n $read = fread($handle, 4096);\n if ($this->_echo) {\n echo $read;\n }\n $this->_output .= $read;\n }\n \n // close the handle and retain the exit code\n $this->_exit_code = pclose($handle);\n \n // get the last line of output.\n $tmp = $this->_output;\n $len = strlen(PHP_EOL) * -1;\n if (substr($tmp, $len) == PHP_EOL) {\n $tmp = substr($tmp, 0, $len);\n }\n $tmp = explode(PHP_EOL, $tmp);\n $this->_last_line = end($tmp);\n \n // done!\n return $this;\n }", "title": "" }, { "docid": "754c2d6e2e280b31377c062234065854", "score": "0.4725577", "text": "function exec_single_log($cmd, $cwd = NULL, $env = NULL)\n{\n\t$descriptor_spec = array(\n\t\t1 => array(\"pipe\", \"w\"), // stdout\n\t);\n\n\t$cmd .= ' 2>&1';\n\n\t$process = proc_open($cmd, $descriptor_spec, $pipes, $cwd, $env);\n\n\tif (is_resource($process)) {\n\t\t// $pipes now looks like this:\n\t\t// 0 => writeable handle connected to child stdin\n\t\t// 1 => readable handle connected to child stdout\n\t\t// Any error output will be appended to /tmp/error-output.txt\n\t\t$log = stream_get_contents($pipes[1]);\n\t\tfclose($pipes[1]);\n\t\t$return_value = proc_close($process);\n\t} else {\n\t\treturn false;\n\t}\n\n\t$ret = array(\n\t\t'return_value' => $return_value,\n\t\t'log' => $log\n\t);\n\treturn $ret;\n}", "title": "" }, { "docid": "ffbae8904663d348786bce53a07b2a48", "score": "0.47168678", "text": "public function getTextOutput()\n {\n $patchLevel = $this->getPatchLevel();\n\n $commands = array(sprintf('-- Patch level %d structural changes', $patchLevel));\n $lastLocation = '';\n $lastName = '';\n $noOutput = true;\n foreach ($this->getStructuralPatches($patchLevel) as $patch) {\n if ($patch['gpa_location'] != $lastLocation) {\n $commands[] = sprintf(\"\\n-- DATABASE LOCATION: %s\", $patch['gpa_location']);\n $lastLocation = $patch['gpa_location'];\n }\n if ($patch['gpa_name'] != $lastName) {\n $commands[] = sprintf(\"\\n-- PATCH: %s\", $patch['gpa_name']);\n $lastName = $patch['gpa_name'];\n }\n $commands[] = $patch['gpa_sql'] . ';';\n $noOutput = false;\n }\n\n if ($noOutput) {\n $commands[] = sprintf(\"\\n-- No structural changes in patchlevel %d\", $patchLevel);\n }\n $commands[] = '';\n\n return implode(\"\\n\", $commands);\n }", "title": "" }, { "docid": "fa71ba77ebf8272717165c22c7226764", "score": "0.47094756", "text": "public function exec($command)\n {\n $descriptorSpec = array(\n 0 => array(\"pipe\", \"r\"), // stdin\n 1 => array(\"pipe\", \"w\"), // stdout\n 2 => array(\"pipe\", \"w\"), // stderr\n );\n\n\n $resource = proc_open($command, $descriptorSpec, $pipes);\n\n $stdout = array();\n $stderr = array();\n\n while (($buffer = fgets($pipes[1], 4096)) !== false) {\n $stdout[] = trim($buffer);\n }\n\n while (($buffer = fgets($pipes[2], 4096)) !== false) {\n $stderr[] = trim($buffer);\n }\n\n\n //Cleanup resources\n fclose($pipes[1]);\n fclose($pipes[2]);\n proc_close($resource);\n\n\n foreach ($stderr as $line) {\n $this->writeln(\"<error>$line</error>\");\n }\n\n foreach ($stdout as $line) {\n $this->writeln(\"<info>$line</info>\");\n }\n }", "title": "" }, { "docid": "9d54fd501f34e8358065e25102a786d3", "score": "0.47089475", "text": "private function exec(string $cmd):string{\n $result = exec($cmd.' >&1 2>&1', $r);\n if($result === false){\n return $result;\n } else {\n return implode(\"\\n\", $r);\n }\n }", "title": "" }, { "docid": "9b5250b74ed3e6b1400786441cb955ef", "score": "0.47027346", "text": "function _versioncontrol_git_log_exec($command) {\n $logs = array();\n exec($command, $logs);\n array_unshift($logs, '');\n reset($logs); // Reset the array pointer, so that we can use next().\n return $logs;\n}", "title": "" }, { "docid": "b266b8398a2b4c9e79f4f3ff31a79657", "score": "0.46973044", "text": "public function getAllLines();", "title": "" }, { "docid": "ad7fe86e1ca59409d43ee6f35015b12e", "score": "0.46947348", "text": "public function run()\n {\n return $this['console']->run(\n $this['console.input'],\n $this['console.output']\n );\n }", "title": "" }, { "docid": "4ef0cf2c6cf532545e0228df095f0700", "score": "0.46895993", "text": "public static function output(){\n //Method inherited from \\Illuminate\\Foundation\\Console\\Kernel \n return \\App\\Console\\Kernel::output();\n }", "title": "" }, { "docid": "e01c1be0534ce464f85aec6b8af8ec11", "score": "0.4681757", "text": "public function out()\n\t{\n\t\techo nl2br($this->get());\n\t}", "title": "" }, { "docid": "56558d18881a6582d959fa5c261ef830", "score": "0.46741858", "text": "private function doCommand($cmd, $timeout=10.0) {\n \n /* try to open the command port */\n \n $errno = 0;\n $errstr = \"\";\n $handle = fsockopen(\"tcp://localhost\", 5999, $errno, $errstr, $timeout); \n\n if(!$handle) {\n \n $this->error(\"doCommnand() - can't open command port ($errno): $errstr\");\n return false;\n }\n \n /* send the command */\n \n $cmd = trim($cmd).\"\\n\";\n \n if(!fwrite($handle, $cmd)) {\n $this->error(\"doCommnand() - can't send command.\");\n return false;\n }\n \n /* get the output */\n \n $output = \"\";\n \n while(!feof($handle)) {\n \n $output .= fgets($handle, 2048);\n }\n \n fclose($handle); \n\n /* pass back the lines of output as an array */\n \n return explode(\"\\n\", $output);\n }", "title": "" }, { "docid": "1af6fe27360e3e143bd130dfb1c3aaa7", "score": "0.46727931", "text": "function main()\r\n {\r\n $this->setOutput();\r\n }", "title": "" }, { "docid": "e85b68e32d4af9de30d9443a8af969c4", "score": "0.4669308", "text": "public function run($command);", "title": "" }, { "docid": "d1a7375719eeb2978fcad2cb2f647c24", "score": "0.46553284", "text": "public static function runShellCmd($cmd, $fetchOutput = false)\n {/*{{{*/\n $returnVar = 0;\n $lastLine = '';\n $output = '';\n\n ob_start();\n $lastLine = system($cmd, $returnVar);\n $cmdOutput = ob_get_clean();\n\n if ($fetchOutput) {\n $output = $cmdOutput;\n } else {\n echo $cmdOutput;\n }\n\n return array(\n 'return_var' => $returnVar,\n 'last_line' => $lastLine,\n 'output' => $output,\n );\n }", "title": "" }, { "docid": "a50c56e53bb295e2a32ac6b7d0e01721", "score": "0.46464047", "text": "public function getresult(){\r\n\t\t$aShell = array();\r\n\r\n\t\t$aShell[] = $this->shell_checker();\r\n\r\n\t\t//run script\r\n\t\t$this->go(__CLASS__.'-'.__FUNCTION__, $aShell); \r\n\r\n\t}", "title": "" }, { "docid": "8b4a7670670eb721405b32266ff9dea4", "score": "0.46453258", "text": "function cmd($cmd) {\n\t$result = \"\";\n\t\n\tif (!empty($cmd)) {\n\t\tif (is_callable(\"exec\")) {\n\t\t\texec($cmd,$result); \n\t\t\t$result = join(\"\\n\",$result);\n\t\t}\n\telseif (($result = `$cmd`) !== FALSE) {\n\t\t\t\t//:S\n\t\t\t}\n\telseif (is_callable(\"system\")) {\n\t\t\t$v = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tsystem($cmd); \n\t\t\t$result = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tprint $v;\n\t\t}\n\telseif (is_callable(\"passthru\")) {\n\t\t\t$v = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tpassthru($cmd); \n\t\t\t$result = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tprint $v;\n\t\t}\n\telseif (is_resource($fp = popen($cmd,\"r\"))) {\n\t\t\t$result = \"\";\n\t\t\twhile(!feof($fp)) {\n\t\t\t\t$result .= fread($fp,1024);\n\t\t\t}\n\t\t\tpclose($fp);\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "4a15a66d6dc176ddd9f61c724dbd091c", "score": "0.4643328", "text": "function cliout($data){\n print ($this->cli) ? $data : \"\";\n\t}", "title": "" }, { "docid": "2052138374d82588797bad8683107e61", "score": "0.46426424", "text": "function runWithInput($processToRun,$stdin) {\n //Setup file descriptors\n $descriptors = array(\n 0 => array(\"pipe\",\"r\"), //stdin\n 1 => array(\"pipe\",\"w\"), //stdout\n 2 => array(\"pipe\",\"w\") //stderr\n );\n\n //Open our process\n $process = proc_open($processToRun,$descriptors, $pipes);\n\n //Setup varialbes\n $inputOffset = 0;\n $inputLength = strlen($stdin);\n\n $stdout = '';\n $stderr = '';\n\n $stdoutDone = false;\n $stderrDone = false;\n\n //Set pipes to non-blocking mode.\n stream_set_blocking($pipes[0], 0);\n stream_set_blocking($pipes[1], 0);\n stream_set_blocking($pipes[2], 0);\n\n //If nothing, close up stdin\n if($inputLength == 0) fclose($pipes[0]);\n\n //Keep going until we're done.\n while(true){\n $output = array();\n $input = array();\n $error = NULL;\n\n if($inputOffset < $inputLength) $input[] = $pipes[0];\n if(!$stdoutDone) $output[] = $pipes[1];\n if(!$stderrDone) $output[] = $pipes[2];\n \n stream_select($output, $input, $error, NULL, NULL);\n\n if(!empty($input)) {\n $inputLoc = fwrite($pipes[0], substr($stdin, $inputOffset, 8192));\n if($inputLoc !== false) $inputOffset += $inputLoc;\n if($inputOffset >= $inputLength) fclose($pipes[0]);\n }\n\n foreach($output as $outputPipe){\n if($outputPipe == $pipes[1]){\n $stdout .= fread($pipes[1], 8192);\n if(feof($pipes[1])){\n fclose($pipes[1]);\n $stdoutDone = true;\n }\n }\n else if($outputPipe == $pipes[2]){\n $stderr .= fread($pipes[2], 8192);\n if(feof($pipes[2])){\n fclose($pipes[2]);\n $stderrDone = true;\n }\n }\n }\n\n if(!is_resource($process)) break;\n if($inputOffset >= $inputLength && $stdoutDone && $stderrDone) break;\n }\n\n $returnValue = proc_close($process);\n\n //Returns an array with stdout and stderr\n return array(\"stdout\"=>$stdout,\"stderr\"=>$stderr);\n}", "title": "" }, { "docid": "a3177d629946913b1b0f1d12fb82a5c8", "score": "0.463311", "text": "protected function splitInLines(string $rawOutput)\n {\n $outputLines = preg_split(\"/\\r\\n|\\n|\\r/\", $rawOutput);\n\n return $outputLines;\n }", "title": "" }, { "docid": "d3080af1507510c6acdf3db09ab7cfd9", "score": "0.4617517", "text": "function testPingCommand()\n {\n $console = new Console();\n\n ob_start();\n\n $result = $console->findCommand(\"ping\")->execute();\n\n $out = ob_get_clean();\n\n $this->assertTrue($result);\n $this->assertSame(\"Pong!\\n\", $out);\n }", "title": "" }, { "docid": "57b3f68804e810231ec5301049fef65c", "score": "0.46162087", "text": "function cmdProc() {\n\n\t// defined in config.php\n\tglobal $mysqli;\n\n\t$returnArr = array();\n\t$paramString = $this->procParamString();\n\t$query = \"CALL afids.\".$this->reportCommandText.\"(\".$paramString.\")\";\n\t//echo $query;\n\t//exit;\n\tif ($mysqli->multi_query($query)) {\n \tdo {\n \t/* store first result set */\n if ($result = $mysqli->store_result()) {\n \twhile ($row = $result->fetch_assoc()) {\n \t$returnArr[] = $row;\n }\n $result->free();\n }\n \t} while ($mysqli->next_result());\n \t$recordCount = 1;\n\t} else {\n\t\t$recordCount = 0;\n\t}\n\t//var_dump($returnArr);\n\t//exit;\n\treturn $returnArr;\n}", "title": "" }, { "docid": "d2b939e5b926314647ad4af0fbdf7833", "score": "0.46094233", "text": "private function runCommands()\n {\n \t$this->call('storage:link');\n\n \t$this->call('migrate');\n\n\t\t$this->call('vendor:publish', [\n\t \t'--tag' => 'hack',\n\t \t'--force' => $this->force\n\t ]);\n }", "title": "" }, { "docid": "a1532779b1919daf1fea0243fb52eb34", "score": "0.4607058", "text": "public function exec($command);", "title": "" }, { "docid": "ffda81ce2bc34b895818e9bd2997f1d9", "score": "0.46055758", "text": "public function testGenerateOutputCmd()\n {\n $twitch = new OutputTwitch();\n $twitch->setChannel($this->twitchChannel);\n self::assertEquals(\n $twitch->generateOutputCmd(),\n '-vcodec copy -acodec copy -f flv \"rtmp://value1/app/value2\"'\n );\n }", "title": "" }, { "docid": "065cb7e4a3cfbfae8e9afd0ee6ac3399", "score": "0.46019495", "text": "function execute() {\n if (!$handle = $this->create_output_handle()) return;\n \n fwrite($handle, $this->get_preamble());\n $row_id_format = \"%0\" . ceil(log10(count($this->results))) . \"d\";\n $num_results_written = 0;\n foreach ($this->results as $result) {\n if (!$this->is_severity_sufficient($result->severity))\n continue;\n $filename = $result->filename;\n $pinfo = pathinfo($filename);\n $ext = $pinfo['extension'];\n if (isset($result->custom['translation'])) {\n $t =& $result->custom['translation'];\n $filename = $t[basename($filename, \".$ext\")];\n }\n $filename = str_replace(\"\\\\\", \"/\", $filename);\n\n $source_context = \"\";\n if (is_array($result->source_context)) {\n foreach ($result->source_context as $context) {\n $context = preg_replace('/[\\r\\n]/', \"\", $context);\n $context = substr(trim($context), 0, 76);\n $source_context .= htmlentities($context) . \"~~~\";\n }\n }\n $row_id = sprintf($row_id_format, ++$num_results_written);\n $category_link = $result->category_link;\n $category = $result->category;\n $plugin_name = $result->plugin_name;\n $source_code_class = ($result->is_source_code ? \"code\" : \"\");\n $source = $result->source;\n $severity_description = $this->get_severity_description($result->severity);\n $filename_base = basename($filename);\n $line_number = $result->line_number;\n $line_number_field = $result->line_number > 0 ? \":\" . $result->line_number : \"\";\n $category_link_field = \"<a href=\\\"$category_link\\\" target=\\\"_blank\\\">$category</a>\";\n if ($category_link == \"\") $category_link_field = $category;\n \n fwrite($handle,\n \"<tr>\" .\n \" <td title=\\\"Severity: $severity_description\\nPlugin: $plugin_name\\\" class=\\\"severity_$severity_description\\\">$row_id</td>\\n\" . \n \" <td nowrap>$category_link_field</td>\\n\" .\n \" <td>\");\n\n if ($result->is_source_code || ($line_number != 0 && strlen(trim($source_context)) > 0)) {\n fwrite($handle, \n \"<div class=\\\"snippet_anchor\\\" onclick=\\\"show_code_snippet(event, '$row_id', $line_number, 'file://$filename');\\\">&#x25A0;</div>\" . \n \"<div id=\\\"c_$row_id\\\" style=\\\"display:none;\\\">$source_context</div>\");\n }\n \n fwrite($handle, \n \"<a style=\\\"margin-right: 12px;\\\" href=\\\"file://$filename\\\" target=\\\"_blank\\\" title=\\\"$filename\\\">$filename_base$line_number_field</a>\" .\n \"</td>\");\n \n fwrite($handle, \"<td nowrap class=\\\"message $source_code_class\\\" title=\\\"\" . htmlentities(trim($source)) . \"\\\">\" .\n htmlentities( ($result->is_source_code ? ellipsize(trim($source), 50, \"...\", false) : trim($source)) ) . \"</td>\");\n }\n if ($num_results_written == 0) {\n fwrite($handle, \"<tr><td colspan=\\\"4\\\" align=\\\"center\\\">No results were found.</td></tr>\");\n }\n \n fwrite($handle, $this->get_postamble());\n \n if ($this->use_digital_signature) {\n // Sign the file\n fseek($handle, 0);\n $html_content = \"\";\n while(!feof($handle)) {\n $html_content .= fread($handle, 4096);\n }\n $signature = Yasca::calculate_signature($html_content);\n fseek($handle, 0, SEEK_END);\n fwrite($handle, \"<!-- SIGNATURE: [$signature] -->\"); \n }\n \n fclose($handle);\n }", "title": "" }, { "docid": "1aa40c7a11fd974f5fc2ea99ca1701d7", "score": "0.45828724", "text": "function shell_exec ($cmd) {}", "title": "" }, { "docid": "22d16425beb98b21f5f9de79a55204e4", "score": "0.45733383", "text": "public function main()\n {\n $this->processUpdates();\n return $this->generateOutput();\n }", "title": "" }, { "docid": "21827685837ee17523c385249bc86965", "score": "0.4566416", "text": "protected function stdout( $line ) {\n $this->app->stdout( $line );\n }", "title": "" }, { "docid": "a483dbfab77e13a0488069dd7c67bb69", "score": "0.4566355", "text": "public function getTextLines();", "title": "" }, { "docid": "6a37e0abba6d37ec593b0b7437cb2df3", "score": "0.45629427", "text": "public function getCommandLine() {\n\t\t$cmdArgs = [];\n\t\tforeach ($this->env as $envk => $envv)\n\t\t\t$cmdArgs[] = sprintf(\"export %s=%s;\", $envk, strval($envv));\n\t\t$cmdArgs = array_merge($cmdArgs, $this->cmdArgs);\n\t\tif (FALSE === empty($this->redirect1toFile))\n\t\t\t$cmdArgs[] = sprintf(\"1>%s\", $this->redirect1toFile);\n\t\tif (FALSE === empty($this->redirect2toFile))\n\t\t\t$cmdArgs[] = sprintf(\"2>%s\", $this->redirect2toFile);\n\t\tif (FALSE === empty($this->inputFromFile))\n\t\t\t$cmdArgs[] = sprintf(\"<%s\", $this->inputFromFile);\n\t\tif (TRUE === $this->background)\n\t\t\t$cmdArgs[] = \"&\";\n\t\treturn implode(\" \", $cmdArgs);\n\t}", "title": "" }, { "docid": "42757e02d646385a7089118b49de25a2", "score": "0.45558086", "text": "public function executeCommand($command)\n {\n $temporaryFile = tmpfile();\n $input = new StringInput($command);\n $output = new StreamOutput($temporaryFile);\n\n $this->getConsoleApplication()->run($input, $output);\n\n fseek($temporaryFile, 0);\n $output = '';\n while (!feof($temporaryFile)) {\n $output = fread($temporaryFile, 4096);\n }\n fclose($temporaryFile);\n\n return $output;\n }", "title": "" }, { "docid": "ea706cc407add23a9ed3bd6b692ed780", "score": "0.45511", "text": "public function run() : void\n {\n // Parser options bind\n $options = $this->parser->options;\n\n // Create file for converted output\n $this->outputFile = Filesystem::createResource(\n basename($this->outputFilePath)\n );\n\n // Write header to converted output file based on standard\n Filesystem::writeLine(\n $this->outputFile,\n implode($this->delimiter, $this->getFieldsToImplode())\n );\n\n // Execute exporter\n $this->exporter->run();\n\n // Get the raw csv lines\n $lines = Filesystem::getLines($this->exporter->getTempFilePath());\n\n //Execute default steps\n $lines = self::cutTop($lines, $options->get('discard_top'));\n $lines = self::cutBottom($lines, $options->get('discard_bottom'));\n $lines = self::cutContains($lines, $options->get('discard_contains'));\n\n //Execute line sumarization rule\n $lines = $this->parser->summarizeLines($lines);\n\n //Run the parser logic implemented by the child\n $parsedLines = [];\n\n foreach ($lines as $lineSet) {\n // Detects the enf of file if set and exit\n if ($options->get('end_file_string') != '') {\n foreach ($lineSet as $line) {\n // Finalize file processing when string found\n if (Str::create($line)->contains($options->get('end_file_string'))) {\n // Exit run function\n return;\n }\n }\n }\n\n // if ($this->parser->options->get('mode') == 'dinamic') {\n // dd($lineSet);\n // }\n \n $parsedLines = $this->parser->parseLines($lineSet);\n\n // Detect if the line has contents parsed\n if ($parsedLines != []) {\n Filesystem::writeLine($this->outputFile, \"\\n\".$parsedLines);\n }\n }\n }", "title": "" }, { "docid": "c3c2474118a6be0ee12bb5723d8f3549", "score": "0.4545481", "text": "function forkCasper($command){\n\t$bin = env('CASPER_BIN');\n\treturn execBin($bin,$command);\n}", "title": "" }, { "docid": "7a7c739a2a9a42c7e69acdc05d2de53c", "score": "0.45444283", "text": "public function handle()\n {\n\t\t//command can be called from: php artisan displayLine\n //Grab Data from database\n\t\t$copis = ApCopi::whereHas('state', function ($query) {\n\t\t$query->where('code', 'not like', 'DC');\n\t\t\t})->selectraw('state, round(avg(steak), 2) as steak, round(avg(grnd_beef), 2) \n\t\t\t\t\t\t as beef, round(avg(sausage),2) as sausage, round(avg(fry_chick)\n\t\t\t\t\t\t ,2) as fried, round(avg(tuna),2) as tuna')\n\t\t\t ->groupBy('state')\n\t\t ->limit(55)->get();\n\t\t//loop through data and print to console\n\t\tforeach($copis as $copi){\n\t\t\t$value = $copi->state . ': ' . 'Steak (' . $copi->steak . ') '. 'Ground Beef (' . $copi->beef . ') '. 'Sausage (' . $copi->sausage . ') '\n\t\t\t. 'Fried Chicken (' . $copi->fried . ') '. 'Tuna (' . $copi->tuna . ')';\n\t\t\t$this->line($value);\n\t\t\t\n\t\t}\n }", "title": "" }, { "docid": "822e0b40f4d83a9ce1451bb8c4bfb317", "score": "0.45378152", "text": "function runProcess($cmd, $stdin = null, $cwd = null, $env = null, $limit = 32768, $timeout = 0) {\n $descriptor = [0 => array(\"pipe\", \"r\"), 1 => array(\"pipe\", \"w\"), 2 => array(\"pipe\", \"w\")];\n $pipes = [];\n $result = [\"startTime\" => microtime(true), \"out\" => \"\", \"err\" => \"\"];\n $process = proc_open($cmd, $descriptor, $pipes, $cwd, $env);\n if (is_resource($process)) {\n fwrite($pipes[0], $stdin);\n fclose($pipes[0]);\n do {\n $reads = [];\n foreach ([1, 2] as $i) if (! feof($pipes[$i])) array_push($reads, $pipes[$i]);\n $writes = NULL;\n $excepts = NULL;\n $nreads = count($reads);\n if ($nreads > 0) {\n if (false === ($num = stream_select($reads, $writes, $excepts, $timeout))) {\n return(false);\n } elseif ($num > 0) {\n foreach ($reads as $stm) {\n foreach ([1, 2] as $i) {\n if ($stm == $pipes[$i]) {\n $result[$i == 1 ? \"out\" : \"err\"] .= fread($pipes[$i], 32768);\n }\n }\n }\n }\n }\n } while ($nreads > 0);\n fclose($pipes[1]);\n fclose($pipes[2]);\n $return_value = proc_close($process);\n $result[\"exitcode\"] = $return_value;\n $result[\"stopTime\"] = microtime(true);\n } else {\n print \"proc error\\n\";\n }\n return($result);\n }", "title": "" }, { "docid": "4ec518a2c302f99dc6578fae073369be", "score": "0.4527977", "text": "function run(){\n\n\t\tif($this->getTimeout() != self::NO_TIMEOUT ){\n\t\t\t$chrTimeout = \"-o ConnectTimeout={$this->getTimeout()}\";\n\t\t} else {\n\t\t\t$chrTimeout = \"\";\n\t\t} # end if\n\n\t\t# Clean out bad chars\n\t\t$chrExecute = str_replace('\"', '\\\"', $this->getCommand());\n\t\t$chrExecute = str_replace('`', '\\`', $chrExecute);\n\n\t\tif($this->blnSuperuser){\n\t\t\t$chrExecute = \"sudo $chrExecute\";\n\t\t}\n\t\t\n\t\t$chrCommand = \"/usr/bin/ssh -o StrictHostKeyChecking=no -i {$this->getKey()} {$this->getUsername()}@{$this->getHostname()} \\\"$chrExecute\\\"\";\n\t#\t\tdisplay($chrCommand);\n\t\n\t\tif($this->getLog()){\n\t\t\t$objFile = fopen('/tmp/ssh.log', 'a');\n\t\t\tfwrite($objFile, \"\\n\" . $chrCommand . \"\\n\");\n\t\t\tfclose($objFile);\n\t\t}\n\n\t\tswitch($this->getReturnMethod()){\n\n\t\t\tcase self::RETURN_PASSTHRU:\n\t\t\t\techo \"Return: \" . passthru($chrCommand, $this->intReturn);\n\t\t\t\tflush();\n\t\t\tbreak;\n\n\t\t\tcase self::RETURN_ARRAY:\n\t\t\t\texec($chrCommand, $this->arrOutput, $this->intReturn);\n\t\t\tbreak;\n\n\t\t} # end switch\n\n\t\tif($this->intReturn != 0){\n\t\t\t#$objError = new Error(\"Failed to contact server: \" . $this->getHostname(), Error::WARNING );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t} # end if\n\n\t}", "title": "" }, { "docid": "2a6d432929e1b234ae2a389891492db6", "score": "0.45241562", "text": "private function callLatexMk() {\n\t\t// set the env variable\n\t\tputenv('TEXMFOUTPUT='.$this -> directory);\n\n\t\t// execute the command\n\t\t$cmd = sprintf('%s -pdf -pdflatex=\\'%s\\' -halt-on-error -output-directory=%s %s/%s 2>&1', \n\t\t\t$_ENV['LATEXMK_PATH'], \n\t\t\t$_ENV['PDFLATEX_PATH'], \n\t\t\t$this -> directory, \n\t\t\t$this -> directory, \n\t\t\t$this -> name);\n\t\texec($cmd, $outputArr, $status);\n\n\t\t$output = '';\n\t\tif (sizeof($outputArr) == 3) {\n\t\t\t$output = file_get_contents($this -> directory . '/' . $this -> name . '.log');\n\t\t} else {\n\t\t\tforeach ($outputArr as $row) {\n\t\t\t\t$output .= $row . '\\n';\n\t\t\t}\n\t\t}\n\n\t\t// check for errors and throw an LatexException if there is any\n\t\tif ($status != 0) {\n\t\t\tthrow new LatexException($output);\n\t\t} else if ($this -> checkForLatexError($output) == true) {\n\t\t\tthrow new LatexException($output);\n\t\t}\n\t}", "title": "" }, { "docid": "53292355ca195053c0dad536b74484b7", "score": "0.45171744", "text": "function exec($str) {\n $retCode = 1;\n $str = \"ionice -c3 nice -n 19 $str >> \" . $this->file .\" 2>&1\" ;\n $this->log(\"executing cmd: \\\"\".$str.\"\\\"\");\n system($str, $retCode);\n $this->log(\"exit status: \".$retCode);\n $this->log(\"\");\n return $retCode;\n }", "title": "" }, { "docid": "a29363e4ba2b5ff19cd5f7a5f9daef67", "score": "0.45164797", "text": "public function run($command)\n {\n passthru($command);\n }", "title": "" }, { "docid": "a29363e4ba2b5ff19cd5f7a5f9daef67", "score": "0.45164797", "text": "public function run($command)\n {\n passthru($command);\n }", "title": "" }, { "docid": "d26f7d3a25844ff067cbf425a1becf03", "score": "0.4516315", "text": "public function exec() { \n $this->codeInjectionCheck();\n /* \n -s Don't add user site directory to sys.path.\n\n -S Disable the import of the module site and the site-dependent\n manipulations of sys.path that it entails.\n (think to create a black list of modules...)\n */ \n //$command = \"export PYTHONDUMPREFS=1 & \" . $this->kernelPath . \" -s -c '\" . $this->code . \"'\";\n $command = $this->kernelPath . \" -c '\" . $this->code . \"' \" . ($this->showSTDERR ? \" 2>&1 \" : \"\");\n $this->output = `$command`;\n }", "title": "" }, { "docid": "d4eabed78eda43b1fc488220f89135e6", "score": "0.45104814", "text": "public function cmd(Request $req)\n {\n $username = 'admin';\n $password = '3d2R';\n $ip = '10.1.1.200';\n $port = '22';\n\n $connection = ssh2_connect( $ip, $port);\n ssh2_auth_password($connection, $username, $password);\n $cisco = $req->get('cmd');\n $stream = ssh2_exec($connection, $cisco);\n $errorStream = ssh2_fetch_stream($stream, SSH2_STREAM_STDERR);\n stream_set_blocking($errorStream, true);\n stream_set_blocking($stream, true);\n $output = stream_get_contents($stream);\n $lignes = explode(\"\\n\", $output);\n foreach ( $lignes as $key => $ligne ) {\n if ($key < 1) continue;\n if (trim(preg_replace('/\\s\\s+/', ' ', $ligne)) == '\"\"\"' || trim(preg_replace('/\\s\\s+/', ' ', $ligne)) == 'Port') continue;\n }\n\n return response()->json([\n 'data' => $output\n ]);\n }", "title": "" }, { "docid": "9302e6729ec9bd49ffb06987b0dc625d", "score": "0.45071042", "text": "function getNotesForKeys(){\n $output = dbcCmd(\"getNotesForKeys\\n\");\n \n //Error Check\n if($output[\"stdout\"] == \"failed\\n\"){\n return str_replace(\"\\n\",\"\",$output[\"stdout\"]);\n }\n \n return $output[\"stdout\"];\n}", "title": "" }, { "docid": "6fd4266b253e50a5a9d7d95696422223", "score": "0.44995803", "text": "function _exec($cmd, &$output) {\n\n $command = $cmd;\n $ret = exec($command, $output, $retval);\n \n}", "title": "" }, { "docid": "db8d9879c1380493a83d703d7861c7b6", "score": "0.44965887", "text": "function shell_command($command, $echo=false, $dryrun=false) {\n // sync photos for amsterdam\n if($dryrun) {\n echo(\"Shell Command: <b>$command </b><br/>\");\n return;\n }\n $output = shell_exec($command);\n if($echo) echo(\"<b>$command:</b><br>\".$output);\n}", "title": "" }, { "docid": "8b1796fd48a34f36eb23605edc2e710a", "score": "0.4495782", "text": "public function runCommand(Application $app, $command)\n {\n $app['console']->setAutoExit(false);\n\n $fp = tmpfile();\n $input = new StringInput($command);\n $output = new StreamOutput($fp);\n\n $app['console']->run($input, $output);\n\n fseek($fp, 0);\n $output = '';\n while (!feof($fp)) {\n $output = fread($fp, 4096);\n }\n fclose($fp);\n\n return $output;\n }", "title": "" }, { "docid": "b5732e470a61089e177d3dd2bfd48f17", "score": "0.44919264", "text": "public function getStdOutLines(SSHCommandInterface $command): array\n {\n return $this->getConnection()->getStdOutLines();\n }", "title": "" }, { "docid": "0359704a437592542057f34cbb07e5b7", "score": "0.448851", "text": "function output($output)\n{\n return (new ConsoleOutput())->writeln($output);\n}", "title": "" }, { "docid": "80dd05d3f1f6b4af8f3b74be2c2f32c1", "score": "0.44776568", "text": "public function processCommand($command);", "title": "" }, { "docid": "86aa5b76d24676543a0aa53dd5b6bc0a", "score": "0.44700423", "text": "public function exec($cmd) {\n if(!$this->connection) return(\"No connection\\n\");\n if(!($stream = ssh2_exec($this->connection, $cmd))) {\n die(\"SSH command failed\\n\");\n }\n stream_set_blocking($stream, true);\n $data = \"\";\n while ($buf = fread($stream, 4096)) {\n $data .= $buf;\n }\n fclose($stream);\n return $data;\n }", "title": "" }, { "docid": "2e28e3f358ad8b595d8ae65cd958e108", "score": "0.44681892", "text": "protected function _execute($command)\n {\n Streamwide_System_Command_Runner::runCommand($command, null, $result, $stdout);\n\n return $stdout;\n }", "title": "" }, { "docid": "61e0b709d0b1ec8083295e7e6a4fcba9", "score": "0.44618648", "text": "public function getLine();", "title": "" } ]
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "292dce0fb25f89abb8c64bf979c1cafd", "score": "0.0", "text": "public function __construct()\n {\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "f2a8a6dabb56f39daaf63fa047807979", "score": "0.82668066", "text": "protected function createController()\n {\n $this->createClass('controller');\n }", "title": "" }, { "docid": "533144d4d648d293dbbc6fe3cf27bbc4", "score": "0.8173394", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "title": "" }, { "docid": "009489a62f264e72dc26611f5f6b8e4c", "score": "0.78115296", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "title": "" }, { "docid": "96bf93207c54bc07dea5f79ad4bbbac0", "score": "0.77052677", "text": "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "3bdd2d2191aefb9704f39b9261dffb98", "score": "0.7681875", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "title": "" }, { "docid": "4a9c22e73d83f9952868a759ac74f09f", "score": "0.7659338", "text": "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "title": "" }, { "docid": "70f5a9f9baafe3bd5768677d381e5c47", "score": "0.74860525", "text": "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "title": "" }, { "docid": "683431e5a15f99ac4cac3c7183a4d875", "score": "0.74064577", "text": "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "title": "" }, { "docid": "7044e60860800b5a3eab09c60e06bbbf", "score": "0.7297601", "text": "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "title": "" }, { "docid": "6f13b253b8c8dee53ff96601b68560fe", "score": "0.7252339", "text": "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "title": "" }, { "docid": "ce2e2bdb91cb96b738f8229489a7c2a7", "score": "0.7195181", "text": "public function createController( ezcMvcRequest $request );", "title": "" }, { "docid": "f04ee15a350dcb74c3536147b32d0d4a", "score": "0.7174191", "text": "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "title": "" }, { "docid": "ab5d0af4bfb6adff442d858f4c81ea9c", "score": "0.70150065", "text": "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "title": "" }, { "docid": "3478aecec4534d15e334f0c29fe27303", "score": "0.6989306", "text": "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "title": "" }, { "docid": "f3d3c1f12d74bc40b3597bd93e355adb", "score": "0.69835985", "text": "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "title": "" }, { "docid": "14a13bf54d8578e5d149c0883fff8188", "score": "0.69732994", "text": "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "ab4fe2ca874b633c7f4cf15421945365", "score": "0.6963521", "text": "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "title": "" }, { "docid": "de4b281ca1111c102066f229b9c0a754", "score": "0.6935819", "text": "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "title": "" }, { "docid": "db217dc005a426b44f51eb7f759f5d1b", "score": "0.68973273", "text": "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "title": "" }, { "docid": "7c99e464d9a5586cb986160967f0b093", "score": "0.68920785", "text": "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "title": "" }, { "docid": "af02db0fcd660d586455e9e5f45b84ca", "score": "0.6877748", "text": "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "title": "" }, { "docid": "26aa3860caa7d1ba98d7f08e7c3daca1", "score": "0.68702674", "text": "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "title": "" }, { "docid": "54f3bd3e2cbfede0ee337a4f04cb580b", "score": "0.68622285", "text": "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "title": "" }, { "docid": "bb2902ade90d8adf4bbb7d6df661f2da", "score": "0.6839049", "text": "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "title": "" }, { "docid": "4d6395015d31266797529df150784a1e", "score": "0.6779292", "text": "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "a63577bbe00a8d905bcd679acc6c0582", "score": "0.6703522", "text": "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "467075b0298df3faa7c57bb978345fee", "score": "0.66688496", "text": "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "title": "" }, { "docid": "d2abe796c2e934d6af4eb56535f83974", "score": "0.66600126", "text": "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "title": "" }, { "docid": "12b3061ca6befae87704d3d91c1e63b8", "score": "0.6650373", "text": "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "title": "" }, { "docid": "e5eb97ae5bceb33a1b4b8b1dfbae3b55", "score": "0.66436416", "text": "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "title": "" }, { "docid": "cbfb3615a9d251258567a3a07c55a3f6", "score": "0.6615505", "text": "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "119bb1044c5b46d04d1b730be927eb1b", "score": "0.66144013", "text": "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "14fd6b4f7ac02efdcff4d30ef4b7b555", "score": "0.6588728", "text": "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "title": "" }, { "docid": "4bf729ef62655b25d2e5f8a2012fb940", "score": "0.64483404", "text": "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "title": "" }, { "docid": "ac6388a791747c5283318e8f0acd4ee6", "score": "0.64439476", "text": "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "title": "" }, { "docid": "dcac8ad306f47c519df460d8b25bc0d3", "score": "0.6429303", "text": "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "title": "" }, { "docid": "b7bc03d83ef43b44edec1667acd9d200", "score": "0.6426485", "text": "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "title": "" }, { "docid": "7549c3aa5de8c608d233608a05e0d2ff", "score": "0.6303757", "text": "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "title": "" }, { "docid": "9f4dd4d5ed5aecd2b08522632df08340", "score": "0.6298291", "text": "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "title": "" }, { "docid": "ef904e57c49b4c63502f9599c4369910", "score": "0.6293319", "text": "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "title": "" }, { "docid": "38f2158f27dcbe384172e6072562f092", "score": "0.62811387", "text": "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "title": "" }, { "docid": "0ccfd8e75fef53760e68b6c0451a1fef", "score": "0.6258778", "text": "public function getController( );", "title": "" }, { "docid": "8e040943c52a229307c95749c1e144f8", "score": "0.62542456", "text": "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "b0a2bc5d188bc08393d02e7d5ea62ea9", "score": "0.616827", "text": "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "title": "" }, { "docid": "82927759d02a8d347ca279944293ac27", "score": "0.6162314", "text": "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "title": "" }, { "docid": "7e93c64cd2508a462bd6071f50013332", "score": "0.61610043", "text": "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "title": "" }, { "docid": "6715ace39f1bed012bf1900ff23df12e", "score": "0.6139887", "text": "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "title": "" }, { "docid": "7fcf639581fd6020a3b7c3ed99d584a9", "score": "0.613725", "text": "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "title": "" }, { "docid": "7e3d5d05001dd55f8ad7d8bff78f0789", "score": "0.61334985", "text": "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "4e1e4562b5f52e83da2981f23ec33f5d", "score": "0.6132223", "text": "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "7905f65e0331b365778f5a7ceedacdde", "score": "0.6128982", "text": "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "title": "" }, { "docid": "f69c72840a127ec65794a7ca006ac99d", "score": "0.61092585", "text": "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "title": "" }, { "docid": "5cc35cd246810b6f1420ca4affe08dc6", "score": "0.6094611", "text": "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "title": "" }, { "docid": "7b81f3c3067d9dd740145e799cf912f2", "score": "0.60889256", "text": "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "title": "" }, { "docid": "e5a7003e62406b031e2c1976a3506949", "score": "0.6074893", "text": "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "title": "" }, { "docid": "fc7619a99f2e1f27ecec1da2b2d4dd71", "score": "0.60660255", "text": "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "title": "" }, { "docid": "cfd16ae75032c42e9048fbba4f4a97fb", "score": "0.6059098", "text": "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "title": "" }, { "docid": "3d3d3622bcbf6b0c67d47020747f2a31", "score": "0.60565156", "text": "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "title": "" }, { "docid": "0da763b3654ed0f6214c865e73ed0917", "score": "0.6044235", "text": "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "title": "" }, { "docid": "1be50beedce37b703d177c8bd3c8da5c", "score": "0.60288006", "text": "public function controller()\n\t{\n\t\n\t}", "title": "" }, { "docid": "a7386305c6e5fbb6f36a2a8be39a9b82", "score": "0.6024102", "text": "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "title": "" }, { "docid": "abdd3aab1e9a970d8f80278bf251bbf2", "score": "0.60225666", "text": "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "title": "" }, { "docid": "3a48ab65ecaa7dd2bc53058b4fee9628", "score": "0.6018304", "text": "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "7506e894d29d2a88723ac9484f3759c5", "score": "0.60134345", "text": "public function __construct()\n {\n $this->controller = new DHTController();\n }", "title": "" }, { "docid": "5d1f715c4375f36c6e71f4896bddad9f", "score": "0.60124683", "text": "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "2bfb916db9f65c492f7ab65b305d44d0", "score": "0.6010913", "text": "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "title": "" }, { "docid": "49d3f71900471c7711d63fcf8972a50c", "score": "0.6009284", "text": "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "title": "" }, { "docid": "0a9ac0827670afb9a4fe084a7ba7aea6", "score": "0.6001683", "text": "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "a4db845ce7d430e303e4a0e1b019725a", "score": "0.5997471", "text": "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "title": "" }, { "docid": "c62c6d84b68a6333f66ee17281270610", "score": "0.5997012", "text": "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "title": "" }, { "docid": "e45e299ecd108dd2739b682a4b2f7fa3", "score": "0.59942573", "text": "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "c639aeed5a879f266ff6ccb3e408cdf0", "score": "0.5967613", "text": "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "d22952c1b01ed297dea3cb69a880cc0a", "score": "0.5952533", "text": "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "title": "" }, { "docid": "c8ff75f90c841156f292115e9084f595", "score": "0.5949068", "text": "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "title": "" }, { "docid": "1d34b2ba4c963ea6f67765bfff4fafd2", "score": "0.5942203", "text": "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "title": "" }, { "docid": "4b799c73bbfacf4ec63267455475fdca", "score": "0.5925731", "text": "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "title": "" }, { "docid": "4aacbb01b668a7f7c17621724024dc01", "score": "0.5914304", "text": "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "title": "" }, { "docid": "8515e9b3e33042025f5ecd35086b328a", "score": "0.5914013", "text": "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "title": "" }, { "docid": "1a90ee1fc794cf14c011e55979635326", "score": "0.59119135", "text": "public function AController() {\r\n\t}", "title": "" }, { "docid": "34afe0f26fbce3adcd6664979c3a027e", "score": "0.5910308", "text": "protected function initializeController() {}", "title": "" }, { "docid": "024679c054837dd5071a71a0f7448d3a", "score": "0.5910285", "text": "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "title": "" }, { "docid": "9c60fbff64810741d378ec324a56be82", "score": "0.59013796", "text": "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "title": "" }, { "docid": "4d36d0f6de19c545b708c4bf17c72278", "score": "0.59003943", "text": "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "title": "" }, { "docid": "7b6f8910eb63014d51ec55f02f52a610", "score": "0.5897524", "text": "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "title": "" }, { "docid": "4897ee3c84ff21e8bb4391913e5dc4bd", "score": "0.58964556", "text": "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "title": "" }, { "docid": "0366d02c407935bc86f3865cfc5a8939", "score": "0.58952993", "text": "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "title": "" }, { "docid": "0a33f1e5fbf51371135310f880d82a6b", "score": "0.58918965", "text": "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "title": "" }, { "docid": "b95bc4d8b0c755c0084027810e79d006", "score": "0.5888943", "text": "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "title": "" }, { "docid": "9d8af760cd533b988959dc324aa30ed8", "score": "0.5875413", "text": "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "title": "" }, { "docid": "3bae63fb4209650c5a11ab8a4b571656", "score": "0.5869938", "text": "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "title": "" }, { "docid": "6d08f2b04568c8d17dfcfabea3a2e804", "score": "0.58627135", "text": "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "title": "" }, { "docid": "62e592a68a196af2611a91496c1d5429", "score": "0.58594996", "text": "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.5853714", "text": "public function create() {}", "title": "" }, { "docid": "7b561b600e335d92de1b8bb07cc12380", "score": "0.5839484", "text": "public function __construct()\n {\n $this->dataController = new DataController;\n }", "title": "" }, { "docid": "00d388932acd1dcf303ac4f39a144654", "score": "0.5832913", "text": "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "title": "" }, { "docid": "de65716cb5c0640a232957bbdb3dd01f", "score": "0.582425", "text": "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "title": "" }, { "docid": "4be6a64d6a050c4624af4828e156e1ae", "score": "0.58161044", "text": "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "title": "" }, { "docid": "77bc1784f9d5dd81ded5590f02a1bbe0", "score": "0.5815566", "text": "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "title": "" } ]
e831e6c8bf0a26a6add194331f77dba6
For now we just go with the empty display.
[ { "docid": "1eca6a699d6d9ab35a21dcf1d33c14f6", "score": "0.5906717", "text": "function get_default_display($bundle, $view_mode) {\n // @todo come up with a better default display.\n return parent::get_default_display($bundle, $view_mode);\n }", "title": "" } ]
[ { "docid": "b2cd2ec7a25d30381879591d18fac92c", "score": "0.7683858", "text": "function print_nothing_to_display(){\r\n global $OUTPUT;\r\n $this->print_initials_bar();\r\n\r\n echo $this->wrap_html_start();\r\n\r\n echo $OUTPUT->heading(get_string('nothingtodisplay'));\r\n\r\n echo $this->wrap_html_finish();\r\n }", "title": "" }, { "docid": "88aa29bbf926135c244fb620fcaf2ec1", "score": "0.7153958", "text": "public function _empty() {\n\t\t//echo \"111\";\n $this->display(\"Index/index\");\n }", "title": "" }, { "docid": "75c291c27168ffa2ac88f3cb84658c85", "score": "0.69695354", "text": "protected function displayEmpty(){\n\t\t$back_trace = array('Inicio', 'Movimientos', 'Envios');\n\t\t$msg = 'No hay envios en esas fechas en la base de datos.';\n\t\tPage::display(array('module_title' => INVENTORY_TITLE, 'main_menu' => 'back_link.tpl',\n\t\t\t\t'back_link' => 'index.php?cmd=show_shipment_menu', 'back_trace' => $back_trace,\n\t\t\t\t'second_menu' => 'none', 'content' => 'none', 'notify' => '1', 'type' => 'info',\n\t\t\t\t'message' => $msg), 'site_html.tpl');\n\t}", "title": "" }, { "docid": "0b45a045669674eaf425b29d1c47c137", "score": "0.68851113", "text": "function showDefaultEntry() {\n\t\t$this->pl->setBlankWorkingEntry();\n\t}", "title": "" }, { "docid": "6a9d3a157d2c5d5608defa88364667cb", "score": "0.67360395", "text": "function display()\n {\n return '';\n }", "title": "" }, { "docid": "4005dfc15247480fd1edd05270837d7a", "score": "0.6735216", "text": "protected function isDisplayWithEmptyList()\n {\n return true;\n }", "title": "" }, { "docid": "8c486d693826d425b63c2fc2196ae8b8", "score": "0.67289776", "text": "function display(){}", "title": "" }, { "docid": "5685d2ced4f749c0d59d1c5259f7a968", "score": "0.6687268", "text": "public function display() {\n \n }", "title": "" }, { "docid": "c2264b798f317c4c15485f49f5838360", "score": "0.66703486", "text": "protected function prepareForDisplay() {}", "title": "" }, { "docid": "c2264b798f317c4c15485f49f5838360", "score": "0.66703486", "text": "protected function prepareForDisplay() {}", "title": "" }, { "docid": "9fd15a3b7dcf1652a1139351526350e9", "score": "0.66252846", "text": "public function display() {}", "title": "" }, { "docid": "325757b0f60bcf514f6cbdff3e4584b5", "score": "0.65502703", "text": "abstract public function display();", "title": "" }, { "docid": "325757b0f60bcf514f6cbdff3e4584b5", "score": "0.65502703", "text": "abstract public function display();", "title": "" }, { "docid": "325757b0f60bcf514f6cbdff3e4584b5", "score": "0.65502703", "text": "abstract public function display();", "title": "" }, { "docid": "8073b3ccffd7c0ce9a35767404810c44", "score": "0.65160424", "text": "protected function renderEmpty()\n {\n echo '(Нет данных)';\n }", "title": "" }, { "docid": "ef66c2bb5979da1ad49ce6aeadda2dcd", "score": "0.6507329", "text": "protected function refreshDisplay()\n {\n // works on my mac, don't know about other systems\n $left = \"\\033[D\";\n\n if ($this->currentItem >= $this->nbTotalItems) {\n $this->currentItem = $this->nbTotalItems;\n }\n\n if ('int' === $this->displayMode) {\n $visibleChars = (string)($this->currentItem . \"/\" . $this->nbTotalItems);\n } // assuming percent mode\n else {\n if ($this->currentItem >= $this->nbTotalItems) {\n $percent = '100';\n } else {\n $percent = (int)(($this->currentItem / $this->nbTotalItems) * 100);\n }\n $visibleChars = '' . $percent . '%';\n }\n\n\n //\n if (0 === $this->currentItem) {\n $message = '';\n } else {\n $message = str_repeat($left, $this->lastLoaderLength);\n }\n $message .= $visibleChars;\n\n\n $this->lastLoaderLength = strlen($visibleChars);\n\n $this->output->write($message);\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.6481203", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.6481203", "text": "public abstract function display();", "title": "" }, { "docid": "35a19fc3d0a9507c1461a6146c5e1fb9", "score": "0.6470576", "text": "public function hideContents()\r\n\t{\r\n\t\t$this->_displayContents = false;\r\n\t}", "title": "" }, { "docid": "0bc9f118d4fe7c82c9c6f83d8ab7e449", "score": "0.6456695", "text": "function display()\n\t{\n\t\t\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "1730c4322aae43bba8b518f4ac5118d6", "score": "0.6430011", "text": "function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "1730c4322aae43bba8b518f4ac5118d6", "score": "0.6430011", "text": "function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "90b87369d7e11022274b358329e41933", "score": "0.64193755", "text": "public function display();", "title": "" }, { "docid": "90b87369d7e11022274b358329e41933", "score": "0.64193755", "text": "public function display();", "title": "" }, { "docid": "90b87369d7e11022274b358329e41933", "score": "0.64193755", "text": "public function display();", "title": "" }, { "docid": "90b87369d7e11022274b358329e41933", "score": "0.64193755", "text": "public function display();", "title": "" }, { "docid": "90b87369d7e11022274b358329e41933", "score": "0.64193755", "text": "public function display();", "title": "" }, { "docid": "c8d09f334ac09f8790bb43f44461a79a", "score": "0.641351", "text": "public function display() {\r\n }", "title": "" }, { "docid": "7bed6ca735d75fda7897e61947cd08bb", "score": "0.6406518", "text": "function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "7bed6ca735d75fda7897e61947cd08bb", "score": "0.6406518", "text": "function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "7bed6ca735d75fda7897e61947cd08bb", "score": "0.6406518", "text": "function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "7b197e53a51be042ebe166f155fa10fa", "score": "0.6319532", "text": "function\n\tjmfeStandardDisplay()\n\t{\n\t\t$this->HeaderField = '';\n\t\t$this->CenterImage = 1;\n\t\t$this->Fields = array(\n\t\t\t\t'SummaryData',\n\t\t\t\t'irn_1',\n\t\t\t\t'TitMainTitle',\n\t\t\t\t'SumAssocPartyLocal_tab',\n\t\t\t\t'CreDateCreated',\n\t\t\t\t'TitItemType',\n\t\t\t\t'TitItemDescription',\n\t\t\t\t);\n\t\t\n\t\t$this->BaseStandardDisplay();\n\t}", "title": "" }, { "docid": "b6b80b08062b23c215108619fbf18cb1", "score": "0.6311212", "text": "public function renderDefault()\r\n\t{\r\n\t}", "title": "" }, { "docid": "ef3fb32b359d85e91687f25572082d98", "score": "0.62790686", "text": "public function display()\r\n {\r\n\r\n echo $this->get_display();\r\n\r\n }", "title": "" }, { "docid": "24bf375e9698be8d572f6715a1407e02", "score": "0.62098414", "text": "public function renderDefault() {\r\n\t}", "title": "" }, { "docid": "b5cfa0ff1aa29db34153a05bbd3c8a40", "score": "0.6197636", "text": "function renderEmpty()\n{\n _settings('tag_data', _settings('empty_tag'));\n render();\n}", "title": "" }, { "docid": "2148827ee1c80e6a8a8173e039067f50", "score": "0.6189965", "text": "public function renderEmptyText()\n\t{\n\t\t$emptyText=$this->emptyText===null ? 'No results found.' : $this->emptyText;\n\t\techo \\Core\\Html::tag($this->emptyTagName, array('class'=>'empty'), $emptyText);\n\t}", "title": "" }, { "docid": "02ff398f2e7382263dcaf0bf482f8352", "score": "0.6188042", "text": "public static function clear()\n {\n echo Background::DEFAULT . Text::DEFAULT . \"\\n\";\n }", "title": "" }, { "docid": "4fb7b8d9b01b40740f93b36ce96456e6", "score": "0.6151959", "text": "public function shouldDisplay();", "title": "" }, { "docid": "7be36f8ab982a049791d186accae2c85", "score": "0.6134155", "text": "public function defaultEmpty() {\n // We return with no query; this will force the empty text.\n $this->view->built = TRUE;\n $this->view->executed = TRUE;\n $this->view->result = [];\n return FALSE;\n }", "title": "" }, { "docid": "c6b1846c56d3e0fbf13bf539758d6ca4", "score": "0.6132646", "text": "public final function display(): void\n {\n print $this->toString();\n }", "title": "" }, { "docid": "2ef299318b7076cb1ee7a3b7530f2caf", "score": "0.6130121", "text": "function display()\n\t{\n\t\techo '<div id=\"system\">';\n\t\tparent::display();\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "50b3dacff0d7dfdc213c221691ce056c", "score": "0.6124687", "text": "private function displayOutput(): void\n {\n $this->climate->clear();\n $this->climate->bold()->table([\n [\n 'Used %' => $this->memory->getUsedPercent() . '%',\n 'Available' => $this->memory->getAvailable()->getMb() . ' MB',\n 'Free' => $this->memory->getFree()->getMb() . ' MB',\n 'Real Free' => $this->memory->getRealFree()->getMb() . ' MB',\n 'Buffer' => $this->memory->getBuffer()->getMb() . ' MB',\n 'Cached' => $this->memory->getCached()->getMb() . ' MB',\n 'Swap' => $this->memory->getSwap()->getMb() . ' MB',\n 'Total' => $this->memory->getTotal()->getMb() . ' MB',\n ],\n ]);\n sleep(1); // Forces A Refresh Every Second\n }", "title": "" }, { "docid": "f76d51743950c99256f7236c8119d2d7", "score": "0.61134976", "text": "public function renderDefault() {\n \n \n }", "title": "" }, { "docid": "d2e0795192e91161b5ea9f9820b29f13", "score": "0.6108454", "text": "public function render_content() {\n\t\t// Render nothing.\n\t}", "title": "" }, { "docid": "3aa2360b02651d2e20675ada07adba3b", "score": "0.6104592", "text": "abstract protected function displayContent();", "title": "" }, { "docid": "f5f1fa09099b1f1d83e4b98eda388c21", "score": "0.6088699", "text": "public function display()\n {\n }", "title": "" }, { "docid": "34b0658884022a4f29a66188f8a16e88", "score": "0.60531306", "text": "public function display()\n {\n print $this->toHtml();\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.6037395", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "41dc799b9080a05e83c808b8f865a64e", "score": "0.6028614", "text": "public function display() {\n echo \"Soy un pato de goma <br>\";\n }", "title": "" }, { "docid": "0e5d02977045936811b86072552fd1dd", "score": "0.6028401", "text": "function render_nothing($status = null) {\n\t\t$this->render_text(' ', $status);\t\n\t}", "title": "" }, { "docid": "9210b1d49842416c4f222144c66a638d", "score": "0.60221595", "text": "public function renderDefault() { }", "title": "" }, { "docid": "3c087c4e0190a80d0afa4b6b16a1abee", "score": "0.59969884", "text": "public function never_quit()\n\t{\n\t\t$this->layout = 'main';\n\t}", "title": "" }, { "docid": "82899a5e5bbee703bd63ea38df0f6354", "score": "0.59878105", "text": "function widget_display() { }", "title": "" }, { "docid": "204e0c539c5c45d6e39ea5350c00609c", "score": "0.59655845", "text": "public function display()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "c757030b65235859dcf45de4e864dfbd", "score": "0.5956683", "text": "public function isDisplayChangeSupported() { return false; }", "title": "" }, { "docid": "fda455cfb913bf545377b2a320a1243a", "score": "0.5949618", "text": "public function render_section(){\r\n\t\t\techo '';\r\n\t\t}", "title": "" }, { "docid": "d138cb59b6d8df8768f135975e4445ad", "score": "0.59192884", "text": "public function show()\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "21eb745fd8fab7def6eb7c9112b9730f", "score": "0.5891288", "text": "public function _empty()\r\n\t{\r\n\t\t//@TODO: if not exist,what we will do\r\n\t\t$this->display('Public/404');\r\n\t}", "title": "" }, { "docid": "beb50dc39d3d7790bdff57c8cad633e1", "score": "0.5879167", "text": "public final function display() {\n\t\t\tif ($this->init()) { return; }\n\t\t\tif ($this->doHeaders() === false) { return; }\n\n\t\t\t$showChrome = $this->showChrome();\n\n\t\t\tif ($showChrome) {\n\t\t\t\t$this->tf()->get('header')->display();\n\n\t\t\t\t// How many grids wide is the sidebar?\n\t\t\t\t$sidebarWidth = $this->tf()->getVar('sidebarWidth', 3);\n\n\t\t\t\t// Forced sizes?\n\t\t\t\t$fluid = $this->tf()->getVar('fluid', false);\n\n\n\t\t\t\t// TODO: This bit needs to be templated better.\n\t\t\t\tif (session::isLoggedIn() && ($this->tf()->getVar('showSidebar', true) || $this->tf()->getVar('showPeriods', false))) {\n\t\t\t\t\tif ($fluid) {\n\t\t\t\t\t\techo '<div style=\"width: 270px; float: left\">';\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo '<div class=\"col-sm-' . $sidebarWidth . '\">';\n\t\t\t\t\t}\n\t\t\t\t\t$this->tf()->get('sidebar')->display();\n\t\t\t\t\techo '</div>';\n\n\t\t\t\t\tif ($fluid) {\n\t\t\t\t\t\techo '<div id=\"mainContentContainer\" style=\"padding-left: 30px; float: left; width: calc(100% - 270px);\">';\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo '<div class=\"col-sm-' . (12 - $sidebarWidth). '\">';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\techo '<div class=\"col-sm-12\">';\n\t\t\t\t}\n\n\t\t\t\t// echo '<div class=\"', ($fluid ? 'container-fluid' : 'container'), '\" role=\"main\" style=\"padding-right: 0px\">';\n\t\t\t\techo '<div class=\"container-fluid\" role=\"main\" style=\"padding-right: 0px; padding-left: 0px\">';\n\t\t\t\techo '<div class=\"row\">';\n\n\t\t\t\tif (session::exists('message')) {\n\t\t\t\t\t$messages = session::get('message');\n\t\t\t\t\tforeach ($messages as $message) {\n\t\t\t\t\t\t$this->tf()->get('message')->setVar('message', $message)->display();\n\t\t\t\t\t}\n\t\t\t\t\tsession::remove('message');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->displayPage();\n\n\t\t\tif ($showChrome) {\n\t\t\t\techo '</div>';\n\t\t\t\techo '</div>';\n\t\t\t\techo '</div>';\n\n\t\t\t\t?><script>\n\t\t\t\t\tvar cssCalcTestElement = document.createElement('div');\n\t\t\t\t\tcssCalcTestElement.style.cssText = 'width: calc(1px);';\n\t\t\t\t\tif (cssCalcTestElement.style.length < 1) {\n\t\t\t\t\t\t// Calc not supported, hack it.\n\t\t\t\t\t\t$(window).resize(function(){\n\t\t\t\t\t\t\t$(\"#mainContentContainer\").css(\"width\", \"100%\").css(\"width\", \"-=270px\");\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$(window).resize();\n\t\t\t\t\t}\n\t\t\t\t</script><?php\n\n\t\t\t\t$this->tf()->get('footer')->display();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ec2ef6293ac2a5edfdf460ea93967fcb", "score": "0.587683", "text": "function display() {\n\t //\n\t // Draw the \"top row\" of the maze\n\t //\n\t echo sprintf(\"%c[H\",27);\n\t $buffer = array();\n\t $out = \" \";\n\t for ( $c=0; $c < (2 * $this->width - 1); ++$c ) {\n\t $out .= \"_\";\n\t }\n\t array_push($buffer, $out);\n\n\t // \n\t // Step through the grid cells of the maze\n\t //\n\t for ( $y=0; $y < $this->height; ++$y ) {\n\t \t$out = \"|\";\n\t\tfor ( $x=0 ; $x < $this->width; ++$x ) {\n\t\t // \n\t\t // Color the cell if it is frontier\n\t\t //\n\t\t $cell = $this->grid[$y][$x];\n\t\t if ( $cell == self::$FRONTIER ) { $out .= sprintf(\"%c[41m\",27); }\n\t\t if ( $this->isEmpty($cell) && $y+1 < $this->height && $this->isEmpty($this->grid[$y+1][$x]) ) {\n\t\t $out .= \" \";\n\t\t } else {\n\t\t $out .= (($cell & self::$S) != 0) ? \" \" : \"_\";\n\t\t }\n\t\t if ( $cell == self::$FRONTIER ) { $out .= sprintf(\"%c[m\",27); }\n\n\t\t //\n\t\t // Draw the \"grid\" of the maze\n\t\t //\n\t\t if ( $this->isEmpty($cell) && $x+1 < $this->width && $this->isEmpty($this->grid[$y][$x+1]) ) {\n\t\t $out .= ($y+1 < $this->height) && ($this->isEmpty($this->grid[$y+1][$x]) || $this->isEmpty($this->grid[$y+1][$x+1]) ) ? \" \" : \"_\";\n\t\t } else if ( ($cell & self::$E) != 0 ) {\n\t\t $out .= (($cell | $this->grid[$y][$x+1]) & self::$S) != 0 ? \" \" : \"_\";\n\t\t } else {\n\t\t $out .= \"|\";\n\t\t }\n\t\t}\n\t\tarray_push($buffer, $out);\n\t }\n\t array_push($buffer, \"\");\n\n\t //\n\t // Flush the buffer\n\t //\n\t echo join($buffer, \"\\r\\n\");\n\t}", "title": "" }, { "docid": "a31675c8181397ceed78ba0c813d3a8b", "score": "0.5875232", "text": "public function __construct() {\n $this->_display = new StdClass;\n }", "title": "" }, { "docid": "9502fa1d18e86284f37a10ae746cd99c", "score": "0.58624065", "text": "function display_page() {\n if ($this->db_conn) {\n parent::display_page();\n }\n }", "title": "" }, { "docid": "a05fe94c1fd6cfdb3954244820eb8743", "score": "0.5860771", "text": "public function quienessomosAction()\n {\n \t$this->_helper->layout->disableLayout();\n }", "title": "" }, { "docid": "642f7cbb07871aa29448011d0cadb0be", "score": "0.5858679", "text": "public function showStandAlone(){\n\t\treturn View::make('report/poc_standalone');\n\t}", "title": "" }, { "docid": "31588b58339bd048ce12f72ecc84dda6", "score": "0.5830712", "text": "function\n\tdisplay()\n\t{\n\n\t\t$widthAttrib = '';\n\t\tif ($this->Width != '')\n\t\t\t$widthAttrib \t= 'width=\"' . $this->Width . '\"' ;\n\t\t$bodyColorAttrib = '';\n\t\tif ($this->BodyColor != '')\n\t\t\t$bodyColorAttrib\t= 'bgcolor=' . $this->BodyColor;\n\t\t$bodyTextColorAttrib = '';\n\t\tif ($this->BodyTextColor != '')\n\t\t\t$bodyTextColorAttrib\t= 'color=' . $this->BodyTextColor;\n\t\t$highlightColorAttrib = '';\n\t\tif ($this->HighlightColor != '')\n\t\t\t$highlightColorAttrib\t= 'bgcolor=' . $this->HighlightColor ;\n\t\t$headerTextColorAttrib = '';\n\t\tif ($this->HeaderTextColor != '')\n\t\t\t$headerTextColorAttrib= 'color=' . $this->HeaderTextColor;\n\t\t$borderColorAttrib = '';\n\t\t$headerColorAttrib = '';\n\t\tif ($this->BorderColor != '')\n\t\t{\n\t\t\t$borderColorAttrib= 'bordercolor=' . $this->BorderColor;\n\t\t\t$headerColorAttrib= 'bgcolor=' . $this->BorderColor;\n\t\t}\n\t\t$fontFaceAttrib = '';\n\t\tif ($this->FontFace != '')\n\t\t\t$fontFaceAttrib= 'face=\"' . $this->FontFace . '\"';\n\t\t$fontSizeAttrib = '';\n\t\tif ($this->FontSize != '')\n\t\t\t$fontSizeAttrib= 'size=\"' . $this->FontSize . '\"';\n\t\tif ($this->HeaderFontSize == '')\n\t\t{\n\t\t\tif ($this->FontSize != '')\n\t\t\t\t$this->HeaderFontSize = $this->FontSize + 1;\n\t\t\telse\n\t\t\t\t$this->HeaderFontSize = '+1';\n\t\t}\n\n\t\tprint \"<table $widthAttrib cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\tprint \"<tr><td align=\\\"left\\\">\\n\";\n\t\t$link = $this->QueryPage;\n\n\t\tif ($this->DisplayNewSearchLink)\n\t\t{\n\t\t\tprint \"&nbsp;<a href=\\\"$link\\\">\";\n\t\t\tPPrint($this->_STRINGS['NEW SEARCH'], $this->FontFace, $this->FontSize, $this->BodyTextColor);\n\t\t\tprint \"</a>\";\n\t\t}\n\t\tforeach ($this->OtherDisplayPages as $pagename => $pagelink)\n\t\t{\n\t\t\t$link = \"$pagelink?irn=\" . $this->IRN . \"&amp;QueryPage=\" . urlencode($this->QueryPage);\n\t\t\tPPrint(' | ', $this->FontFace, $this->FontSize, $this->BodyTextColor);\n\t\t\tprint \"<a href=\\\"$link\\\">\";\n\t\t\tPPrint($pagename, $this->FontFace, $this->FontSize, $this->BodyTextColor);\n\t\t\tprint \"</a>\";\n\t\t}\n\n\t\tprint \"</td>\\n\";\n\t\tprint \"</tr><tr><td colspan=\\\"2\\\">\\n\";\n\t\t$decorator = new HtmlBoxAndTitle;\n\t\t$decorator->BorderColor = $this->BorderColor;\n\t\t$decorator->BodyColor = $this->BodyColor;\n\t\t$decorator->TitleTextColor = $this->HeaderTextColor;\n\t\t$decorator->FontFace = $this->FontFace;\n\t\t$decorator->Width = \"100%\";\n\t\t$decorator->Title = $this->record->{$this->HeaderField};\n\t\t$decorator->Open();\n\n\t\tif ($this->DisplayImage)\n\t\t\t$this->DisplayMedia();\n\t\t\n\t\t// this is needed for dynamic javascript functionality \n\t\t//print \"<form method=POST action='/emuwebphm/objects/phm/test.php'>\\n\";\n\t\tprint \"<form method=POST action='NarResultsListObject.php'>\\n\";\n\n\t\tprint \" <table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"3\\\">\\n\";\n\t\tprint \"<!-- Start Field Content -->\\n\";\n\n\t\t// Foreach loop on each item in the $this->Fields var\n\t\t$i = $fieldNum = 0;\n\t\tforeach ($this->Fields as $item)\n\t\t{\n\t\t\t$fieldNum++;\n\t\t\tif (is_string($item))\n\t\t\t{\n\t\t\t\tif (isset($this->_STRINGS[$item]))\n\t\t\t\t\t$item = new Field($item, $this->_STRINGS[$item]);\n\t\t\t\telse\n\t\t\t\t\t$item = new Field($item, $item);\n\t\t\t}\n\n\t\t\t// Don't display if fields security doesn't allow\n\t\t\tif (isset($item->ValidUsers) \n\t\t\t\t&& strtolower($item->ValidUsers) != 'all')\n\t\t\t{\n\t\t\t\tif (! $this->SecurityTester->UserIsValid($item->ValidUsers))\n\t\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If it's a backreference item, then load data\n\t\t\t$this->_loadBackReferenceField($item);\n\n\t\t\tif (! $this->SuppressEmptyFields || $this->_hasData($item))\n\t\t\t{\n\t\t\t\t$i++;\n\t\t\t\tif ($fieldNum == 1)\n\t\t\t\t\tcontinue; // ignore first field as it's used in heading\n\t\t\t\tif ($i % 2 == 0)\n\t\t\t\t\tprint \"\t<tr $highlightColorAttrib align=\\\"left\\\" valign=\\\"top\\\">\\n\";\n\t\t\t\telse\n\t\t\t\t\tprint \"\t<tr align=\\\"left\\\" valign=\\\"top\\\">\\n\";\n\t\t\t\t\t\n\t\t\t\t// Print field name\n\t\t\t\tif ($item->Label != '')\n\t\t\t\t\t$label = $item->Label;\n\t\t\t\telseif ($item->Name != '')\n\t\t\t\t{\n\t\t\t\t\tif (isset($this->_STRINGS[$item->Name]))\n\t\t\t\t\t\t$label = $this->_STRINGS[$item->Name];\n\t\t\t\t\telse\n\t\t\t\t\t\t$label = $item->Name;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (isset($this->_STRINGS[$item->ColName]))\n\t\t\t\t\t\t$label = $this->_STRINGS[$item->ColName];\n\t\t\t\t\telse\n\t\t\t\t\t\t$label = $this->ColName;\n\t\t\t\t}\n\n\t\t\t\tif ($this->DisplayLabels)\n\t\t\t\t{\n\t\t\t\t\tprint \"\t <td width=\\\"160\\\"><b>\";\n\t\t\t\t\tprint \"<font $bodyTextColorAttrib $fontFaceAttrib $fontSizeAttrib>\";\n\t\t\t\t\tprint $label;\n\t\t\t\t\tprint \"</font></b></td>\\n\"; \n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprint \"\t <td>&nbsp;</td>\\n\";\n\t\t\t\t}\n\n\n\t\t\t\tprint \"\t <td>\\n\";\n\t\t\t\t$this->adjustOutput($item);\n\t\t\t\tprint \"</td>\\n\";\n\t\t\t\tprint \"\t</tr>\\n\";\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t// Print the extra multimedia\n\t\t$firstImage = ($this->DisplayImage) ? 2 : 1;\n\t\t\t\n\t\t$hasMedia = isset($this->record->{\"MulMultiMediaRef:$firstImage\"});\n\t\tif ($this->DisplayAllMedia && $hasMedia)\n\t\t{\n\t\t\tif ($i % 2 == 0)\n\t\t\t\tprint \"\t<tr align=\\\"left\\\" valign=\\\"top\\\">\\n\";\n\t\t\telse\n\t\t\t\tprint \"\t<tr $highlightColorAttrib align=\\\"left\\\" valign=\\\"top\\\">\\n\";\n\n\t\t\t// Print field name (This will normally be multimedia)\n\t\t\tif ($this->DisplayLabels)\n\t\t\t{\n\t\t\t\tprint \"\t <td width=\\\"160\\\"><b><font $bodyTextColorAttrib $fontFaceAttrib $fontSizeAttrib>\".\n\t\t\t\t\t\t$this->_STRINGS['MEDIA'] . \"</font></b></td>\\n\"; \n\t\t\t}\n\n\t\t\t// Display Images\n\t\t\tprint \"\t <td>\\n\";\n\t\t\tprint \"<!-- Start a table of thumbnails -->\\n\";\n\t\t\tprint \"<table border=\\\"0\\\" cellpadding=\\\"3\\\"><tr>\\n\";\n\t\t\t$i = $firstImage;\n\t\t\t$imgcount = 0;\n\t\t\t$mmField = \"MulMultiMediaRef:$i\"; \n\t\t\t$imgirn = $this->record->$mmField;\n\t\t\twhile ($imgirn != '')\n\t\t\t{\n\t\t\t\tif ($this->ImagesPerRow > 0 && ($imgcount % $this->ImagesPerRow == 0))\n\t\t\t\t\tprint \"</tr><tr>\";\n\n\t\t\t\tprint \"<td align=\\\"center\\\">\";\n\t\t\t\t$image = new MediaImage;\n\t\t\t\t$image->Intranet = $this->Intranet;\n\t\t\t\t$image->IRN = $imgirn;\n\t\t\t\t$image->BorderColor = $this->BorderColor;\n\t\t\t\tif ($this->SuppressImageBorders)\n\t\t\t\t\t$image->ShowBorder = 0;\n\t\t\t\t$image->HighLightColor = $this->BorderColor;\n\t\t\t\t$image->RefIRN = $this->IRN;\n\t\t\t\t$image->RefTable = $this->Database;\n\t\t\t\t$image->UseAbsoluteLinks = $this->UseAbsoluteLinks;\n\t\t\t\t$image->KeepAspectRatio = $this->KeepAssociatedImagesAspectRatio;\n\t\t\t\t$image->Width = 60;\n\t\t\t\t$image->Height = 60;\n\t\t\t\tif ($this->ImageDisplayPage != \"\")\n\t\t\t\t{\n\t\t\t\t\t$image->ImageDisplayPage = $this->ImageDisplayPage;\n\t\t\t\t}\n\t\t\t\telseif($this->Intranet)\n\t\t\t\t{\n\t\t\t\t\t$image->ImageDisplayPage = $GLOBALS['INTRANET_DEFAULT_IMAGE_DISPLAY_PAGE'];\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$image->ImageDisplayPage = $GLOBALS['DEFAULT_IMAGE_DISPLAY_PAGE'];\n\t\t\t\t}\n\t\t\t\t$image->Show();\n\t\t\t\t$i++;\n\t\t\t\t$imgcount++;\n\t\t\t\t$mmField = \"MulMultiMediaRef:$i\"; \n\t\t\t\t$imgirn = $this->record->$mmField;\n\t\t\t\tprint \"</td>\";\n\t\t\t}\n\n\t\t\tprint \"</tr></table>\";\n\t\t\tprint \"</td></tr>\\n\";\n\t\t}\n\t\tprint \" </table>\\n\";\n\t\tprint \"<!-- End Field Content -->\\n\";\n\n\t\t// end the form for javascript \n\t\tprint \"</form>\\n\";\n\n\t\t$decorator->Close();\n\t\tprint \"</td></tr>\";\n\t\tprint \"</table>\\n\";\n\n\t}", "title": "" }, { "docid": "0b466f982824dc6102ae11902a079b69", "score": "0.5817974", "text": "public function renderDefault() {\n\t\t$this->onlyForAdmins();\n\t}", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.58122015", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.58122015", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "718b7d26973ec12448a9a57757337a8b", "score": "0.5805532", "text": "public function clear()\r\n\t{\r\n\t\t$this->screens = array(); \t\t\r\n\t}", "title": "" }, { "docid": "c61ed16100763ae6d5fc9f2fd69d47ae", "score": "0.57976615", "text": "public function dispetcher(){\n $page = \"\";\n $snmpObj = $this->sqlQuery->getSNMPObj();\n if(is_array($snmpObj)){\n foreach ($snmpObj as $value) {\n $template = $this->view -> getTemplate('monitor_center');\n $page .= $this->view->parseTemplate($template, $value);\n }\n }\n return $this->view -> display($page);\n }", "title": "" }, { "docid": "c6b6793f8f3c1fddf604f62577943e8f", "score": "0.57928294", "text": "public function display()\n\t{\n\t\t$this->addToolbar();\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "aa20b840bd2af3efbba1dd78d5331ff8", "score": "0.5762545", "text": "abstract public function show();", "title": "" }, { "docid": "39114f16312ac4920577af8887aaf740", "score": "0.5754816", "text": "public function display()\r\n {\r\n echo $this->fetch();\r\n }", "title": "" }, { "docid": "5816f6b97b9e72c3144bc7a2434809e3", "score": "0.5731102", "text": "final public static function doShow() {\n\t\t$c = self::checkRendering();\n\t\t$c::show();\n\t}", "title": "" }, { "docid": "936f50c400fb1735fb288fd5add0bd66", "score": "0.5730517", "text": "public function Display() // Breaking up functions like this is not compulsory. All these separate functions might simply have been combined into one big function. But each function should have a defined task to perform. The simpler this task is, the easier writing and testing the function will be. Don’t go too far; if you break up your program into too many small units, it might be hard to read.\n {\n echo \"<html>\\n<head>\\n\";\n $this->DisplayTitle();\n $this->DisplayKeywords();\n $this->DisplayStyles();\n echo \"</head>\\n<body>\\n\";\n $this->DisplayHeader();\n $this->DisplayMenu($this->buttons);\n echo $this->content;\n $this->DisplayFooter();\n echo \"</body>\\n</html>\\n\";\n }", "title": "" }, { "docid": "a5c03371679dcd915b2bad796dc06aa3", "score": "0.5707781", "text": "public function emptyAction( $altdb )\n {\n $this->render(array(\n 'output'=> $this->view(\n 'empty.htm'\n ),\n 'title' => \"System not installed\"\n ));\n }", "title": "" }, { "docid": "47057a84f6479e417b6f54429e477f97", "score": "0.57002187", "text": "function display() {\n if( !JRequest::getVar( 'view' )) {\n\t\t JRequest::setVar('view', 'droomla' );\n }\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "28e286faf26116b7ee88c9d5b92f6f1d", "score": "0.569472", "text": "public function initialize()\n {\n $this->view->setTemplateAfter('blank'); \n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.568958", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "bd6a33f60f74d38401aa097a4703c6fd", "score": "0.56763434", "text": "public function renderForEmptyRenderedObjectHasNoUnreplacedMarkers() {\n\t\t$systemFolder = $this->testingFramework->createSystemFolder();\n\t\t$this->session->setAsInteger(\n\t\t\ttx_realty_pi1_FavoritesListView::FAVORITES_SESSION_KEY,\n\t\t\t$this->testingFramework->createRecord(\n\t\t\t\tREALTY_TABLE_OBJECTS,\n\t\t\t\tarray(\n\t\t\t\t\t'city' => $this->cityUid,\n\t\t\t\t\t'pid' => $systemFolder,\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t$this->fixture->setConfigurationValue('pages', $systemFolder);\n\n\t\t$this->assertNotContains(\n\t\t\t'###',\n\t\t\t$this->fixture->render()\n\t\t);\n\t}", "title": "" }, { "docid": "6c7f0335bb637a4c57587b14fe3076a1", "score": "0.5668116", "text": "public function __default()\r\n \t{\r\n \t if( self::isArg( 'notifwindow') )\r\n \t {\r\n $this->view = \"common_notifwindow\";\r\n \t $this->viewArgs['table'] = self::getArg( \"table\", AT_posint, true );\r\n \t }\r\n \t else\r\n \t {\r\n $this->view = \"florenzacardgame_florenzacardgame\";\r\n self::trace( \"Complete reinitialization of board game\" );\r\n }\r\n \t}", "title": "" }, { "docid": "0eac9d14f92d7bbccb5ebd209f4d80b5", "score": "0.5666843", "text": "function display()\n {\n echo $this->getHtml();\n }", "title": "" }, { "docid": "f886d1853dee7cb44f5294e2dbe70dc8", "score": "0.5666246", "text": "function _default() {\n\t\tif (count($this->URI)<3 || empty($this->URI[2])) {\n\t\t\t$this->show_map();\n\t\t} else {\n\t\t\t$this->show_cluster($this->URI[2]);\n\t\t}\n\t}", "title": "" }, { "docid": "a78a1656c61c44a2bb37e1b040e46d73", "score": "0.56603396", "text": "private function render()\n {\n foreach ($this->cells as $y => $row) {\n foreach ($row as $x => $cell) {\n print($cell ? '0' : ' ');\n }\n print \"\\n\";\n }\n\n // add some time delay\n usleep(5000);\n\n echo \"\\r\"; // return to beginning of line\n echo \"\\033[K\"; // erase the end of the line\n echo \"\\033[0;0H\"; // move to 0,0 position of terminal\n }", "title": "" }, { "docid": "2c6687d5e36cc2e85fbf6a227fa0ba4f", "score": "0.5659325", "text": "function showGrid() {\r\n\t$grid = $this->prepLayout();\r\n\techo $grid;\r\n }", "title": "" }, { "docid": "fe0984c350df2ba7953c2edfde5d3f3a", "score": "0.5643869", "text": "protected function setupDisplayWithEmptyArgumentsAndFields() {\n $this->display->expects($this->any())\n ->method('getHandlers')\n ->willReturnMap([\n ['argument', []],\n ['field', []],\n ]);\n }", "title": "" }, { "docid": "199d4abcf65483361bdc32dc5353f244", "score": "0.56396395", "text": "public function show();", "title": "" }, { "docid": "199d4abcf65483361bdc32dc5353f244", "score": "0.56396395", "text": "public function show();", "title": "" }, { "docid": "8bdc7b9db8b571f578afd9e23c6c879e", "score": "0.5626804", "text": "public function init()\n\t{\n\t\t// called from CLI so we disabling layout and auto output\n\t\t$this->_helper->layout->disableLayout();\n\t\t$this->_helper->viewRenderer->setNoRender(true);\n\t}", "title": "" }, { "docid": "1807118446a6e63d6c3dea204aac66a3", "score": "0.5622706", "text": "function empty_slot($slot) {\n printf(\"\\n\\n\".'<div class=\"%s\"></div>'.\"\\n\", $this->column_class($slot['s']));\n }", "title": "" }, { "docid": "8ff15ae3c37b89541e9ee04a12c2c9b5", "score": "0.5620143", "text": "function display() {\n\t\tglobal $bp_docs;\n\n\t\t$bp_docs->bp_integration->query->load_template();\n\t}", "title": "" }, { "docid": "5be54093967b8889cace9d7b248d9df4", "score": "0.5619608", "text": "function display() {\n echo '<table cols=\"3\" width=\"100\" style=\"font­size:large; font­weight:bold;\">';\n echo '<tr>'; // open the first row\n for ($pos=0; $pos<9;$pos++) {\n echo $this->show_cell($pos);\n if ($pos %3 == 2) echo '</tr><tr>';\n }\n echo '</tr>'; // close the last row\n echo '</table>';\n }", "title": "" }, { "docid": "bc89b9376ac907c04d5aab4bb6c0c324", "score": "0.5617368", "text": "public function testDisplayContainerAdminPagesEmptyData()\n {\n $module = new CWGEcommerce();\n $module->context = new stdClass();\n $module->context->controller = new stdClass();\n $module->context->controller->controller_name = 'AdminOrdersController';\n $module->context->cookie = new stdClass();\n $module->context->cookie->{$module->name} = null;\n\n $this->assertSame('', $module->hookDisplayBackOfficeHeader([]));\n }", "title": "" }, { "docid": "b436c9e67f60dc7ddb86da4f449724be", "score": "0.56106067", "text": "function mbtng_display_widget() {\r\n\tif (mbtng_display_page())\r\n\t\treturn true;\r\n\telse\r\n\t\treturn mbtng_check_parent();\r\n}", "title": "" }, { "docid": "ef22cffb3718c1891bd601cd83a7bda2", "score": "0.5603842", "text": "static function buildFooterNoButtons() {\r\n\t\t echo '<TABLE class=\"italsis\">';\r\n\t\t echo '<TR>';\r\n\t\t echo '<TD> ';\r\n\t\t echo '</TD>';\r\n\t\t echo '</TR>';\r\n\t\t echo '</TABLE>';\r\n\t\t \t\r\n\t\t}", "title": "" }, { "docid": "eae34294b4c066096250eb8684a46a28", "score": "0.5596964", "text": "function _outputRenderNotRunTable()\n {\n\n $this->_outputRenderTable('Tests Not Run', $this->tests_not_run);\n\n }", "title": "" }, { "docid": "53fa0db1dcb42ae2803410b2f8d5180c", "score": "0.559082", "text": "public function clear()\r\n\t{\r\n\t\t$this->content = '';\r\n\t}", "title": "" }, { "docid": "dc9bc129d2ae2dda0ead3c935d0924be", "score": "0.5590626", "text": "public function __default()\n {\n if( self::isArg( 'notifwindow') )\n {\n $this->view = \"common_notifwindow\";\n $this->viewArgs['table'] = self::getArg( \"table\", AT_posint, true );\n }\n else\n {\n $this->view = \"akmyrmes_akmyrmes\";\n self::trace( \"Complete reinitialization of board game\" );\n }\n }", "title": "" }, { "docid": "f3130ef970cdd31540649a21224b1cfc", "score": "0.5585279", "text": "public function render_content() {\n\t\t\t\techo '<hr/>';\n\t\t\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "e5f89b340007243f55dd3b8717bd6fa1", "score": "0.0", "text": "public function run()\n {\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 1',\n\t\t\t'importe' => '10000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201701',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 2',\n\t\t\t'importe' => '500',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201701',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 3',\n\t\t\t'importe' => '5000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201701',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 4',\n\t\t\t'importe' => '10000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201701',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 5',\n\t\t\t'importe' => '10000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201702',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 6',\n\t\t\t'importe' => '500',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201702',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 7',\n\t\t\t'importe' => '6000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201703',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 8',\n\t\t\t'importe' => '700',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201703',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 9',\n\t\t\t'importe' => '500',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201704',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 10',\n\t\t\t'importe' => '6000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201704',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 11',\n\t\t\t'importe' => '700',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'egreso',\n\t\t\t'estado'\t=> 'confirmado',\n\t\t\t'periodo'\t=> '201704',\n\t\t\t'relacion' => 'otro'\n\t\t\t]);\n\n\n }", "title": "" } ]
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112784", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "8d9ddbc23166c0cafca145e7a525c10a", "score": "0.8003396", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /* $faker = Faker::create();\n foreach (range(1,100) as $index) {\n DB::table('product')->insert([\n 'productName' => $faker->company,\n 'description' => $faker->text,\n 'productId' => $faker->randomNumber(),\n 'images' => $faker->image(),\n ]);\n }*/\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('recital')->insert([\n 'pagesRecital' => $faker->text,\n 'pageId' => $faker->randomNumber(),\n ]);\n }\n }", "title": "" }, { "docid": "8113ba9f29863f44dc33dbd7c0f98245", "score": "0.79604375", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n DB::table('users')->insert([\n // [\n // 'name' => 'Alan',\n // 'email' => 'alan@alan.fr',\n // 'password' => '1234'\n // ],\n // [\n // 'name' => 'Alice',\n // 'email' => 'alice@alice.fr',\n // 'password' => '1234'\n // ],\n [\n 'name' => 'admin',\n 'email' => 'admin@admin.fr',\n 'password' => Hash::make( 'admin' )\n ],\n ]);\n \n // Création de 10 authors en utilisant la factory\n // la fonction factory de Laravel permet d'utiliser le facker définit\n factory(App\\Author::class, 10)->create();\n $this->call(BookTableSeeder::class);\n }", "title": "" }, { "docid": "339f34d479d82d76bcfcf9f30b60c215", "score": "0.79416513", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\Category::class, 50)->create();\n factory(\\App\\Tag::class, 50)->create();\n\n //factory(\\App\\Post::class, 20)->create();\n factory(App\\Post::class, 50)->create()->each(function (App\\Post $post) {\n //se relaciona un post con un tag\n $post->tags()->attach([\n rand(1, 17), //el primer post se relaciona con las primeras cinco etiquetas\n rand(17, 36),\n rand(36, 50),\n ]);\n });\n\n }", "title": "" }, { "docid": "424a278b0bd7df7af33c6c946314dcb5", "score": "0.7929097", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n factory(App\\User::class, 100)->create();\n\n factory(App\\Category::class, 10)->create()->each(function ($c) {\n $c->audiobook()->saveMany(factory(App\\AudioBook::class, 10)->create()->each(function ($d) {\n $d->audiobookChapter()->saveMany(factory(App\\AudioBookChapter::class, 10)->create()->each(function ($chapter) use ($d) {\n $chapter->purchase()->saveMany(factory(App\\Purchase::class, 10)->create()->each(function ($purchase) use ($d, $chapter) {\n $purchase->user_id = User::all()->random(1)->id;\n $purchase->audiobookChapter_id = $chapter->id;\n $purchase->audiobook_id = $d->id;\n }));\n\n }));\n $d->review()->save(factory(App\\Review::class)->make());\n $d->wishlist()->save(User::all()->random(1));\n }));\n });\n\n\n factory(App\\Collection::class, 10)->create()->each(function ($c) {\n $c->audiobook()->saveMany(factory(App\\AudioBook::class, 5)->create()->each(function ($d) {\n $d->category_id = Category::all()->random(1)->id;\n }));\n });\n\n Model::reguard();\n }", "title": "" }, { "docid": "29a4267326dbe1e561d79877123a4ef8", "score": "0.79265255", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User', 10)->create();\n factory('App\\School', 10)->create();\n factory('App\\Department', 20)->create();\n factory('App\\Course', 40)->create();\n factory('App\\CourseContent', 40)->create();\n factory('App\\CourseMaterial', 120)->create();\n factory('App\\Library', 200)->create();\n factory('App\\Download', 200)->create();\n factory('App\\Preview', 200)->create();\n factory('App\\Image', 5)->create();\n factory('App\\Role', 2)->create();\n }", "title": "" }, { "docid": "23ad0adf7c7d172d03ff87f186b2b80d", "score": "0.7900529", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n ['nome' => 'Wiiliam',\n 'usuario' => 'will',\n 'cpf' => '033781783958',\n 'tipo' => 'ADM',\n 'ativo' => 1,\n 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm'//secret\n ] \n ]);\n DB::table('dentes')->insert([\n ['nome' => 'canino', 'numero' => 39],\n ['nome' => 'molar', 'numero' => 2],\n ['nome' => 'presa', 'numero' => 21]\n ]);\n\n DB::table('servicos')->insert([\n ['nome' => 'Restauração', 'ativo' => 1],\n ['nome' => 'Canal', 'ativo' => 1],\n ['nome' => 'Limpeza', 'ativo' => 1]\n ]);\n }", "title": "" }, { "docid": "c1a66cf4f77ef258e5c305c72f0cb9e1", "score": "0.78868395", "text": "public function run()\n {\n\n\n\n \t$this->call([\n \t\tUserSeeder::class,\n \t\tGenreSeeder::class,\n \t\tAuthorSeeder::class,\n \t\tBookSeeder::class,\n\n \t]);\n\n\n \n \t//$imageUrl=$faker->imageUrl(640, 480);\n\n // $books =\\App\\Models\\Book::factory()->count(30)->create()->each(function ($book) {\n // // Seed the relation with one address\n // $isConfirmed = \\App\\Models\\Book::factory()->make();\n // $book->isConfirmed()->save($isConfirmed);\n // });\n \n\n\n }", "title": "" }, { "docid": "f576f30907ef7a35342b08cfa6974d30", "score": "0.78837615", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 5)->create();\n factory(App\\Model\\Album::class, 50)->create();\n factory(App\\Model\\Audio::class, 300)->create();\n }", "title": "" }, { "docid": "9114ae89fdf7d0584d56fd6bee28868b", "score": "0.7876742", "text": "public function run()\n {\n $this->call(DatabaseSeeder::class);\n DB::table('posts')->insert([\n 'title' => Str::random(10),\n 'body'=>Str::random(10).'@email.com',\n 'category_id' =>Int::random(10),\n\n ]);\n\n // $faker=Faker::create();\n // for ($i=0; $i <10 ; $i++) {\n // // code...\n // $post=new App\\Post();\n // $post->title=$faker->sentence;\n // $post->body=$faker->paragraph;\n // $post->category_id=$faker->rand(1,3);\n // $post->save();\n }", "title": "" }, { "docid": "c5b1891e5f39d3e2551b908d083d5516", "score": "0.787006", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Poll::create([\n 'user_id' => 1,\n 'poll_name' => 'How much do you like me?',\n 'is_public' => 1,\n 'nr_choice' => 0\n ]);\n \n Votes::create([\n 'user_id' => 1,\n 'vote_to_poll' => 2\n ]);\n\n Choices::create([\n 'choice_id'=> 1,\n 'choice_text'=>'A lot.',\n 'choice_to_poll'=>1,\n 'nr_votes'=>260\n ]);\n\n Choices::create([\n 'choice_id'=> 2,\n 'choice_text'=>'A little.',\n 'choice_to_poll'=>1,\n 'nr_votes'=>178\n ]);\n }", "title": "" }, { "docid": "5b3dd72a68cd7caf5cb41622cf1f17f8", "score": "0.78666466", "text": "public function run()\n {\n // Truncate existing record in book table\n Book::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // Create dummy records in our table books:\n for ($i = 0; $i < 50; $i++) {\n Book::create([\n 'title' => $faker->title,\n 'author' => $faker->name,\n ]);\n }\n }", "title": "" }, { "docid": "0edef3cdac4be0882cf354181e1a63fd", "score": "0.7847457", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n $ranks = Rank::all();\n $roles = Role::all();\n\n // And now, let's create a few users in our database:\n for ($i = 0; $i < 5; $i++) {\n User::create([\n 'username' => \"user_$i\",\n 'pilot_callsign' => $faker->numerify('SCI###'),\n 'rank_id' => $ranks[rand ( 0 , $ranks->count()-1 )]->id,\n 'role_id' => $roles[0]->id\n ]);\n }\n }", "title": "" }, { "docid": "7e308ea06065b02bb3be211e8748bf5f", "score": "0.7836105", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n DB::table('partidos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipo' => 1,\n ]);\n DB::table('partidos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipo' => 2,\n ]);\n DB::table('partidos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipo' => 3,\n ]);\n DB::table('partidos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipo' => 4,\n ]);\n DB::table('Puntos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipos' => 1,\n ]);\n DB::table('Puntos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipos' => 2,\n ]);\n DB::table('Puntos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipos' => 3,\n ]);\n DB::table('Puntos')->insert([\n 'GrupoEquipos' => 1,\n 'Equipos' => 4,\n ]);\n }", "title": "" }, { "docid": "012af9c3ac169cef32ec988d61a7f6aa", "score": "0.7833467", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n $faker = Faker\\Factory::create();\n for($i = 0; $i < 10; $i++) {\n DB::table('products')->insert([\n 'title' => $faker->text(30),\n 'description' => $faker->text(200),\n 'count' => $faker->randomDigit(1)\n ]);\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "bfdaf9f1ed8a7212b4598d692bcc1654", "score": "0.7826758", "text": "public function run()\n {\n\n Student::factory(10)->create();\n Teacher::factory(10)->create();\n Post::factory(10)->create();\n Comment::factory(10)->create();\n Category::factory(10)->create();\n CategoryPost::factory(10)->create();\n // đẩy dữ liệu\n // $this->call([\n // StudentTableSeeder::class,\n // TeacherTableSeeder::class,\n // ]);\n }", "title": "" }, { "docid": "29381516f53bafb0bf8797720ed6de7b", "score": "0.7824085", "text": "public function run()\n {\n\n $datas = [\n ['text' => 'Migracion'],\n ['text' => 'Familia'],\n ];\n\n\n foreach($datas as $data){\n \n $this->createSeeder($data);\n\n }\n }", "title": "" }, { "docid": "51daed999a883c3842fb92fb9bf4889b", "score": "0.7824076", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User'::class, 20)->create();\n factory('App\\Post'::class, 1000)->create();\n factory('App\\Comment'::class, 2000)->create();\n }", "title": "" }, { "docid": "778b6afd89da9f29737c3c12e565289e", "score": "0.78132683", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Sid',\n 'email' => 'forge405@gmail.com',\n 'role' => 'admin',\n 'password' => bcrypt(env('SEED_PWD')),\n ]);\n\n // 10 categorie\n $categories = factory(Category::class, 10)->create();\n\n // 20 tags\n $tags = factory(Tag::class, 20)->create();\n\n // 9 utenti\n factory(User::class, 9)->create();\n $users = User::all();\n // x ogni utente 15 posts\n foreach ($users as $user) {\n $posts = factory(Post::class, 15)->create([\n 'user_id' => $user->id,\n 'category_id' => $categories->random()->id,\n ]);\n\n foreach ($posts as $post) {\n $post->tags()->sync($tags->random(3)->pluck('id')->toArray());\n }\n }\n }", "title": "" }, { "docid": "8ad50814f16b74d56ba096d0d57f2685", "score": "0.7809979", "text": "public function run()\n {\n $this->call(LaratrustSeeder::class);\n // $this->call(UsersTableSeeder::class);\n $discount = factory(\\App\\Discount::class, 1)->create();\n\n $categories = factory(\\App\\Category::class, 8)->create();\n $products = factory(\\App\\Product::class, 10)->create();\n $address=factory(\\App\\Users_address::class, 24)->create();\n $this->call(DiscountTableSeeder::class);\n $this->call(m_imagesTableSeeder::class);\n\n $images = factory(\\App\\m_image::class, 2)->create();\n\n }", "title": "" }, { "docid": "b762d028067463470324860cc9a29e0e", "score": "0.7806021", "text": "public function run(): void\n {\n $this->seedUsers();\n $this->seedCategories();\n $this->seedMedia();\n $this->seedProducts();\n $this->seedOrders();\n }", "title": "" }, { "docid": "33db14990dd20205cbf0ed23ac91d8a5", "score": "0.7797961", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(\\App\\Models\\Blog\\Category::class,10)->create();\n factory(\\App\\Models\\Blog\\Post::class,100)->create();\n $this->call(PostsCategoriesTableSeeder::class);\n }", "title": "" }, { "docid": "36b206fe3f9e5582fff99bdd44c268e2", "score": "0.77952325", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Edson Chivambo',\n 'email' => 'echivambo@psi.org.mz',\n 'password' => bcrypt('002523'),\n 'provincia_id' => '1',\n 'distrito_id' => '101',\n 'grupo' => '2'\n ]);\n\n\n DB::table('users')->insert([\n 'name' => 'Emidio Nhacudima',\n 'email' => 'enhacudima@psi.org.mz',\n 'password' => bcrypt('Psi12345'),\n 'provincia_id' => '1',\n 'distrito_id' => '101',\n 'grupo' => '2'\n ]);\n/*\n // Let's truncate our existing records to start from scratch.\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph,\n ]);\n }\n*/\n }", "title": "" }, { "docid": "914dd54501738d8f24f08d44c10d6a1f", "score": "0.7795094", "text": "public function run()\n {\n // default seeder to create fake users by using users factory\n // \\App\\Models\\User::factory(10)->create();\n\n // truncate deletes data or row from db. so when seed is run firsly it will delete the existing fiels\n // Product::truncate();\n // Category::truncate();\n // * first way for database seeding\n // creating a category and then passing it to create a product in seeder\n // $category = Category::create([\n // \"name\" => \"Headphones\",\n // \"description\" => \"This Category contains Headphones\"\n // ]);\n\n // Product::create([\n // \"product_name\" => \"Iphone\",\n // \"product_desc\" => \"An Iphone uses IOS and is developed by Apple\",\n // \"price\" => \"100000\",\n // \"category_id\" => $category->id\n // ]);\n // * using second method for creating/seeding fake data using factory \n // Category::factory(5)->create();\n //* overriding the default category_id of the factory in seeder\n Product::factory(3)->create([\n 'category_id' => 5\n ]);\n }", "title": "" }, { "docid": "7d4a8acce261539d99f3a600a7fded39", "score": "0.77949584", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // Stocks\n $stocks = factory(Stock::class, 5)->create();\n\n $categories = factory(Category::class, 10)->create();\n\n $products = factory(Product::class, 500)->create();\n\n $products->each(function (Product $product) use ($categories, $stocks) {\n $randomCategories = $categories->random(3);\n $randomStocks = $stocks->random(rand(1, 3));\n\n $product->categories()->attach($randomCategories->pluck('id'));\n\n // associate with stocks\n foreach ($randomStocks as $stock) {\n $product->stocks()->attach($stock->id, [\n 'products_count' => rand(10, 100)\n ]);\n }\n });\n\n // Empty categories\n factory(Category::class, 5)->create();\n }", "title": "" }, { "docid": "73bbd2eb8a462a3994465397aabc387c", "score": "0.77939886", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = factory(App\\User::class, 5)->create();\n $product = factory(App\\Product::class, 50)->create();\n $reviews = factory(App\\Review::class, 100)->create()\n ->each(function ($review) {\n $review->reviews()->save(factory(App\\Product::class)->make());\n });\n }", "title": "" }, { "docid": "89ccfc64e34980c1c88e0ac32bd95ed7", "score": "0.777964", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('tags')->insert([\n\t 'title' => $faker->title,\n\t 'slug' => $faker->slug,\n\t \n\t ]);\n\t}\n }", "title": "" }, { "docid": "3d653e15cd03e74996be098cff42dfca", "score": "0.77794737", "text": "public function run()\n {\n \\App\\Models\\Admin::factory(10)->create();\n \\App\\Models\\User::factory(10)->create();\n\n Book::create(\n [\n \"title\" => \"Self Discipline\",\n \"author\" => \"Shawn Norman\",\n \"publisher\" => \"Google\",\n \"year\" => 2018,\n \"stock\" => 50,\n ]\n );\n\n Book::create(\n [\n \"title\" => \"Atomic Habits\",\n \"author\" => \"James Clear\",\n \"publisher\" => \"Google\",\n \"year\" => 2018,\n \"stock\" => 20,\n ]);\n\n Book::create(\n [\n \"title\" => \"The Last Thing He Told Me\",\n \"author\" => \"Laura Dave\",\n \"publisher\" => \"Google\",\n \"year\" => 2021,\n \"stock\" => 10,\n ]\n );\n }", "title": "" }, { "docid": "17ed7bd7f1c8118ed9c57701c65a3308", "score": "0.77748924", "text": "public function run()\n {\n require_once 'vendor/fzaninotto/faker/src/autoload.php';\n $faker = \\Faker\\Factory::create();\n\n// \\DB::table('articles')->delete();\n\n foreach (range(1, 50) as $index) {\n dump($faker->name);\n DB::table('articles')->insert([\n 'name' => $faker->name,\n 'description' => $faker->text($maxNbChars = 400),\n 'slug' => $index,\n 'autor_id' => 2\n ]);\n };\n \n }", "title": "" }, { "docid": "a00d7625c3ac246fb4c8d0c5f542c844", "score": "0.7772875", "text": "public function run()\n {\n \n /*inserting dummy data, if we want to insert a 1000 of data,every seeder foreach table, it insert 1 data*/\n // DB::table('users')->insert([\n // 'name'=>str_Random(10), \n // 'email'=>str_random(10).'@gmail.com',\n // 'password'=>bcrypt('secret')\n // ]);\n //ro run : php artisan db:seed\n\n\n /**ANOTHER WAY */\n\n //User::factory()->count(10)->hasPosts(1)->create(); //if the user has a relation with post\n User::factory()->count(10)->create();\n\n \n \n }", "title": "" }, { "docid": "defbf35392fe9a4d769e6b94f0fcd99b", "score": "0.7768785", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\tPost::truncate();\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n\t\tforeach(range(1, 30) as $index)\n\t\t{\n\t\t\t// MYSQL\n\t\t\t$userId = User::orderBy(DB::raw('RAND()'))->first()->id;\n\n\t\t\t// SQLITE\n\t\t\t// $userId = User::orderBy(DB::raw('random()'))->first()->id;\n\n\t\t\tPost::create([\n\t\t\t\t'user_id' => $userId,\n\t\t\t\t'title' => $faker->name($gender = null|'male'|'female'),\n\t\t\t\t'body' => $faker->catchPhrase\n\t\t\t]);\n\t\t}\n\n\t\t// $this->call('UserTableSeeder');\n\t}", "title": "" }, { "docid": "7610e7d2e2f861ae0a32e114a63a583f", "score": "0.7762658", "text": "public function run()\n {\n App\\Models\\BusinessItemSetupCases::create([\n 'id'=>100,\n 'item_case_name' => 'الضريبه',\n 'notes' => 'from seeder '\n ]);\n\n App\\Models\\BusinessItemSetupCases::create([\n 'id'=>101,\n 'item_case_name' => 'المشتريات',\n 'notes' => 'from seeder '\n ]);\n\n App\\Models\\BusinessItemSetupCases::create([\n 'id'=>102,\n 'item_case_name' => 'المبيعات',\n 'notes' => 'from seeder '\n ]);\n\n App\\Models\\BusinessItemSetupCases::create([\n 'id'=>103,\n 'item_case_name' => 'السيوله النقديه',\n 'notes' => 'from seeder '\n ]);\n }", "title": "" }, { "docid": "0b05db86e70b2e211fbf0469301f7d9a", "score": "0.7761849", "text": "public function run()\n {\n //\n DB::table('employees')->delete();\n $faker = Faker\\Factory::create();\n foreach(range(1,50) as $index)\n {\n Employee::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'avatar' => '',\n 'address' => $faker->address,\n 'phone'=> rand(0,9999).'-'.rand(0,9999).'-'.rand(0,9999),\n ]);\n }\n }", "title": "" }, { "docid": "df7b256adbff916fcdd12b520b0dc208", "score": "0.77609074", "text": "public function run() {\n\n\t\t// $this->call('ArticlesTableSeeder::class');\n\t\t// $this->call('CategoriesTableSeeder::class');\n\t\t// factory(App\\Article::class, 50)->create()->each(function ($u) {\n\t\t// \t$u->posts()->save(factory(App\\Article::class)->make());\n\t\t// });\n\n\t}", "title": "" }, { "docid": "e7527a5bc8529a2c2aad4c53046ea43d", "score": "0.7759072", "text": "public function run()\n {\n //\\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Section::factory(10)->create();\n // \\App\\Models\\Classe::factory(20)->create();\n // \\App\\Models\\Eleve::factory(120)->create();\n // \\App\\Models\\Stock::factory(2)->create();\n // \\App\\Models\\Category::factory(5)->create();\n // \\App\\Models\\Product::factory(120)->create();\n\n $this->call([\n AnneScolaireSeeder::class\n ]);\n }", "title": "" }, { "docid": "7b81b233cbf3938d421802fdd7f8d35b", "score": "0.7758925", "text": "public function run()\n {\n $categories = [\n [\n 'name' => 'Groenten',\n 'description' => '',\n ],\n [\n 'name' => 'Fruit',\n 'description' => '',\n ],\n [\n 'name' => 'Zuivel',\n 'description' => '',\n ],\n [\n 'name' => 'Vlees',\n 'description' => '',\n ],\n ];\n\n foreach($categories as $category){\n Category::create($category);\n }\n\n //factory(Category::class, DatabaseSeeder::AMOUNT['DEFAULT'])->create();\n }", "title": "" }, { "docid": "ba321352baa0a7b54b30247f8156bf1a", "score": "0.7756619", "text": "public function run()\n {\n $this->seedUser();\n $this->seedCategoryAndPosts();\n }", "title": "" }, { "docid": "8a59a3aa3c368b2105f5ed2aed066fcd", "score": "0.77559125", "text": "public function run()\n {\n // $this->call(DummyDataSeeder::class);\n\n factory(App\\Models\\UserProfile::class, 100)->create();\n factory(App\\Models\\HikingGroup::class, 100)->create();\n factory(App\\Models\\Announce::class, 100)->create();\n factory(App\\Models\\EntryInfo::class, 100)->create();\n factory(App\\Models\\HikingPlan::class, 100)->create();\n factory(App\\Models\\HikingRecord::class, 100)->create();\n factory(App\\Models\\LocationMemo::class, 100)->create();\n factory(App\\Models\\Notification::class, 100)->create();\n factory(App\\Models\\RadiogramLog::class, 100)->create();\n factory(App\\Models\\Recruitment::class, 100)->create();\n factory(App\\Models\\UserPosition::class, 100)->create();\n }", "title": "" }, { "docid": "ab9c424e435c82e381ba211c2fe79243", "score": "0.77532893", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n // User::factory()->count(200)\n // ->has(Order::factory()->count(random_int(1, 20)))\n // ->has(Assigned_order::factory()->count(random_int(1,5)))\n // ->has(Blocked_writer::factory()->count(random_int(0, 2)))\n // ->has(Favourite_writer::factory()->count(random_int(0, 5)))\n // ->has(Payed_order::factory()->count(random_int(2, 6)))\n // ->has(Notification::factory()->count(random_int(5, 20)))\n // ->has(Review::factory()->count(random_int(1, 2)))\n // ->has(Assigned_order::factory()->count(random_int(1, 3)))\n // ->create();\n }", "title": "" }, { "docid": "645884083d11c19908303f183869ea48", "score": "0.7750515", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::truncate();\n Athlete::truncate();\n Trainer::truncate();\n Plan::truncate();\n Subscription::truncate();\n TrainerPlan::truncate();\n Profile::truncate();\n Routine::truncate();\n Training::truncate();\n Calendar::truncate();\n TrainingRoutine::truncate();\n\n $cantidad_users = 30;\n $cantidad_athletes = 20;\n $cantidad_trainers = 10;\n $cantidad_profiles = 60;\n $cantidad_plans = 5;\n $cantidad_subscriptions = 20;\n $cantidad_trainer_plans = 30;\n $cantidad_routines = 30;\n $cantidad_trainings = 60;\n $cantidad_calendars = 100;\n $cantidad_training_routines = 120;\n\n factory(User::class, $cantidad_users)->create();\n factory(Athlete::class, $cantidad_athletes)->create();\n factory(Trainer::class, $cantidad_trainers)->create();\n factory(Profile::class, $cantidad_profiles)->create();\n factory(Plan::class, $cantidad_plans)->create();\n factory(Subscription::class, $cantidad_subscriptions)->create();\n factory(TrainerPlan::class, $cantidad_trainer_plans)->create();\n factory(Routine::class, $cantidad_routines)->create();\n factory(Training::class, $cantidad_trainings)->create();\n factory(Calendar::class, $cantidad_calendars)->create();\n factory(TrainingRoutine::class, $cantidad_training_routines)->create();\n\n }", "title": "" }, { "docid": "e5d1626abf07334bad40def153b6ebf5", "score": "0.77443045", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(MediaSeeder::class);\n //$this->call(GuestSeeder::class);\n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('guests')->insert([\n 'roomnumber' => Category::all()->random()->id,\n 'name' => $faker->firstName,\n 'surname' => $faker->name,\n 'email' => $faker->email,\n 'phonenumber' => $faker->phoneNumber\n\t ]);\n\t }\n\n }", "title": "" }, { "docid": "8da9a1776904f6cc6a5ccc3953a8e40f", "score": "0.77426773", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('products')->insert([\n 'name' => 'Basil',\n 'price' => 0.99,\n 'description' => 'Perhaps the most popular and widely used culinary herb.',\n ]);\n DB::table('products')->insert([\n 'name' => 'Bay Laurel',\n 'price' => 1.99,\n 'description' => 'Bay laurel is an evergreen shrub or tree in warmer growing zones ( 8 and above).',\n ]);\n DB::table('products')->insert([\n 'name' => 'Borage',\n 'price' => 2.99,\n 'description' => 'Borage is a coarse textured plant growing to about 2-3 feet.',\n ]);\n DB::table('products')->insert([\n 'name' => 'Caraway',\n 'price' => 3.99,\n 'description' => 'Caraway is most often grown for its seeds, but the root and leaves are also edible.',\n ]);\n DB::table('products')->insert([\n 'name' => 'Catnip',\n 'price' => 4.99,\n 'description' => 'Catnip is a hardy perennial with an open mound shaped habit growing to about 2-3 feet tall.',\n ]);\n\n }", "title": "" }, { "docid": "cac69861fb7a00c50daa5b54ee724177", "score": "0.7740643", "text": "public function run()\n {\n //\n DB::table('Proveedores')->insert([\n \t[\n \t'nombre'=> 'juan perez',\n \t'marca'=> 'matel',\n \t'correo_electronico'=> 'jperez@gmail.com',\n \t'direccion'=>'av. peru 321,santiago',\n \t'fono'=> 993842739\n \t]\n ]);\n\n $faker=Faker::create();\n for ($i=0; $i <20 ; $i++) { \n DB::table('Proveedores')->insert([\t\n \t'nombre'=> $faker->name,\n \t'marca'=>$faker->company,\n \t'correo_electronico'=> $faker->email,\n \t'direccion'=>$faker->address,\n \t'fono'=> $faker->isbn10 ,\n ]);\n }\n }", "title": "" }, { "docid": "42daa4f7485840fe27f640e7e7069e40", "score": "0.77381206", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([UsuarioSeed::class]);\n $this->call([CategoriasSeed::class]);\n $this->call([ExperienciaSeeder::class]);\n }", "title": "" }, { "docid": "9a3fc5f60166a9785c73750188e6596d", "score": "0.77379954", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n /*\n DB::table('product')->insert([\n 'title' => 'Ceci est un titre de produit',\n 'description' => 'lorem ipsum',\n 'price' => 12,\n 'brand' => 'nouvelle marque',\n ]);\n */\n factory(App\\Product::class, 2)->create();\n factory(App\\Categorie::class, 2)->create();\n }", "title": "" }, { "docid": "f70d3c8ab2d963dc7360a2749f67f6b7", "score": "0.77366954", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n Course::factory(3)->create();\n assignament::factory(9)->create();\n exercise::factory(6)->create();\n }", "title": "" }, { "docid": "b6066308d0ac655bb5d5825a458ef8b1", "score": "0.7736391", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n $this->call(LangauageTableSeeder::class);\n $this->call(CountryTableSeeder::class);\n\n \n\n Country::create([\n 'name' => 'India'\n ]);\n\n Country::create([\n 'name' => 'USA'\n ]);\n\n Country::create([\n 'name' => 'UK'\n ]);\n\n CompanyCateogry::updateOrCreate([\n 'name' => 'category1'\n ]);\n\n factory(App\\Models\\Customer::class, 50)->create();\n factory(App\\Models\\Supplier::class, 50)->create();\n // $this->call(CompanySeeder::class);\n $this->call(InvoiceSeeder::class);\n $this->call(CashFlowSeeder::class);\n }", "title": "" }, { "docid": "8de228115e4192b5098d2a339ff99bf2", "score": "0.7735911", "text": "public function run()\n {\n //delete the users table when the seeder is called\n DB::table('users')->delete();\n\n Eloquent::unguard();\n\n\t\t//disable foreign key before we run the seeder\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n factory(App\\User::class, 50)->create();\n\n //Also create these accounts - used for easy testing purposes\n DB::table('users')->insert([\n [\n 'name' => 'Test',\n 'email' => 'test@gmail.com',\n 'password' => bcrypt('secret'),\n 'email_verified_at' => now(),\n 'bio' => 'Sed ut perspiciatis unde omnis iste natus',\n ],\n [\n 'name' => 'Test2',\n 'email' => 'test2@gmail.com',\n 'password' => bcrypt('secret'),\n 'email_verified_at' => now(),\n 'bio' => 'Sed ut perspiciatis unde omnis iste natus',\n\n ],\n ]);\n }", "title": "" }, { "docid": "e0d9bd8b4c025867e30c1a5579c4da9c", "score": "0.7735157", "text": "public function run()\n {\n\n $this->call([\n EstadosSeeder::class,\n MunicipiosSeeder::class,\n RelacionEstadosMunicipiosSeeder::class,\n StatusSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Categories::factory()->count(20)->create();\n \\App\\Models\\Products::factory()->count(100)->create();\n \\App\\Models\\Galery::factory()->count(1000)->create();\n \\App\\Models\\Providers::factory()->count(20)->create();\n \\App\\Models\\Valorations::factory()->count(1000)->create();\n \\App\\Models\\Sales::factory()->count(999)->create();\n \\App\\Models\\Directions::factory()->count(999)->create();\n \\App\\Models\\LastView::factory()->count(999)->create();\n \\App\\Models\\Offers::factory()->count(20)->create();\n // \\App\\Models\\Favorites::factory()->count(50)->create();\n \\App\\Models\\Notifications::factory()->count(999)->create();\n /**\n * $this->call([\n * CategoriesSeeder::class,\n * ]);\n */\n\n $this->call([\n FavoritesSeeder::class,\n ]);\n\n }", "title": "" }, { "docid": "79751b67da244a7913b06f140364d6c0", "score": "0.77329904", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n PartCategory::truncate();\n Brand::truncate();\n Manufacturer::truncate();\n PartSubcategory::truncate();\n Part::truncate();\n Admin::truncate();\n\n $usersQuantity = 500;\n $categoriesQuantity = 30;\n $subCategoriesQuantity = 200;\n $partQuantity = 1000;\n $brandQuantity = 20;\n $manufacturerQuantity = 50;\n $adminQuantity = 10;\n\n factory(User::class, $usersQuantity)->create();\n factory(PartCategory::class, $categoriesQuantity)->create();\n factory(Brand::class, $brandQuantity)->create();\n factory(Manufacturer::class, $manufacturerQuantity)->create();\n\n factory(PartSubcategory::class, $subCategoriesQuantity)->create();\n factory(Part::class, $partQuantity)->create();\n\n factory(Admin::class, $adminQuantity)->create();\n\n }", "title": "" }, { "docid": "95f6236854296207546d9b1517fa175a", "score": "0.7728027", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n // Create 10 records of posts\n factory(App\\Post::class, 10)->create()->each(function ($post) {\n // Seed the relation with 5 comments\n $commments = factory(App\\Comment::class, 5)->make();\n $post->comments()->saveMany($commments);\n });\n }", "title": "" }, { "docid": "a8c4b0faab2536f6924d6a6f05f50027", "score": "0.7727958", "text": "public function run()\n {\n $faker = Factory::create('fr_FR');\n $categories = ['Animaux', 'Nature', 'People', 'Sport', 'Technologie', 'Ville'];\n foreach ($categories as $category) {\n DB::table('categories')->insert([\n 'name' => $category,\n 'created_at' => $faker->date('Y-m-d H:i'),\n 'updated_at' => $faker->date('Y-m-d H:i'),\n ]);\n }\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "f198ce46b8e947563c34aa166ca6fd70", "score": "0.77261835", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\TourCategory::class, 4)->create()->each(function (\\App\\TourCategory $category) {\n $category->tours()->saveMany(\n factory(\\App\\Tour::class,10)->make()\n );\n });\n }", "title": "" }, { "docid": "cf809e1e51d295f713f0e1311ce8c5b4", "score": "0.77202827", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(BatimentsSeeder::class);\n $this->call(FormationsSeeder::class);\n $this->call(TypeformationsSeeder::class);\n eleves::factory()->count(50)->create();\n }", "title": "" }, { "docid": "f6e951e99c926a5aa070324982a80a85", "score": "0.7717476", "text": "public function run()\n {\n Model::unguard();\n\n $seedData = [\n 'Taiwan' => [\n 'Taipei City',\n 'New Taipei City',\n 'Taoyuan City',\n 'Taichung City',\n 'Kaohsiung City',\n 'Tainan City',\n 'Hsinchu City',\n 'Chiayi City',\n 'Keelung City',\n 'Hsinchu County',\n 'Miaoli County',\n 'Changhua County',\n 'Nantou County',\n 'Yunlin County',\n 'Chiayi County',\n 'Pingtung County',\n 'Yilan County',\n 'Hualien County',\n 'Taitung County',\n 'Kinmen County',\n 'Lienchiang County',\n 'Penghu County',\n ]\n ];\n\n foreach ($seedData as $countryName => $cityList) {\n $country = Country::create(['name' => $countryName]);\n\n foreach ($cityList as $cityName) {\n $country->cities()->create(['name' => $cityName]);\n }\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "4fc1f9ee76a037b3655d6f4e73603494", "score": "0.7714869", "text": "public function run()\n {\n //\n //factory(App\\User::class)->create();\n\n DB::table('users')->insert(\n [\n 'name' => 'Seyi', \n 'email' => 'seyii@seyi.com',\n 'password' => 'somerandompassword'\n ]\n );\n DB::table('posts')->insert([\n [\n 'title' => 'My First Post', \n 'content' => 'lorem ipsum dolor sit ammet',\n 'user_id' => 1\n ], [\n 'title' => 'My second Post', \n 'content' => 'lorem ipsum dolor sit ammet',\n 'user_id' => 1\n ], [\n 'title' => 'My third Post', \n 'content' => 'lorem ipsum dolor sit ammet',\n 'user_id' => 1\n ]\n ]);\n \n \n }", "title": "" }, { "docid": "70fbcb2aeac3103c8556e273a1ea07ef", "score": "0.7712406", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'nome' => \"Felipe Gustavo Braiani Santos\",\n 'siape' => 2310754,\n 'password' => bcrypt('2310754'),\n 'perfil' => '3'\n ]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Mecânica\"]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Informática\"]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Eletrotécnica\"]);\n }", "title": "" }, { "docid": "80b4dcada74bc12860abdaff1c2aa1bb", "score": "0.771224", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 50) as $index) {\n DB::table('books')->insert([\n 'name' => $faker->firstName(),\n 'yearOfPublishing' => $faker->year(),\n 'content' => $faker->paragraph(1, true),\n 'author_id' => $faker->numberBetween(1, 50),\n ]);\n }\n }", "title": "" }, { "docid": "bd6458274ff09172851640f92c233c59", "score": "0.77103674", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n \n User::truncate();\n TipoUsuario::truncate();\n Reserva::truncate();\n PuntuacionEstablecimiento::truncate();\n PuntuacionProducto::truncate();\n Producto::truncate();\n Imagen::truncate();\n Establecimiento::truncate();\n Carta::truncate();\n\n $this->call(TipoUsuarioSeeder::class);\n\n foreach (range(1, 10) as $i){\n $u = factory(User::class)->create();\n $u->usuarios_tipo()->attach(TipoUsuario::all()->random());\n }\n\n\n //factory(Establecimiento::class,4)->create();\n //factory(Reserva::class,20)->create();\n //factory(Carta::class, 4)->create(); //Crear tantas como restaurantes\n //factory(Producto::class,100)->create();\n //factory(PuntuacionEstablecimiento::class,50)->create();\n //factory(PuntuacionProducto::class,50)->create();\n //factory(Imagen::class,200)->create();\n\n Schema::enableForeignKeyConstraints(); \n }", "title": "" }, { "docid": "7d3aed410918c722790ec5e822681b71", "score": "0.7708834", "text": "public function run() {\n \n //seed should only be run once\n $faker = Faker::create();\n\n $cat = [\n 1 => \"Home Appliances\",\n 2 => \"Fashion\",\n 3 => \"Home & Living\",\n 4 => \"TV, Gaming, Audio, WT\",\n 5 => \"Watches, Eyewear, Jewellery\",\n 6 => \"Mobiles & Tablets\",\n 7 => \"Cameras\",\n 8 => \"Computers & Laptop\",\n 9 => \"Travel & Luggage\",\n 10 => \"Health & Beauty\",\n 11 => \"Sports, Automotive\",\n 12 => \"Baby, Toys\",\n ];\n\n for ($i = 1; $i <= 12; $i++) {\n DB::table('categories')->insert([\n 'name' => $cat[$i],\n 'image' => $faker->imageUrl($width = 640, $height = 480),\n \n 'created_at' => $faker->dateTimeThisYear($max = 'now'),\n 'updated_at' => \\Carbon\\Carbon::now(),\n ]);\n }\n }", "title": "" }, { "docid": "75f8fae397ad6cf1e3077c2a32e423ad", "score": "0.770783", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Category::truncate();\n Product::truncate();\n WarrantyProduct::truncate();\n\n factory(User::class, 200)->create();\n\n factory(Category::class, 10)->create()->each(\n function ($category){\n factory(Product::class, mt_rand(8,15))->create(['category_id' => $category->id])->each(\n function ($product){\n factory(WarrantyProduct::class, mt_rand(2, 3))->create(['product_id' => $product->id]);\n }\n );\n }\n );\n\n }", "title": "" }, { "docid": "ddf328298d79f78f3d971cd04aba1d68", "score": "0.7705474", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n\n\n factory(\\App\\Entities\\Category::class, 3)->create()->each(function ($c){\n $c->products()\n ->saveMany(\n factory(\\App\\Entities\\Product::class, 3)->make()\n );\n });\n }", "title": "" }, { "docid": "5f9901567b2bd8ddbdf263c78ddac102", "score": "0.77032715", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n \n // User Table Data\n /*for($i = 0; $i < 1000; $i++) {\n \tApp\\User::create([\n\t 'email' => $faker->email,\n\t 'password' => $faker->password,\n\t 'full_name' => $faker->name,\n\t 'phone_number' => $faker->name,\n\t ]);\n\t }*/\n\n // User Event Data\n\t /*for($i = 0; $i < 50; $i++) {\n \tApp\\Events::create([\n\t 'event_name' => $faker->name,\n\t 'event_date' => $faker->date,\n\t 'event_startTime' => '2019-01-01',\n\t 'event_duration' => '2',\n\t 'event_venue' => $faker->address,\n\t 'event_speaker' => '1',\n\t 'event_sponsor' => '3',\n\t 'event_topic' => $faker->text,\n\t 'event_details' => $faker->text,\n\t 'event_avatar' => $faker->imageUrl,\n\t 'created_at' => $faker->date(),\n\t ]);\n\t }*/\n }", "title": "" }, { "docid": "6fbcd5e15b63b9dabff8dbaff5d2ea82", "score": "0.7702561", "text": "public function run()\n {\n $faker = Factory::create();\n\n Persona::truncate();\n Pago::truncate();\n Detalle::truncate();\n\n // Schema::disableForeignKeyConstraints();\n User::truncate();\n // HaberDescuento::truncate();\n // Schema::enableForeignKeyConstraints();\n\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@drea.com',\n 'dni' => '12345678',\n 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret\n 'remember_token' => Str::random(10),\n ]);\n\n // foreach (range(1, 25) as $i) {\n // $dni = mt_rand(10000000, 99999999);\n // Persona::create([\n // 'nombre' => $faker->firstname,\n // 'apellidoPaterno' => $faker->lastname,\n // 'apellidoMaterno' => $faker->lastname,\n // 'dni' => $dni,\n // 'codmodular' => '10' . $dni,\n // 'user_id' => 1,\n // 'estado' => $faker->randomElement(['activo', 'inactivo']),\n // ]);\n // }\n\n }", "title": "" }, { "docid": "4e84e995d3e716ac7ab157ddfcc67a39", "score": "0.7700872", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Tag::class, 10)->create();\n\n // Get all the roles attaching up to 3 random roles to each user\n $tags = App\\Tag::all();\n\n\n factory(App\\User::class, 10)->create()->each(function($user) use ($tags){\n $user->save();\n factory(App\\Question::class, 5)->create(['user_id'=>$user->id])->each(function($question) use ($user, $tags){\n \n $question->tags()->attach(\n $tags->random(rand(1, 10))->pluck('id')->toArray()\n ); \n factory(App\\Comment::class, 5)->create(['user_id'=>$user->id, 'question_id'=>$question->id])->each(function($comment){\n $comment->save(); \n });\n });\n });\n }", "title": "" }, { "docid": "44607c99534f6f67a920e806653b05d8", "score": "0.7699368", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n \\App\\Models\\Rol::factory(10)->create();\n \\App\\Models\\Persona::factory(10)->create();\n \\App\\Models\\Configuracion::factory(10)->create();\n }", "title": "" }, { "docid": "78e5684a917cd4cdf2b47769a09f01c1", "score": "0.7698747", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n DB::table('news')->insert([\n 'title' => $faker->text(10),\n 'created_at' => \\Carbon\\Carbon::now(),\n 'updated_at' => \\Carbon\\Carbon::now(),\n 'resume' => $faker->text(70),\n 'pics' => $faker->imageUrl(),\n 'content' => $faker->text( 1000 ),\n 'author' => $faker->name,\n 'isPublished' => rand(0,1)\n ]);\n }", "title": "" }, { "docid": "a3ead8af61223146f6e3fdec15b00904", "score": "0.76973933", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([QuizSeeder::class]);\n $this->call([AnswererSeeder::class]);\n $this->call([SectionSeeder::class]);\n $this->call([QuestionSeeder::class]);\n $this->call([AnswerSeeder::class]);\n $this->call([OptionSeeder::class]);\n $this->call([OptionColSeeder::class]);\n }", "title": "" }, { "docid": "55df2400596f6d82130eb26db7635b8b", "score": "0.76960135", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contact::truncate();\n \n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n Contact::create([\n 'first_name' => $faker->name,\n 'last_name' => $faker->name,\n 'email' => $faker->email,\n 'telephone' => $faker->phoneNumber,\n 'contact_type' => $faker->name,\n ]);\n }\n }", "title": "" }, { "docid": "d250f232a40eb13d0fa688dd5dc63e8c", "score": "0.7694057", "text": "public function run()\n {\n factory(App\\User::class,5)->create();\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('123456'),\n 'type' => 1,\n 'confirmed' =>1,\n ]);\n\n factory(App\\Category::class,5)->create();\n\n $categories_array = App\\Category::all('id')->pluck('id')->toArray();\n\n $post = factory(App\\Post::class,20)->create()->each(function($post) use ($categories_array){\n $this->attachRandomCategoriesToPost($post->id, $categories_array);\n $this->addCommentsToPost($post->id);\n });\n }", "title": "" }, { "docid": "f440a18e1170b8250c14144757b8cc81", "score": "0.7694012", "text": "public function run()\n\t{\n\t\t//\n\t\tApp\\Book::truncate();\n\t\tApp\\Genre::truncate();\n\t\tApp\\Author::truncate();\n\n\t\tfactory(App\\Book::class, 50)->create()->each(function($books) {\n\t\t$books->authors()->save(factory(App\\Author::class)->make());\n\t\t$books->genres()->save(factory(App\\Genre::class)->make());\n\t\t});\n\t}", "title": "" }, { "docid": "dbd59b913d32cfed4a7fd5cda3083940", "score": "0.7692349", "text": "public function run()\n {\n //\n DB::table('oa')->delete();\n\n DB::table('oa')->insert([\n /*'id' => 1,*/\n /*'id_educativo' => 1,\n 'id_general' => 1,\n 'id_clasificacion' => 1,\n 'id_tecnica' => 1,*/\n ]);\n\n $this->call(Lom_generalSeeder::class);\n $this->call(Lom_clasificacionSeeder::class);\n $this->call(Lom_educativoSeeder::class);\n $this->call(Lom_tecnicaSeeder::class);\n }", "title": "" }, { "docid": "82fbb499231e85aef13b133c2fd7bebb", "score": "0.7690856", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Tomas Landa',\n 'email' => 'tomaslanda1989@gmail.com',\n 'password' => Hash::make('123456789'),\n ]);\n\n\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n\n\n }", "title": "" }, { "docid": "7d5e2b097fa405f728e42815bc2fa95f", "score": "0.76902777", "text": "public function run()\n {\n Category::create(['name' => 'remeras']);\n Category::create(['name' => 'camperas']);\n Category::create(['name' => 'pantalones']);\n Category::create(['name' => 'gorras']);\n Category::create(['name' => 'mochilas']);\n Category::create(['name' => 'Sombreros']);\n Category::create(['name' => 'Muñequeras']);\n Category::create(['name' => 'Medias']);\n\n $discounts = Discount::factory(40)->create();\n\n $products = Product::factory(50)\n ->make()\n ->each(function ($product){\n $categories = Category::all();\n $product->category_id = $categories->random()->id;\n $product->save();\n });\n\n }", "title": "" }, { "docid": "d821e4330d8dabc502854ce12d329af5", "score": "0.7686745", "text": "public function run()\n {\n $this->call(ColorsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(SexesTableSeeder::class);\n $this->call(SizesTableSeeder::class);\n\n $this->call(User_StatusesTableSeeder::class);\n\n $this->call(SubcategoriesTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n\n $this->call(ProductsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n // factory(\\App\\Product::class, 62)->create();\n factory(\\App\\User::class, 25)->create();\n factory(\\App\\Cart::class, 99)->create();\n }", "title": "" }, { "docid": "29695a5ff1fa3c45993913799e105323", "score": "0.7686227", "text": "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\t$dateset = new Seed(self::TABLE_NAME);\n\n\t\tforeach ($dateset as $rows) {\n\t\t\t$records = [];\n\t\t\tforeach ($rows as $row)\n\t\t\t\t$records[] = [\n\t\t\t\t\t'id'\t\t\t=> $row->id,\n\t\t\t\t\t'created_at'\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t\t'updated_at'\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t\t'sport_id'\t\t=> $row->sport_id,\n\t\t\t\t\t'country_id'\t=> $row->country_id,\n\t\t\t\t\t'gender_id'\t\t=> $row->gender_id,\n\n\t\t\t\t\t'name'\t\t\t=> $row->name,\n\t\t\t\t\t'external_id'\t=> $row->external_id ?? null,\n\t\t\t\t\t'logo'\t\t\t=> $row->logo ?? null,\n\t\t\t\t];\n\n\t\t\tinsert(self::TABLE_NAME, $records);\n\t\t}\n\t}", "title": "" }, { "docid": "1bfaef844c455e578ca42264d7b5fd55", "score": "0.76848954", "text": "public function run()\n {\n factory(User::class, 10)->create();\n factory(Category::class, 6)->create();\n factory(Question::class, 60)->create();\n factory(Reply::class, 160)->create();\n factory(Like::class, 200)->create();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "bdd67eaf9bb5c705971ec25aad3d2bf9", "score": "0.7676969", "text": "public function run()\n {\n $faker = Faker\\Factory::create('es_ES');\n\n DB::table('empresas')->delete();\n for ($cantidadEmpresas = 0; $cantidadEmpresas != 6; $cantidadEmpresas++) {\n DB::table('empresas')->insert(array(\n 'nombre' => $faker->company,\n 'direccion' => $faker->address,\n 'email' => $faker->companyEmail,\n 'url' => $faker->url,\n 'telefono' => $faker->numberBetween(600000000,699999999),\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s'),\n ));\n }\n }", "title": "" }, { "docid": "b9641bc88f5f5c670d56d18a040a9927", "score": "0.76761395", "text": "public function run()\n {\n //création de seeder grace a faker\n // $faker = Faker::create();\n // for ($user = 0; $user < 10; $user++){\n // \\App\\User::create([\n // 'name' => $faker->name,\n // 'email' => $faker->unique()->safeEmail,\n // 'password' =>bcrypt('secret')\n // ]);\n // }\n \\App\\User::create([\n 'name' =>'Admin',\n 'email' => 'admin@admin.fr',\n 'password' =>bcrypt('adminadmin'),\n 'admin' =>1\n ]);\n\n\n //permet de créer des utilisateurs sans les relations\n factory(\\App\\User::class, 20)->create();\n\n //permet de créer 10 articles chacun écrit par un seul utilisateur\n // factory(\\App\\User::class, 10)->create()->each(function ($u) {\n // $u->articles()->save(factory(\\App\\Article::class)->make());\n // });\n\n //Permet de creer 20 articles par utilisateur -> 15x 20\n // $user = factory(\\App\\User::class, 15)->create();\n // $user->each(function ($user) {\n // factory(\\App\\Article::class, 20)->create([\n // 'user_id' => $user->id\n // ]);\n // });\n }", "title": "" }, { "docid": "0a79213fd15a52faa35b5d39bdf72ab9", "score": "0.7673781", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Categoria::class, 2)->create();\n\n //Se crearan 40 post\n factory(App\\Curso::class, 40)->create();\n }", "title": "" }, { "docid": "fec3323e6f3a81f6348e08d8097828b8", "score": "0.7667375", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Listing::truncate();\n\n $userQuantity=5;\n $listingQnt=100;\n\n factory(App\\User::class,$userQuantity)->create();\n factory(App\\Listing::class,$listingQnt)->create();\n }", "title": "" }, { "docid": "2344b2d3d5ee3f98e7bbbe7784cad8c9", "score": "0.76633793", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n $counry = Country::inRandomOrder()->first()->country;\n $city = City::inRandomOrder()->where('country', $counry)->first()->city;\n\n Agencies::create([\n 'name' => $faker->company,\n 'address' => $faker->address,\n\t\t\t\t'city' => $city,\n\t\t\t\t'countri' => $counry,\n\t\t\t\t'phone' => $faker->phoneNumber,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'web' => \"www.addadadadad.com\",\n ]);\n }\n }", "title": "" }, { "docid": "47d7ad0594d6fea4c95ece125a11f12f", "score": "0.7662501", "text": "public function run()\n {\n\n foreach (range(1, 10) as $_) {\n $faker = Factory::create();\n DB::table('menus')->insert([\n 'title' => $faker->firstName(),\n 'price' => $faker->randomNumber(2),\n 'weight' => $faker->randomNumber(2),\n 'meat' => $faker->randomNumber(2),\n 'about' => $faker->realText(rand(10, 20))\n ]);\n }\n\n //\n foreach (range(1, 10) as $_) {\n $faker = Factory::create();\n DB::table('restaurants')->insert([\n 'title' => $faker->company(),\n 'customer' => $faker->randomNumber(2),\n 'employee' => $faker->randomNumber(2),\n // 'menu_id' => $faker->randomNumber(1),\n\n ]);\n }\n }", "title": "" }, { "docid": "317d47304eb6df80c5511ceb3b9b995f", "score": "0.7662066", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n $faker = Faker\\Factory::create();\n for ($i=0; $i < 10; $i++) { \n BeTagModel::create([\n 'name' => $faker->sentence,\n 'name_alias' => implode('',$faker->sentences(4)),\n 'status' => $faker->randomDigit(),\n 'created_by' => $faker->unixTime(),\n 'updated_by' => $faker->unixTime(),\n 'created_at' => $faker->unixTime(),\n 'updated_at' => $faker->unixTime(),\n ]);\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "0de657d649c6926b71b8f5e0b4af5374", "score": "0.7662063", "text": "public function run() {\n // Example list, this seed will only create admin role, if you wanna create user account, please use normal register.\n // The pattern for each list value will be array[0] for username, array[1] for password (it will be hashed later, calma) and array[2] for email.\n // Add as many as you like.\n $list = array(\n array('pulselab', 'nopassword', 'plj@un.or.id'),\n );\n\n DB::collection('users')->delete();\n DB::collection('users')->insert(array_map(function($o) {\n return array(\n 'username' => $o[0],\n 'password' => app('hash')->make(sha1($o[1])),\n 'email' => $o[2],\n 'facebook_id' => '',\n 'twitter_id' => '',\n 'point' => 0,\n 'role' => 'admin',\n 'word_translated' => 0,\n 'word_categorized'=> 0,\n 'languages'\t\t => '',\n 'isconfirmed'\t => true,\n 'resetcode'\t\t => '',\n 'isVirgin' => 0,\n );\n }, $list));\n }", "title": "" }, { "docid": "591cc779df1a315a5bb877f8e1fe4600", "score": "0.7661008", "text": "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('indicadores')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('indicadores')->insert([\n 'rels' => json_encode([$faker->words(3)]),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->sentence,\n 'ano_inicial' => $faker->numberBetween(2019,2025),\n 'ano_final' => $faker->numberBetween(2025,2030),\n 'status_atual' => $faker->randomNumber(3),\n 'status_final' => $faker->boolean(),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n 'status' => true,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "9bf3fa05d4ae071adbab0386bc123da6", "score": "0.7660952", "text": "public function run()\n {\n $data = [];\n $faker = Factory::create();\n\n for ($i = 0; $i < 100; $i++) {\n $data[] = [\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n 'email' => $faker->email(),\n 'created_at' => date('Y-m-d H:i:s'),\n ];\n }\n\n $users = $this->table(DbConfig::DB_USER_TABLE);\n $users->insert($data)\n ->saveData();\n }", "title": "" }, { "docid": "2fab92d52cf4ab60077a0d038a745f5b", "score": "0.7660665", "text": "public function run()\n {\n Model::unguard();\n\n $this->call(DatabaseCleaner::class);\n\n $faker = Faker\\Factory::create();\n\n $admin = User::create([\n 'first_name' => 'Admin',\n 'last_name' => 'Admin',\n 'email' => 'admin@admin.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => str_random(10),\n ]);\n\n $userBirthdate = new UserMeta([\n 'created_by' => $admin->id,\n 'field_name' => 'birth_date',\n 'field_type' => 'date',\n 'date_value' => $faker->date,\n ]);\n\n $userPostalcode = new UserMeta([\n 'created_by' => $admin->id,\n 'field_name' => 'zip_code',\n 'field_type' => 'string',\n 'string_value' => $faker->postcode,\n ]);\n\n $admin->meta()->saveMany([$userBirthdate, $userPostalcode]);\n\n $this->call(GroupsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(LanguagesTableSeeder::class);\n $this->call(ContentTypesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(ContentsTableSeeder::class);\n $this->call(RoutesTableSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "d4833208ba9ca3bb97bd734168301979", "score": "0.7659809", "text": "public function run()\n {\n $this->call(ReligionsTableSeeder::class);\n $this->call(SubjectsTableSeeder::class);\n $this->call(BuildingsTableSeeder::class);\n $this->call(ScholarshipsTableSeeder::class);\n $this->call(GradesTableSeeder::class);\n $this->call(CollegesTableSeeder::class);\n $this->call(DepartmentsTableSeeder::class);\n factory('App\\Faculty', 500)->create();\n // factory('App\\Student', 1000)->create();\n factory('App\\Room', 140)->create();\n $this->call(CurriculaTableSeeder::class);\n $this->call(CurriculumSubjectsTableSeeder::class);\n $this->call(StudentsTableSeeder::class); \n }", "title": "" }, { "docid": "4928806405a07b1df0cb55aaf31cc6fd", "score": "0.7659327", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Section::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few Section in our database:\n for ($i = 0; $i < 10; $i++) {\n Section::create([\n 'name' => $faker->name,\n ]);\n }\n }", "title": "" }, { "docid": "ac091d03c70afaa39edeb6588c3c3993", "score": "0.76578534", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //semillero cuando se ejecute el comando migrate se crearan en automatico los datos\n factory(User::class)->create(['email'=>'pablo.nolasco@live.com']);\n factory(User::class, 50)->create();\n factory(Forum::class, 20)->create();\n factory(Post::class, 50)->create();\n factory(Reply::class, 100)->create();\n }", "title": "" }, { "docid": "238c2f72ceeb9562de5b8c8c51d03b78", "score": "0.7656421", "text": "public function run()\n {\n Model::unguard();\n DB::table('fruits')->delete();\n $fruits = [\n ['name' => 'apple', 'color' => 'green', 'weight' => 150, 'delicious' => true],\n ['name' => 'banana', 'color' => 'yellow', 'weight' => 116, 'delicious' => true],\n ['name' => 'strawberries', 'color' => 'red', 'weight' => 12, 'delicious' => true],\n ];\n // Loop through fruits above and create the record in DB\n foreach ($fruits as $fruit) {\n Fruit::create($fruit);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "61310d9d27579cb1fe2adbef75513d38", "score": "0.76562244", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\Admin::class)->create([\n \"email\" => \"alice@gmail.com\",\n \"name\" => \"Alice\"\n ]);\n factory(App\\User::class)->create([\n \"email\" => \"bob@gmail.com\",\n \"name\" => \"Bob\"\n ]);\n factory(App\\User::class)->create([\n \"email\" => \"charlie@gmail.com\",\n \"name\" => \"Charlie\"\n ]);\n\n $this->call([\n CategorySeeder::class,\n PostSeeder::class,\n CategoryPostSeeder::class\n ]);\n }", "title": "" }, { "docid": "ffea41874cbc07a545de1bafbfa4ff18", "score": "0.7655993", "text": "public function run()\n {\n // $faker = Faker::create() ;\n // foreach (range(1,10) as $index) {\n // // We are now inserting fake data values and credentials into the database \n\n // DB::table('users')->insert([\n // 'name' => str_random(10) ,\n // 'email' => str_random(10).'@gmail.com' ,\n // 'password' => bcrypt('secret')\n // ])\n // }\n $this->call(SendCardsTableSeeder::class);\n $this->call(CardCategoriesTableSeeder::class);\n $this->call(ComplementaryCardsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "6571121bae7932bef4e75b44130c0200", "score": "0.7654226", "text": "public function run()\n {\n Book::create([\n 'user_id' => 1,\n 'title' => 'harry potter 1',\n 'description' => 'harry potter',\n ]);\n\n Book::create([\n 'user_id' => 1,\n 'title' => 'harry potter 2',\n 'description' => 'harry potter',\n ]);\n\n Book::create([\n 'user_id' => 1,\n 'title' => 'harry potter 3',\n 'description' => 'harry potter',\n ]);\n\n Book::create([\n 'user_id' => 1,\n 'title' => 'harry potter 4',\n 'description' => 'harry potter',\n ]);\n }", "title": "" }, { "docid": "b9cbd65c0ad3a0c375171c28c8688d01", "score": "0.76537997", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n FreeCause::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n Freecause::create([\n 'title' => $faker->sentence,\n 'number' => $faker->phoneNumber,\n 'judgment_date' => $faker->date,\n 'judgment_text' => 'innocent',\n 'court_name' => 'alex',\n 'judicial_chamber' => 'chamber',\n 'considration_text' => 'considration',\n 'type' => 'new',\n 'is_public' => 0,\n 'lawyer_id' => 2,\n 'status' => 1,\n 'related_cause_number' => 2,\n 'user_id' => 8,\n ]);\n }\n }", "title": "" }, { "docid": "aa8c1e52ec82900fb89b340f2d60d9b8", "score": "0.7651417", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //Model::unguard();\n factory(App\\User::class, 10)->create();\n factory(App\\Organisation::class, 10)->create();\n factory(App\\Catalog::class, 9)->create();\n factory(App\\CatalogItem::class, 30)->create();\n factory(App\\Workplace::class, 9)->create();\n factory(App\\Workplace_soft::class, 30)->create();\n factory(App\\Budget::class, 50)->create();\n factory(App\\License::class, 50)->create();\n factory(App\\Contract::class, 50)->create();\n $this->call(RoleTableSeeder::class);\n\n\n //Model::reguard();\n }", "title": "" }, { "docid": "9c36a41315c56187bb677602b3709ffa", "score": "0.7648642", "text": "public function run()\n { \n $faker = \\Faker\\Factory::create();\n \n /**\n * Creates dummy Users and for each of them\n * creates 5 articles \n * \n */\n factory(User::class, 50)->create()->each(function($user) use ($faker){\n for ($i=0; $i < 5; $i++) {\n Article::create([\n 'user_id' => $user->id,\n 'title' => $faker->sentence,\n 'content' => $faker->paragraphs(3,true),\n ]);\n }\n });\n\n /**\n * Creates a User with the credentials:\n * enail: me@mygraphqlapp.com\n * password: secret\n * \n */ \n User::create([\n 'name' => $faker->name,\n 'email' => 'me@mygraphqlapp.com',\n 'password' => bcrypt('secret')\n ]);\n }", "title": "" }, { "docid": "28708952c33a599f47466229824bdec3", "score": "0.764837", "text": "public function run()\n {\n \t// DB::table('dogs')->delete();\n\n $dogs = array(\n \tarray('name' => 'Shilo', 'gender' => 'female', 'age' => 9, 'created_at' => new DateTime, 'updated_at' => new DateTime),\n \tarray('name' => 'Honu', 'gender' => 'male', 'age' => 4, 'created_at' => new DateTime, 'updated_at' => new DateTime),\n \tarray('name' => 'Gunner', 'gender' => 'male', 'age' => 3, 'created_at' => new DateTime, 'updated_at' => new DateTime),\n \tarray('name' => 'Rupert', 'gender' => 'male', 'age' => 9, 'created_at' => new DateTime, 'updated_at' => new DateTime)\n );\n\n // Uncomment the below to run the seeder\n DB::table('dogs')->insert($dogs);\n }", "title": "" }, { "docid": "1ea2b96b314017c9eff1d6fcbf2fe5f1", "score": "0.76482946", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'lofike',\n 'email' => 'm4rtin.t@gmail.com',\n 'password' => '$2y$10$bmeekV4dbnP0lJR8LEeIX.Nk.TgSI0/pSVCUktovtrua.QO6vWdna',\n 'remember_token' => NULL,\n 'created_at' => '2016-12-21 09:27:20',\n 'updated_at' => new DateTime()\n ]);\n DB::table('shows')->insert([\n 'id' => 1,\n 'title' => 'Video Title',\n 'description' => \"Long description of the video\",\n 'image_link' => \"http://www.daisuki.net/content/dam/pim/daisuki/en/ONEPUNCHMAN/13161/movie.jpg\",\n 'video_link' => \"http://www.daisuki.net/hk/en/anime/watch.ONEPUNCHMAN.13156.html\"\n ]);\n }", "title": "" }, { "docid": "ad4f7bdbd62b9b41a1ecb75f8b1bbfcb", "score": "0.7648195", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\Prouduct::class,20)->create();\n factory(App\\Category::class,5)->create();\n\n $categories = Category::all();\n Prouduct::all()->each(function ($product) use ($categories) {\n $product->categories()->attach(\n $categories->random(2)->pluck('id')->toArray()\n );\n });\n }", "title": "" } ]
812f4b8facedaa495c0dfbdc77465062
Constructor with authentication and configuration parameters
[ { "docid": "3d286154cc39926f34f5985f75f55768", "score": "0.66757643", "text": "public function __construct(\n $basicAuthUserName = null,\n $basicAuthPassword = null\n ) {\n Configuration::$basicAuthUserName = $basicAuthUserName ? $basicAuthUserName : Configuration::$basicAuthUserName;\n Configuration::$basicAuthPassword = $basicAuthPassword ? $basicAuthPassword : Configuration::$basicAuthPassword;\n }", "title": "" } ]
[ { "docid": "3d16cf94cccd178157c558ff916e54fc", "score": "0.7800952", "text": "public function __construct()\n {\n $this->authentication = new Authentication(\n getenv('AUTH_DOMAIN'),\n getenv('AUTH_CLIENT_ID'),\n getenv('AUTH_CLIENT_SECRET'),\n getenv('AUTH_AUDIENCE')\n );\n }", "title": "" }, { "docid": "288136d5c53ed0ea0636a03a84964373", "score": "0.77319604", "text": "private function __construct() {\n\n $this->\n database = \\FluitoPHP\\Database\\Database::GetInstance();\n\n require_once( dirname(__FILE__) . DS . 'User.class.php' );\n\n $appConfig = \\FluitoPHP\\FluitoPHP::GetInstance()->\n GetConfig('AUTHENTICATION');\n\n $appConfig = $appConfig ? $appConfig : [];\n\n $moduleConfig = \\FluitoPHP\\FluitoPHP::GetInstance()->\n GetModuleConfig('AUTHENTICATION');\n\n $moduleConfig = $moduleConfig ? $moduleConfig : [];\n\n $appConfig = array_replace_recursive($appConfig, $moduleConfig);\n\n $this->\n UpdateConfig($appConfig);\n }", "title": "" }, { "docid": "0844a540376ee2ccc26f192959c46037", "score": "0.7610212", "text": "private function __construct()\n {\n // Overwrite _config from config.ini\n if ($_config = \\Phalcon\\DI::getDefault()->getShared('config')->auth) {\n foreach ($_config as $key => $value) {\n $this->_config[$key] = $value;\n }\n }\n\n $this->_cookies = \\Phalcon\\DI::getDefault()->getShared('cookies');\n $this->_session = \\Phalcon\\DI::getDefault()->getShared('session');\n $this->_security = \\Phalcon\\DI::getDefault()->getShared('security');\n }", "title": "" }, { "docid": "bd6ef1bcd2e5baef5abd5ba9ad514664", "score": "0.7539772", "text": "public function __construct()\n {\n parent::__construct();\n\n /** @var Config $oConfig */\n $oConfig = Factory::service('Config');\n\n $this->authMfaMode = $oConfig->item('authTwoFactorMode');\n $aConfig = $oConfig->item('authTwoFactor');\n $this->authMfaConfig = $aConfig[$this->authMfaMode];\n }", "title": "" }, { "docid": "43dba40911f21f38a0fca2c5263a57ca", "score": "0.74722046", "text": "public function __construct($config = array())\n\t{\n\t\t// Append default auth configuration\n\t\t$config += Kohana::config('simple_auth');\n\t\t\n\t\t// Load Session\n\t\t$this->session = Session::instance();\n\n\t\t// Save the config in the object\n\t\t$this->config = $config;\n\n\t\t// set debug message\n\t\tKohana::log('debug', 'Simple_Auth Library loaded');\n\t}", "title": "" }, { "docid": "da03504e391161ff77cdc6c34f34e608", "score": "0.7432851", "text": "public function __construct($config = array())\n\t{\n\t\t// Load libraries\n\t\t$this->session = Session::instance();\n\n\t\t// Append default auth configuration\n\t\t$config += Config::item('auth');\n\n\t\t// Clean up the salt pattern and split it into an array\n\t\t$config['salt_pattern'] = preg_split('/, ?/', Config::item('auth.salt_pattern'));\n\n\t\t// Save the config in the object\n\t\t$this->config = $config;\n\n\t\tLog::add('debug', 'Auth Library loaded');\n\t}", "title": "" }, { "docid": "0542aee4ff0dfa798d3512e6628cbcb3", "score": "0.7409436", "text": "public function __construct()\n {\n parent::__construct();\n $this->authentication = getAuthentication();\n }", "title": "" }, { "docid": "cf67b7b4cc1e381e4a8e2f967234b0a5", "score": "0.74088496", "text": "public function __construct() {\n $dotenv = new Dotenv();\n $dotenv->load(dirname(__DIR__).'/.env');\n\n $this->api = new Api($_ENV['CLODUI_API']);\n\n $client_id = $_ENV['CLODUI_CLIENT_ID'];\n $user_pool_id = $_ENV['CLODUI_USER_POOL_ID'];\n $identity_pool_id = $_ENV['CLODUI_IDENTITY_POOL_ID'];\n\n Logger::debug('Config Client ID '. $client_id. ', User pool id '. $user_pool_id. ', Identity pool id '. $identity_pool_id);\n $this->auth = new Auth($client_id, $user_pool_id, $identity_pool_id);\n }", "title": "" }, { "docid": "e43b875789dac33b11f2d6121c54a438", "score": "0.73598915", "text": "public function __construct( array $config )\n {//--------------->> __construct()\n \n $this->setDAO( $config[ 'daoInstance' ] );\n \n if ( isset( $config[ 'validator' ] ) ) {//---------->> if validator is setted\n $this->setValidator( $config[ 'validator' ] );\n }//---------->> End if validator is setted\n \n if ( isset( $config[ 'encryption' ] ) ) {//---------->> if encryption is setted\n $this->setEncryption( $config[ 'encryption' ] );\n }//---------->> End if encryption is setted\n \n }", "title": "" }, { "docid": "9889b69c819df2cb9dcc03af3a2a23cd", "score": "0.73594147", "text": "public function __construct(){\n\t\t\t$this->authentication();\n\t\t}", "title": "" }, { "docid": "06150b79204adfb72b223463aa106957", "score": "0.72667545", "text": "public function __construct()\n {\n\n // For Authenticating with Login Credentials\n\n //$this->username = config('whmcs.username');\n //$this->password = config('whmcs.password');\n\n // For Authenticating with API Credentials\n\n $this->api_identifier = config('whmcs.api_identifier');\n $this->api_secret = config('whmcs.api_secret');\n\n $this->api_access_key = config('whmcs.api_access_key');\n\n $this->response_type = strtolower(config('whmcs.response_type'));\n\n $this->client = new Client([\n 'base_uri' => config('whmcs.url'),\n 'timeout' => config('whmcs.timeout'),\n 'headers' => ['Accept' => 'application/json']\n ]);\n }", "title": "" }, { "docid": "5fd6c918517a86105209130254955631", "score": "0.72370774", "text": "public function __construct($config = 'rest') {\n parent::__construct($config);\n $this->load->model('Common_model');\n \n// set_error_handler([$this,'exceptions_error_handler']);\n $config_username = $this->config->item('username');\n $config_password = $this->config->item('password');\n /*if (!empty($config_username) && !empty($config_password)) {\n if ($config_username != $this->input->server('PHP_AUTH_USER') && $config_password != $this->input->server('PHP_AUTH_PW')) {\n $responseArr = array(\n 'status_code' => UNAUTHORIZED,\n 'status_message' => $this->lang->line('UNAUTH_CREDENTIAL')\n );\n $this->response($responseArr);\n }\n }*/\n }", "title": "" }, { "docid": "1efebf96ee7e8701be4126f005c21fb4", "score": "0.72326225", "text": "public function __construct()\n {\n // validate compatibiliry with the system\n $this->_validate_compatibility();\n\n // load config file\n $this->config->load('auth');\n\n // load language file for messages\n $this->lang->load('auth', 'english');\n\n // load authentication model\n $this->load->model('auth_model');\n\n // load required libraries\n $this->load->library(['session', 'user_agent', 'encryption']);\n\n // load required helpers\n $this->load->helper(['cookie', 'string', 'auth']);\n\n // log message to debugger\n log_message('debug', 'Authentication library initialized.');\n }", "title": "" }, { "docid": "1896bcf957548e0568f590b4290e895e", "score": "0.7219782", "text": "public function __construct()\n {\n parent::__construct();\n\n /* setup base parameters for authentication */\n $this->baseParams = [\n 'ts' => date('Y-m-d H:i:s'), //timestamp\n 'apikey' => config('marvel.public_key'), //public key\n 'hash' => md5(date('Y-m-d H:i:s').config('marvel.private_key').config('marvel.public_key')), //md5 combination of ts, private key and public key\n ];\n }", "title": "" }, { "docid": "80d57f40956e19bac55f9ed4570a3563", "score": "0.7198161", "text": "function __construct() {\r\n $this->config->token = \\Bitrix\\Main\\Config\\Option::get($this->module_id, \"token\", '');\r\n $this->config->api = \\Bitrix\\Main\\Config\\Option::get($this->module_id, \"api\", '');\r\n $this->config->sender = \\Bitrix\\Main\\Config\\Option::get($this->module_id, \"sender\", '');\r\n\t}", "title": "" }, { "docid": "c27e74856038c467532055e0e3af9f71", "score": "0.7182884", "text": "function __construct() {\n\n\n\n\t\t\t// Check to see all authentication providers are registered in the database\n\t\t\t$this->CheckAndRegisterProviders();\n\n\t\t}", "title": "" }, { "docid": "5844affb88c09ca01c9bebb1d281af3e", "score": "0.7173589", "text": "function __construct()\n{\n\tglobal $pclib;\n\t\n\tparent::__construct();\n\n\t$this->app = $pclib->app;\n\n\t$this->passwordAlgo = $this->app->config['pclib.auth']['algo'];\n\t$this->secret = $this->app->config['pclib.auth']['secret'];\n}", "title": "" }, { "docid": "919cb8c1b07c67aed40fd0e4c35903e6", "score": "0.7166433", "text": "function __construct($config){\n $this->host = $config->host;\n $this->user = $config->user;\n\t\t\t$this->pass = $config->pass;\n\t\t\t$this->db = $config->db;\n }", "title": "" }, { "docid": "d66ea72518367168eb48ee5fba478790", "score": "0.7124085", "text": "public function __construct($username='',$password=''){\n\n $this->username = $username;\n $this->password = $password;\n }", "title": "" }, { "docid": "58b631298097db60a96d36d794149525", "score": "0.7091232", "text": "public function __construct()\n {\n $this->_config = request('_config');\n }", "title": "" }, { "docid": "72e9812695d2503253c2c4a1bdfdabae", "score": "0.70764774", "text": "function __construct( $conf )\n {\n $this->_username = $conf['username'];\n $this->_password = $conf['password'];\n $this->_transport = $conf['transport'];\n $this->_hostname = $conf['host'];\n $this->_port = $conf['port'];\n $this->_idGateway = $conf['idGateway'];\n\n $this->init();\n }", "title": "" }, { "docid": "12cde59f0ec2c1edea2e4f86de56d63d", "score": "0.7069586", "text": "function __construct($config_file='') {\n\n // If behind webauth, get currently logged-in user's information from WebauthLDAP module\n if( isset($_ENV['WEBAUTH_USER']) ) {\n $this->visitor = new StanfordPerson();\n $this->visitor->set_sunetid($_ENV['WEBAUTH_USER']);\n $this->visitor->set_full_name($_ENV['WEBAUTH_LDAP_DISPLAYNAME']);\n $this->visitor->set_email($_ENV['WEBAUTH_LDAP_MAIL']);\n }\n \n // Initialize Stanford objects\n $this->auth = new StanfordAuthorization();\n $this->util = new StanfordUtil();\n \n // Load options from config file if available\n if($config_file != '') {\n $this->load_config($config_file);\n }\n }", "title": "" }, { "docid": "1e50835678d04b8248d8533bd1786953", "score": "0.7054853", "text": "public function __construct() {\n global $apiConfig;\n if (! empty($apiConfig['developer_key'])) {\n $this->developerKey = $apiConfig['developer_key'];\n }\n if (! empty($apiConfig['oauth2_client_id'])) {\n $this->clientId = $apiConfig['oauth2_client_id'];\n }\n if (! empty($apiConfig['oauth2_client_secret'])) {\n $this->clientSecret = $apiConfig['oauth2_client_secret'];\n }\n if (! empty($apiConfig['oauth2_redirect_uri'])) {\n $this->redirectUri = $apiConfig['oauth2_redirect_uri'];\n }\n if (! empty($apiConfig['oauth2_access_type'])) {\n $this->accessType = $apiConfig['oauth2_access_type'];\n }\n if (! empty($apiConfig['oauth2_approval_prompt'])) {\n $this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];\n }\n }", "title": "" }, { "docid": "0f751f7db9fcf48ced7fb279a80cbacd", "score": "0.7036896", "text": "public function __construct()\r\r\n\t{\r\r\n\t\t$this->import('BackendUser', 'User');\r\r\n\t\tparent::__construct();\r\r\n\r\r\n\t\t$this->User->authenticate();\r\r\n\t}", "title": "" }, { "docid": "43d1632c0d1f9e32782d15422da7ebd9", "score": "0.70049673", "text": "public function __construct() { \n require __DIR__ . '/Config/parameters.php'; //⚠️️ DIR = cste magiq qui retourne chemin du doss ds lequel on est depuis la racine\n $this -> parameters = $parameters; // je mets ça ds ' protected $parameters; '\n /*⚠️️ Au moment où j'instancie cette classe, je récupère le fichier parameters.php, \n et je stocke tous les parameters de mon application dans la propriété $parameters */\n }", "title": "" }, { "docid": "77e694df4e7a746309ffe1b0b8200acb", "score": "0.6997188", "text": "function __construct( $conf )\n {\n $this->_username = $conf['username'];\n $this->_password = $conf['password'];\n $this->_transport = $conf['transport'];\n $this->_hostname = $conf['hostname'];\n $this->_port = $conf['port'];\n\n $this->init();\n }", "title": "" }, { "docid": "c3e7ef2f86ade90b88ce1d26712b1735", "score": "0.6985698", "text": "public function __construct()\n\t\t{\n\t\t\t$this->_username = \"lenykoskey\";\n\t\t\t$this->_apiKey = \"abbfa09e621a6ece272a254e3fcd910657ff46e88f82db205499603d06dda908\";\n\n\t\t}", "title": "" }, { "docid": "062920f6715bac77a1203448118927eb", "score": "0.69467103", "text": "public function __construct()\n {\n global $API_AUTHORIZATIONS;\n\n //Construct generic API handler\n parent::__construct();\n\n //Define authorizations for current API module\n $this->AUTH = $API_AUTHORIZATIONS[self::MODULE];\n }", "title": "" }, { "docid": "5e32cc1b0ce9283e63fa4768060e701a", "score": "0.6942827", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->config = config('gitception');\n\n if(!$this->config['email'] || !$this->config['password']){\n return;\n }\n\n $email = Crypt::decrypt($this->config['email']);\n $password = Crypt::decrypt($this->config['password']);\n\n $this->bitbucket = new Issues();\n $this->bitbucket->setCredentials(new Basic($email, $password));\n }", "title": "" }, { "docid": "436474add483b6e5a5877b6fe5429a57", "score": "0.6941421", "text": "public function __construct($config=array())\n {\n $this->properties = array(\n 'api_server',\n 'company',\n 'consumer_key',\n 'consumer_secret',\n 'download_server',\n 'download_ticket',\n 'email',\n 'password',\n 'request_server',\n 'session_props',\n 'ticket'\n );\n\n $this->syncedProperties = array(\n 'download_server',\n 'download_ticket',\n 'request_server',\n 'ticket'\n );\n\n foreach (array_keys($config) as $key) {\n if (in_array($key, $this->properties)) {\n $this->$key = $config[$key];\n }\n }\n\n $this->syncFromSession();\n }", "title": "" }, { "docid": "d1af4dad7f29c934c54ec7f28768dac8", "score": "0.6933289", "text": "public function __construct() {\n $this->_configPassword = $this->parseConfig(2);\n $this->_configClass = $this->parseConfig(5);\n $this->_time = time();\n\t}", "title": "" }, { "docid": "b8fabf89729915f4ee505055adaa038d", "score": "0.6933227", "text": "public function __construct()\n\t{\n\t\t$this->import('BackendUser', 'User');\n\t\tparent::__construct();\n\n\t\t$this->User->authenticate();\n\n\t\t\\System::loadLanguageFile('default');\n\t}", "title": "" }, { "docid": "7afe41800c1d4267439c36cbea6126f7", "score": "0.6933209", "text": "public function __construct()\n {\n $this->_config = sspmod_janus_DiContainer::getInstance()->getConfig();\n }", "title": "" }, { "docid": "94f9df3e4c95affeacb74e6b2ec2c61d", "score": "0.6932606", "text": "public function __construct()\n\t{\n\t\t$this->import('BackendUser', 'User');\n\t\tparent::__construct();\n\n\t\t$this->User->authenticate();\n\n\t\t\\System::loadLanguageFile('default');\n\t\t\\System::loadLanguageFile('modules');\n\t}", "title": "" }, { "docid": "bed6e72ab6da8db7cdee6e12d0506b57", "score": "0.692478", "text": "function __construct()\n\t{\n\t\t$this->_ci =& get_instance();\n\n\t\t//load config\n\t\t$this->_ci->load->config('twilio', TRUE);\n\n\t\t$this->account_sid = $this->_ci->config->item('account_sid', 'twilio');\n\t\t$this->auth_token = $this->_ci->config->item('auth_token', 'twilio');\t\t\n\t}", "title": "" }, { "docid": "14b1da5547b5b7d73dfbbc985bcb6699", "score": "0.6903709", "text": "public function __construct() {\n parent::__construct(\n self::USER_PHP_USERNAME, self::USER_PHP_CREDENTIALS_FILENAME);\n }", "title": "" }, { "docid": "e30a22d63b4d2d9600a803bfcd8016ef", "score": "0.68819827", "text": "public function __construct($username = null, $password = null)\n {\n // ...\n $this->username = $username;\n $this->password = $password;\n }", "title": "" }, { "docid": "ef20c4b688fd6a10542f1603f8c26518", "score": "0.68813115", "text": "public function __construct()\n {\t\n @include(SHIN_Core::isConfigExists('auth.php'));\n\t\t\n $this->_config_mapper($auth);\n\t\t\n\t\tif($auth['keeping_logic'] == 'db')\n\t\t{\n\t\t\t// db style\n\t\t\tSHIN_Core::loadModel(array('sys_session_model', 'session_model'));\n\t\t\t$this->sessionModel = SHIN_Core::$_models['session_model']->get_instance();\n\t\t\t$this->sessionModel->init($this->sh_Options['sess_expiration']/60, $this->sh_Options['sess_time_to_update']/60);\n\t\t}\n\t\t\n\t\tConsole::logSpeed('SHIN_Auth begin work, Time taken to get to line: '.__FILE__.'::'.__LINE__);\n\t\tConsole::logMemory($this, 'SHIN_Auth. Size of class: ');\t\t \n }", "title": "" }, { "docid": "d0c79a82638c03f98de802c467408eff", "score": "0.6880192", "text": "public function __construct(array $config = array())\n\t{\n\t\t// Example config:\n\t\t// $config = array('login' => [login], 'tran_key' => [tran_key], 'test_mode' => TRUE/FALSE, 'duplicate_window' => 30);\n\t\t$config = array_merge(Kohana::config('authorizenet')->default, $config);\n\n\t\t// Make sure we have enough to get started.\n\t\tif (!$config['login'] || !$config['tran_key'])\n\t\t\tthrow new Kohana_Exception('Payment gateway credentials not found');\n\t\t\n\t\t$this->_login = $config['login'];\n\t\t$this->_tran_key = $config['tran_key'];\n\t\t\n\t\t// Determine POST target.\n\t\t$this->_url = $config['test_mode'] ? self::TEST : self::LIVE;\n\n\t\t// User provided dupe window.\n\t\t$this->duplicate_window = Arr::get($config, 'duplicate_window', NULL);\n\t}", "title": "" }, { "docid": "f13c70fa2b6ea797bd424c112ac3be36", "score": "0.68736947", "text": "function __construct($login, $password) {\n $this->login = $login;\n $this->password = $password;\n }", "title": "" }, { "docid": "3f0e54c3d63ddf11011f279a307bf858", "score": "0.6867558", "text": "abstract public function __construct( $config );", "title": "" }, { "docid": "65c3606bd5c855127102ab08f5cb281a", "score": "0.6860272", "text": "public function __construct( $config )\n\t\t{\n\t\t\t$CI =& get_instance();\n\t\t\t$CI->load->library('session');\n\t\t\t\n\t\t\t$this->session =& $CI->session;\n\t\t\t\n\t\t\t// add default session-key to config, the parent will overwrite this if \n\t\t\t// present in config\n\t\t\t$this->setConfig( 'session-key', 'emol-{instancename}-apihash' );\n\t\t\t\n\t\t\t$result = parent::__construct( $config );\n\t\t}", "title": "" }, { "docid": "99abdd077704cf99cb1d0592bf33bc79", "score": "0.68555313", "text": "public function __construct()\r\n\t\t{\r\n\t\t\t$this->api_id = self::API_ID;\r\n\t\t\t$this->api_secret = self::API_SECRET;\r\n\t\t}", "title": "" }, { "docid": "7f7c0c3030d3e45e9179cc09f0c13ca4", "score": "0.68547934", "text": "function __construct()\n\t{\n\t $this->loadConfig();\n\t\t$this ->conectar();\n\t}", "title": "" }, { "docid": "44eac02af6cd2a50c0d6acc3587612ae", "score": "0.68432164", "text": "public function __construct() {\n\t\t$client = new \\GuzzleHttp\\Client;\n\t\t$this->client = $client;\n\n\t\t$response = $this->client->request('POST', 'http://api.thingsee.com/v2/accounts/login', \n\t\t\t['json' => \n\t\t\t\t[\n\t\t\t\t\t'email' => Config::get('thingsee.email'), \n\t\t\t\t\t'password' => Config::get('thingsee.password')\n\t\t\t\t]\n\t\t\t]);\n\n\t\t// Obsolete, 401 and 500 will be caught in the calling function\n\t\t$statusCode = $response->getStatusCode();\n\n\t\t$data = json_decode($response->getBody(), true);\n\t\t$this->accountAuthToken = $data['accountAuthToken'];\n\t}", "title": "" }, { "docid": "5360bb25422c28d1c5803d916917798f", "score": "0.6836799", "text": "public function __construct() {\n $this->secretKey = $GLOBALS['config']['secret_key'];\n $this->accessKey = $GLOBALS['config']['access_key'];\n $this->sellerId = $GLOBALS['config']['seller_id'];\n $this->signatureMethod = $GLOBALS['config']['signature_method'];\n $this->signatureVersion = $GLOBALS['config']['signature_version'];\n $this->marketplaceId = $GLOBALS['config']['marketplace_id'];\n $this->version = $GLOBALS['config']['version'];\n }", "title": "" }, { "docid": "1df39e9a8c307855ba459e030831aace", "score": "0.68362993", "text": "public function __construct(array $config)\n {\n $this->host = $config['host'];\n $this->user = $config['user'];\n $this->password = $config['password'];\n $this->port = array_key_exists('port', $config) ? $config['port'] : $this->port;\n $this->service = array_key_exists('service', $config) ? $config['service'] : $this->service;\n $this->enc = array_key_exists('encryption', $config) ? $config['encryption'] : $this->enc;\n }", "title": "" }, { "docid": "8d270d66774bb2688e5119e18acf7a00", "score": "0.6822295", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\n\t\tif (isset($this->config->api['tinychat'], $this->config->api['tinychat']['public_key'], $this->config->api['tinychat']['secret_key']))\n\t\t{\n\t\t\t$this->public_key = $this->config->api['tinychat']['public_key'];\n\t\t\t$this->secret_key = $this->config->api['tinychat']['secret_key'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('Unable to load TinyChat configuration.');\n\t\t}\n\t}", "title": "" }, { "docid": "bd98ea795ad8b50f347497dcf9d42249", "score": "0.6815633", "text": "public function __construct()\n {\n if (1 == func_num_args()) {\n $this->authenticationLogs = func_get_arg(0);\n }\n }", "title": "" }, { "docid": "44fb80bdb347ade4c0ae5552812dfb75", "score": "0.6814744", "text": "public function __construct()\n {\n // parent::__construct();\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n\t\t//print_r($paypal_conf);exit;\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "9febb9c0f9431fd6f8780a92b2f94ea9", "score": "0.6813513", "text": "public function __construct()\n {\n $this->protocol = api_get_setting('sso_authentication_protocol');\n // There can be multiple domains, so make sure to take only the first\n // This might be later extended with a decision process\n $domains = explode(',', api_get_setting('sso_authentication_domain'));\n $this->domain = trim($domains[0]);\n $this->auth_uri = api_get_setting('sso_authentication_auth_uri');\n $this->deauth_uri = api_get_setting('sso_authentication_unauth_uri');\n //cut the string to avoid recursive URL construction in case of failure\n $this->referer = $this->protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['REQUEST_URI'],0,strpos($_SERVER['REQUEST_URI'],'sso'));\n $this->deauth_url = $this->protocol.$this->domain.$this->deauth_uri;\n $this->master_url = $this->protocol.$this->domain.$this->auth_uri;\n $this->referrer_uri = base64_encode($_SERVER['REQUEST_URI']);\n $this->target = api_get_path(WEB_PATH);\n }", "title": "" }, { "docid": "cd72493fd72a0aa473aa722bde018c47", "score": "0.68039095", "text": "public function __construct($config) {\n // Store some private vars based on the user's config\n $this->apiKey = $config['api_key'];\n $this->languageFrom = $config['language_from'];\n $this->languageTo = $config['language_to'];\n $this->maxCycles = $config['cycles'];\n }", "title": "" }, { "docid": "90326668099ad4d225113cdaf6d48fd8", "score": "0.6803793", "text": "public function __construct($username, $password)\r\n\t\t\t{\r\n\t\t\t\t$this->username = $username;\r\n\t\t\t\t$this->password = $password;\r\n\t\t\t}", "title": "" }, { "docid": "409c5b2117fce6905ad62a9a37087a26", "score": "0.67992127", "text": "public function __construct()\n {\n parent::__construct();\n $this->client_id = Tool::config('client_id');\n $this->client_secret = Tool::config('client_secret');\n $this->redirect_uri = Tool::config('redirect_uri');\n $this->authorize_url = Tool::config('app_type', 'com') === 'com'\n ? Constants::AUTHORITY_URL.Constants::AUTHORIZE_ENDPOINT\n : Constants::AUTHORITY_URL_21V.Constants::AUTHORIZE_ENDPOINT_21V;\n $this->access_token_url = Tool::config('app_type', 'com') === 'com'\n ? Constants::AUTHORITY_URL.Constants::TOKEN_ENDPOINT\n : Constants::AUTHORITY_URL_21V.Constants::TOKEN_ENDPOINT_21V;\n $this->scopes = Constants::SCOPES;\n }", "title": "" }, { "docid": "12b66acd8cdf92d734b735c83c8d5f92", "score": "0.67982626", "text": "function __construct() {\n //invoke the init method of the config object in context\n $this->init();\n }", "title": "" }, { "docid": "b9bf3b546b4f8c5d3cf1e3f9c313dab3", "score": "0.6797807", "text": "public function __construct()\n {\n $this->Connect();\n $this->parameters = array();\n }", "title": "" }, { "docid": "7dca8a1df1b92ff16eb6629daeaf558e", "score": "0.67914695", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('Auth', [\n 'storage' => 'Memory',\n 'authenticate' => [\n 'Form' => [\n //'scope' => ['Users.active' => 1],\n 'fields' => [\n 'username' => 'username',\n 'password' => 'password'\n ]\n ],\n 'ADmad/JwtAuth.Jwt' => [\n 'parameter' => 'token',\n 'userModel' => 'users',\n //'scope' => ['Users.active' => 1],\n 'fields' => [\n 'username' => 'username'\n ],\n 'queryDatasource' => true\n ]\n ],\n 'unauthorizedRedirect' => false,\n 'checkAuthIn' => 'Controller.initialize',\n 'loginAction' => false,\n 'authError' => 'server:api.auth_controller.error.authentication'\n ]);\n }", "title": "" }, { "docid": "d65638962f4c86e0092757e2dd776077", "score": "0.67806476", "text": "public function __construct()\n {\n parent::__construct();\n\n log_message('debug', 'Auth Model Loaded');\n \n $this->config->load('ag_auth');\n $this->load->database();\n\n $this->user_table = $this->config->item('auth_user_table');\n $this->group_table = $this->config->item('auth_group_table');\n }", "title": "" }, { "docid": "1da11753b948a7a2f9c7f5b287cd5d10", "score": "0.6780069", "text": "public function __construct(){\n\t\t$paypal_conf = config('paypal');\n\t\t$this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n\t\t$this->_api_context->setConfig($paypal_conf['settings']);\n\t}", "title": "" }, { "docid": "cad8901b4e9ce4c9cd9ee940e13d6078", "score": "0.6779768", "text": "public function __construct()\n {\n $this->config = config('ldap');\n }", "title": "" }, { "docid": "4fa4a1c456f5d83ca74c0060805d2bf1", "score": "0.6779099", "text": "public function __construct($username, $password)\n {\n //echo 'Constructor Called <br />';\n $this->username = $username;\n $this->password = $password;\n }", "title": "" }, { "docid": "fb0edcf420981b23a218f28636257a3b", "score": "0.6771958", "text": "public function __construct() {\n $this->sessionManager = new SessionManager;\n $this->router = new Router;\n\n $config = Config::auth();\n $this->setIdUserColumn($config['idUserColumn']);\n $this->setnameUserColumn($config['nameUserColumn']);\n $this->setUserColumn($config['userColumn']);\n $this->setPassColumn($config['passColumn']);\n $this->setLoginController($config['afterAuth']);\n $this->setLogoutController('auth');\n $this->setSessionUserAuth('userAuth');\n $this->setSessionUserInfo('userInfo');\n\n return $this;\n }", "title": "" }, { "docid": "90d436c42d2db15f585d4ab3acaa06e4", "score": "0.6770059", "text": "public function __construct($api_url = null, $username = null, $password = null) {\n $options = array(\n 'api_url' => $api_url,\n 'username' => $username,\n 'password' => $password\n );\n\n //configure api options\n $this->configure( $options );\n\n //validate api credentials\n $this->validateApiCredentials();\n }", "title": "" }, { "docid": "74c2111a799a308a01781268b1e04dab", "score": "0.6767055", "text": "abstract public function init($credentials = false);", "title": "" }, { "docid": "921cc1c68f7ab8b6ada7523bc92828a9", "score": "0.67655945", "text": "public function __construct() {\r\n\t\tif(!$this->isLoggedIn()) {\r\n\t\t\theader('location: ' . URL . 'authentication/index');\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t $this->loadModel($this->modelToLoad);\r\n\t $this->model->setAuth($_SESSION['ID'], $_SESSION['PASSWORD']);\r\n\t\t\r\n\t\tparent::__construct();\r\n\t}", "title": "" }, { "docid": "d368d25496c4f026b386618c16e36a5e", "score": "0.67575854", "text": "public function __construct() {\n $this->api = \\Slim\\Slim::getInstance();\n\n $this->CSUser = CSUser::getInstance();\n $this->CSAuth = CSAuth::getInstance();\n\n //Login route\n\t\t$this->api->post('/login', array($this, 'login')); \n\n\t\t//Logout rout\n\t\t$this->api->delete('/login', array($this, 'logout'));\n }", "title": "" }, { "docid": "39ef10c948092bf5fa9dae5444d2dbc8", "score": "0.6756742", "text": "private function __construct() {\n $this->config = array(\n // These will all need to be changed to point at your mysql server.\n \"Database\" => array(\n \"Host\" => \"localhost\",\n \"Name\" => \"daeman\",\n \"Username\" => \"daeman\",\n \"Password\" => \"<password>\",\n ),\n );\n }", "title": "" }, { "docid": "3f26be669bba3f2cdaf7f109498cc9c8", "score": "0.67544335", "text": "public function __construct()\n {\n $this->middleware('guest');\n $this->middleware('guest:admin');\n\n \\Cloudinary::config(array(\n \"cloud_name\" => \"dbpbpokhx\",\n \"api_key\" => \"224568426731156\",\n \"api_secret\" => \"BrRWdDBVJlaS1f8zmbUNNTk6Ymg\"\n ));\n }", "title": "" }, { "docid": "527cf099e1ec31d3ceea6f0632052bea", "score": "0.6750165", "text": "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n }", "title": "" }, { "docid": "527cf099e1ec31d3ceea6f0632052bea", "score": "0.6750165", "text": "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n }", "title": "" }, { "docid": "bb2ab2bc0f298e7eaa0a6ea09a951880", "score": "0.67492396", "text": "public function __construct($config)\n {\n }", "title": "" }, { "docid": "527e2a9ca58d375ca2039835c9512f2c", "score": "0.6741608", "text": "public function __construct()\n {\n $this->setApiKey();\n $this->setRequestOptions();\n }", "title": "" }, { "docid": "436725d5d6ed939f5ff8c5a421714453", "score": "0.67335993", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->endpoint = config('untappd.endpoint');\n\n $this->client_id = config('untappd.client_id');\n\n $this->secret = config('untappd.secret');\n\n $this->brewery_id = config('untappd.brewery_id');\n\n $this->params = [];\n }", "title": "" }, { "docid": "cf441eec8bf54cc35d8828dd4bc78555", "score": "0.67326486", "text": "function __construct()\n {\n $arguments = func_num_args();\n\n if ($arguments != 1) {\n throw new InvalidConfigurationException(\"Invalid arguments. Use config array\");\n } else {\n $this->config = func_get_arg(0);\n\n if(!is_array($this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. Use config array\");\n\n if(!array_key_exists('login', $this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. The config array is missing the 'login' key\");\n\n if(!array_key_exists('password', $this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. The config array is missing the 'password' key\");\n }\n }", "title": "" }, { "docid": "2c6b1a59fc6c2be19bdf010f55b30e81", "score": "0.6731364", "text": "public function __construct($username, $password)\n {\n $this->username = $username;\n $this->password = $password;\n }", "title": "" }, { "docid": "61411da8a9dc07c3cfebe3bab93ace51", "score": "0.6728169", "text": "public function __construct() {\r\n $this->session = ci('load')->library('session')->session;\r\n $this->authentication = ci('load')->model('social/authentication_m')->authentication_m;\r\n }", "title": "" }, { "docid": "812ab972f856a92ed92033707910941d", "score": "0.6726089", "text": "function __construct() {\n $this->getSystemConfig();\n }", "title": "" }, { "docid": "3f60981e2a387e242b233873877b1f56", "score": "0.67213225", "text": "public function __construct()\n {\n $this->user = JWTAuth::parseToken()->authenticate();\n }", "title": "" }, { "docid": "9153aefeda1ffd3cd8727a035a50461a", "score": "0.67124814", "text": "public function __construct( $username, $password ) {\n\t\t$this->username = $username;\n\t\t$this->password = $password;\n\t}", "title": "" }, { "docid": "20d69a08584e195c5658273c1c70c010", "score": "0.6702789", "text": "public function __construct(array $config = array());", "title": "" }, { "docid": "2d3226ab5936950ff97b5182adb4fd20", "score": "0.6702064", "text": "public function __construct()\r\n {\r\n $param = func_get_args();\r\n switch (count($param)) {\r\n case 0:\r\n $this->apiConfigFromFile();\r\n $this->userCurlConfigFromFile();\r\n break;\r\n case 1:\r\n $this->apiConfigFromFile($param[0]);\r\n $this->userCurlConfigFromFile($param[0]);\r\n break;\r\n case 2:\r\n $this->api_key = $param[0];\r\n $this->api_secret = $param[1];\r\n break;\r\n default:\r\n echo 'Please see readme here: https://github.com/bitstorage-dev/php-bitstorage-api';\r\n }\r\n }", "title": "" }, { "docid": "e5e1e0e909e9f97c0bb8016f5815a9fd", "score": "0.66996396", "text": "public function __construct($username, $password) {\n\t\t$this->_username = $username;\n\t\t$this->_password = $password;\n\t}", "title": "" }, { "docid": "a3938233ef28402dfcb88901bcc3fd04", "score": "0.6691691", "text": "public function __construct()\n {\n\n /** PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential(\n $paypal_conf['client_id'],\n $paypal_conf['secret'])\n );\n $this->_api_context->setConfig($paypal_conf['settings']);\n\n }", "title": "" }, { "docid": "34f8074791451c11b73905a6389a0633", "score": "0.6690662", "text": "public function __construct()\n {\n // create/read session, absolutely necessary\n @session_start();\n\n // check the possible login actions:\n // if user tried to log out (happen when user clicks logout button)\n if (isset($_GET[\"logout\"])) {\n $this->doLogout();\n }\n // login via post data (if user just submitted a login form)\n elseif (isset($_POST[\"login\"])) {\n $this->dologinWithPostData();\n }\n // mark account for reset and email token\n elseif (isset($_POST[\"reset\"])) {\n $this->sendResetLink();\n }\n // validate token and reset password\n elseif (isset($_POST[\"update_password\"])) {\n $this->updatePassword();\n }\n }", "title": "" }, { "docid": "5ca120affb391fa734f481cc39d3ab6a", "score": "0.6690593", "text": "private function __construct()\n {\n require __DIR__ . \"/../config.php\";\n $this->setting = $confSettings;\n $this->adminLinks = $admin_link_array;\n $this->memberLinks = $member_link_array;\n }", "title": "" }, { "docid": "6158a3bc90c2c719b2f920acacf5839a", "score": "0.6685958", "text": "function __construct(){\n $nameFile = \"config.json\";\n \n // Check Excepctions.\n $this->exceptions = new myExceptions(\"Upps!\");\n $this->exceptions->findFile($nameFile);\n \n $data = file_get_contents($nameFile); \n $conecction = json_decode($data, true);\n \n // Check Data\n $this->exceptions->checkUserPass($conecction[\"conection\"]); \n \n $this->setConfiguration($conecction[\"conection\"][\"user\"]);\n $this->setConfiguration($conecction[\"conection\"][\"password\"]);\n \n }", "title": "" }, { "docid": "9f72e92b426bd2be8aaa6ba05e6c01b2", "score": "0.6685324", "text": "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n }", "title": "" }, { "docid": "edc2c2b5b949f8c7c95ae5c88dd7e7d9", "score": "0.6684931", "text": "public function __construct(){\n $dbCredentials = $this->readConfigFile(self::DB_CONFIG_FILE);\n $this->dbHostname=$dbCredentials[\"hostname\"];\n $this->dbName=$dbCredentials[\"dbName\"];\n $this->dbUsername=$dbCredentials[\"dbUsername\"];\n $this->dbPassword=$dbCredentials[\"dbPassword\"];\n }", "title": "" }, { "docid": "7b85c1d26c77bf7f5c42b95a94df2283", "score": "0.6680189", "text": "public function __construct()\n {\n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "f0ae117492fb2fcdb60a740f07ab2a91", "score": "0.66772884", "text": "public function __construct($config)\n {\n }", "title": "" }, { "docid": "0d522eb02cc39ce63457eb69b0fb3030", "score": "0.66758305", "text": "public function __construct()\n {\n $config = new \\Config\\Encryption();\n $config->key = 'aBigsecret_ofAtleast32Characters';\n $config->driver = 'OpenSSL';\n\n $this->enkripsi = \\Config\\Services::encrypter($config);\n\n $this->webModel = new PenggunaWebModel();\n $this->mobileModel = new PenggunaMobileModel();\n }", "title": "" }, { "docid": "349484fd2237b52bd539c528303e1274", "score": "0.6674332", "text": "public function __construct()\n {\n $config = new \\Yaf_Config_Ini(APP_INI, 'CI');\n \n $this->_allow_get_array = (bool) $config->get('allow_get_array');\n $this->_enable_xss = (bool) $config->get('global_xss_filtering');\n $this->_enable_csrf = (bool) $config->get('csrf_protection');\n $this->_standardize_newlines = (bool) $config->get('standardize_newlines');\n\n $this->security = new Security();\n\n // Do we need the UTF-8 class?\n $this->uni = new Utf8();\n\n // Sanitize global arrays\n $this->_sanitize_globals();\n }", "title": "" }, { "docid": "b65fa2d2ef5660c1cf332922a62b823b", "score": "0.667352", "text": "public function __construct()\n {\n\n // $configuration = $this->get('configuration');\n\n\n }", "title": "" }, { "docid": "19b71a90c323d5f484d1bdeff10e3325", "score": "0.66719866", "text": "public function __construct()\n {\n // returns the base portal URL as defined in conf file\n $this->baseUrl = \\Factory::getConfigService()->GetPortalURL();\n $this->baseApiUrl = \\Factory::getConfigService()->getServerBaseUrl();\n }", "title": "" }, { "docid": "5d1506a1e3f894e41064a846ec049791", "score": "0.6671665", "text": "public function __construct()\n {\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "5d1506a1e3f894e41064a846ec049791", "score": "0.6671665", "text": "public function __construct()\n {\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "title": "" }, { "docid": "471a617c62a12493d04984f4092c4ed7", "score": "0.6669715", "text": "protected function __construct() {\n $this->hacConfig = false;\n $config = new FacebookConfig();\n $this->loadConfig($config->getConfig());\n }", "title": "" }, { "docid": "cd26bdaca3b549ddef7f291fff81248f", "score": "0.66662586", "text": "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n // Init exception library object\n $this->utilityLibObj = new UtilityLib();\n $this->staticDataConfigObj = new StaticDataConfig();\n \n }", "title": "" }, { "docid": "cd26bdaca3b549ddef7f291fff81248f", "score": "0.66662586", "text": "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n // Init exception library object\n $this->utilityLibObj = new UtilityLib();\n $this->staticDataConfigObj = new StaticDataConfig();\n \n }", "title": "" }, { "docid": "cfee5f46f6d4d565af3dad2c1430e3b7", "score": "0.6665229", "text": "public function __construct()\n {\n parent::__construct();\n $this->config = config($this->configName);\n }", "title": "" } ]
6449286e7147becac172d7a7ff9a356b
Initializes the apps paths by creating the paths and writing them into the apps config.
[ { "docid": "e7bc99cccc62d90d3d0966a60e7c25a7", "score": "0.69460523", "text": "protected function initPaths(array $exclude_dirs = [])\n {\n $apps_dir = $this->core->config->get('Core', 'dir.apps');\n $apps_url = $this->core->config->get('Core', 'url.apps');\n\n // Set path property which can be used on including additional app files like settings, routes, config etc\n $dir = $this->getDir();\n\n // Get directory path of app\n $scanned_directory = array_diff(scandir($dir), array(\n '..',\n '.'\n ));\n\n $this->paths = new Paths();\n\n $dir = $this->getDir();\n\n $string = new CamelCase('');\n\n foreach ($scanned_directory as $item) {\n\n if (is_dir($dir . '/' . $item) && !in_array($item, $exclude_dirs)) {\n\n $string->setString($item);\n $key = $string->uncamelize();\n\n $this->paths->add('dir.' . $key, $dir . '/' . $item);\n $this->paths->add('url.' . $key, $apps_url . '/' . $this->name . '/' . $item);\n }\n }\n\n // Add apps base dir and url to app config\n $this->paths->add('dir.app', $dir);\n $this->paths->add('url.app', $apps_url . '/' . $this->name);\n }", "title": "" } ]
[ { "docid": "15f3b9f472ca7674ad8750f4caba4223", "score": "0.71180636", "text": "private static function setAppPath() {\n\t\tif(!empty(self::$list)) {\n\t\t\tforeach(self::$list as $key => $val) {\n\t\t\t\tself::$list[$val] = self::$appDir . $val . DS;\n\t\t\t\tunset(self::$list[$key]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "60a67fd9f61390bd0d97658b7453a47a", "score": "0.68792623", "text": "private function setupPaths()\n {\n $this->paths['env_file_path'] = dirname(dirname(__DIR__));\n $this->paths['env_file'] = $this->paths['env_file_path'] . '/.env';\n $this->paths['config_path'] = dirname(__DIR__) . '/config';\n }", "title": "" }, { "docid": "61f48bc0a24722e1ee374e3daebef95b", "score": "0.6767878", "text": "public function configurePaths()\n {\n $configurer = new Configurer($this, [\n 'models_path' => [\n 'question' => 'Where do you wish to save the models?',\n 'default' => config('starter.model.path'),\n 'config' => 'starter.model.path'\n ],\n 'controllers_path' => [\n 'question' => 'Where do you wish to save the controllers?',\n 'default' => config('starter.controller.path'),\n 'config' => 'starter.controller.path'\n ],\n 'repositories_path' => [\n 'question' => 'Where do you wish to save the repositories?',\n 'default' => config('starter.repository.path'),\n 'config' => 'starter.repository.path'\n ],\n 'transformers_path' => [\n 'question' => 'Where do you wish to save the transformers?',\n 'default' => config('starter.transformer.path'),\n 'config' => 'starter.transformer.path'\n ]\n ]);\n $configurer->run();\n $configurer->save();\n }", "title": "" }, { "docid": "c56c9c47794cb65f0c1d9f2e7192dc2e", "score": "0.6467449", "text": "public function initApps()\n {\n if (count($this->apps) > 0) {\n throw new AlreadyInitiatedException('The apps are already loaded!');\n }\n\n foreach ($this->appList as $className) {\n $instance = new $className($this);\n $this->apps->append($instance);\n }\n\n // Let the apps configure itself.\n foreach ($this->apps as $app) {\n $app->load();\n }\n\n // Let the apps register it parts.\n foreach ($this->apps as $app) {\n $app->registerRoutes(Router::getInstance());\n }\n }", "title": "" }, { "docid": "86606fe1b15dd4c9576a259024317773", "score": "0.62872", "text": "private function setConfigPath(): void\n\t{\n\n\t\t$this->scanner->print(\"\\nCONFIG DIRECTORY PARAMETERS\\n\");\n\n\t\t$configDir = $this->scanner->askForInputWithDefaultValues(\n\t\t\t\"Where to create config.jon within /App? [/Config]\",\n\t\t\t\"Config\");\n\n\t\t$this->configDirectory = $this->pathToRootDirectory .\n\t\t\t\t\t\t\t\t\"App\" . DIRECTORY_SEPARATOR .\n\t\t\t\t\t\t\t\t$configDir . DIRECTORY_SEPARATOR;\n\n\t\tFile::createDirectoryIfNotExist($this->configDirectory);\n\t\t$this->configFileName = $this->scanner->askForInputWithDefaultValues(\n\t\t\t\"How would you name your config file? [config.json]\",\n\t\t\t\"config.json\");\n\n\t}", "title": "" }, { "docid": "33d7664662edf7867c42d21e38c7ee1b", "score": "0.6276935", "text": "public function initConfig() {\r\n\t$config = array();\r\n\tinclude($this->name . '/config.php');\r\n\t\\app::$config = array_merge(\\app::$config, $config);\r\n }", "title": "" }, { "docid": "1e841d7d13435b644fdd9c1fec21c4b4", "score": "0.6276438", "text": "static function appInit()\n {\n $appRegistry = \\inc\\registry\\ApplicationRegistry::getInstance();\n\n date_default_timezone_set(\"Europe/Warsaw\");\n\n\n //check if exist local config file, if exist load settings else check if exist original config file and load settings\n if(file_exists($appRegistry->get(\"ROOT_DIR\").\"inc/config/config_local.yml\"))\n {\n require_once $appRegistry->get(\"ROOT_DIR\").\"libs/spyc-master/Spyc.php\";\n\n $config = Spyc::YAMLLoad($appRegistry->get(\"ROOT_DIR\").\"inc/config/config_local.yml\");\n }\n elseif(file_exists($appRegistry->get(\"ROOT_DIR\").\"inc/config/config.yml\"))\n {\n require_once $appRegistry->get(\"ROOT_DIR\").\"libs/spyc-master/Spyc.php\";\n\n $config = Spyc::YAMLLoad($appRegistry->get(\"ROOT_DIR\").\"inc/config/config.yml\");\n }\n\n if(isset($config) && is_array($config))\n {\n foreach($config as $key => $value)\n {\n $appRegistry->set($key, $value);\n }\n }\n }", "title": "" }, { "docid": "153a6103c5827a8dc70467d0aa486c23", "score": "0.6232811", "text": "private function setPaths()\n {\n if (!defined(\"BASE_URL\")) {\n $pathInfo = pathinfo($_SERVER['PHP_SELF']);\n $hostName = $_SERVER['HTTP_HOST'];\n $protocol = strtolower(substr($_SERVER[\"SERVER_PROTOCOL\"],0,5))=='https://'?'https://':'http://';\n define('BASE_URL', $protocol.$hostName.$pathInfo['dirname'].\"/\");\n }\n if (!defined(\"LOGIN_URL\") && defined(\"BASE_URL\")) {\n define('LOGIN_URL', BASE_URL . \"login.php\");\n }\n if (!defined(\"ADMIN_URL\") && defined(\"BASE_URL\")) {\n define('ADMIN_URL', BASE_URL . \"admin.php\");\n }\n if (!defined(\"IMAGE_PATH\")) {\n define('IMAGE_PATH', 'images/');\n }\n\n //Autoload classes with extension .php (PHP 5 >= 5.1.0, PHP 7)\n set_include_path(__DIR__ . \"/Model/\");\n spl_autoload_extensions(\".php\");\n spl_autoload_register();\n }", "title": "" }, { "docid": "d0cde8cfd39bdb9e7561ab89e7c51824", "score": "0.61834794", "text": "protected function _init() {\n /* ############## APP ############## */\n\n /* ## LANG ## */\n if ($handle = opendir(APP_RESOURCE_LANG_PATH)) {\n while (false !== ($entry = readdir($handle))) {\n if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {\n $this->_parseLang(null, str_replace('.xml', '', $entry));\n }\n }\n\n closedir($handle);\n }\n\n /* ## TEMPLATE ## */\n $this->config['template']['app'] = APP_RESOURCE_TEMPLATE_PATH;\n /* ## CSS ## */\n $this->config['css']['app'] = WEB_PATH . 'app/' . WEB_CSS_PATH;\n /* ## IMAGE ## */\n $this->config['img']['app'] = WEB_PATH . 'app/' . WEB_IMAGE_PATH;\n /* ## FILE ## */\n $this->config['file']['app'] = WEB_PATH . 'app/' . WEB_FILE_PATH;\n /* ## JS ## */\n $this->config['js']['app'] = WEB_PATH . 'app/' . WEB_JS_PATH;\n\n /* ############## SRC ############## */\n\n if ($handleSrc = opendir(SRC_PATH)) {\n while (false !== ($entrySrc = readdir($handleSrc))) {\n if (is_dir(SRC_PATH . $entrySrc) && $entrySrc != '.' && $entrySrc != '..') {\n /* ## ROUTE ## */\n $this->_parseRoute($entrySrc);\n\n /* ## LANG ## */\n if ($handle = opendir(SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_LANG_PATH)) {\n while (false !== ($entry = readdir($handle))) {\n if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {\n $lang = str_replace('.xml', '', $entry);\n $this->_parseLang($entrySrc, $lang);\n }\n }\n\n closedir($handle);\n }\n\n /* ## TEMPLATE ## */\n $this->config['template']['' . $entrySrc . ''] = SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_TEMPLATE_PATH;\n /* ## CSS ## */\n $this->config['css']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_CSS_PATH;\n /* ## IMAGE ## */\n $this->config['img']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_IMAGE_PATH;\n /* ## FILE ## */\n $this->config['file']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_FILE_PATH;\n /* ## JS ## */\n $this->config['js']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_JS_PATH;\n /* ## FIREWALL ## */\n $this->_parseFirewall($entrySrc);\n\n //copy app lang in each other module lang\n foreach ($this->config['lang'] as $key => $value) {\n if ($key != 'app') {\n foreach ($value as $key2 => $value2) {\n $this->config['lang']['' . $key . '']['' . $key2 . ''] = array_merge($this->config['lang']['app']['' . $key2 . ''], $value2);\n }\n }\n }\n\n /* ## ANNOTATIONS ## */\n $controllers = scandir(SRC_PATH . $entrySrc . '/' . SRC_CONTROLLER_PATH);\n\n foreach ($controllers as $controller) {\n if (strlen($controller) > 2) {\n $annotation = Annotation::getClass('Src\\\\' . $entrySrc . '\\\\Controller\\\\' . basename($controller, '.php'));\n $this->_parseAnnotationRoute($entrySrc, $controller, $annotation);\n $this->_parseAnnotationCron($entrySrc, $controller, $annotation);\n }\n }\n\n /* ## ENTITIES ## */\n $entities = scandir(APP_RESOURCE_ENTITY_PATH);\n\n foreach ($entities as $entity) {\n if (strlen($entity) > 2 && strstr($entity, '.')) {\n Annotation::getClass('\\\\Gcs\\\\App\\Resource\\\\Entity\\\\' . basename($entity, '.php'));\n }\n }\n }\n }\n\n closedir($handleSrc);\n }\n else {\n throw new Exception('The directory ' . SRC_PATH . 'doesn\\'t exist');\n }\n\n if ($this->config['user']['output']['cache']['config']) {\n $this->_cache->setContent($this->config);\n $this->_cache->setCache();\n }\n }", "title": "" }, { "docid": "aee7c56ee388b8c834d5191c36da7dbb", "score": "0.61542004", "text": "private function loadPath() {\n $this->_system_path = INDEX_DIRECTORY.DIRECTORY_SEPARATOR.'System'.DIRECTORY_SEPARATOR;\n $this->_application_path = INDEX_DIRECTORY.DIRECTORY_SEPARATOR.'Application'.DIRECTORY_SEPARATOR;\n $this->_configuration_path = INDEX_DIRECTORY.DIRECTORY_SEPARATOR.'configuration'.DIRECTORY_SEPARATOR;\n $this->_libraries_path = INDEX_DIRECTORY.DIRECTORY_SEPARATOR.'Libraries'.DIRECTORY_SEPARATOR;\n $this->_logs_path = INDEX_DIRECTORY.DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR;\n }", "title": "" }, { "docid": "dd88e5750653e69f6da621ad31418e37", "score": "0.61052424", "text": "public static function bindInstallPaths(array $paths)\n {\n static::$paths['path'] = realpath($paths['app']);\n\n // Each path key is prefixed with path\n // so that they have the consistent naming convention.\n foreach (Arr::arrayExcept($paths, ['app']) as $key => $value) {\n static::$paths[\"path.{$key}\"] = realpath($value);\n }\n }", "title": "" }, { "docid": "1eae6bef31d750219b71a16545e07e25", "score": "0.60991204", "text": "public function setInitialPaths() {}", "title": "" }, { "docid": "366ca55af4408541461dd9c91461f8aa", "score": "0.6097971", "text": "private function loadConfig() {\n foreach (new \\DirectoryIterator(self::APPS_CONFIG_DIR) as $fileInfo) {\n if ($fileInfo->isDot()) continue;\n if ($fileInfo->isDir()) continue;\n\t\tif (strpos($fileInfo->getPathname(), '.php') === false) {\n\t\t continue;\n\t\t}\n require $fileInfo->getPathname();\n }\n $this->config = $sysconf;\n }", "title": "" }, { "docid": "ead62d40f6a04654af0d59660b92997e", "score": "0.6029471", "text": "protected function resetPaths(): void\n {\n $this->laravel->setBasePath($this->defaultPath);\n $this->laravel->useAppPath($this->defaultPath.DIRECTORY_SEPARATOR.'app');\n }", "title": "" }, { "docid": "78ce659c80339eb294c21d4cea429a62", "score": "0.5985618", "text": "public function loadConfigs()\n {\n $this->mergeConfigFrom(__DIR__.'/config/dept-store.php', 'dept-store');\n\n // add the root disk to filesystem configuration\n app()->config['filesystems.disks.'.config('dept-store.root_disk_name')] = [\n 'driver' => 'local',\n 'root' => base_path(),\n ];\n }", "title": "" }, { "docid": "95878c50cc16a0e29c55fda03e9c28f0", "score": "0.59285975", "text": "static function init_app() {\n\t\tWpApp::load_config( static::get_default_config() );\n\n\t\t// If a theme is being used\n\t\tif ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) {\n\t\t\t$child_theme_config_file_path = get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'enpii-config.php';\n\t\t\t$main_theme_config_file_path = get_template_directory() . DIRECTORY_SEPARATOR . 'enpii-config.php';\n\n\t\t\tif ( ( $main_theme_config_file_path !== $child_theme_config_file_path ) && file_exists( $child_theme_config_file_path ) ) {\n\t\t\t\tWpApp::load_config( require( $child_theme_config_file_path ) );\n\t\t\t}\n\n\t\t\tif ( file_exists( $main_theme_config_file_path ) ) {\n\t\t\t\tWpApp::load_config( require( $main_theme_config_file_path ) );\n\t\t\t}\n\t\t}\n\t\tWpApp::initialize();\n\t}", "title": "" }, { "docid": "760d8bdad001d675d095b291a26be990", "score": "0.59140325", "text": "private function configureDirs()\n {\n // Configure dirs from environment variables and composer extra values.\n foreach ($this->resolver->names() as $name) {\n $default = $this->resolver->raw($name);\n $path = $this->options->get($name . '-dir', $default);\n if ($path !== $default) {\n $this->verbose(\"Setting <info>$name</> path to <info>$path</>.\");\n $this->resolver->define($name, $path);\n }\n }\n\n if ($this->io->confirm(\"Do you want to use Bolt's standard folder structure?\")) {\n return;\n }\n\n (new PathCustomizer($this->resolver, $this->io))->run();\n\n $this->io->writeln(\"\\n<info>Customizing!</info>\\n\");\n }", "title": "" }, { "docid": "46010ef18a38570b93ac3ee85b93cdb7", "score": "0.5901208", "text": "protected static function getConfiguredApps() {}", "title": "" }, { "docid": "20489098b0af6caa10338b7f519443d6", "score": "0.57961017", "text": "protected function bindPathsInContainer(): void\n {\n $this->instance('path', $this->path());\n $this->instance('path.base', $this->basePath());\n $this->instance('path.lang', $this->langPath());\n $this->instance('path.config', $this->configPath());\n $this->instance('path.public', $this->publicPath());\n $this->instance('path.storage', $this->storagePath());\n $this->instance('path.database', $this->databasePath());\n $this->instance('path.resources', $this->resourcePath());\n $this->instance('path.bootstrap', $this->bootstrapPath());\n }", "title": "" }, { "docid": "f0f4e9876a010cc6b20e73df6acfbe2a", "score": "0.57900685", "text": "protected function initialize()\n {\n // if basepath hasn't been set, attempt to discover it by working back up the directory structure\n if( ! $this->basepath )\n {\n $path = __DIR__;\n $last = '';\n while($path !== $last)\n {\n $last = $path;\n $path = realpath($path . '/../');\n $config = $path . '/paths.php';\n if(file_exists($config))\n {\n $this->option('basepath', $this->fix($path));\n break;\n }\n }\n\n // check if the paths configuration was found\n if( ! file_exists($this->basepath) )\n {\n throw new \\Exception('The paths configuration file `paths.php` was not found anywhere on the path \"' .__DIR__. '\" ');\n }\n\n }\n\n // test that the base path (supplied or found) exists\n if( ! file_exists($this->basepath) )\n {\n throw new \\Exception('The supplied base path \"' .$this->basepath. '\" does not exist');\n }\n }", "title": "" }, { "docid": "210e8bb7b5427a1b2b35f848210b3431", "score": "0.57803434", "text": "abstract protected function setupInstallPaths();", "title": "" }, { "docid": "6f71056d895a4600d61b953027474781", "score": "0.5766375", "text": "protected function bindPathsInContainer()\n {\n// $this->instance('path', $this->path());\n //$this->instance('path.base', $this->basePath());\n // $this->instance('path.lang', $this->langPath());\n // $this->instance('path.config', $this->configPath());\n // $this->instance('path.public', $this->publicPath());\n // $this->instance('path.storage', $this->storagePath());\n // $this->instance('path.database', $this->databasePath());\n // $this->instance('path.resources', $this->resourcePath());\n // $this->instance('path.bootstrap', $this->bootstrapPath());\n }", "title": "" }, { "docid": "b3098fec99fa5192ad3056cf14ffa1ad", "score": "0.57468677", "text": "protected function bindPathsInContainer()\n {\n $this->instance('path', $this->path());\n $this->instance('path.base', $this->basePath());\n $this->instance('path.lang', $this->langPath());\n $this->instance('path.config', $this->configPath());\n $this->instance('path.public', $this->publicPath());\n $this->instance('path.storage', $this->storagePath());\n $this->instance('path.database', $this->databasePath());\n $this->instance('path.resources', $this->resourcePath());\n $this->instance('path.bootstrap', $this->bootstrapPath());\n\n }", "title": "" }, { "docid": "e6bd0db7e5b00115de62ae8a59abaf90", "score": "0.57373357", "text": "function app_path()\n {\n return base_path() . '/app';\n }", "title": "" }, { "docid": "f62af15984724e87c175bd3931111fc3", "score": "0.57257205", "text": "public function __construct()\n {\n parent::__construct();\n $this->appPath = __DIR__;\n }", "title": "" }, { "docid": "29862c848cc29b0408c0fa94227640fe", "score": "0.5710708", "text": "public function boot()\n {\n $app = $this->app;\n\n /*\n * ----------------------------------------------------------------------------\n * Bind the IOC container to our facades\n * Completely indebted to Taylor Otwell & Laravel for this.\n * ----------------------------------------------------------------------------\n */\n Facade::setFacadeApplication($app);\n\n /**\n * ----------------------------------------------------------------------------\n * Load path detection for relative assets, URL and path to home.\n * ----------------------------------------------------------------------------.\n */\n require_once DIR_BASE_CORE . '/bootstrap/paths.php';\n\n /*\n * ----------------------------------------------------------------------------\n * Add install environment detection\n * ----------------------------------------------------------------------------\n */\n $this->initializeEnvironmentDetection($app);\n\n /*\n * ----------------------------------------------------------------------------\n * Enable Configuration\n * ----------------------------------------------------------------------------\n */\n $config = $this->initializeConfig($app);\n\n /*\n * ----------------------------------------------------------------------------\n * Set configured error reporting\n * ----------------------------------------------------------------------------\n */\n $this->setupErrorReporting($config);\n\n /*\n * ----------------------------------------------------------------------------\n * Enable Localization\n * ----------------------------------------------------------------------------\n */\n $this->initializeLocalization($app);\n\n /*\n * ----------------------------------------------------------------------------\n * Finalize paths.\n * ----------------------------------------------------------------------------\n */\n require DIR_BASE_CORE . '/bootstrap/paths_configured.php';\n\n /*\n * ----------------------------------------------------------------------------\n * Setup core classes aliases.\n * ----------------------------------------------------------------------------\n */\n $this->initializeClassAliases($config);\n\n /*\n * ----------------------------------------------------------------------------\n * Simple legacy constants like APP_CHARSET\n * ----------------------------------------------------------------------------\n */\n $this->initializeLegacyDefinitions($config, $app);\n\n /*\n * ----------------------------------------------------------------------------\n * Setup the core service groups.\n * ----------------------------------------------------------------------------\n */\n $this->initializeServiceProviders($app, $config);\n\n /*\n * ----------------------------------------------------------------------------\n * Setup file cache directories. Has to come after we define services\n * because we use the file service.\n * ----------------------------------------------------------------------------\n */\n $app->setupFilesystem();\n\n /*\n * ----------------------------------------------------------------------------\n * Registries for theme paths, assets, routes and file types.\n * ----------------------------------------------------------------------------\n */\n $this->initializeAssets($config);\n $this->initializeRoutes($config);\n $this->initializeFileTypes($config);\n\n /*\n * ----------------------------------------------------------------------------\n * Certain components subscribing to the actions of other components.\n * ----------------------------------------------------------------------------\n */\n $this->initializeEvents($app);\n\n\n // If we're not in the CLI SAPI, lets do additional booting for HTTP\n if (!$this->app->isRunThroughCommandLineInterface()) {\n return $this->bootHttpSapi($config, $app);\n }\n }", "title": "" }, { "docid": "f1c9c367358146237f4a051b9aa1d082", "score": "0.5708957", "text": "protected function Init() \n {\n // Load the APP config.php and add the defined vars\n $this->load($this->files['app']['file_path'], 'app');\n \n // Load the core.config.php and add the defined vars\n $this->load($this->files['core']['file_path'], 'core', 'config');\n \n // Load the database.config.php and add the defined vars\n $this->load($this->files['db']['file_path'], 'db', 'DB_configs');\n }", "title": "" }, { "docid": "356a1756ab64658d8e6840e7b509ea61", "score": "0.5702902", "text": "public function __construct($appPaths = null) {\n $this->registerBaseBindings ();\n\n $this->registerBaseServiceProviders ();\n\n $this->registerCoreContainerAliases ();\n\n // set base and default paths\n if (isset ( $appPaths ['base'] )) {\n $this->setBasePath ( $appPaths ['base'] );\n }\n\n // overwrite path if set by developer in appPaths\n if (isset ( $appPaths ['config'] )) {\n $this->useConfigPath ( $appPaths ['config'] );\n }\n\n if (isset ( $appPaths ['database'] )) {\n $this->useDatabasePath ( $appPaths ['database'] );\n }\n\n if (isset ( $appPaths ['lang'] )) {\n $this->useLangPath ( $appPaths ['lang'] );\n }\n\n if (isset ( $appPaths ['public'] )) {\n $this->usePublicPath ( $appPaths ['public'] );\n }\n\n if (isset ( $appPaths ['storage'] )) {\n $this->useStoragePath ( $appPaths ['storage'] );\n }\n }", "title": "" }, { "docid": "93fff5b6f5efe39db2b1a8c36c5d34b5", "score": "0.5689162", "text": "public function configPaths()\n {\n return [\n 'docks.' . self::class => dirname(__DIR__, 3) . '/config/docks/landing.php',\n 'abilities' => dirname(__DIR__, 3) . '/config/abilities.php',\n ];\n }", "title": "" }, { "docid": "369ea3539c06e26b656c14ad105e4aa3", "score": "0.56842077", "text": "protected function setInitialRootPath() {}", "title": "" }, { "docid": "da4f231bf71a006f79b1e4470b55a17b", "score": "0.5674571", "text": "public function initialAppPath($appPath) {\n App::uses('Folder', 'Utility');\n $fh = new Folder();\n if (file_exists($appPath)) {\n if (false === $fh->delete($appPath)) {\n $this->errorMessage = __('Target path exists. But the program could not delete the folder automatically');\n\n return false;\n } else {\n $this->tasks[] = array(\n 'title' => __('Target path exists. Delete the old folders.'),\n 'operactions' => $fh->messages(),\n );\n }\n }\n\n /*\n * Copy the skelecton of the application\n */\n $fh->copy(array(\n 'to' => $appPath,\n 'from' => VENDORS . 'olc_baker' . DS . 'skels' . DS . 'default',\n 'mode' => 0777,\n ));\n $errors1 = $fh->errors();\n $fh->copy(array(\n 'to' => $appPath . DS . 'cake2' . DS . 'lib',\n 'from' => CAKE_CORE_INCLUDE_PATH,\n 'mode' => 0777,\n ));\n $errors2 = $fh->errors();\n if (!empty($errors1) || !empty($errors2)) {\n $this->errorMessage = __('The program could not copy files to the folder automatically');\n\n return false;\n } else {\n $this->tasks[] = array(\n 'title' => __('Copy the skelecton of application to the target path'),\n 'operactions' => $fh->messages(),\n );\n }\n\n return true;\n }", "title": "" }, { "docid": "f1bc3ace5615c799bdd396f824f6cb9a", "score": "0.5666657", "text": "protected function createDirectories()\n {\n if (! is_dir(app_path('Handlers'))) {\n mkdir(app_path('Handlers'), 0755, true);\n }\n\n if (! is_dir(app_path('Handlers/EventHandlers'))) {\n mkdir(app_path('Handlers/EventHandlers'), 0755, true);\n }\n\n if (! is_dir(app_path('Http/Controllers/Wechat'))) {\n mkdir(app_path('Http/Controllers/Wechat'), 0755, true);\n }\n }", "title": "" }, { "docid": "a6fbbd738689f499832ea9c971ebf680", "score": "0.5661757", "text": "protected function bindPathsInContainer()\n {\n $this->instance('path', $this->path());\n $this->instance('path.base', $this->basePath());\n $this->instance('path.config', $this->configPath());\n $this->instance('path.public', $this->publicPath());\n $this->instance('path.storage', $this->storagePath());\n $this->instance('path.database', $this->databasePath());\n $this->instance('path.resources', $this->resourcePath());\n }", "title": "" }, { "docid": "886a10df70d1f0808a490ab4ac26c04f", "score": "0.56373584", "text": "public function loadConfig()\n {\n include($this->getLibBasePath() . '/config/application.php');\n include($this->getLibUniPath() . '/config/application.php');\n $this->loadAppConfig();\n }", "title": "" }, { "docid": "1640a2f39c35570267122b54fe86ec30", "score": "0.5634781", "text": "public static function create() {\n self::$appLoader = new AppLoader(self::DEFAULT_FOLDER);\n self::$appLoader->loadApps();\n }", "title": "" }, { "docid": "f168e390492c88309f36d40f403ff886", "score": "0.5625546", "text": "protected function resolveApplicationConfiguration($app)\n {\n parent::resolveApplicationConfiguration($app);\n\n $configs = [\n 'assets', 'cp', 'forms', 'routes', 'static_caching',\n 'sites', 'stache', 'system', 'users',\n ];\n\n foreach ($configs as $config) {\n $app['config']->set(\"statamic.$config\", require(__DIR__ . \"/../vendor/statamic/cms/config/{$config}.php\"));\n }\n\n // Setting the user repository to the default flat file system\n $app['config']->set('statamic.users.repository', 'file');\n\n // Assume the pro edition within tests\n $app['config']->set('statamic.editions.pro', true);\n\n Statamic::pushCpRoutes(function () {\n return require_once realpath(__DIR__ . '/../routes/cp.php');\n });\n\n Statamic::pushWebRoutes(function () {\n return require_once realpath(__DIR__ . '/../routes/web.php');\n });\n\n // Define butik config settings for all of our tests\n $app['config']->set(\"butik\", require(__DIR__ . \"/../config/config.php\"));\n\n // Set all layouts to null to prevent an error thrown from a layout which could not be found.\n $layouts = [\n 'layout_product-index',\n 'layout_product-category',\n 'layout_product-show',\n 'layout_cart',\n 'layout_checkout-delivery',\n 'layout_checkout-payment',\n 'layout_checkout-receipt',\n 'layout_checkout-receipt-invalid',\n ];\n\n foreach($layouts as $layout) {\n $app['config']->set('butik.' . $layout, null);\n }\n }", "title": "" }, { "docid": "21ccd30e59287096efd27aac65dd5275", "score": "0.56136227", "text": "protected function initRoutes()\n {\n if (isset($this->settings) && $this->settings->exists('routes') || !self::$init_stages[$this->name]['routes']) {\n\n $routes = $this->settings->get('routes');\n\n // Get uncamelized app name\n $string = new CamelCase($this->name);\n $app = $string->uncamelize();\n\n // Add always a missing index route!\n if (!array_key_exists('index', $routes)) {\n $routes['index'] = [];\n }\n\n foreach ($routes as $name => $definition) {\n\n if (is_numeric($name)) {\n Throw new AppException(sprintf('AbstractApp \"%s\" sent a nameless route to be mapped.', $this->name));\n }\n\n $definition = $this->parseRouteDefintion($name, $definition);\n\n $this->core->router->map($definition['method'], $definition['route'], $definition['target'], $definition['name']);\n }\n\n self::$init_stages[$this->name]['routes'] = true;\n }\n }", "title": "" }, { "docid": "45dc8ec49767669a316ba01daa6915ca", "score": "0.5612128", "text": "protected function defineConfig()\n {\n // Get config paths\n $configs = $this->config->getDirectly(__DIR__ . '/../Config/path.php')['default_config'] ?? [];\n\n // Add all of them to config collector if $configs is an array\n if (is_array($configs)) {\n foreach ($configs as $alias => $path) {\n $this->config->set($alias, $path);\n }\n }\n }", "title": "" }, { "docid": "f413de0aa4fb573c0b15aebb3a2785b7", "score": "0.560211", "text": "private function setConfigurations(): void\n {\n if (file_exists($this->projectRootPath->getPath() . '/composer.json')) {\n $content = file_get_contents($this->projectRootPath->getPath() . '/composer.json');\n $content = json_decode($content, true);\n if (!empty($content[\"autoload\"][\"psr-4\"])) {\n foreach ($content[\"autoload\"][\"psr-4\"] as $namespace => $src) {\n $this->nameSpacesBase[] = $namespace . \"\\\\\";\n }\n }\n }\n }", "title": "" }, { "docid": "112f9119ef1fb2956b2b548b86d1a2a3", "score": "0.5578396", "text": "protected function createDirectories()\n {\n if (! is_dir(app_path('Http/Controllers/Teamwork'))) {\n mkdir(app_path('Http/Controllers/Teamwork'), 0755, true);\n }\n if (! is_dir(app_path('Listeners/Teamwork'))) {\n mkdir(app_path('Listeners/Teamwork'), 0755, true);\n }\n if (! is_dir(base_path('resources/views/teamwork'))) {\n mkdir(base_path('resources/views/teamwork'), 0755, true);\n }\n if (! is_dir(base_path('resources/views/teamwork/emails'))) {\n mkdir(base_path('resources/views/teamwork/emails'), 0755, true);\n }\n if (! is_dir(base_path('resources/views/teamwork/members'))) {\n mkdir(base_path('resources/views/teamwork/members'), 0755, true);\n }\n }", "title": "" }, { "docid": "449d4da6b5c3bd9f0cde9a077a7d04e4", "score": "0.5571722", "text": "protected function setUpInstancePath() {\n\t\t$this->instancePath = BEHAT_ROOT;\n\t}", "title": "" }, { "docid": "65b3399a35c3d7bc9dfce804809a5d53", "score": "0.55707514", "text": "private function loadConfig()\n {\n // note that we cannot PATH_APPLICATION here as this constant is not know yet (is defined in config) :)\n require('../application/config/config.' . $this->environment_name . '.php');\n }", "title": "" }, { "docid": "cbf9092956daa24abeba8ec17cb3c222", "score": "0.5563955", "text": "protected function getAppPath()\n {\n return __DIR__. '/../../../../app/';\n }", "title": "" }, { "docid": "0898c7bafaf043709ddc8b1fa6ebcdf5", "score": "0.55587673", "text": "private static function loadAppConfig() {\n\t\t\t$appConfJson = file_get_contents(JIAOYU_PROJECT_HOME.\"/app/conf/config.json\");\n\t\t\ttry {\n\t\t\t\t$appConf = JsonUtils::decode($appConfJson);\n\t\t\t} catch (JsonException $e) {\n\t\t\t\tthrow new ConfigurationException(\"Error initializing app config: \".$e->getMessage());\n\t\t\t}\n\n\t\t\t// OK - now we can load up the config array from the file\n\t\t\tforeach ($appConf as $configKey => $configValue) {\n\t\t\t\tself::$config[$configKey] = $configValue;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a4591e0854eb2d00b5c15304bdc8eef4", "score": "0.55577", "text": "public final function prep(){\n\n //disable apache from append session ids to requests\n ini_set('session.use_trans_sid',0);\n //only allow sessions to be used with cookies\n ini_set('session.use_only_cookies',1);\n\n //base directory of application\n //$this->path = dirname($_SERVER['DOCUMENT_ROOT']);\n $this->path = dirname(dirname(dirname(dirname(dirname(__DIR__)))));\n \n //load the appropriate application production configuration \n //and override with any dev config.\n if(is_file($this->path.'/.config.php')){\n $this->config = require($this->path.'/.config.php');\n if($this->config['APP_MODE']!='PROD' && is_file($this->path.'/.dev.config.php')){\n $this->config = array_merge($this->config,require($this->path.'/.dev.config.php'));\n }//if\n }//if\n \n //if the COMPOSER PATH isn't set then resort to the default installer path \"vendor/\"\n if(!isset($this->config['COMPOSER_PATH'])){\n $this->config['COMPOSER_PATH'] = 'vendor';\n }//if\n\n }", "title": "" }, { "docid": "040585c91f4d16e7398c73cd5bf567de", "score": "0.55541843", "text": "public function serversInit()\n\t{\n\t\t$api_root=$this->getPath();\n\t\t$p=opendir($api_root);\n\t\twhile(false!==($d=readdir($p)))\n\t\t{\n\t\t\tif($d!='.' && $d!='..' && is_dir($api_root.'/'.$d))\n\t\t\t{\n\t\t\t\tif(file_exists($api_root.'/'.$d.'/init.php') && file_exists($api_root.'/'.$d.'/config.xml'))\n\t\t\t\t{\n\t\t\t\t\t$settings=@simplexml_load_file($api_root.'/'.$d.'/config.xml');\n\t\t\t\t\tif(!$settings){\n\t\t\t\t\t\t$this->setError('Not inited: '.$d.'; wrong config file.');\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t#die_r($settings->api->name);\n\t\t\t\t\t\t$this->registerEngine((String)$settings->api->name,$settings->api->protocols);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d74502f1f7fbc637b54027fd12dc7f99", "score": "0.5520003", "text": "public static function paths() {\n\t\tif (is_null(static::$paths)) {\n\t\t\tstatic::$paths = new ApplicationPathProvider();\n\t\t}\n\n\t\treturn static::$paths;\n\t}", "title": "" }, { "docid": "ef14981e6c630d72bc3d21b80289c2f6", "score": "0.5508908", "text": "public static function initApp()\n\t\t{\n\t\t\tif (!file_exists( HTMLiar_Write_Folder ))\n\t\t\t{\n\t\t\t\tif (!mkdir( HTMLiar_Write_Folder , '0777'))\n\t\t\t\t{\n\t\t\t\t\tdie(\"Can't create folder for job. You can create folder at '\".HTMLiar_Write_Folder.\"'. \");\n\t\t\t\t}\n\t\t\t\t@chmod(HTMLiar_Write_Folder , '0777'); //just for easyness\n\t\t\t}\n\t\t\t\n\t\t\t// Parse HTML Files Build Map of css classes and #ids\n\t\t\tforeach(self::$config['html']['html'] as $htmlFile)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tHTMLie_HTML::Map($htmlFile);\n\t\t\t\t}\n\t\t\t\tcatch (Exception $e)\n\t\t\t\t{\n\t\t\t\t\techo $e->getMessage();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Now parse CSS and replace css and id with new Classes and Id's\n\t\t\tforeach(self::$config['css']['css'] as $cssFile)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tHTMLie_CSS::Map($cssFile);\n\t\t\t\t}\n\t\t\t\tcatch (Exception $e)\n\t\t\t\t{\n\t\t\t\t\techo $e->getMessage();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}", "title": "" }, { "docid": "3574e9bed029f6bfd15780aeccefd26d", "score": "0.55002725", "text": "public function setupDev()\n {\n Config::load('direct','app','dev');\n }", "title": "" }, { "docid": "d7024ae1b2bb6b345d20a3d87a44ec94", "score": "0.5497792", "text": "protected function createNecessaryDirectoriesInDocumentRoot() {}", "title": "" }, { "docid": "d7024ae1b2bb6b345d20a3d87a44ec94", "score": "0.5497792", "text": "protected function createNecessaryDirectoriesInDocumentRoot() {}", "title": "" }, { "docid": "306a007d869b62c03541653536936fae", "score": "0.5497402", "text": "protected function setupInstallPaths()\n\t{\n\t\t// Get the target application\n\t\t$cname = (string) $this->getManifest()->attributes()->client;\n\n\t\tif ($cname)\n\t\t{\n\t\t\t// Attempt to map the client to a base path\n\t\t\t$client = ApplicationHelper::getClientInfo($cname, true);\n\n\t\t\tif ($client === false)\n\t\t\t{\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_MOD_UNKNOWN_CLIENT',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$client->name\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$basePath = $client->path;\n\t\t\t$this->clientId = $client->id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No client attribute was found so we assume the site as the client\n\t\t\t$basePath = JPATH_SITE;\n\t\t\t$this->clientId = 0;\n\t\t}\n\n\t\t// Set the installation path\n\t\tif (empty($this->element))\n\t\t{\n\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t'JLIB_INSTALLER_ABORT_MOD_INSTALL_NOFILE',\n\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t$this->parent->setPath('extension_root', $basePath . '/modules/' . $this->element);\n\t}", "title": "" }, { "docid": "aafe13a5fe0a73da295a4274640d5306", "score": "0.5490848", "text": "public function createAppDirectory() {\n $dir = app_path() . '/EasyApi';\n if (!file_exists($dir)) {\n mkdir($dir);\n }\n }", "title": "" }, { "docid": "6dd0188fcea2ac51a60083da3dbe064d", "score": "0.54854995", "text": "private function addAppRoutingConfig($app, $baseApp = false) {\n\t\t$appReflection = new \\ReflectionClass($app);\n\n\t\t$fileInfo = array();\n\t\t$includedFiles = get_included_files();\n\n\t\tforeach($includedFiles AS $filePath) {\n\t\t\tif ( strpos(str_replace('/', '\\\\',strtoupper($filePath)), strtoupper($appReflection->getName())) !== false && file_exists($filePath) ) {\n\t\t\t\t$fileInfo = pathinfo($filePath);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ( !isset($fileInfo['dirname']) ) {\n\n\t\t\tthrow new RegisterAppException('Missing Application pathInfo');\n\t\t}\n\n\t\t//add rooting Actions.ini config path\n\t\tRouting::instance()->setPath($fileInfo['dirname'].'/Config/');\n\n\t\tif ( !$baseApp ) {\n\t\t\tHTML::instance()->addChildApp($appReflection->getNamespaceName());\n\t\t}\n\n\t\t$parentAppClassName = $appReflection->getParentClass()->name;\n\t\t$appReflection = new \\ReflectionClass($parentAppClassName);\n\n\t\tif ( !$appReflection->isAbstract() ) {\n\t\t\t$this->addAppRoutingConfig($parentAppClassName, $baseApp);\n\t\t}\n\t}", "title": "" }, { "docid": "faaf197a6acba6afde6840169bdde53a", "score": "0.5477795", "text": "protected function exportApps()\n {\n foreach ($this->apps as $key => $value) {\n\n $stubApp = $this->compileStub($key);\n\n if (file_exists($app = $this->getAppNamespace().$value) || $this->option('force')) {\n $this->files->put($app, $stubApp);\n }\n }\n }", "title": "" }, { "docid": "33d18d440df68785612a8b2b8520367d", "score": "0.5464206", "text": "protected function getAppConfigDir()\n {\n return $this->rootDir . 'src/' . $this->appName . '/conf/';\n }", "title": "" }, { "docid": "c82c151aafa7464445fe74b0a19811a0", "score": "0.54622257", "text": "public function configPaths()\n {\n return [\n 'docks.' . self::class => dirname(__DIR__, 3) . '/config/docks/ethnicities.php',\n 'abilities' => dirname(__DIR__, 3) . '/config/abilities.php',\n ];\n }", "title": "" }, { "docid": "fd8056b6fa6cf0b64dc8a4427b13bdd7", "score": "0.5459922", "text": "function load_app()\n{\n global $routes, $_config;\n\n // Load all application components\n foreach (glob(__DIR__ . '/core/*.php') as $component)\n require_once $component;\n\n $_config = parse_ini_file(__DIR__ . '/config.ini');\n $routes = new Core\\RoutesManager;\n\n // Load all application routes\n require_once __DIR__ . '/routes.php';\n\n // Load all application models and controllers\n foreach (glob(__DIR__ . '/{models,controllers}/*.php', GLOB_BRACE) as $component)\n require_once $component;\n}", "title": "" }, { "docid": "8b5741a61d737f241e184d95a79ec999", "score": "0.54382503", "text": "public function __construct() \n {\n // Set default files\n $this->files['app']['file_path'] = APP_PATH . DS . 'config' . DS . 'config.php';\n $this->files['core']['file_path'] = APP_PATH . DS . 'config' . DS . 'core.config.php';\n $this->files['db']['file_path'] = APP_PATH . DS . 'config' . DS . 'database.config.php';\n \n // Lets roll!\n $this->Init();\n }", "title": "" }, { "docid": "97571ee5a1514f0606f1292b1ef9059a", "score": "0.54304373", "text": "public static function load() {\r\n\t\t\tself::$_path['app'] = PUBLIC_DIRECTORY . SEPARATOR . '..' . SEPARATOR;\r\n\r\n\t\t\tself::$_path['conf'] = self::$_path['app'] . 'conf' . SEPARATOR;\r\n\t\t\tself::$_path['mvc'] = self::$_path['app'] . 'mvc' . SEPARATOR;\r\n\t\t\tself::$_path['plugin'] = self::$_path['app'] . 'plugin' . SEPARATOR;\r\n\t\t\tself::$_path['translation'] = self::$_path['app'] . 'translation' . SEPARATOR;\r\n\t\t\tself::$_path['public'] = PUBLIC_DIRECTORY . SEPARATOR;\r\n\r\n\t\t\tforeach (Conf::$_conf['public_path'] as $key => $value) {\r\n\t\t\t\t$value = str_replace(SEPARATOR, ' ', $value);\r\n\t\t\t\t$value = trim($value);\r\n\t\t\t\t$value = str_replace(' ', SEPARATOR, $value);\r\n\t\t\t\t\r\n\t\t\t\tself::$_path[$key] = self::$_path['public'] . $value . SEPARATOR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tself::$_path['model'] = self::$_path['mvc'] . 'model' . SEPARATOR;\r\n\r\n\t\t\tself::$_path['view'] = self::$_path['mvc'] . 'view' . SEPARATOR;\r\n\t\t\tself::$_path['layout'] = self::$_path['view'] . 'layout' . SEPARATOR;\r\n\t\t\tself::$_path['content'] = self::$_path['view'] . 'content' . SEPARATOR;\r\n\t\t\tself::$_path['segment'] = self::$_path['view'] . 'segment' . SEPARATOR;\r\n\t\t\t\r\n\t\t\tself::$_path['controller'] = self::$_path['mvc'] . 'controller' . SEPARATOR;\r\n\t\t\tself::$_path['ajax'] = self::$_path['controller'] . 'ajax' . SEPARATOR;\r\n\t\t\tself::$_path['web'] = self::$_path['controller'] . 'web' . SEPARATOR;\t\r\n\t\t}", "title": "" }, { "docid": "9de06c4690ec8893d033baaf5366a781", "score": "0.5427258", "text": "protected function _initSetupDirectory()\n {\n if(!is_dir(ROOT_PATH . '/logs')) {\n mkdir(ROOT_PATH . '/logs', '0755');\n } \n \n //Create Cache directory if not exists\n if(!is_dir(ROOT_PATH . '/logs/api')) {\n mkdir(ROOT_PATH . '/logs/api', '0755');\n } \n }", "title": "" }, { "docid": "284b7ae8481646d027469e995b838ba6", "score": "0.5421721", "text": "private static function setupBaseConfiguration() {\n\n\t\t// server data\n\t\tself::set('host', $_SERVER['SERVER_NAME']);\n\t\tself::set('domain', 'http://' . $_SERVER['SERVER_NAME']);\n\t\tself::set('current_file', basename($_SERVER['PHP_SELF']));\n\t\tself::set('webroot', '/');\n\t\tself::set('web_address', self::get('domain') . self::get('webroot'));\n\t\tself::set('web_address_no_slash', substr(self::get('domain') . self::get('webroot'), 0, -1));\n\t\tself::set('root', $_SERVER['DOCUMENT_ROOT'] . self::get('webroot'));\n\t\t\n\t\t// folder locations\n\t\tself::set('modules', self::get('root') . 'modules/');\n\t\tself::set('config', self::get('root') . 'app/config/');\n self::set('temp', self::get('root') . 'runtime/');\n self::set('app', self::get('root') . 'app/');\n\t\t\n\t\t// errors\n\t\tself::set('error_log', self::get('temp') . 'errors/php.txt');\n\n\t\tself::parseIniConfig('system');\n self::parseIniConfig('source');\n self::parseIniConfig('custom');\n \n }", "title": "" }, { "docid": "bf2ad2d54ff97a2c44268fc50eceaf23", "score": "0.54164845", "text": "public function __initPath()\n\t{\n\t\tdefine('IMG_PATH', STATIC_PATH . '/img');\n define('UPLOAD_PATH', STATIC_PATH . '/upload');\n define('CSS_PATH', STATIC_PATH . '/css');\n define('JS_PATH', STATIC_PATH . '/js');\n define('UPLOAD_THUMBAIL_PATH', UPLOAD_PATH . '/thumbnails');\n // Define url to image directory\n define('IMG_URL', STATIC_URL . '/img');\n define('UPLOAD_URL', STATIC_URL . '/upload');\n define('CSS_URL', STATIC_URL . '/css');\n define('JS_URL', STATIC_URL . '/js');\n define('UPLOAD_THUMBAIL_URL', UPLOAD_URL . '/thumbnails');\n\t}", "title": "" }, { "docid": "cc8976cb8d29b7c9252401f0c3627916", "score": "0.5410787", "text": "private function setupPHPConfigFiles()\n {\n foreach( glob('app/etc/*.php') as $file )\n {\n $key = str_replace('.php', null, basename($file));\n $data = include $file;\n \n $this->config->add($key, $data);\n }\n }", "title": "" }, { "docid": "4b102dfae81aba4d99bcb86275780700", "score": "0.5396764", "text": "private function checkConfigurations(array $paths)\n {\n // Set default environment for development\n $envDir = '/dev';\n\n // Check if environment is production\n if (isset($_ENV['ExampleProduction'])) {\n $envDir = '/prod';\n }\n\n // Concatenate full path location\n $confDir = $this->configurations['paths']['absolute'] . $paths['confPath'] . $envDir;\n\n // Make sure provided string is a directory\n if (!is_dir($confDir)) {\n throw new \\Exception('Configurations directory not found: ' . $confDir);\n }\n\n // Concatenate full path location\n $confFile = $confDir . '/config.json';\n\n // Make sure configuration file exists\n if (!file_exists($confFile)) {\n throw new \\Exception('Configurations file not found: ' . $confFile);\n }\n\n $this->confFile = $confFile;\n }", "title": "" }, { "docid": "a189fcbcb47aa38086cc1c1d65978fef", "score": "0.5395431", "text": "public function bootstrap()\n {\n foreach ($this->bootstrappers as $bootstrapper) {\n $this->app->make($bootstrapper)->bootstrap($this->app);\n }\n }", "title": "" }, { "docid": "e222903fe971ae5692af53ca96516d8c", "score": "0.53914225", "text": "function app_path($path = '')\n{\n return __DIR__ . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n}", "title": "" }, { "docid": "eaeec4782b457694409874c552f1fa7c", "score": "0.5391142", "text": "private function configure(): void\n {\n if (!$this->app->configurationIsCached()) {\n $this->mergeConfigFrom(__DIR__ . '/../config/paket.php', 'paket');\n }\n }", "title": "" }, { "docid": "f8e654f9bbae2b7a57185ec8fd069064", "score": "0.53625786", "text": "private static function loadRoutes() {\n\t\t\t$appRoutesJson = file_get_contents(JIAOYU_PROJECT_HOME.\"/app/conf/routes.json\");\n\t\t\ttry {\n\t\t\t\t$appRoutes = JsonUtils::decode($appRoutesJson);\n\t\t\t} catch (JsonException $e) {\n\t\t\t\tthrow new ConfigurationException(\"Error initializing app routes: \".$e->getMessage());\n\t\t\t}\n\n\t\t\t// Each json object in the array represents a route, so we should build them up\n\t\t\t// from the data.\n\t\t\tforeach ($appRoutes as $rawRoute) {\n\t\t\t\tself::$routes[] = Route::buildFromJson($rawRoute);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f97090c8e49842e285ddec2401a1db72", "score": "0.5357284", "text": "public static function init(): void\n {\n $dotenvDest = ROOT_DIRECTORY . self::DEST_APP_ETC_DOTENV_FILE;\n if (is_file($dotenvDest)) {\n require_once $dotenvDest;\n return;\n } else {\n $dotenvSrc = ROOT_DIRECTORY . self::SRC_APP_ETC_DOTENV_FILE;\n copy($dotenvSrc, $dotenvDest);\n }\n\n $magentoBootstrapFile = ROOT_DIRECTORY . self::MAGENTO_BOOTSTRAP_FILE;\n if (!is_file($magentoBootstrapFile)) {\n return;\n }\n\n require_once $dotenvDest;\n }", "title": "" }, { "docid": "d90a9d394ac0c9efe576358b2339d58c", "score": "0.5348772", "text": "public function addDefaultLocations()\n {\n // app->addAllLocations - will override creation of all locations\n // app->addDefaultLocations - will let you add high-priority locations\n // app->addSharedLocations - will let you add low-priority locations\n if ($this->app->hasMethod('addAllLocations')) {\n return $this->app->addAllLocations();\n }\n\n $base_directory = getcwd();\n\n /// Add base location - where our private files are\n if ($this->app->hasMethod('addDefaultLocations')) {\n $this->app->addDefaultLocations($this, $base_directory);\n }\n\n $templates_folder = array('template', 'templates');\n\n if ($this->app->compat_42 && is_dir($base_directory.'/templates/default')) {\n $templates_folder = 'templates/default';\n }\n\n $this->base_location = $this->addLocation(array(\n 'php' => 'lib',\n 'page' => 'page',\n 'tests' => 'tests',\n 'template' => $templates_folder,\n 'mail' => 'mail',\n 'logs' => 'logs',\n 'dbupdates' => 'doc/dbupdates',\n ))->setBasePath($base_directory);\n\n if (@$this->app->pm) {\n // Add public location - assets, but only if\n // we hav PageManager to identify it's location\n if (is_dir($base_directory.'/public')) {\n $this->public_location = $this->addLocation(array(\n 'public' => '.',\n 'js' => 'js',\n 'css' => 'css',\n ))\n ->setBasePath($base_directory.'/public')\n ->setBaseURL($this->app->pm->base_path);\n } else {\n $this->base_location\n ->setBaseURL($this->app->pm->base_path);\n $this->public_location = $this->base_location;\n $this->public_location->defineContents(array('js' => 'templates/js', 'css' => 'templates/css'));\n }\n\n if (basename($this->app->pm->base_path) == 'public') {\n $this->base_location\n ->setBaseURL(dirname($this->app->pm->base_path));\n }\n }\n\n if ($this->app->hasMethod('addSharedLocations')) {\n $this->app->addSharedLocations($this, $base_directory);\n }\n\n // Add shared locations\n if (is_dir(dirname($base_directory).'/shared')) {\n $this->shared_location = $this->addLocation(array(\n 'php' => 'lib',\n 'addons' => 'addons',\n 'template' => $templates_folder,\n ))->setBasePath(dirname($base_directory).'/shared');\n }\n\n $atk_base_path = dirname(dirname(__FILE__));\n\n $this->atk_location = $this->addLocation(array(\n 'php' => 'lib',\n 'template' => $templates_folder,\n 'tests' => 'tests',\n 'mail' => 'mail',\n ))\n ->setBasePath($atk_base_path)\n ;\n\n if (@$this->app->pm) {\n if ($this->app->compat_42 && is_dir($this->public_location->base_path.'/atk4/public/atk4')) {\n $this->atk_public = $this->public_location->addRelativeLocation('atk4/public/atk4');\n } elseif (is_dir($this->public_location->base_path.'/atk4')) {\n $this->atk_public = $this->public_location->addRelativeLocation('atk4');\n } elseif (is_dir($base_directory.'/vendor/atk4/atk4/public/atk4')) {\n $this->atk_public = $this->base_location->addRelativeLocation('vendor/atk4/atk4/public/atk4');\n } elseif (is_dir($base_directory.'/../vendor/atk4/atk4/public/atk4')) {\n $this->atk_public = $this->base_location->addRelativeLocation('../vendor/atk4/atk4/public/atk4');\n } else {\n echo $this->public_location;\n throw $this->exception('Unable to locate public/atk4 folder', 'Migration');\n }\n\n $this->atk_public->defineContents(array(\n 'public' => '.',\n 'js' => 'js',\n 'css' => 'css',\n ));\n }\n\n // Add sandbox if it is found\n $this->addSandbox();\n }", "title": "" }, { "docid": "52ca28f4f289c502fd7d2bc5710b161d", "score": "0.5348448", "text": "public function initTempPaths()\n {\n if (empty($this->tempPath)) {\n $this->tempPath = Yii::getAlias('@runtime/mpdf');\n }\n if (!file_exists($this->tempPath)) {\n mkdir($this->tempPath);\n }\n }", "title": "" }, { "docid": "91fe32991bc1123c301b5e3ced097d70", "score": "0.53274244", "text": "public function initApplications()\n\t{\n\t\t$this->collApplications = array();\n\t}", "title": "" }, { "docid": "7b90b917ef93758b9e47d1719384dc8b", "score": "0.53253466", "text": "public function setUp()\n\t{\n\t\tURL::$base = null;\n\t\tRouter::$routes = array();\n\t\tRouter::$names = array();\n\t\tRouter::$uses = array();\n\t\tRouter::$fallback = array();\n\t\tConfig::set('application.url', 'http://localhost');\n\t\tConfig::set('application.index', 'index.php');\n\t}", "title": "" }, { "docid": "8d3cdd32917779028091cd4e0c964d35", "score": "0.5323056", "text": "public function getApplist()\n {\n $applist = $this->app->core->apps->getLoadedApps(true);\n\n // Sort he list alphabetically\n sort($applist);\n\n $out = [];\n\n // Walk through apps list and create app entry\n foreach ($applist as $app_name) {\n\n // Check app for existing config\n $app = $this->app->core->apps->getAppInstance($app_name);\n\n if (empty($app->config)) {\n continue;\n }\n\n $string = new CamelCase($app_name);\n\n // Link only when config for app exists\n $out[$app_name] = $this->app->url('core.config', [\n 'app_name' => $string->uncamelize()\n ]);\n }\n\n return $out;\n }", "title": "" }, { "docid": "3f06f26306ac1cebcf1bbea431e69069", "score": "0.5318507", "text": "public static function create()\n {\n $path = self::PATH;\n\n $directories = [\n $path.'/app',\n $path.'/bootstrap/cache',\n $path.'/framework/cache',\n $path.'/framework/views',\n ];\n\n foreach ($directories as $directory) {\n if (!is_dir($directory)) {\n mkdir($directory, 0755, true);\n }\n }\n }", "title": "" }, { "docid": "93e8e6c2558cf3e4656504fbe454cb6c", "score": "0.53157866", "text": "public function setUp()\n {\n if ( ! $this->app)\n {\n $this->refreshApplication();\n }\n }", "title": "" }, { "docid": "7ddc40c616aee9449e8b9dff60baf3cc", "score": "0.5309924", "text": "public static function init() {\n $config = [];\n $config_file = self::_joinpath('config.php');\n if (!file_exists($config_file)) die(\"$config_file file not found\");\n require_once($config_file);\n \n self::$config = $config; \n self::$sitePrefix = self::$config['site_prefix'];\n }", "title": "" }, { "docid": "c05b8a2ce49e826c7078c6b24e616439", "score": "0.53076977", "text": "public static function setupDefaultAutoloadPaths()\n {\n if( count(self::$DispatcherPath) ) return false;\n $D = dirname(__FILE__);\n $rd = $D.'/response';\n foreach( array(\n $rd,\n $rd.'/local',\n ) as $d )\n {\n if( @is_dir( $d ) )\n {\n JSONMessageDispatcher::addAutoloadDir( $d );\n }\n }\n return true;\n }", "title": "" }, { "docid": "0705702e9bd755a0ee8a0209c72d3df4", "score": "0.5307365", "text": "protected function setUp()\n {\n $this->setUpTemporaryDirectory();\n\n if (!defined('WORKING_DIRECTORY')) {\n define('WORKING_DIRECTORY', $this->temporaryDirectory);\n }\n\n if (!defined('HOME_DIRECTORY')) {\n define('HOME_DIRECTORY', $this->temporaryDirectory);\n }\n\n if (!defined('STORAGE_FILE')) {\n define(\n 'STORAGE_FILE',\n HOME_DIRECTORY . DIRECTORY_SEPARATOR . Storage::FILE_NAME\n );\n }\n\n $this->application = $this->getApplication();\n }", "title": "" }, { "docid": "4487cc08ca265475a78ed80c442d942f", "score": "0.5304025", "text": "public function config()\n {\n $this->app();\n $this->cms();\n $this->theme();\n $this->mail();\n }", "title": "" }, { "docid": "e2f2a1a739a94ecafc7e6515a43790d4", "score": "0.5303384", "text": "private function init() {\n\t\tif (!file_exists(__LOGS__)) {\n\t\t\tif (!mkdir(__LOGS__, 0755, true)) {\n\t\t\t\t$this->respond(false, \"Failed to create logs directory at \" . __LOGS__);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (!file_exists(__KEYDIR__)) {\n\t\t\tif (!mkdir(__KEYDIR__, 0755, true)) {\n\t\t\t\t$this->logError(\"Failed init\", \"Failed to initialize because the keys directory at '\" . __KEYDIR__ . \"' could not be created.\");\n\t\t\t\t$this->respond(false);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3344b5adf070d62fd4323f073db83ee7", "score": "0.52936006", "text": "function app_path($path = '')\n {\n\n return app()->basePath() . '/app' . ($path ? '/' . $path : $path);\n }", "title": "" }, { "docid": "56426928bae4a2ea0972631a144a3332", "score": "0.5292126", "text": "private function initFilesPath()\n {\n foreach ($this->fileLocator->locate('@LyssalMoneyBundle', null, false) as $moneyBundlePath) {\n if (false !== strpos($moneyBundlePath, 'src/Lyssal/MoneyBundle')) {\n $this->filesPath = $moneyBundlePath.'../../../files';\n break;\n }\n }\n }", "title": "" }, { "docid": "584e29c235f6b430684c0cd7ca59bacc", "score": "0.52868146", "text": "private function initPaths($site) {\t\tini_set ('include_path', $site);\n\t}", "title": "" }, { "docid": "4883622196a41d5a3946c265a997d45a", "score": "0.5284947", "text": "public function Start() {\n \t\t$this->path = include('paths.php');\n\n \t\t/* generate web path */\n \t\t$docpath = $_SERVER['DOCUMENT_ROOT'];\n\t\t$sitepath = (dirname($_SERVER['SCRIPT_NAME']) == '/' || dirname($_SERVER['SCRIPT_NAME']) == '\\\\') ? '' : dirname($_SERVER['SCRIPT_NAME']);\n\n\t\t/* Fallback for missing PATH_INFO */\n\t\tif(!isset($_SERVER['PATH_INFO'])) {\n\t\t $_SERVER['PATH_INFO'] = '/';\t\t\n\t\t}\n\n\t\t$this->path['web'] = $sitepath;\n\t\t\n\n \t\t/* get app paths */\n\t\t$this->path = array_merge($this->path, include($this->path['app'] . '/paths.php'));\n\n\t\t/* get app settings */\n\t\t$this->settings['app'] = include($this->path['config'] . 'App.php');\n\t\t$this->settings['auth'] = include($this->path['config'] . 'Auth.php');\n\t\t$this->settings['session'] = include($this->path['config'] . 'Session.php');\n\t\t$this->settings['datastores'] = include($this->path['config'] . 'Datastores.php');\n\t\t$this->settings['mail'] = include($this->path['config'] . 'Mail.php');\n\t\t$this->settings['permissions'] = include($this->path['config'] . 'Permissions.php');\n\t\t$this->settings['logs'] = include($this->path['config'] . 'Logs.php');\n\n\n\t\t/* load logger */\n\t\tApplication::Import('Desmond::Logging::Logger::*');\n\n\t\tLogger::override(new DesmondLogger());\n\n\t\t/* if mode is cli we need to do some different things */\n\t\tif($this->mode == 'cli') {\n\n\t\t\t/* we need to include classes, but don't need controllers or error handling */\n\t\t\tApplication::Import('Desmond::Exceptions::*');\n\n\t\t\tApplication::Import('Desmond::Template::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Database.php');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Query::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Drivers::MySQL::*');\n\t\t\tApplication::Import('Desmond::Database::ORM::*');\n\t\t\tApplication::Import('Models');\n\n\n\t\t\t/* let's activate the redinterpeter */\n\t\t\tApplication::Import('Desmond::Interpeter::DesmondInterpeter.php');\n\n\n\t\t\t$desmond_interp = new DesmondInterpeter();\n\t\t\techo $desmond_interp->Run();\n\n\n\t\t}\n\n\t\t/* else load our usual app classes */\n\t\telse {\n\n\t\t\t/* setup whoops error handling */\n\n\t\t\tApplication::Import('Desmond::Exceptions::*');\n\t\t\tApplication::Import('PHPError::Debug::*');\n\t\t\tApplication::Import('Kint::Kint.class.php');\n\t\t\t\n\t\t\t\\php_error\\reportErrors(array('catch_ajax_errors' => false));\n\n\t\t\t/* include template engine and set twig as current engine */\n\t\t\tApplication::Import('Desmond::Controller::*');\n\t\t\tApplication::Import('Desmond::Template::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Database.php');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Query::*');\n\t\t\tApplication::Import('Desmond::Database::DBAL::Drivers::MySQL::*');\n\t\t\tApplication::Import('Desmond::Database::ORM::*');\n\t\t\tApplication::Import('Desmond::Auth::Password::Password.php');\n\t\t\tApplication::Import('Desmond::Auth::Auth::Auth.php');\n\t\t\tApplication::Import('Desmond::Mail::Mail.php');\n\t\t\tApplication::Import('Models');\n\n\t\t\t/* include base element for templates */\n\t\t\tApplication::Import('Desmond::Element::Element.php');\n\n\t\t\t/* include all elements */\n\t\t\t$elements = glob(Application::path('elements') . '*' , GLOB_ONLYDIR);\n\n\t\t\tforeach($elements as $element) {\n\t\t\t\tinclude($element . '/logic.php');\n\t\t\t}\n\n\t\t\t\n\t\t\t/* start the router and load routing rules for the app */\n\t\t\tApplication::Import('Desmond::HTTP::Router::*');\n\t\t\tApplication::Import('Desmond::HTTP::Request::*');\n\t\t\tApplication::Import('Desmond::HTTP::Response::*');\n\n\t\t\t/* setup the default request and response objects */\n\t\t\tHTTPRequest::override(new DesmondRequest());\n\t\t\tHTTPResponse::override(new DesmondResponse());\n\n\n\t\t\tDatabase::override(new DesmondDatabase());\n\n\t\t\t/* setup session manager */\n\n\t\t\tif(Application::Setting('session::type') == 'memory') {\n\t\t\t\tApplication::Import('Desmond::Session::Memory::*');\n\n\t\t\t\tSession::override(new MemorySession());\n\t\t\t}\n\n\t\t\telse if(Application::Setting('session::type') == 'database') {\n\t\t\t\tApplication::Import('Desmond::Session::Database::*');\n\n\t\t\t\tSession::override(new DatabaseSession());\n\t\t\t}\n\n\n\t\t\telse {\n\t\t\t\tApplication::Import('Desmond::Session::Fallback::*');\n\t\t\t\tSession::override(new FallbackSession());\n\t\t\t}\n\n\t\t\tTemplate::override(new TwigTemplate());\n\n\t\t\t/* setup language manager */\n\t\t\tApplication::Import('Desmond::Language::Loader::*');\n\n\t\t\tLanguage::override(new DesmondLanguage());\t\n\n\t\t\tRouter::override(new DesmondRouter());\n\n\t\t\t/* setup password and auth system */\n\t\t\tPassword::override(new DesmondPassword());\n\t\t\tAuth::override(new DesmondAuth());\n\n\t\t\t/* mail desmond */\n\t\t\tMail::override(new DesmondMail());\n\n\t\t\t/* load plugins */\n\t\t\t$this->loadPlugins();\n\n\n\t\t\t/* include routes */\n\t\t\tinclude($this->path['app'] . 'routes.php');\n\n\t\t\tRouter::Process();\n\t\t}\n\n\t}", "title": "" }, { "docid": "a46908704aee4239b13d980149bdc871", "score": "0.52799445", "text": "public function bootstrap($app) {\n if (!$app->hasModule(FilesModule::DEFAULT_ID)) {\n $app->setModule(FilesModule::DEFAULT_ID, ['class' => FilesModule::class]);\n }\n\n $module = $app->getModule(FilesModule::DEFAULT_ID);\n if (!$module->has(FilesModule::MANAGER_ID)) {\n $module->setComponents([\n FilesModule::MANAGER_ID => [\n 'class' => FilesManager::class\n ]\n ]);\n }\n \n $rules = [\n [\n 'class' => FileUrlRule::class,\n 'filesManagerModuleId' => FilesModule::DEFAULT_ID,\n ],\n ];\n\n self::addUrlRules(self::URL_RULES_TYPE_FRONTEND, $rules);\n self::addUrlRules(self::URL_RULES_TYPE_BACKEND, $rules);\n }", "title": "" }, { "docid": "dba302a8f0e55e7af4dba9369bcd392e", "score": "0.5278929", "text": "private function copyAppConfigFiles()\n {\n $globalConfigFiles = Glob::glob(\n $this->_globalConfigDir . '/{di.xml,*/di.xml,db_schema.xml,vendor_path.php}',\n Glob::GLOB_BRACE\n );\n foreach ($globalConfigFiles as $file) {\n $targetFile = $this->_configDir . str_replace($this->_globalConfigDir, '', $file);\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\n $this->_ensureDirExists(dirname($targetFile));\n if ($file !== $targetFile) {\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\n copy($file, $targetFile);\n }\n }\n }", "title": "" }, { "docid": "82cd50b7d8bc5e17045a53d629c1fbaf", "score": "0.5276038", "text": "public static function load($app): void\n {\n defined('DS') or define('DS', DIRECTORY_SEPARATOR);\n defined('APP_ROOT') or define('APP_ROOT', ROOT_PATH);\n defined('PUBLIC_PATH') or define('PUBLIC_PATH', 'public');\n defined('ASSET_PATH') or define('ASSET_PATH', '/' . PUBLIC_PATH . '/assets');\n defined('CSS_PATH') or define('CSS_PATH', ASSET_PATH . '/css');\n defined('JS_PATH') or define('JS_PATH', ASSET_PATH . '/js');\n defined('IMAGE_PATH') or define('IMAGE_PATH', ASSET_PATH . '/images');\n\n defined('TEMPLATE_PATH') or define('TEMPLATE_PATH', APP_ROOT . DS . 'App');\n defined('TEMPLATES') or define('TEMPLATES', $_SERVER['DOCUMENT_ROOT'] . 'App/Templates/');\n defined('STORAGE_PATH') or define('STORAGE_PATH', APP_ROOT . DS . 'Storage');\n defined('CACHE_PATH') or define('CACHE_PATH', STORAGE_PATH . DS);\n defined('LOG_PATH') or define('LOG_PATH', STORAGE_PATH . DS . 'logs');\n defined('ROOT_URI') or define('ROOT_URI', '');\n defined('RESOURCES') or define('RESOURCES', ROOT_URI);\n defined('UPLOAD_PATH') or define(\"UPLOAD_PATH\", $_SERVER['DOCUMENT_ROOT'] . DS . \"uploads/\");\n\n defined('ERROR_RESOURCE') or define('ERROR_RESOURCE', $_SERVER['DOCUMENT_ROOT'] . 'vendor/magmacore/magmacore/src/ErrorHandler/Resources/');\n defined('TEMPLATE_ERROR') or define('TEMPLATE_ERROR', APP_ROOT . DS . 'vendor/magmacore/magmacore/src/ErrorHandler/Resources/');\n }", "title": "" }, { "docid": "0fd00a9264de7e62beedec7da8667875", "score": "0.52716565", "text": "public function getDefaultApp()\n {\n return APPPATH;\n }", "title": "" }, { "docid": "5b4e5e8a37ce5a4321fe713e55b5a54c", "score": "0.52699286", "text": "protected static function updateBootstrapping()\n {\n copy(__DIR__ . '/angular-stubs/main.ts', resource_path('assets/js/main.ts'));\n copy(__DIR__ . '/angular-stubs/app.module.ts', resource_path('assets/js/app.module.ts'));\n copy(__DIR__ . '/angular-stubs/environment.ts', resource_path('assets/js/environment.ts'));\n copy(__DIR__ . '/angular-stubs/tsconfig.json', resource_path('assets/js/tsconfig.json'));\n }", "title": "" }, { "docid": "b36ce7d5d17002fa71c5f5ced554a13c", "score": "0.52661234", "text": "public function all()\n\t{\n\t\t// Gather all the bundle paths, app path and sys path\n\t\t$paths = array_map(array('Bundle', 'path'), Bundle::names());\n\t\t$paths[] = path('app');\n\t\t$paths[] = path('sys');\n\n\t\t// Generate config for the paths\n\t\t$options = $this->config($paths);\n\n\t\t// Run ApiGen\n\t\t$this->apigen($options);\n\t}", "title": "" }, { "docid": "9e6417a4edb4534701160fe6a25a9c3c", "score": "0.52645826", "text": "public function __construct()\n {\n $apcu_key=\"config\";\n $items = [];\n // $app=app();\n\n\n // if (apcu_exists($apcu_key)) {\n // $items= apcu_fetch($apcu_key);\n // $loadedFromCache = true;\n\n // }\n\n // First we will see if we have a cache configuration file. If we do, we'll load\n // the configuration items from that file so that it is very quick. Otherwise\n // we will need to spin through every configuration file and load them all.\n // if (is_file($cached = $app->getCachedConfigPath())) {\n // $items = require $cached;\n\n // $loadedFromCache = true;\n // }\n\n // Next we will spin through all of the configuration files in the configuration\n // directory and load each one into the repository. This will make all of the\n // options available to the developer for use in various parts of this app.\n\n $this->repo=$repository = new ConfigRepository($items);\n\n\n $config_path = BASE_PATH . '/config';\n\n if (! isset($loadedFromCache)) {\n $this->loadConfigurationFiles($config_path, $repository);\n //apcu_store($apcu_key, $repository->all(), 6);\n\n }\n\n // Finally, we will set the application's environment based on the configuration\n // values that were loaded. We will pass a callback which will be used to get\n // the environment in a web context where an \"--env\" switch is not present.\n // $app->detectEnvironment(function () use ($config) {\n // return $config->get('app.env', 'production');\n // });\n\n date_default_timezone_set($repository->get('app.timezone', 'UTC'));\n\n mb_internal_encoding('UTF-8');\n }", "title": "" }, { "docid": "e925957c8ddb9260fb3d3288dc50d32b", "score": "0.5260223", "text": "public static function pathsLoader()\r\n {\r\n try {\r\n $DOCUMENT_ROOT = getcwd(); // GET CURRENT WORKING DIRECTORY\r\n $aOfPaths = explode(\"/\", $DOCUMENT_ROOT);\r\n for ($i = count($aOfPaths) - 1; $i > 0; $i--) {\r\n $DOCUMENT_ROOT = str_replace($aOfPaths[$i], \"\", $DOCUMENT_ROOT);\r\n $DOCUMENT_ROOT = str_replace(\"//\", \"/\", $DOCUMENT_ROOT);\r\n if (is_file($DOCUMENT_ROOT . \"config/paths_dev.ini\") && $_ENV['APP_ENV'] === 'dev') {\r\n return parse_ini_file($DOCUMENT_ROOT . \"config/paths_dev.ini\", false);\r\n } else if (is_file($DOCUMENT_ROOT . \"config/paths_prod.ini\") && $_ENV['APP_ENV'] === 'prod') {\r\n return parse_ini_file($DOCUMENT_ROOT . \"config/paths_prod.ini\", false);\r\n } else {\r\n throw new Exception('Sorry, something need to be checked in your application paths configuration !! <br/><br/>');\r\n }\r\n }\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n }", "title": "" }, { "docid": "d2d96381f9567af13daf8a525b7039eb", "score": "0.52581125", "text": "protected function init($app) {}", "title": "" }, { "docid": "6155cb0591ddfd8c3e69b95622650e4a", "score": "0.5257451", "text": "protected function init()\n {\n $dir = $this->getDir();\n\n if (!file_exists($dir)) {\n mkdir($dir, 0755, true);\n }\n }", "title": "" }, { "docid": "9de2c79bba38f9d138b188d1f16a3f9a", "score": "0.5248756", "text": "protected function setUp() {\n\t\tdefine('FOLDER', realpath(__DIR__.'/../').'/');\n\t\t\n\t\t/* PSR-0 autoloader */\n\t\t$loader = require FOLDER.'../vendor/autoload.php';\n\t\t\n\t\t/* add our application folder and core folders */\n\t\t$loader->add('', FOLDER.'mocks/');\n\t\t$loader->add('myersd\\\\core',FOLDER.'../');\n\t\t$loader->add('myersd\\\\libraries',FOLDER.'../');\n\t}", "title": "" }, { "docid": "fd8ff55962aba54adc7b9822c366caa8", "score": "0.5248545", "text": "public function setCiPaths(Request $request = null) {\n if (!$this->isConfigValid()) {\n throw new \\Exception('Code Igniter configuration is not valid.');\n }\n\n if ($this->paths_initalized === false) {\n $script_file = $request !== null\n ? '.' . $request->getBasePath() . $request->getScriptName()\n : __FILE__;\n\n $root_path = realpath($this->kernel->getRootDir().'/..');\n if ($root_path === false) {\n throw new \\LogicException('Nercury CI bundle was expecting to find kernel root dir in /app directory.');\n }\n\n $system_path = $this->getRelativePath($root_path, $this->getSystemPath()).'/';\n $application_folder = $this->getRelativePath($root_path, $this->getAppPath());\n\n if ($script_file === __FILE__) {\n $script_file = $root_path . '/app.php';\n $system_path = realpath($root_path.'/'.$system_path).'/';\n $application_folder = realpath($root_path.'/'.$application_folder);\n }\n\n $environment = $this->kernel->getEnvironment();\n $environmentMap = array('dev' => 'development', 'test' => 'testing', 'prod' => 'production');\n if(array_key_exists($environment, $environmentMap)) {\n $environment = $environmentMap[$environment];\n }\n define('ENVIRONMENT', $environment);\n\n /*\n * -------------------------------------------------------------------\n * Now that we know the path, set the main path constants\n * -------------------------------------------------------------------\n */\n // The name of THIS file\n define('SELF', pathinfo($script_file, PATHINFO_BASENAME));\n\n // The PHP file extension\n // this global constant is deprecated.\n define('EXT', '.php');\n\n // Path to the system folder\n define('BASEPATH', str_replace(\"\\\\\", \"/\", $system_path));\n\n // Path to the front controller (this file)\n define('FCPATH', str_replace(SELF, '', __FILE__));\n\n // Name of the \"system folder\"\n define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));\n\n\n // The path to the \"application\" folder\n if (is_dir($application_folder)) {\n define('APPPATH', $application_folder . '/');\n } else {\n if (!is_dir(BASEPATH . $application_folder . '/')) {\n exit(\"Your application folder path does not appear to be set correctly. Please open the following file and correct this: \" . SELF);\n }\n\n define('APPPATH', BASEPATH . $application_folder . '/');\n }\n\n $this->paths_initalized = true;\n }\n }", "title": "" }, { "docid": "2b0ea0cff553f89cbdc4b5471603d18e", "score": "0.5247471", "text": "public function mock_apps() {\n\n\t\t$this->backup_app = WordPoints_App::$main;\n\n\t\tWordPoints_App::$main = new WordPoints_PHPUnit_Mock_App_Silent(\n\t\t\t'apps'\n\t\t);\n\n\t\treturn WordPoints_App::$main;\n\t}", "title": "" }, { "docid": "a3fb43174ebfa8a54cde704eb8ae28c4", "score": "0.52437377", "text": "static function configure()\n\t{\n\t\tPie_Config::load('config/pie.json');\n\t\t\n\t\t// Get the app config, but don't load it yet\n\t\t$app_p = new Pie_Parameters();\n\t\t$app_p->load('config/app.json');\n\t\t$app_p->load('local/app.json');\n\t\t\n\t\t// Load all the plugin config files first\n\t\t$paths = explode(PS, get_include_path());\n\t\t$plugins = $app_p->get('pie', 'plugins', array());\n\t\tforeach ($plugins as $plugin) {\n\t\t\t$plugin_path = Pie::realPath('plugins'.DS.$plugin);\n\t\t\tif (!$plugin_path) {\n\t\t\t\tthrow new Pie_Exception_MissingPlugin(compact('plugin'));\n\t\t\t}\n\t\t\tPie_Config::load($plugin_path.DS.'config'.DS.'plugin.json');\n\t\t\tarray_splice($paths, 1, 0, array($plugin_path));\n\t\t\t$PLUGIN = strtoupper($plugin);\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_DIR', $plugin_path);\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_CONFIG_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_CONFIG_DIR', $plugin_path.DS.'config');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_CLASSES_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_CLASSES_DIR', $plugin_path.DS.'classes');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_FILES_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_FILES_DIR', $plugin_path.DS.'files');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_HANDLERS_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_HANDLERS_DIR', $plugin_path.DS.'handlers');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_PLUGINS_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_PLUGINS_DIR', $plugin_path.DS.'plugins');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_SCRIPTS_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_SCRIPTS_DIR', $plugin_path.DS.'scripts');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_TESTS_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_TESTS_DIR', $plugin_path.DS.'tests');\n\t\t\tif (!defined($PLUGIN.'_PLUGIN_WEB_DIR'))\n\t\t\t\tdefine($PLUGIN.'_PLUGIN_WEB_DIR', $plugin_path.DS.'web');\n\t\t}\n\t\tset_include_path(implode(PS, $paths));\n\t\t\n\t\t// Now, we can merge in our app's config\n\t\tPie_Config::merge($app_p);\n\n\t\t// Now, load any other files we were supposed to load\n\t\t$config_files = Pie_Config::get('pie', 'configFiles', array());\n\t\tforeach ($config_files as $cf) {\n\t\t\tPie_Config::load($cf);\n\t\t}\n\t\t$script_files = Pie_Config::get('pie', 'scriptFiles', array());\n\t\tforeach ($script_files as $cf) {\n\t\t\tPie::includeFile($cf);\n\t\t}\n\t}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "49df21ea3038931494d543ddc766a813", "score": "0.0", "text": "public function update(UpdatecategoryRequest $request, Category $category)\n {\n $category->update([\n 'category' => $request->category\n ]);\n\n session()->flash('success', 'category updated successfully.');\n\n return redirect(route('category.list'));\n }", "title": "" } ]
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7425105", "text": "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 }", "title": "" }, { "docid": "08694713de71165eda639b86061c2dd3", "score": "0.70612276", "text": "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 }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624096", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "c36ab864eb8fe4e400b9bf654b24e104", "score": "0.6334678", "text": "public function updateStream($path, $resource, array $config = []);", "title": "" }, { "docid": "1833fc434e2b6d8845470c7071f16b05", "score": "0.62114537", "text": "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 }", "title": "" }, { "docid": "713301f4bdde89af420365911069870f", "score": "0.6196851", "text": "public function update(ResourceTypeInterface $resourceType)\n\t{\n\t\t$this->setObjectToCache($resourceType);\n\t\t$this->setObjectToCache($resourceType, 'identifier');\n\t\t$this->objectManager->persist($resourceType);\n\t}", "title": "" }, { "docid": "0926078283b626a7cbcf1c37921b4293", "score": "0.6119944", "text": "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 }", "title": "" }, { "docid": "78d3c773d3a549209d09486c7233c7b5", "score": "0.6087866", "text": "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "title": "" }, { "docid": "f6f8def0ac709abf6dd95f0dfa35d868", "score": "0.6052593", "text": "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "title": "" }, { "docid": "5334ba4a6880a32048930c6aab0c2e72", "score": "0.6018941", "text": "public function update($path);", "title": "" }, { "docid": "9ce64536e4f158c8d6da887e4483a653", "score": "0.5973672", "text": "public function updateResource($resource, $resource_id, $resource_data)\n {\n $this->addCallData('resource', $resource);\n $this->addCallData('URL', 'admin/' . $resource);\n $this->addCallData('METHOD', 'PUT');\n foreach ($resource_data as $property => $data) {\n $this->buildChildData($property, $data);\n }\n $this->commitChildData();\n return $this->updateRecord($resource_id);\n }", "title": "" }, { "docid": "9f880585b8f772551748224960e1114a", "score": "0.59715486", "text": "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 }", "title": "" }, { "docid": "8bf08d6952a759b61a0c0f2a1c1e4e68", "score": "0.59400934", "text": "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}", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "48a6e00b66b63cd7ac857215e12bb74f", "score": "0.58948725", "text": "public function update_($resource, ...$id) {\n\t\t$this->_checkResource ( $resource, function () use ($id) {\n\t\t\tif (! $this->hasErrors ()) {\n\t\t\t\tparent::_update ( ...$id );\n\t\t\t} else {\n\t\t\t\techo $this->displayErrors ();\n\t\t\t}\n\t\t} );\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3ec460d4bbd98e23f7e38b492a7d650e", "score": "0.5860816", "text": "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 }", "title": "" }, { "docid": "d7478480534fcc66d2484d02792ff42b", "score": "0.5832773", "text": "public function softwareUpdate(SoftwareRequest $request, $id)\n {\n $software=Software::find($id);\n /* dd($software); */\n $input= $request->all();\n $input['slug']=Str::slug($request->title);\n if($request->hasFile('image')) {\n if($request->image==$software->image){\n $input['image']=$software->image;\n }else{\n $fileName=$request->file('image')->store('photos','public');\n\n $input['image'] =$fileName;\n \n @unlink('storage/'.$software->image);\n }\n\n \n\n } else {\n\n $input['image']=$software->image;\n\n }\n $software->update([\n 'title'=>$request->title,\n 'content'=>$request->content,\n 'image'=>$input['image'],\n 'slug'=>$input['slug'],\n ]);\n /* dd($software); */\n\n return new SoftwareResource($software);\n }", "title": "" }, { "docid": "9c026a6af96c287558697ce10089af64", "score": "0.5830476", "text": "public function put($resourceId)\n {\n $resourceId = intval($resourceId);\n if (!array_key_exists(\n $resourceId,\n $this->repositoryIndex\n )) {\n header('Not Found', true, 404);\n exit();\n }\n\n $key = $this->repositoryIndex[$resourceId];\n $this->repository[$key] = $this->requestBody;\n\n echo json_encode($this->repository[$key]);\n }", "title": "" }, { "docid": "4bc6a6b46ecee85bd6f0b6a0548271b3", "score": "0.582811", "text": "public function update(Request $request, $resource, $id)\n {\n return $this->repository->update($id, $request->all());\n }", "title": "" }, { "docid": "0c03c39e441c2fe392d76d6370ae3ce2", "score": "0.5806887", "text": "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 }", "title": "" }, { "docid": "95a0aa456b419b2ce1456ae7f9c023ec", "score": "0.57935816", "text": "public function updateRecord($id)\n {\n // Check if the record exists\n $resource = $this->shopifyData['resource'];\n $resource_singular = $this->shopifyData['SINGULAR_NAME'];\n $compare_property_value = $id;\n\n $tempShopifyData = $this->shopifyData;\n $tempShopifyData['METHOD'] = 'GET';\n switch ($this->shopifyData['resource']) {\n case 'collects':\n case 'variants':\n $compare_property_name = 'id';\n $tempShopifyData['URL'] = 'admin/' . $resource . '/' . $id . '.json';\n break;\n case 'metafields':\n // metafields requires a resource id and metafield id, therefore, we're setting the URL from where it's being called\n $tempShopifyData['URL'] = $tempShopifyData['URL'];\n break;\n case 'inventory_levels':\n $compare_property_name = 'inventory_item_ids';\n $tempShopifyData['URL'] .= '?' . $compare_property_name . '=' . urlencode($compare_property_value);\n break;\n default:\n $compare_property_name = 'ids';\n $tempShopifyData['URL'] .= '?' . $compare_property_name . '=' . urlencode($compare_property_value);\n }\n \n $result = $this->call($tempShopifyData);\n if ((isset($result->$resource) && count($result->$resource) == 1) || property_exists($result, $resource_singular)) {\n // update the record\n $resource = $this->shopifyData['resource'];\n $currentShopifyData = $this->shopifyData;\n $currentShopifyData['METHOD'] = 'PUT';\n\n switch ($resource) {\n case 'smart_collections':\n // if smart_collections, determine whether to use order.json or #id.json\n if (isset($currentShopifyData['DATA']) && array_has($currentShopifyData['DATA'], 'products')) {\n $currentShopifyData['URL'] = str_replace(\".json\", '/' . $id . '/order.json', $currentShopifyData['URL']);\n }\n break;\n case 'inventory_levels':\n $currentShopifyData['URL'] = str_replace(\".json\", '/set.json', $currentShopifyData['URL']);\n break;\n default:\n $currentShopifyData['URL'] = self::PREFIX . '/' . $resource . '/' . $id . '.json';\n }\n\n\n if (isset($currentShopifyData['DATA'])) {\n $result = $this->call($currentShopifyData, $currentShopifyData['DATA']);\n } else {\n $result = $this->call($currentShopifyData);\n }\n $this->resetData();\n return $result;\n }\n }", "title": "" }, { "docid": "9aebab206cbd3cb1ae7fc60ffdd5c17a", "score": "0.5754308", "text": "public function updateSingle($request, $response, $args){\n\t\t$response = $this->gateway($this->getNeededCap(__FUNCTION__), $response);\n\t\tif ( $response->getStatusCode() != 200 ){\n\t \t\treturn $response;\n\t \t}\n\t\t//TODO check data type & id against resource > via middleware, serve 409 error on mismatch\n\t \t$resource_model_class = $this->resource_model_class;\n\t \t$resource_slug = $resource_model_class::getResourceSlug();\n \t\t$resource = $args[$resource_slug];\n\t\t$input = $request->getParsedBody()['data'];\n \t\t$return = $this->validateAndSave($resource,$input);\n \t\treturn $response->withJsonAPI($return['to_json'],$return['code']);\n\t}", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "cd5df57c2c83d7637ab39eb4c24ca282", "score": "0.5718714", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $this->validate($request, [\n 'category_id' => 'required',\n 'unit_id' => 'required',\n 'name' => [\n 'required',\n Rule::unique('products')->ignore($product->id),\n ],\n 'purchase_price' => 'required',\n 'sell_price' => 'required',\n 'quantity' => 'required',\n ]);\n\n $product->category_id = $request->category_id;\n $product->unit_id = $request->unit_id;\n $product->name = $request->name;\n $product->sku = Helpers::getSKUProduct($request->name, $request->id);\n $product->barcode = Helpers::getBarcodeProduct($request->name);\n $product->description = $request->description;\n //TODO: update image in storage path\n $product->image = $request->image;\n $product->quantity = $request->quantity;\n $product->quantity_alert = $request->quantity_alert;\n $product->cost_price = Helpers::calculateCostPrice($product->purchase_price, $product->quantity, $request->purchase_price, $request->quantity);\n $product->purchase_price = $request->purchase_price;\n $product->sell_price = $request->sell_price;\n $product->status = $request->status;\n\n $product->update();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "cbf8435986892ace3d4dbcfbf62f6804", "score": "0.5714311", "text": "public function isUpdateResource();", "title": "" }, { "docid": "8759752add8b6db67fed4d69cb0208e8", "score": "0.5683185", "text": "public function update()\n\t{\n\t\tparent::update();\n\t\t$this->write();\n\t}", "title": "" }, { "docid": "b867c63b8317ab70317f7b53e3441ded", "score": "0.56789744", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->update($request->all());\n return (new ProductResource($product->loadMissing('imageable')))-> response()->setStatusCode(200);\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "ea54f106887794c3110ad39c81f775dc", "score": "0.5674029", "text": "public function update($record, ResourceObjectInterface $resource, EncodingParametersInterface $params);", "title": "" }, { "docid": "8a46c9ac29aec2f0c66f61cd6abd3e2a", "score": "0.5669989", "text": "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 }", "title": "" }, { "docid": "6aaf7100103df61dd639ff4267dc6860", "score": "0.565847", "text": "public function update ($resource = false, $key = false) {\n\t\t$resource = ($resource) ? $resource : $this->resource;\n\t\t$key = ($key) ? $key : $this->key;\n\n\t\tif (DB::execute (\n\t\t\t'update `#prefix#lock` set modified = ?, expires = ? where resource = ? and resource_id = ?',\n\t\t\tgmdate ('Y-m-d H:i:s'),\n\t\t\tgmdate ('Y-m-d H:i:s', time () + $this->timeout),\n\t\t\t$resource,\n\t\t\t$key\n\t\t)) {\n\t\t\treturn true;\n\t\t}\n\t\t$this->error = DB::error ();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8061c9b36c6d17c20d2017115145496d", "score": "0.56398815", "text": "public function update(Request $request, $id)\n {\n try {\n DB::beginTransaction();\n\n $product = Product::find($id);\n\n $data = $request->except('img');\n\n if ($request->hasFile('img')) {\n if ($product->img && file_exists(storage_path('app/public/'.$product->img))) {\n Storage::delete('public/'.$product->img);\n }\n\n $img_path = $request->file('img')->store('products/img', 'public');\n $data['img'] = $img_path;\n $data['img_url'] = url('/storage/'.$img_path);\n }\n\n if (!$data['is_discount']) {\n $data['after_discount'] = null;\n }\n\n $product = $product->fill($data);\n $product->save();\n\n DB::commit();\n\n return redirect()->route('product.index')->with('success', 'Successfully updated product !');\n\n } catch (\\Exception $error) {\n DB::rollBack();\n return $error->getMessage();\n }\n }", "title": "" }, { "docid": "bbd99fadb318f4a784afaa2bfa18ce90", "score": "0.5628826", "text": "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 }", "title": "" }, { "docid": "8eb8ff4a40a42fb82a98ac5091c3a8b4", "score": "0.56196684", "text": "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 }", "title": "" }, { "docid": "b7bac3ceb1b9b8584ebd61b08fa09788", "score": "0.5604227", "text": "public function putAction()\n {\n /** XXX **/\n\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "f646252110cf32a5b2f73f7d1462f12e", "score": "0.5601397", "text": "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 }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.5582592", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "b1223c0e87edc0874663308fb5757224", "score": "0.5575312", "text": "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}", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "c596fddf408b359acc12fe17624de997", "score": "0.55624634", "text": "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 }", "title": "" }, { "docid": "b3d8abec86ebbd8bf61bddeb5110ba38", "score": "0.55608666", "text": "abstract public function put($data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "910ec5bfd0a0132f45d218d96931bc8b", "score": "0.55576575", "text": "public function update(Request $request, $id)\n {\n\n $request->validate([\n 'resource_name' => 'required',\n 'about_content' => 'required',\n 'sort_order' => 'required|numeric'\n ]);\n\n $form_data = array(\n 'resource_name' => $request->resource_name,\n 'slug' => $this->slugify($request->resource_name),\n 'about_content' => $request->about_content,\n 'sort_order' => $request->sort_order\n );\n\n Resource::whereId($id)->update($form_data);\n\n return redirect('resource')->with('success', 'Data is successfully updated');\n }", "title": "" }, { "docid": "90cec2e0050ecd5971be612c49157c4a", "score": "0.55573726", "text": "public function testUpdateSupplierUsingPUT()\n {\n }", "title": "" }, { "docid": "9c243572303715ea37744cfc162e1a3c", "score": "0.5556878", "text": "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "title": "" }, { "docid": "45212faae39cc84fb7d386bd5ccbacd2", "score": "0.5554201", "text": "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 }", "title": "" }, { "docid": "ffe74e555ccf4883e40a207b843213c6", "score": "0.5553755", "text": "public function update($id, EditResourceImageRequest $request)\n {\n $resourcecenterImage = ResourceCenterImage::findOrFail($id);\n $this->setUpdatedModelValues($request, $resourcecenterImage);\n // if file, we have additional requirements before saving\n if ($this->newFileIsUploaded()) {\n $this->deleteExistingImages($resourcecenterImage);\n $this->setNewFileExtension($request, $resourcecenterImage);\n }\n\n $resourcecenterImage->update([\n 'book_name' => $request->input('book_name'),\n 'category_name' => $request->input('category_name')\n ]); \n\n $resourcecenterImage->save();\n// check for file, if new file, overwrite existing file\n if ($this->newFileIsUploaded()){\n $file = $this->getUploadedFile();\n $this->saveImageFiles($file, $resourcecenterImage);\n }\n $thumbnailPath = $this->thumbnailPath;\n $imagePath = $this->imagePath;\n alert()->success('Congrats!', 'image edited!');\n return view('resourcecenter-image.view', compact('resourcecenterImage',\n 'thumbnailPath',\n 'imagePath'));\n }", "title": "" }, { "docid": "9bd927a2b7c7b6455cfb1d5512fcad31", "score": "0.55435944", "text": "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "title": "" }, { "docid": "efa4460a1f0a94dc49a588c86ce1c95e", "score": "0.55393505", "text": "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 }", "title": "" }, { "docid": "49f2830a1f4c7d89a0738cee238723c4", "score": "0.5536732", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n if ($request->hasFile('photo')){\n if ($product->photo !== NULL){\n unlink(public_path($product->photo));\n }\n\n }\n $product->CategoryID = $request->CategoryID;\n $product->SKU = $request->SKU;\n $product->ProductName = $request->ProductName;\n $product->ProductDescription = $request->ProductDescription;\n $product->QTY = $request->QTY;\n $product->Price = $request->Price;\n $product->AvailSize = $request->AvailSize;\n $product->AvailColor = $request->AvailColor;\n $product->Size = $request->Size;\n $product->Color = $request->Color;\n $product->photo = $request->photo;\n\n $product['photo'] = '/upload/photo/'.time().'.'.$request->photo->getClientOriginalExtension();\n $request->photo->move(public_path('/upload/photo/'), $product['photo']);\n\n $product->save();\n\n return response()->json([\n 'success' => true,\n 'message' => 'Product Updated' ]);\n }", "title": "" }, { "docid": "c4d2a2fa9101020663f7a49d7cc6ddac", "score": "0.5535236", "text": "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 }", "title": "" }, { "docid": "6e9e95959e33006f578a3965f633d7d6", "score": "0.5534954", "text": "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 }", "title": "" }, { "docid": "6747a7ea594ba3a1e21cae4d1cb18d9f", "score": "0.5534193", "text": "public function update (Request $request, $id)\n {\n $request_data = $request->all();\n\n // only validate attributes provided (ignore missing)\n $validation_rules = array_keys($request_data['data']['attributes']);\n $request_data_validation = $this->validateRequestResourceObject($request_data['data'], $this->model, $id, true, $validation_rules);\n\n // respond with error\n if (!empty($request_data_validation['errors'])) {\n return Response::make([ 'errors' => $request_data_validation['errors'] ], $request_data_validation['error_code']);\n }\n\n // fetch resource\n $resource = $this->model->findOrFail($id);\n\n // ACL\n if (!is_null(config('jsonapi.acl.check_access')) && config('jsonapi.acl.check_access') !== false) {\n $errors = JsonApiAclUtils::accessCheck($request->route()->getName(), Auth::user(), $resource);\n if (!empty($errors)) {\n return Response::make([ 'errors' => $errors ], 403);\n }\n }\n\n // update resource\n $resource->fill($request_data['data']['attributes']);\n $resource->save();\n\n // return updated resource\n return Response::item($request, $resource->toArray(), $this->model, 200);\n }", "title": "" }, { "docid": "6c30ee958f97e8028b342b7519dfbdae", "score": "0.55296004", "text": "public function testUpdateInventoryStorageActivity()\n {\n }", "title": "" }, { "docid": "294674761e7a90c0f3c7b7cbb244ad5a", "score": "0.55237365", "text": "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 }", "title": "" }, { "docid": "f83dd36256d02e1f966e7e748f03289a", "score": "0.5511168", "text": "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 }", "title": "" }, { "docid": "0dc3227cc620ff2bfcf02b42a09128f6", "score": "0.5508345", "text": "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 }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "98955a07074c5f9d7b65cb4edac55bd6", "score": "0.54995877", "text": "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 }", "title": "" }, { "docid": "2a1018c32a03eb53bdc4e273d245eb4b", "score": "0.5497446", "text": "function updateProduct() {\n\n $params = [\n 'name' => $this->product\n ];\n \n $response = getResponse(getConfigVar(\"api_url\"), \"products\", $params, [],'body');\n \n $this->qty = $response[\"results\"][0][\"qty\"];\n $this->price = $response[\"results\"][0][\"price\"];\n \n $product = get_page_by_title( $this->product, OBJECT, 'product' );\n \n $productID = $product->ID;\n \n update_post_meta( $productID, \"_stock\", $this->qty );\n update_post_meta( $productID, \"_price\", $this->price );\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "9ecc82591ba06b6a36749ed98ac6605d", "score": "0.54946727", "text": "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "title": "" }, { "docid": "807c599f788606e6432d3e0633f87027", "score": "0.5494425", "text": "public function update(Request $request,$id)\n {\n $product = Product::find($id);\n if ($request->updateimage) {\n $position = strpos($request->updateimage, ';');\n $sub=substr($request->updateimage, 0 ,$position);\n $ext=explode('/', $sub)[1];\n $name=time().\".\".$ext;\n $img=Image::make($request->updateimage)->resize(240,200);\n $upload_path='product/';\n $image_url=$upload_path.$name;\n $img->save($image_url);\n $product->image = $image_url;\n }\n $product->title = $request->title;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n return response()->json($product);\n\n }", "title": "" }, { "docid": "48fef9aa4b1db49fbd41de594ae52cd6", "score": "0.5494196", "text": "public function put($path, $data = null);", "title": "" }, { "docid": "a3080528f24f5a6310506fe05f776170", "score": "0.54941916", "text": "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 }", "title": "" }, { "docid": "7b02b905255b0a4884cf4da903ed88b2", "score": "0.5492901", "text": "public function update(Request $request, $id)\n {\n $product = Product::where('id', $id);\n\n if ($request->file('image')) {\n File::delete(public_path('images/' . $product->first()->image));\n $file = $request->file('image');\n $file_name = uniqid() . $file->getClientOriginalName();\n $file->move(public_path('/images'), $file_name);\n } else {\n $file_name = $product->first()->image;\n }\n\n $product->update([\n 'category_id' => $request->category_id,\n 'title' => $request->title,\n 'image' => $file_name,\n 'total_quantity' => $request->total_quantity,\n 'price' => $request->price,\n 'description' => $request->description,\n ]);\n\n $product = Product::find($product->first()->id);\n $product->color()->sync($request->color_id);\n $product->size()->sync($request->size_id);\n return redirect()->back()->with('success', 'updated success');\n }", "title": "" }, { "docid": "04652c1da37c7a438475c8d281a1b9fb", "score": "0.54925025", "text": "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 }", "title": "" }, { "docid": "d93eb8ea18e437ad56170f6f49f20674", "score": "0.5491807", "text": "public function update(Entity $entity);", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.54858494", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "bc41011f4e9854a51487a136c85c2353", "score": "0.54841125", "text": "public function updateEntity($entity = null);", "title": "" }, { "docid": "2a7096bf2a727a86ecc99d0ede5d263f", "score": "0.5483321", "text": "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 }", "title": "" }, { "docid": "73aed3f2cb201636304e3d5dda73a09e", "score": "0.54824626", "text": "public function markAsChanged(ResolvedResource $resource);", "title": "" }, { "docid": "61329b7ef8ead3531f1a05acebdc3cd5", "score": "0.5479606", "text": "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}", "title": "" }, { "docid": "d6605be9a7cd37fa11f95b43e9749bd9", "score": "0.54651225", "text": "public function update($path, $time = null);", "title": "" }, { "docid": "5b72ae8e940480dd3b49bab90e39b090", "score": "0.5458525", "text": "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 }", "title": "" }, { "docid": "0464e78c66c09f2b7a0600a8792cb854", "score": "0.5452974", "text": "public function update(Request $request, $id)\n {\n $validation = $request->validate([\n 'name' => 'required',\n 'email' => 'required',\n 'phone' => 'required',\n 'address' => 'required',\n 'city' => 'required',\n 'state' => 'required',\n 'country' => 'required',\n 'shop_name' => 'required',\n 'photo' => 'required'\n ]);\n\n $supplier = Supplier::find($id);\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->phone = $request->phone;\n $supplier->address = $request->address;\n $supplier->city = $request->city;\n $supplier->state = $request->state;\n $supplier->country = $request->country;\n $supplier->shop_name = $request->shop_name;\n $supplier->photo = $request->photo;\n $supplier->status = 1;\n\n $photo = $request->newphoto;\n $old_photo = $supplier->photo;\n if ($photo) {\n if ($old_photo) {\n unlink($old_photo);\n }\n $first_position = strpos($photo, ';');\n $second_position = substr($photo, 0, $first_position);\n $ext = explode('/', $second_position)[1];\n $photo_name = Str::random(20).time().'.'.$ext;\n Image::make($photo)->resize(500, 400)->save(public_path('uploads/suppliers/' . $photo_name));\n $supplier->photo = 'uploads/suppliers/'.$photo_name;\n }\n $supplier->save();\n }", "title": "" }, { "docid": "247e5b3a01495ebf8d4c534d42ea515f", "score": "0.5451602", "text": "public function update(Request $request,$id){\n\n //validation\n $validator = Validator::make($request->all(), [\n 'name'=>'required|max:120',\n 'price'=>'required|numeric',\n 'discount'=>'required|numeric',\n 'description'=>'required',\n 'photo'=>'image',\n ]);\n if ($validator->fails()) {\n return redirect()->back()\n ->withErrors($validator)\n ->withInput(); \n\n } \n\n $inputs=[\n 'name'=>$request->input('name'),\n 'price'=>$request->input('price'),\n 'discount'=>$request->input('discount'),\n 'description'=>$request->input('description'),\n\n ];\n\n $product=Product::find($id);\n $product->update($inputs);\n if(!empty($request->file('photo'))){\n if(file_exists('uploads/products/'.$product->photo)){\n unlink('uploads/products/'.$product->photo);\n\n }\n \n //rename picture name\n $newName='product_'.time().'.'.$request->file('photo')->getClientOriginalExtension();\n //submit picture\n $request->file('photo')->move('uploads/products',$newName);\n $product->update(['photo'=>$newName]);\n }\n return redirect()->route('admin.product');\n\n }", "title": "" }, { "docid": "db96875d174f9e13964b6e7754664378", "score": "0.5450616", "text": "public function update(Request $request, $id)\n {\n $slider = Slider::find($id);\n\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n $location = public_path('assets/img/slider/' . $filename);\n Image::make($image)->resize(1920, 1080)->save($location);\n $oldFilename = $slider->image;\n $slider->image = $filename;\n Storage::delete($oldFilename);\n }\n $slider->save();\n Session::flash('success', 'The slider was successfully updated!');\n return redirect()->route('admin.slider');\n }", "title": "" }, { "docid": "7866059d59e3ac76fe1a71f510712109", "score": "0.54483366", "text": "public function putStream($path, $resource, array $config = []);", "title": "" }, { "docid": "26fc5abe042df3b46cf35fa63b5ce2f0", "score": "0.5447613", "text": "public function update(Request $request, $id)\n {\n // Update the resource with the addressed ID\n $subcategory = Subcategory::where('id', $request['subcategory_id'])->first();\n $subcategory_uuid = DB::table('product_subcategory')->where('product_id', $id)->value('uuid');\n $subcategory_id = DB::table('product_subcategory')->where('product_id', $id)->value('id');\n $unit = Unit::where('id', $request['unit_id'])->first();\n $unit_uuid = DB::table('product_unit')->where('product_id', $id)->value('uuid');\n $unit_id = DB::table('product_unit')->where('product_id', $id)->value('id');\n\n $product = Product::find($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->description = $request['description'];\n $product->updated_by = Config::get('apiuser');\n $product->subcategories()->sync($subcategory->id);\n $product->subcategories()->updateExistingPivot($subcategory->id, array('uuid' => $subcategory_uuid, 'id' => $subcategory_id));\n $product->units()->sync($unit->id);\n $product->units()->updateExistingPivot($unit->id, array('uuid' => $unit_uuid, 'id' => $unit_id));\n $product->save();\n return response()->json([\n 'action' => 'update',\n 'status' => 'OK',\n 'entity' => $product->uuid,\n 'type' => 'product',\n 'user' => Config::get('apiuser')\n ], 200);\n }", "title": "" }, { "docid": "b482822e086a7ebee09ff81c09e4225d", "score": "0.54449975", "text": "public function update(Request $request, $id)\n {\n \\Validator::make($request->all(), [\n 'nama_product' => 'required', 'string', 'max:255', 'min:2',\n 'deskripsi' => 'required', 'string', 'max:255', 'min:8',\n 'stok' => 'required', 'max:1000',\n 'images' => 'file|image|mimes:jpeg,png,jpg',\n 'price' => 'required', 'max:20',\n ])->validate();\n \n $edit_product = Product::findOrFail($id);\n $edit_product->nama_product = $request->get('nama_product');\n $edit_product->deskripsi = $request->get('deskripsi');\n $edit_product->stok = $request->get('stok');\n if($request->file('images')){\n if($edit_product->images && file_exists(storage_path('app/public/' . $edit_product->images))){\n Storage::delete('public/'.$edit_product->images);\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }else{\n if($request->file('images')){\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }\n }\n }\n $edit_product->price = $request->get('price');\n \n if($request->get('status')){\n $edit_product->status = $request->get('status');\n }else{\n $edit_product->status = \"publish\";\n }\n\n \\Auth::user()->productId()->save($edit_product);\n\n return redirect()->route('manage-product.index')->with('status', 'Update Product Success!!');\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.5437578", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "e46fca820619683596020187e9c6b3b8", "score": "0.542987", "text": "public function updateImg(Request $request,$id)\n {\n $image = $request->file('image');\n $old_image = $request->get('old_image');\n\n $img_name =\"p_\".time().'.'.$image->getClientOriginalExtension();\n $path = $request->image->storeAs('products',$img_name,'public');\n\n $product = Product::find($id);\n $product->image = $path;\n $product->save();\n\n // return $image->getClientOriginalName();\n $exists = Storage::disk('public')->exists($old_image);\n if ($exists) {\n Storage::disk('public')->delete($old_image);\n } \n return $path;\n \n }", "title": "" }, { "docid": "90bfecb108e2227ad224fef4f176d822", "score": "0.54288775", "text": "public function update(ProductRequest $r, $id)\n {\n $r->validate([\n 'picture' => ['mimes:jpg,png,jpeg'], \n ]);\n\n $oldProduct = Product::findOrFail($id);\n\n if($r->hasFile('picture')) {\n \\Storage::disk('public')->delete('images/products/' . $oldProduct->picture);\n $file = $r->file('picture');\n $extension = $file->extension();\n $imgName = \\Str::slug($r->product_name) . '-' . time() . '.' . $extension;\n $file->storeAs('/images/products/', $imgName, 'public');\n } else {\n $imgName = $oldProduct->picture;\n }\n\n $oldProduct->update([\n 'product_name' => $r->product_name,\n 'picture' => $imgName,\n 'price' => $r->price,\n 'description' => $r->description,\n 'status' => $r->status,\n ]);\n\n return redirect()->route('admin.products.index')->with('success', 'Product Updated Successfully.');\n }", "title": "" }, { "docid": "90e900559eee2b9d3f91997a4f2fc922", "score": "0.5424842", "text": "public function update(StoreUpdateProductRequest $request, $id)\n {\n if(!$product = Product::find($id))\n return redirect()->back();\n\n $data = $request->all();\n\n if ($request->hasFile('image') && $request->image->isValid()) {\n\n if ($product->image && Storage::exists($product->image)){\n Storage::delete($product->image);\n }\n\n $imagePath = $request->image->store('products');\n $data['image'] = $imagePath;\n }\n \n $product->update($data);\n \n return redirect()->route('products.index')->with( 'message', 'Produto Editado'); \n }", "title": "" }, { "docid": "2fa0754ebc118bc9b4b721eefefed641", "score": "0.542287", "text": "public function update(StoreEditPartenaire $request, $id)\n {\n $partenaire = Partenaire::find($id);\n $partenaire->name = $request->name;\n $partenaire->url = $request->url;\n if($request->image != null){\n $partenaire->image = $request->image->store('','imgPartenaire');\n }\n $partenaire->save();\n return redirect()->route('partenaires.index',['partenaire'=> $partenaire->id]);\n \n }", "title": "" }, { "docid": "4d95f134a6e85e43f3f6f5bbc5cc2d52", "score": "0.54208726", "text": "public function update(Request $request, $id)\n {\n $nombre = $request->input('nombre');\n $imagen = $request->file('imagen');\n $descripcion = $request->input('descripcion');\n\n $ruta = \"-\";\n if($imagen){\n $ruta = $imagen->store('public'); \n $ruta = str_replace('public','storage',$ruta);\n }\n\n $categoria = Categoria::findOrFail($id);\n\n if($ruta!==\"-\"){\n $img = str_replace(\"storage/\", \"public/\", $categoria->imagen);\n $img = \"storage/\".$img;\n Storage::delete(asset('/storage/9yBlOG6KxNwaRoIrAKNpbBRr16q5PQyohbflIDcp.png'));\n }else{\n $ruta = $categoria->imagen;\n }\n\n $categoria->nombre = $nombre;\n $categoria->descripcion = $descripcion;\n $categoria->imagen = $ruta;\n $categoria->update();\n\n return redirect()->route('categoria.index');\n }", "title": "" }, { "docid": "a28ba9c40e06592529f38d6d19b89b16", "score": "0.54146737", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "67efbd9de14b40fa42d329e7897936e4", "score": "0.5414418", "text": "public function updatePreview()\n\t{\n\t\t // delete all files stored in the cache with the id of $this->id.'*.*';\n\t\t$fileHelper = new CFileHelper();\n\t\t$ff = $fileHelper->findFiles(Yii::app()->imageCache->imagePath('thumb'));\n\t\t$len = strlen($this->id);\n\t\t$info = new FileInformation();\n\t\tforeach ($ff as $f) {\n\t\t\t$info->path = $f;\n\t\t\tif (substr($info->filename, 0, $len) == $this->id){\n\t\t\t\tunlink($f);\n\t\t\t}\t\n\t\t}\t\n\t\t// let resource space do the work\n\t\t\n\t\t$s = Yii::app()->config->resourceSpaceApi.'api_import?id='.$this->id;\n\t\tif (Yii::app()->config->useCurl) {\n\t\t\tYii::log('Resource Space update through curl('.$s.')', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$run = Yii::app()->curl->run($s);\n\t\t} else {\t\t\t\n\t\t\tYii::log('Resource Space update through file_get_content('.$s.')', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$run = file_get_contents($s);\n\t\t}\t\n\t\tif ((is_object($run) && $run->hasErrors()) || (substr($run, 0, 33) != 'File added / updated for resource') ) {\n\t\t\tYii::log('Resource Space update failed.', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$this->addError('file', 'The resource space definition could not be updated.');\n\t\t} else {\n\t\t\tYii::log('Resource Space updated.', CLogger::LEVEL_INFO, 'application.models.Art.updatePreview');\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "e77df2eef2b14f6f8a9a8237b99d6e65", "score": "0.5411387", "text": "public function update($id)\n\t{\n\t\t$v = Validator::make(Input::all(), array('file|image'));\n\n\t\tif($v->fails()) return Redirect::back()->withErrors($v)->withInput();\n\n\t\t$p = Product::find($id)->update(Input::all());\n\n\t\tif(Input::hasFile('file')){\n\n\t\t\tInput::file('file')->move('uploads', 'product_'.$id.'.jpg');\n\n\t\t}\n\n\t\treturn Redirect::route('products.index')->with('alert.success', Alert::text('supp'));\n\t\t\n\t}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "c3c91d3235f8265b5d1c71432941c57e", "score": "0.0", "text": "public function destroy($id)\n {\n $action = Author::find($id);\n $action->delete();\n $action->books()->detach($id);\n if (!$action) return App::abort(400);\n\n return response()->json([\n 'message' => \"Data Berhasil Dihapus.\",\n 'data' => $action,\n ], 200);\n }", "title": "" } ]
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387755", "text": "protected function removeImageFromStorage (HCResources $resource)\n {\n $path = $this->uploadPath . $resource->id;\n\n if (Storage::has ($path)) {\n Storage::delete ($path);\n }\n }", "title": "" }, { "docid": "3f1322e69a1884d9745c5ef5f1590e48", "score": "0.7141337", "text": "public function removeResource($resourceName);", "title": "" }, { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "e8f55d4cc56465e75499a86915b35d9b", "score": "0.70428175", "text": "public function delete($resource);", "title": "" }, { "docid": "e390bf434f5cce46402b827d582cdcbe", "score": "0.7039089", "text": "public function removeResource(Resource $resource): void\n {\n if (!isset($this->resources[$resource->getUri()])) {\n return;\n }\n unset($this->resources[$resource->getUri()]);\n }", "title": "" }, { "docid": "9d416bb966c467169e3ae97e3c181868", "score": "0.63677", "text": "abstract function deleteResource(int $id);", "title": "" }, { "docid": "b9f567113f04c7ad2db0fe760a0a6fdc", "score": "0.63184243", "text": "public function unregisterResource()\n {\n Zend_Registry::get('acl')->remove($this);\n }", "title": "" }, { "docid": "86a97ef20b44d79f474926937530d353", "score": "0.63162404", "text": "public function remove($resourceId)\n {\n return $this->rResourceMixin->remove($resourceId);\n }", "title": "" }, { "docid": "2961fd7e3d8100bdb9570443ca486260", "score": "0.624805", "text": "public function destroy()\n {\n if ($this->resource) {\n sem_remove($this->resource);\n @unlink($this->filePath);\n }\n }", "title": "" }, { "docid": "13034525cd05a6a81ce72172a28a6888", "score": "0.6213014", "text": "public function delete()\n {\n $request = new StorageDeleteRequest();\n $request->setBucketName($this->bucket->getName());\n $request->setKey($this->key);\n\n [$response, $status] = $this->storage->_baseStorageClient->Delete($request)->wait();\n Utils::okOrThrow($status);\n }", "title": "" }, { "docid": "251c69886b6b7be9441be8fe7c79bf9f", "score": "0.6166032", "text": "public function destroy($id, $resource='typeProduct')\n {\n //\n }", "title": "" }, { "docid": "0145806453a1e9f5ee0809b4db0b14d3", "score": "0.61310524", "text": "public function markAsDeleted(ResolvedResource $resource);", "title": "" }, { "docid": "d3de183319816e68e04b4ba5ab69a652", "score": "0.6125602", "text": "public function wipeStorage(): void;", "title": "" }, { "docid": "ac2ff7081643a335753979289127eb7f", "score": "0.6098791", "text": "function destroy( $resource ){\n\n\n\n\n\n \n\n}", "title": "" }, { "docid": "7f77f3b95410a985ed02a0994980a5dd", "score": "0.6076961", "text": "public function deleteResource(AbstractNode $resource) : void;", "title": "" }, { "docid": "c1246d964fe6c011b7e9a2e92e2bce69", "score": "0.60498166", "text": "public function destroy($id)\n\t{\n\t\t//\n\t\t$file = \\App\\Resource::find($id)->image;\n\t\tunlink('pictures/' . $file);\n\t\t\\App\\Resource::destroy($id);\n\t\treturn Redirect::to('/');\n\t}", "title": "" }, { "docid": "e9a19d00feed0894857d58eb3e4aea34", "score": "0.6019356", "text": "protected function dropResource()\n {\n $this->dropFile('Resource', $this->getResourcePath());\n }", "title": "" }, { "docid": "6633698916692181c267e327ea427da6", "score": "0.5991417", "text": "public function rm( $path );", "title": "" }, { "docid": "4f634fd6a5cf444037bf2efc93dadfeb", "score": "0.5945026", "text": "public function clear()\n {\n \tunlink($this->_storage);\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "15a853ed70c99f4514a71c5e2d0b94aa", "score": "0.59332573", "text": "public function remove($resource)\n {\n try {\n $resourceId = $this->get($resource)->getResourceId();\n } catch (Zend_Acl_Exception $e) {\n require_once 'Zend/Acl/Exception.php';\n throw new Zend_Acl_Exception($e->getMessage(), $e->getCode(), $e);\n }\n\n $resourcesRemoved = [$resourceId];\n if (null !== ($resourceParent = $this->_resources[$resourceId]['parent'])) {\n unset($this->_resources[$resourceParent->getResourceId()]['children'][$resourceId]);\n }\n foreach ($this->_resources[$resourceId]['children'] as $childId => $child) {\n $this->remove($childId);\n $resourcesRemoved[] = $childId;\n }\n\n foreach ($resourcesRemoved as $resourceIdRemoved) {\n foreach ($this->_rules['byResourceId'] as $resourceIdCurrent => $rules) {\n if ($resourceIdRemoved === $resourceIdCurrent) {\n unset($this->_rules['byResourceId'][$resourceIdCurrent]);\n }\n }\n }\n\n unset($this->_resources[$resourceId]);\n\n return $this;\n }", "title": "" }, { "docid": "b8b5d5ca606833c889a1285814fba6f4", "score": "0.5917159", "text": "public function unlinkResource() {\n\t\t$this->resource=null;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1f9a1be4bb584e042a8ad8d688ac9917", "score": "0.59067374", "text": "public function delete() {\n if (file_exists($this->src)) unlink($this->src);\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "682325cf5de8624768bd5dbfad42738d", "score": "0.5875408", "text": "public function action_remove()\n\t{\n\t\t$this->access('admin.'.strtolower($this->_admin->resource).'.remove');\n\t\t$id = $this->request->param('id');\n\n\t\tif(!$this->request->is_ajax())\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_404;\n\t\t}\n\n\t\t// Needs to be a GET request\n\t\tif($this->request->method() != Request::GET)\n\t\t{\n\t\t\tthrow new Kohana_HTTP_Exception_403('No data was requested to be removed.');\n\t\t}\n\n\t\t$record = $this->_admin->model->where($this->_admin->primary_key, '=', $id)->find();\n\n\t\tif($record->loaded())\n\t\t{\n\t\t\tRD::set(RD::SUCCESS, ':resource #:id has been removed.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t\t$record->delete();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tRD::set(RD::WARNING, ':resource can\\'t be found.', array(\n\t\t\t\t':resource' => Inflector::singular($this->_resource),\n\t\t\t\t':id' => $id\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "16ede02ea64f8d696ab94948fa4d095a", "score": "0.5870248", "text": "public function destroyFile($resource, File $file)\n {\n $file->delete();\n return $file->{$resource};\n }", "title": "" }, { "docid": "e02a61dc8d778d6f70e60505035c99d1", "score": "0.58621585", "text": "public function onDelete(DeleteResourceEvent $event)\n {\n $em = $this->container->get('doctrine.orm.entity_manager');\n $em->remove($event->getResource());\n $event->stopPropagation();\n }", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "ee70945e791659b8782f1f156e69304e", "score": "0.5847799", "text": "public function delete()\n {\n return $this->getStorage()->delete($this->path().DIRECTORY_SEPARATOR.$this->name());\n }", "title": "" }, { "docid": "84e424b359d9d6f2b49045a0bf4df9de", "score": "0.58229584", "text": "public function destroy($id)\n {\n $productImage = ProductImage::find($id);\n $productImage->delete();\n $fullPath = str_replace(\"storage\",\"/public\",$productImage->path);\n Storage::delete($fullPath);\n return $productImage;\n }", "title": "" }, { "docid": "e47bb1b7bccbeb8651920ef7986252ae", "score": "0.5819071", "text": "protected function destroy(User $resource)\n {\n }", "title": "" }, { "docid": "2d75567656921f9588d0f6a09e30ea8c", "score": "0.5816774", "text": "public function testItShouldRemoveSpecifiedResource()\n {\n $this->json['data'] = [];\n $this->json('DELETE', $this->base_url . $this->getId(), [], $this->getHeaders())\n ->assertStatus(200)\n ->assertJsonStructure($this->json);\n }", "title": "" }, { "docid": "633ae266a2f875f0726e79f6358f15aa", "score": "0.58142436", "text": "public function remove(string $key) {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "e53013c127607b9b9763311d1d78cf4b", "score": "0.58067673", "text": "public function detach()\n {\n if (!isset($this->resource)) {\n return null;\n }\n $resource = $this->resource;\n unset($this->resource);\n $this->size = null;\n $this->uri = null;\n $this->readable = false;\n $this->seekable = false;\n $this->writable = false;\n return $resource;\n }", "title": "" }, { "docid": "567e641bf24d438f1c69a4a617fddcb1", "score": "0.57947505", "text": "function delete($resource, $headers = array())\n {\n $result = $this->client->delete($this->build_url($resource), [\n 'headers' => array_merge([\n 'Authorization' => $this->getBearer()\n ], $headers)\n ]);\n return $result;\n }", "title": "" }, { "docid": "5bc196208c1decbb644cd5cece6edd3f", "score": "0.5773983", "text": "public function unlink($uri) {\n $this->uri = $uri; // set instance URI\n return unlink($this->get_local_path());\n }", "title": "" }, { "docid": "f97458f1a249bea8589e37ce4a19458a", "score": "0.5770823", "text": "public function destroy($id)\n {\n// $info = $request->img;\n// dd($info);\n// dd($id);\n $info = Zhou::where('id',$id)->select('file')->first()->toArray();\n// dd('/storage/'.$info['file']);\n unlink('./storage/'.$info['file']);\n $data = Zhou::where('id',$id)->delete();\n\n\n// dd();\n if($data){\n return json_encode(['code'=>200]);\n }\n }", "title": "" }, { "docid": "1dee477f6e099b050eb54e8469548631", "score": "0.57649726", "text": "public function destroy($id)\n {\n $slider=Slider::find($id);\n if($slider->image)\n {\n if(Storage::exists('public/slider/' . $slider->image)){\n $delete= Storage::delete('/public/slider/' . $slider->image); \n }\n }\n $slider->delete();\n alert::success('slider Deleted Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "ddf3faf7670af66339c535dd8de7c088", "score": "0.57453483", "text": "public function destroy(Request $request)\n {\n Storage::delete($request->path);\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "aa96241e32a2910707191042a72208b3", "score": "0.5733017", "text": "public function destroy(Resource $resource): JsonResponse\n {\n Storage::disk('article')->delete($resource->url);\n $resource->delete();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.deleted'),\n 'code' => 200\n ]);\n }", "title": "" }, { "docid": "30d12407d208c7245c67fe3e3c0e6844", "score": "0.5715374", "text": "public function remove (object $entity);", "title": "" }, { "docid": "38e5a4eab7d9a854a4348b6f78b1554b", "score": "0.571345", "text": "public function destroy($resource, $id)\n {\n $this->repository->delete($id);\n return response(null, 204);\n }", "title": "" }, { "docid": "148f851e6e394ade1c2f9c6b118d123d", "score": "0.5697347", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['status' => 'ok']);\n }", "title": "" }, { "docid": "dfafd8026a650244c991d50f54215453", "score": "0.569202", "text": "public function free():void { unlink($this->getfilename()); }", "title": "" }, { "docid": "405f641d9f45ae5d1d63de363880f02b", "score": "0.5691377", "text": "public function destroy($id)\n\n {\n\n $product = Product::findOrFail($id);\n\n\n\n// unlink(public_path(). $icon->file);\n\n\n\n// $photo->delete();\n//\n// $icon->delete();\n Photo::where('product_id',$id)->delete();\n $product->delete();\n\n\n\n\n\n return redirect()->route('admin.products.index');\n\n }", "title": "" }, { "docid": "5b249643a990832f9ecd53f247c87bb4", "score": "0.5689915", "text": "public function destroy($id)\n {\n $find = DB::table('suppliers')->where('id',$id)->first();\n $photo = $find->photo;\n\n if($photo){\n unlink($photo);\n DB::table('suppliers')->where('id',$id)->delete();\n }else{\n DB::table('suppliers')->where('id',$id)->delete();\n }\n }", "title": "" }, { "docid": "c0f1056876f778bb47bd815edbae240a", "score": "0.5686687", "text": "public function destroy($id)\n {\n //\n\n $query = Picture::find($id);\n $collections = collect($query);\n $filename = $collections->get('title');\n // default is config/filesystems.php\n $contents = Storage::get($filename);\n Storage::delete($filename);\n Picture::destroy($id);\n \n return redirect('picture');\n //return $contents;\n \n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "3b5ab38f0f5c2e97d3b02bce08803b25", "score": "0.56787795", "text": "public function destroy($id)\n {\n \n $imageUpload = Image::findOrfail($id);\n\n File::delete([\n public_path(('/images/').$imageUpload->imageName),\n ]);\n $imageUpload->delete();\n }", "title": "" }, { "docid": "63bd4ba9d20687d38d658987b149d5fb", "score": "0.5676478", "text": "public function deleteResource(\n $uri = \"\",\n $headers = []\n );", "title": "" }, { "docid": "9821f26046d4f47083ca51bd2deff710", "score": "0.5674362", "text": "public function destroy($id)\n {\n //\n $item = post::find($id);\n \n$item->tags()->detach();\n $image_path = $item->file; // the value is : localhost/project/image/filename.format\n \n //Image::destroy($image_path);\n \n $item->delete();\n return redirect('post');\n }", "title": "" }, { "docid": "3d074a3589196f3e2c63d1b79c3a54f2", "score": "0.5669239", "text": "public function destroy()\n {\n $file = pathinfo(request()->getContent());\n $storagePath = $this->baseStoragePath();\n $path = \"{$storagePath}/{$file['basename']}\";\n\n $fileDeleted = Storage::disk(config('canvas.storage_disk'))->delete($path);\n\n if ($fileDeleted) {\n return response()->json([], 204);\n }\n }", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.5658867", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "a81365633fd5b106741f1068f03a568a", "score": "0.5654999", "text": "public function remove(object $entity): void;", "title": "" }, { "docid": "f3ecd01b9c9cfcc917a40e1827e8d6a1", "score": "0.56522495", "text": "public function del() {\n sem_acquire($this->__mutex); //block until released\n @shm_remove_var($this->__shm, $this->__key);\n sem_release($this->__mutex); //release mutex\n }", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.5646982", "text": "public abstract function remove();", "title": "" }, { "docid": "7257252b8ba3d014ab6c945b9b1f8774", "score": "0.5646248", "text": "public function destroy($id)\n {\n\n $slider = Slider::whereId($id)->first();\n $image = $slider->slider_image;\n $path = 'public/slider_images/'; \n Storage::delete( $path . $image); \n \n $data = Slider::findOrFail($id);\n $data->delete();\n\n Session::flash('success', 'Slider deleted successfully..');\n return redirect()->route('all.slider');\n }", "title": "" }, { "docid": "884fba4384b6fac636fcb5fd3a0b8119", "score": "0.56440735", "text": "public function deletePhoto($resource, $id)\n {\n if (($resource === 'user') || ($resource === 'group') || ($resource === 'memo')) {\n\n //Validate Model is valid and return valid response\n list($param, $model) = $this->validateModelIsValid($resource, $id);\n //Get Image Name\n $image = $model->img_url;\n\n //Delete Avatar and Thumbnail\n if ($image != null) {\n Storage::delete(\"/$param/avatars/thumbnails/$image\");\n Storage::delete(\"/$param/avatars/$image\");\n }\n //Update Profile Photo Field To Null\n $model->img_url = null;\n //Save in Database\n $model->save();\n //Return Response\n return response()->json($model, 202);\n }\n\n return response('Invalid request', 400);\n\n }", "title": "" }, { "docid": "684caecb3cebeb517274f1dbe758544f", "score": "0.5639566", "text": "abstract public function remove($scope = null, $pref = null);", "title": "" }, { "docid": "f12fb388a946ae58a0b65aa86a9ca9f5", "score": "0.56333244", "text": "public function delete(string $path);", "title": "" }, { "docid": "83377e4a1bcc3dc2e77329262b4d9a6d", "score": "0.5628369", "text": "public function delete()\n {\n fclose($this->inputStream);\n }", "title": "" }, { "docid": "9db585fcb135fe60165f9be69e476584", "score": "0.5622851", "text": "private function _remove($id)\n\t{\n\t\t$store = $this->model_store->find($id);\n\n\t\tif (!empty($store->IMAGE)) {\n\t\t\t$path = FCPATH . '/uploads/store/' . $store->IMAGE;\n\n\t\t\tif (is_file($path)) {\n\t\t\t\t$delete_file = unlink($path);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn $this->model_store->remove($id);\n\t}", "title": "" }, { "docid": "3cfb84429aef8127ecc19fa5934511fe", "score": "0.56167203", "text": "public function deleteTagging($resource)\n {\n $taggingList = $this->getEm()->createQueryBuilder()\n ->select('t')\n ->from('UnifikDoctrineBehaviorsBundle:Tagging', 't')\n ->where('t.resourceType = :type')\n ->setParameter('type', $resource->getResourceType())\n ->andWhere('t.resourceId = :id')\n ->setParameter('id', $resource->getId())\n ->getQuery()\n ->getResult();\n\n foreach ($taggingList as $tagging) {\n $this->getEm()->remove($tagging);\n }\n }", "title": "" }, { "docid": "8bd2c06eeb1572fe4c48014cc912a6d6", "score": "0.5607892", "text": "public function delete() {\n @unlink($this->path());\n return parent::delete();\n }", "title": "" }, { "docid": "14eedb590aed3088ebca2d6e88f88b70", "score": "0.55937696", "text": "public function destroy($id)\n {\n if ($id) {\n $storagek = Storagek::find($id);\n unlink(public_path('storage/images/').$storagek->file);\n $storagek->delete();\n return response()->json([\n \"success\" => true,\n \"message\" => \"File successfully delete\",\n ]);\n } else {\n return response()->json(['Err' => 'id no found']);\n }\n\n\n\n //\n }", "title": "" }, { "docid": "1b06eb968537fe78419acb4959d62e6d", "score": "0.55909395", "text": "public function destroy(Request $request, $id)\n\t{\n\t\t$storage = Storage::where('organization_id', $request->user()->organization_id)->where('storage_id', $id)->first();\n\n\t\tif ($storage) {\n\t\t\t$storage->delete();\n\t\t\tSession::flash('success', 'Склад была успешно удален из справочника!');\n\t\t} else {\n\t\t\tSession::flash('error', 'Склад не найден в справочнике!');\n\t\t}\n\n\t\treturn redirect()->route('storage.index');\n\t}", "title": "" }, { "docid": "eb981a32d53ea8153aa2cec46a4f509f", "score": "0.5581215", "text": "public function destroy($id)\n {\n// if(Auth::user()->role == User::ROLE_SUPERADMIN) {\n $product = ProductItem::findOrFail($id);\n if($product->image_name != '') {\n $image_path = app_path(\"../../files/product/\" . $product->image_name);\n unlink($image_path);\n }\n\n ProductItem::destroy($id);\n\n Alert::success('Your data already deleted !', 'Success !');\n\n return redirect('admin/product');\n// }\n }", "title": "" }, { "docid": "b3f61ce5e85b70bb0bf7f3a5ad6064ba", "score": "0.55771476", "text": "function remove(){\n shm_remove($this->id);\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "1f9a85d3b28293dfe2336fc2953ad59f", "score": "0.55613", "text": "public function destroy($id)\n {\n // get divide\n $divide = Divide::findOrFail($id);\n \n File::delete(public_path('image/') . $divide->img);\n \n if($divide->delete()) {\n return new DivideResource($divide);\n }\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "82eeede68c38b70a29849c8d452c2f6a", "score": "0.5556357", "text": "public function destroy($id)\n { \n $product = Item::find($id);\n $image = $product->image;\n\n $basename ='img/products/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n if($basename != 'img/products/img_place_holder_product.png'){\n unlink($basename);\n }\n }\n $product->delete();\n\n Session::flash('success','Product Deleted');\n return redirect()->back();\n }", "title": "" }, { "docid": "7cdf7f14d455dbb5d9ed3ea3b44142b0", "score": "0.55545616", "text": "protected static function removeComponent()\n {\n (new Filesystem)->delete(\n resource_path('assets/js/components/ExampleComponent.vue')\n );\n }", "title": "" }, { "docid": "7488846bbe831c2c5afdad208317b7bd", "score": "0.5543239", "text": "public function destroy(File $file)\n {\n //\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', $file);\n }", "title": "" }, { "docid": "35753424e21be7d9c22ced54d549e939", "score": "0.5540951", "text": "public function remove()\n\t{\n\t\tif(self::exists($this->name))\n\t\t{\n\t\t\t$this->value = false;\n\t\t\t$this->encodedValue = null;\n\t\t\t$this->sendHeader();\n\n\t\t\t$cookiePath = $this->getMetaFilePath();\n\n\t\t\tif(File::exists($cookiePath))\n\t\t\t\tFile::remove($cookiePath);\n\t\t}\n\t}", "title": "" }, { "docid": "9d72fe7c299d9bc6b0d19ba6bb397fa3", "score": "0.55405164", "text": "public function destroy($id)\n {\n $product = Product::where('id', $id)->first();\n if ($product->image) {\n unlink($product->image);\n }\n Product::where('id', $id)->delete();\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "d434e2cdc40338f523a40bcd0c8522a0", "score": "0.55343556", "text": "public function delete() {\n $this->client->deleteData($this->uri);\n }", "title": "" }, { "docid": "66928b15fb30f2f5cf746449308643ba", "score": "0.5534244", "text": "public function remove()\n {\n $this->_context->builder->waveletRemove($this->waveId, $this->waveletId);\n }", "title": "" }, { "docid": "bd7d7fbce770fd39cf8081927084d5c3", "score": "0.55334973", "text": "public function destroy($id)\n {\n $brand = Brand::findOrFail($id);\n\n if (Storage::disk('public')->exists('Brand/'.$brand->brand_image)) {\n Storage::disk('public')->delete('Brand/'.$brand->brand_image);\n }\n $brand->delete();\n }", "title": "" }, { "docid": "a3bbd69ef2b058074f49c04b76cdbd14", "score": "0.55301565", "text": "public function delete() {\n if ($this->_filepath and is_writable($this->_filepath)) {\n unlink($this->_filepath);\n }\n }", "title": "" }, { "docid": "98e71b5db6e284bbc48862c743eb819b", "score": "0.552751", "text": "public function destroy($id)\n {\n //\n $makale_resim = Article::find($id)->img->name;\n @unlink(public_path(\"uploads/\".$makale_resim));\n @unlink(public_path(\"uploads/thumb_\".$makale_resim));\n Img::where(\"imageable_id\",$id)->where(\"imageable_type\",\"App\\Article\")->delete();\n Article::destroy($id);\n Session::flash(\"durum\",1);\n return redirect(\"/admin/haber\");\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
f8e7a53e66eae12d81b6c6b06a1a37cf
Works to get the first Elt of most any query that is done... Inefficient but reusablity of code is going to kill me here...
[ { "docid": "87b2265cbe1ff571a1c8a04661e67063", "score": "0.49479476", "text": "function getAnElt($choice){\n\tif( $choice == 1){\n\t\t$query = \"SELECT IID, COUNT(DISTINCT SID) as totalStudents\n FROM students\n GROUP BY IID\n ORDER BY totalStudents ASC\n LIMIT 1;\n\t\";\n\t} else if ($choice == 2){\n\t\t$query = \"SELECT SID\n\tFROM students\n\tORDER BY SID DESC\n\tLIMIT 1;\n\t\";\n\t}\n\t$result = QueryDB($query)[0];\n\tif ($choice == 2)\n\t\t$result++;\n\treturn $result;\n}", "title": "" } ]
[ { "docid": "af52b88facbf3ad442141459903a00c7", "score": "0.5741275", "text": "function query_first($result = -1) {\n if ($result != -1) {\n $query = $this->query($result);\n }\n $out = $this->fetch_array($query);\n $this->free_result($query);\n return $out;\n unset($result);\n }", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.5590239", "text": "public function first();", "title": "" }, { "docid": "dd4be41aa2c9731aed157f659307c3d6", "score": "0.557125", "text": "public function first() {\n\t\t$this->limit = 'LIMIT 0,1';\n\t\t$sql = $this->query_build();\n\t\t$this->saved_queries = $sql;\n\t\tglobal $wpdb;\n\t\t$data = $wpdb->get_row( $sql, ARRAY_A );\n\t\tif ( is_null( $data ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "0bb5e13ddc00310b6c8a029000358b79", "score": "0.55193245", "text": "function Get_LEAST($select , $table , $order ,$limt=5)\n{\n global $conn ;\n $stmt3 = $conn->prepare(\"SELECT $select FROM $table ORDER BY $order DESC LIMIT $limt\") ;\n $stmt3->execute();\n $rows = $stmt3->fetchAll();\n return $rows;\n}", "title": "" }, { "docid": "0fc9eaeef31c0143c06859b8b8cf8b57", "score": "0.5516395", "text": "function first($defaultResult = null);", "title": "" }, { "docid": "3979432e2915d1727bf6e852d2f0831a", "score": "0.54734164", "text": "function get_lowest_ndx($position)\r\n{\r\n\tglobal $db;\r\n\r\n\t$sql = \"SELECT ndx\r\n\t\tFROM \" . K_BLOCKS_TABLE . \"\r\n\t\tWHERE position = '\" . $position . \"'\r\n\t\tORDER BY ndx ASC LIMIT 1\";\r\n\r\n\t$result = $db->sql_query($sql);\r\n\t$index_start = (int) $db->sql_fetchfield('ndx');\r\n\t$db->sql_freeresult($result);\r\n\t\r\n\treturn ($index_start);\r\n}", "title": "" }, { "docid": "9172e8f82e5c52bf63b9ba1722d79b6c", "score": "0.54683334", "text": "function get_next_excerpt($con) {\n // Get the excerpts that have the least amount of results\n $result = mysqli_query($con, \"SELECT * FROM excerpts ORDER BY totalResults ASC\");\n $least_results = mysqli_fetch_array($result)['totalResults'];\n $result = mysqli_query($con, \"SELECT * FROM excerpts \n WHERE totalResults = $least_results ORDER BY RAND()\");\n if (!$result) {\n die('Error: ' . mysqli_error($con));\n }\n return mysqli_fetch_array($result);\n }", "title": "" }, { "docid": "e28ec03f889f82ecbe3133cfd02f27d3", "score": "0.5464894", "text": "private function get_rows_on_first_fetch($table) {\n\n\t\t// In future, we could run over the table definition; if it is all non-massive defined lengths, we could base a calculation on that.\n\t\n\t\tif ($this->table_prefix_raw.'term_relationships' == $table) {\n\t\t\t// This table is known to have very small data lengths\n\t\t\t$rows = 100000;\n\t\t} else {\n\t\t\t$rows = 1000;\n\t\t}\n\t\n\t\treturn $rows;\n\t\n\t}", "title": "" }, { "docid": "4216f336bbf9ff21c65b7bf2c05d492e", "score": "0.5464537", "text": "public function first(){\r\n return reset($this->_results);\r\n }", "title": "" }, { "docid": "15bb7c79c8db1d5bf2ea824bc838e3d5", "score": "0.54591006", "text": "public function first(){\n $return = $this->limit(0,1)->getData();\n $this->reInit();\n return $return->fetch();\n }", "title": "" }, { "docid": "9a1539c4e3fb71803f03dfd6be21df50", "score": "0.5455993", "text": "function firstOrFail();", "title": "" }, { "docid": "16107502c87b5bf97816fb40dd12a54b", "score": "0.5443276", "text": "protected function get_first_row(){}", "title": "" }, { "docid": "8a6b5f358463bf96335ca73dc0664896", "score": "0.5429163", "text": "public function getFirst() {\n\t\t$this->initialize();\n\t\treset($this->resultArray);\n\t\treturn $this->current();\n\t}", "title": "" }, { "docid": "53926eab25b3a2e608240a864bc7bdee", "score": "0.5408209", "text": "public function first()\n { \n $select = $this->prepare_select_query();\n $query = $this->prepare_query();\n\n $final_query = \"SELECT {$select} FROM {$query}\";\n //var_dump($final_query);\n //die;\n\n global $wpdb;\n return $wpdb->get_row(\n $wpdb->prepare($final_query, $this->params_array)\n );\n }", "title": "" }, { "docid": "62a12ae7a55eccc649c6e6459bb6048c", "score": "0.5395253", "text": "public function getFirstResult()\n {\n return $this->firstResult;\n }", "title": "" }, { "docid": "62a12ae7a55eccc649c6e6459bb6048c", "score": "0.5395253", "text": "public function getFirstResult()\n {\n return $this->firstResult;\n }", "title": "" }, { "docid": "19aeb9a0bd659e97dd0ef7ca3cfe3786", "score": "0.5390882", "text": "function getPATWithLowest(){\n $moduleLeaderClass = new DatabaseTable('lecturers');\n $studentClass = new DatabaseTable('students');\n $moduleLeaders = $moduleLeaderClass->findAll();\n\n $ml = $moduleLeaders->fetch();\n\n $lowestPATvalue = PHP_INT_MAX;\n $currentPATvalue = 0;\n $lowestPATId = $ml['luid'];\n\n $students = $studentClass->findAll();\n while($student = $students->fetch()){\n if($student['puid']==$ml['luid']){\n $currentPATvalue++;\n }\n }\n if($lowestPATvalue>$currentPATvalue){\n $lowestPATvalue = $currentPATvalue;\n $lowestPATId = $ml['luid'];\n }\n\n while($ml = $moduleLeaders->fetch()){\n $currentPATvalue = 0;\n $students = $studentClass->findAll();\n\n while($student = $students->fetch()){\n if($student['puid']==$ml['luid']){\n $currentPATvalue++;\n }\n }\n if($lowestPATvalue>$currentPATvalue){\n $lowestPATvalue = $currentPATvalue;\n $lowestPATId = $ml['luid'];\n }\n }\n return $lowestPATId;\n }", "title": "" }, { "docid": "1967083d41671da0689ae758cbb885a3", "score": "0.5350921", "text": "function getEarliestLoggedInTeam() \n {\n $retval = \"\";\n $query = \"SELECT * FROM $this->tableName WHERE timeLoggedIn > 0 ORDER BY timeLoggedIn DESC\";\n $result = mysql_query($query);\n if ($row = mysql_fetch_object($result)) \n {\n $retval = $row->Name;\n }\n\n mysql_free_result($result);\n return $retval;\n }", "title": "" }, { "docid": "db89e28d8941d8cf98babe35c8720d74", "score": "0.53340584", "text": "protected function queryFirst($sql) {\n $result = $this->query($sql);\n \n\t\t\n\t\t if($result!=NULL)\n\t\t\treturn $result[0];\n }", "title": "" }, { "docid": "b4ef436504675130c00b071426871145", "score": "0.5305704", "text": "function trouver_min($tableau) {\n $min = $tableau[0];\n\n foreach ($tableau as $element) {\n if ($element < $min) {\n $min = $element;\n }\n }\n\n return $min;\n}", "title": "" }, { "docid": "b4ef436504675130c00b071426871145", "score": "0.5305704", "text": "function trouver_min($tableau) {\n $min = $tableau[0];\n\n foreach ($tableau as $element) {\n if ($element < $min) {\n $min = $element;\n }\n }\n\n return $min;\n}", "title": "" }, { "docid": "903dd2749557eef8ad7db6197d289244", "score": "0.5276605", "text": "function first();", "title": "" }, { "docid": "903dd2749557eef8ad7db6197d289244", "score": "0.5276605", "text": "function first();", "title": "" }, { "docid": "b5fccde3d19e355a0a85e90d5ec1b06d", "score": "0.52486086", "text": "public function first(){\n\t\treturn $this->results()[0];\n\t}", "title": "" }, { "docid": "213008604ef7abf11bb3e47f7b823b16", "score": "0.52369577", "text": "function prev_entry()\n {\n global $IN, $TMPL, $LOC, $FNS, $REGX, $DB, $LANG;\n \n\t\tif ($IN->QSTR == '')\n\t\t{\n\t\t return;\n }\n \n $qstring = $IN->QSTR;\n \n\t\t// --------------------------------------\n\t\t// Remove page number \n\t\t// --------------------------------------\n\t\t\n\t\tif (preg_match(\"#/P\\d+#\", $qstring, $match))\n\t\t{\t\t\t\n\t\t\t$qstring = $FNS->remove_double_slashes(str_replace($match['0'], '', $qstring));\n\t\t}\n \n $sql = \"SELECT t1.entry_id, t1.title, t1.url_title\n \t\tFROM exp_weblog_titles t1, exp_weblog_titles t2, exp_weblogs \n \t\tWHERE t1.weblog_id = exp_weblogs.weblog_id \";\n \t\t\n if (is_numeric($qstring))\n {\n\t\t\t$sql .= \" AND t1.entry_id != '$qstring' AND t2.entry_id = '\".$DB->escape_str($qstring).\"' \";\n }\n else\n {\n\t\t\t$sql .= \" AND t1.url_title != '$qstring' AND t2.url_title = '\".$DB->escape_str($qstring).\"' \";\n }\n \n\t\t$timestamp = ($TMPL->cache_timestamp != '') ? $LOC->set_gmt($TMPL->cache_timestamp) : $LOC->now;\n\n\t\t$sql .= \" AND t1.entry_date < t2.entry_date AND (t1.expiration_date = 0 || t1.expiration_date > \".$timestamp.\") \";\n \n \t\t\n if (USER_BLOG === FALSE)\n {\n \t$sql .= \" AND exp_weblogs.is_user_blog = 'n' \";\n \n if ($blog_name = $TMPL->fetch_param('weblog'))\n {\n $sql .= $FNS->sql_andor_string($blog_name, 'blog_name', 'exp_weblogs');\n }\n }\n else\n {\n \t$sql .= \" AND weblog_id = '\".UB_BLOG_ID.\"' \";\n }\n \t\t\n \t\t\n $sql .= \" ORDER BY t1.entry_date desc LIMIT 1\";\n \n $query = $DB->query($sql);\n \n if ($query->num_rows == 0)\n {\n \treturn;\n }\n \n\t\t$path = (preg_match(\"#\".LD.\"path=(.+?)\".RD.\"#\", $TMPL->tagdata, $match)) ? $FNS->create_url($match['1']) : $FNS->create_url(\"SITE_INDEX\");\n\t\t\n\t\t$path .= '/'.$query->row['url_title'].'/';\n\t\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"path=.+?\".RD.\"#\", $path, $TMPL->tagdata);\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"title\".RD.\"#\", $query->row['title'], $TMPL->tagdata);\n\t\t\n return $FNS->remove_double_slashes($TMPL->tagdata);\n }", "title": "" }, { "docid": "1b6842dded9e7b47141365d239280bbf", "score": "0.52327955", "text": "function findStart($limit,$numrows) \n { \n\t if ((!isset($_GET['p'])) || ($_GET['p'] == \"1\")) \n { \n \t $start = 0; \n \t $_GET['p'] = 1; \n } \n else \n { \n $start = ($_GET['p']-1) * $limit; \n } \n\t if($start>$numrows)\n\t {\n\t \t $start = 0; \n\t }\n return $start; \n }", "title": "" }, { "docid": "296c4d8104cb4ca272dba1a3ea0bd4f0", "score": "0.5171196", "text": "public function first(): LeadType;", "title": "" }, { "docid": "7c10d6f0d9b0c8a6dc5ce0b6e7d18e0a", "score": "0.51602083", "text": "public function first()\n {\n $this->limit(1);\n $results = call_user_func_array(array($this, 'get'), func_get_args());\n if($results)\n return array_shift($results);\n return false;\n }", "title": "" }, { "docid": "a4e7b9cfc4cf63562a12c60a35be90cf", "score": "0.5138527", "text": "public function get_last_ten_entries()\n {\n // return $query->result();\n }", "title": "" }, { "docid": "997cb2de2cd9e7e516511cd8979b0ed7", "score": "0.51375604", "text": "function fetch_first_row($query_string) {\n $result = $this->query($query_string);\n return $this->fetch_array($result);\n }", "title": "" }, { "docid": "f909be7ce5bf5c6558a48b340f38ea00", "score": "0.5126352", "text": "public function first(){\n return $this->result()[0];\n}", "title": "" }, { "docid": "460608aeed856661b5216cd9f8d2d687", "score": "0.51102453", "text": "public function first() {\n reset($this->results);\n return current($this->results);\n }", "title": "" }, { "docid": "5b941829ecb7f60b94db968468f70f5e", "score": "0.5106528", "text": "function find_reklam( $domain, $limit = NULL )\n{\n $time = time();\n\n if( $limit )\n {\n return find_objects_by_sql(\"SELECT * FROM `schedule` WHERE domain='$domain' AND startdate<$time AND enddate>$time ORDER BY score DESC, startdate LIMIT $limit\");\n }\n\n return find_objects_by_sql(\"SELECT * FROM `schedule` WHERE domain='$domain' AND startdate<$time AND enddate>$time ORDER BY score DESC, startdate\");\n\n}", "title": "" }, { "docid": "6eb72b6a93b48ee1361dad95fb88ff09", "score": "0.5090315", "text": "public function first()\n {\n return reset($this->results);\n }", "title": "" }, { "docid": "5d8ff1173156bd8edde516ffa0b7ad47", "score": "0.5075128", "text": "function getNewestFromDb(){\r\n\t// return a resultset containing only the newest post\r\n\t$sql = \"SELECT idpost FROM facebook ORDER BY date DESC LIMIT 1\";\r\n\treturn query($sql)->fetch_assoc();\r\n}", "title": "" }, { "docid": "2c981a1c7a0047b6fc11629844cc79f4", "score": "0.50739473", "text": "function getLeastWorkedTester()\n{\n $conn = connect();\n if (!$conn) {\n print \"<br> connection failed:\";\n exit;\n }\n //Get the number of bugs assigned to the least busy tester\n $getMin = \"select MIN(NUM_ASSIGNED) as MINIMUM from squasher_user where ROLE = 'TESTER' \";\n $query = oci_parse($conn, $getMin);\n oci_execute($query);\n $row_min = oci_fetch_array($query, OCI_BOTH);\n\n $minAssigned = $row_min['MINIMUM'];\n\n //Choose a tester that has the minimum number of bugs assigned to them\n $getUsername = \"select username as ASSIGNEE from squasher_user where ROLE = 'TESTER' and NUM_ASSIGNED = $minAssigned and ROWNUM <= 1\";\n $query = oci_parse($conn, $getUsername);\n oci_execute($query);\n $row_assignee = oci_fetch_array($query, OCI_BOTH);\n $assignee = $row_assignee['ASSIGNEE'];\n return $assignee;\n}", "title": "" }, { "docid": "afa762205451fc096e98a2a4c72d0d92", "score": "0.5053047", "text": "public function getFirstRowIndex()\r\n {\r\n return ($this->_page - 1) * $this->_recordsPerPage;\r\n }", "title": "" }, { "docid": "b3749fd275be0dd7ae9b66906c971f05", "score": "0.50389224", "text": "function load_previous_next_id() {\n\t\tglobal $conf;\n\t\t\n\t\t$this->errno = 0;\n\t\t\n\t\t$sql = \"SELECT MAX(rowid)\";\n\t\t$sql .= \" FROM \" . MAIN_DB_PREFIX . \"bordereau_espece\";\n\t\t$sql .= \" WHERE rowid < \" . $this->id;\n\t\t$sql .= \" AND entity = \" . $conf->entity;\n\t\t\n\t\t$result = $this->db->query ( $sql );\n\t\tif (! $result) {\n\t\t\t$this->errno = - 1035;\n\t\t}\n\t\t$row = $this->db->fetch_row ( $result );\n\t\t$this->previous_id = $row [0];\n\t\t\n\t\t$sql = \"SELECT MIN(rowid)\";\n\t\t$sql .= \" FROM \" . MAIN_DB_PREFIX . \"bordereau_espece\";\n\t\t$sql .= \" WHERE rowid > \" . $this->id;\n\t\t$sql .= \" AND entity = \" . $conf->entity;\n\t\t\n\t\t$result = $this->db->query ( $sql );\n\t\tif (! $result) {\n\t\t\t$this->errno = - 1035;\n\t\t}\n\t\t$row = $this->db->fetch_row ( $result );\n\t\t$this->next_id = $row [0];\n\t\t\n\t\treturn $this->errno;\n\t}", "title": "" }, { "docid": "065b9e124f845a7ce54eb1e8e7cd94a0", "score": "0.5038767", "text": "public function firstDcEnergy($blk,$dev,$st,$sp,$table)\n\t{\n\t\t$value=0;\n\t\t$sclqry=\"select MinEnergy as value from \".$table.\" where ts='\".$st.\"' and Block='\".$blk.\"' and Device='\".$dev.\"' and MinEnergy!='nan' and MinEnergy >0 limit 0,1\";\n\t\t//echo $sclqry.\"<br>\";\n\t\t$sq=mysql_query($sclqry);\n\t\t$numq=mysql_num_rows($sq);\n\t\tif($numq!=0)\n\t\t{\n\t\t\t$fetchv=mysql_fetch_assoc($sq);\n\t\t\t$value=$fetchv['value'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sclqry=\"select ts,value+0.0 as value from scada_latest_igate_data where ts >= '\".$st.\"' and ts < '\".$sp.\"' and blockname='\".$blk.\"' and device_name='\".$dev.\"' and field='EA+' and value!='nan' and value >0 limit 0,1\";\n\t\t\t$sq=mysql_query($sclqry);\n\t\t\t$numq=mysql_num_rows($sq);\n\t\t\tif($numq!=0)\n\t\t\t{\n\t\t\t\t$fetchv=mysql_fetch_assoc($sq);\n\t\t\t\t$value=$fetchv['value'];\n\t\t\t\t$insq=\"Insert into inverter_dcframe_report (ReportDate,ts,Block,Device,MinEnergy) values (now(),'\".$st.\"','\".$blk.\"','\".$dev.\"','\".$value.\"') ON DUPLICATE KEY UPDATE MinEnergy='\".$value.\"'\";\n\t\t\t\tmysql_query($insq) or die(mysql_error());\n\t\t\t}\n\t\t}\n\t\treturn $value;\n\t\t\n\t}", "title": "" }, { "docid": "b1a3ea4b07757424a949700d8936b850", "score": "0.5037426", "text": "function min_id()\n\t{\n\t\t$this->openDb();\n\t\t$query = \"SELECT min_id FROM persistEntries;\";\n\t\t$result = mysql_query($query);\n\t\t$tbl = mysql_fetch_array($result);\n\t\t$min_id = $tbl['min_id'];\n\t\t$this->closeDb();\n\t\treturn $min_id;\n\t}", "title": "" }, { "docid": "aa46a60b87f9f333dbf87453eda4b575", "score": "0.5030353", "text": "public function first()\n{\n return $this->results()[0];\n\n}", "title": "" }, { "docid": "8f8555e9c0719c5205a3e56f9b9a2948", "score": "0.50185895", "text": "public function findWhereFirst();", "title": "" }, { "docid": "88e738b6d3b802e25447b317f60c4585", "score": "0.50149536", "text": "public function getFirst();", "title": "" }, { "docid": "88e738b6d3b802e25447b317f60c4585", "score": "0.50149536", "text": "public function getFirst();", "title": "" }, { "docid": "88e738b6d3b802e25447b317f60c4585", "score": "0.50149536", "text": "public function getFirst();", "title": "" }, { "docid": "8fc7863ae2b2123bfbbed841afada8ca", "score": "0.5006087", "text": "function next_entry()\n {\n global $IN, $TMPL, $LOC, $FNS, $REGX, $DB, $LANG, $FNS;\n \n\t\tif ($IN->QSTR == '')\n\t\t{\n\t\t return;\n }\n \n $qstring = $IN->QSTR;\n \n\t\t// --------------------------------------\n\t\t// Remove page number \n\t\t// --------------------------------------\n\t\t\n\t\tif (preg_match(\"#/P\\d+#\", $qstring, $match))\n\t\t{\t\t\t\n\t\t\t$qstring = $FNS->remove_double_slashes(str_replace($match['0'], '', $qstring));\n\t\t}\n \n $sql = \"SELECT t1.entry_id, t1.title, t1.url_title \n \t\tFROM exp_weblog_titles t1, exp_weblog_titles t2, exp_weblogs \n \t\tWHERE t1.weblog_id = exp_weblogs.weblog_id \";\n \t\t\n if (is_numeric($qstring))\n {\n\t\t\t$sql .= \" AND t1.entry_id != '$qstring' AND t2.entry_id = '\".$DB->escape_str($qstring).\"' \";\n }\n else\n {\n\t\t\t$sql .= \" AND t1.url_title != '$qstring' AND t2.url_title = '\".$DB->escape_str($qstring).\"' \";\n }\n \n\t\t$timestamp = ($TMPL->cache_timestamp != '') ? $LOC->set_gmt($TMPL->cache_timestamp) : $LOC->now;\n \t\t\n\t\t$sql .= \" AND t1.entry_date > t2.entry_date AND (t1.expiration_date = 0 || t1.expiration_date > \".$timestamp.\") \";\n \t\t\n if (USER_BLOG === FALSE)\n {\n \t$sql .= \" AND exp_weblogs.is_user_blog = 'n' \";\n \n if ($blog_name = $TMPL->fetch_param('weblog'))\n {\n $sql .= $FNS->sql_andor_string($blog_name, 'blog_name', 'exp_weblogs');\n }\n }\n else\n {\n \t$sql .= \" AND weblog_id = '\".UB_BLOG_ID.\"' \";\n }\n \t\t\n $sql .= \" ORDER BY t1.entry_date LIMIT 1\";\n \n $query = $DB->query($sql);\n \n if ($query->num_rows == 0)\n {\n \treturn;\n }\n \n\t\t$path = (preg_match(\"#\".LD.\"path=(.+?)\".RD.\"#\", $TMPL->tagdata, $match)) ? $FNS->create_url($match['1']) : $FNS->create_url(\"SITE_INDEX\");\n\t\t\n\t\t$path .= '/'.$query->row['url_title'].'/';\n\t\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"path=.+?\".RD.\"#\", $path, $TMPL->tagdata);\t\n\t\t$TMPL->tagdata = preg_replace(\"#\".LD.\"title\".RD.\"#\", $query->row['title'], $TMPL->tagdata);\t\n\t\t\t\t\n return $FNS->remove_double_slashes($TMPL->tagdata);\n }", "title": "" }, { "docid": "3a6087d1f2769d66475f277c5951994c", "score": "0.50039685", "text": "function ultima($table){\n global $db;\n $sql= \"SELECT MAX(id) FROM \".$db->escape($table);\n return find_by_sql($sql);\n}", "title": "" }, { "docid": "5f60c6ff5a5c2dfa53c445a686790260", "score": "0.5002524", "text": "function relhum_min()\n{\n $con = mysqli_connect(\"localhost\", \"arduser\", \"ardtest\", \"arduino\");\n\n /* check connection */\n if (mysqli_connect_errno()) {\n printf(\"Connect failed: %s\\n\", mysqli_connect_error());\n exit();\n }\n $query = \"SELECT MIN(relhum) AS relhum, event, DATE(event) AS date_created FROM humidity GROUP BY DATE(event) ORDER BY relhum asc LIMIT 5\";\n #$query = \"SELECT MAX(relhum) AS relhum, DATE(event) AS date_created FROM humidity GROUP BY DATE(event) ORDER BY id desc LIMIT 5\";\n\n if ($result = mysqli_query($con, $query)) {\n while ($row = mysqli_fetch_assoc($result)) {\n echo\"<tr><td>{$row[\"event\"]}</td><td>{$row[\"relhum\"]}</td></tr>\\n\";\n }\n }\n\n /* close connection */\n mysqli_close($con);\n}", "title": "" }, { "docid": "5846b7305a9736a5c1692307a6f72e9b", "score": "0.49920958", "text": "public function getResultRowStart(){\r\n\t\t$nStart = ( $this->getCurrentPagerNum() - 1 ) * $this->nResultRow;\r\n\t\treturn $nStart;\r\n\t}", "title": "" }, { "docid": "248ab883f6b86aa7e239ec76500939cf", "score": "0.4989916", "text": "function getTopTenAGBSources(){\n\t\t$abfrage = \"SELECT agb_source.agb_source_id, agb_source.name, agb_source.link, agb_source.xpath, agb_favorite.agb_source_id \n\t\t\t\tFROM agb_source \n\t\t\t\tLEFT JOIN agb_favorite ON agb_source.agb_source_id=agb_favorite.agb_source_id \n\t\t\t\tWhere 1 ORDER BY `counter` DESC LIMIT 10\";\n\t\t\t\t\n\t\t$ergebnis = mysqli_query($this->mysqli, $abfrage);\n\n\t\treturn $this->sqlToAGBSourceObject($ergebnis);\n\t}", "title": "" }, { "docid": "81872a724a745c5f490c8d9abe22fbd6", "score": "0.49891734", "text": "function getFirstID() {\n\tglobal $conn;\n\t$query = \"SELECT MIN(word_bg_id) AS min_id FROM words_bg\";\n\t$result = mysqli_query($conn,$query) or die(\"Query error: \" . mysqli_error($conn));\n\t$row = mysqli_fetch_assoc($result);\n\n\treturn $row['min_id'];\n}", "title": "" }, { "docid": "082712b429320faa26c565d90f4f66fa", "score": "0.49871793", "text": "function getTopHunches()\n {\n if (!empty($this->hunches)) return $this->hunches;\n $this->estimateObjectLikelihoods();\n $sql = <<<SQL\nSELECT objects.objectid objectId, objects.name, objects.subname, l likelihood\n FROM object_likelihood\n JOIN objects ON objects.objectid = object_likelihood.objectid\n ORDER BY l DESC\n LIMIT 10\nSQL; \n $statement = $this->database->query($sql);\n $this->hunches = $statement->fetchAll(\\PDO::FETCH_OBJ);\n return $this->hunches;\n }", "title": "" }, { "docid": "2cda369f6ba28d56005fb7d3d9973b6b", "score": "0.49783382", "text": "protected function queryFirst($sql) {\n $result = $this->query($sql);\n \n return $result[0];\n }", "title": "" }, { "docid": "d5a62349a3da0f156da099fe7ab1df45", "score": "0.4971012", "text": "function tempindoor_min()\n{\n $con = mysqli_connect(\"localhost\", \"arduser\", \"ardtest\", \"arduino\");\n\n /* check connection */\n if (mysqli_connect_errno()) {\n printf(\"Connect failed: %s\\n\", mysqli_connect_error());\n exit();\n }\n\n $query = \"SELECT MIN(celsius) AS celsius, event, DATE(event) AS date_created FROM temperature GROUP BY DATE(event) ORDER BY celsius asc LIMIT 5\";\n # $query = \"SELECT ROUND(celsius, 1) AS celsius, event FROM temperature ORDER BY celsius desc LIMIT 5\";\n\n if ($result = mysqli_query($con, $query)) {\n while ($row = mysqli_fetch_assoc($result)) {\n echo\"<tr><td>{$row[\"event\"]}</td><td>{$row[\"celsius\"]}</td></tr>\\n\";\n }\n\n }\n /* close connection */\n mysqli_close($con);\n}", "title": "" }, { "docid": "580c7b840797b17e8992490b46b71818", "score": "0.49675193", "text": "function my_min($array){\n $indexVanKleinsteWaarde = $array[0];\n //Ga heel de array bij langs\n foreach($array as $x) {\n //Als de loop voorbij een kleiner getal dan $indexVanKleinsteWaarde komt,\n //verander deze variable naar dat kleinere getal\n if($x<$indexVanKleinsteWaarde) {\n $indexVanKleinsteWaarde = $x;\n }\n }\n return $indexVanKleinsteWaarde;\n }", "title": "" }, { "docid": "6be0cc713346637b786cc227c9ecc071", "score": "0.49659535", "text": "protected function lazy_get_previous()\n\t{\n\t\t$ids = $this->model->select('nid')->order('date, created_at, nid')->own->visible->all(\\PDO::FETCH_COLUMN);\n\t\t$key = array_search($this->nid, $ids);\n\n\t\treturn $key ? $this->model[$ids[$key - 1]] : null;\n\t}", "title": "" }, { "docid": "71fa91df740dcdd7b791fdbf66f998b6", "score": "0.49462384", "text": "protected function start_query(){\r\n\t\t$this->timer = microtime(true);\r\n\t\t$this->fetch_iterator = 0;\r\n\t}", "title": "" }, { "docid": "691dc834dc2c7dfa286079737444cf1b", "score": "0.49380055", "text": "private function getFirstStage(){\n \t$query = (new Stage)->newQuery();\n \t$query = $query->where('position',0);\n \treturn $query->first();\n }", "title": "" }, { "docid": "ae14658457ea823f613f4d3f062825bd", "score": "0.4936435", "text": "public function getFirstInRange()\n {\n $start = $this->getCurrentPage() - $this->range;\n $start = ($start > 1) ? $start : 1;\n\n return $start;\n }", "title": "" }, { "docid": "a69f054144ede5e3ee8436e3b13f76c2", "score": "0.4934928", "text": "public function first() {\n $builder = $this->builder();\n\n if ($this->tempUseSoftDeletes === true) {\n $builder->where('deleted', 0);\n }\n\n // Some databases, like PostgreSQL, need order\n // information to consistently return correct results.\n if (empty($builder->_orderBy)) {\n $builder->orderBy($this->primaryKey, 'asc');\n }\n\n $row = $builder->limit(1, 0)\n ->setResultType($this->tempReturnType)\n ->getOne();\n\n $this->tempReturnType = $this->returnType;\n $this->tempUseSoftDeletes = $this->useSoftDeletes;\n\n return $row;\n }", "title": "" }, { "docid": "fa12eb6b47f46bfd2208916f677c1a69", "score": "0.49339095", "text": "function getNewEvent()\n\t{\n\t\t$newEvent_query = \"\tSELECT\tMAX(PK_eventID) AS 'maxID'\n\t\t\t\t\t\t\tFROM\tevent \";\n\t\t$newEvent_result = mysql_query($newEvent_query);\n\t\tif($newEvent_result)\n\t\t{\n\t\t\tif($row = mysql_fetch_array($newEvent_result))\n\t\t\t{\n\t\t\t\t$newestID = $row['maxID'];\n\t\t\t\treturn($newestID);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo(\"<p class=\\error\\\">There is a problem with the SELECT query named 'newEvent_query.'</p>\");\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "1d7759be9e0492c0b256cefe621a46bf", "score": "0.49328175", "text": "protected function lazy_get_next()\n\t{\n\t\t$ids = $this->model->select('nid')->order('date, created_at, nid')->own->visible->all(\\PDO::FETCH_COLUMN);\n\t\t$key = array_search($this->nid, $ids);\n\n\t\treturn $key < count($ids) - 1 ? $this->model[$ids[$key + 1]] : null;\n\t}", "title": "" }, { "docid": "8a36a1ee1356b6f97db334097e4d2646", "score": "0.4927544", "text": "function tempaqua_min()\n{\n $con = mysqli_connect(\"localhost\", \"arduser\", \"ardtest\", \"arduino\");\n\n /* check connection */\n if (mysqli_connect_errno()) {\n printf(\"Connect failed: %s\\n\", mysqli_connect_error());\n exit();\n }\n $query = \"SELECT MIN(celsius) AS celsius, event, DATE(event) AS date_created FROM aquatemp GROUP BY DATE(event) ORDER BY celsius asc LIMIT 5\";\n # $query = \"SELECT ROUND(celsius, 1) AS celsius, event FROM aquatemp ORDER BY celsius desc LIMIT 5\";\n\n if ($result = mysqli_query($con, $query)) {\n while ($row = mysqli_fetch_assoc($result)) {\n echo\"<tr><td>{$row[\"event\"]}</td><td>{$row[\"celsius\"]}</td></tr>\\n\";\n }\n }\n\n /* close connection */\n mysqli_close($con);\n}", "title": "" }, { "docid": "c7f38faf565ec120e625b877a9bb293b", "score": "0.49251404", "text": "public function fetchFirst ( ) {\n\n return $this->fetch(\\PDO::FETCH_ORI_FIRST);\n }", "title": "" }, { "docid": "0c938eaa03d9c61e9e03d622f90e5cbf", "score": "0.49239385", "text": "function getPositionMin(){\n $select = $this->createQueryBuilder('s');\n $select\n ->select('MIN(s.position)');\n return $select->getQuery()->getSingleScalarResult();\n }", "title": "" }, { "docid": "43d71c8bbcfc7fb9e12fdb35b87869f3", "score": "0.4922596", "text": "function getTopRows(){\n\t\t$where = \" 1 = 1 and vttb_active = 1\";\n \t$rows = $this->getDBList($where,\" vttb_id DESC\",true,\" Limit 1\");\n \treturn $rows;\n }", "title": "" }, { "docid": "99900b2c959a2e79d6543470c41a9210", "score": "0.49105307", "text": "public function first()\n\t{\n\t\t$builder = $this->builder();\n\n\t\tif ($this->tempUseSoftDeletes === true)\n\t\t{\n\t\t\t$builder->where($this->table . '.' . $this->deletedField, null);\n\t\t}\n\n\t\t// Some databases, like PostgreSQL, need order\n\t\t// information to consistently return correct results.\n\t\tif (empty($builder->QBOrderBy) && ! empty($this->primaryKey))\n\t\t{\n\t\t\t$builder->orderBy($this->table . '.' . $this->primaryKey, 'asc');\n\t\t}\n\n\t\t$row = $builder->limit(1, 0)\n\t\t\t\t->get();\n\n\t\t$row = $row->getFirstRow($this->tempReturnType);\n\n\t\t$eventData = $this->trigger('afterFind', ['data' => $row]);\n\n\t\t$this->tempReturnType = $this->returnType;\n\n\t\treturn $eventData['data'];\n\t}", "title": "" }, { "docid": "7652931b763c0623e23a38f9f9690ced", "score": "0.49072686", "text": "public function getFirst() {\n\t\treturn $this->createPage(1);\n\t}", "title": "" }, { "docid": "8dfc025a3cafaa3c3234949e7169be8a", "score": "0.49065235", "text": "function xstats_getLeminAccumulated( $gameId, $playerIndex ) {\n $accumulatedLemin = 0;\n //get the cololeminnists on planet surface\n $result = @mysql_query(\"SELECT lemin FROM skrupel_planeten WHERE spiel=$gameId AND besitzer=$playerIndex\") or die(mysql_error());\n while ($row=mysql_fetch_array($result)) {\n $accumulatedLemin = $accumulatedLemin+$row['lemin'];\n }\n //get onboard lemin\n $result = @mysql_query(\"SELECT lemin FROM skrupel_schiffe WHERE spiel=$gameId AND besitzer=$playerIndex\") or die(mysql_error());\n while ($row=mysql_fetch_array($result)) {\n $accumulatedLemin = $accumulatedLemin+$row['lemin'];\n }\n return( $accumulatedLemin );\n}", "title": "" }, { "docid": "c288f02d36997f9f77ffdd41983e5a2c", "score": "0.49002746", "text": "function query_first($query_string, $type = MYSQL_ASSOC)\r\n\t{\r\n\t\t$query_id = $this->query($query_string);\r\n\t\t$returnarray = $this->fetch_array($query_id, $type);\r\n\t\t$this->lastquery = $query_string;\r\n\t\treturn $returnarray;\r\n\t}", "title": "" }, { "docid": "30db2d62c28211f614695af987ab3c3e", "score": "0.4895128", "text": "public function getLatestArticle()\n {\n $prepared = $this->db->prepare('\n SELECT * FROM '.$this->ruleTableName.' as Ru \n WHERE Ru.type IN (\n \"research-advance\",\n \"research-article\",\n \"research-exchange\",\n \"short-report\",\n \"tools-resources\",\n \"replication-study\"\n )\n ORDER BY Ru.published DESC\n LIMIT 40\n ');\n $prepared->execute();\n\n foreach ($prepared->fetchAll() as $item) {\n yield $this->map($item);\n }\n }", "title": "" }, { "docid": "3e448550e83d3fef3ac3a526f8fcc16b", "score": "0.48867717", "text": "function getNextTupoksi(){\r\n $this->ekin = $this->ci->load->database('ekin234', TRUE);\r\n\r\n $sql = \"SELECT MAX(tupoksi_id)+1 tupoksi_id FROM ref_tupoksi\";\r\n $query = $this->ekin->query($sql)->row(); \r\n\r\n return $query->tupoksi_id;\r\n }", "title": "" }, { "docid": "f0d46561b8f6df1167c66b087f431da0", "score": "0.48866105", "text": "public function getRowFirstValue()\n {\n try\n {\n // Overenie podmienky, ak vznikne keznama chyba, alebo kriticka chyba.\n if(isset($this->var_first_column))\n {\n $this->sql_pdo = $this->getSelectTrimSQL() .\n \"$this->var_first_column\" .\n $this->getFromTrimSQL() .\n $this->getTableAll() .\n $this->getOrderByTrimSQL() . \"$this->var_first_column\" . $this->getAscTrimSQL();\n // result obj\n $this->result_pdo = $this->pdo_db->prepare($this->sql_pdo);\n if(!$this->result_pdo)\n {\n // connect error pdo->result\n print $this->lang['EXCEPTION_ERROR_MESSAGE_1070'] . \" Error: Column->\" . $this->var_first_column . \" \" . $this->result_pdo->errorCode();\n }\n $this->result_pdo->execute();\n $this->row_pdo = $this->result_pdo->fetch();\n $this->result_pdo->closeCursor();\n return $this->row_pdo[$this->var_first_column];\n }\n else\n {\n // Empty insert column\n print $this->lang['EXCEPTION_ERROR_MESSAGE_1073'] . \"<br />\";\n }\n\n }\n catch(Exception $e)\n {\n // Doslo k fatalnej chybe, alebo neznamej chybe.\n print $this->lang['EXCEPTION_ERROR_MESSAGE_1075'] . \" \" . $this->result_pdo->errorCode();\n }\n unset($this->sql_pdo);\n unset($this->result_pdo);\n unset($this->row_pdo);\n }", "title": "" }, { "docid": "d50aef1bb895bc6c9ea4e5a4d24e63cc", "score": "0.4880336", "text": "function getflapnext($tar,$get,$point){\n if($tar>$get){\n return $point;\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "8ac16a1d623120e27a965f8f6b640782", "score": "0.48798314", "text": "private function getOffest() {\n // multiply id with no_items_per_page\n $offset = ($this->pageId - 1) * $this->recordsPerPage;\n return $offset;\n }", "title": "" }, { "docid": "b270ac9a2fe6aedb76489d33ba9dfc96", "score": "0.48798266", "text": "function get10LastUpdatedShows()\n{\n $pdo = connectDB();\n $query = \"select id_show, name_show, production_status, runtime_show, first_aired_show, image_show, summary_show, last_updated, (select MAX(first_aired_episode) from flixadvisor.EPISODE left join SEASON S on EPISODE.season = S.id_season where S.tv_show = id_show and first_aired_episode <= sysdate()) as last_episode from flixadvisor.TV_SHOW group by id_show order by last_episode desc limit 10;\";\n $queryPrepared = $pdo->query($query);\n if ($queryPrepared->errorCode() != '00000') {\n var_dump($queryPrepared->errorInfo());\n die(\"Une erreur est survenue lors de la recuperation des series les plus recentes.\");\n }\n return $queryPrepared->fetchAll();\n}", "title": "" }, { "docid": "1f82a855a05bd2f37d0b67d4cbf274fe", "score": "0.48756483", "text": "static public function first()\n {\n return static::fetchOneWhere('1=1 ORDER BY ' . static::_quote_identifier(static::$_primary_column_name) . ' ASC');\n }", "title": "" }, { "docid": "955278d6a4009646d69c356618d36198", "score": "0.4873415", "text": "function getFirstPage() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "73dc58bdafdad183b37d97a3cf13464e", "score": "0.48708743", "text": "public function lastQuery() {\n\t\t$last = end($this->stats);\n\t\treturn $last['query'];\n\t}", "title": "" }, { "docid": "b663784b1fb0fd9ecd63c4a7a71864ba", "score": "0.48694995", "text": "function get_last_open_riddle_id() {\n return db_scalar_query(\"SELECT id FROM `riddle` WHERE end_time IS NULL ORDER BY `start_time` DESC LIMIT 1\");\n}", "title": "" }, { "docid": "b663784b1fb0fd9ecd63c4a7a71864ba", "score": "0.48694995", "text": "function get_last_open_riddle_id() {\n return db_scalar_query(\"SELECT id FROM `riddle` WHERE end_time IS NULL ORDER BY `start_time` DESC LIMIT 1\");\n}", "title": "" }, { "docid": "999eb56518c50b461a3b6e5241b13439", "score": "0.48657513", "text": "private static function _parse_first() {\n\t\tif (self::$properties['offset'] > 0) {\n\t\t\treturn self::_parse(static::$tpls['first'], array('offset'=> 0, 'page_number'=> 1 ));\n\t\t} \n return '';\n\t}", "title": "" }, { "docid": "cab0497f8d2ca34dff251c06b187b60e", "score": "0.4862721", "text": "public function activateNextTimlySet()\n\t{\n\t\t// Get all sets with the oldest on top\n\t\t$sets = $this->getAllSets(CAutoUpdate::ORDERBY_LASTRUN);\n\n\t\tforeach ($sets as $set)\n\t\t{\n\t\t\tif ($this->isTimeToRunNow($set['id']))\n\t\t\t{\n\t\t\t\tHELPER_logToFile(LOG_CAU, \"CAU.activateNextTimlySet: id:\".$set['id'], 4);\n\t\t\t\t$this->activateSet($set['id']);\n\t\t\t\treturn($this->getActiveSetID());\n\t\t\t}\n\t\t}\n\n\t\treturn(NULL);\n\t}", "title": "" }, { "docid": "7762b563f98868588e90a12336826156", "score": "0.48481902", "text": "function get_article_using_server_side() {\n\n $sintax = $this->get_article_using_server_side_query_search_and_order();\n\n $sintax .= $this->server_side_lib->limit();\n\n return $this->db->query($sintax)->result();\n\n }", "title": "" }, { "docid": "4f8726281bf0f14c6d42515bc06777f9", "score": "0.4843895", "text": "public function getFirst()\n {\n $lookup = $this->_collection;\n return array_shift($lookup);\n }", "title": "" }, { "docid": "c0c4a685d312ebfccd4d84021f73cc2a", "score": "0.48436823", "text": "public function getFirstEntry($searchResult);", "title": "" }, { "docid": "d189ed449d6416acf6f81cf76c657284", "score": "0.48360202", "text": "function getMaxTransId() {\n global $mysqli;\n $query = \"SELECT MAX(transId) AS Expr FROM transaktion\";\n $ergebnis = mysqli_query($mysqli, $query);\n $tmp = mysqli_fetch_object($ergebnis)->Expr;\n $tmp++;\n return $tmp;\n}", "title": "" }, { "docid": "e02155d5c7f216d383fb4d6a0b4affe3", "score": "0.48356047", "text": "public function get_lowest_subject() {\n\n // Get primary keys for all records in this project\n // NOTE: get_ids_all would be better here, but is not yet implemented\n $primary_keys = \n $this->project->get_partials_all('Failed to get partials',\n\t\t\t\t array(PRIMARY_KEY));\n\n // Determine the lowest subject\n $sorted_primary_keys = sort($primary_keys);\n $cur_id = $sorted_primary_keys[0];\n\n // Get all values for the lowest subject\n $records = $this->project->get_records_by_ids('Failed to get records',\n\t\t\t\t\t\t array($cur_id));\n\n return $records[0];\n }", "title": "" }, { "docid": "d398c978de0eaf0a8f7232254735d414", "score": "0.48347834", "text": "public function long_queries()\r\n\t{\r\n\t\treturn $this->slow_queries( 10.0 );\r\n\t}", "title": "" }, { "docid": "11d77eea187b123ca3063809ae04e145", "score": "0.4831221", "text": "public function runQuery() {\n $this->CURRENT_QUERY = str_replace(\"NOW()\", date(\"Y-m-d\"), $this->CURRENT_QUERY);\n $this->CURRENT_QUERY = str_replace(\"TIME()\", date(\"Y-m-d H:i:s\"), $this->CURRENT_QUERY);\n $this->LINDA_ERROR = \"\";\n $this->lastAffectedRowCount = 0;\n\n // echo \"<br/><br/>\".$this->CURRENT_QUERY.\"<br/><br/>\";\n $stmnt;\n\n\n try {\n if (($stmnt = $this->DB_LINK->prepare($this->CURRENT_QUERY))) {\n\n if (!$stmnt->execute()) {\n $this->LINDA_ERROR = \"ERROR_EXECUTING_QUERY\";\n $this->resultObject = NULL;\n }\n\n if ($stmnt->rowCount()) {\n $this->lastAffectedRowCount = $stmnt->rowCount();\n }\n\n\n $this->resultObject = $stmnt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\n\n if (FALSE === $this->resultObject) {\n $this->LINDA_ERROR = \"ERROR_EXECUTING_QUERY\";\n $this->resultObject = NULL;\n }\n\n //set the number of rows returned for select ops\n if (!$this->lastAffectedRowCount && count($this->resultObject)) {\n $this->lastAffectedRowCount = count($this->resultObject);\n }\n\n if (count($this->resultObject) || $this->lastAffectedRowCount) {\n \n }\n else {\n $this->resultObject = NULL;\n }\n }\n } catch (PDOException $e) {\n\n $this->LINDA_ERROR = $e->getMessage();\n $this->resultObject = NULL;\n // echo $this->LINDA_ERROR;\n }\n\t\t$this->DEFAULT_LIMIT = 1000;\n\t\t$this->DEFAULT_START_INDEX = 0;\n\t\t$this->DISTINCT = FALSE;\n return $this;\n }", "title": "" }, { "docid": "dcf4ec38f054cf184709d805eb2f2216", "score": "0.48305234", "text": "function getNrInterrogations($pracId,$interrogatorId,$startts,$stopts){\n\t\t$query=\"select count(id) from prac_ondervraging where ondervragerid=$interrogatorId and pracid=$pracId and $startts<=tijdstip and tijdstip<=$stopts\";\n\t\t//echo \"$query<br/>\";\n\t\t$result=mysql_query($query);\n\t\t$row=mysql_fetch_row($result);\n\t\treturn $row[0];\n\t}", "title": "" }, { "docid": "3666024388fa2f149edcb5820eb57cf9", "score": "0.4819543", "text": "function Get_All_Articles($nid=0,$use='',$future=0) {\n global $db;\n $Arts = array();\n $now = time() + $future*60*60*24;\n $qry = \"SELECT * FROM Articles \";\n if (!$nid) $qry .= \" WHERE ( StartDate='' OR StartDate<$now ) AND (StopDate='' OR StopDate>$now )\" . ($use? \" AND ( UsedOn='$use' ) \" :\"\");\n $qry .= \" ORDER BY UsedOn, Importance DESC, RelOrder DESC\";\n// echo \"$qry<p>\";\n $res = $db->query($qry);\n if ($res) while ($ns = $res->fetch_assoc()) $Arts[] = $ns;\n return $Arts;\n}", "title": "" }, { "docid": "d1a3bb961b92f951eb5176620bcfdbf1", "score": "0.48175758", "text": "abstract public function getLimitstart();", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "222e9115cc335be3350461ebbeced7c2", "score": "0.0", "text": "public function store($uuid, Request $request)\n {\n $type = Type::create($request->all());\n return response()->json($type, 201);\n }", "title": "" } ]
[ { "docid": "08bf051ddd8fb321ee757b920958e19f", "score": "0.70976067", "text": "public function save()\n {\n if($this->saved()) $this->client->put($this->router->path($this->_id), $this->attributes);\n else {\n // create the resource\n $response = $this->client->post($this->router->path(), $this->attributes);\n $this->_id = $response['id'];\n $this->exists = true;\n }\n }", "title": "" }, { "docid": "1d53a1b85330dbd54b2110d38f49c072", "score": "0.681924", "text": "public function store() {\n\t\treturn $this->attemptEdit(new Resource(), true);\n\t}", "title": "" }, { "docid": "c3547b2773825a7810dd2d7be213c014", "score": "0.6804277", "text": "public function store()\n {\n try\n {\n $this->execute('Chenkacrud\\Resources\\ProcessResourceCommand');\n } catch (\\Exception $e)\n {\n dd('error');\n }\n }", "title": "" }, { "docid": "6842710d2e1af6b300f62eeb2e1bd88e", "score": "0.6769727", "text": "public function store(StoreResourceRequest $request)\n {\n $resource = new Resource;\n $resource->fill($request->all());\n\n if ($request->has('audio')) {\n $resource->audio = $request->audio->store('resources');\n }\n\n if ($request->has('document')) {\n $resource->document = $request->document->store('resources');\n }\n\n $resource->saveOrFail();\n\n return $this->api_success([\n 'data' => new ResourceResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "e51fa81f584f17798f0483bf328bf426", "score": "0.6717579", "text": "public function store()\n\t{\n\t\t$input = Input::except(array_keys($this->relationships)); // Less safe, more convenient\n\t\t//$input = Input::only(array_keys($this->resource->getFillableLabels())); //More safe, less convenient\n\t\t$this->resource = $this->resource->fill($input);\n\n\t\treturn $this->persist(__FUNCTION__);\n\t}", "title": "" }, { "docid": "42778db7569f0d4906b7ddc48c115b07", "score": "0.67087436", "text": "public function store()\n\t{ \n\t\t$resource = $this->resourceRepository->newResource();\n\t\t$manager = new ResourceManager($resource, Input::all());\n\n\t\t$manager->save();\n\t\t\n\t\treturn Redirect::route('resource')->with('successMessage', 'El recurso se ha guardado con éxito.');\n\t}", "title": "" }, { "docid": "ffb15df04a92a2bd0c39d006dbfccb17", "score": "0.6673047", "text": "public function store()\n {\n return $this->okResponse(\n new $this->resource(\n $this->service->store()\n )\n );\n }", "title": "" }, { "docid": "bf05263acc6d31d87c9ed0ed323947e0", "score": "0.6646847", "text": "public function store(string $storagePath): self;", "title": "" }, { "docid": "883aa81cab86540535ca6f5ce9f06662", "score": "0.65984905", "text": "public function store()\n {\n // Check whether the object has ever been stored.\n if ($this->isNew) {\n Logger::get()->debug('Storing new entity ' . get_class($this) . '...');\n // Create the record. Get an ID back.\n $this->id = $this->getDataSource()->create($this->getFieldsData());\n // Store this object in the appropriate factory for further use.\n $this->getFactory()->registerEntity($this);\n } else {\n Logger::get()->debug('Updating entity ' . get_class($this) . \":{$this->id}...\");\n $this->getDataSource()->update($this->id, $this->getFieldsData());\n }\n\n // Once stored, the entity is no longer new.\n $this->isNew = false;\n }", "title": "" }, { "docid": "682cf9175057b843f439d49243f35e43", "score": "0.65586984", "text": "public function store()\n {\n try {\n\n $fields = request()->all();\n\n if ($this->validator instanceof LaravelValidator)\n $this->validator->with($fields)->passesOrFail(ValidatorInterface::RULE_CREATE);\n\n if ($this->fileManager instanceof FileManager){\n $files = request()->allFiles();\n\n foreach ($files as $key => $value) {\n $fields[$key] = $this->fileManager->saveFile(request()->file($key), 'jokes');\n }\n }\n\n $createdData = $this->repository->create($fields);\n\n $response = [\n 'message' => 'Resource created.',\n 'data' => $createdData->toArray(),\n ];\n\n if (request()->wantsJson()) {\n\n return response()->json($response);\n }\n\n return redirect(route($this->routeName.'.index'))->with('message', $response['message']);\n\n } catch (ValidatorException $e) {\n if (request()->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n\n return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n }\n }", "title": "" }, { "docid": "594b28921afbb12a0e454c67e44f856f", "score": "0.64591277", "text": "public function store()\n {\n try {\n\n $fields = request()->all();\n\n if ($this->validator instanceof LaravelValidator)\n $this->validator->with($fields)->passesOrFail(ValidatorInterface::RULE_CREATE);\n\n if ($this->fileManager instanceof FileManager){\n $files = request()->allFiles();\n\n foreach ($files as $key => $value) {\n $fields[$key] = $this->fileManager->saveFile(request()->file($key), 'jokes');\n }\n }\n\n $createdData = $this->service->create($fields);\n\n $response = [\n 'message' => 'Resource created.',\n 'data' => $createdData->toArray(),\n ];\n\n if (request()->wantsJson()) {\n\n return response()->json($response);\n }\n\n return redirect(route($this->routeName.'.index'))->with('message', $response['message']);\n\n } catch (ValidatorException $e) {\n if (request()->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n\n return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n }\n }", "title": "" }, { "docid": "c4a6400468605f94c95346b88f6f2008", "score": "0.64513814", "text": "public function store(string $type, string $id, array $data) : StorageInterface;", "title": "" }, { "docid": "e0d7c11298835364d1614d7fbef2631c", "score": "0.6432668", "text": "public function store()\n {\n $data = (new TagValidator)->validate(request()->all());\n $title = Arr::get($data, 'title');\n\n try {\n // Database exception happened so tag not created\n Tag::query()\n ->create([\n 'title' => $title,\n ]);\n\n } catch (QueryException $e) {\n dump('===== Error =====');\n dump($e->getMessage());\n dump('===== Error =====');\n }\n\n $tag = optional(Tag::query()\n ->where('title', $title)\n ->first());\n\n // Links will create with no tag linked to it\n collect(Arr::get($data, 'links'))\n ->each(function ($link) use ($tag) {\n Link::query()\n ->create([\n 'title' => Arr::get($link, 'title'),\n 'url' => Arr::get($link, 'url'),\n 'tag_id' => $tag->id\n ]);\n });\n\n\n return TagResource::make($tag->load('links'));\n }", "title": "" }, { "docid": "5fe3bd8f1f685c0f002d9e7c106f705e", "score": "0.64026153", "text": "public function save($resource) {\n $stmt = $this->db->prepare(\"INSERT INTO resource (id, name, description, quantity, type)\n values (0,?,?,?,?)\");\n $stmt->execute(array($resource->getName(),$resource->getDescription(),$resource->getQuantity(),\n $resource->getType()));\n }", "title": "" }, { "docid": "96db6e3f6a4372c5200ed59ea22c5213", "score": "0.63912016", "text": "public function create() {\n $this->storage_dir->touch();\n $this->storage_file->touch();\n }", "title": "" }, { "docid": "94e2137d286af73e1907a20ffd26c05f", "score": "0.6390171", "text": "public function store(Request $request)\n\t{\n $validator = $this->validate($request, [\n \t//\n ]);\n\n try\n {\n \t$newResource = $this->repository->createResource($request->all());\n\n } catch(\\Exception $exception)\n {\n $this->flashErrorAndReturnWithMessage($exception);\n }\n\n // returns back with success message\n flash()->success('Your resource was added!');\n return redirect()->action('Admin\\Catalogue\\ResourcesController@index');\n\t}", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.637569", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "8aec92e17d4ffebeefab6cee733407cb", "score": "0.6354979", "text": "public function store()\n\t{\n\t\t$data = Input::get();\n\n\t\t$item = $this->repo->create($data);\n\n\t\t$resource = new Item($item, $this->transformer);\n\n\t\treturn $this->response($resource, 201);\n\t}", "title": "" }, { "docid": "fa7c0a35fe78f5965a80622583f4e02b", "score": "0.63520324", "text": "public function store(Request $request)\n {\n $requestData = $request->all();\n unset($requestData[\"_token\"]);\n $requestData = json_encode($requestData);\n ResourcesService::postToResourcesTable($requestData);\n SyncService::SyncResourcesTable();\n return redirect('admin/resources')->with('flash_message', 'Resource added!');\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
dfb8d0b6d53e876acbbe13457bb2d880
api to refresh current token
[ { "docid": "500aabfb4b84f79d4dbcf24967401c28", "score": "0.7105788", "text": "public function refreshToken_post() {\n extract($_POST);\n\n $Token_data['userId'] = $user_id;\n $Token_data['appId'] = $app_id;\n $Token_data['time'] = time();\n\n // GENERATE TOKEN METHOD\n $new_token = $this->authorization_token->generateToken($Token_data);\n\n $result = $this->login_model->refreshToken($user_id,$app_id,$token,$new_token);\n switch ($result['type']) {\n case 'error':\n return $this->response($result, 404);\n break;\n\n case 'unauthorized':\n return $this->response($result, 401);\n break;\n\n case 'success':\n return $this->response($result, 200);\n break;\n\n case 'warning':\n return $this->response($result, 412);\n break;\n\n default:\n $response = array(\n 'status' => false,\n 'type' => 'error',\n 'message' => 'Error: Server error detected!');\n return $this->response($response, 500);\n break;\n }\n }", "title": "" } ]
[ { "docid": "60549dad24f2de6972c03146c9478f5e", "score": "0.8322422", "text": "public function refresh(){\n \treturn $this->respondWithToken($this->guard()->refresh(), \"Token refreshed Successfully\");\n }", "title": "" }, { "docid": "34c1ef0ab8be9e70046e8e20cd27db5b", "score": "0.8241484", "text": "protected function refreshToken() {\n\t\t$resp = $this->server->refreshToken();\n\t\techo $this->_format($resp);\n\t}", "title": "" }, { "docid": "a7100c77475eb2656fe50358a5efe9d3", "score": "0.8021676", "text": "public function refreshToken()\n {\n $setting = CrmSetting::where('id', 1)->first();\n $client = new Client();\n $URI = 'https://accounts.zoho.com/oauth/v2/token';\n $params['form_params'] = array(\n 'client_id' => $setting->client_id,\n 'client_secret' => $setting->client_secret,\n 'refresh_token' => $setting->refresh_token,\n 'grant_type' => 'refresh_token'\n );\n $response = $client->post($URI, $params); \n $data = json_decode($response->getBody(), true);\n // Inserting the newly generated access token in CRM settings table\n $crm_setting = CrmSetting::find(1);\n $crm_setting->access_token = $data['access_token'];\n $crm_setting ->update();\n }", "title": "" }, { "docid": "9b801914a3fc3108c73b270ecfe8a05f", "score": "0.79695874", "text": "private function refreshTokens()\n {\n if (!isset($_COOKIE[$this->sessionCookieName])) {\n $this->makeResponse(['error' => 'Session dont exists'], 401);\n }\n $json = json_encode([\n 'client_id' => $this->clientId,\n 'client_secret' => $this->clientSecret,\n 'grant_type' => 'refresh_token',\n 'refresh_token' => filter_input(INPUT_COOKIE, $this->sessionCookieName)\n ]);\n $data = $this->httpRequest('/auth/token', 'POST', $json);\n if ($data['status'] == 200 && isset($data['response']->access_token)) {\n setcookie($this->sessionCookieName, $data['response']->refresh_token, time() + 15552000, $this->domainPath, $this->clientDomain, $this->useHttps, true);\n $response = ['access_token' => $data['response']->access_token, 'expires_in' => $data['response']->expires_in];\n if (isset($data['response']->firebase_token)) {\n $response['firebase_access_token'] = $data['response']->firebase_token;\n }\n $this->makeResponse($response, $data['status']);\n }\n $this->logout($data['response'], $data['status']);\n }", "title": "" }, { "docid": "a08efb0b7bb6a2a85559838a4612c21a", "score": "0.78716624", "text": "public function refreshToken(): JsonResponse {\n $access_token = auth()->refresh();\n $ttl = auth()->factory()->getTTL() * 60;\n $user = auth()->user();\n\n return $this->returnSuccess(compact('user', 'ttl', 'access_token'));\n }", "title": "" }, { "docid": "60f30de49b953c360961f589289a6ca5", "score": "0.78395814", "text": "function refreshAuth()\r\n {\r\n $context = stream_context_create(\r\n $this->postPayload(\r\n array (\r\n 'grant_type' => 'refresh_token',\r\n 'client_id' => $this->clientId,\r\n 'client_secret' => $this->clientSecret,\r\n 'refresh_token' => $this->refreshToken,\r\n ),\r\n 'HTTP'\r\n )\r\n ); \r\n\r\n if ($result = json_decode(file_get_contents($this->oauthStep2, false, $context)))\r\n {\r\n if (@mysqli_query($this->db['resource'], \"UPDATE securityAssets SET accessToken='$result->access_token', expiresIn='$result->expires_in' WHERE clientName='$this->appName'\"))\r\n {\r\n $this->SparkAccessToken = $result->access_token;\r\n } \r\n }\r\n\r\n return;\r\n }", "title": "" }, { "docid": "1f9f6389d7ba5c58d86f975d8de184f1", "score": "0.7781087", "text": "public function refresh() {\n $request = \\OAuth2\\Request::createFromGlobals();\n $post = $request->request;\n if ($args['auth'] == substr(md5($post['client_id'] . $post['state'] . 'refresh'), 0, 8)) {\n $response = new \\OAuth2\\Response();\n $resp = $this->oauth2->handleTokenRequest(\\OAuth2\\Request::createFromGlobals(), $response);\n $body = $resp->getResponseBody();\n $data = json_decode($body, true);\n if (isset($data['access_token'])) {\n return $this->jsonSuccess($res, $data);\n } else {\n return $this->jsonError($res, 20003, $data);\n }\n } else {\n return $this->jsonError($res, 10013, '请求参数不合法');\n }\n }", "title": "" }, { "docid": "3e76772dbf95dfb93589dd310cefe83c", "score": "0.77775586", "text": "public function refreshToken()\n {\n $token = md5(time().$this->name.\"token\".$this->email);\n $token = bcrypt($token);\n\n $this->auth_token = $token;\n $this->save();\n\n return $this->auth_token;\n }", "title": "" }, { "docid": "2c1035f9f68188333c98f05505c1a91f", "score": "0.77066296", "text": "public function putRefreshToken($token);", "title": "" }, { "docid": "c42f971cc484d4d98db54d5937965a21", "score": "0.7697707", "text": "public function refresh_token($data){\n $res=$this->http_post(self::$url.'/api/refresh_token', $data);\n\t\treturn $res;\n }", "title": "" }, { "docid": "85b6e49c82910925bec9c562cbc104c4", "score": "0.76884675", "text": "abstract public function refreshAccessToken(OAuthToken $token);", "title": "" }, { "docid": "6cf03c7ca2ed7601798127e165201b6f", "score": "0.7685584", "text": "public function refreshToken()\n {\n try {\n $token = JWTAuth::getToken();\n $newToken = JWTAuth::refresh($token);\n return $this->json(new AuthSuccess($newToken));\n } catch (JWTException $e) {\n $this->response->errorUnauthorized(trans('controllers::auth.jwt_refresh_error'));\n }\n }", "title": "" }, { "docid": "3da7d9ed39529ec646acc7c47e4c852f", "score": "0.7659426", "text": "public function refreshToken()\n {\n if(!auth()->check()){\n return redirect(url('/'));\n }\n\n $config = InvoiceGatewayModel::where('user_id', \\Auth::user()->id)->first();\n\n $response = HTTP::asForm()->post('https://api.waveapps.com/oauth2/token/', [\n 'client_id' => $this->config['client_id'],\n 'client_secret' => $this->config['client_secret'],\n 'refresh_token' => $config['config']['refresh_token'],\n 'grant_type' => 'refresh_token',\n 'redirect_uri' => $this->config['graphql_auth_redirect_uri'],\n ]);\n\n // refresh token is stored indefinitely, if waveaps returns unauthorized(401) status code, then redirect user to get access token.\n if(in_array($response->status(), [400, 401])){\n \\Redirect::to(route('invoce-gateways.authorize'))->send();\n }\n\n $response = $response->json();\n config(['invoice-gateways.waveapps.access_token' => $response['access_token']]);\n config(['invoice-gateways.waveapps.expires_in' => now()->addSeconds($response['expires_in'])]);\n\n InvoiceGatewayModel::where('user_id', \\Auth::user()->id)->update([\n 'config' => [\n \"businessId\" => $response['businessId'],\n \"refresh_token\" => $response['refresh_token'],\n \"access_token\" => $response['access_token'],\n \"expires_in\" => now()->addSeconds($response['expires_in'])\n ]\n ]);\n\n \\Log::debug('Token refreshed successfully for user_id:' . auth()->id());\n }", "title": "" }, { "docid": "aa9b5acbc04b862a47054c450b977ac8", "score": "0.7657225", "text": "public function refreshToken()\n {\n $token = JWTAuth::getToken();\n if (!$token) {\n return response()->json(['error' => 'token_not_provided'], 400);\n }\n\n try {\n $token = JWTAuth::refresh($token);\n } catch (TokenInvalidException $e) {\n return response()->json(['error' => 'token_invalid', 401]);\n }\n\n $responseData = [\n 'token' => $token,\n 'data' => JWTAuth::getPayload($token)->toArray() + ['user' => JWTAuth::toUser($token)],\n ];\n\n return response()->json($responseData);\n }", "title": "" }, { "docid": "9b77a2b4a65d3258ae0a9da92a037747", "score": "0.7568036", "text": "private function refreshTokens()\n {\n $token = random_string();\n Db::update([\n 'table' => static::TABLE,\n 'where' => ['id' => $this->id],\n 'values' => ['_token' => $token]\n ]);\n $_SESSION['auth']['_token'] = $this->_token = $token;\n Request::setQueuedCookie('_token', $token);\n\n $_SESSION['auth']['id'] = $this->id;\n Request::setQueuedCookie('id', $this->id);\n }", "title": "" }, { "docid": "d7bc4829349b41e54edf6850b9a643cc", "score": "0.7566369", "text": "public function refresh()\n {\n return $this->respondWithToken(auth()->refresh());\n }", "title": "" }, { "docid": "b84c7050399ec71df88cd0940a63da62", "score": "0.7524386", "text": "public function getRefreshToken();", "title": "" }, { "docid": "b84c7050399ec71df88cd0940a63da62", "score": "0.7524386", "text": "public function getRefreshToken();", "title": "" }, { "docid": "c9180e99e01da0ecb7abe7c81a2b092d", "score": "0.7492976", "text": "public function refreshToken()\n {\n $token = JWTAuth::getToken();\n if (!$token) {\n return response()->json(['error' => 'token_not_provided'], 400);\n }\n\n try {\n $token = JWTAuth::refresh($token);\n } catch (TokenInvalidException $e) {\n return response()->json(['error' => 'token_invalid', 401]);\n }\n\n $data = JWTAuth::getPayload($token)->toArray();\n if (!empty($data['typ']) && $data['typ'] === self::$THIRD_PARTY) {\n $userData = [];\n } else {\n if (empty($data['sub'])) {\n return response()->json(['error' => 'An internal error has occurred'], 500);\n }\n $user_uuid = $data['sub'];\n $userData = ['user' => User::with(User::getRetrieveWith())->uuid($user_uuid)];\n }\n\n $responseData = [\n 'token' => $token,\n 'data' => $data + $userData,\n ];\n\n return response()->json($responseData);\n }", "title": "" }, { "docid": "3b5e1352a14aea1f31f8d2b7c9a0bf29", "score": "0.7440453", "text": "public function refreshToken(Request $request){\n $refresh_token = $request->bearerToken();\n\n\n if(!isset($refresh_token)){\n return $this->errorResponse('Please provide the refresh_token as a bearer token in the authorization header',401);\n }\n\n $id = explode('|',$refresh_token)[0];\n $actualToken = explode('|',$refresh_token)[1];\n\n $personalAccessToken = PersonalAccessToken::whereId($id)->first();\n\n // Checking to see if the token provided by the user exists\n if(!isset($personalAccessToken)){\n return $this->errorResponse('There is no access token for the provided id',401);\n }\n\n // Checking to see if the refresh token provided by the user matches\n $tokenMatch = Hash::check($actualToken,$personalAccessToken->refresh_token);\n\n if(!$tokenMatch){\n return $this->errorResponse('The provided refresh_token doesn\\'t match',401);\n }\n\n $created_at = $personalAccessToken->created_at;\n $expiry_date = $created_at->addDays(14);\n\n // Checking to see if the refresh token expired\n if(Carbon::now()->gt($expiry_date)){\n return $this->errorResponse('Refresh token expired, please log in again',401);\n }\n\n $user = User::whereId($personalAccessToken->tokenable_id)->firstOrFail();\n\n $createdToken = $user->createToken($personalAccessToken->name);\n\n // Deleting the provided token\n $personalAccessToken->delete();\n\n // Returning the info about a new token\n return $this->showMessage('Successfull token refresh',201,[\n 'token' => $createdToken->plainTextToken,\n 'expiry_token' => 3600,\n 'refresh_token' => $createdToken->plainTextRefreshToken,\n 'expiry_refresh_token' => 1209600,\n 'user_id' => $user->id\n ]);\n }", "title": "" }, { "docid": "55001587490d8c8f25950c9a6e2c063d", "score": "0.7422305", "text": "private static function refreshAuthToken() {\n $refreshToken = self::getRefreshToken();\n\n $opts = [\n 'http' => [\n 'method' => 'POST',\n 'header' => 'Authorization: Basic ' . base64_encode(CLIENT_ID . ':' . CLIENT_SECRET)\n . \"\\r\\nContent-type: application/x-www-form-urlencoded\",\n 'content' => \"grant_type=refresh_token&refresh_token=$refreshToken\"\n ]\n ];\n\n $context = stream_context_create($opts);\n $JSONResponse = file_get_contents('https://www.reddit.com/api/v1/access_token', false, $context);\n $response = json_decode($JSONResponse, /* assoc */ true);\n $response['refresh_token'] = $refreshToken;\n\n return $response;\n }", "title": "" }, { "docid": "abbb3d8ea41e874d6641e4b41315552b", "score": "0.74131405", "text": "public function refreshToken()\n\t{\n\t\t$refreshUrl = $this->getRefreshUrl();\n\n\t\t$refreshResponse = $this->fetch('GET', $refreshUrl);\n\n\t\t$this->refreshToken = $refreshResponse['refresh_token'];\n\t\t$this->accessToken = $refreshResponse['access_token'];\n\n\t\treturn $refreshResponse;\n\t}", "title": "" }, { "docid": "dcfda8921a7f27337108068fef2aaf8f", "score": "0.73189586", "text": "private function refreshToken()\n {\n if($this->token == null || !$this->isValidToken()) {\n $this->token = $this->soapClient\n ->GetToken(array(\n 'sUserid' => $this->user,\n 'sPassword' => $this->password))\n ->GetTokenResult;\n if($this->debug) {\n var_dump('Token value: ' . $this->token);\n }\n $msg = 'Unable to acquire ScholarChip token';\n $this->checkForError($this->token, $msg);\n }\n return $this->token;\n }", "title": "" }, { "docid": "15caec214e0649414a22b9531958a28f", "score": "0.7289861", "text": "public function refreshToken(){\n if(!auth()->check()){\n return redirect(url('/'));\n }\n\n $config = InvoiceGatewayModel::where('user_id', \\Auth::user()->id)->first();\n $oauth2LoginHelper = new OAuth2LoginHelper($this->config['client_id'],$this->config['client_secret']);\n $accessTokenObj = $oauth2LoginHelper->refreshAccessTokenWithRefreshToken($config->config['refresh_token']);\n $accessTokenValue = $accessTokenObj->getAccessToken();\n $refreshTokenValue = $accessTokenObj->getRefreshToken();\n $data = [\n 'access_token' => $accessTokenObj->getAccessToken(),\n 'refresh_token' => $accessTokenObj->getRefreshToken(),\n 'refresh_token_expires_in' => $accessTokenObj->getRefreshTokenExpiresAt(),\n 'expires_in' => $accessTokenObj->getAccessTokenExpiresAt(),\n 'businessId' => $config->config['businessId'],\n 'incomeAccountId' => $config->config['incomeAccountId'] ?? ''\n ];\n \n config(['invoice-gateways.quickbooks.access_token' => $data['access_token']]);\n config(['invoice-gateways.quickbooks.expires_in' => $data['expires_in'] ]);\n\n InvoiceGatewayModel::where('user_id', \\Auth::user()->id)->update([\n 'config' => $data\n ]);\n \\Log::debug('Token refreshed successfully for user_id:' . auth()->id());\n\n return $data;\n }", "title": "" }, { "docid": "42b91434a7022ac8ea674cf55c20a0c6", "score": "0.715699", "text": "public function refreshAccessToken()\n {\n $parameters = [\n 'grant_type' => 'refresh_token',\n 'refresh_token' => $this->refresh_token\n ];\n\n $authorization_header_info = $this->generateAuthorizationHeader();\n\n $refresh_token = Http::post(\n self::OAUTH_TOKEN_ENDPOINT_URL,\n $parameters,\n [\n 'headers' => [\n 'Accept: application/json',\n 'Authorization: ' . $authorization_header_info,\n 'Content-Type: application/x-www-form-urlencoded'\n ]\n ]\n );\n\n $access_token = json_decode($refresh_token, 1);\n\n return $this->setAccessToken($access_token);\n }", "title": "" }, { "docid": "b06b673c8e362a9233f87e06e6d44461", "score": "0.714037", "text": "public function authenticateWithOAuthRefresh(){\n $uri = 'o/token/?grant_type=refresh';\n $response = \\Httpful\\Request::get($this->host.$uri)\n ->addHeader('Authorization', 'Bearer '.$this->refresh_token)->sends(Mime::JSON)->send();\n $token = new OAuthResponse($response);\n if($token->success){\n $this->refresh_token = $token->refresh->token;\n $this->token = $token->access->token;\n if(is_object($this->token_update_callback) && ($this->token_update_callback instanceof Closure)){\n call_user_func_array($this->token_update_callback, [$token]);\n }\n }\n return $token;\n }", "title": "" }, { "docid": "594e3504db3c1313d3aff995f36f39af", "score": "0.7126376", "text": "public function refresh() {\n if (!$this->isRefreshToken()) {\n return NULL;\n }\n\n // Find / generate the access token for this refresh token.\n $access_token = $this->get('access_token_id')->entity;\n if (!$access_token || $access_token->get('expire')->value < REQUEST_TIME) {\n // If there is no token to be found, refresh it by generating a new one.\n $values = [\n 'expire' => static::defaultExpiration(),\n 'user_id' => $this->get('user_id')->target_id,\n 'auth_user_id' => $this->get('auth_user_id')->target_id,\n 'resource' => $access_token ? $access_token->get('resource')->target_id : 'global',\n 'created' => REQUEST_TIME,\n 'changed' => REQUEST_TIME,\n ];\n /* @var AccessTokenInterface $access_token */\n $store = \\Drupal::entityManager()->getStorage('access_token');\n $access_token = $store->create($values);\n // This refresh token is no longer needed.\n $this->delete();\n // Saving this token will generate a refresh token for that one.\n $access_token->save();\n }\n\n return $access_token;\n }", "title": "" }, { "docid": "ba6c8cf351c85b8cc3123fb12a0be9d2", "score": "0.70986015", "text": "private function refreshTokenIfNeeded()\n\t{\n\t\tif ( $this->isAccessTokenExpired() ) {\n\t\t\t$this->fetchAccessTokenWithRefreshToken( $this->getRefreshToken() );\n\t\t\t$token = $this->getAccessToken();\n $this->setBothAccessToken( $token );\n return $token;\n\t\t}\n\t\treturn $this->token;\n\t}", "title": "" }, { "docid": "50fc570e0942fe7f8cda2cf2fca69c61", "score": "0.70737076", "text": "public function RefreshTokens()\n\t\t\t{\n\t\t\t$status = $this->FetchAccessToken();\n\t\t\treturn $status;\n\t\t\t}", "title": "" }, { "docid": "1173283e7e45ce53347f41c0290b129d", "score": "0.70135915", "text": "public function refresh(Request $request)\n {\n $user = $request->user();\n\n /** Removing an current access token to create new one */\n $request->user()->tokens()->where('id', $request->user()->currentAccessToken()->id)->delete();\n $user->currentAccessToken()->delete();\n return $this->responseToken($user, $this->createAuthToken($user));\n }", "title": "" }, { "docid": "ca0ceb83f40ff39444f7862dc0defbd0", "score": "0.698188", "text": "public function putRefreshToken($token)\n\t{\n\t\t$encyptedToken = Crypt::encrypt($token);\n\t\treturn Session::put('refresh_token', $encyptedToken);\n\t}", "title": "" }, { "docid": "f528de58a88293e2d397bdc333d55ff0", "score": "0.6943548", "text": "private function expire_token() {\n }", "title": "" }, { "docid": "3c68c71db7524bf5e3723e0d3777df03", "score": "0.6940332", "text": "public function refreshToken($token = null, $refresh_token = null){\n if($token == null)\n $token = Cache::get('moloni_access_token');\n if($refresh_token == null)\n $refresh_token = Cache::get('moloni_refresh_token');\n $response = Http::post($this->_endpointUrl.\"grant/?grant_type=refresh_token&client_id=\".Setting::getParam('moloni_client_id').\"&client_secret=\".Setting::getParam('moloni_client_secret').\"&refresh_token=$refresh_token\");\n\n if ($response->successful()) {\n \\Debugbar::info($response);\n $data = $response->json();\n \\Debugbar::info($data);\n if(!empty($data['error'])){\n return false;\n }else{\n $this->accessToken = $data['access_token'];\n Cache::put('moloni_access_token', $this->accessToken);\n $this->refreshToken = $data['refresh_token'];\n Cache::put('moloni_refresh_token', $this->refreshToken);\n Cache::put('moloni_expire_access_token', (time()+intval($data['expires_in'])));\n Cache::put('moloni_expire_refresh_token', (time()+1209600));// 14 days\n \\Debugbar::info('grava cache');\n return true;\n }\n }else{\n \\Debugbar::info($response);\n return false;\n }\n\n }", "title": "" }, { "docid": "e566c5ad8e80c44911d245950321f988", "score": "0.6931633", "text": "public function testRefreshAndTestRespondWithToken()\n {\n $token = \\Auth::guard('api')->login($this->user);\n $response = $this->getJson('/api/v2/auth/refresh', [\n 'Authorization' => 'Bearer '.$token,\n ]);\n $response\n ->assertStatus(200)\n ->assertJsonStructure(['access_token', 'token_type', 'expires_in', 'refresh_ttl']);\n }", "title": "" }, { "docid": "016fd501cdd7fa83a148c2e45fa1f11b", "score": "0.6880997", "text": "private function _refreshToken()\n {\n //get the new ones\n $params = array(\n 'identification' => $this->settings->flarumApiLogin,\n 'password' => $this->settings->flarumApiPass\n );\n $headers = array(\n 'Content-Type: application/vnd.api+json',\n 'Accept: application/vnd.api+json'\n );\n $token_request = $this->doRequest(rtrim($this->settings->flarumUrl, '/').'/api/token', 'POST', $headers, [], json_encode($params));\n try {\n $json = json_decode($token_request);\n if ($json==null OR isset($json->errors))\n {\n return false;\n }\n $new_settings = array(\n 'flarumUrl' => $this->settings->flarumUrl,\n 'flarumApiLogin' => $this->settings->flarumApiLogin,\n 'flarumApiPass' => $this->settings->flarumApiPass,\n 'flarumApiToken' => $json->token\n );\n $plugin = craft()->plugins->getPlugin('flarumLogin');\n $save = craft()->plugins->savePluginSettings($plugin, $new_settings);\n \n if ($save===true)\n {\n $this->settings = $plugin->getSettings();\n return true;\n }\n else\n {\n return false;\n }\n }\n catch(Exception $e) {\n return false;\n } \n }", "title": "" }, { "docid": "bc008fb84a886394d1e207e0e2beca3c", "score": "0.68747026", "text": "public function testRefreshToken()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "094cd11ba3eac2114adea339a4fde821", "score": "0.683681", "text": "function refreshToken($client_id, $client_secret, $refresh_token) {\n // This is only a sample implementation\n $transport = $this->getTransport();\n $response = $transport->post(\"https://accounts.zoho.in/oauth/v2/token?refresh_token={$refresh_token}&client_id={$client_id}&client_secret={$client_secret}&grant_type=refresh_token\");\n $response = $response->json();\n return ['access_token' => $response['access_token'], 'timeout' => $response['expiry_in_secs']];\n }", "title": "" }, { "docid": "acdd3c534cdeb997e6fd498cdd485b10", "score": "0.68065387", "text": "private function refreshAccessToken() {\n $QuickBooksService = new QuickBooksService();\n $refreshToken= \\Drupal::state()->get('quickbooks_settings_access_refreshtoken');\n $getAccessToken = $QuickBooksService->refreshAccessToken($refreshToken);\n if ($getAccessToken) {\n \\Drupal::state()->set('quickbooks_settings_access_token', $getAccessToken->getAccessToken());\n \\Drupal::state()->set('quickbooks_settings_access_refreshtoken', $getAccessToken->getRefreshToken());\n \\Drupal::state()->set('quickbooks_settings_access_token_expires_in', $getAccessToken->getAccessTokenExpiresAt());\n \\Drupal::state()->set('quickbooks_settings_x_refresh_token_expires_in', $getAccessToken->getRefreshTokenExpiresAt());\n \\Drupal::state()->set('quickbooks_settings_consumer_key', $getAccessToken->getClientID());\n \\Drupal::state()->set('quickbooks_settings_consumer_secret', $getAccessToken->getClientSecret());\n }\n return new RedirectResponse(Url::fromRoute('quickbooks.form')->toString());\n }", "title": "" }, { "docid": "20b63167b25cf546ccbb3091e16a9818", "score": "0.6786691", "text": "public function reset()\n\t{\n\t\t$token = Auth::makeNewApiToken();\n\n\t\t$this->update(['token' => Hash::make($token)]);\n\n\t\treturn $token;\n\t}", "title": "" }, { "docid": "eed90517f1973468195fbdafec02b613", "score": "0.6726943", "text": "public function refreshTokens()\n {\n if ($this->refresh_token) {\n if ($result = SpotifyCurl::post('https://accounts.spotify.com/api/token', [\n 'grant_type' => 'refresh_token',\n 'refresh_token' => $this->refresh_token\n ], [\n 'Authorization: Basic ' . base64_encode(self::$client_id . ':' . self::$client_secret),\n 'Content-type: application/x-www-form-urlencoded'\n ])) {\n $_SESSION['access_token'] = $result->access_token;\n\n $this->access_token = $result->access_token;\n\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "27a93adbe5f27496c996b9fa05f239c8", "score": "0.6676689", "text": "public function refreshToken()\n {\n try {\n $token = JWTAuth::getToken();\n return JWTAuth::refresh($token);\n } catch (TokenInvalidException $e) {\n throw new ServiceException('The token is invalid', 0, $e);\n } catch (JWTException $e) {\n throw new ServiceException('Could not refresh token', 0, $e);\n }\n }", "title": "" }, { "docid": "8394467453902c23604bd7d57dfe3d8a", "score": "0.6671978", "text": "public function refreshToken() : bool\n\t\t{\n\t\t// Use cURL to get a new access token and refresh token\n\t\t$ch = \\curl_init();\n\n\t\t// Create full request URL\n\t\t$params = [\n\t\t\t'refresh_token' => $this->refreshToken,\n\t\t\t'grant_type' => 'refresh_token',\n\t\t\t'redirect_uri' => $this->redirectURI,\n\t\t];\n\n\t\t$url = $this->oauth2URL . '?' . \\http_build_query($params);\n\t\t\\curl_setopt($ch, CURLOPT_URL, $url);\n\n\t\t$this->setAuthorization($ch);\n\n\t\t// Set method and to expect response\n\t\t\\curl_setopt($ch, CURLOPT_POST, true);\n\t\t\\curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n\t\t\\curl_setopt($ch, CURLOPT_POSTFIELDS, '');\n\n\t\treturn $this->exec($ch);\n\t\t}", "title": "" }, { "docid": "e2fa40fd24ef16b4a135a883c51ef40c", "score": "0.6667472", "text": "public function refreshToken($refreshToken) {\n self::$auth->refreshToken($refreshToken);\n }", "title": "" }, { "docid": "abca1faedf6558822dce158f9e387deb", "score": "0.66272974", "text": "function refreshToken($refresh_token, $client_id, $client_secret) {\n $curl = curl_init();\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://www.googleapis.com/oauth2/v4/token?refresh_token={$refresh_token}&client_id={$client_id}&client_secret={$client_secret}&grant_type=refresh_token\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_HTTPHEADER => array(\n 'Content-length: 0',\n \"Content-Type: application/x-www-form-urlencoded\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n if ($err) {\n return $err;\n } else {\n $data = json_decode($response);\n return $data->access_token;\n }\n}", "title": "" }, { "docid": "920751162d4020d82031c761b063889d", "score": "0.66058505", "text": "public function getRefreshToken()\n {\n return $this->refresh_token;\n }", "title": "" }, { "docid": "c869a42bce9cbc1a366a48ee5df109ac", "score": "0.6577022", "text": "public function getRefreshToken($refresh_token);", "title": "" }, { "docid": "6c29c5cb22f7932c9de487930852b84e", "score": "0.6575607", "text": "public function refresh()\n {\n $this->sessionPost('/refresh');\n }", "title": "" }, { "docid": "69a96765ef153d565fd7ee3553bf3b00", "score": "0.65674686", "text": "public function token()\n {\n $users = User::latest()->get();\n foreach($users as $user)\n {\n //Generate API token for user\n $api_token = str_random(60);\n while(User::where('api_token', '=', $api_token)->exists())\n {\n $api_token = str_random(60);\n }\n $user->api_token = $api_token;\n $user->update();\n }\n flash()->overlay('User tokens set');\n return redirect('/users');\n }", "title": "" }, { "docid": "b69fa22f711bc996a5245d3ac608ac91", "score": "0.654339", "text": "function get_refresh_token($myToken, $reqFor = NULL){\n $tokenArr = array();\n/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n$client = new Google_Client();\n$client->setApplicationName(\"Google UserInfo PHP Starter Application\");\n// Visit https://code.google.com/apis/console?api=plus to generate your\n// oauth2_client_id, oauth2_client_secret, and to register your oauth2_redirect_uri.\n $client->setClientId('531104926444-fp902bdb7jcvcdjouom6fbdufel43nhe.apps.googleusercontent.com');\n $client->setClientSecret('YyeQUpdJO6Gdcz6a9HleiMwD');\n $client->setRedirectUri('http://vimbli.com/connections/oauthRefresh');\n// $client->setDeveloperKey('insert_your_developer_key');\n$oauth2 = new Google_Oauth2Service($client);\n\n \n //$tokenInfo['token'] = '{\"access_token\":\"ya29.AHES6ZRQxngAZQLHJjNHb8I3wjK2vsjO1siqUvKAaoebftvHfw\",\"token_type\":\"Bearer\",\"expires_in\":3600,\"id_token\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6IjdiYWM5Yjc4MTY5NmQ3MjhiZTU1NjFmMGZhZjdjNzgwZmUyYjM4NjkifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwidG9rZW5faGFzaCI6Ik12VkNuSXVOTnotLVY4TnBneVI4aFEiLCJhdF9oYXNoIjoiTXZWQ25JdU5Oei0tVjhOcGd5UjhoUSIsInZlcmlmaWVkX2VtYWlsIjoidHJ1ZSIsImVtYWlsX3ZlcmlmaWVkIjoidHJ1ZSIsImVtYWlsIjoic21hYXJ0ZGF0YXRlc3RAZ21haWwuY29tIiwiaWQiOiIxMDA1OTY2NTgzMzUzODkyMjA0NjIiLCJzdWIiOiIxMDA1OTY2NTgzMzUzODkyMjA0NjIiLCJhdWQiOiI1MzExMDQ5MjY0NDQtMzA0MW91Z25qc2JrbjA5c2JycTYybWNjZThucDRzMWQuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJjaWQiOiI1MzExMDQ5MjY0NDQtMzA0MW91Z25qc2JrbjA5c2JycTYybWNjZThucDRzMWQuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhenAiOiI1MzExMDQ5MjY0NDQtMzA0MW91Z25qc2JrbjA5c2JycTYybWNjZThucDRzMWQuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJpYXQiOjEzNjY2MjQyMzQsImV4cCI6MTM2NjYyODEzNH0.VBCo69ZyoVrH7dSIdmFGuHpjDmykrg7BbXxCvyBe7vRm2rpJ_ph3vYEZDPaP36Mblow8ihsIQwsr-feAOE4L-srLiprm3ZgdZXq9L9vH8TRNCSKa7Oin1zfIg3crEPdiE4t_r3sTF9wSI1WU-vdPmi1p2yhS48UY8iVL7Xs219U\",\"refresh_token\":\"1\\/IYokXwoQuG0luXb4mqIgG0eym_UZqHK-JzapoZ-SS4I\",\"created\":1366624533}';\n $tokenInfo['token'] = $myToken;\n //echo $myToken; die;\n \n if (isset($tokenInfo['token'])) {\n $client->setAccessToken($tokenInfo['token']);\n }\n \n $requesttoken = $tokenInfo['token'];\n //echo $requesttoken; die;\n $jsonreq = json_decode($requesttoken, true); \n /*\n echo \"=================<br>\";\n echo '<pre>'; print_r($jsonreq);\n echo \"=================<br>\";\n //die;\n */\n \n if($reqFor == \"\"){ //echo 'refresh'; die;\n $resultrefresh = $client->refreshToken($jsonreq['refresh_token']);\n //$resultrefresh = $client->refreshToken(\"1/QPVAqBlT4M65sEse_OJQoXBHe91uGdIwr1BJ3UWAAVEAA\"); \n //echo \"<pre>\";\n //echo \"Token Refreshed\";\n //echo \"<br>==================<br>\";\n //isAccessTokenExpired\n //echo 'New '.$resultrefresh; die;\n \n $tokenArr = json_decode($client->getAccessToken(),true);\n $tokenArr['json_resp'] = $client->getAccessToken();\n \n //echo \"<pre><br>NEW TOKEN<br>\";\n //print_r($resultrefresh); die;\n \n //echo '<pre>'; print_r($newTokenInfo);\n //die;\n return $tokenArr;\n } else { //echo 'revoke'; die;\n $client->revokeToken($jsonreq['refresh_token']);\n return 1;\n }\n\n}", "title": "" }, { "docid": "72d1e0278e8db85cb863500fd26a463b", "score": "0.65415704", "text": "public function refresh()\n {\n $provider = $this->getTokenProvider();\n $newToken = $provider->getAccessToken('refresh_token', [\n 'refresh_token' => $this->RefreshToken\n ]);\n\n $this->update([\n 'Token' => $newToken->getToken(),\n 'RefreshToken' => $newToken->getRefreshToken(),\n 'Expires' => $newToken->getExpires(),\n 'ResourceOwnerID' => $newToken->getResourceOwnerId()\n ])->write();\n\n return $this;\n }", "title": "" }, { "docid": "294ab10863d71722a85f42e0c780dc39", "score": "0.6507962", "text": "public function revokeApiToken()\n {\n $token = Auth::guard('api')->user()->token();\n $token->revoke();\n $token->delete();\n\n return Response::json([\"success\" => true]);\n }", "title": "" }, { "docid": "4c197b033f67cedd57aeb5967d69fe7d", "score": "0.6482298", "text": "private function refreshToken($refreshToken)\n {\n //Conseguir permiso para hacer el POST\n $ratelimiter = $this->container['rate_limiter'];\n if (!$ratelimiter->canGetToken($this->id)) {\n //No existe permiso. Devolver.\n return false;\n }\n $ratelimiter->registerTransaction($this->id, RateLimiter::IDP_REQUEST);\n $data = $this->getAccessDetails();\n if ($data) {\n $uri = $data['uri_idp'];\n $params = [\n 'grant_type' => 'refresh_token',\n 'client_id' => $data['client_id'],\n 'refresh_token' => $refreshToken\n ];\n $client = new Client();\n try {\n $response = $client->post(\n $uri,\n [\n 'form_params' => $params,\n 'connect_timeout' => Token::HTTP_TIMEOUT\n ]\n );\n if ($response->getStatusCode() == 200) {\n $ratelimiter->registerTransaction($this->cedula, RateLimiter::IDP_200);\n $this->container['log']->debug(\"Token refrescado para {$this->cedula}\");\n $body = $response->getBody()->__toString();\n $accessToken = $this->saveToken($body);\n return $accessToken;\n }\n } catch (\\GuzzleHttp\\Exception\\ClientException $e) {\n //a 400 error\n $this->container['log']->info(\"Fallo 40x refrescando token para {$this->cedula}\");\n $ratelimiter->registerTransaction($this->cedula, RateLimiter::IDP_401_403);\n return $this->newToken();\n } catch (\\GuzzleHttp\\Exception\\ConnectException $e) {\n // a connection problem\n return false;\n }\n }\n return false;\n }", "title": "" }, { "docid": "7293567a65b05ac2106c652d7a90f4c0", "score": "0.6481473", "text": "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "title": "" }, { "docid": "7293567a65b05ac2106c652d7a90f4c0", "score": "0.6481473", "text": "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "title": "" }, { "docid": "a24b284e7609ee4901ef850f2fa54fd4", "score": "0.6479644", "text": "protected function handleAuthRefresh(): void\n {\n $refreshedTokenResponse = $this->refreshTokenApiService->refresh(\n $this->getInstance(),\n $this->getRefreshToken()\n );\n\n // save refreshed token to apiKeys\n $apiKeys = $this->integration->getApiKeys();\n $apiKeys['token'] = $this->encryptionHelper->encrypt($refreshedTokenResponse['token']);\n $this->integration->setApiKeys($apiKeys);\n $this->integrationsRepository->saveEntity($this->integration);\n }", "title": "" }, { "docid": "e313663723d6403673285b2de521267f", "score": "0.6435472", "text": "public function token(){\n\t\t$this->autoRender = false;\n\t\ttry {\n\t\t\t$this->OAuth->grantAccessToken();\n\t\t} catch (OAuth2ServerException $e) {\n\t\t\t$e->sendHttpResponse();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "1134ed8cd0bef6db30ae889941905f5e", "score": "0.6424619", "text": "public function getRefreshToken()\n {\n return $this->_refreshToken;\n }", "title": "" }, { "docid": "9186517ffbbce61138dba5950da763be", "score": "0.6422217", "text": "function initRefreshToken(){\n\t\t$this->procedimiento='sigep.ft_user_mapping_ime';\n\t\t$this->transaccion='SIG_INITOK_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('access_token','access_token','varchar');\n\t\t$this->setParametro('refresh_token','refresh_token','varchar');\n\t\t$this->setParametro('expires_in','expires_in','int4');\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}", "title": "" }, { "docid": "0dbd8c0f7a91c5323e6acf98bbd6cafe", "score": "0.6421735", "text": "public function updateAPIToken()\n\t{\n\t\tdo {\n\t\t\t$this->api_token = Str::random( 60 );\n\t\t} while ( $this->where( 'api_token', $this->api_token )->exists() );\n\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "9ad56e4dc8ab614205aa39be6580f7a0", "score": "0.6414016", "text": "private function _refreshToken($secret)\n {\n $refreshTokenValue = $this->getParam('refresh_token');\n $refreshToken = $this->Oauth_Token->getByToken($refreshTokenValue);\n\n if (!$refreshToken || $refreshToken->getType() != MIDAS_OAUTH_TOKEN_TYPE_REFRESH\n ) {\n $this->_doOutput(array('error' => 'invalid_grant', 'error_description' => 'Invalid refresh token'));\n\n return;\n }\n $client = $refreshToken->getClient();\n if (!$client || $client->getSecret() !== $secret) {\n $this->_doOutput(\n array('error' => 'invalid_client', 'error_description' => 'Client authentication failed')\n );\n\n return;\n }\n // We should expire any other valid tokens that exist for this user and client\n $this->Oauth_Token->expireTokens($refreshToken->getUser(), $client);\n $accessToken = $this->Oauth_Token->createAccessToken($refreshToken, '+25 hours');\n\n $obj = array('token_type' => 'bearer');\n $obj['access_token'] = $accessToken->getToken();\n $obj['expires_in'] = 3600 * 24; // 24 hour token\n\n $this->_doOutput($obj);\n $this->getLogger()->debug(\n 'Access token refreshed to client '.$accessToken->getClientId().' for user '.$accessToken->getUserId()\n );\n }", "title": "" }, { "docid": "2ae2f8651d270e73de4e2152e12d00e4", "score": "0.6413684", "text": "public function token() {\n\t\t$this->autoRender = false;\n\t\ttry {\n\t\t\t$this->OAuthServer->grantAccessToken();\n\t\t} catch (OAuth2ServerException $e) {\n\t\t\t$e->sendHttpResponse();\n\t\t}\n\t}", "title": "" }, { "docid": "87b6d1f5e75808a22d515402a64fa067", "score": "0.6396512", "text": "public function updateRememberToken();", "title": "" }, { "docid": "e7be1c778777d5bd73070f96dcd6ae9d", "score": "0.63882035", "text": "function getToken($token, &$tstamp){\r\n\tinclude \"apiconstants.php\";\r\n\t\r\n\t// If token is expired, get new token\r\n\tif ($tstamp <= (time() - $token_expire_interval) || is_null($token))\r\n\t{\r\n\t\techo date(\"Y-m-d H:i:s\").\" Token expired or null. Requesting new token.\\n\";\r\n\t\t// Address for token request\r\n\t\t$tokenurl = $apiurl.\"token\";\r\n\r\n\t\t$postBody=\"grant_type=client_credentials\";\r\n\r\n\t\t$ch = curl_init($tokenurl);\r\n\t\tcurl_setopt_array($ch,array(\r\n\t\t\t\tCURLOPT_POST => TRUE,\r\n\t\t\t\tCURLOPT_RETURNTRANSFER => TRUE,\r\n\t\t\t\tCURLOPT_HTTPHEADER => array(\r\n\t\t\t\t\t\t'Host: '.$hosturl,\r\n\t\t\t\t\t\t'Authorization: Basic '.$encauth,\r\n\t\t\t\t\t\t'Content-Type: application/x-www-form-urlencoded'\r\n\t\t\t\t),\r\n\t\t\t\tCURLOPT_POSTFIELDS => $postBody\r\n\t\t));\r\n\r\n\t\t$response = curl_exec($ch);\r\n\r\n\t\tif($response === FALSE){\r\n\t\t\techo date(\"Y-m-d H:i:s\").\" \".curl_error($ch).\"\\n\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$tokenData = json_decode($response, true);\r\n\t\tif(is_null($tokenData)){\r\n\t\t\techo date(\"Y-m-d H:i:s\").\" Could not retrieve token from server.\\n\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$token = $tokenData[\"access_token\"];\r\n\t\t\r\n\t\t// Get time remaining for token and update tstamp\r\n\t\t$tokenurl = $apiurl.\"info/token\";\r\n\t\t$ch = curl_init($tokenurl);\r\n\t\tcurl_setopt_array($ch,array(\r\n\t\t\tCURLOPT_HTTPGET => TRUE,\r\n\t\t\tCURLOPT_RETURNTRANSFER => TRUE,\r\n\t\t\tCURLOPT_HTTPHEADER => array(\r\n\t\t\t\t\t'Host: '.$hosturl,\r\n\t\t\t\t\t'Authorization: Bearer '.$token,\r\n\t\t\t\t\t'User-Agent: '.$appname,\r\n\t\t\t\t\t'X-Forwarded-For: '.$webserver\r\n\t\t\t)\r\n\t));\r\n\t$response = curl_exec($ch);\r\n\r\n\tif($response === FALSE){\r\n\t\techo date(\"Y-m-d H:i:s\").\" \".curl_error($ch).\"\\n\";\r\n\t\treturn false;\r\n\t}\r\n\r\n\t$tiData = json_decode($response, true);\r\n\tif(is_null($tiData)){\r\n\t\techo date(\"Y-m-d H:i:s\").\" Token info response is null.\\n\";\r\n\t\treturn false;\r\n\t}\r\n\t$tstamp = $tiData[\"expiresIn\"] + time();\r\n\t\r\n\t\r\n\treturn $token;\r\n\t\t\r\n\t}\r\n\telse // do nothing, return original token\r\n\t\treturn $token;\r\n\t\r\n}", "title": "" }, { "docid": "9f1bf970fe8346e8567ea4c6735e4425", "score": "0.638731", "text": "function refresh_token($oauth_conn) {\n\n global $access_token;\n global $access_secret;\n global $access_session;\n global $store_access_token_data;\n #global $token_file_name;\n\n try {\n $response = $oauth_conn->getAccessToken( 'https://api.login.yahoo.com/oauth/v2/get_token', $access_session, $access_verifier );\n } catch( OAuthException $e ) {\n print 'Error: ' . $e->getMessage() . \"\\n\";\n print 'Response: ' . $e->lastResponse . \"\\n\";\n\n $response = NULL;\n }\n\n print_r( $response );\n\n if( $response ) {\n $access_token = $response['oauth_token'];\n $access_secret = $response['oauth_token_secret'];\n $access_session = $response['oauth_session_handle'];\n $store_access_token_data = true;\n\n print \"Was able to refresh access token:\\n\";\n print \" Token: ${access_token}\\n\";\n print \" Secret: ${access_secret}\\n\";\n print \" Session Handle: ${access_session}\\n\\n\";\n\n } else {\n\n $access_token = NULL;\n $access_secret = NULL;\n $access_session = NULL;\n print \"Unable to refresh access token, will need to request a new one.\\n\";\n }\n}", "title": "" }, { "docid": "48b6964e23c595edb029fd2580c4c56f", "score": "0.6377147", "text": "public function invalidateRequestToken() {\n if ($this->oauthState == OAUTH_OK) {\n $this->clearRequestTokenAndNonces($this->requestTokenID);\n }\n }", "title": "" }, { "docid": "b33323c8fe01b026afb2aa7419df319c", "score": "0.63754094", "text": "public static function jwtRefresh(string $token)\n {\n $data = (array) self::jwtPayloadDecode($token);\n self::jwtSaltGenerate();\n return self::jwtCreate($data);\n }", "title": "" }, { "docid": "7644ab2575703a743448d6b95f8e4c0b", "score": "0.6370717", "text": "public function refresh(): bool {\n $res = false;\n if (!empty($this->getTokenProp('refresh_token'))) {\n try {\n $Endpoint = $this->getActionEndpoint(self::ACTION_OAUTH_REFRESH);\n $Endpoint = $this->configureEndpoint($Endpoint, self::ACTION_OAUTH_REFRESH);\n $response = $Endpoint->execute()->getResponse();\n if ($response->getStatusCode() == 200) {\n $token = $this->parseResponseToToken(self::ACTION_OAUTH_REFRESH,$response);\n $this->setToken($token);\n $res = true;\n }\n } catch(InvalidAuthenticationAction $ex){\n $this->getLogger()->debug($ex->getMessage());\n }catch(\\Exception $ex){\n $this->getLogger()->error(\"[REST] OAuth Refresh Exception - \".$ex->getMessage());\n }\n }\n return $res;\n }", "title": "" }, { "docid": "040fafd292b48ed746dd79577460d3a8", "score": "0.63667864", "text": "public function refreshOAuthToken(OAuthToken $token, $auto_set_request_token = false)\n {\n $rest = new REST(array(\n 'server' => $this->oauth_token_url,\n 'debug_mode' => $this->debug_mode\n ));\n\n if ($this->oauth_token_url != self::OAUTH_TOKEN_URL) {\n $this->disableCertificateCheck($rest);\n }\n\n $response = $rest->post('', $token->toParams());\n\n $this->checkResponse($response);\n $this->checkOAuthTokenResponse($response);\n\n // populate object from response\n $token->fromObject($response);\n\n if ($auto_set_request_token) {\n $this->rest = $this->createREST($token);\n }\n\n return $token;\n }", "title": "" }, { "docid": "c2420b8e67154b93a0c8d642aa637bab", "score": "0.63655525", "text": "public function UpdateTokenAction() {\n header( 'P3P: CP=\"IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA\"' );\n header( \"Access-Control-Allow-Methods: POST,GET,OPTIONS\" );\n header( \"Access-Control-Allow-Origin: *\" );\n header( 'Access-Control-Allow-Headers: X-Requested-With' );\n\n $token = trim( $_POST['token'] );\n\n Mage::getSingleton( 'core/session', array( 'name' => 'adminhtml' ) );\n $adminsession = Mage::getSingleton( 'admin/session', array( 'name' => 'adminhtml' ) );\n $writeConnection = Mage::getSingleton( 'core/resource' )->getConnection( 'core_write' );\n\n if ( $writeConnection->query( \"UPDATE bloompa_settings SET value ='\" .$token. \"' WHERE product = 'BloompCommerce' AND param = 'token'\" ) )\n $res = array( 'status'=>'success' );\n else\n $res = array( 'status'=>'fail' );\n\n exit( json_encode( $res ) );\n }", "title": "" }, { "docid": "3b1351ef5df033c494f65abdc45b75b3", "score": "0.6363093", "text": "public static function refreshToken($key = null)\n {\n static::makeCSRFToken($key);\n }", "title": "" }, { "docid": "8470aaadec30f9fff999f9e454de0fcf", "score": "0.63621885", "text": "public function getRefreshToken($config, $authorizationCode = null, $params = array());", "title": "" }, { "docid": "264fe0b1cc1ac7249b418beeeb378659", "score": "0.6346114", "text": "function refresh($userid){\n $http = new HttpClient();\n $url = $this->base_url . \"users/\" . $userid;\n\n $user = $http->get($this->headersObj, $url, $userid);\n $refreshtoken = $user->refresh_token;\n $refreshobj = (object)[\n \"refresh_token\" => $refreshtoken\n ];\n $oauthurl = $this->base_url . \"oauth/\" . $userid;\n $oauthobj = $http->post($this->headersObj, $oauthurl, $refreshobj);\n $oauthkey = $oauthobj->oauth_key;\n return $oauthkey;\n }", "title": "" }, { "docid": "f1544cfcf4094712ec7a014f19c561c9", "score": "0.6341833", "text": "public function refreshAccessToken($refresh_token) {\n $url = \"http://myoauthprovider.com:8080/api/refresh\";\n $params = array(\n \"client_id\" => MYOAUTHPROVIDER_CLIENT_ID, \n \"client_secret\" => MYOAUTHPROVIDER_CLIENT_SECRET,\n \"refresh_token\" => $refresh_token\n );\n // perform request and analyze results\n if ($result = $this->performRequest(\"POST\", $url, DECODE_FORMAT_JSON, $params)) {\n if (isset($result[\"error\"]) && ($result[\"error\"] == false)) {\n return $result;\n }\n }\n return false;\n }", "title": "" }, { "docid": "e879768cbbbef031bf2144b17819bab4", "score": "0.6339224", "text": "public function backupCurrentToken()\n {\n $token = $this->getClient()->getState('token');\n $this->getClient()->setState('real_token', $token);\n }", "title": "" }, { "docid": "c634cafbd3f7783dfa6714e2dd0b5be7", "score": "0.63367486", "text": "public function testRefreshToken()\n {\n try {\n\n $client_id = 'Jiz87D8/Vcvr6fvQbH4HyNgwTlfSyQ3x.openstack.client';\n $client_secret = 'ITc/6Y5N7kOtGKhg';\n\n\n Session::set(\"openid.authorization.response\", IAuthService::AuthorizationResponse_AllowOnce);\n\n //do authorization ...\n\n $params = array(\n OAuth2Protocol::OAuth2Protocol_ClientId => $client_id,\n OAuth2Protocol::OAuth2Protocol_RedirectUri => 'https://www.test.com/oauth2',\n OAuth2Protocol::OAuth2Protocol_ResponseType => OAuth2Protocol::OAuth2Protocol_ResponseType_Code,\n OAuth2Protocol::OAuth2Protocol_Scope => sprintf('%s/resource-server/read', $this->current_realm),\n OAuth2Protocol::OAuth2Protocol_AccessType =>OAuth2Protocol::OAuth2Protocol_AccessType_Offline\n );\n\n $response = $this->action(\"POST\", \"OAuth2ProviderController@authorize\",\n $params,\n array(),\n array(),\n array());\n\n $status = $response->getStatusCode();\n $url = $response->getTargetUrl();\n $content = $response->getContent();\n\n // get auth code ...\n $comps = @parse_url($url);\n $query = $comps['query'];\n $output = array();\n parse_str($query, $output);\n\n\n //do get auth token...\n $params = array(\n 'code' => $output['code'],\n 'redirect_uri' => 'https://www.test.com/oauth2',\n 'grant_type' => OAuth2Protocol::OAuth2Protocol_GrantType_AuthCode,\n );\n\n\n $response = $this->action(\"POST\", \"OAuth2ProviderController@token\",\n $params,\n array(),\n array(),\n // Symfony interally prefixes headers with \"HTTP\", so\n array(\"HTTP_Authorization\" => \" Basic \" . base64_encode($client_id . ':' . $client_secret)));\n\n $this->assertResponseStatus(200);\n\n $content = $response->getContent();\n\n $response = json_decode($content);\n //get access token and refresh token...\n $access_token = $response->access_token;\n $refresh_token = $response->refresh_token;\n\n $this->assertTrue(!empty($access_token));\n $this->assertTrue(!empty($refresh_token));\n\n\n $params = array(\n 'refresh_token' => $refresh_token,\n 'grant_type' => OAuth2Protocol::OAuth2Protocol_GrantType_RefreshToken,\n );\n\n $response = $this->action(\"POST\", \"OAuth2ProviderController@token\",\n $params,\n array(),\n array(),\n // Symfony interally prefixes headers with \"HTTP\", so\n array(\"HTTP_Authorization\" => \" Basic \" . base64_encode($client_id . ':' . $client_secret)));\n\n $this->assertResponseStatus(200);\n\n $content = $response->getContent();\n\n $response = json_decode($content);\n\n //get new access token and new refresh token...\n $new_access_token = $response->access_token;\n $new_refresh_token = $response->refresh_token;\n\n $this->assertTrue(!empty($new_access_token));\n $this->assertTrue(!empty($new_refresh_token));\n\n } catch (Exception $ex) {\n throw $ex;\n }\n }", "title": "" }, { "docid": "29278c33920210f416994349aab0a64d", "score": "0.63146734", "text": "public function fetchNewAccessToken() : string;", "title": "" }, { "docid": "d1e47c53c2cd0e5550ee7ab718ce42f3", "score": "0.63094836", "text": "public function refreshAccessToken()\n {\n try {\n $token = $this->service->getStorage()->retrieveAccessToken(static::$provider);\n } catch (TokenNotFoundException $e) {\n throw new AuthorizationException();\n }\n $this->service->refreshAccessToken($token);\n }", "title": "" }, { "docid": "6b982505a17d61cb490e1fc4ec200f90", "score": "0.63048047", "text": "public function token()\n {\n $token = JWTAuth::getToken();\n\n if (! $token) {\n throw new BadRequestHttpException('Token not provided');\n }\n\n try {\n $token = JWTAuth::refresh($token);\n } catch (TokenInvalidException $e) {\n throw new AccessDeniedHttpException('The token is invalid');\n }\n \n $payload = JWTAuth::parseToken()->getPayload();\n $expiration = $payload->getExp();\n return response()->json([\n \"token_type\" => \"Bearer\",\n 'token' => $token,\n 'expires_in' => $expiration\n ], 200);\n }", "title": "" }, { "docid": "df374087ea6298763be481241e847c2e", "score": "0.63034475", "text": "public function getNewRefreshToken() {\n return new RefreshTokenEntity();\n }", "title": "" }, { "docid": "ef84d0aee873d4677f325420a2c30ec6", "score": "0.6282128", "text": "public static function refreshToken()\n {\n try {\n return self::where('key', 'refresh_token')->firstOrFail()->value;\n } catch (ModelNotFoundException $ex) {\n return '';\n }\n }", "title": "" }, { "docid": "31cbb3619ab6d63d76d21c70e003fa69", "score": "0.6259346", "text": "function updaterefreshtoken($name,$type,$token)\n {\n global $db;\n $db->execwf('BEGIN EXCLUSIVE TRANSACTION');\n $db->execwf(\"UPDATE CONFIG SET VALUE='{$db->escapeString($token)}' WHERE NAME='{$db->escapeString($name)}' AND TYPE='{$db->escapeString($type)}_refresh_token'\");\n $db->execwf('END TRANSACTION');\n }", "title": "" }, { "docid": "01361b431c7d8b97ed579416d92b66b2", "score": "0.62384284", "text": "public function refreshToken($refreshToken) {\n // no need to catch specific errors here (only errors checked in request() are possible)\n $response = $this->request('/api/octb/token-refresh', 'POST', ['refreshToken' => $refreshToken]);\n return $response;\n }", "title": "" }, { "docid": "b271acd1a75ddb2f16cb0e0c27d7d7ac", "score": "0.62302315", "text": "public function refreshRememberToken(array $credentials);", "title": "" }, { "docid": "39cc8cbccd6cbebac91454de8f8fc1bd", "score": "0.6194422", "text": "public function refreshSession() {}", "title": "" }, { "docid": "1d7d6e43ef9e4f26cd343c960d7f59c2", "score": "0.6188059", "text": "protected function refreshCsrfToken()\n\t{\n\t\t$this->app()->session()->set('_csrfToken', md5(uniqid(microtime(true), true)));\n\t}", "title": "" }, { "docid": "2149640e15e942eec65d760c9211706a", "score": "0.6181171", "text": "public function refreshUser() {}", "title": "" }, { "docid": "861569cb0f6569dfd6920a4614eb6dca", "score": "0.6179257", "text": "public function testValidRefreshTokenWithNewRefreshTokenInResponse()\n {\n $storage = Bootstrap::getInstance()->getMemoryStorage();\n $server = new Server($storage, array('always_issue_new_refresh_token' => true));\n\n $request = TestRequest::createPost(array(\n 'grant_type' => 'refresh_token', // valid grant type\n 'client_id' => 'Test Client ID', // valid client id\n 'client_secret' => 'TestSecret', // valid client secret\n 'refresh_token' => 'test-refreshtoken', // valid refresh token\n ));\n $token = $server->grantAccessToken($request, new Response());\n $this->assertTrue(isset($token['refresh_token']), 'refresh token should always refresh');\n\n $refresh_token = $storage->getRefreshToken($token['refresh_token']);\n $this->assertNotNull($refresh_token);\n $this->assertEquals($refresh_token['refresh_token'], $token['refresh_token']);\n $this->assertEquals($refresh_token['client_id'], $request->request('client_id'));\n $this->assertTrue($token['refresh_token'] != 'test-refreshtoken', 'the refresh token returned is not the one used');\n $used_token = $storage->getRefreshToken('test-refreshtoken');\n $this->assertFalse($used_token, 'the refresh token used is no longer valid');\n }", "title": "" }, { "docid": "d426521a11082ed55b6a28beca482d39", "score": "0.61746407", "text": "protected function addRefreshToken() {\n // Only add the refresh token of there is none associated.\n $has_refresh_token = (bool) $this\n ->entityManager()\n ->getStorage($this->getEntityTypeId())\n ->getQuery()\n ->condition('access_token_id', $this->id())\n ->count()\n ->execute();\n if ($has_refresh_token) {\n return;\n }\n $extension = \\Drupal::config('simple_oauth.settings')->get('refresh_extension') ?: static::REFRESH_EXTENSION_TIME;\n $values = [\n 'expire' => $this->get('expire')->value + $extension,\n 'auth_user_id' => $this->get('auth_user_id')->target_id,\n 'access_token_id' => $this->id(),\n 'resource' => 'authentication',\n 'created' => $this->getCreatedTime(),\n 'changed' => $this->getChangedTime(),\n ];\n $refresh_token = $this\n ->entityManager()\n ->getStorage($this->getEntityType()->id())\n ->create($values);\n $refresh_token->save();\n }", "title": "" }, { "docid": "99ba060707f3ac09942343628d753efc", "score": "0.617284", "text": "function sw_get_useable_auth($refresh_token){\n\t\t$body = array('grant_type' => 'refresh_token', 'refresh_token' => $refresh_token);\n\t\t$auth_string = '';\n\t\t$headers = array('Authorization' => 'Basic ' . base64_encode($auth_string));\n\t\t$args = array('headers' => $headers, 'body' => $body);\n\t\t$response = wp_remote_post('https://accounts.spotify.com/api/token', $args);\n\t\treturn json_decode($response['body'], true)['access_token'];\n\t}", "title": "" }, { "docid": "d543680a2e46c68f4eb2eacb0d0c7753", "score": "0.61680007", "text": "public function getTokenAndRefreshToken($email, $password) { \n $client_id = env('CLIENT_ID');\n $client_secret = env('CLIENT_SECRET');\n $data = [\n 'grant_type' => 'password',\n 'client_id' => $client_id,\n 'client_secret' => $client_secret,\n 'username' => $email,\n 'password' => $password,\n 'scope' => '*',\n ];\n $request = Request::create('/oauth/token', 'POST', $data);\n\n return app()->handle($request); \n }", "title": "" }, { "docid": "ac04b44e29e34253bd19d7125cb0c84b", "score": "0.61584127", "text": "public function updateAccessToken($config, $refreshToken = null);", "title": "" }, { "docid": "35d98c38a5210c479a5658431edbbc18", "score": "0.61579406", "text": "private function checkAccessToken(){\n $accessToken = json_decode(file_get_contents($this->credentialsPath), true);\n $this->client->setAccessToken($accessToken);\n // Refresh the token if it's expired.\n if ($this->client->isAccessTokenExpired()) {\n //Get the old access token\n $oldAccessToken=$this->client->getAccessToken();\n // Get new token with the refresh token\n $this->client->fetchAccessTokenWithRefreshToken($this->client->getRefreshToken());\n // Get the new access\n $accessToken=$this->client->getAccessToken();\n // Push the old refresh token to the new token\n $accessToken['refresh_token']=$oldAccessToken['refresh_token'];\n // Put to the new file\n file_put_contents($this->credentialsPath, json_encode($accessToken));\n //$this->client->fetchAccessTokenWithRefreshToken($this->client->getRefreshToken());\n //file_put_contents($this->credentialsPath, json_encode($this->client->getAccessToken()));\n }\n }", "title": "" }, { "docid": "1461f7b6367012e45802f49e2066e802", "score": "0.6152629", "text": "public function logout()\n {\n $accessToken = auth()->user()->token();\n\n $refreshToken = DB::table('oauth_refresh_tokens')\n ->where('access_token_id', $accessToken)\n ->update([\n 'revoked' => true\n ]);\n\n $accessToken->revoke();\n\n // Respond\n return response()->json([\n 'message' => 'Logged out successfully'\n ], 200);\n }", "title": "" }, { "docid": "247d6d9f136e63467a1e13e1b75edb4a", "score": "0.61451757", "text": "protected function refreshToken($entry)\n {\n $newToken = app()['gluu-wrapper']->getTokenRequester()->refreshToken($entry->client_id, $entry->refresh_token);\n return $newToken;\n }", "title": "" }, { "docid": "c3cf5e66b4802743ebcf31fc7c1aeaef", "score": "0.61422807", "text": "public function refreshAccessToken(AccessToken $token = null):AccessToken{\n\n\t\tif(!$this instanceof TokenRefresh){\n\t\t\tthrow new ProviderException('token refresh not supported');\n\t\t}\n\n\t\tif($token === null){\n\t\t\t$token = $this->storage->getAccessToken($this->serviceName);\n\t\t}\n\n\t\t$refreshToken = $token->refreshToken;\n\n\t\tif(empty($refreshToken)){\n\t\t\tthrow new ProviderException(\n\t\t\t\tsprintf('no refresh token available, token expired [%s]', date('Y-m-d h:i:s A', $token->expires))\n\t\t\t);\n\t\t}\n\n\t\t$body = [\n\t\t\t'client_id' => $this->options->key,\n\t\t\t'client_secret' => $this->options->secret,\n\t\t\t'grant_type' => 'refresh_token',\n\t\t\t'refresh_token' => $refreshToken,\n\t\t\t'type' => 'web_server',\n\t\t];\n\n\t\t$request = $this->requestFactory\n\t\t\t->createRequest('POST', $this->refreshTokenURL ?? $this->accessTokenURL)\n\t\t\t->withHeader('Content-Type', 'application/x-www-form-urlencoded')\n\t\t\t->withHeader('Accept-Encoding', 'identity')\n\t\t\t->withBody($this->streamFactory->createStream($this->buildQuery($body, PHP_QUERY_RFC1738)))\n\t\t;\n\n\t\tforeach($this->authHeaders as $header => $value){\n\t\t\t$request = $request->withAddedHeader($header, $value);\n\t\t}\n\n\t\t$newToken = $this->parseTokenResponse($this->http->sendRequest($request));\n\n\t\tif(empty($newToken->refreshToken)){\n\t\t\t$newToken->refreshToken = $refreshToken;\n\t\t}\n\n\t\t$this->storage->storeAccessToken($this->serviceName, $newToken);\n\n\t\treturn $newToken;\n\t}", "title": "" }, { "docid": "248b1eeb9759b35aba2b6351078bb9f7", "score": "0.61269855", "text": "abstract public function update(UserToken $token);", "title": "" }, { "docid": "5d91ed055f29e8de1ceb8cdd9b07ef56", "score": "0.610514", "text": "protected function access_token() {\n\t\t$this->oauthServer->handleTokenRequest(OAuth2\\Request::createFromGlobals())->send();\n\t}", "title": "" }, { "docid": "ea66dbd5ca60621bc65fc1418d6d76f2", "score": "0.6102499", "text": "public function getRefreshLongLivedAcctionToken()\n {\n return $this->client->get('refresh_access_token', [\n 'query' => [\n 'grant_type'=> 'ig_refresh_token'\n ]\n ]);\n }", "title": "" }, { "docid": "b46161410cabc80fc3d644a2ace42508", "score": "0.609857", "text": "public function eraseTokenAction()\n {\n $account = $this->getLoggedAccount();\n $this->storeAccountApiKey($account, '');\n return $this->createApiResponse(['uid' => $account->getUid()]);\n }", "title": "" }, { "docid": "eef373c9a9f71952d21e5741c4a081c8", "score": "0.6096642", "text": "private function refreshToken($provider, $token)\n {\n /** @var ProviderApplicationService $providerApplicationService */\n $providerApplicationService = $this->container->get('application.user.provider.service');\n\n /** @var SettingsService $settingsService */\n $settingsService = $this->container->get('domain.settings.service');\n\n /** @var array $outlookSettings */\n $outlookSettings = $settingsService->getCategorySettings('outlookCalendar');\n\n $decodedToken = json_decode($token, true);\n\n $response = wp_remote_post('https://login.microsoftonline.com/common/oauth2/v2.0/token', array(\n 'timeout' => 25,\n 'body' => array(\n 'client_id' => $outlookSettings['clientID'],\n 'client_secret' => $outlookSettings['clientSecret'],\n 'grant_type' => 'refresh_token',\n 'refresh_token' => $decodedToken['refresh_token'],\n 'redirect_uri' => str_replace('http://', 'https://', $outlookSettings['redirectURI']),\n 'scope' => 'offline_access calendars.readwrite',\n )\n ));\n\n if ($response instanceof WP_Error) {\n return false;\n }\n\n if ($response['response']['code'] !== 200) {\n return false;\n }\n\n $decodedToken = json_decode($response['body'], true);\n $decodedToken['created'] = time();\n\n $encodedToken = json_encode($decodedToken);\n\n $provider->setOutlookCalendar(OutlookCalendarFactory::create([\n 'id' => $provider->getOutlookCalendar()->getId()->getValue(),\n 'token' => $encodedToken,\n 'calendarId' => $provider->getOutlookCalendar()->getCalendarId()->getValue()\n ]));\n\n $providerApplicationService->updateProviderOutlookCalendar($provider);\n\n return $encodedToken;\n }", "title": "" } ]
0357e9b2bb69722e04d9bcc3ee0f7091
Set child entity Adds the $child entity as a child element at $position. Does not replace any entities. Instead, an entity at $position and all following entities are moved down.
[ { "docid": "89b2fcb0dc6a02d6f143b4a10af31308", "score": "0.8085297", "text": "public function setChild($position, AeInterface_Xml_Entity $child)\n {\n $type = AeType::of($position);\n\n if ($type != 'integer') {\n throw new AeXmlEntityElementException('Invalid value passed: expecting integer, ' . $type . ' given', 400);\n }\n\n if ($position instanceof AeInteger) {\n $position = $position->getValue();\n }\n\n if ($position < 0) {\n throw new AeXmlEntityElementException('Invalid value passed: position cannot be less than zero', 400);\n }\n\n if ($child->hasParent()) {\n $child->getParent()->removeChild($child);\n }\n\n $length = count($this->_children);\n\n if ($position > $length) {\n throw new AeXmlEntityElementException('Invalid value passed: position cannot be greater than child count', 400);\n }\n\n $entities = array();\n\n if ($this->hasChild($position))\n {\n\n for ($i = $position; $i < $length; $i++) {\n $entities[] = $this->_children[$i];\n $this->removeChild($i);\n }\n }\n\n $this->addChild($child);\n\n if (!empty($entities))\n {\n foreach ($entities as $entity) {\n $this->addChild($entity);\n }\n }\n\n return $this;\n }", "title": "" } ]
[ { "docid": "7357b30c70cdc6959c662dd822aebf37", "score": "0.6692254", "text": "public function setchild(&$tree,$idx=-1)\r\n {\r\n if($idx<0)$idx=$this->key();\r\n $item = &$this->items[$idx];\r\n $item[$this->childfieldidx]=$tree->handle;\r\n $tree->parentc=$this->handle;\r\n $tree->parenti=$idx;\r\n }", "title": "" }, { "docid": "c1079fd9be8db6f078c8345f1afa4df4", "score": "0.6472122", "text": "public function addChild($child, $before = true, $position = -1)\n {\n if ($child instanceof Element)\n {\n $toAdd = array(\n 'element' => $child,\n 'before' => $before // before internal text?\n );\n $nrChilds = \\count($this->childs);\n if ($position == - 1 || $position >= $nrChilds)\n {\n // the inserted position is the end of the array\n $position = $nrChilds;\n\n }\n else\n {\n // we need to make room for the new Element\n for($i = $nrChilds; $i > $position; $i--)\n {\n $this->childs[$i] = $this->childs[$i - 1];\n }\n }\n\n $toAdd['position'] = $position;\n $this->childs[$position] = $toAdd;\n }\n\n return $this;\n }", "title": "" }, { "docid": "ee1c154d662c22a35ab5f0181b024032", "score": "0.6470875", "text": "public function setChild($child)\n {\n $this->child = $child;\n return $this;\n }", "title": "" }, { "docid": "e6ba3b4197fb3086f4f07465fc2cd420", "score": "0.6303934", "text": "public function addChildren(Chunk $child) : void\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "a03f4c9bced7d47bf6ffc74c22a7d901", "score": "0.6235488", "text": "public function injectAfter( O_Dao_NestedSet_iNode $child )\r\n\t{\r\n\t\tO_Db_Manager::getConnection()->beginTransaction();\r\n\t\t// Remove child from its tree\r\n\t\t$childQuery = $child->revoke();\r\n\t\t$this->reload();\r\n\r\n\t\t$parentLeft = $this->right_key;\r\n\r\n\t\t// Update keys in current tree\r\n\t\t$_2N = $child->right_key - $child->left_key + 1;\r\n\t\t$this->getRootNodes()->field( \"left_key\",\r\n\t\t\t\t\"IF(left_key>$this->right_key,left_key+$_2N,left_key)\", true )->field(\r\n\t\t\t\t\"right_key\", \"IF(right_key>$this->right_key,right_key+$_2N,right_key)\", true )->update();\r\n\r\n\t\t// Set root, level and keys for childs\r\n\t\t$this->processInjection( $childQuery, $parentLeft, $this->level );\r\n\t\tO_Db_Manager::getConnection()->commit();\r\n\t}", "title": "" }, { "docid": "392c1d01a82e829f8465c9d2dfeb0b70", "score": "0.6177418", "text": "public function appendChild($child)\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "e41c660c36eedfb57e5ac3bf679252d9", "score": "0.6099553", "text": "public function injectBefore( O_Dao_NestedSet_iNode $child )\r\n\t{\r\n\t\tO_Db_Manager::getConnection()->beginTransaction();\r\n\t\t// Remove child from its tree\r\n\t\t$childQuery = $child->revoke();\r\n\t\t$this->reload();\r\n\r\n\t\t$parentLeft = $this->left_key - 1;\r\n\r\n\t\t// Update keys in current tree\r\n\t\t$_2N = $child->right_key - $child->left_key + 1;\r\n\t\t$this->getRootNodes()->field( \"left_key\",\r\n\t\t\t\t\"IF(left_key>=$this->left_key,left_key+$_2N,left_key)\", true )->field(\r\n\t\t\t\t\"right_key\", \"IF(right_key>$this->left_key,right_key+$_2N,right_key)\", true )->update();\r\n\r\n\t\t// Set root, level and keys for childs\r\n\t\t$this->processInjection( $childQuery, $parentLeft, $this->level );\r\n\t\t$child->reload();\r\n\t\t$this->reload();\r\n\t\tO_Db_Manager::getConnection()->commit();\r\n\r\n\t}", "title": "" }, { "docid": "d61396f541737a85950d643937ca6c7d", "score": "0.60922503", "text": "public function addChild(EntityTest2Dto $child)\n {\n $this->setChild($child);\n $child->setParent($this);\n $this->setValue();\n $child->setPrintR($this->pushPrintR($child->getPrintR()));\n\n return $this;\n }", "title": "" }, { "docid": "471839ac3341aac37e12c47bb7ab66f5", "score": "0.60701466", "text": "function add_child(&$child) {\r\n\t\t$this->children[] =& $child;\r\n\t\t$child->set_parent($this);\r\n\t}", "title": "" }, { "docid": "c365d41b5095712d788aa087a7228262", "score": "0.606686", "text": "public function addChild ($child, $childIndex = FALSE)\n {\n if ($child instanceof Element || is_string($child) || is_numeric($child)) {\n\n if ($childIndex === FALSE || $childIndex < 0 || $childIndex >= count($this->_children)) {\n $this->_children[] = $child;\n } else {\n $this->_children = array_merge(\n array_slice($this->_children, 0, $childIndex),\n [$child],\n array_slice($this->_children, $childIndex)\n );\n }\n } else {\n throw new ChildException('Invalid child data type');\n }\n\n return $this;\n }", "title": "" }, { "docid": "fd4b62fe2c405f6fb574c8f94a3281e4", "score": "0.6053993", "text": "public function injectBottom( O_Dao_NestedSet_iNode $child )\r\n\t{\r\n\t\tO_Db_Manager::getConnection()->beginTransaction();\r\n\t\t// Remove child from its tree\r\n\t\t$childQuery = $child->revoke();\r\n\t\t$this->reload();\r\n\r\n\t\t$parentLeft = $this->right_key - 1;\r\n\r\n\t\t// Update keys in current tree\r\n\t\t$_2N = $child->right_key - $child->left_key + 1;\r\n\t\t$this->getRootNodes()->field( \"left_key\",\r\n\t\t\t\t\"IF(left_key>$this->right_key,left_key+$_2N,left_key)\", true )->field(\r\n\t\t\t\t\"right_key\", \"IF(right_key>=$this->right_key,right_key+$_2N,right_key)\", true )->update();\r\n\r\n\t\t// Set root, level and keys for childs\r\n\t\t$this->processInjection( $childQuery, $parentLeft, $this->level + 1 );\r\n\t\tO_Db_Manager::getConnection()->commit();\r\n\t}", "title": "" }, { "docid": "8be02ede2859e1436a4bb2181ac0c8da", "score": "0.5988537", "text": "public function setChild($key, $value)\n {\n if (empty($key)) {\n $this->children[] = $value;\n } else {\n $this->children[$key] = $value;\n }\n }", "title": "" }, { "docid": "4d47072254b896732b29b15e079eba89", "score": "0.59782434", "text": "public function addChild(HTMLElement $child){\n if(in_array($this->tag, self::VOID_TAG)){\n throw new DomainException(\"{$this->tag} is a void tag, it can not have childs!\");\n }\n array_push($this->childs, $child);\n }", "title": "" }, { "docid": "1792fe9cd353390d6f13512da0b7c24b", "score": "0.59085125", "text": "public function setDataChildId ($childId)\n {\n $this->getResource()->setDataChildId($this, $childId);\n }", "title": "" }, { "docid": "546ff75cf39bc098828e75525de97931", "score": "0.58465695", "text": "public function add($child) {\r\n\t\tif (is_array($child)) {\r\n\t\t\tforeach ($child as $valor) {\r\n\t\t\t\t$this->children[] = $valor;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->children[] = $child;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0e7b659e912dbfd2d172f0cf5c0dcfbd", "score": "0.5817587", "text": "public function add_child(BuckysBBCodeNode $child){\n $this->children[] = $child;\n $child->set_parent($this);\n }", "title": "" }, { "docid": "0cc5589d4be4e132fe6bf1e34808ca70", "score": "0.5801573", "text": "public function addChild($child) {\n\t\t$this->_children[$child->id] = $child;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e2a9cd50e12123c1e47fb4f4ea72ad5f", "score": "0.570558", "text": "function setM_CHILD($M_CHILD){ $this->M_CHILD = $M_CHILD; }", "title": "" }, { "docid": "25dd357f157bacdcb947f8036d1b22ea", "score": "0.5703322", "text": "public function injectTop( O_Dao_NestedSet_iNode $child )\r\n\t{\r\n\t\tO_Db_Manager::getConnection()->beginTransaction();\r\n\t\t// Remove child from its tree\r\n\t\t$childQuery = $child->revoke();\r\n\t\t$this->reload();\r\n\r\n\t\t$parentLeft = $this->left_key;\r\n\r\n\t\t// Update keys in current tree\r\n\t\t$_2N = $child->right_key - $child->left_key + 1;\r\n\t\t$this->getRootNodes()->field( \"left_key\",\r\n\t\t\t\t\"IF(left_key>$this->left_key,left_key+$_2N,left_key)\", true )->field(\r\n\t\t\t\t\"right_key\", \"IF(right_key>$this->left_key,right_key+$_2N,right_key)\", true )->update();\r\n\r\n\t\t// Set root, level and keys for childs\r\n\t\t$this->processInjection( $childQuery, $parentLeft, $this->level + 1 );\r\n\t\tO_Db_Manager::getConnection()->commit();\r\n\t}", "title": "" }, { "docid": "0ec7f62b1b20a83266485b7fb3ded3d4", "score": "0.5689315", "text": "public function addChild($name, Mapping $child)\n {\n $this->children[$name] = $child;\n }", "title": "" }, { "docid": "99705167373b282b8072ed0b166062b0", "score": "0.5663237", "text": "public function add($child)\r\n {\r\n if ($child instanceof self) {\r\n $child->setParent($this);\r\n }\r\n $this->children[] = $child;\r\n }", "title": "" }, { "docid": "0ec8c624ce40f3ddcdc174227f4f97dc", "score": "0.5594036", "text": "function new_child($child,$child_name){\r\n\t if(isset($this->$child_name)){\r\n $this->new_child_array($child,$child_name);\r\n\t }else{\r\n \t $this->$child_name=&$child;\r\n\t }\r\n\t}", "title": "" }, { "docid": "742bdb0afb449ebc59b5f940ec8065b7", "score": "0.55333495", "text": "public function setChild($value,$options=array('required'=>true)){ \n $this->_data['child'] = new ZendT_Type_Number($value,array('numDecimal'=>2));\n if ($options['db'])\n $this->_data['child']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'child');\n \n }\n return $this;\n }", "title": "" }, { "docid": "1ba03bc0cb1e1e5961c712e36918902d", "score": "0.5475577", "text": "protected function addNodeToDocument(Child $child)\n {\n $styles = $this->prepareNodeStyles($child->getNodeName(), $child->getAttributes());\n $currentX = $this->getCurrentX();\n\n if (null !== $this->yOverride) {\n $currentY = $this->yOverride;\n $this->yOverride = null;\n } else {\n $currentY = $this->getCurrentY();\n }\n\n $wrapLength = ($this->x > $this->pageMargins['left']) ?\n $this->page->getWidth() - $this->pageMargins['right'] - $this->x :\n $this->page->getWidth() - $this->pageMargins['right'] - $this->pageMargins['left'];\n\n // Image node\n if ($child->getNodeName() == 'img') {\n $image = Document\\Page\\Image::createImageFromFile($this->fileDir . '/' . $child->getAttribute('src'));\n $width = null;\n $height = null;\n $align = null;\n\n if ($child->hasAttribute('width')) {\n $width = (strpos($child->getAttribute('width'), '%')) ?\n $this->page->getWidth() * ((int)$child->getAttribute('width') / 100) : (int)$child->getAttribute('width');\n } else if ($child->hasAttribute('height')) {\n $height = (strpos($child->getAttribute('height'), '%')) ?\n $this->page->getHeight() * ((int)$child->getAttribute('height') / 100) : (int)$child->getAttribute('height');\n } else if (null !== $styles['width']) {\n $width = (strpos($styles['width'], '%')) ?\n $this->page->getWidth() * ((int)$styles['width'] / 100) : (int)$styles['width'];\n } else if (null !== $styles['height']) {\n $height = (strpos($styles['height'], '%')) ?\n $this->page->getHeight() * ((int)$styles['height'] / 100) : (int)$styles['height'];\n }\n\n if (null !== $width) {\n $image->resizeToWidth($width);\n } else if (null !== $height) {\n $image->resizeToHeight($height);\n }\n\n if (null === $height) {\n $height = (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n }\n\n if ($child->hasAttribute('align')) {\n $align = strtoupper($child->getAttribute('align'));\n } else if (isset($styles['float'])) {\n $align = strtoupper($styles['float']);\n }\n\n if ($align == 'LEFT') {\n $box = [\n 'left' => $currentX,\n 'right' => $currentX + $width + ($styles['marginRight'] ?? 0),\n 'top' => $currentY,\n 'bottom' => $currentY - $height - ($styles['marginBottom'] ?? 0)\n ];\n $this->textWrap = new Document\\Page\\Text\\Wrap('RIGHT', $this->pageMargins['left'], $this->page->getWidth() - $this->pageMargins['right'], $box);\n } else if ($align == 'RIGHT') {\n $box = [\n 'left' => $this->page->getWidth() - $this->pageMargins['right'] - $width - ($styles['marginLeft'] ?? 0),\n 'right' => $this->page->getWidth() - $this->pageMargins['right'],\n 'top' => $currentY,\n 'bottom' => $currentY - $height - ($styles['marginBottom'] ?? 0)\n ];\n $this->textWrap = new Document\\Page\\Text\\Wrap('LEFT', $this->pageMargins['left'], $this->page->getWidth() - $this->pageMargins['right'], $box);\n }\n\n if (null !== $this->textWrap) {\n $newY = $currentY - ((null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight());\n if ($align == 'RIGHT') {\n $this->page->addImage($image, ($this->page->getWidth() - $this->pageMargins['right'] - $width), $newY);\n } else {\n $this->page->addImage($image, $currentX, $newY);\n }\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n } else {\n $currentY -= (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n $this->y += (null !== $image->getResizedHeight()) ? $image->getResizedHeight() : $image->getHeight();\n $this->page->addImage($image, $currentX, $currentY);\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n }\n // Table node\n } else if ($child->getNodeName() == 'table') {\n $tableWidth = $this->page->getWidth() - $this->pageMargins['left'] - $this->pageMargins['right'];\n $columnCount = count($child->getChild(0)->getChildNodes());;\n $rowCount = 0;\n $columnWidth = floor($tableWidth / $columnCount);\n $fontObject = $this->document->getFont($styles['currentFont']);\n $currentRow = 0;\n $currentX = $this->pageMargins['left'] + 10;\n $thHeight = 0;\n $offset = 0;\n $startY = $currentY;\n\n foreach ($child->getChildNodes() as $childNode) {\n if (($childNode->getNodeName() == 'tr') && ($childNode->hasChildNodes())) {\n foreach ($childNode->getChildNodes() as $grandChild) {\n if ($grandChild->getNodeName() == 'th') {\n $thString = $grandChild->getNodeValue();\n\n $thStringWidth = $fontObject->getStringWidth($thString, $styles['fontSize']);\n if ($thStringWidth > ($columnWidth - 20)) {\n $strings = $this->getStringLines($thString, $styles['fontSize'], $columnWidth - 20, $fontObject);\n foreach ($strings as $i => $string) {\n $text = new Document\\Page\\Text($string, $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, ($currentY - ($styles['fontSize'] * $i)));\n }\n $newThHeight = (count($strings) * $styles['fontSize']) + 20;\n if ($newThHeight > $thHeight) {\n $thHeight = $newThHeight;\n $offset = $thHeight - 30;\n }\n } else {\n $text = new Document\\Page\\Text($thString, $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY);\n }\n $currentX += $columnWidth;\n }\n }\n }\n }\n\n foreach ($child->getChildNodes() as $childNode) {\n if (($childNode->getNodeName() == 'tr') && ($childNode->hasChildNodes())) {\n $rowCount++;\n $currentX = $this->pageMargins['left'] + 10;\n foreach ($childNode->getChildNodes() as $grandChild) {\n if ($grandChild->getNodeName() == 'td') {\n $text = new Document\\Page\\Text($grandChild->getNodeValue(), $styles['fontSize']);\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY - $offset);\n $currentX += $columnWidth;\n }\n }\n $currentY -= 25;\n }\n }\n\n $currentY += 15;\n $x1 = $this->pageMargins['left'];\n/*\n\n $finalHeight = (25 * $rowCount);\n $path = new Document\\Page\\Path();\n $path->drawRectangle($x1, $currentY, $tableWidth, $finalHeight);\n $this->page->addPath($path);\n\n for ($i = 1; $i < $columnCount; $i++) {\n $path = new Document\\Page\\Path();\n $path->drawLine($x1 + ($i * $columnWidth), $currentY, $x1 + ($i * $columnWidth), $this->page->getHeight() - $finalHeight + 35);\n $this->page->addPath($path);\n }\n */\n\n for ($i = 0; $i < $rowCount; $i++) {\n if (($i == 0) && ($thHeight > 0)) {\n $lineY = $startY - $thHeight + 20;\n } else {\n $lineY = ($startY - ($i * 25) - 10) - $offset;\n }\n $path = new Document\\Page\\Path();\n $path->drawLine($x1, $lineY, $tableWidth + $this->pageMargins['left'], $lineY);\n $this->page->addPath($path);\n /*\n if (($i == 1) && ($thHeight > 0)) {\n $lineY = ($currentY + ($i * 25));\n } else {\n $lineY = ($currentY + ($i * 25));\n }\n $path = new Document\\Page\\Path();\n $path->drawLine($x1, $lineY, $tableWidth + $this->pageMargins['left'], $lineY);\n $this->page->addPath($path);\n */\n }\n\n\n // Text node\n } else {\n if (null !== $this->textWrap) {\n $box = $this->textWrap->getBox();\n if ($this->textWrap->isRight()) {\n $startX = $box['right'];\n $startY = $box['top'] - $styles['fontSize'];\n $edgeX = $wrapLength;\n $edgeY = $box['bottom'];\n } else {\n $startX = $currentX;\n $startY = $box['top'] - $styles['fontSize'];\n $edgeX = $box['left'] - 40;\n $edgeY = $box['bottom'];\n }\n } else {\n $startX = $currentX;\n $startY = $currentY;\n $edgeX = $wrapLength;\n $edgeY = $this->pageMargins['bottom'];\n }\n\n $textStream = new Document\\Page\\Text\\Stream($startX, $startY, $edgeX, $edgeY);\n $textStream->setCurrentStyle(\n $styles['currentFont'],\n $styles['fontSize'],\n new Document\\Page\\Color\\Rgb($styles['color'][0], $styles['color'][1], $styles['color'][2])\n );\n $streamY = $styles['lineHeight'] ?? null;\n $textStream->addText($child->getNodeValue(), $streamY);\n\n if ($child->hasChildNodes()) {\n foreach ($child->getChildNodes() as $grandChild) {\n $gcStyles = $this->prepareNodeStyles($grandChild->getNodeName(), $grandChild->getAttributes(), $styles);\n $textStream->setCurrentStyle(\n $gcStyles['currentFont'],\n $gcStyles['fontSize'],\n new Document\\Page\\Color\\Rgb($gcStyles['color'][0], $gcStyles['color'][1], $gcStyles['color'][2])\n );\n $streamY = $gcStyles['lineHeight'] ?? null;\n $textStream->addText($grandChild->getNodeValue(), $streamY);\n }\n }\n\n $this->page->addTextStream($textStream);\n\n $orphanStream = clone $textStream;\n $hasOrphans = false;\n\n while ($orphanStream->hasOrphans($this->document->getFonts())) {\n $orphanStream = $orphanStream->getOrphanStream();\n if ($orphanStream->getCurrentY() <= $this->pageMargins['bottom']) {\n $currentY = $this->newPage();\n $orphanStream->setCurrentY($currentY);\n } else {\n $orphanStream->setStartX($this->pageMargins['left']);\n $orphanStream->setEdgeX($wrapLength);\n $orphanStream->setEdgeY($this->pageMargins['bottom']);\n }\n\n $orphanStream->setCurrentX($currentX);\n $this->page->addTextStream($orphanStream);\n\n $orphanStream = clone $orphanStream;\n $hasOrphans = true;\n }\n\n if ($hasOrphans) {\n $this->yOverride = $orphanStream->getCurrentY();\n } else {\n $this->yOverride = null;\n $this->y += (!empty($styles['marginBottom'])) ? $styles['marginBottom'] : 25;\n }\n }\n }", "title": "" }, { "docid": "3360255b4c07066404da4c0eb146b9c2", "score": "0.54395384", "text": "protected function addNodeStreamToDocument(Child $child)\n {\n $styles = $this->prepareNodeStyles($child->getNodeName(), $child->getAttributes());\n $currentX = $this->getCurrentX();\n $currentY = $this->getCurrentY();\n $fontObject = $this->document->getFont($styles['currentFont']);\n $wrapLength = ($this->x > $this->pageMargins['left']) ?\n $this->page->getWidth() - $this->pageMargins['right'] - $this->x :\n $this->page->getWidth() - $this->pageMargins['right'] - $this->pageMargins['left'];\n\n $string = $child->getNodeValue();\n $stringWidth = $fontObject->getStringWidth($string, $styles['fontSize']);\n\n if ($stringWidth > $wrapLength) {\n $strings = $this->getStringLines($string, $styles['fontSize'], $wrapLength, $fontObject);\n if ($this->x > $this->pageMargins['left']) {\n $text = new Document\\Page\\Text($strings[0], $styles['fontSize']);\n $text->setFillColor(new Document\\Page\\Color\\Rgb($styles['color'][0], $styles['color'][1], $styles['color'][2]));\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY);\n if ($currentY <= $this->pageMargins['bottom']) {\n $currentY = $this->newPage();\n } else {\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n }\n $currentX = $this->resetX();\n $wrapLength = $this->page->getWidth() - $this->pageMargins['right'] - $this->pageMargins['left'];\n unset($strings[0]);\n $strings = $this->getStringLines(implode(' ', $strings), $styles['fontSize'], $wrapLength, $fontObject);\n }\n\n foreach ($strings as $i => $string) {\n $text = new Document\\Page\\Text($string, $styles['fontSize']);\n $text->setFillColor(new Document\\Page\\Color\\Rgb($styles['color'][0], $styles['color'][1], $styles['color'][2]));\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY);\n if ($i < (count($strings) - 1)) {\n if ($currentY <= $this->pageMargins['bottom']) {\n $currentY = $this->newPage();\n } else {\n $currentY -= $styles['lineHeight'];\n $this->y += $styles['lineHeight'];\n }\n }\n }\n $this->x += $fontObject->getStringWidth($string, $styles['fontSize']);\n } else {\n $text = new Document\\Page\\Text($string, $styles['fontSize']);\n $text->setFillColor(new Document\\Page\\Color\\Rgb($styles['color'][0], $styles['color'][1], $styles['color'][2]));\n $this->page->addText($text, $styles['currentFont'], $currentX, $currentY);\n $this->x += $fontObject->getStringWidth($string, $styles['fontSize']);\n }\n\n foreach ($child->getChildNodes() as $grandChild) {\n $this->addNodeStreamToDocument($grandChild);\n }\n }", "title": "" }, { "docid": "8c16bfa0cdaa6675c9d8dae8b14c1eb8", "score": "0.5422085", "text": "public function addChild($parent, $child)\r\n\t{\r\n\t\tif ($parent->name === $child->name) {\r\n\t\t\tthrow new InvalidParamException(\"Cannot add '{$parent->name}' as a child of itself.\");\r\n\t\t}\r\n\r\n\t\tif ($parent instanceof Permission && $child instanceof Role) {\r\n\t\t\tthrow new InvalidParamException(\"Cannot add a role as a child of a permission.\");\r\n\t\t}\r\n\r\n\t\tif ($this->detectLoop($parent, $child)) {\r\n\t\t\tthrow new InvalidCallException(\"Cannot add '{$child->name}' as a child of '{$parent->name}'. A loop has been detected.\");\r\n\t\t}\r\n\r\n\t\t$this->db->getCollection($this->itemChildTable)\r\n\t\t\t->insert(['parent' => $parent->name, 'child' => $child->name]);\r\n\r\n\t\t$this->invalidateCache();\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d185802881e0f463ae7b908c934c5742", "score": "0.5416833", "text": "public function setChildOldValues($childId, $value, $option=null);", "title": "" }, { "docid": "46ba492edd9cd663225fb0b4b1addb8d", "score": "0.5411641", "text": "public function insertAsChildAtPosition($node, $position, $runValidation = true, $runTransaction = true)\n {\n if ($node->isNewRecord) {\n throw new \\LogicException('You cannot add nodes to a new node');\n } \n $idField = $this->getIdFieldName();\n $position = intval($position);\n $owner = $this->owner;\n if (!$position) {\n return $this->prependTo($node, $runValidation, $runTransaction);\n }\n $skipId = ($owner->isNewRecord) ? null : $owner->$idField;\n $i = 0;\n $siblingAfter = null;\n foreach ($node->children() as $child) {\n if ($skipId && ($skipId == $child->$idField)) {\n // ignore the node itself if it is among children of the target parent node\n continue;\n }\n if ($i == ($position - 1)) {\n $siblingAfter = $child;\n break;\n }\n $i++;\n }\n if ($siblingAfter) {\n return $this->insertAfter($siblingAfter, $runValidation, $runTransaction);\n } else {\n return $this->appendTo($node, $runValidation, $runTransaction);\n }\n }", "title": "" }, { "docid": "bc5337b0b0ab2181b8718719c7b2dc77", "score": "0.54066217", "text": "public function setAccessChild($isAccessChild)\n {\n $this->isAccessChild = $isAccessChild;\n }", "title": "" }, { "docid": "d53fcd4202dfc31338b5c396e2eee25c", "score": "0.5352104", "text": "private function split_child($fp, &$meta, $pos_x, $data_arr_x, $i, $pos_y, $data_arr_y)\n {\n if(BTR_DEBUG)\n {\n echo \"<h1>Split child at $pos_y with parent $pos_x </h1>\\n\";\n \n echo \"backtrace: <pre>\";\n print_r(debug_backtrace());\n echo \"</pre>\\n\";\n }\n \n list( $pos_z, $data_arr_z ) = $this->allocate_node($fp, $meta);\n \n if(BTR_DEBUG)\n {\n echo 'Parent (X) -- before: <pre>';\n \n print_r($data_arr_x);\n \n echo '</pre>'.\"\\n\";\n \n echo 'Child (Y) -- before: <pre>';\n \n print_r($data_arr_y);\n \n echo '</pre>'.\"\\n\";\n \n echo 'Child (Z) -- before: <pre>';\n \n print_r($data_arr_z);\n \n echo '</pre>'.\"\\n\";\n }\n \n list($N_x, $ISLEAF_x, $pointers_x, $values_x, $offsets_x) = $data_arr_x;\n list($N_y, $ISLEAF_y, $pointers_y, $values_y, $offsets_y) = $data_arr_y;\n list($N_z, $ISLEAF_z, $pointers_z, $values_z, $offsets_z) = $data_arr_z;\n \n $ISLEAF_z = $ISLEAF_y;\n \n $N_z = BTR_L - 1;\n \n for($j = 0; $j < BTR_L - 1; $j++)\n {\n $values_z[$j] = $values_y[$j + BTR_L];\n $offsets_z[$j] = $offsets_y[$j + BTR_L];\n }\n \n if(!$ISLEAF_y)\n {\n for($j = 0; $j < BTR_L; $j++) $pointers_z[$j] = $pointers_y[$j+BTR_L];\n }\n \n $N_y = BTR_L - 1;\n \n for($j = $N_x; $j >= $i+1; $j--)\n {\n $pointers_x[$j+1] = $pointers_x[$j];\n }\n \n $pointers_x[$i+1] = $pos_z;\n \n for($j = $N_x - 1; $j >= $i; $j--)\n {\n $values_x[$j+1] = $values_x[$j];\n $offsets_x[$j+1] = $offsets_x[$j];\n }\n \n $values_x[$i] = $values_y[BTR_L-1];\n $offsets_x[$i] = $offsets_y[BTR_L-1];\n \n $N_x++;\n \n if(BTR_DEBUG)\n {\n echo '--------------------<br>'.\"\\n\";\n \n echo 'Parent (X): <pre>';\n \n print_r(array($N_x, $ISLEAF_x, $pointers_x, $values_x, $offsets_x));\n \n echo '</pre>'.\"\\n\";\n \n echo 'Child (Y): <pre>';\n \n print_r(array($N_y, $ISLEAF_y, $pointers_y, $values_y, $offsets_y));\n \n echo '</pre>'.\"\\n\";\n \n echo 'Child (Z): <pre>';\n \n print_r(array($N_z, $ISLEAF_z, $pointers_z, $values_z, $offsets_z));\n \n echo '</pre>'.\"\\n\";\n }\n \n $data_arr_x = array($N_x, $ISLEAF_x, $pointers_x, $values_x, $offsets_x);\n $data_arr_y = array($N_y, $ISLEAF_y, $pointers_y, $values_y, $offsets_y);\n $data_arr_z = array($N_z, $ISLEAF_z, $pointers_z, $values_z, $offsets_z);\n \n $this->write_block($fp, $meta, $pos_y, $data_arr_y);\n $this->write_block($fp, $meta, $pos_z, $data_arr_z);\n $this->write_block($fp, $meta, $pos_x, $data_arr_x);\n \n return array( array($pos_x,$data_arr_x) /* parent */, array($pos_y,$data_arr_y) /* child y */, array($pos_z,$data_arr_z) /* child z */, );\n }", "title": "" }, { "docid": "1733fb55427b95b965e7e7ecf25a67ac", "score": "0.53449476", "text": "public function addChild(ElementInterface $child)\n {\n $this->children[] = $child;\n }", "title": "" }, { "docid": "c6e1018eca7de749ed3375ebb867be6e", "score": "0.53227895", "text": "public static function add_child_to_root($child, $field)\n\t{\t\tif(self::child_has_parent($child)) { return; }\n\n\t\t$child->create_link();\n\t}", "title": "" }, { "docid": "a97fa26676f7c84ee3ae425feb1466bc", "score": "0.5269939", "text": "public function moveAsChildOf(CActiveRecord $node, CActiveRecord $parentNode, $position)\n\t{\n\t\t$this->getProperties($colLeft, $colRight, $colLevel, $colParent);\n\t\t\n\t\tif ($parentNode === $node || $node->isAncestorOf($parentNode)) {\n\t\t\tthrow new CException(\"Cannot move node as first child of itself or into a descendant\");\n\t\t\treturn false;\n\t\t}\n\t\t// we should check the position is a sensible one\n\t\tif ($position != 0) {\n\t\t\t$children = $parentNode->getChildren();\n\t\t\t// position describes the new position for this node so look at the\n\t\t\t// sibling node above to calculate the new position of this node,\n\t\t\t// the child array is zero based\n\t\t\t$position = $position - 1;\n\t\t\tif (!$children->offsetExists($position))\n\t\t\t\tthrow new CException(\"No child exists at position $position\");\n\n\t\t\t$newLeft = $children[$position]->$colRight + 1;\n\t\t}else {\n\t\t\t// position is zero so insert as first child\n\t\t\t$newLeft = $parentNode->$colLeft + 1;\n\t\t}\n\n\t\t$oldLevel = $node->$colLevel;\n\t\t$node->$colLevel = $parentNode->$colLevel + 1;\n\t\t$node->$colParent = $parentNode->getPrimaryKey();\n\t\t$node->save();\n\n\t\t$this->_updateNode($node, $newLeft, $node->$colLevel - $oldLevel);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2d1557c69f7c1bb8764d53cedf3e3391", "score": "0.5236281", "text": "public function addChild(&$child, $key = false) {\n\n if ($child) {\n\n if ($key) {\n $this->children[$key] = $child;\n } else {\n $this->children[] = $child;\n }\n\n if (!is_array($child)) {\n if ($parent = $child->getParent()) {\n $parent->removeChild($child);\n }\n $child->setParent($this);\n } else {\n foreach($child as $child_) {\n if ($parent = $child_->getParent()) {\n $parent->removeChild($child_);\n }\n $child_->setParent($this);\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "794d0e5151565b73249c542e4c77be54", "score": "0.51859605", "text": "public function append_child( $group, $child = false ) : self {\n\t\tif ( is_array( $child ) ) {\n\t\t\t$child = $child[0];\n\t\t}\n\n\t\t// Push to group if group is valid, otherwise push to children.\n\t\tif ( $this->is_valid_group( $group ) && ! empty( $child ) ) {\n\t\t\tarray_push( $this->component_groups[ $group ], $child );\n\t\t} elseif ( $this->is_component( $group ) ) {\n\t\t\tarray_push( $this->children, $group );\n\t\t} elseif ( '' === $group && $this->is_component( $child ) ) {\n\t\t\tarray_push( $this->children, $child );\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "fc638f4477164d6452db9b404522b2f1", "score": "0.5173185", "text": "public function ycRegisterChild(&$childref,$c_uuid) {\n\t\t$this->$_yc_children[$c_uuid] &= $childref;\n\t}", "title": "" }, { "docid": "fc638f4477164d6452db9b404522b2f1", "score": "0.5173185", "text": "public function ycRegisterChild(&$childref,$c_uuid) {\n\t\t$this->$_yc_children[$c_uuid] &= $childref;\n\t}", "title": "" }, { "docid": "386bfcc00f1df6c23795f723ccced29e", "score": "0.5160269", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setDeep($value);\n break;\n case 2:\n $this->setParent($value);\n break;\n case 3:\n $this->setBundleId($value);\n break;\n case 4:\n $this->setOrders($value);\n break;\n case 5:\n $this->setCanDelete($value);\n break;\n case 6:\n $this->setLocked($value);\n break;\n case 7:\n $this->setCreatedAt($value);\n break;\n case 8:\n $this->setUpdatedAt($value);\n break;\n } // switch()\n\n return $this;\n }", "title": "" }, { "docid": "6c16fb4b879182d8f98f1e14c4c3f48c", "score": "0.514623", "text": "public function setChildHasChanges($childId, $hasChanges = true);", "title": "" }, { "docid": "92758f6a9eabadf4168e3977eb616668", "score": "0.5144264", "text": "function appendChild($child) {\n\t\tif (($child instanceof synd_node_used)) {\n\t\t\tif (null === $this->_leasings)\n\t\t\t\t$this->getLeasings();\n\t\t\tif (!in_array($child->nodeId, $this->_leasings)) {\n\t\t\t\t$this->_leasings[] = $child->nodeId;\n\t\t\t\t$this->_node_onchange_internal();\n\t\t\t}\n\t\t\treturn $child;\n\t\t}\n\t\treturn parent::appendChild($child);\n\t}", "title": "" }, { "docid": "4a4f0b092eac35a171e461947b783296", "score": "0.5113852", "text": "public static function add_child_to_parent($child, $parent, $field)\n\t{\t\tif(self::child_has_parent($child, $parent)) { return; }\n\t\n\t\tforeach($parent->links() as $parentlink)\n\t\t{\n\t\t\t$child->create_link($parentlink);\t\n\t\t}\n\t\t\n\t\t$parent->child_count(1);\n\t\t\n\t\t$child->add_dependant_save_node($parent);\n\t\t\n\t\t/*\n\t\t// tell the registry that the parent needs saving if we save the child\n\t\t$registry = Jquarry_Registry::instance();\n\t\t\n\t\t$registry->add_dependant_save_node($child, $parent);\n\t\t*/\n\t}", "title": "" }, { "docid": "9389fffcc879eb1480e4b3ac4b554819", "score": "0.5102493", "text": "protected function takeChildFromDOM($child)\n {\n $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;\n switch ($absoluteNodeName) {\n case $this->lookupNamespace('media') . ':' . 'content':\n $content = new Zend_Gdata_YouTube_Extension_MediaContent();\n $content->transferFromDOM($child);\n $this->_content[] = $content;\n break;\n case $this->lookupNamespace('yt') . ':' . 'duration':\n $duration = new Zend_Gdata_YouTube_Extension_Duration();\n $duration->transferFromDOM($child);\n $this->_duration = $duration;\n break;\n default:\n parent::takeChildFromDOM($child);\n break;\n }\n }", "title": "" }, { "docid": "b8b44280f689bc4d053d3e3371a83ab7", "score": "0.50881207", "text": "public function addChild(NodeInterface $child)\n {\n $this->children[$child->getName()] = $child;\n }", "title": "" }, { "docid": "4d6fa9d62efcdd29a592a1daec890978", "score": "0.50848776", "text": "public function addChild(CompositeInterface $child);", "title": "" }, { "docid": "dbcf51587dea726f91790e13ac3657b7", "score": "0.5051338", "text": "public function setChildren($value)\n {\n $this->children = $value;\n }", "title": "" }, { "docid": "6c65f3a3790973277834e087e93da623", "score": "0.5014119", "text": "public function doChild($transaction_id, $child_id=null)\n {\n $order = Order::where('transaction_id', $transaction_id)->firstOrFail();\n\n $input = Input::all();\n\n $validator = Validator::make($input, Child::$validation_rules, Child::$validation_messages);\n\n if ($validator->fails()) {\n return \n Redirect::route('order.child', array($transaction_id, $child_id))\n ->withInput()\n ->withErrors($validator);\n }\n\n if (!Input::has('sleepover')) $input['sleepover'] = 0;\n if (!Input::has('health_warning')) $input['health_warning'] = 0;\n\n if (Input::has('dancing')) {\n $input['activity_choice_1'] = 'Dancing';\n $input['activity_choice_2'] = 'Dancing';\n $input['activity_choice_3'] = 'Dancing';\n } else {\n $input['dancing'] = 0;\n } \n\n if ($child_id) {\n\n $child = Child::where('order_id', $order->id)->where('id', $child_id)->firstOrFail();\n $child->update($input);\n\n } else {\n\n $child = new Child($input);\n $order->children()->save($child);\n }\n\n return Redirect::route('order.children', array($transaction_id));\n }", "title": "" }, { "docid": "e1cd44d35da86979c9f0e2ad8757fdba", "score": "0.5005495", "text": "public function addChild(FileInterface $child): void;", "title": "" }, { "docid": "1f7248302d0098951e26868741891478", "score": "0.49911535", "text": "function new_child_array($child,$child_name){\r\n\t\t//create array and set old child object to the first array element...\r\n\t\tif(is_object($this->$child_name)){\r\n\t\t\t$tmp_obj=$this->$child_name;\r\n\t\t\t$this->$child_name=Array();\r\n\t\t\t$this->new_child_array($tmp_obj,$child_name);\r\n\t\t}\r\n\t\t//push child reference into child array...\r\n\t\t$this->{$child_name}[]=&$child;\r\n\t\t$last_index=count($this->$child_name)-1;\r\n\t\treturn $last_index;\r\n\t}", "title": "" }, { "docid": "d4621954e3675bc1a64e28e180d803c7", "score": "0.49683678", "text": "public function addChild(HtmlElementInterface $child) {\n\t\t$this->children[] = $child;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "f00e5298f017a8f866089990c9832d55", "score": "0.494074", "text": "function setObject( $path, &$holder, &$child )\r\n\t{\r\n\t\t$leafs = explode($this->separator, $path );\r\n\t\tif ( $leafs[0] == '' ) array_shift( $leafs );\r\n\t\tarray_shift( $leafs );\r\n\t\t$childName = array_pop( $leafs );\r\n\r\n\t\t$target = $holder;\r\n\t\tforeach( $leafs as $leaf ) {\r\n\t\t\tif ( $target === null ) { //create new leaf if not exists\r\n\t\t\t\t$target = new stdclass;\r\n\t\t\t\t$target->{$leaf} = new stdclass;\r\n\t\t\t}\r\n\t\t\t$target = $target->{$leaf};\r\n\t\t}\r\n\t\t$target->{$childName} = $child;\r\n\t\treturn $target;\r\n\t}", "title": "" }, { "docid": "e4e91c25638fe8e667b3e159b6ae0114", "score": "0.49339646", "text": "function saveIntoDb($position, $msmid, $parentid = '', $siblingid = '')\r\n {\r\n global $DB;\r\n $data = new stdClass();\r\n\r\n $data->citekey = $this->citekey;\r\n if (!empty($this->content[1]))\r\n {\r\n $data->item_content = $this->content[1];\r\n $data->position = 1;\r\n }\r\n\r\n $this->id = $DB->insert_record($this->tablename, $data);\r\n $this->compid = $this->insertToCompositor($this->id, $this->tablename, $msmid, $parentid, $siblingid);\r\n\r\n if (!empty($this->content[2]))\r\n {\r\n $data->citekey = $this->citekey;\r\n $data->item_content = $this->content[2];\r\n $data->position = 2;\r\n $this->id = $DB->insert_record($this->tablename, $data);\r\n $this->compid = $this->insertToCompositor($this->id, $this->tablename, $msmid, $parentid, $siblingid);\r\n }\r\n }", "title": "" }, { "docid": "e2f0fd5b42f362cee309ea9d06e4953a", "score": "0.4919357", "text": "public function setChildren(array $children) : void\n {\n $this->children = $children;\n }", "title": "" }, { "docid": "0aecb28a783e1e7aa6d382f7c9102a29", "score": "0.4912185", "text": "protected function declareTarget($child, $allowAll = false) {\n $id = $type = $img = $name = null;\n if($this->should_add_child($child, $allowAll)) {\n $type = $this->type_of_child($child);\n switch($type) {\n case \"user\":\n $id = $child['user_id'];\n $info = \\JULIET\\API\\Common\\Main::getUsersById($id);\n $img = $info->avatar;\n $name = $info->username;\n break;\n case \"ship\":\n $id = $child['ship_id'];\n $ship = new \\JULIET\\api\\Ships\\helpers\\Ship($id);\n $info = $ship->get_info();\n $img = $info->ico;\n $name = $info->name;\n break;\n case \"ship_type\":\n $id = $child['shipType_id'];\n $ship = new \\JULIET\\api\\Ships\\helpers\\ShipType($id);\n $info = $ship->get_info();\n $img = $info->ico;\n $name = $info->name;\n break;\n case \"ship_variant\":\n $id = $child['ship_variant_id'];\n $ship = new \\JULIET\\api\\Ships\\helpers\\ShipVariant($id);\n $info = $ship->get_info(true);\n $name = $info->name;\n $img = $info->ico;\n break;\n case \"group\":\n break;\n }\n\n if($id != null)\n $this->targets[] = new \\JULIET\\api\\Tags\\model\\TagTarget($id, $info, $type, $img, $name);\n }\n }", "title": "" }, { "docid": "c6bc6fe5f8ea3cc881ee5a6a1582e26f", "score": "0.49088562", "text": "public function setChildTagName($value)\n {\n $this->childTagName = $value;\n }", "title": "" }, { "docid": "9148c2bf742978e8592f1525f011b96f", "score": "0.49032125", "text": "public function addChild(NavBarElement $child){\n $this->child[] = $child;\n return $this;\n }", "title": "" }, { "docid": "9a23467d7196a81482983271a4464f53", "score": "0.48915857", "text": "function saveIntoDb($position, $msmid, $parentid = '', $siblingid = '')\n {\n global $DB;\n $data = new stdClass();\n\n $data->string_id = $this->string_id;\n $data->caption = $this->caption;\n $data->textcaption = $this->textcaption;\n $data->description = $this->description;\n\n $this->id = $DB->insert_record($this->tablename, $data);\n $this->compid = $this->insertToCompositor($this->id, $this->tablename, $msmid, $parentid, $siblingid);\n\n $statement_data = new stdClass();\n $statement_sibling_id = 0;\n foreach ($this->statement_examples as $st)\n {\n $statement_data->statement_example_content = $st;\n $this->statement_example_id = $DB->insert_record('msm_statement_example', $statement_data);\n $this->statement_example_compid = $this->insertToCompositor($this->statement_example_id, 'msm_statement_example', $msmid, $this->compid, $statement_sibling_id);\n $statement_sibling_id++;\n }\n\n\n $elementPositions = array();\n $sibling_id = null;\n\n if (!empty($this->answers))\n {\n foreach ($this->answers as $key => $answer)\n {\n $elementPositions['answer' . '-' . $key] = $answer->position;\n }\n }\n\n if (!empty($this->part_examples))\n {\n foreach ($this->part_examples as $key => $part_example)\n {\n $elementPositions['partexample' . '-' . $key] = $part_example->position;\n }\n }\n\n if (!empty($this->answer_exts))\n {\n foreach ($this->answer_exts as $key => $answer_ext)\n {\n $elementPositions['answerext' . '-' . $key] = $answer_ext->position;\n }\n }\n\n if (!empty($this->subordinates))\n {\n foreach ($this->subordinates as $key => $subordinate)\n {\n $elementPositions['subordinate' . '-' . $key] = $subordinate->position;\n }\n }\n\n if (!empty($this->indexauthors))\n {\n foreach ($this->indexauthors as $key => $indexauthor)\n {\n $elementPositions['indexauthor' . '-' . $key] = $indexauthor->position;\n }\n }\n\n if (!empty($this->indexglossarys))\n {\n foreach ($this->indexglossarys as $key => $indexglosary)\n {\n $elementPositions['indexglossary' . '-' . $key] = $indexglosary->position;\n }\n }\n\n if (!empty($this->indexsymbols))\n {\n foreach ($this->indexsymbols as $key => $indexsymbol)\n {\n $elementPositions['indexsymbol' . '-' . $key] = $indexsymbol->position;\n }\n }\n\n if (!empty($this->medias))\n {\n foreach ($this->medias as $key => $media)\n {\n $elementPositions['media' . '-' . $key] = $media->position;\n }\n }\n\n if (!empty($this->tables))\n {\n foreach ($this->tables as $key => $table)\n {\n $elementPositions['table' . '-' . $key] = $table->position;\n }\n }\n\n asort($elementPositions);\n\n foreach ($elementPositions as $element => $value)\n {\n switch ($element)\n {\n case(preg_match(\"/^(answerext.\\d+)$/\", $element) ? true : false):\n $answerextString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $answerext = $this->answer_exts[$answerextString[1]];\n $answerext->saveIntoDb($answerext->position, $msmid, $this->compid);\n $sibling_id = $answerext->compid;\n }\n else\n {\n $answerext = $this->answer_exts[$answerextString[1]];\n $answerext->saveIntoDb($answerext->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $answerext->compid;\n }\n break;\n case(preg_match(\"/^(partexample.\\d+)$/\", $element) ? true : false):\n $partexampleString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $partexample = $this->part_examples[$partexampleString[1]];\n $partexample->saveIntoDb($partexample->position, $msmid, $this->compid);\n $sibling_id = $partexample->compid;\n }\n else\n {\n $partexample = $this->part_examples[$partexampleString[1]];\n $partexample->saveIntoDb($partexample->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $partexample->compid;\n }\n break;\n\n case(preg_match(\"/^(answer.\\d+)$/\", $element) ? true : false):\n $answerString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $answer = $this->answers[$answerString[1]];\n $answer->saveIntoDb($answer->position, $msmid, $this->compid);\n $sibling_id = $answer->compid;\n }\n else\n {\n $answer = $this->answers[$answerString[1]];\n $answer->saveIntoDb($answer->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $answer->compid;\n }\n break;\n\n case(preg_match(\"/^(subordinate.\\d+)$/\", $element) ? true : false):\n $subordinateString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $subordinate = $this->subordinates[$subordinateString[1]];\n $subordinate->saveIntoDb($subordinate->position, $msmid, $this->compid);\n $sibling_id = $subordinate->compid;\n }\n else\n {\n $subordinate = $this->subordinates[$subordinateString[1]];\n $subordinate->saveIntoDb($subordinate->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $subordinate->compid;\n }\n break;\n\n case(preg_match(\"/^(indexauthor.\\d+)$/\", $element) ? true : false):\n $indexauthorString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $indexauthor = $this->indexauthors[$indexauthorString[1]];\n $indexauthor->saveIntoDb($indexauthor->position, $msmid, $this->compid);\n $sibling_id = $indexauthor->compid;\n }\n else\n {\n $indexauthor = $this->indexauthors[$indexauthorString[1]];\n $indexauthor->saveIntoDb($indexauthor->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $indexauthor->compid;\n }\n break;\n\n case(preg_match(\"/^(indexsymbol.\\d+)$/\", $element) ? true : false):\n $indexsymbolString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $indexsymbol = $this->indexsymbols[$indexsymbolString[1]];\n $indexsymbol->saveIntoDb($indexsymbol->position, $msmid, $this->compid);\n $sibling_id = $indexsymbol->compid;\n }\n else\n {\n $indexsymbol = $this->indexsymbols[$indexsymbolString[1]];\n $indexsymbol->saveIntoDb($indexsymbol->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $indexsymbol->compid;\n }\n break;\n\n case(preg_match(\"/^(indexglossary.\\d+)$/\", $element) ? true : false):\n $indexglossaryString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $indexglossary = $this->indexglossarys[$indexglossaryString[1]];\n $indexglossary->saveIntoDb($indexglossary->position, $msmid, $this->compid);\n $sibling_id = $indexglossary->compid;\n }\n else\n {\n $indexglossary = $this->indexglossarys[$indexglossaryString[1]];\n $indexglossary->saveIntoDb($indexglossary->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $indexglossary->compid;\n }\n break;\n\n case(preg_match(\"/^(media.\\d+)$/\", $element) ? true : false):\n $mediaString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $media = $this->medias[$mediaString[1]];\n $media->saveIntoDb($media->position, $msmid, $this->compid);\n $sibling_id = $media->compid;\n }\n else\n {\n $media = $this->medias[$mediaString[1]];\n $media->saveIntoDb($media->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $media->compid;\n }\n break;\n\n case(preg_match(\"/^(table.\\d+)$/\", $element) ? true : false):\n $tableString = explode('-', $element);\n\n if (empty($sibling_id))\n {\n $table = $this->tables[$tableString[1]];\n $table->saveIntoDb($table->position, $msmid, $this->compid);\n $sibling_id = $table->compid;\n }\n else\n {\n $table = $this->tables[$tableString[1]];\n $table->saveIntoDb($table->position, $msmid, $this->compid, $sibling_id);\n $sibling_id = $table->compid;\n }\n break;\n }\n }\n }", "title": "" }, { "docid": "65c0ad35ac88218e403a762d1a1e3f63", "score": "0.48861563", "text": "public function testAddChild()\n {\n $this->setUp('a');\n\n $child = new Node('c');\n\n $node = $this->root->addChild($child);\n\n $tag = $this->root->render();\n\n $expected = '<a><c></c></a>';\n\n $this->assertEquals($tag, $expected);\n }", "title": "" }, { "docid": "8afc8ce32c8308bc72831a88068cabbd", "score": "0.48703447", "text": "public function remove_child(BuckysBBCodeNode $child){\n $key = array_search($what, $this->children);\n\n if($key === false)\n return false;\n\n $this->children[$key]->set_parent();\n unset($this->children[$key]);\n return true;\n }", "title": "" }, { "docid": "45dad2e0ea64be1e252f2f7ab0eb6078", "score": "0.48663968", "text": "function appendChild($child) {\r\n\t\t$ret = NULL;\r\n\t\tif ($child instanceof ODPElement) {\r\n\t\t\t$uc_child = $child->getElement();\r\n\t\t\tif (is_null($this->elem)) {\r\n\t\t\t\t$ret = parent :: appendChild($uc_child);\r\n\t\t\t} else {\r\n\t\t\t\t$ret = $this->elem->appendChild($uc_child);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$ret = parent :: appendChild($child);\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "62544c42e5b5340c2c8d12f201649412", "score": "0.48661074", "text": "public function prepend_child( $group, $child = [] ) : self {\n\t\tif ( is_array( $child ) && ! empty( $child ) ) {\n\t\t\t$child = $child[0];\n\t\t}\n\n\t\t// Unshift to group if group is valid, otherwise unshift to children.\n\t\tif ( $this->is_valid_group( $group ) && ! empty( $child ) ) {\n\t\t\tarray_unshift( $this->component_groups[ $group ], $child );\n\t\t} elseif ( $this->is_component( $group ) ) {\n\t\t\tarray_unshift( $this->children, $group );\n\t\t} elseif ( '' === $group && $this->is_component( $child ) ) {\n\t\t\tarray_unshift( $this->children, $child );\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "0b666dc60b935c5067f4945e473ff878", "score": "0.4863833", "text": "public function child($transaction_id, $child_id=null)\n {\n $order = Order::where('transaction_id', $transaction_id)->firstOrFail();\n\n if ($child_id) $child = Child::where('order_id', $order->id)->where('id', $child_id)->firstOrFail();\n else $child = new Child();\n\n $this->layout->content = \n View::make('orders/child')\n ->with('child', $child)\n ->with('order', $order)\n ->with('title', 'Order form')\n ->with('subtitle', 'add a child');\n }", "title": "" }, { "docid": "f47ad959360c60512de5a14fea52078e", "score": "0.48522094", "text": "function SetChildren ($what) {\n // accepts array ('child1ID','child2ID',...)\n \n if (!is_array ($what)) {\n $what = array ($what); // a string / int, convert it to string.\n }\n \n if (sizeof ($what) > 0) {\n $oid = $this->oid;\n if ($oid > 0) {\n foreach ($what as $child) {\n $child = escape_data ($child);\n $query = \"SELECT `parent_oid` FROM `hierarchy` \n WHERE `child_oid`='$child'\n AND `parent_oid`='$oid'\";\n $sql = mysql_query ($query) or die (mysql_error ());\n if (mysql_num_rows ($sql) == 0) { // no existing key\n $query = \"INSERT INTO `hierarchy` (`parent_oid`,`child_oid`)\n VALUES ('$oid','$child')\";\n $sql = mysql_query ($query) or die (\"Error 362: \" . mysql_error ());\n } // else: already there, do nothing\n }\n return $sql;\n }\n } else {\n return true; // inserting nothing is a success\n }\n }", "title": "" }, { "docid": "b846d61802d59df1bfbc7e13e559929e", "score": "0.48373473", "text": "public function setChildren(array $children)\n {\n $this->children = $children;\n }", "title": "" }, { "docid": "c3791469cb7cd9ca87705f6d07b0ba0e", "score": "0.48287407", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setId($value);\n break;\n case 1:\n $this->setPath($value);\n break;\n case 2:\n $this->setName($value);\n break;\n case 3:\n $this->setDescription($value);\n break;\n case 4:\n $this->setSize($value);\n break;\n case 5:\n $this->setMimeType($value);\n break;\n case 6:\n $this->setStorage($value);\n break;\n case 7:\n $this->setCreatedAt($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "8eb9523c81c124941241f5a85875c622", "score": "0.48178104", "text": "public function addChild(IMessagePart $part, ?int $position = null);", "title": "" }, { "docid": "166790da0e535595b6e997104ce7202a", "score": "0.48100507", "text": "public function setPosition($position);", "title": "" }, { "docid": "cdb1d4837bd70120fa5bd0c4b791c6a5", "score": "0.4778786", "text": "public static function add_child($child, $parent = null, $field = null)\n\t{\n\t\t$field = self::child_field_name($field);\n\t\t\n\t\tif($parent)\n\t\t{\n\t\t\treturn self::add_child_to_parent($child, $parent, $field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn self::add_child_to_root($child, $field);\n\t\t}\n\t}", "title": "" }, { "docid": "97e8152e055e132e405cd2a5012ea78f", "score": "0.4762211", "text": "public function setChildtime($childtime)\n {\n $this->childtime = $childtime;\n\n return $this;\n }", "title": "" }, { "docid": "0467d73ba0be6b0fbc48a85a0d632633", "score": "0.4752556", "text": "protected function takeChildFromDOM($child)\n {\n $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;\n switch ($absoluteNodeName) {\n case $this->lookupNamespace('gd') . ':' . 'comments':\n $comments = new \\Zend\\GData\\Extension\\Comments();\n $comments->transferFromDOM($child);\n $this->_comments = $comments;\n break;\n case $this->lookupNamespace('gd') . ':' . 'rating':\n $rating = new \\Zend\\GData\\Extension\\Rating();\n $rating->transferFromDOM($child);\n $this->_rating = $rating;\n break;\n case $this->lookupNamespace('yt') . ':' . 'description':\n $description = new Extension\\Description();\n $description->transferFromDOM($child);\n $this->_description = $description;\n break;\n case $this->lookupNamespace('yt') . ':' . 'statistics':\n $statistics = new Extension\\Statistics();\n $statistics->transferFromDOM($child);\n $this->_statistics = $statistics;\n break;\n default:\n parent::takeChildFromDOM($child);\n break;\n }\n }", "title": "" }, { "docid": "5ae5e2ebd1d55a611d5670d1dd03c9ae", "score": "0.4748402", "text": "protected function add_update($child, $growth)\n {\n $this->height = max(($child->height + 1), $this->height);\n $this->size += $growth;\n if($this->parent)\n {\n $this->parent->add_update($this, $growth);\n } \n }", "title": "" }, { "docid": "5cdeb78d57e0cad0f8c277230655d810", "score": "0.47430807", "text": "public function insertIntoChildren($user_name,$child_name)\n\t{\t\n\t\t$db = $this->connectToDatabase();\n\t\t\n\t\t$totalChild = 0;\n\t\t$sqlString = \"select count(*) from `child`\";\n\t\t$totalChild = $db->fetchOne($sqlString);\n\t\t\n\t\t$sqlString = \"select count(*)\n\t\t\t\t\t from `child` \n\t\t\t\t\t where user_name='\".$user_name.\"' and\n\t\t\t\t\t child_name='\".$child_name.\"'\";\n\t\t$isExistChild = $db->fetchOne($sqlString);\n\t\t\n\t\tif ($isExistChild)\n\t\t{\n\t\t\t$db->closeConnection();\n\t\t\treturn 0;\n\t\t} \n\t\t\t\t\n\t\t$db->insert('child',array(\"user_name\" => $user_name,\n\t\t\t\t\t\t\t\t \"child_id\"=> 'ch'.($totalChild+1),\n\t\t\t\t\t\t\t\t \"child_name\"=> $child_name));\n\t\t$db->closeConnection();\n\t\treturn 'ch'.($totalChild+1);\n\t}", "title": "" }, { "docid": "8d1266f3bd8989f7cc60c4daa27745aa", "score": "0.47395584", "text": "public function addChild(self $childItem)\n {\n $this->children[] = $childItem;\n\n return $this;\n }", "title": "" }, { "docid": "e51c287317f629880977935156d1d387", "score": "0.47332656", "text": "function add_child($item)\n {\n \tif($this->debug>0){error_log('New LP - In learnpathItem::add_child()',0);}\n \tif(!empty($item))\n \t{\n \t\t//do not check in DB as we expect the call to come from the learnpath class which should\n \t\t//be aware of any fake\n \t\t$this->children[] = $item;\n \t}\n }", "title": "" }, { "docid": "5f41fefd5588d655ff10fa6bc2144ae9", "score": "0.4730841", "text": "private function bindChild(&$parentRows, &$child)\n\t{\n\t\t$generalErrorMessage = \"Cannot nest queries \" . $this->name() . \" and \" . $child->name() . \" - \";\n\t\t\n\t\t// This error should never occur, since the parser constructs the two childs automatically\n\t\tif (!$child->children || count($child->children) != 2)\n\t\t\tthrow new \\Exception($generalErrorMessage . \"child does not have 2 children\");\n\t\n\t\t$paramID = $child->defaultParam;\n\t\t\n\t\t// Fall back in case there is no default param (should not occur anymore)\n\t\tif (!$paramID)\n\t\t{\n\t\t\t// Get parameters of second (last) child of $child. \n\t\t\t// Suppose you have \"a(b)\". This corresponds to parent = \"a\" and child = \"b:a\"\n\t\t\t// \"b:a\" has two childs: \"b\" and \"b.a\"\n\t\t\t// We should get the param of the link-query \"b.a\" which is the second child of $child\n\t\t\t$paramIDs = array_keys( get_object_vars( $child->children[1]->params ) );\n\t\t\t\n\t\t\t// There should be exactly 1 parameter\n\t\t\tif (count($paramIDs) != 1)\n\t\t\t\tthrow new \\Exception($generalErrorMessage . \"link-query \" . $child->children[1]->name() . \" should have exactly one parameter\");\n\n\t\t\t$paramID = $paramIDs[0];\t\n\t\t}\n\t\t\n\t\t// Get the parent key which should be matched with the childs parameter\n\t\t$keyIDs = array_keys( get_object_vars( $this->keys ) );\n\t\t\n\t\tif (count($keyIDs) != 1)\n\t\t\tthrow new \\Exception($generalErrorMessage . \"parent should have exactly one key\");\n\t\t\n\t\t$parentKey \t= $this->keys->{$keyIDs[0]};\t\n\t\t\n\t\tif (!is_array($parentRows))\n\t\t\tthrow new \\Exception($generalErrorMessage . \"parentRows should be an array of associative arrays\");\n\n\t\tif (count($parentRows)>0 && !is_array($parentRows[0]))\n\t\t\tthrow new \\Exception($generalErrorMessage . \"parentRows should be an array of associative arrays\");\n\t\t\n\t\tif (count($parentRows)>0 && !array_key_exists($parentKey, $parentRows[0]))\n\t\t\tthrow new \\Exception($generalErrorMessage . \"parentRows should consist of associative arrays containing the field '\".$parentKey.\"'\");\n\t\t\t\n\t\t// Take root parameters as default params for child\n\t\t$params\t= $this->paramValues; \n\t\t\n\t\t// Select the child param values from the parent query output\n\t\t$values = array();\n\t\t\t\n\t\tforeach ($parentRows as $row)\n\t\t\tif (!in_array( $row[ $parentKey ], $values))\n\t\t\t\t$values[] = $row[ $parentKey ];\n\t\t\t\t\n\t\t$params[ $paramID ] = $values;\n\n\t\t// Execute child query and group results; cleanUp can also be done at this point\n\t\t$childRows = $child->group()->select( $params, $paramID, true );\n\n\t\t$childFieldName = $child->prefix();\n\t\t\n\t\t// Combine child rows with parent rows\n\t\tfor ($i=0;$i<count($parentRows);$i++)\n\t\t{\n\t\t\t$keyValue = $parentRows[$i][$parentKey];\n\t\t\t\t\t \n\t\t\t$parentRows[$i][ $childFieldName ] = (array_key_exists($keyValue, $childRows)) \n\t\t\t\t? $childRows[ $keyValue ]\n\t\t\t\t: array();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "76d34528aa041e6861f52e1c00d2bff6", "score": "0.4715863", "text": "public function moveChildren(View $view, $beforeChild, $afterChild, $originalParent, $originalPosition)\n {\n if ($beforeChild && $afterChild) {\n $this->moveWidgetMap($view, $beforeChild, $originalParent, $originalPosition);\n\n $child = $beforeChild;\n while ($child->getChild(WidgetMap::POSITION_AFTER)) {\n $child = $child->getChild(WidgetMap::POSITION_AFTER);\n }\n if ($afterChild->getId() !== $child->getId()) {\n $this->moveWidgetMap($view, $afterChild, $child);\n }\n } elseif ($beforeChild) {\n $this->moveWidgetMap($view, $beforeChild, $originalParent, $originalPosition);\n } elseif ($afterChild) {\n $this->moveWidgetMap($view, $afterChild, $originalParent, $originalPosition);\n }\n }", "title": "" }, { "docid": "df5c72afd39ec19b52d7e6b1b7dd28e7", "score": "0.4707486", "text": "public function setHasVisibleChild($flag)\n {\n $this->_hasVisibleChild = (bool) $flag;\n }", "title": "" }, { "docid": "de9d99d4490352d624bfa40c2d83b7ca", "score": "0.47050488", "text": "private function _assignChild($parent, $children) {\n if ($parent) {\n $auth = Yii::app()->authManager;\n /* @var $auth CDbAuthManager */\n foreach ($children as $child) {\n $auth->addItemChild($parent, $child);\n }\n }\n }", "title": "" }, { "docid": "89dcf35c6eb76f2fa79a033447eb202e", "score": "0.4698007", "text": "public function setPosition(Position $position): void;", "title": "" }, { "docid": "6bfdd309944a644b32c2fd5c0e83f032", "score": "0.4681215", "text": "function add($child) {\n if (!($child instanceof TZIntellitimeLogger)) {\n throw new InvalidArgumentException(\"Must be of type TZIntellitimeLogger\");\n }\n $this->children[] = $child;\n }", "title": "" }, { "docid": "1d3ab638f2bf406a065248e1728df525", "score": "0.46776834", "text": "public function setPosition(string $position){$this->position = $position;return $this;}", "title": "" }, { "docid": "99095d0ef2251599f724cd5a6bf73005", "score": "0.46750107", "text": "public static function setSubpath($parent, $child) {\n $parentPath = self::getPath($parent);\n if($parentPath) {\n self::setPath($child, $parentPath . $child . '/');\n }\n }", "title": "" }, { "docid": "146fdfecf0a3549bd10d031fe58b9804", "score": "0.46748373", "text": "public function make_child() {\n if (! empty( $this->data['course_id'] ) && $this->data['course_id']) {\n $this->data['parent_course_id'] = $this->data['course_id'];\n unset( $this->data['course_id'] );\n }\n }", "title": "" }, { "docid": "4f3d2b6c5d4763e4c1338501765f58c4", "score": "0.4672226", "text": "public function addChild($dt)\n {\n $stamp = $dt->format('Y-m-d H:i:s');\n\n // Does it already exist?\n $children = $this->getChildren();\n if (isset($children[$stamp])) return;\n\n $data = $this->getTransactionData();\n if (empty($data)) self::error('Parent transaction not found');\n\n // Clean it up for child\n unset($data['id']);\n $data['date_occurred'] = $stamp;\n\n // Save child\n Transaction_Model::save($data);\n $child_id = Transaction_Model::lastInsertId();\n\n // Save link\n self::save([\n 'transaction_recurring_id' => $this->getRecurringId(),\n 'transaction_id' => $child_id,\n ], static::$trt_table);\n }", "title": "" }, { "docid": "07b141e1eb01ef916fa1cd09da4a2ce3", "score": "0.4648254", "text": "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->setValue($value);\n break;\n case 3:\n $this->setComment($value);\n break;\n case 4:\n $this->setProjectId($value);\n break;\n case 5:\n $this->setFileId($value);\n break;\n case 6:\n $this->setBankAccId($value);\n break;\n case 7:\n $this->setCostAccId($value);\n break;\n case 8:\n $this->setSortableRank($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "7459a46c0e44308e226b5d72ef596969", "score": "0.46452233", "text": "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->setEnderecoId($value);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->setAtivo($value);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->setNome($value);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->setCpf($value);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->setCelular($value);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->setTelefone($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} // switch()\n\t}", "title": "" }, { "docid": "2dea86bfece5a4a01a3d593f8f6f1799", "score": "0.4642961", "text": "protected function renderChild($child)\n {\n if (is_array($child)) {\n return call_user_func_array([new Limbu(), 'tag'], $child);\n }\n\n if ($child instanceOf self) {\n return $child->render();\n }\n\n return $child;\n }", "title": "" }, { "docid": "6023444458fa5ae64f3ffb8ff4134e38", "score": "0.46058354", "text": "public function setPosition($parent, $name)\n {\n $this->parent = $parent;\n $this->name = $name;\n }", "title": "" }, { "docid": "275550531b2766214381da8b609c8903", "score": "0.46021664", "text": "function recursivelyAssignChildren(&$parentReference, &$childReference){\n\tif (count($parentReference[\"children\"]) > 0 && rand(1, 100) <= 50) {\n\t\t//randomly choose a children to continue the search process\n\t\trecursivelyAssignChildren($parentReference[\"children\"][rand(0, count($parentReference[\"children\"])-1)], $childReference);\n\t} else {\n\t\t//assign to this level\n\t\t$parentReference[\"children\"][] = &$childReference;\n\t}\n}", "title": "" }, { "docid": "6812c55a8e2b07c137cdfc3b0c13086d", "score": "0.45987856", "text": "public function setChildren(Collection $children): void\n {\n $this->children = $children;\n }", "title": "" }, { "docid": "505dad83fb065b17d23f79fcd92a3b01", "score": "0.4592639", "text": "function commitLinkEntities ($parent_entity_type, $parent_entity_id, $child_entity_type, $child_entity_id)\n{\n\tif\n\t(\n\t\t$parent_entity_type == 'location' &&\n\t\t$child_entity_type == 'location' &&\n\t\tin_array ($parent_entity_id, getLocationChildrenList ($child_entity_id))\n\t)\n\t\tthrow new RackTablesError (\"Circular reference for location ${parent_entity_id}\", RackTablesError::INTERNAL);\n\n\t// an object's container may not be one of its contained objects\n\tif\n\t(\n\t\t$parent_entity_type == 'object' &&\n\t\t$child_entity_type == 'object' &&\n\t\tin_array ($parent_entity_id, getObjectContentsList ($child_entity_id))\n\t)\n\t\tthrow new RackTablesError (\"Circular reference for object ${parent_entity_id}\", RackTablesError::INTERNAL);\n\n\tusePreparedInsertBlade\n\t(\n\t\t'EntityLink',\n\t\tarray\n\t\t(\n\t\t\t'parent_entity_type' => $parent_entity_type,\n\t\t\t'parent_entity_id' => $parent_entity_id,\n\t\t\t'child_entity_type' => $child_entity_type,\n\t\t\t'child_entity_id' => $child_entity_id,\n\t\t)\n\t);\n}", "title": "" }, { "docid": "3cb90c934d26eef0154fda43d0b141ba", "score": "0.4576828", "text": "public function setByPosition($pos, $value)\n {\n switch ($pos) {\n case 0:\n $this->setCvtermId($value);\n break;\n case 1:\n $this->setCvId($value);\n break;\n case 2:\n $this->setName($value);\n break;\n case 3:\n $this->setDefinition($value);\n break;\n case 4:\n $this->setDbxrefId($value);\n break;\n case 5:\n $this->setIsObsolete($value);\n break;\n case 6:\n $this->setIsRelationshiptype($value);\n break;\n } // switch()\n }", "title": "" }, { "docid": "92abb384f3efbfb8c5f3077d93d5c038", "score": "0.4576107", "text": "function childOf(&$Parent){\r\n\t\t$this->_Parent = & $Parent;\r\n\t}", "title": "" }, { "docid": "af7e0018f7ed885282542d60dc83c7e0", "score": "0.45749038", "text": "public function eachChild(){\n if ($this->isSingletag() || \\count($this->childs) < 1)\n return null;\n if ($this->position == \\count ($this->childs) ){\n $this->position = 0;\n return NULL;\n }\n return $this->childs[ $this->position++ ];\n }", "title": "" }, { "docid": "0154d5ea2de00e58fd8ace6cb70795a8", "score": "0.45748016", "text": "function split(Frame $child = null, $force_pagebreak = false)\n {\n if (is_null($child)) {\n parent::split();\n return;\n }\n\n // Remove child & all subsequent rows from the cellmap\n $cellmap = $this->get_parent()->get_cellmap();\n $iter = $child;\n\n while ($iter) {\n $cellmap->remove_row($iter);\n $iter = $iter->get_next_sibling();\n }\n\n // If we are splitting at the first child remove the\n // table-row-group from the cellmap as well\n if ($child === $this->get_first_child()) {\n $cellmap->remove_row_group($this);\n parent::split();\n return;\n }\n\n $cellmap->update_row_group($this, $child->get_prev_sibling());\n parent::split($child);\n }", "title": "" }, { "docid": "9d20468f6a0b92101ad89cff8b510bf7", "score": "0.45705855", "text": "final public function addChildFrame($frame)\n\t{\n\t\t$this->__children_frames[] = $frame;\n\t}", "title": "" }, { "docid": "f65ed78570cb76c3a7da910961081532", "score": "0.45424104", "text": "public function buildHierarchy($child, $parentId=0){\n \t\t\n \t\t$childIds = $this->getChildIdsFromParentId($parentId);\n \t\tif(!isset($childIds) || !is_array($childIds)){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\tforeach($childIds as $id){\n \t\t\t$child[$id] = $this->getDataItem($id);\n \t\t\t$children = array();\n\t\t\t$child[$id]->children = $this->buildHierarchy($children, $id);\n \t\t}\n \t\t\n \t\treturn $child;\n \t}", "title": "" }, { "docid": "150a4d4d75dd66f7410bf14153259588", "score": "0.45331177", "text": "protected function moveTo($target, $position) {\n if ( !$this->exists )\n throw new MoveNotPossibleException('A new node cannot be moved.');\n\n if ( array_search($position, VALID_MOVE_POSITIONS) === FALSE )\n throw new MoveNotPossibleException(\"Position should be one of {self::VALID_MOVE_POSITIONS} but is $position.\");\n\n if ( $this->equals($target) )\n throw new MoveNotPossibleException('A node cannot be moved to itself.');\n\n if ( $this->insideSubtree($target) )\n throw new MoveNotPossibleException('A node cannot be moved to a descendant of itself (inside moved tree).');\n\n $this->getConnection()->transaction(function($connection) use ($target, $position) {\n $bound = 1;\n switch ($position) {\n case 'child':\n $bound = $target->getRight();\n break;\n\n case 'left':\n $bound = $target->getLeft();\n break;\n\n case 'right':\n $bound = $target->getRight() + 1;\n break;\n }\n $bound = $bound > $this->getRight() ? $bound - 1 : $bound;\n\n $otherBound = $bound > $this->getRight() ? $this->getRight() + 1 : $this->getleft() - 1;\n\n // return early if there's no change to be made\n if ( $bound == $this->getRight() || $bound == $this->getLeft() )\n return 0;\n\n // we have defined the boundaries of two non-overlapping intervals,\n // so sorting puts both the intervals and their boundaries in order\n $boundaries = array($this->getLeft(), $this->getRight(), $bound, $otherBound);\n sort($boundaries);\n list($a, $b, $c, $d) = $boundaries;\n\n $newParent = $target->getParentId();\n if ( $position == 'child' )\n $newParent = $target->id;\n\n // Update\n $builder = $this->newQuery();\n $query = $builder->getQuery();\n $grammar = $query->getGrammar();\n\n $currentId = $this->id;\n $leftColumn = $this->getLeftColumnName();\n $rightColumn = $this->getRightColumnName();\n $parentColumn = $this->getParentColumnName();\n $wrappedLeft = $grammar->wrap($leftColumn);\n $wrappedRight = $grammar->wrap($rightColumn);\n $wrappedParent = $grammar->wrap($parentColumn);\n $wrappedId = $grammar->wrap($this->getKeyName());\n\n $lftSql = \"CASE\n WHEN $wrappedLeft BETWEEN $a AND $b THEN $wrappedLeft + $d - $b\n WHEN $wrappedLeft BETWEEN $c AND $d THEN $wrappedLeft + $a - $c\n ELSE $wrappedLeft END\";\n\n $rgtSql = \"CASE\n WHEN $wrappedRight BETWEEN $a AND $b THEN $wrappedRight + $d - $b\n WHEN $wrappedRight BETWEEN $c AND $d THEN $wrappedRight + $a - $c\n ELSE $wrappedRight END\";\n\n $parentSql = \"CASE\n WHEN $wrappedId = $currentId THEN $newParent\n ELSE $wrappedParent END\";\n\n return $builder->whereBetween($leftColumn, [$a, $d])\n ->orWhereBetween($rightColumn, [$a, $d])\n ->update([\n $leftColumn => $connection->raw($lftSql),\n $rightColumn => $connection->raw($rgtSql),\n $parentColumn => $connection->raw($parentSql)\n ]);\n });\n\n $target->reload();\n\n // TODO:\n // 1. set depth\n\n foreach ($this->getDescendants() as $descendant) {\n $descendant->save();\n }\n\n return $this->reload();\n }", "title": "" }, { "docid": "4299be412b0cf01d9d847b16bef35945", "score": "0.4529552", "text": "public function set_position($position) {\n $this->position = $position;\n }", "title": "" }, { "docid": "cb4b8c74b640241c102a06ff2b89c04a", "score": "0.45283565", "text": "public function addChildNode(HtmlNode $ChildNode) : HtmlNode\n {\n array_push($this->childNodes, $ChildNode);\n return $this;\n }", "title": "" }, { "docid": "6562c51c2feaf2d5293391e50c64563a", "score": "0.4526479", "text": "public function setPosition($position){\n\n $ares = $this->getValue($position);\n $this->position = $ares[0];\n $this->value = $ares[1];\n \n }", "title": "" } ]
386dd7c13a4b0d0378d5336f2253e1f1
constructor de la clase
[ { "docid": "02ca5f1ddb5ee070348f60a4161f7469", "score": "0.0", "text": "function __construct($id_pedido, $id_prod, $fecha_pedido, $hora_pedido, $num_prod, $estado_prod)\r\n\t{\r\n\t\t$this->id_pedido=$id_pedido;\r\n\t\t$this->id_prod=$id_prod;\r\n\t\t$this->fecha_pedido=$fecha_pedido;\r\n\t\t$this->hora_pedido=$hora_pedido;\r\n\t\t$this->num_prod=$num_prod;\r\n\t\t$this->estado_prod=$estado_prod;\r\n\t}", "title": "" } ]
[ { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "86479c1416edaa6d7b3be04268147c9a", "score": "0.83847404", "text": "private function __construct(){}", "title": "" }, { "docid": "cd17b3e81b1ed1d338ef132cbc5bf2cf", "score": "0.83440477", "text": "public function __constructor()\n {\n }", "title": "" }, { "docid": "e42aaf0851dbfe83514dd11c8d0a9b44", "score": "0.82975155", "text": "public function __constructor()\n {\n }", "title": "" }, { "docid": "7638e66a97e929d20b2e8fc86e5b15cb", "score": "0.8280854", "text": "public function __construct( ){\n\t\n\t}", "title": "" }, { "docid": "763fff94eca613bb1a2de8bb8d749127", "score": "0.8264687", "text": "function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "a35772e47995de4a7841f4d10ea9da33", "score": "0.82376015", "text": "function __construct(){}", "title": "" }, { "docid": "a35772e47995de4a7841f4d10ea9da33", "score": "0.82376015", "text": "function __construct(){}", "title": "" }, { "docid": "a35772e47995de4a7841f4d10ea9da33", "score": "0.82376015", "text": "function __construct(){}", "title": "" }, { "docid": "a35772e47995de4a7841f4d10ea9da33", "score": "0.82376015", "text": "function __construct(){}", "title": "" }, { "docid": "92398570210bc90097a53f77d793b0a8", "score": "0.82208276", "text": "private function __construct(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "00739776f32d69d24153dde97e0ec1b7", "score": "0.82179636", "text": "function __construct()\n\t\t{\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5f8aea7ad46e9ad21e8a04ca539e90a1", "score": "0.8203593", "text": "private function __construct(){\n\t\n\n\t}", "title": "" }, { "docid": "379093bd720edd2c984f954056e0eda8", "score": "0.8200274", "text": "public function __construct() {\n\t }", "title": "" }, { "docid": "4f0dfbd96fc0f00e046be34fbbf3486f", "score": "0.8188026", "text": "function __construct()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8d2c85aac5cccf1b36d7437071c2b4e2", "score": "0.81873316", "text": "function __construct (){\r\n \t\t \r\n\t }", "title": "" }, { "docid": "0685737e00c23cbeb1adb3421e8883ae", "score": "0.8184124", "text": "function __construct()\n\t {\n\t\t \n\t }", "title": "" }, { "docid": "655646ebd5e0baf64a09e183f2e31231", "score": "0.81694967", "text": "public function __construct()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "655646ebd5e0baf64a09e183f2e31231", "score": "0.81694967", "text": "public function __construct()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4e1527bb527022aac55c39ce219ec0dc", "score": "0.81690526", "text": "public function __construct()\n\t{\n\t\t//Metodo constructor de la clase padre\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.8168716", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.8168716", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "66fefbd74bd5d373a7c5f5a011c20fad", "score": "0.81623566", "text": "public function __construct()\r\n\t\t{\r\n\t\t}", "title": "" }, { "docid": "165d4dc3768e936b425981a959a6e5ec", "score": "0.8157409", "text": "function __construct(){ }", "title": "" }, { "docid": "0483931b02bf2110031b1ebed9086eb8", "score": "0.8157023", "text": "public function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "4c7158e4df03e57937fa40352e1f1c82", "score": "0.81490326", "text": "function __construct(){\n\n\t\t}", "title": "" }, { "docid": "056052bae1491e4f5207481c2b0a427a", "score": "0.8145313", "text": "public function __construct() {\n\n\t\t}", "title": "" }, { "docid": "589cbe00982421ff787891936a6ab230", "score": "0.814372", "text": "final private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "65cb93c056914387cca221739b51d614", "score": "0.81417817", "text": "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "e24e87f5a3e2f27fdda57421809a3b5a", "score": "0.813814", "text": "function __construct()\n\t{\n\t\t//Constructor vacio\n\t}", "title": "" }, { "docid": "e24e87f5a3e2f27fdda57421809a3b5a", "score": "0.813814", "text": "function __construct()\n\t{\n\t\t//Constructor vacio\n\t}", "title": "" }, { "docid": "a57723f3eac64a25015d817fe06a289b", "score": "0.81269443", "text": "public function __construct() {\r\n\r\n\t\t// Rien a faire\r\n\t\r\n\t}", "title": "" }, { "docid": "9bd462025185b71c8ac7562a8fcc95c3", "score": "0.81232876", "text": "public function __construct() {\n\t\t}", "title": "" }, { "docid": "9bd462025185b71c8ac7562a8fcc95c3", "score": "0.81232876", "text": "public function __construct() {\n\t\t}", "title": "" }, { "docid": "276362be5f5ea3bf5bc80b7e7cc36b61", "score": "0.8115854", "text": "private function __construct ()\r\n\t{\t\t\r\n\t}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.81143236", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "263d9de8facb2e60e52d64dd5200fdae", "score": "0.81123346", "text": "public function __construct()\n\t{\n\t\t# oalala\n\t}", "title": "" }, { "docid": "6e01dfed9eb1a32ffa2e97185935849a", "score": "0.8110125", "text": "private function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "84ddfdec1a38722865c36fda9889cb26", "score": "0.8107954", "text": "private function _construct(){ \n\t \n\t }", "title": "" }, { "docid": "bee9aa94b76601ec8cf69291c9544bd4", "score": "0.81074375", "text": "function __construct() {\n\t\t\n\t\t\n\t\t\t}", "title": "" }, { "docid": "f3f7530d499f282b1677193f38718083", "score": "0.81014377", "text": "private function __construct()\n\t{\n\n\t}", "title": "" }, { "docid": "b1738a7e6a054c999a3e4ff055c8216e", "score": "0.8101039", "text": "private function __construct(){\n }", "title": "" }, { "docid": "0a3b396205daa1ea3555eb18112cb2de", "score": "0.8096042", "text": "private function __construct() {\n }", "title": "" }, { "docid": "2aff5f64789b93e33bf2dd897e58c47d", "score": "0.8092261", "text": "function __construct(){\n\t\t}", "title": "" }, { "docid": "d6f4929e7fb39d159e4cf170a5e07f34", "score": "0.8088489", "text": "function _construct() {\n\n }", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.8088381", "text": "private function __construct () {}", "title": "" }, { "docid": "1a8d859ddb42c37cca558db0907be9a3", "score": "0.8088065", "text": "public function __construct()\n\t{}", "title": "" }, { "docid": "1a8d859ddb42c37cca558db0907be9a3", "score": "0.8088065", "text": "public function __construct()\n\t{}", "title": "" }, { "docid": "1bb17d31bb3484e22677c92b15a7b749", "score": "0.80871", "text": "public function __construct() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.80829185", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.80829185", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cacc64caa320f0d2137c74a995d9fd57", "score": "0.80803204", "text": "private function __construct()\n {\n\n }", "title": "" }, { "docid": "8d5c29a8c0d05cab4f1b2f1183a37c74", "score": "0.8079334", "text": "function __construct()\r\n\t\t{\r\n\t\t\t# code...\r\n\t\t}", "title": "" }, { "docid": "af0ad0c1f62da0289926883dca9481cf", "score": "0.80732566", "text": "function __construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "190a2088889d77112663237d3b66295a", "score": "0.80732244", "text": "public function __construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "190a2088889d77112663237d3b66295a", "score": "0.80732244", "text": "public function __construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.8069142", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "9b1554e5bbcc6a0ae0c57795d17e8fb7", "score": "0.80676067", "text": "private function __construct() {\r\n\t}", "title": "" }, { "docid": "e21fc042258e6d168bf54e41568ea88d", "score": "0.80665237", "text": "public function __construct() {\n\t\t// \n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.8066519", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.8066091", "text": "function __construct() {}", "title": "" }, { "docid": "d954a360842d4f0a77e7d76b8ad0af07", "score": "0.80629164", "text": "public function __construct()\r\n {\r\n \t\r\n }", "title": "" }, { "docid": "fb76b3a53fbc9e552595fb36e96cdb87", "score": "0.806179", "text": "private function __construct() {\n\t\n\t}", "title": "" }, { "docid": "ec7bda312c472b12a18d5415e7d066ad", "score": "0.8059202", "text": "private function __construct() {\n\n\t}", "title": "" }, { "docid": "ec7bda312c472b12a18d5415e7d066ad", "score": "0.8059202", "text": "private function __construct() {\n\n\t}", "title": "" }, { "docid": "ec7bda312c472b12a18d5415e7d066ad", "score": "0.8059202", "text": "private function __construct() {\n\n\t}", "title": "" }, { "docid": "e3783e5c3251d8c30f520ffe5407d276", "score": "0.80486673", "text": "private function __construct(){ }", "title": "" }, { "docid": "e3783e5c3251d8c30f520ffe5407d276", "score": "0.80486673", "text": "private function __construct(){ }", "title": "" }, { "docid": "8bf733928e83ea47b514aec42fd74459", "score": "0.8044724", "text": "function __construct()\n\t{\n\n\t}", "title": "" }, { "docid": "e7b4cd14d5880d66f45c52e5760bfd8e", "score": "0.80432737", "text": "public function __construct()\n\t\t{\n\t\t\t# code...\n\t\t}", "title": "" }, { "docid": "6cf510f99cac617621ddb7cf6f86a5b8", "score": "0.8041476", "text": "public function __construct()\r\n\t{\r\n\t}", "title": "" }, { "docid": "6cf510f99cac617621ddb7cf6f86a5b8", "score": "0.8041476", "text": "public function __construct()\r\n\t{\r\n\t}", "title": "" }, { "docid": "7164edebb5c0a3c2479aaf5db50837f0", "score": "0.8036712", "text": "public function construct() {\r\n\r\n }", "title": "" }, { "docid": "4035e742ed1810ce710a2d8ca00bc253", "score": "0.8032859", "text": "private function __construct()\r\n {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.8031239", "text": "private function __construct() {}", "title": "" } ]
677143e0b7191dbfc4de7242a517b0fa
Returns information about the client and specified connection Returns information about the client and specified connection
[ { "docid": "a7e15989792ace3cd8f9a10b93e7121d", "score": "0.68388116", "text": "function sqlsrv_client_info($conn): array {}", "title": "" } ]
[ { "docid": "36c71fe695ddab7e990b0831c5a5fc25", "score": "0.7245311", "text": "function db2_client_info($connection)\n{\n}", "title": "" }, { "docid": "23cab41a0b0e914f17bcfbfddf461e03", "score": "0.6849589", "text": "public static function getClientInfo() {\n\t\treturn self::_getAdapter()->getClientInfo();\n\t}", "title": "" }, { "docid": "391cf81eb716a2a0f68cb168f2838e9e", "score": "0.6523536", "text": "function mysqli_get_client_info () {}", "title": "" }, { "docid": "54a64fb76a6a63678e6cce65e269ac4a", "score": "0.6473263", "text": "public function getClientInfo()\n {\n return isset($this->client_info) ? $this->client_info : null;\n }", "title": "" }, { "docid": "b8ad69cd652d002719453d3f23793570", "score": "0.647136", "text": "function mysql_get_client_info () {}", "title": "" }, { "docid": "96e03eebe8d1d6578bf5476b960c9052", "score": "0.6340805", "text": "public function getConnectionData () {\n\t\treturn [\n\t\t\t'client_info' => $this->connection->client_info,\n\t\t\t'client_version' => $this->connection->client_version,\n\t\t\t'host_info' => $this->connection->host_info,\n\t\t\t'stat' => $this->connection->stat,\n\t\t\t'server_info' => $this->connection->server_info,\n\t\t\t'server_version' => $this->connection->server_version\n\t\t];\n\t}", "title": "" }, { "docid": "b03d861bc8a56e62c03a95f8c9214941", "score": "0.62659544", "text": "public function getInfo()\n {\n return $this->client->getinfo();\n }", "title": "" }, { "docid": "480914b99981806c99fe086822f1edaf", "score": "0.6128281", "text": "public static function connectionInfo( $p_con_name ){\n $con_name = $p_con_name;\n return self::$ConnectionSettingSet[$con_name];\n }", "title": "" }, { "docid": "653b4781404bb3d7dc64cc5201e87e77", "score": "0.6004381", "text": "private function clientInfo($clientId) {\n\t\t\t$sqlResponse = $this->relaySQLConnection->query(\"\n\t\t\t\tSELECT clntComputerName as computer, clntVersion as version, DATEDIFF(s, '1970-01-01 00:00:00', clntLastAccess) as timestamp\n\t\t\t\tFROM tblClient \n\t\t\t\tWHERE clntId = $clientId\n\t\t\t\");\n\n\t\t\treturn !empty($sqlResponse) ? $sqlResponse[0] : [];\n\t\t}", "title": "" }, { "docid": "df0075360d70410939e3ec572e201d52", "score": "0.5976535", "text": "function db_get_client_info()\n \t{\n\t \treturn ( function_exists('mysql_get_client_info') ? mysql_get_client_info() : FALSE );\n\t}", "title": "" }, { "docid": "4194504f456cc291cb2ff6fc4b3a8598", "score": "0.5920946", "text": "public function serverInfo()\n {\n \t\n \ttry{\n \n \t $this->client->call('ServerInfo');\n \n \t return $this->client;\n \t\n \t}catch (HttpException $e) {\n \t\n $e->getCode();\n \t echo $e->getMessage();\n\t}\n }", "title": "" }, { "docid": "5a66680936ebf9c35802a7fc72ebf866", "score": "0.58729774", "text": "public function client_info($field){\n return $this->{$field};\n }", "title": "" }, { "docid": "f5265529b651db18b4ccbacc0e690f4a", "score": "0.5871058", "text": "private function get_jobe_connection_info($resource) {\n $jobe = $this->jobeserver;\n $protocol = 'http://';\n $url = (strpos($jobe, 'http') === 0 ? $jobe : $protocol.$jobe).\"/jobe/index.php/restapi/$resource\";\n\n $headers = array(\n 'User-Agent: CodeRunner',\n 'Content-Type: application/json; charset=utf-8',\n 'Accept-Charset: utf-8',\n 'Accept: application/json',\n );\n if (!empty($this->apikey)) {\n $headers[] = \"X-API-KEY: $this->apikey\";\n }\n if (!empty($this->currentjobid)) {\n $headers[] = \"X-CodeRunner-Job-Id: $this->currentjobid\";\n }\n\n return array($url, $headers);\n }", "title": "" }, { "docid": "014e9d235e2199ee936dfdf6ae2924c3", "score": "0.58005923", "text": "public function get_client_info()\n {\n throw new TPkgCmsException_Log('MySqlLegacySupport::mysql_get_client_info is no longer supported!');\n }", "title": "" }, { "docid": "b87537f0d31badb99961594868327d0b", "score": "0.57939726", "text": "public function getinfo() {\n\t\treturn $this->CI->jsonrpcclient->getinfo();\n\t}", "title": "" }, { "docid": "8878992fd718c7430484c673baa0f18b", "score": "0.57825255", "text": "private function get_user_database_connection_details()\n\t{\n\t\t$m_rdbms = 'mysql';\n\t\t$m_host = 'localhost';\n\t\t$m_db_name = 'messagesmssoap';\n\t\t$m_host_name = $m_rdbms . ':host=' . $m_host;\n\t\t$m_port_number = ';port=' . '3306';\n\t\t$m_user_name = 'smssoap';\n\t\t$m_user_password = 'secureweb';\n\t\t$m_user_database = ';dbname=' . $m_db_name;\n\t\t$m_host_details = $m_host_name . $m_port_number . $m_user_database;\n\n\t\t$m_arr_db_connect_details =\n\t\t\t[\n\t\t\t\t'host_details' => $m_host_details,\n\t\t\t\t'user_name' => $m_user_name,\n\t\t\t\t'user_password' => $m_user_password\n\t\t\t];\n\t\treturn $m_arr_db_connect_details;\n\t}", "title": "" }, { "docid": "1a6672bc1465381a366bd9479bba0731", "score": "0.5768216", "text": "public function editorAjaxGetConnectionInfoAction($i_cid) {\n\n\t\techo $this->_ajaxDisplayList(\n\t\t\tConnection::find($i_cid),\n\t\t\tarray('name','type','username','hostname','hostport','resource','extra')\n\t\t);\n\t}", "title": "" }, { "docid": "db7a58f0a42cc25d6c1351ddacdd27da", "score": "0.5722134", "text": "private function _fetchClientDetails()\n {\n $_oAuthDb = new DBPDO(\n \"pgsql:host={$GLOBALS['ini']['oauth']['fqdn']};dbname={$GLOBALS['ini']['oauth']['dbname']}\",\n $GLOBALS['ini']['oauth']['user'],\n $GLOBALS['ini']['oauth']['pass'],\n [\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_ASSOC,\n \\PDO::ATTR_EMULATE_PREPARES => FALSE,\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION,\n ]\n );\n $client = $this->_db->fetchQuery(\n \"SELECT\n cl.id,\n cl.client_id,\n convert_from(decrypt(cl.client_name, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS client_name,\n convert_from(decrypt(cl.client_email, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS email,\n convert_from(decrypt(cl.address1, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS address1,\n convert_from(decrypt(cl.address2, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS address2,\n convert_from(decrypt(cl.address3, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS address3,\n convert_from(decrypt(cl.town, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS town,\n convert_from(decrypt(cl.postcode, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS postcode,\n cn.id AS country,\n cl.managed_by AS manager\n FROM clients cl\n LEFT JOIN countries cn ON cl.country = cn.id\n WHERE cl.id=:cid;\",\n [\":cid\" => intval($_GET[1])]\n );\n if ($client !== FALSE) {\n $oauth = $_oAuthDb->fetchQuery(\"SELECT client_id AS client_public,client_secret FROM oauth_clients WHERE user_id=:uid\", [\":uid\" => $client['id']]);\n $client['client_public'] = $oauth['client_public'];\n $client['client_secret'] = $oauth['client_secret'];\n $client['postcode'] = GlobalFunction::formatPostcode($client['postcode']);\n $contacts = [];\n $query = $this->_db->executeQuery(\n \"SELECT\n ct.id,\n convert_from(decrypt(ct.contact_name, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS contact_name,\n convert_from(decrypt(ct.contact_relation, '\" . KEY . \"', 'aes'), 'SQL_ASCII') AS contact_relation,\n json_agg(\n json_build_object(\n 'id',ccd.id,\n 'type', ccd.contact_type,\n 'value', convert_from(decrypt(ccd.contact_details, '\" . KEY . \"', 'aes'), 'SQL_ASCII')\n )\n ) AS contact_details\n FROM client_contacts ct\n LEFT JOIN client_contact_details ccd ON ct.id = ccd.contact_id\n WHERE ct.client_id = :cid\n GROUP BY ct.id\n ORDER BY convert_from(decrypt(ct.contact_name, '\" . KEY . \"', 'aes'), 'SQL_ASCII') ASC;\",\n [\":cid\" => intval($_GET[1])]\n );\n while (($row = $query->fetch()) !== FALSE) {\n $row['contact_details'] = json_decode($row['contact_details'], TRUE);\n $contacts[] = $row;\n }\n $client['contacts'] = $contacts;\n\n $this->options['client'] = $client;\n } else {\n throw new \\Exception(\"Client with id:{$_GET[1]} does not exist\", 400);\n }\n }", "title": "" }, { "docid": "d47f9a0f0582f925eeb979300dbcbf88", "score": "0.57135063", "text": "public function get_client_info( $params = array() ) {\t\n\t\t$params = $params + array ( 'token' => $this->_get_token() );\n\n\t\t$url = $this->_compose_api_call_url( '/client', $params );\n\n\t\ttry {\n\t\t\t$response = $this->_request ( $url );\n\t\t\t//save client info \n\t\t\tset_transient( 'pt_client_info', $response, 2*60 );\n\t\t} catch ( Exception $ex ) {\n\t\t\t$this->_log_message( $ex->getMessage () );\n\t\t\t$response = null;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "3e3aa8cda7d7d99679a1d2737af5cc47", "score": "0.56962997", "text": "public function get_information()\n\t{\n\t\t$information = array();\n\n\t\t$information['platform'] = $this->conn->getDatabasePlatform()->getName();\n\t\t$information['database'] = $this->conn->getDatabase();\n\n\t\treturn $information;\n\t}", "title": "" }, { "docid": "85114a0ac79cec1526253fc6522f14dc", "score": "0.56785756", "text": "public function getInfo()\n {\n $request = new CouchRequest('GET', '');\n return $this->send($request)->getObject();\n }", "title": "" }, { "docid": "4de6669958902bf6a1cdf9233b02d4f7", "score": "0.56709814", "text": "function sqlsrv_server_info($conn): array {}", "title": "" }, { "docid": "d44ddabee0b5b2c5615e6055cd05a2fb", "score": "0.5660736", "text": "public function getResponse()\n {\n return $this->conn->info;\n }", "title": "" }, { "docid": "0e192aa5ad887e69c8df25383977817c", "score": "0.56432676", "text": "public function getActiveConnection();", "title": "" }, { "docid": "fe14451bc820057e33509541089ee758", "score": "0.5628552", "text": "public function getConnection(): string\n {\n return $this->getLine('Connection');\n }", "title": "" }, { "docid": "e333f3f6183309c0b732cfaaa5bce548", "score": "0.55966264", "text": "function mplus_get_connection_data()\n {\n global $museumplus_host, $museumplus_host_api, $museumplus_application, $museumplus_api_user, $museumplus_api_pass;\n\n if(trim($museumplus_host) == '' || trim($museumplus_application) == '' || trim($museumplus_api_user) == '' || trim($museumplus_api_pass) == '')\n {\n mplus_log_event('Missing MuseumPlus API configuration (host, application, API username or API password', array(), 'error');\n return array();\n }\n\n return array(\n 'host' => ($museumplus_host_api==''?$museumplus_host:$museumplus_host_api), // Use the separate API host config if set\n 'application' => $museumplus_application,\n 'username' => $museumplus_api_user,\n 'password' => $museumplus_api_pass);\n }", "title": "" }, { "docid": "c48b462898f0e7d19c16a8b764ee3553", "score": "0.55764323", "text": "public function getClients();", "title": "" }, { "docid": "08732aa987e1c0eeec102061638ada4d", "score": "0.5549164", "text": "public function getConnections();", "title": "" }, { "docid": "f58b21588daa45950006acf761a5df06", "score": "0.5549159", "text": "public function getServerConnectionId(): string;", "title": "" }, { "docid": "7ef928890bc31a16d0dcac0e367c9627", "score": "0.5543711", "text": "private function getConnectionNameAndPort()\n {\n $str = $this->connectionName . \"(\" . $this->port . \")\";\n echo \"\\ngetConnectionNameAndPort()\" . $str . \"\\n\";\n return $str;\n }", "title": "" }, { "docid": "6baeed3af8d1d74b3174341b247eb56f", "score": "0.5539535", "text": "protected function clients() {\n switch ($this->method) {\n case 'GET':\n $columns = array(\n array( 'db' => 'name', 'dt' => 0 ),\n array( 'db' => 'email', 'dt' => 1 ),\n array( 'db' => 'phone', 'dt' => 2 ),\n array( 'db' => 'address', 'dt' => 3 ),\n array( 'db' => 'city', 'dt' => 4 ),\n array( 'db' => 'clientid', 'dt' => 5 )\n );\n\n\n /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * If you just want to use the basic configuration for DataTables with PHP\n * server-side, there is no need to edit below this line.\n */\n \n return SSP::simple( $_GET, $this->database, 'clients', 'clientid', $columns );\n break;\n case 'POST':\n return 'SUCCESS';\n case 'PUT':\n return \"PUT\";\n break;\n case 'DELETE':\n return \"DELETE\";\n break;\n default:\n throw new Exception('Invalid Method');\n }\n }", "title": "" }, { "docid": "fc8ff7068e6cbf5741515059499f43f7", "score": "0.5530285", "text": "public function getConnectionData();", "title": "" }, { "docid": "3c2c8a2e8ce9b9e1ca7c1168c5725717", "score": "0.552262", "text": "public function getConnectionName()\n {\n return $this->connection;\n }", "title": "" }, { "docid": "3c2c8a2e8ce9b9e1ca7c1168c5725717", "score": "0.552262", "text": "public function getConnectionName()\n {\n return $this->connection;\n }", "title": "" }, { "docid": "3c2c8a2e8ce9b9e1ca7c1168c5725717", "score": "0.552262", "text": "public function getConnectionName()\n {\n return $this->connection;\n }", "title": "" }, { "docid": "52e7392719764800b4523fc7732fb1f8", "score": "0.5508952", "text": "public function getConnectionName();", "title": "" }, { "docid": "52e7392719764800b4523fc7732fb1f8", "score": "0.5508952", "text": "public function getConnectionName();", "title": "" }, { "docid": "9cd6346da2e36a860fca89a21a00c82f", "score": "0.54880756", "text": "public function getConn() {\n \treturn $this->conn;\n }", "title": "" }, { "docid": "22bcb6216c5c799b0b4c7c0543fb4747", "score": "0.5479494", "text": "public function getConnectionInformation(Request $request) {\n $user = $request->get('auth');\n $radio = $this->myRadioService->getRadioSettings();\n $info = $this->myRadioService->getRadioConnection(false);\n\n $isDj = $user->userId == $radio->nextDjId || $user->userId == $radio->userId || $user->userId == $this->getCurrentDjId();\n $response = PermissionHelper::haveStaffPermission(\n $user->userId,\n StaffPermissions::CAN_ALWAYS_SEE_CONNECTION_INFORMATION\n ) || $isDj ? $info : null;\n return response()->json($response);\n }", "title": "" }, { "docid": "b7a4328473b060c3098cc43aeb1d7f8f", "score": "0.54738075", "text": "public function getInfo()\n {\n // if info cache is populated and connection is up, return cached info.\n if (isset($this->_info) && $this->isConnected()) {\n return $this->_info;\n }\n\n // run p4 info.\n $result = $this->run(\"info\");\n $this->_info = array();\n\n // gather all data (multiple arrays returned when connecting through broker).\n foreach ($result->getData() as $data) {\n $this->_info += $data;\n }\n\n return $this->_info;\n }", "title": "" }, { "docid": "b78e22becfdf068b762ba6edc08d1302", "score": "0.5464148", "text": "public function getConnection(): string\n {\n return $this->connection;\n }", "title": "" }, { "docid": "648b9a651b63978bd043f0a0631dbd71", "score": "0.54584", "text": "public function getInfo()\n {\n return curl_getinfo(self::$ch);\n }", "title": "" }, { "docid": "958d5daf1433f2426bd12f28d336a094", "score": "0.54374367", "text": "public function getConnectionAttr(){\n return $this->got_connection ? $this->connection : null;\n }", "title": "" }, { "docid": "938b3adc0b1a794e8f44e8b519409133", "score": "0.5432965", "text": "public function getClientId(): string\n {\n return $this->connectionId;\n }", "title": "" }, { "docid": "530656f92f8f8a7b031354bd61a2b732", "score": "0.5430298", "text": "#[Deprecated(since: '5.5')]\nfunction mysql_get_client_info() {}", "title": "" }, { "docid": "e1e518714ed0627e23dd604d22d7f4a5", "score": "0.54256207", "text": "abstract public function serverInfo() : array;", "title": "" }, { "docid": "3807409efc1eb128a1fcb59f959037df", "score": "0.5407827", "text": "public function getSitecpConnectionInformation() {\n return response()->json($this->myRadioService->getRadioConnection(true));\n }", "title": "" }, { "docid": "5c8371a2588030c3411af0cc11d77d64", "score": "0.54075885", "text": "public function getServerInfo();", "title": "" }, { "docid": "fac2d7743e033e16cd3c7fc893659e06", "score": "0.5392779", "text": "public function getConnectionName()\n\t{\n\t\treturn $this->connection;\n\t}", "title": "" }, { "docid": "89cbe98368e5f3a3d44d71b046c6ca4e", "score": "0.5388004", "text": "public function getConnectionCount()\n {\n return $this->client->getconnectioncount();\n }", "title": "" }, { "docid": "4ce059609057554128a7159ced8def12", "score": "0.5369602", "text": "public function getConn(){\n return $this->conn;\n }", "title": "" }, { "docid": "7976499d1efdd174c3bda0cd67102f09", "score": "0.5366145", "text": "public function getConnectionName()\n\t{\n\t\treturn $this->connection_name;\n\t}", "title": "" }, { "docid": "863a908dfffebdaf15f9373437fcb9fb", "score": "0.53375834", "text": "public function get_connection()\n {\n return $this->connection;\n }", "title": "" }, { "docid": "35a9dc5f883a3b09296f7f128a4b19bf", "score": "0.53344536", "text": "public static function getInfo(Connection $connection)\n {\n $url = UrlHelper::buildUrl(Urls::URL_DATABASE, ['current']);\n\n $response = $connection->get($url);\n\n return $response->getJson();\n }", "title": "" }, { "docid": "29ffceaf9d4c51b7d6193da30d0dfb14", "score": "0.5321976", "text": "function getClients($conn, $condition=1)\n{\n\t$sql_select_clients = \"\n\t\tSELECT * \n\t\tFROM clients_view\n\t\tWHERE \" . $condition;\n\t$result = mysqli_query($conn, $sql_select_clients);\n\t$clients_data = array();\n\n\tif ($result && mysqli_num_rows($result) > 0) {\n while($row = mysqli_fetch_assoc($result)) {\n \t$clients_data[$row['client_id']] = $row;\n }\n\t}\n\treturn $clients_data;\n}", "title": "" }, { "docid": "aae6222421d363039649ddcfd15b9c77", "score": "0.5314158", "text": "abstract public function getNewClient(ConnectionInterface $conn);", "title": "" }, { "docid": "a0e26dba644bf963ef6d563e953caa48", "score": "0.5293752", "text": "public function connection()\n {\n return $this->get('connection');\n }", "title": "" }, { "docid": "28290d52e0f307edbf296f48f7267955", "score": "0.5290538", "text": "public function getClient(ConnectionInterface $connection) {\n if ($this->clients->contains($connection)) {\n return $this->clients[$connection];\n }\n return false;\n }", "title": "" }, { "docid": "0f552395988743db88db135b23d25af0", "score": "0.52832127", "text": "public function getClient(){ return ClientData::getById($this->CLIENTE_ID);}", "title": "" }, { "docid": "e48fbfb0d3ec46f50df7e4f754a7a0cd", "score": "0.5282993", "text": "public function getSqlServerConnectionInfo()\n {\n $connectionInfo = null;\n list($dbType, $dbInfo) = explode(':', $this->dbConnection, 2);\n\n if (strcasecmp($dbType, DbConnectionFactory::DBTYPE_SQLSERVER) === 0) {\n $connectionInfo = DbConnection::parseConnectionString($dbInfo);\n }\n\n return $connectionInfo;\n }", "title": "" }, { "docid": "41b048c51171996f51558497eec5abab", "score": "0.52823853", "text": "private function getConnection(){\n return $this->_connection;\n }", "title": "" }, { "docid": "ffd026c63049ced9e50c2a82bcf30623", "score": "0.52814376", "text": "public function getConn() {\n return $this->conn;\n }", "title": "" }, { "docid": "eda57d9f8dde74d28f62110d8d845275", "score": "0.52811164", "text": "function info_serverInfo() {\n\t\tif (!$sRead = $this->_fastcall(\"SI\")) return false;\n\t\t$sRead .= $this->_fastcall(\"GAPL\");\n\t\t$sRead = explode(\"\\r\\n\", $sRead);\n\t\t$sInfo = array();\n\t\tforeach ($sRead as $rLine) {\n\t\t\tif (strstr($rLine, \"=\")) {\n\t\t\t\t$match = explode(\"=\", trim($rLine), 2);\n\t\t\t\t$key = $match[0];\n\t\t\t\t$val = $match[1];\n\t\t\t\t$sInfo[$key] = $val;\n\t\t\t}\n\t\t}\n\t\treturn $sInfo;\n\t}", "title": "" }, { "docid": "ee521205aeed285e5da4fc4216024264", "score": "0.5281102", "text": "public static function get_connection_data( $connection = '' ) {\r\n\r\n\t\tif ( '' !== $connection ) {\r\n\t\t\t$term = get_term_by( 'slug', $connection, CP_CONNECTION_TAXONOMY );\r\n\t\t\tif ( isset( $term->term_id ) ) {\r\n\r\n\t\t\t\treturn get_term_meta( $term->term_id );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn array();\r\n\t}", "title": "" }, { "docid": "90b3faa0d42903b7cc1c22e53fd876ed", "score": "0.52800524", "text": "public static function getConnection(){\n return Connection::$connection;\n }", "title": "" }, { "docid": "83dcfdd3790b0364b7127612aa416fc7", "score": "0.5278692", "text": "public function get_info();", "title": "" }, { "docid": "ccad6d2c9a5205d3644ada7ba5d4e2aa", "score": "0.52658796", "text": "public function getConnection()\n {\n return $this->_conn;\n }", "title": "" }, { "docid": "ccad6d2c9a5205d3644ada7ba5d4e2aa", "score": "0.52658796", "text": "public function getConnection()\n {\n return $this->_conn;\n }", "title": "" }, { "docid": "83e58c97e2ca298145127afb1b5afc65", "score": "0.5263931", "text": "function afficherclients(){\n\t\t$sql=\"SElECT * From client\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "title": "" }, { "docid": "4413ecb34a50386d295bae8c7257933b", "score": "0.52594906", "text": "public function connection($connection);", "title": "" }, { "docid": "845c3501df877b70e0d3c36f52d49747", "score": "0.5254483", "text": "function mysqli_get_server_info (mysqli $link) {}", "title": "" }, { "docid": "ce5d97f7aa69eb0019e03a9ce9ab0e55", "score": "0.52477545", "text": "public function getConnection(){\n return $this->connection;\n }", "title": "" }, { "docid": "5774be19214de399aa167b245490ef72", "score": "0.5247362", "text": "function getConParams()\n {\n return $this->conParams;\n }", "title": "" }, { "docid": "de9697e2def1c17172b4bbb67488c032", "score": "0.5245663", "text": "function getClientName($cid, $replicated, $sid, $getInfo = false){\r\n\r\n $sid = $replicated ? $this->BP->get_local_system_id() : $sid;\r\n\r\n $clientInfo = $this->BP->get_client_info($cid, $sid);\r\n if ($getInfo) {\r\n $result = $clientInfo;\r\n } else {\r\n $result = isset($clientInfo['name']) ? $clientInfo['name'] : false;\r\n }\r\n\r\n return $result;\r\n }", "title": "" }, { "docid": "e0b56384f755e1c0e10a39ec3447733a", "score": "0.5239523", "text": "function getInformation() {\n\t\t\tif ($_SERVER) {\n\t\t\t\tif ($_SERVER[\"HTTP_X_FORWARDED_FOR\"]) {\n\t\t\t\t\t$ip = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n\t\t\t\t} elseif ($_SERVER[\"HTTP_CLIENT_IP\"]) {\n\t\t\t\t\t$ip = $_SERVER[\"HTTP_CLIENT_IP\"];\n\t\t\t\t} else {\n\t\t\t\t\t$ip = $_SERVER[\"REMOTE_ADDR\"];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getenv('HTTP_X_FORWARDED_FOR')) {\n\t\t\t\t\t$ip = getenv('HTTP_X_FORWARDED_FOR');\n\t\t\t\t} elseif (getenv('HTTP_CLIENT_IP')) {\n\t\t\t\t\t$ip = getenv('HTTP_CLIENT_IP');\n\t\t\t\t} else {\n\t\t\t\t\t$ip = getenv('REMOTE_ADDR');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//La variable información contendra los datos que trae la cabecera\n\t\t\t// 'HTTP_USER_AGENT', como lo son navegador y su versión, ademas del\n\t\t\t//sistema operativo\n\t\t\t$informacion = $_SERVER['HTTP_USER_AGENT'];\n\t\t\t//Si no se encuentran coincidencias se mostraran los valores\n\t\t\t//de las variables que estan puestos por defecto (los que siguen)\n\t\t\t$navegador = 'Desconocido';\n\t\t\t$version = \"\";\n\t\t\t$SO = 'Desconocido';\n\t\t\t//Obtenemos el puerto por el cual el cliente esta conectado a nuestro servidor\n\t\t\t$puerto = $_SERVER['REMOTE_PORT'];\n\n\t\t\t/* Ahora averiguamos el nombre del navegador*/\n\t\t\t//Lo que hacemos es comparar los nombres de los navegadores\n\t\t\t//con la información de la cabecera HTTP_USER_AGENT, y cuando haya una\n\t\t\t//coincidencia guardar la variable.\n\t\t\tif (preg_match('/MSIE/i', $informacion) && !preg_match('/Opera/i', $informacion)) {\n\t\t\t\t$navegador = 'Internet Explorer';\n\t\t\t\t$n_navegador = \"MSIE\";\n\t\t\t} elseif (preg_match('/Firefox/i', $informacion)) {\n\t\t\t\t$navegador = 'Mozilla Firefox';\n\t\t\t\t$n_navegador = \"Firefox\";\n\t\t\t} elseif (preg_match('/Chrome/i', $informacion)) {\n\t\t\t\t$navegador = 'Google Chrome';\n\t\t\t\t$n_navegador = \"Chrome\";\n\t\t\t} elseif (preg_match('/Safari/i', $informacion)) {\n\t\t\t\t$navegador = 'Apple Safari';\n\t\t\t\t$n_navegador = \"Safari\";\n\t\t\t} elseif (preg_match('/Opera/i', $informacion)) {\n\t\t\t\t$navegador = 'Opera';\n\t\t\t\t$n_navegador = \"Opera\";\n\t\t\t} elseif (preg_match('/Netscape/i', $informacion)) {\n\t\t\t\t$navegador = 'Netscape';\n\t\t\t\t$n_navegador = \"Netscape\";\n\t\t\t}\n\n\t\t\t// Finalmente obtenemos la versión del navegador\n\t\t\t//Esto es una expresión regular que no explicare...apenas y la entiendo yo\n\t\t\t$patron = '#(?' . $n_navegador . ')[/ ]+(?[0-9.|a-zA-Z.]*)#';\n\t\t\tif (!preg_match_all($patron, $informacion, $busqueda)) {\n\t\t\t\t// aun no tenemos el número correcto, solo continuamos\n\t\t\t}\n\n\t\t\t// Contamos cuantos números tenemos de la versión\n\t\t\t$i = count($busqueda['browser']);\n\t\t\tif ($i != 1) {\n\t\t\t\t//comprobamos en que posición del array esta la versión\n\t\t\t\tif (strripos($informacion, \"version\") < strripos($informacion, $n_navegador)) {\n\t\t\t\t\t$version = $busqueda['version'][0];\n\t\t\t\t} else {\n\t\t\t\t\t$version = $busqueda['version'][1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$version = $busqueda['version'][0];\n\t\t\t}\n\n\t\t\t// Comprobamos si tenemos un número\n\t\t\tif ($version == null || $version == \"\") {\n\t\t\t\t$version = \"???\";\n\t\t\t}\n\n\t\t\t//Obtenemos el sistema operativo\n\t\t\tif (preg_match('/linux/i', $informacion)) {\n\t\t\t\t$SO = 'linux';\n\n\t\t\t} elseif (preg_match('/macintosh|mac os x/i', $informacion)) {\n\t\t\t\t$SO = 'mac';\n\t\t\t} elseif (preg_match('/windows|win32/i', $informacion)) {\n\t\t\t\t$SO = 'Windows';\n\t\t\t}\n\t\t\t//Asignamos un valor a cada variable dentro del array\n\t\t\treturn array('url'=>$_SERVER['REQUEST_URI'],'ip' => $ip, 'navegador' => $navegador, 'version' => $version, 'so' => $SO, 'puerto' => $puerto,'fecha'=>date('Y-m-d H:i:s'));\n\t}", "title": "" }, { "docid": "a1e042f211103c4d0dbade89961682a2", "score": "0.5229745", "text": "public function getConnection() {\n return $this->connection;\n }", "title": "" }, { "docid": "6252884e6a3a893189284ab985a18615", "score": "0.5226338", "text": "public function get(){\n return $this->m_oConn;\n }", "title": "" }, { "docid": "b2cd5f7147981cb965e8ab02078b5839", "score": "0.52238786", "text": "public function getClient() {\n $id = $_GET['id'];\n \n $requete = $this->connexion->prepare(\"SELECT * FROM client WHERE id = :id\");\n $requete->bindParam(':id', $id);\n $result = $requete->execute();\n $client = $requete->fetch(PDO::FETCH_ASSOC);\n\n // var_dump($client);\n\n return $client;\n }", "title": "" }, { "docid": "29c887ea3143d3ae4802ed591eba011b", "score": "0.5221779", "text": "public function getConnectionName() : string\n {\n return $this->connectionName;\n }", "title": "" }, { "docid": "17cef2b1bef872840cfebc6ae4bd721b", "score": "0.522137", "text": "protected function getConnection(){\r\n\r\n return $this->connectionHandle;\r\n }", "title": "" }, { "docid": "30340ff444c537d173c1e1a016b47be0", "score": "0.5217797", "text": "public function getConnections(): array;", "title": "" }, { "docid": "a998da012760dd4abd3378783193a53c", "score": "0.52149206", "text": "public function getNumClient()\n {\n return $this->numClient;\n }", "title": "" }, { "docid": "03deee4e31ee86b4e0157b97ca8779dd", "score": "0.5213104", "text": "function getAuthClient($conn, $condition)\n{\n\t$sql_select_clients = \"\n\t\tSELECT * \n\t\tFROM clients_auth\n\t\tWHERE \" . $condition;\n\t$result = mysqli_query($conn, $sql_select_clients);\n\t$client_auth_data = array();\n\n\tif ($result && mysqli_num_rows($result) == 1) {\n while($row = mysqli_fetch_assoc($result)) {\n $client_auth_data = $row;\n }\n\t}\n\treturn $client_auth_data;\n}", "title": "" }, { "docid": "1e8bfac5109965cfab8c63cf6dc2303d", "score": "0.52106106", "text": "public function get_connection() {\n return $this->connection;\n }", "title": "" }, { "docid": "423635e6d04d741ec657128a0c82b341", "score": "0.5205756", "text": "public function getInfo()\r\n {\r\n return curl_getinfo($this->curl);\r\n }", "title": "" }, { "docid": "740156c64a869c3bd7dd2714ef8eb67c", "score": "0.520539", "text": "public function getServerInfo () {\r\n\t$this->ensureLoggedIn();\r\n\r\n\treturn $this->request(array('req' => 'getserverinfo'));\r\n\t}", "title": "" }, { "docid": "ea38fba4e869b22ac5cf1061551d02fe", "score": "0.51996744", "text": "public function selectReadConnection();", "title": "" }, { "docid": "e31693b4abfeabb1eb939cf6fceb3873", "score": "0.5197283", "text": "public function info(){\n\t\t$oldCheckVersion = $this->setCheckVersion(false);\n\t\t$response = RR_Client::get($this->buildUrl('', 'info', []), [], $headers);\n\t\t$this->setCheckVersion($oldCheckVersion);\n\t\t$this->checkServerResponse($response, $headers);\n\t\treturn json_decode($response, true);\n\t}", "title": "" }, { "docid": "594858ebd6f54aa6931bf08a35d30c63", "score": "0.5192738", "text": "public function getConnectionCount()\n {\n return (int)$this->client\n ->get('getconnectioncount')\n ->getBody()\n ->getContents();\n }", "title": "" }, { "docid": "2b831a96324380ea085b24ccbbfc5f99", "score": "0.51870716", "text": "public function connection()\n {\n return $this->_connection;\n }", "title": "" }, { "docid": "f77bdf643da90d9719e85aa2f12686dd", "score": "0.51848537", "text": "public function connection();", "title": "" }, { "docid": "6b9b22ca29162e828e7f553300203f3e", "score": "0.51845825", "text": "public static function &getconnection() {\n return self::$con;\n }", "title": "" }, { "docid": "f842a3c4264ccc3d26a18a9c2eab2afe", "score": "0.51828986", "text": "abstract public function getConnectionName();", "title": "" }, { "docid": "eac180ce7d8446c7f8abe162488dc9e0", "score": "0.51802313", "text": "public function client()\n {\n return Client::all()->lists('name','name');\n }", "title": "" }, { "docid": "082408540dee965c98acfe9b2030b023", "score": "0.5171099", "text": "function Database_Connecting(&$info) {\n\n\t// Example:\n\t//var_dump($info);\n\t//if ($info[\"id\"] == \"DB\" && CurrentUserIP() == \"127.0.0.1\") { // Testing on local PC\n\t//\t$info[\"host\"] = \"locahost\";\n\t//\t$info[\"user\"] = \"root\";\n\t//\t$info[\"pass\"] = \"\";\n\t//}\n\n}", "title": "" }, { "docid": "c8af37d4b3fd88e2bf51be4cb7721dde", "score": "0.5170683", "text": "public function getInfo()\n {\n $rest_client = new RESTClient($this->server_key, $this->secret_key);\n $response = $rest_client->post('getInfo');\n if($response['success'] == 0){\n $response = $rest_client->post('getInfo');\n }\n return $response;\n }", "title": "" }, { "docid": "d5be8acdfcbe943d34b9b05012b753ba", "score": "0.51662886", "text": "function connection_status () {}", "title": "" }, { "docid": "f7eee974b5d49acd52709a0f546b46b3", "score": "0.5163273", "text": "public function getnetworkinfo()\n {\n return $this->client->execute('getnetworkinfo', array());\n }", "title": "" }, { "docid": "48d3bff086edbda3d19992466afb70ea", "score": "0.5142469", "text": "public function getConnection()\n {\n return $this->_connection;\n }", "title": "" }, { "docid": "c11cee110cd09eb1e13f7b103a4e9dec", "score": "0.5141746", "text": "public function getConnection(){\r\n\t\treturn $this->connect;\r\n\t}", "title": "" } ]
ac7573a26684a04365ad5ecb1717220a
charge le contenu dans un dom
[ { "docid": "5aecee4117932e6070583c6a349846b0", "score": "0.0", "text": "function saveRhizomeContent($content){\n\t\t\n\t}", "title": "" } ]
[ { "docid": "062f1546ba6aa357065f5514dbe44acb", "score": "0.616463", "text": "public function afficher(){\n\n\n\n echo <<<END\n<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <title>$this->title</title>\n <link rel=\"stylesheet\" href=\"/css/style.css\">\n</head>\n<body>\n <nav>\n <ul>\n {$this->nav[0]}\n {$this->nav[1]}\n {$this->nav[2]}\n </ul>\n </nav>\n <div id='center'>\n$this->content\n </div>\n <footer>\n @2020 Mathieu Sousa Jin Conte\n </footer>\n</body>\n</html>\nEND;\n }", "title": "" }, { "docid": "3147d25d71277f26f3cd0ae686289946", "score": "0.60975724", "text": "private function analyserVdm() {\n //Compteur pour les pages à parser\n $compteurPage = 0;\n \n while($this->compteurVdm < 200) {\n //Url du DOM à récupérer\n $url = \"http://www.viedemerde.fr/?page=\".$compteurPage;\n \n $html = file_get_contents($url);\n $domVdm = new Crawler($html);\n //On parcours chaque node \"Article\"\n $compteurVdm = $domVdm->filter('div.article')->each(function ($node) {\n //Tant que 200 VDM n'ont pas été parsé, on continue\n if($this->compteurVdm < 200) {\n //Analyse le contenu du DOM\n $this->analyseNode($node);\n $this->compteurVdm++;\n }\n });\n //Quand il n'y a plus de VDM sur la page en cours\n //On ajoute 1 au compteur\n $compteurPage++;\n }\n }", "title": "" }, { "docid": "8a6e621f46a8ace5d991cea330bd07ae", "score": "0.59479386", "text": "function actualites_editer_contenu_objet($flux){\r\n\t// Concernant le formulaire CVT 'editer_groupe_mot', on veut faire apparaitre les nouveaux objets\r\n\tif ($flux['args']['type']=='groupe_mot') {\r\n\t\t// Si le formulaire concerne les groupes de mots-cles, alors recupere le resultat\r\n\t\t// de la compilation du squelette 'inc-groupe-mot-actualites.html' qui contient les lignes\r\n\t\t// a ajouter au formulaire CVT,\r\n\t\t$actualites_gp_objets = recuperer_fond('formulaires/inc-groupe-mot-actualites', $flux['args']['contexte']);\r\n\t\t// que l'on insere ensuite a l'endroit approprie, a savoir avant le texte <!--choix_tables--> du formulaire\r\n\t\t$flux['data'] = preg_replace('%(<!--choix_tables-->)%is', $actualites_gp_objets.\"\\n\".'$1', $flux['data']);\r\n\t}\r\n\treturn $flux;\r\n}", "title": "" }, { "docid": "f7c58d1b21ee7b6209f5982df0ebe064", "score": "0.58606184", "text": "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Modulo organismi\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c06552043082fa26fd7fee680fdaee3b", "score": "0.56741285", "text": "private function chargeLesAdherents()\r\n\t\t{\r\n\t\t$resultat=$this->maBD->chargement('adherent');\r\n\t\t$nb=0;\r\n\t\twhile ($nb<sizeof($resultat))\r\n\t\t\t{\r\n\t\t\t$this->tousLesAdherents->ajouteUnAdherent($resultat[$nb][0],$resultat[$nb][1],$resultat[$nb][2],$resultat[$nb][3],$resultat[$nb][4],$resultat[$nb][5]);\r\n\t\t\t$nb++;\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "f56444e3d3dc77eeeb1f4515a9e26c5d", "score": "0.56550837", "text": "private function chargeLesSaisons()\n\t\t{\n\t\t$resultat=$this->maBD->chargement('Saison');\n\t\t$nb=0;\n\n\t\twhile ($nb<sizeof($resultat))\n\t\t\t{ $laSerie = $this->toutesLesSeries->donneObjetSerieDepuisNumeroSerie($resultat[$nb][0]);\n\t\t\t\t$this->toutesLesSaisons->ajouteUneSaison($resultat[$nb][1],$resultat[$nb][2],$resultat[$nb][3],$laSerie);\n\t\t\t$nb++;\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "9423c2d84961e1761f56c160f06f6e46", "score": "0.5596331", "text": "public function clear(){\r\n\t\t\t$this->dom->clear();\r\n\t\t}", "title": "" }, { "docid": "dc0f8272002b04ae56a2028c8a7e94d2", "score": "0.5553497", "text": "Public function afficher_rendu()\n\t\t{\n if(file_exists(Entrer::$rep_modules.$this->var_page.\".page.php\"))\n\t\t\t{\n\t\t\t\t//on insere les elements dynamique de la sous-page\n //en creant a la volé les variables \n\t\t\t\tif(!empty($this->var_contenu) && is_array($this->var_contenu))\n\t\t\t\t{\n\t\t\t\t\tforeach($this->var_contenu as $k => $v)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t${$k} = $v;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n \n\t\t\t\t}\n\n //on insere les elements dynamique de la sous-page\n //en creant a la volé les variables\n\t\t\t\tif(!empty(self::$supplement) && is_array(self::$supplement))\n\t\t\t\t{\n\t\t\t\t\tforeach(self::$supplement as $k => $v)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t${$k} .= $v.\"<br/>\";\n \n\t\t\t\t\t}\n \n\n\t\t\t\t}\n \n //on insere les elements script de la sous-page\n //en creant a la volé les variables\n\t\t\t\tif(!empty(self::$script) && is_array(self::$script))\n\t\t\t\t{\n\t\t\t\t\tforeach(self::$script as $k => $v)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$javascriptPhp .= \"<script type='text/javascript' src='\".$v.\"'></script>\\n\";\n \n\t\t\t\t\t}\n \n\n\t\t\t\t}\n \n\n //on indique le fichier de la page pour le contenu\n\t\t\t\t$conteneur = Entrer::$rep_modules.$this->var_page.\".page.php\";\n\t\t\t\t\t\t\t\n\t\t\t\t//on insert le titre de la page\n\t\t\t\t$titre = $this->var_titre;\n\t\t\t\t\n\t\t\t\n\t\t\t\t//on affiche les css\n\t\t\t\t\n\t\t\t\tif(!empty($this->var_css) && !is_array($this->var_css) && isset($this->var_css))\n\t\t\t\t{\n\t\t\t\t\t$css .= \"<link rel='stylesheet' type='text/css' href='\".REP_CSS.$this->var_css.\"' />\";\t\n\t\t\t\t}\n\t\t\t\telseif(is_array($this->var_css))\n\t\t\t\t{\n\t\t\t\t\tforeach($this->var_css as $k => $v )\n\t\t\t\t\t{\n\t\t\t\t\t\t$css .= \"<link rel='stylesheet' type='text/css' href='\".REP_CSS.\"$v' />\";\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n if(is_array(self::$style))\n\t\t\t\t{\n\t\t\t\t\tforeach(self::$style as $k => $v )\n\t\t\t\t\t{\n\t\t\t\t\t\t$style_css .= $v.\" \";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n \n\t\t\t\tif(is_array(self::$css))\n\t\t\t\t{\n\t\t\t\t\tforeach(self::$css as $k => $v )\n\t\t\t\t\t{\n\t\t\t\t\t\t$css .= \"<link rel='stylesheet' type='text/css' href='\".$v.\"' />\";\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n /*if(is_array(Entrer::$erreur))\n {\n \tforeach(Entrer::$erreur as $k => $v )\n\t\t\t\t\t{\n\t\t\t\t\t\t$erreur_framework .= \"<strong style='color:red;'>$v</strong><br/>\";\n\t\t\t\t\t}\n\n }*/\n\n\t\t\t\t//on integre le menu\n\t\t\t\t$menu = $this->var_menu;\n\n \n\t\t\t\t//on affectue le rendu de la page\n \n \n\t\t\t\tinclude_once(REP_DESIGN.DESIGN.\".php\");\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t}\n else\n {\n\n Erreur::declarer_dev(4, \"Page = \".Entrer::$rep_modules.$this->var_page.\".page.php objet : Afficher ; args : var_page\");\n \n\n }\n\t\t}", "title": "" }, { "docid": "ef925147910b9d9529e94db3d4dd4ed4", "score": "0.55351365", "text": "private function chargeLesEntraineurs()\r\n\t\t{\r\n\t\t$resultat=$this->maBD->chargement('entraineur');\r\n\t\t$nb=0;\r\n\r\n\t\twhile ($nb<sizeof($resultat))\r\n\t\t\t{\r\n\t\t\t\t$this->tousLesEntraineurs->ajouteUnEntraineur($resultat[$nb][0],$resultat[$nb][1],$resultat[$nb][2]);\r\n\t\t\t$nb++;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "57263615a17ae340722485a3ac015a7a", "score": "0.55269384", "text": "function mosaique_affiche_gauche($flux){\r\n\tif ($en_cours = trouver_objet_exec($flux['args']['exec'])\r\n\t\tAND $en_cours['edition']!==false // page edition uniquement\r\n\t\tAND $type = $en_cours['type']\r\n\t\tAND $id_table_objet = $en_cours['id_table_objet']\r\n\t\t// id non defini sur les formulaires de nouveaux objets\r\n\t\tAND (isset($flux['args'][$id_table_objet]) and $id = intval($flux['args'][$id_table_objet])\r\n\t\t\t// et justement dans ce cas, on met un identifiant negatif\r\n\t\t\tOR $id = 0-$GLOBALS['visiteur_session']['id_auteur'])\r\n\t\tAND autoriser('joindredocument',$type,$id)\r\n\t\tAND $type == 'article') // Articles seulement pour l'instant\r\n\t{\r\n\t\t$flux['data'] = recuperer_fond('prive/objets/editer/mosaique_colonne', array('objet'=>$type,'id_objet'=>$id)) . $flux['data'];\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "title": "" }, { "docid": "2d04972da4e2a0918e371212452c63bb", "score": "0.55241746", "text": "private function _drawRepertoire() {\n\t\t//on fragmente notre information dans le tableau $urlParts (séparateur '/')\n\t\t$urlParts = explode('/', $this->_url);\n\n\t\t//shéma des url\n\t\t$urlParts[$this->_indicePage] = '[xx]';\n\t\t$shemaUrl = implode('/', $urlParts);\n\n\t\t//Affichage\n\t\treturn $this->_affichage($shemaUrl);\n\t}", "title": "" }, { "docid": "db1126cd2b1e4f8b3f2627889a8b4ba7", "score": "0.5471089", "text": "function aa_affichage_final(&$page) {\r\n\t\t// ne pas se fatiguer si on est pas sur la page sommaire\r\n\t\tif (basename($GLOBALS['page']['source']) != \"sommaire.html\")\r\n\t\t\treturn $page;\r\n\r\n\t\t// generer le fragment de page avec aa.html\r\n\t\tif (!function_exists('recuperer_fond'))\r\n\t\t\tinclude_spip('public/assembler');\r\n\t\t$aa = recuperer_fond('aa');\r\n\r\n\t\t// si il existe un div d'id = aa on insere l'article aa dedans\r\n\t\t// sinon on chope le debut de la liste des derniers articles et on insere l'article aa juste avant\r\n\t\t// ou si la liste n'existe pas on chope le début du bloc navigation\r\n\t\tpreg_match(',<div [^>]*?id=[\\'\"]aa[\\'\"].*?>,i', $page, $res);\r\n\t\tif ($res)\r\n\t\t\t$page = substr_replace($page, $aa, (strpos($page, $res[0]) + strlen($res[0])), 0);\r\n\t\telse {\r\n\t\t\tpreg_match(',<div [^>]*?class=[\\'\"]liste articles sommaire[\\'\"].*?>,i', $page, $res)\t// cas du sommaire de Z\r\n\t\t\t|| preg_match(',<div [^>]*?class=[\\'\"]menu article[\\'\"].*?>,i', $page, $res) // cas du sommaire de la dist\r\n\t\t\t|| preg_match(',</div>[\\s ]*?</div>\\s*?<div [^>]*?id=[\\'\"]navigation[\\'\"].*?>,i', $page, $res) // cas du sommaire Z si pas de \"derniers articles\"\r\n\t\t\t|| preg_match(',</div><!--#contenu-->,i', $page, $res); // cas du sommaire de la dist si pas de \"derniers ...\" articles, breves,forums et sites\r\n\t\t\t\r\n\t\t\tif ($res)\r\n\t\t\t\t$page = substr_replace($page, $aa, (strpos($page, $res[0])), 0);\r\n\t\t}\r\n\t\treturn $page;\r\n\t}", "title": "" }, { "docid": "7635c4b24d861aa0fb8930eac0c50e4d", "score": "0.5469611", "text": "public function getDetailProduct(){\n // Multi Curl\n //var_dump($this->productoUrl);\n parent::__construct($this->productoUrl);\n $this->setContentAndOptions();\n $content = $this->getContent();\n //var_dump($content);\n // Dom Object\n $this->dom = new Dom($content);\n // Referencias\n $tag = \"div\";\n $class = \"product-name\";\n $referenciasVector = $this->dom->getElementsByTagClassNameOther($tag,$class);\n $contador = 0;\n $contadorProductos = 1;\n foreach($referenciasVector as $referencias){\n foreach($referencias as $referencia){\n if ($contador == 1){\n //echo \"referencia: \".rtrim(ltrim($referencia->nodeValue)).\"<br>\";\n //array_push($this->productoReferencia,rtrim(ltrim($referencia->nodeValue)));\n array_push($this->productoReferencia,$contadorProductos);\n $contadorProductos++;\n }\n $contador++;\n }\n $contador = 0;\n }\n\n // Name and Reference\n $vectorNameAndReference = $this->dom->getNameAndReference();\n foreach($vectorNameAndReference[\"name\"] as $name){\n array_push($this->productoNombre,$name);\n }\n foreach($vectorNameAndReference[\"reference\"] as $reference){\n array_push($this->productoReferencia,$reference);\n }\n\n // Price and Old price\n $vectorOldPriceAndPrice = $this->dom->getPriceAndOldPrice();\n foreach($vectorOldPriceAndPrice[\"oldprice\"] as $old){\n array_push($this->productoPrecioAntiguo,$old);\n }\n foreach($vectorOldPriceAndPrice[\"price\"] as $precio){\n array_push($this->productoPrecio,$precio);\n }\n\n // Images\n $this->productoUrlFotos = $this->dom->getImages();\n\n // Caracteristicas\n $caracteristicas = $this->dom->getCaracteristicas();\n $encontrado = FALSE;\n $contador = 0;\n $contadorCarac = 0;\n //\"td\" => array(), valores\n //\"th\" => array(), nombre\n //var_dump($caracteristicas);\n foreach($caracteristicas as $caracteristica){\n foreach($caracteristica[\"th\"] as $caracteristicaNombre){\n foreach($this->caracteristicasDefault as $caracDefault){\n $caracteristicaNombre = rtrim(ltrim($caracteristicaNombre));\n if ($caracteristicaNombre == $caracDefault){\n //echo \"Encontrado<br>\";\n $encontrado = TRUE;\n }\n }\n if ($encontrado == FALSE){\n //echo \"No Encontrado<br>\";\n array_push($this->caracteristicasDefault,$caracteristicaNombre);\n }\n }\n $contador++;\n }\n\n $contador = 0;\n //echo \"<br><br>\";\n //var_dump($caracteristicas);\n foreach($caracteristicas as $caracteristica){\n $caracteristicaString = \"\";\n foreach($caracteristica[\"td\"] as $caracValue) {\n //echo \"hola desc carac: \".$caracteristicas[$contador][\"th\"][$contadorCarac].\"<br><br>\";\n if ($caracteristicas[$contador][\"th\"][$contadorCarac] == \"Descripción\"){\n //echo (\"descripcion\".$caracValue.\"<br><br>\");\n array_push($this->productoDescLarga,$caracValue);\n }else if ($caracteristicas[$contador][\"th\"][$contadorCarac] != \"Marca\") {\n $caracTemp = $caracValue;\n $caracMod = str_replace(\",\",\" \",$caracTemp);\n $caracMod = str_replace(\":\",\" \",$caracMod);\n $caracMod = mb_strimwidth($caracMod,0,255,'...','utf-8');\n $caracteristicaString.= $caracteristicas[$contador][\"th\"][$contadorCarac].\":\".$caracMod.\",\";\n }\n $contadorCarac++;\n }\n $caracteristicaString = substr($caracteristicaString,0,strlen($caracteristicaString)-1);\n //echo (\"String caracteristica es: \".$caracteristicaString.\"<br><br>\");\n array_push($this->caracteristicas,$caracteristicaString);\n echo (\"Contador: \".$contador.\"contadorCarac: \".$contadorCarac.\"<br>\");\n $contadorCarac = 0;\n $contador++;\n }\n }", "title": "" }, { "docid": "a7b946df50f05293c49f0b39f9d0eb6f", "score": "0.54693776", "text": "private function chargeLesJoursSemaine()\r\n\t\t{\r\n\t\t$resultat=$this->maBD->chargement('jourSemaine');\r\n\t\t$nb=0;\r\n\t\twhile ($nb<sizeof($resultat))\r\n\t\t\t{\r\n\t\t\t$this->tousLesJoursSemaine->ajouteUnJourSemaine($resultat[$nb][0],$resultat[$nb][1]);\r\n\t\t\t$nb++;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "06bb2b303e568e8867034d862fa8652f", "score": "0.54367256", "text": "function cont($pos)\n\t{\n\t\t$cont=0;\n\t\t$nodo_actual=$this->primer_elemento;\n\t\twhile($cont<=$pos)\n\t\t{\n\t\t\t$nodo_actual=$nodo_actual->siguiente;\t\n\t\t\t$cont++;\n\t\t}\n\t\techo $cont.\"<br/>\";\n\t}", "title": "" }, { "docid": "3d489fdc44a80906e16dc7268adf2d0e", "score": "0.54333043", "text": "function add_cadre_close() {\n\n printf(\"</div>\");\n\n // Afficher une ombre de taille moyenne.\n ombreCadrePage();\n}", "title": "" }, { "docid": "f207c2cdaf996ffeac59a79ed6d9d996", "score": "0.5391546", "text": "function write_domaine( $domaine ) {\r\n global $CFG;\r\n // initial string;\r\n $expout = \"\";\r\n // add comment\r\n\r\n\t\tif ($domaine){\r\n $code = $domaine->code_domaine;\r\n $description_domaine = $domaine->description_domaine;\r\n $ref_referentiel = $domaine->ref_referentiel;\r\n\t\t\t$num_domaine = $domaine->num_domaine;\r\n\t\t\t$nb_competences = $domaine->nb_competences;\r\n\r\n\t\t\t$expout .= \"<br /><table class='domaine'>\\n\";\r\n\t\t\t$expout .= \"<tr valign=\\\"top\\\">\\n\";\r\n\t\t\t$expout .= \" <th class=\\\"domaine\\\"><b>\".get_string('code_domaine','referentiel').\"</b></th>\\n\";\r\n\t\t $expout .= \" <th class=\\\"domaine\\\"><b>\".get_string('description_domaine','referentiel').\"</b></th>\\n\";\r\n \t// $expout .= \" <th class=\\\"domaine\\\"><b>\".get_string('ref_referentiel','referentiel').\"</b></th>\\n\";\r\n\t\t $expout .= \" <th class=\\\"domaine\\\"><b>\".get_string('num_domaine','referentiel').\"</b></th>\\n\";\r\n\t $expout .= \" <th class=\\\"domaine\\\"><b>\".get_string('nb_competences','referentiel').\"</b></th>\\n\";\r\n\t\t\t$expout .= \"</tr>\\n\";\r\n\r\n\t\t\t$expout .= \"<tr valign=\\\"top\\\">\\n\";\r\n\t\t\t$expout .= \" <td class=\\\"domaine\\\"> \".stripslashes($code).\"</td>\\n\";\r\n $expout .= \" <td class=\\\"domaine\\\"> \".stripslashes($description_domaine).\"</td>\\n\";\r\n // $expout .= \" </td><td class=\\\"domaine\\\"> $ref_referentiel</td>\\n\";\r\n $expout .= \" <td class=\\\"domaine\\\"> $num_domaine</td>\\n\";\r\n $expout .= \" <td class=\\\"domaine\\\"> $nb_competences</td>\\n\";\r\n\t\t\t$expout .= \"</tr>\\n\";\r\n\t\t\t$expout .= \"</table>\\n\";\r\n\r\n\t\t\t// LISTE DES COMPETENCES DE CE DOMAINE\r\n\t\t\t$compteur_competence=0;\r\n\t\t\t$records_competences = referentiel_get_competences($domaine->id);\r\n\t\t\tif ($records_competences){\r\n\t\t\t\t// DEBUG\r\n\t\t\t\t// echo \"<br/>DEBUG :: COMPETENCES <br />\\n\";\r\n\t\t\t\t// print_r($records_competences);\r\n\t\t\t\tforeach ($records_competences as $record_c){\r\n\t\t\t\t\t$expout .= $this->write_competence( $record_c );\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n return $expout;\r\n }", "title": "" }, { "docid": "513778f84877921f4f8be3a00ad8dbd9", "score": "0.5385118", "text": "function preencheDados() { \r\n\r\n\r\n /* echo 'No!! ' . $no;\r\n $x1 = $no1->getMyLevel() . $no1->getMyId();\r\n echo 'x = '. $x1;\r\n */\r\n\r\n //Create our ArrayList\r\n $nodes = new ArrayList();\r\n $no1 = new NoFolha('00', \"Tag 1\");\r\n echo $no1->getComposedID() . ' -- ' . $no1->getName();\r\n\r\n $no2 = new NoFolha('10', \"Tag 2\");\r\n $no3 = new NoFolha('20', \"Tag 3\");\r\n $no4 = new NoFolha('21', \"Tag 4\");\r\n $nodes->add( $no1);\r\n $nodes->add( $no2 );\r\n $nodes->add( $no3 );\r\n $nodes->add( $no4 );\r\n\r\n //Create our loop\r\n echo '==== <BR>';\r\n for($i = 0; $i < $nodes->size(); $i++) {\r\n echo $nodes[$i]->getName() . \"<br>\";\r\n }\r\n \r\n // [ parent, child ]\r\n $this->heapTree->insert([$no1, $no2]);\r\n $this->heapTree->insert([$no2, $no3]);\r\n $this->heapTree->insert([$no2, $no4]);\r\n $this->printTree();\r\n\r\n\r\n }", "title": "" }, { "docid": "768e8a75c3f79e71b1c0d4ef11b1a43b", "score": "0.5377412", "text": "function afficherContenuPub($codepub)\n{\n require_once(\"../Modules/connect.inc.php\");\n\n \n $requete=\"SELECT titrepub FROM publications WHERE codepub='\".$codepub.\"'\";\n $result = pg_exec($dbconn,$requete) or die('Erreur SQL !<br />'.$sql.'<br />'.pg_last_error());\n $row=pg_fetch_array($result);\n $titre=$row[\"titrepub\"];\n\n echo \"<center><h3>\".$titre.\"</h3>\";\n\n $monfichier = fopen(\"../../Fichiers/\".$titre.\".html\", 'a+');\n \n //recuperation et affichage du contenu du fichier\n while (!feof($monfichier)) \n {\n $line=fgets($monfichier);\n echo $line.\"<br />\";\n }\n fclose($monfichier);\n\n echo \"</center><br><br><h3>Commentaires</h3>\";\n\n //Affichage des commentaires\n $requete=\"SELECT contenucom,datecom,nomch,prenomch FROM commentaires c,chercheurs ch WHERE c.codepubch='\".$codepub.\"' AND c.loginch=ch.loginch \";\n $result = pg_exec($dbconn,$requete) or die('Erreur SQL !<br />'.$sql.'<br />'.pg_last_error());\n $requete1=\"SELECT contenucom,datecom,nomabo,prenomabo FROM commentaires c,abonnes a WHERE c.codePubAbo='\".$codepub.\"' AND c.loginAbo=a.loginAbo \";\n $result1 = pg_exec($dbconn,$requete1) or die('Erreur SQL !<br />'.$sql.'<br />'.pg_last_error());\n\n $num=pg_num_rows($result);\n $num1=pg_num_rows($result1);\n\n for ($i=0; $i<$num; $i++) \n {\n $row=pg_fetch_array($result);\n echo $row[\"nomch\"].\" \".$row[\"prenomch\"].\"<br>\";\n echo $row[\"datecom\"].\"<br>\";\n echo $row[\"contenucom\"].\"<br><br>\";\n }\n for ($i=0; $i<$num1; $i++) \n {\n $row=pg_fetch_array($result1);\n echo $row[\"nomabo\"].\" \".$row[\"prenomabo\"].\"<br>\";\n echo $row[\"datecom\"].\"<br>\";\n echo $row[\"contenucom\"].\"<br><br>\";\n }\n}", "title": "" }, { "docid": "c7521cb9ef89e2fba4d9428cc214b5fc", "score": "0.5364932", "text": "public function descend() {\n \t\n }", "title": "" }, { "docid": "c928d34dd1936d456dc07af84f7b0ba5", "score": "0.534819", "text": "function printContent()\t{\r\n\r\n\t\t$this->content.=$this->doc->endPage();\r\n\t\techo $this->content;\r\n\t}", "title": "" }, { "docid": "42346f7bd3df6702b8e678e9c893d3fc", "score": "0.53445345", "text": "private function chargeLesGenres()\n\t\t{\n\t\t$resultat=$this->maBD->chargement('genre');\n\t\t$nb=0;\n\n\t\twhile ($nb<sizeof($resultat))\n\t\t\t{\n\t\t\t\t$this->tousLesGenres->ajouteUnGenre($resultat[$nb][0],$resultat[$nb][1]);\n\n\t\t\t$nb++;\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "aca059bf318b8627362bb171df269621", "score": "0.533848", "text": "function printContent()\t{\n\t\t\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "title": "" }, { "docid": "ad256774a0691569e3c220574d68b611", "score": "0.5329539", "text": "function exec_veille_tous_dist(){\n\n\t// -- Si pas autorise : message d'erreur\n\tif (!autoriser('voir', 'veille_tous')) {\n\t\tinclude_spip('inc/minipres');\n\t\techo minipres();\n\t\texit;\n\t}\n\n\n\tpipeline('exec_init', array('args'=>array('exec'=>'veille_tous'),'data'=>'')); \t// pipeline d'initialisation\n\t$commencer_page = charger_fonction('commencer_page', 'inc'); \t\t\t// entetes de la page\n\techo $commencer_page(_T('vu:html_title'), \"editer\", \"editer\");\t\t\t\n\t\n\n//\n// Colonne de gauche\n//\n\n\techo debut_gauche('', true);\n\techo pipeline('affiche_gauche', array('args'=>array('exec'=>'veille_tous'),'data'=>''));\n\n\t\t// Affichage du bloc d'information 'Navigation' (fonction definie au-dessus)\n\t\techo cadre_veille_tous_infos();\n\n\t\t// D'abord un 'bloc des raccourcis' pour les boutons de creation de nouveaux objets\n\t\techo bloc_des_raccourcis(icone_horizontale(_T('vu:raccourcis_annonce'), generer_url_ecrire(\"veille_edit\",\"type=annonce&new=oui\"), _DIR_VU_IMG_PACK.\"annonce-24.gif\", \"creer.gif\", false)\n\t\t\t. icone_horizontale(_T('vu:raccourcis_evenement'), generer_url_ecrire(\"veille_edit\",\"type=evenement&new=oui\"), _DIR_VU_IMG_PACK.\"evenement-24.gif\", \"creer.gif\", false)\n\t\t\t. icone_horizontale(_T('vu:raccourcis_publication'), generer_url_ecrire(\"veille_edit\",\"type=publication&new=oui\"), _DIR_VU_IMG_PACK.\"publication-24.gif\", \"creer.gif\", false)\n\t\t);\n\n\t\n//\t\n// Contenu central\n//\n\n\techo debut_droite('', true);\n\techo pipeline('affiche_milieu', array('args'=>array('exec'=>'veille_tous'),'data'=>''));\n\n\t// Liste des annonces\n\techo afficher_objets('annonce',_T('vu:liste_annonces'), array(\"SELECT\" => 'id_annonce, date, titre, statut', \"FROM\" => 'spip_vu_annonces AS annonces', 'WHERE' => \"statut='publie' OR statut='refuse' OR statut='prop'\", 'ORDER BY' => \"date DESC\"),'',true);\n\t// Liste des evenements\n\techo afficher_objets('evenement',_T('vu:liste_evenements'), array(\"SELECT\" => 'id_evenement, date, titre, statut', \"FROM\" => 'spip_vu_evenements AS evenements', 'WHERE' => \"statut='publie' OR statut='refuse' OR statut='prop'\", 'ORDER BY' => \"date DESC\"),'',true);\n\t// Liste des publications\n\techo afficher_objets('publication',_T('vu:liste_publications'),\tarray(\"SELECT\" => 'id_publication, date, titre, statut', \"FROM\" => 'spip_vu_publications AS publications', 'WHERE' => \"statut='publie' OR statut='refuse' OR statut='prop'\", 'ORDER BY' => \"date DESC\"),'',true);\n\n\t\n\n\n\techo fin_gauche(), fin_page();\n}", "title": "" }, { "docid": "d302f4b4c3eac00bee90da88874d966f", "score": "0.53258115", "text": "private function affiche_contenu($donnees) {\r\n\t\t$fichier = $donnees['fichier'];\r\n\t\tinclude $this->pathVue.'header.php';\r\n\t\textract($donnees);\r\n\t\t// Démarrage de la temporisation de sortie\r\n\t\tob_start();\r\n\t\tinclude $this->pathVue.$fichier.\".php\";\r\n\t\tinclude $this->pathVue.'footer.php';\r\n\t\texit;\r\n\t}", "title": "" }, { "docid": "f2d3225272b1832893742f70ea7e48ee", "score": "0.53250843", "text": "function BOUCLE_auteurshtml_d53234b570b47acb36d96e90a29ca353(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {\n\n\tstatic $connect = '';\n\tstatic $table = 'auteurs';\n\tstatic $id = '_auteurs';\n\tstatic $from = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_articles');\n\tstatic $type = array();\n\tstatic $groupby = array();\n\tstatic $select = array(\"auteurs.nom\");\n\tstatic $orderby = array();\n\t$where = \n\t\t\tarray(\n\t\t\tarray('!=', 'auteurs.statut', '\\'5poubelle\\''), \n\t\t\tarray('=', 'L1.id_article', sql_quote($Pile[$SP]['id_article'])));\n\tstatic $join = array('L1' => array('auteurs','id_auteur'));\n\tstatic $limit = '';\n\tstatic $having = \n\t\t\tarray();\n\t// REQUETE\n\t$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect);\n\t$t0 = \"\";\n\t$SP++;\n\n\t// RESULTATS\n\twhile ($Pile[$SP] = @sql_fetch($result, '')) {\n\n\t\t$t0 .= (\n'\n\t\t<auteur>' .\ninterdire_scripts($Pile[$SP]['nom']) .\n'</auteur>\n\t\t');\n\t}\n\n\t@sql_free($result, '');\n\treturn $t0;\n}", "title": "" }, { "docid": "34dbbd3f53bc346d3cb1a78c52f22306", "score": "0.5303691", "text": "public function recogerDatos() {\r\n \r\n }", "title": "" }, { "docid": "f3026999797db5f8a2267186c991caad", "score": "0.5300732", "text": "public function getDocument(){ \n $this->endElement(); \n $this->endDocument(); \n return $this->outputMemory(); \n }", "title": "" }, { "docid": "97828fe8f281bd9078736efd90c8ec0e", "score": "0.5298667", "text": "public function seDivertir()\n {\n echo 'Shopping entre filles<br>';\n }", "title": "" }, { "docid": "60a327e50a6be05314a6132eeef20d1e", "score": "0.52955604", "text": "function emitir_pagos_orden($pdf, $id_emision_pago){\n\t//\t--------------------\n\t$sql=\"SELECT \n\t\t\t\tpagos_financieros.idorden_pago, \n\t\t\t\tpagos_financieros.beneficiario, \n\t\t\t\tpagos_financieros.monto_cheque, \n\t\t\t\tpagos_financieros.numero_cheque, \n\t\t\t\tbeneficiarios.nombre,\n\t\t\t\tpagos_financieros.beneficiario as nombre_beneficiario, \n\t\t\t\tcuentas_bancarias.numero_cuenta, \n\t\t\t\tbanco.denominacion, \n\t\t\t\tpagos_financieros.fecha_cheque \n\t\t\tFROM \n\t\t\t\tpagos_financieros, \t\t\t\t\n\t\t\t\tcuentas_bancarias, \n\t\t\t\tbanco,\n\t\t\t\tbeneficiarios,\n\t\t\t\torden_pago \n\t\t\tWHERE \n\t\t\t\tpagos_financieros.idpagos_financieros = '\".$id_emision_pago.\"'\n\t\t\t\tAND pagos_financieros.estado != 'anulado'\n\t\t\t\tAND pagos_financieros.idcuenta_bancaria = cuentas_bancarias.idcuentas_bancarias \n\t\t\t\tAND cuentas_bancarias.idbanco = banco.idbanco\n\t\t\t\tand orden_pago.idorden_pago = pagos_financieros.idorden_pago\n\t\t\t\tand beneficiarios.idbeneficiarios = orden_pago.idbeneficiarios\";\n\t$query=mysql_query($sql) or die ($sql.mysql_error());\n\t$rows=mysql_num_rows($query);\n\tif ($rows!=0) $field=mysql_fetch_array($query);\n\t//\t--------------------\n\t$monto_letras=$pdf->ValorEnLetras($field[\"monto_cheque\"], \"\");\n\t$monto=\"Bs. \".number_format($field['monto_cheque'], 2, ',', '.');\n\tlist($a, $m, $d)=SPLIT( '[/.-]', $field['fecha_cheque']); $fecha=$d.\"/\".$m.\"/\".$a;\n\tif($m == 1){$m = \"Enero\";}\n\tif($m == 2){$m = \"Febrero\";}\n\tif($m == 3){$m = \"Marzo\";}\n\tif($m == 4){$m = \"Abril\";}\n\tif($m == 5){$m = \"Mayo\";}\n\tif($m == 6){$m = \"Junio\";}\n\tif($m == 7){$m = \"Julio\";}\n\tif($m == 8){$m = \"Agosto\";}\n\tif($m == 9){$m = \"Septiembre\";}\n\tif($m == 10){$m = \"Octubre\";}\n\tif($m == 11){$m = \"Noviembre\";}\n\tif($m == 12){$m = \"Diciembre\";}\n\t$pdf->SetFont('Arial', 'B', 10);\n\t$pdf->SetXY(128, 23.4); $pdf->Cell(20, 10); $pdf->Cell(20, 10, $monto);\n\t$pdf->SetXY(25, 38); $pdf->Cell(20, 10); $pdf->Cell(150, 10, utf8_decode($field['nombre_beneficiario']));\n\t$pdf->SetXY(2, 46); $pdf->Cell(20, 10); $pdf->MultiCell(150, 6, ' '.$monto_letras);\n\t$sql_consulta = mysql_query(\"select * from configuracion\");\n\t$bus_consulta = mysql_fetch_array($sql_consulta);\n\t$pdf->SetXY(5, 59); $pdf->Cell(20, 10); $pdf->Cell(130, 5, $bus_consulta[\"ciudad\"].' '.$d.' de '.$m);\n\t$pdf->SetXY(73, 59); $pdf->Cell(20, 10); $pdf->Cell(130, 5, $a);\n\t\n\t$pdf->SetFont('Arial', 'B', 12);\n\t$pdf->SetXY(120, 246); $pdf->Cell(25, 9); $pdf->Cell(130, 5, utf8_decode($field['denominacion']));\n\t$pdf->SetXY(120, 255); $pdf->Cell(25, 9); $pdf->Cell(130, 5, $field['numero_cuenta']);\n\t$pdf->SetXY(120, 264); $pdf->Cell(25, 9); $pdf->Cell(130, 5, $field['numero_cheque']);\n\t\n\t$pdf->SetFont('Arial', '', 6);\n\t$pdf->SetXY(145, 249); $pdf->Cell(50, 9, 'Banco');\n\t$pdf->SetXY(145, 258); $pdf->Cell(50, 9, 'Numero de Cuenta');\n\t$pdf->SetXY(145, 267); $pdf->Cell(50, 9, 'Numero de Cheque');\n\t\n\t$pdf->Rect(145, 251, 60, 0.1);\n\t$pdf->Rect(145, 260, 60, 0.1);\n\t$pdf->Rect(145, 269, 60, 0.1);\n}", "title": "" }, { "docid": "7f843314cb9192c3284abc076c323a02", "score": "0.52771664", "text": "function printContent()\t{\r\n\r\n\t\t$this->content.=$this->doc->endPage();\r\n\t\treturn $this->content;\r\n\t}", "title": "" }, { "docid": "6bfe9533b954f4524b8b1d83299e116c", "score": "0.52667594", "text": "function mostraPagina()\n\t\t{\n\t\t// prepara la pagina, ossia il contenitore della tabella\n\t\t$this->aggiungiElemento($this->dammiMenu());\n\t\t$this->aggiungiElemento(\"Controlli\", \"titolo\");\n\t\t$this->aggiungiElemento($this->Tabella());\n\t\t\n\t\t// manda in output l'intera pagina\n\t\t$this->mostra();\n\t\t}", "title": "" }, { "docid": "ba263f7d8029e0dea2b4d93030b4738c", "score": "0.526013", "text": "public function arborescenceBornes() {\n // Insertion de chaque Fils de chaque niveau\n $monTableauDeDomaine = array();\n\n //recherche des elements classe par parents, libelles\n $elements = $this->arborescence();\n\n // Initialisation\n $codeParentPrecedent = \"root\";\n $niveau = 1;\n $borne_inf = 1;\n $borne_sup = 0;\n $departBorneInfSuivant = array();\n\n // Pour chaque element du niveau courant\n foreach ($elements as $elementTableau) {\n $codeParent = ( $elementTableau['PARENT'] == 0 ) ? \"root\" : mb_substr($elementTableau['CODE'], 0, -mb_strlen(strrchr($elementTableau['CODE'], '.')));\n $niveauCourant = mb_substr_count($elementTableau['CODE'], \".\") + 1;\n if ($codeParent != $codeParentPrecedent) {\n if (array_key_exists($elementTableau['PARENT'], $monTableauDeDomaine)) {\n // je descends d'un niveau\n $borne_inf ++;\n } else {\n $borne_inf = ($niveauCourant > $niveau) ? $borne_sup + 1 : $departBorneInfSuivant[$niveauCourant];\n }\n $codeParentPrecedent = $codeParent;\n $departBorneInfSuivant[$niveau] = $borne_sup + 1;\n } else {\n // Je suis toujours sur le même niveau on prévoit le tri sur les libelles\n $borne_inf = ($borne_sup == 0 ) ? 2 : $borne_sup + 1;\n }\n $borne_sup = $borne_inf + $this->nbFils($elementTableau['CODE']) * 2 + 1;\n $niveau = $niveauCourant;\n $enreg = array(\n 'ID' => $elementTableau['ID'],\n 'CODE' => $elementTableau['CODE'],\n 'CODE_PARENT' => $elementTableau['PARENT'],\n 'LIBELLE' => Zend_Registry::get(\"Zend_Translate\")->translate(\"domain_\" . $elementTableau['CODE'], $this->locale),\n 'NIVEAU' => mb_substr_count($elementTableau['CODE'], \".\") + 1,\n 'BORNE_INF' => $borne_inf,\n 'BORNE_SUP' => $borne_sup\n );\n $monTableauDeDomaine[$elementTableau['ID']] = $enreg;\n }\n return $monTableauDeDomaine;\n }", "title": "" }, { "docid": "dc58ad2fe91d4c485f9dd2ce37f2e8de", "score": "0.52579904", "text": "function printContent()\t{\n\t\t$this->content.= $this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "46675c8598f4165be69b59e20fe309b5", "score": "0.52573425", "text": "function cms_content_update_contenu() {\n\n\tglobal $db;\n\n\tif(! (($this->id_content !=null) && ($this->id_content>0)) )\n\t\treturn false;\n\t\t\n\t$sql = \" UPDATE cms_content\";\n\t$sql.= \" SET name_content = \".$db->qstr($this->name_content).\", \";\n\t$sql.= \" width_content = \".$this->width_content.\", \";\n\t$sql.= \" height_content = \".$this->height_content.\", \";\n\t$sql.= \" dateupd_content = \".$this->dateupd_content;\n\t$sql.= \" WHERE id_content = \".$this->id_content;\n\n\t$rs = $db->Execute($sql);\n\t\t\n\tif($rs) {\n\n\t\tif(DEF_MODE_DEBUG==true) error_log(\"TRACE :: \".$sql);\n\n\t\t$result = $this->id_content;\n\t} else {\n\t\techo \"<br />Erreur de fonctionnement interne\";\n\t\tif(DEF_MODE_DEBUG==true) {\n\t\t\techo \"cms_content.class.php > cms_content_update_contenu\";\n\t\t\techo \"<br /><strong>$sql</strong>\";\n\t\t}\n\t\terror_log(\"Erreur dans \".__FILE__.\" Ligne \".__LINE__.\" Fonction \".__FUNCTION__);\n\t\terror_log('erreur lors de l\\'execution de la requete');\n\t\terror_log($sql);\n\t\terror_log($db->ErrorMsg());\n\n\t\t$result = false;\n\t}\n\n\tif (DEF_BDD != \"ORACLE\") {\n\t\t$sql = \"UPDATE cms_content SET html_content=\".$db->qstr($this->html_content).\" WHERE id_content=\".$this->id_content;\n\t\t$rs = $db->Execute($sql);\n\t}\n\telse {\n\t\tif(DEF_MODE_DEBUG==true) error_log(\"TRACE :: UPDATE GROS_CHAMP_CLOB\");\n\t\t// spécifique ORACLE\n\t\t// le champ CLOB est envoyé après\n\t\t// car s'il est trop gros > 4000, la requete plante en ORA-01704\n\t\t// a_voir sponthus : ajouter un test sur la longueur de la chaine, sinon passer en INSERT\n\t\t$sql = \"UPDATE cms_content SET html_content=:gros_champ_clob WHERE id_content=\".$this->id_content;\n\t\t$stmt = OCIParse($db->_connectionID, $sql);\n\t\t//if(DEF_MODE_DEBUG==true) error_log(\"TRACE :: \".$sql);\n\t\tOCIBindByName($stmt, \":gros_champ_clob\", $this->html_content, -1);\n\t\tOCIExecute($stmt); \n\t}\n\t$rs->Close();\n\treturn $result;\n}", "title": "" }, { "docid": "a47059ef46e749030e2f991535310c7c", "score": "0.52429926", "text": "function bdd_arborescence($TitreDeLaRacine,$tableparam,$branchepardefaut) {\r\n\t# array( id=>\"nom du champ\",\r\n\t# libelle=>\"nom du champ libelle qui apparait\",\r\n\t# idpere=>\"nom du champ pointeur vers pere\",\r\n\t# url=>\"url de branchement.php?nom_du_parametre=\" )\r\n\r\n print \"\\n<!---- Le code genere par la fonction bdd_arborescence() commence ici. ----->\\n\";\r\n\t\tprint '<link rel=\"StyleSheet\" href=\"/menu/tree/dtree.css\" type=\"text/css\" />' . \"\\n\";\r\n\t print '<script type=\"text/javascript\" src=\"/menu/tree/dtree.js\"></script>' . \"\\n\";\r\n\t\tprint '';\r\n\t\t\r\n\t print '<p><a href=\"javascript: d.openAll();\"><img src=\"/menu/tree/img/expand_all.gif\" width=\"18\" height=\"18\" border=\"0\" alt=\"Tout dérouler\"/></a>' . \"\\n\";\r\n\t\tprint '| <a href=\"javascript: d.closeAll();\"><img src=\"/menu/tree/img/collapse_all.gif\" border=\"0\" alt=\"Tout replier\"/></a></p>' . \"\\n\";\r\n\r\n\t\tprint \"\\n\" . '<script type=\"text/javascript\"><!---- ' . \"\\n\";\r\n\t\tprint \"\\n d = new dTree('d',1);\";\r\n\t\tprint \"\\n d.config.useCookies = false;\";\t\r\n\t\tprint \"\\n d.add(0,-1,'\" . $TitreDeLaRacine .\"'); \";\r\n\t\tif (!isset($branchepardefaut)) { \r\n\t\t $branchepardefaut = -1; \r\n\t\t}\r\n\t $table = $this->bdd_tableversarray();\r\n\t\t\r\n\t\t# CREATION D'UNE TABLE D'INDEXE INVERSEE\r\n\t\t$tableindexe = array();\r\n\t\t$tableindexe[0] = 0;\t\r\n\t\tfor ($i=0;$i<count($table);$i++) {\r\n\t\t $j=$i+1;\r\n\t\t\t $tableindexe[ $table[\"$i\"][$tableparam[\"id\"]] ] = $j;\r\n\t }\r\n\t\tfor ($i=0;$i<count($table);$i++) {\r\n\t\t $j=$i+1;\r\n\t\t\t$k = $table[\"$i\"][$tableparam[\"idpere\"]];\r\n\t print \"\\n d.add(\" . $j . \",\" . $tableindexe[$k] . \",'\" . addslashes($table[\"$i\"][$tableparam[\"libelle\"]]) . \"','\" . $tableparam[\"url\"] . $table[\"$i\"][ $tableparam[\"id\"] ] . \"'); \";\r\n\t\t}\r\n\t\tprint \"\\n document.write(d); \";\r\n\t\t# SI LE NOEUD A OUVRIR A ETE PASSE EN PARAMETRE IL EST OUVERT\r\n\t\tif ($branchepardefaut > 0) {\r\n\t\t print \"\\n d.openTo(\" . $tableindexe[$branchepardefaut] . \",true);\";\r\n\t\t}\r\n\t\tprint \"\\n\\n//--></script>\";\r\n\r\n\t\t# COMMENTAIRE DE DEBUGGAGE\r\n\t\t# print \"\\n<!---- \\n\";\t\t\r\n\t # for ($i=0;$i<count($table);$i++) {\r\n\t # $j=$i+1;\r\n\t # print \"\\n$j \\t \" . $table[\"$i\"][$tableparam[\"id\"]] . \" \\tpere= \" . $table[\"$i\"][$tableparam[\"idpere\"]] . \" \\t tableindexe[\".$i.\"]= \" . $tableindexe[\"$i\"] . \"\\t\" . $table[\"$i\"][$tableparam[\"idpere\"]];\r\n #}\r\n\t # print \"\\n--->\\n\";\r\n\r\n print \"\\n<!---- Le code genere par la fonction bdd_arborescence() se termine ici. ----->\\n\";\r\n\r\n\t}", "title": "" }, { "docid": "7060ae55c4f7bec21c387c235e189b59", "score": "0.5226068", "text": "function ExibeDocs() {\r\n extract($GLOBALS);\r\n // Inclusão do arquivo da classe\r\n include_once(\"classes/menu/xPandMenu.php\");\r\n\r\n // Instanciando a classe menu\r\n $root = new XMenu();\r\n $i = 1;\r\n $j = 1;\r\n $k = 1;\r\n $l = 1;\r\n if ($SG=='' || ($SG > '' && ($O=='L'||$O=='P'))) {\r\n\r\n $sql = new db_getLinkDataUser; $RS = $sql->getInstanceOf($dbms, $p_cliente, $sq_pessoa, 'IS NULL');\r\n foreach ($RS as $row) {\r\n \r\n $w_titulo = f($row,'nome');\r\n\r\n if (f($row,'filho') > 0) {\r\n\r\n eval('$node'.i.' = &$root->addItem(new XNode(f($row,\\'nome\\'),false));');\r\n\r\n $sql = new db_getLinkDataUser; $RS1 = $sql->getInstanceOf($dbms, $p_cliente, $sq_pessoa, f($row,'sq_menu'));\r\n foreach ($RS1 as $row1) {\r\n $w_titulo .= ' - '.f($row1,'NOME');\r\n if (f($row1,'Filho') >0) {\r\n\r\n eval('$node'.i.'_'.j.' = &$node'.i.'->addItem(new XNode(f($row1,\\'nome\\'),false));');\r\n\r\n $sql = new db_getLinkDataUser; $RS2 = $sql->getInstanceOf($dbms, $p_cliente, $sq_pessoa, f($row1,'sq_menu'));\r\n foreach ($RS2 as $row2) {\r\n\r\n $w_titulo .= ' - '.f($row2,'NOME');\r\n if (f($row2,'Filho') > 0) {\r\n\r\n eval('$node'.i.'_'.j.'_'.k.' = &$node'.i.'_'.j.'->addItem(new XNode(f($row2,\\'nome\\'),false));');\r\n\r\n $sql = new db_getLinkDataUser; $RS3 = $sql->getInstanceOf($dbms, $p_cliente, $sq_pessoa, f($row2,'sq_menu'));\r\n foreach ($RS3 as $row3) {\r\n\r\n $w_titulo .= ' - '.f($row3,'NOME');\r\n if (f($row3,'IMAGEM') > '') $w_Imagem=f($row3,'IMAGEM'); else $w_Imagem=$w_ImagemPadrao;\r\n if (f($row3,'link')>'') {\r\n if (f($row3,'externo')=='S') {\r\n if (!(strpos(f($row3,'link'),'@file')===false)) {\r\n eval('$node'.i.'_'.j.'_'.k.'_'.l.' = &$node'.i.'_'.j.'_'.k.'->addItem(new XNode(null,LinkArquivo(\\'hl\\',$p_cliente,str_replace(\\'@files/\\',\\'\\',f($row3,\\'LINK\\')),f($row3,\\'target\\'),null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row3,\\'nome\\'),null),null,null,null));');\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.'_'.l.' = &$node'.i.'_'.j.'_'.k.'->addItem(new XNode(f($row3,\\'nome\\'),f($row3,\\'LINK\\'),$w_Imagem,$w_Imagem,f($row3,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.'_'.l.' = &$node'.i.'_'.j.'_'.k.'->addItem(new XNode(f($row3,\\'nome\\'),f($row3,\\'LINK\\').\\'&P1=\\'.f($row3,\\'P1\\').\\'&P2=\\'.f($row3,\\'P2\\').\\'&P3=\\'.f($row3,\\'P3\\').\\'&P4=\\'.f($row3,\\'P4\\').\\'&TP=<img src=\\'.$w_Imagem.\\' BORDER=0>\\'.$w_titulo.\\'&SG=\\'.f($row3,\\'SIGLA\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row3,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.'_'.l.' = &$node'.i.'_'.j.'_'.k.'->addItem(new XNode(null,null,null,null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row3,\\'nome\\'),null,null,null,null));');\r\n }\r\n $w_titulo=str_replace(' - '.f($row3,'NOME'),'',$w_titulo);\r\n $l += 1;\r\n }\r\n } else {\r\n if (f($row2,'IMAGEM')>'') $w_Imagem=f($row2,'IMAGEM'); else $w_Imagem=$w_ImagemPadrao;\r\n if (f($row2,'link')>'') {\r\n if (f($row2,'externo')=='S') {\r\n if (!(strpos(f($row2,'link'),'@file')===false)) {\r\n eval('$node'.i.'_'.j.'_'.k.' = &$node'.i.'_'.j.'->addItem(new XNode(null,LinkArquivo(\\'hl\\',$p_cliente,str_replace(\\'@files/\\',\\'\\',f($row2,\\'LINK\\')),f($row2,\\'target\\'),null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row2,\\'nome\\'),null),null,null,null));');\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.' = &$node'.i.'_'.j.'->addItem(new XNode(f($row2,\\'nome\\'),f($row2,\\'LINK\\'),$w_Imagem,$w_Imagem,f($row2,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.' = &$node'.i.'_'.j.'->addItem(new XNode(f($row2,\\'nome\\'),f($row2,\\'LINK\\').\\'&P1=\\'.f($row2,\\'P1\\').\\'&P2=\\'.f($row2,\\'P2\\').\\'&P3=\\'.f($row2,\\'P3\\').\\'&P4=\\'.f($row2,\\'P4\\').\\'&TP=<img src=\\'.$w_Imagem.\\' BORDER=0>\\'.$w_titulo.\\'&SG=\\'.f($row2,\\'SIGLA\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row2,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.'_'.k.' = &$node'.i.'_'.j.'->addItem(new XNode(null,null,null,null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row2,\\'nome\\'),null,null,null,null));');\r\n }\r\n }\r\n $w_titulo=str_replace(' - '.f($row2,'NOME'),'',$w_titulo);\r\n $k += 1;\r\n }\r\n } else {\r\n if (f($row1,'IMAGEM')>'') $w_Imagem=f($row1,'IMAGEM'); else $w_Imagem=$w_ImagemPadrao;\r\n if (f($row1,'link')>'') {\r\n if (f($row1,'externo')=='S') {\r\n if (!(strpos(f($row1,'link'),'@file')===false)) {\r\n eval('$node'.i.'_'.j.' = &$node'.i.'->addItem(new XNode(null,LinkArquivo(\\'hl\\',$p_cliente,str_replace(\\'@files/\\',\\'\\',f($row1,\\'LINK\\')),f($row1,\\'target\\'),null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row1,\\'nome\\'),null),null,null,null));');\r\n } else {\r\n eval('$node'.i.'_'.j.' = &$node'.i.'->addItem(new XNode(f($row1,\\'nome\\'),f($row1,\\'LINK\\'),$w_Imagem,$w_Imagem,f($row1,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.' = &$node'.i.'->addItem(new XNode(f($row1,\\'nome\\'),f($row1,\\'LINK\\').\\'&P1=\\'.f($row1,\\'P1\\').\\'&P2=\\'.f($row1,\\'P2\\').\\'&P3=\\'.f($row1,\\'P3\\').\\'&P4=\\'.f($row1,\\'P4\\').\\'&TP=<img src=\\'.$w_Imagem.\\' BORDER=0>\\'.$w_titulo.\\'&SG=\\'.f($row1,\\'SIGLA\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row1,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.'_'.j.' = &$node'.i.'->addItem(new XNode(null,null,null,null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row1,\\'nome\\'),null,null,null,null));');\r\n }\r\n }\r\n $w_titulo=str_replace(' - '.f($row1,'NOME'),'',$w_titulo);\r\n $j += 1;\r\n }\r\n } else {\r\n if (f($row,'IMAGEM')>'') $w_Imagem=f($row,'IMAGEM'); else $w_Imagem=$w_ImagemPadrao;\r\n\r\n if (f($row,'link')>'') {\r\n if (f($row,'externo')=='S') {\r\n if (!(strpos(f($row,'link'),'@file')===false)) {\r\n eval('$node'.i.' = &$root->addItem(new XNode(null,LinkArquivo(\\'hl\\',$p_cliente,str_replace(\\'@files/\\',\\'\\',f($row,\\'LINK\\')),f($row,\\'target\\'),null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row,\\'nome\\'),null),null,null,null));');\r\n } else {\r\n eval('$node'.i.' = &$root->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.' = &$root->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=<img src=\\'.$w_Imagem.\\' BORDER=0>\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n }\r\n } else {\r\n eval('$node'.i.' = &$root->addItem(new XNode(null,null,null,null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row,\\'nome\\'),null,null,null,null));');\r\n }\r\n }\r\n $i += 1;\r\n }\r\n } else {\r\n // Se for montagem de sub-menu para uma opção do menu principal\r\n // Se for passado o número do documento, ele é apresentado na tela, ao invés da descrição\r\n if ($_REQUEST['w_documento']>'') \r\n $w_descricao=$_REQUEST['w_documento'];\r\n else {\r\n $sql = new db_getLinkData; $RS = $sql->getInstanceOf($dbms, $p_cliente, $SG);\r\n $w_descricao=f($RS,'NOME');\r\n }\r\n \r\n $node1 = &$root->addItem(new XNode($w_descricao,false,null,null,null,null,true));\r\n\r\n $sql = new db_getLinkSubMenu; $RS = $sql->getInstanceOf($dbms, $p_cliente, $SG);\r\n \r\n foreach ($RS as $row) { \r\n $w_titulo = $TP.' - '.f($row,'nome');\r\n if (f($row,'imagem') > '') $w_Imagem=f($row,'imagem'); else $w_Imagem=$w_ImagemPadrao; \r\n if (f($row,'externo')=='S')\r\n eval('$node1_'.i.' = &$node1->addItem(new XNode(null,LinkArquivo(\\'hl\\',$p_cliente,str_replace(\\'@files/\\',\\'\\',f($row,\\'LINK\\')),f($row,\\'target\\'),null,\\'<img src=\"\\'.$w_Imagem.\\'\" border=0>\\'.f($row,\\'nome\\'),null),null,null,null));');\r\n else {\r\n if ($_REQUEST['w_cgccpf']>'')\r\n eval('$node'.i.' = &$node1->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').\\'&O=L&w_cgccpf=\\'.$_REQUEST[\\'w_cgccpf\\'].MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n elseif ($_REQUEST['w_usuario']>'')\r\n eval('$node'.i.' = &$node1->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').\\'&O=L&w_usuario=\\'.$_REQUEST[\\'w_usuario\\'].\\'&w_menu=\\'.f($row,\\'menu_pai\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n elseif ($_REQUEST['w_sq_acordo']>'')\r\n eval('$node'.i.' = &$node1->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').\\'&O=L&w_sq_acordo=\\'.$_REQUEST[\\'w_sq_acordo\\'].\\'&w_menu=\\'.f($row,\\'menu_pai\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n elseif ($_REQUEST['w_sq_pessoa']>'') {\r\n eval('$node'.i.' = &$node1->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').\\'&O=L&w_sq_pessoa=\\'.$_REQUEST[\\'w_sq_pessoa\\'].\\'&w_menu=\\'.f($row,\\'menu_pai\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n } else\r\n eval('$node'.i.' = &$node1->addItem(new XNode(f($row,\\'nome\\'),f($row,\\'LINK\\').\\'&P1=\\'.f($row,\\'P1\\').\\'&P2=\\'.f($row,\\'P2\\').\\'&P3=\\'.f($row,\\'P3\\').\\'&P4=\\'.f($row,\\'P4\\').\\'&TP=\\'.$w_titulo.\\'&SG=\\'.f($row,\\'SIGLA\\').\\'&O=\\'.$O.\\'&w_chave=\\'.$_REQUEST[\\'w_chave\\'].\\'&w_menu=\\'.f($row,\\'menu_pai\\').MontaFiltro(\\'GET\\'),$w_Imagem,$w_Imagem,f($row,\\'target\\')));');\r\n }\r\n\r\n if ($_REQUEST['O']=='I') break;\r\n\r\n $i = $i +1;\r\n }\r\n $sql = new db_getLinkData; $RS = $sql->getInstanceOf($dbms, $p_cliente, $SG);\r\n $node2 = &$root->addItem(new XNode('Nova consulta',$w_pagina.$par.'&O=L&R='.$R.'&SG='.f($RS,'sigla').'&TP='.RemoveTP($TP).'&P1='.f($RS,'P1').'&P2='.f($RS,'P2').'&P3='.f($RS,'P3').'&P4='.f($RS,'P4').MontaFiltro('GET'),$w_Imagem,$w_Imagem));\r\n $node3 = &$root->addItem(new XNode('Menu','menu.php?par=ExibeDocs',$w_Imagem,$w_Imagem));\r\n $i = 4;\r\n }\r\n\r\n eval('$node'.i.' = &$root->addItem(new XNode(\\'Sair do sistema\\',\\'menu.php?par=Sair\\',$w_Imagem,$w_Imagem,\\'_top\\', \\'onClick=\"return(confirm(\\\\\\'Confirma saída do sistema?\\\\\\'));\"\\' ));');\r\n\r\n // Quando for concluída a montagem dos nós, chame a função generateTree(), usando o objeto raiz, para gerar o código HTML.\r\n // Essa função não possui argumentos.\r\n // No código da função pode ser verificado que há um parâmetro opcional, usado internamente para chamadas recursivas, necessárias à montagem de toda a árvore.\r\n $menu_html_code = $root->generateTree();\r\n\r\n // A função retornou o código HTML para exibir o menu\r\n\r\n\r\n // Montando a página:\r\n // 3 pontos:\r\n // - Referencie o arquivo Javascript\r\n // - Referencie o arquivo CSS\r\n // - Exiba o código HTML gerado anteriormente\r\n ShowHTML('<html>');\r\n head();\r\n ShowHTML(' <!-- CSS FILE for my tree-view menu -->');\r\n ShowHTML(' <link rel=\"stylesheet\" type=\"text/css\" href=\"classes/menu/xPandMenu.css\">');\r\n ShowHTML(' <!-- JS FILE for my tree-view menu -->');\r\n ShowHTML(' <script src=\"classes/menu/xPandMenu.js\"></script>');\r\n ShowHTML('</head>');\r\n ShowHTML('<BASEFONT FACE=\"Verdana, Helvetica, Sans-Serif\" SIZE=\"2\">');\r\n // Decide se montará o body do menu principal ou o body do sub-menu de uma opção a partir do valor de w_sq_pagina\r\n\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms, $p_cliente);\r\n print '<BODY topmargin=0 bgcolor=\"#FFFFFF\" BACKGROUND=\"'.LinkArquivo(null,$p_cliente,'img/'.f($RS,'fundo'),null,null,null,'EMBED').'\" BGPROPERTIES=\"FIXED\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\" alink=\"#FF0000\" ';\r\n if ($SG=='' && nvl($_REQUEST['content'],'')=='') {\r\n $sql = new db_getLinkData; $RS = $sql->getInstanceOf($dbms, $p_cliente, 'MESA');\r\n if (count($RS)>0) {\r\n if (f($RS,'IMAGEM')>'') {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($RS,'LINK').'&P1='.f($RS,'P1').'&P2='.f($RS,'P2').'&P3='.f($RS,'P3').'&P4='.f($RS,'P4').'&TP=<img src='.f($RS,'IMAGEM').' BORDER=0>'.f($RS,'nome').'&SG='.f($RS,'SIGLA').'\"\\'> ');\r\n } else {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($RS,'LINK').'&P1='.f($RS,'P1').'&P2='.f($RS,'P2').'&P3='.f($RS,'P3').'&P4='.f($RS,'P4').'&TP=<img src='.$w_ImagemPadrao.' BORDER=0>'.f($RS,'nome').'&SG='.f($RS,'SIGLA').'\"\\'> ');\r\n }\r\n } else {\r\n ShowHTML('>');\r\n }\r\n } else {\r\n if ($O=='L'||$O=='P') {\r\n $sql = new db_getLinkData; $RS = $sql->getInstanceOf($dbms, $p_cliente, $SG);\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($RS,'LINK').'&R='.$_REQUEST['R'].'&P1='.f($RS,'P1').'&P2='.f($RS,'P2').'&P3='.f($RS,'P3').'&P4='.f($RS,'P4').'&TP='.$_REQUEST['TP'].' - '.f($RS,'nome').'&SG='.f($RS,'SIGLA').'&O='.$_REQUEST['O'].MontaFiltro('GET').'\";\\'>');\r\n } else {\r\n $sql = new db_getLinkDataParent; $RS = $sql->getInstanceOf($dbms, $p_cliente, $SG);\r\n $RS = SortArray($RS,'ordem','asc','nome','asc');\r\n\r\n foreach($RS as $row) {\r\n if ($_REQUEST['w_cgccpf']>'') {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($row,'LINK').'&R='.$_REQUEST['R'].'&P1='.f($row,'P1').'&P2='.f($row,'P2').'&P3='.f($row,'P3').'&P4='.f($row,'P4').'&TP='.$_REQUEST['TP'].' - '.f($row,'nome').'&SG='.f($row,'SIGLA').'&O='.$_REQUEST['O'].'&w_cgccpf='.$_REQUEST['w_cgccpf'].MontaFiltro('GET').'\";\\'>');\r\n } elseif ($_REQUEST['w_usuario']>'') {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($row,'LINK').'&R='.$_REQUEST['R'].'&P1='.f($row,'P1').'&P2='.f($row,'P2').'&P3='.f($row,'P3').'&P4='.f($row,'P4').'&TP='.$_REQUEST['TP'].' - '.f($row,'nome').'&SG='.f($row,'SIGLA').'&O=L&w_usuario='.$_REQUEST['w_usuario'].MontaFiltro('GET').'\";\\'>');\r\n } elseif ($_REQUEST['w_sq_pessoa']>'') {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($row,'LINK').'&R='.$_REQUEST['R'].'&P1='.f($row,'P1').'&P2='.f($row,'P2').'&P3='.f($row,'P3').'&P4='.f($row,'P4').'&TP='.$_REQUEST['TP'].' - '.f($row,'nome').'&SG='.f($row,'SIGLA').'&O='.$_REQUEST['O'].'&w_sq_pessoa='.$_REQUEST['w_sq_pessoa'].'&w_menu='.f($row,'menu_pai').MontaFiltro('GET').'\";\\'>');\r\n } else {\r\n ShowHTML('onLoad=\\'javascript:top.content.location=\"'.f($row,'LINK').'&R='.$_REQUEST['R'].'&P1='.f($row,'P1').'&P2='.f($row,'P2').'&P3='.f($row,'P3').'&P4='.f($row,'P4').'&TP='.$_REQUEST['TP'].' - '.f($row,'nome').'&SG='.f($row,'SIGLA').'&O='.$_REQUEST['O'].'&w_chave='.$_REQUEST['w_chave'].'&w_menu='.f($row,'menu_pai').MontaFiltro('GET').'\";\\'>');\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n\r\n ShowHTML(' <CENTER><table border=0 cellpadding=0 height=\"80\" width=\"100%\">');\r\n ShowHTML(' <tr><td width=\"100%\" valign=\"center\" align=\"center\">');\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms, $p_cliente);\r\n ShowHTML(' <img src=\"'.LinkArquivo(null,$p_cliente,'img/'.f($RS,'logo1'),null,null,null,'EMBED').'\" vspace=\"0\" hspace=\"0\" '.(($p_cliente!=17305) ? 'border=\"1\"' : '').'></td></tr>');\r\n ShowHTML(' <tr><td height=1><tr><td height=1 bgcolor=\"#000000\">');\r\n ShowHTML(' <tr><td colspan=2 width=\"100%\"><table border=0 width=\"100%\" cellpadding=0 cellspacing=0><tr valign=\"top\">');\r\n ShowHTML(' <td>'.$_SESSION['USUARIO'].': <b>'.$_SESSION['NOME_RESUMIDO'].'</b>');\r\n $sql = new db_getSiwCliModLis; $RS = $sql->getInstanceOf($dbms,$w_cliente,null,'IS');\r\n if (count($RS)>0) ShowHTML(' <br>Exercício:<b>'.$_SESSION['ANO'].'</b></TD>');\r\n if($w_cliente!=\"14014\" && $w_cliente!=\"11134\") ShowHTML(' <td align=\"right\"><a class=\"hl\" href=\"help.php?par=Menu&TP=<img src=images/Folder/hlp.gif border=0> SIW - Visão Geral&SG=MESA&O=L\" target=\"content\" title=\"Exibe informações sobre os módulos do sistema.\"><img src=\"images/Folder/hlp.gif\" border=0></a></TD>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' <tr><td height=1><tr><td height=2 bgcolor=\"#000000\">');\r\n ShowHTML(' </table></CENTER>');\r\n ShowHTML(' <table border=0 cellpadding=0 height=\"80\" width=\"100%\"><tr><td nowrap><b>');\r\n ShowHTML(' <div id=\"container\">');\r\n echo $menu_html_code;\r\n ShowHTML(' </div>');\r\n ShowHTML(' </table>');\r\n ShowHTML('</body>');\r\n ShowHTML('</html>');\r\n}", "title": "" }, { "docid": "5c111b7f8c02564a1c540fc5a7a310a4", "score": "0.51998025", "text": "function propre_bloog($texte) {\n\n $texte = ereg_replace(\"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r)?</p>\",'',$texte);\n $texte = eregi_replace(\"\\n{3}\", \"\\n\", $texte);\n \n \n // div imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<div([^>]*)>\" , \"<div\\\\2>\" , $texte);\n $texte = eregi_replace( \"<\\/div>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</div>\" , $texte);\n \n // style imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<style([^>]*)>\" , \"<style>\" , $texte);\n $texte = eregi_replace( \"<\\/style>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</style>\" , $texte);\n \n \n // h3 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h3 class=\\\"spip\\\">\" , \"<h3>\" , $texte);\n $texte = eregi_replace( \"<\\/h3>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h3>\" , $texte);\n\n\t// h2 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h2>\" , \"<h2>\" , $texte);\n $texte = eregi_replace( \"<\\/h2>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h2>\" , $texte);\n \n // h1 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h1>\" , \"<h1>\" , $texte);\n $texte = eregi_replace( \"<\\/h1>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h1>\" , $texte);\n \n\n\t// tableaux imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(table|TABLE)\" , \"<table\" , $texte);\n $texte = eregi_replace( \"<\\/(table|TABLE)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</table>\" , $texte);\n\n\t// TD imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(\\/td|\\/TD)\" , \"</td\" , $texte);\n //$texte = eregi_replace( \"<\\/(td|TD)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</td>\" , $texte);\n\n\t// p imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(p|P)\" , \"<p\" , $texte);\n //$texte = eregi_replace( \"<\\/(td|TD)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</td>\" , $texte);\n\n // DIV imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(div|DIV)\" , \"<div\" , $texte);\n $texte = eregi_replace( \"<\\/(DIV|div)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</div>\" , $texte);\n\n //$texte = PtoBR($texte);\n $texte = ereg_replace (\"\\.php3&nbsp;\\?\",\".php3?\", $texte);\n $texte = ereg_replace (\"\\.php&nbsp;\\?\",\".php?\", $texte);\n\n return $texte;\n}", "title": "" }, { "docid": "5c111b7f8c02564a1c540fc5a7a310a4", "score": "0.51998025", "text": "function propre_bloog($texte) {\n\n $texte = ereg_replace(\"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r)?</p>\",'',$texte);\n $texte = eregi_replace(\"\\n{3}\", \"\\n\", $texte);\n \n \n // div imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<div([^>]*)>\" , \"<div\\\\2>\" , $texte);\n $texte = eregi_replace( \"<\\/div>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</div>\" , $texte);\n \n // style imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<style([^>]*)>\" , \"<style>\" , $texte);\n $texte = eregi_replace( \"<\\/style>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</style>\" , $texte);\n \n \n // h3 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h3 class=\\\"spip\\\">\" , \"<h3>\" , $texte);\n $texte = eregi_replace( \"<\\/h3>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h3>\" , $texte);\n\n\t// h2 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h2>\" , \"<h2>\" , $texte);\n $texte = eregi_replace( \"<\\/h2>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h2>\" , $texte);\n \n // h1 imbrique dans un p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<h1>\" , \"<h1>\" , $texte);\n $texte = eregi_replace( \"<\\/h1>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</h1>\" , $texte);\n \n\n\t// tableaux imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(table|TABLE)\" , \"<table\" , $texte);\n $texte = eregi_replace( \"<\\/(table|TABLE)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</table>\" , $texte);\n\n\t// TD imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(\\/td|\\/TD)\" , \"</td\" , $texte);\n //$texte = eregi_replace( \"<\\/(td|TD)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</td>\" , $texte);\n\n\t// p imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(p|P)\" , \"<p\" , $texte);\n //$texte = eregi_replace( \"<\\/(td|TD)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</td>\" , $texte);\n\n // DIV imbriques dans p\n $texte = eregi_replace( \"<p class=\\\"spip\\\">(\\r\\n|\\n|\\r| )*<(div|DIV)\" , \"<div\" , $texte);\n $texte = eregi_replace( \"<\\/(DIV|div)>(\\r\\n|\\n|\\r| )*<\\/p>\" , \"</div>\" , $texte);\n\n //$texte = PtoBR($texte);\n $texte = ereg_replace (\"\\.php3&nbsp;\\?\",\".php3?\", $texte);\n $texte = ereg_replace (\"\\.php&nbsp;\\?\",\".php?\", $texte);\n\n return $texte;\n}", "title": "" }, { "docid": "b72f9c9984a699690a93c3ad22ce1540", "score": "0.51850164", "text": "public function printContent()\t{\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "e7068b8d3eb31c5fdf0fed251182205c", "score": "0.5182899", "text": "public function escale($id){\n $queryMouvement = new MouvementSQL();\n $nbCharg = count($queryMouvement->findWithCondition(\"id_conteneur = ? and type = ?\", array($id, 'c'))->execute()); // le nombre de chargement\n $nbDecharg = count($queryMouvement->findWithCondition(\"id_conteneur = ? and type = ?\", array($id, 'd'))->execute()); // le nombre de dechargement\n\n }", "title": "" }, { "docid": "a56da85e842668bf5a10f8e98e715a3d", "score": "0.5174994", "text": "public function adcionarDocumento()\n {\n if (isset($this->view))\n $this->view->render(SUPER,'cadastro/documento');\n }", "title": "" }, { "docid": "97080c4ee3e815158588c87308aaaaff", "score": "0.5174715", "text": "abstract public function extractComments($dom);", "title": "" }, { "docid": "19df945e6a0c544a689c032e7eadba09", "score": "0.5172115", "text": "function descendrepageAction()\n {\n\n $id = (int) $this->_request->getParam('id');\n \tif ($id > 0) {\n\t\t\t\n $page = new Application_Model_EuPage();\n $page_mapper = new Application_Model_EuPageMapper();\n\t\t$page_mapper->find($id, $page);\n\t\t$ordre = $page->ordre;\n\t\t\n $page1 = new Application_Model_EuPage();\n $page1_mapper = new Application_Model_EuPageMapper();\n\t\t$rows = $page1_mapper->findOrdreDescendre($page->menu, $page->ordre);\n\t\t$page1_mapper->find($rows->id_page, $page1);\n\t\t$ordre1 = $page1->ordre;\n\t\t\t\n $page->setOrdre($ordre1);\n\t\t$page_mapper->update($page);\n\n $page1->setOrdre($ordre);\n\t\t$page1_mapper->update($page1);\n\t\t\n\t\t$this->_redirect('/administration/listpage');\n }\n }", "title": "" }, { "docid": "b59591e896dac1cd723c99c0d0609136", "score": "0.51590407", "text": "function suppr_contact_dossier($id_dossier)\r\n{\r\n\tglobal $objet;\r\n\tif(droit_acces($objet[\"contact_dossier\"],$id_dossier)==3 && $id_dossier > 1)\r\n\t{\r\n\t\t// on créé la liste des dossiers & on supprime chaque dossier\r\n\t\t$liste_dossiers_suppr = arborescence($objet[\"contact_dossier\"],$id_dossier,\"tous\");\r\n\t\tforeach($liste_dossiers_suppr as $infos_dossier)\r\n\t\t{\r\n\t\t\t// On supprime chaque contact du dossier puis le dossier en question\r\n\t\t\t$liste_contacts = db_tableau(\"SELECT * FROM gt_contact WHERE id_dossier='\".$infos_dossier[\"id_dossier\"].\"'\");\r\n\t\t\tforeach($liste_contacts as $infos_contact)\t{ suppr_contact($infos_contact[\"id_contact\"]); }\r\n\t\t\tsuppr_objet($objet[\"contact_dossier\"], $infos_dossier[\"id_dossier\"]);\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "cb5b2d48127645eaa6361431fc6542e6", "score": "0.51525134", "text": "public function recevoir_commande()\n {\n $plat = $this->cuisineService->cuisinerPouletALaTomate();\n include __DIR__.'/../Views/dressage.html.php';\n }", "title": "" }, { "docid": "5840c28e707410469e0d9f43a4442820", "score": "0.5149", "text": "function detalle_producto($cons) {\n\n\twlog(\"detalle_producto:cons:$cons\");\n\t//libxml_use_internal_errors(true);\n\t$xmlObj = new SimpleXMLParser;\n\twlog(\"genera objeto:xmlObj:$cons\");\n\t\n\tif (($xml = $xmlObj->Parse($cons, \"main\"))==\"\"){return func_error(\"P00\",\"tag MAIN vacio\",\"\");\t}\t\n\twlog(\"parsea main : $xml\");\n\n\t//HEADER\n\tif (($xmlheader = $xmlObj->Parse($xml, \"header\"))==\"\"){return func_error(\"PH0\",\"tag HEADER vacio\",$xmlheader);}\n\twlog(\"parsea header : $xmlheader\");\n\n\n\tif (($trx = $xmlObj->Parse($xmlheader, \"trx\"))==\"\"){return func_error(\"PH1\",\"tag TRX en el header, vacio\",$xmlheader);\t}\n\twlog(\"header - trx: $trx\");\n\tif (($type = $xmlObj->Parse($xmlheader, \"type\"))==\"\"){return func_error(\"PH2\",\"tag TYPE en el header, vacio\",$xmlheader);\t}\n\twlog(\"header - type: $type\");\n\n\tif (($trx!=\"detalle_producto\") || ($type!=\"req\"))\n\t\treturn func_error('PTX', \"tag TRX:[$trx] & TYPE:[$type] no coinciden con el requerimiento esperado\", $xmlheader);\n\n\t$xmlheader = ereg_replace(\"req\" ,\"resp\",$xmlheader);\n\twlog(\"header para la respuesta: $xmlheader\");\n\n\tif (($local = $xmlObj->Parse($xmlheader, \"local\"))==\"\"){return func_error(\"PH3\",\"tag LOCAL en el header, vacio\",$xmlheader);\t}\n\twlog(\"header - local: $local\");\n\tif (($pos = $xmlObj->Parse($xmlheader, \"pos\"))==\"\"){return func_error(\"PH4\",\"tag POS en el header, vacio\",$xmlheader);\t}\n\twlog(\"header - pos: $pos\");\n\tif (($operator = $xmlObj->Parse($xmlheader, \"operator\"))==\"\"){return func_error(\"PH5\",\"tag OPERATOR en el header, vacio\",$xmlheader);}\n\twlog(\"header - operator: $operator\");\n\tif (($date = $xmlObj->Parse($xmlheader, \"date\"))==\"\"){return func_error(\"PH6\",\"tag DATE en el header, vacio\",$xmlheader);}\n\twlog(\"header - date: $date\");\n\tif (($time = $xmlObj->Parse($xmlheader, \"time\"))==\"\"){return func_error(\"PH7\",\"tag TIME en el header, vacio\",$xmlheader);}\n\twlog(\"header - time: $time\");\n\n\t//DATA\n\tif (($xmldata = $xmlObj->Parse($xml, \"data\"))==\"\"){return func_error(\"PD0\",\"tag DATA vacio\",$xmlheader);}\n\twlog(\"parsea data : $xmldata\");\n\tif (($barcode = $xmlObj->Parse($xmldata, \"barcode\"))==\"\"){return func_error(\"PD1\",\"tag BARCODE en la data, vacio\",$xmlheader);}\n\twlog(\"data - barcode : $barcode\");\n\n\twlog (\"consulta con cod_barra='$barcode' y local='$local'\");\n\t$prodXML = obtiene_producto($barcode, $local);\n\tif (!$prodXML){\treturn func_error(\"P01\",\"El producto no existe en la base de datos\", $xmlheader); }\n\n\twlog(\"producto :$prodXML\");\n\t$xml_resp = '<?xml version=\"1.0\"?>'.chr(13)\n\t\t.'<main><header>'.chr(13).$xmlheader.chr(13)\n\t\t.'</header><data>'.chr(13).$prodXML.'</data>'.chr(13)\n\t\t.'</main>'.chr(13);\n\twlog (\"respuesta enviada: $xml_resp\");\n\treturn $xml_resp;\n\n\t}", "title": "" }, { "docid": "1fdd73a9a167d5878bb6e4ebcf8e9c5e", "score": "0.5145961", "text": "function InsererEleves()\n{\n $Donnee = LireEtudiant();\n foreach($Donnee as $Row)\n {\n GenererLi_V2('UlEtudiants',$Row['nom'] . ' ' . $Row['prenom'], $Row['idUsager'],$Row['idUsager'],\"divDansLi\");\n }\n}", "title": "" }, { "docid": "c63f817d421953c88bc0233a2fea0c78", "score": "0.5139507", "text": "private function save_dom( $dom ) {\n\t\t$all_node = $dom->childNodes->item( 0 );\n\t\t$output = $dom->SaveXML( $all_node );\n\t\t$global_tag_length = strlen( self::$global_tag );\n\t\t// + 2 is for the < and > symbols\n\t\t$this->content = substr( $output, $global_tag_length + 2, strlen( $output ) -2* $global_tag_length - 5 );\n\t}", "title": "" }, { "docid": "431260177234b6ac3cd638fc5c211f31", "score": "0.51391566", "text": "function BOUCLE_auteurshtml_c42cb1958aee0bf9890caf7e22dbe14b(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {\n\n\tstatic $connect = '';\n\tstatic $table = 'auteurs';\n\tstatic $id = '_auteurs';\n\tstatic $from = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_articles');\n\tstatic $type = array();\n\tstatic $groupby = array();\n\tstatic $select = array(\"auteurs.nom\",\n\t\t\"auteurs.id_auteur\");\n\tstatic $orderby = array('auteurs.nom');\n\t$where = \n\t\t\tarray(\n\t\t\tarray('!=', 'auteurs.statut', '\\'5poubelle\\''), \n\t\t\tarray('=', 'L1.id_article', sql_quote($Pile[0]['id_article'])));\n\tstatic $join = array('L1' => array('auteurs','id_auteur'));\n\tstatic $limit = '';\n\tstatic $having = \n\t\t\tarray();\n\t// REQUETE\n\t$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect);\n\t$t0 = \"\";\n\t$SP++;\n\n\t// RESULTATS\n\twhile ($Pile[$SP] = @sql_fetch($result, '')) {\n\n\t\t$t1 = (\n'\n<span class=\"vcard author\"><a class=\"url fn spip_in\" href=\"' .\nvider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_auteur'], 'auteur', '', '', true))) .\n'\">' .\ninterdire_scripts(typo($Pile[$SP]['nom'], \"TYPO\", $connect)) .\n'</a></span>');\n\t\t$t0 .= (($t1 && $t0) ? ', ' : '') . $t1;\n\t}\n\n\t@sql_free($result, '');\n\treturn $t0;\n}", "title": "" }, { "docid": "88b2086783cdead954292f8accab6351", "score": "0.51265854", "text": "function detalle_orden($nro_orden,$imprimir_todo=1,$ocultar_cliente=1)\r\n{ global $db;\r\n\t//obtengo los datos de la orden de compra\r\n\t$sql=\"select orden_de_compra.cliente,orden_de_compra.fecha_entrega,orden_de_compra.lugar_entrega,\";\r\n\t$sql.=\" orden_de_compra.cliente,orden_de_compra.internacional,honorarios_gastos,monto_flete,\";\r\n\t$sql.=\" proveedor.razon_social, plantilla_pagos.descripcion, \";\r\n\t$sql.=\" moneda.nombre,moneda.simbolo \";\r\n\t$sql.=\" from orden_de_compra\";\r\n\t$sql.=\" join moneda using(id_moneda) \";\r\n\t$sql.=\" join proveedor using(id_proveedor) \";\r\n\t$sql.=\" join plantilla_pagos using(id_plantilla_pagos)\r\n\t left join datos_oc_internacional using (nro_orden)\";\r\n\t$sql.=\" where orden_de_compra.nro_orden=$nro_orden \";\r\n\t$resultado=sql($sql,\"<br>Error al traer los datos de la OC para el detalle\") or fin_pagina();\r\n\r\n\tif($ocultar_cliente)\r\n\t $cliente=CORADIR;\r\n\telse\r\n\t $cliente=$resultado->fields[\"cliente\"];\r\n\t$fecha_entrega=fecha($resultado->fields[\"fecha_entrega\"]);\r\n\t$lugar_entrega=$resultado->fields[\"lugar_entrega\"];\r\n\t$proveedor=$resultado->fields[\"razon_social\"];\r\n\t$forma_pago=$resultado->fields[\"descripcion\"];\r\n\t$moneda=$resultado->fields[\"nombre\"];\r\n\t$moneda_simbolo=$resultado->fields[\"simbolo\"];\r\n\t$internacional=$resultado->fields[\"internacional\"];\r\n\t$total_flete=$resultado->fields[\"monto_flete\"];\r\n\t$total_honorarios=$resultado->fields[\"honorarios_gastos\"];\r\n\r\n\t//obtengo la descripcipon de las filas de la orden de compra\r\n\t$sql=\"select descripcion_prod,desc_adic,cantidad,precio_unitario\";\r\n\tif($internacional)\r\n\t $sql.=\",proporcional_flete,base_imponible_cif,derechos,iva,ib\";\r\n\t$sql.=\" from fila\";\r\n\t$sql.=\" where nro_orden=$nro_orden\";\r\n\t$filas_orden_compra=sql($sql,\"<br>Error en Consulta de Cantidades de Orden de Compra<br>\") or fin_pagina();\r\n\t$cantidad_filas=$filas_orden_compra->RecordCount();\r\n\r\n\tif(!$internacional)\r\n\t $mensaje=\"Orden de Compra Nº $nro_orden\";\r\n\telse\r\n\t $mensaje=\"Orden de Compra Internacional Nº $nro_orden\";\r\n\r\n\t$mensaje.=\"\\nDescripción\";\r\n\tif ($imprimir_todo==1)\r\n\t{\r\n\t$mensaje.=\"\\nCliente: $cliente\";\r\n\t$mensaje.=\"\\nFecha Entrega: $fecha_entrega \";\r\n\t$mensaje.=\"\\nLugar Entrega: $lugar_entrega\";\r\n\t$mensaje.=\"\\nProveedor: $proveedor\";\r\n\t$mensaje.=\"\\nForma de Pago: $forma_pago\";\r\n\t$mensaje.=\"\\nMoneda: $moneda\";\r\n\t}\r\n\t$mensaje.=\"\\n\";\r\n\t$mensaje.=\"\\nProductos:\";\r\n\tif(!$internacional)\r\n\t{\r\n\t $mensaje.=\"\\n---------------------------------------------------\";\r\n\t $mensaje.=\"\\nCantidad Descripción P. Unitario P.Total\";\r\n\t $mensaje.=\"\\n---------------------------------------------------\";\r\n\t}\r\n\telse\r\n\t{\r\n\t $mensaje.=\"\\n----------------------------------------------------------------------------------------------------\";\r\n\t $mensaje.=\"\\nCantidad - Descripción - P. Unitario - P.Total - Prop. Flete - Base Imp. CIF - Derechos - IVA - IB\";\r\n\t $mensaje.=\"\\n----------------------------------------------------------------------------------------------------\";\r\n\t}\r\n\t$total_general=0;\r\n\t$total_iva_ganancias=0;\r\n\t$total_ib=0;\r\n\t$total_derechos=0;\r\n\tfor($i=0;$i<$cantidad_filas;$i++)\r\n\t{\r\n\t $cantidad=$filas_orden_compra->fields[\"cantidad\"];\r\n\t $descripcion=$filas_orden_compra->fields[\"descripcion_prod\"].\" \".$filas_orden_compra->fields[\"desc_adic\"];\r\n\t $precio_unitario=$filas_orden_compra->fields[\"precio_unitario\"];\r\n\t $precio=number_format($precio_unitario,\"2\",\".\",\"\");\r\n\t\t$precio_total=number_format(($cantidad*$precio_unitario),\"2\",\".\",\"\");\r\n\t\tif($internacional)\r\n\t\t{\r\n\t\t $prop_flete=number_format($filas_orden_compra->fields[\"proporcional_flete\"],2,'.','');\r\n\t\t $base_imp_cif=number_format($filas_orden_compra->fields[\"base_imponible_cif\"],2,'.','');\r\n\t\t $derechos=number_format($filas_orden_compra->fields[\"derechos\"],2,'.','');\r\n\t\t $iva=number_format($filas_orden_compra->fields[\"iva\"],2,'.','');\r\n\t\t $ib=number_format($filas_orden_compra->fields[\"ib\"],2,'.','');\r\n\r\n\t\t $total_iva_ganancias+=$filas_orden_compra->fields[\"iva\"];\r\n\t\t $total_ib+=$filas_orden_compra->fields[\"ib\"];\r\n\t\t $total_derechos+=$filas_orden_compra->fields[\"derechos\"];\r\n\t\t}\r\n\r\n\t\t$total_general+=$precio_total;\r\n\t $mensaje.=\"\\n$cantidad - $descripcion - $moneda_simbolo $precio - $moneda_simbolo $precio_total\";\r\n\t if($internacional)\r\n\t $mensaje.=\" - $moneda_simbolo $prop_flete - $moneda_simbolo $base_imp_cif - $moneda_simbolo $derechos - $moneda_simbolo $iva - $moneda_simbolo $ib\";\r\n\t $filas_orden_compra->MoveNext();\r\n\r\n\t}//de for($i=0;$i<$cantidad_filas;$i++)\r\n\t$mensaje.=\"\\n---------------------------------------------------\";\r\n\tif(!$internacional)\r\n\t $mensaje.=\"\\nPrecio Total de la Orden: $moneda_simbolo \".number_format($total_general,\"2\",\".\",\"\");\r\n\telse //si la OC es internacional, agregamos los datos correspondientes\r\n\t{$mensaje.=\"\\nTotal FOB: $moneda_simbolo \".number_format($total_general,\"2\",\".\",\"\");\r\n\t $mensaje.=\"\\nFlete: $moneda_simbolo \".number_format($total_flete,2,'.','');\r\n\t $mensaje.=\"\\nTotal I.V.A./Ganancias: $moneda_simbolo \".number_format($total_iva_ganancias,2,'.','');\r\n\t $mensaje.=\"\\nTotal I.B.: $moneda_simbolo \".number_format($total_ib,2,'.','');\r\n\t $mensaje.=\"\\nTotal Derechos: $moneda_simbolo \".number_format($total_derechos,2,'.','');\r\n\t $mensaje.=\"\\nHonorarios y Gastos: $moneda_simbolo \".number_format($total_honorarios,2,'.','');\r\n\t $total_global=$total_general+$total_flete+$total_iva_ganancias+$total_ib+$total_derechos+$total_honorarios;\r\n\t $mensaje.=\"\\nTOTAL GLOBAL: $moneda_simbolo \".number_format($total_global,2,'.','');\r\n\t}\r\n\r\n\treturn $mensaje;\r\n}", "title": "" }, { "docid": "0065fb9a8b5ca949330c33b1ee93ed22", "score": "0.51209337", "text": "private function domNodes() {\n $this->xmlHtml = $this->dom->getElementsByTagName('html')->item(0);\n $this->xmlHead = $this->dom->getElementsByTagName('head')->item(0);\n $this->xmlBody = $this->dom->getElementsByTagName('body')->item(0);\n }", "title": "" }, { "docid": "9b1656e1cc761e47277bcbca3be75bc7", "score": "0.51196766", "text": "function contenu($donnees){\n\t// Les données sont transmit via un array\n\t// Exemple :\n\t// \t$donnees = array(\n\t// \t\t\"INT ID\" => array(\"titre\" => \"STR TITRE\", \"contenu\" => \"STR MESSAGE\", \"date\" => \"STR DATE\", \"numCommentaire\" => \"INT AGE\")\n\t// \t\t);\n\t// \t\t\n\t// On commence par nettoyer;\n\tforeach($donnees as $key => $cat)\n\t{\n\t\t$cat[\"nom\"] = htmlspecialchars($cat[\"nom\"]);\n\t\t$cat[\"contenu\"] = htmlspecialchars($cat[\"contenu\"]);\n\t}\n\n\techo '<div class=\"row\">';\n\tforeach($donnees as $key => $cat)\n\t{\n\t\techo '<div class=\"col-md-4\">';\n\t\techo '<a href=\"?page=shop&cat='. $cat[\"id\"] .'\">';\n\t\techo '<h1>'. $cat[\"nom\"] .'</h1>';\n\t\techo '<img src=\"vue/image/categorie/'. $cat[\"image\"] .'\" alt='. $cat[\"nom\"] .'/>';\n\t\techo '<p>'. $cat[\"contenu\"] .'</p>';\n\t\techo '</a>';\n\t\techo '</div>';\n\t}\n\techo '</div>';\n}", "title": "" }, { "docid": "b8b74002ce2083e0bf54fa79aa0b922b", "score": "0.51186335", "text": "function generar_html()\n\t{\n\t\t$this->pantalla()->generar_html();\t\n\t}", "title": "" }, { "docid": "3a03c1cb7a5a13ef34ed2c8cfce0ee41", "score": "0.51185554", "text": "function xml_recouvrement_credit($gestionnaire = 0, $export_date = NULL, $etat = 0, $prd ,$type_affich = 1, $export_csv = false, $export_date_debut = NULL,$n_agence=null,$n_guichet=null)\n{\n global $global_multidevise;\n global $global_monnaie;\n\n // Création racine\n global $global_id_agence;\n $document = create_xml_doc(\"recouvrement_credit\", \"recouvrement_credit.dtd\");\n\n $DATAS = get_rapport_recouvrement_credit_data($gestionnaire, $export_date, $etat, $prd, $export_date_debut,$n_agence,$n_guichet);\n\n if ($DATAS == NULL)\n return NULL;\n\n $root = $document->root();\n\n //En-tête généraliste\n gen_header($root, 'CRD-REC');\n\n //En-tête contextuel\n $header_contextuel = $root->new_child(\"header_contextuel\", \"\");\n\n if(empty($gestionnaire)) $gestionnaire = _(\"Tous\");\n else $gestionnaire = getLibel(\"ad_uti\", $_POST[\"gest\"]);\n\n // Les libelles des etats\n $etats_credit = getIDLibelTousEtatCredit();\n\n // le critere 'etat'\n if(empty($etat)){ //trac#720 : Commentaire no.5\n $etat_criteres = _(\"Tous\");\n }\n else {\n if ($etat=='CA') {\n $etat_criteres = _(\"Crédits Actifs\");\n }\n elseif ($etat=='SOLDE'){ //REL-30 : Gestion Crédits Soldé\n $etat_criteres = _(\"Crédits Soldé\");\n }\n else {\n $etat_criteres = $etats_credit[$etat];\n }\n }\n\n\n if(empty($prd))\n $prd = _(\"Tous\");\n else $prd = getLibelPrdt ( $prd, \"adsys_produit_credit\" );\n\n // Affichage critere de recherches\n $criteres = array (\n _(\"Gestionnaire\") => $gestionnaire,\n _(\"Date Debut\") => date($export_date_debut), //ticket 720\n _(\"Date Fin\") => date($export_date), //ticket 720\n _(\"Etat crédit\") => _($etat_criteres),\n _(\"Produit de crédit\") => _($prd),\n _(\"Devise\") => _($global_monnaie) //ticket 720 : ajout devise pour simplifier l'affichage des montants\n );\n if(isFusion()){\n if ($n_agence !=null){\n $criteres[\"Niveau agence\"]=getLibelLocalisationFenacobu($n_agence);\n }else{\n $criteres[\"Niveau agence\"]=\"Tous\";\n }\n if ($n_guichet !=null){\n $criteres[\"Niveau guichet\"]=getLibelLocalisationFenacobu($n_guichet);\n }else{\n $criteres[\"Niveau guichet\"]=\"Tous\";\n }\n }\n gen_criteres_recherche($header_contextuel, $criteres);\n\n // Recup des sections du rapport\n $grand_recap_array = $DATAS['grand_recap'];\n $recap_par_classe_array = $DATAS['recap_par_classe'];\n $details_recouvrement_array = $DATAS['details_recouvrement'];\n\n // Donnees Infos Synthetique\n $cap_restant_tot = $grand_recap_array['cap_restant_tot'];\n\n //ticket 720 : synthetique grand total\n $capital_attendu_total = $grand_recap_array['capital_attendu_total'];\n $interet_attendu_total = $grand_recap_array['interet_attendu_total'];\n $penalite_attendu_total = $grand_recap_array['penalite_attendu_total'];\n $capital_rembourse_total = $grand_recap_array['capital_rembourse_total'];\n $interet_rembourse_total = $grand_recap_array['interet_rembourse_total'];\n $penalite_rembourse_total = $grand_recap_array['penalite_rembourse_total'];\n //Gestion montants impayés REL-30\n $capital_impaye_total = $grand_recap_array['capital_impaye_total'];\n if ($capital_impaye_total < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $capital_impaye_total = 0;\n }\n $interet_impaye_total = $grand_recap_array['interet_impaye_total'];\n if ($interet_impaye_total < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $interet_impaye_total = 0;\n }\n $penalite_impaye_total = $grand_recap_array['penalite_impaye_total'];\n if ($penalite_impaye_total < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $penalite_impaye_total = 0;\n }\n\n $total_rembourse_total = $grand_recap_array['total_rembourse_total'];\n //ticket 720 : synthetique grand total\n $montant_tot = $grand_recap_array['montant_tot'];\n $coeff_tot = $grand_recap_array['coeff_tot'];\n\n // Xml Infos synthetique\n $infos_synthetique = $root->new_child(\"infos_synthetique\", \"\");\n $infos_synthetique->new_child(\"cap_restant_tot\", afficheMontant($cap_restant_tot, false, $export_csv));\n\n //ticket 720 : synthetique grand total\n $infos_synthetique->new_child(\"capital_attendu_total\", afficheMontant($capital_attendu_total, false, $export_csv));\n $infos_synthetique->new_child(\"interet_attendu_total\", afficheMontant($interet_attendu_total, false, $export_csv));\n $infos_synthetique->new_child(\"penalite_attendu_total\", afficheMontant($penalite_attendu_total, false, $export_csv));\n $infos_synthetique->new_child(\"capital_rembourse_total\", afficheMontant($capital_rembourse_total, false, $export_csv));\n $infos_synthetique->new_child(\"interet_rembourse_total\", afficheMontant($interet_rembourse_total, false, $export_csv));\n $infos_synthetique->new_child(\"penalite_rembourse_total\", afficheMontant($penalite_rembourse_total, false, $export_csv));\n $infos_synthetique->new_child(\"capital_impaye_total\", afficheMontant($capital_impaye_total, false, $export_csv));\n $infos_synthetique->new_child(\"interet_impaye_total\", afficheMontant($interet_impaye_total, false, $export_csv));\n $infos_synthetique->new_child(\"penalite_impaye_total\", afficheMontant($penalite_impaye_total, false, $export_csv));\n $infos_synthetique->new_child(\"total_rembourse_total\", afficheMontant($total_rembourse_total, false, $export_csv));\n //ticket 720 : synthetique grand total\n $infos_synthetique->new_child(\"montant_tot\", afficheMontant($montant_tot, false, $export_csv));\n $infos_synthetique->new_child(\"coeff_tot\", affichePourcentage($coeff_tot/100, 2, true));\n\n /* Récap par classe de credit */\n $recap_par_classe = $root->new_child(\"recap_par_classe\", \"\");\n $recap_par_classe->new_child(\"entete_recap\", _(\"Récapitulatif\"));\n $details_recap = $recap_par_classe->new_child(\"details_recap\", \"\");\n\n // xml recap par classe\n foreach($recap_par_classe_array as $recap)\n {\n $entete_recap = $recap['entete_recap'];\n $capital_restant_du = $recap['details_recap']['cap_restant_recap'];\n\n $montant_total_retard = $recap['details_recap']['montant_recap'];\n $coeff = $recap['details_recap']['coeff_recap'];\n\n //ticket 720 : recap\n $capital_attendu_recap = $recap['details_recap']['capital_attendu_recap'];\n $interet_attendu_recap = $recap['details_recap']['interet_attendu_recap'];\n $penalite_attendu_recap = $recap['details_recap']['penalite_attendu_recap'];\n $capital_rembourse_recap = $recap['details_recap']['capital_rembourse_recap'];\n $interet_rembourse_recap = $recap['details_recap']['interet_rembourse_recap'];\n $penalite_rembourse_recap = $recap['details_recap']['penalite_rembourse_recap'];\n $total_rembourse_recap = $recap['details_recap']['total_rembourse_recap'];\n //REL-30 Gestion penalité impayé\n $capital_impaye_recap = $recap['details_recap']['capital_impaye_recap'];\n if ($capital_impaye_recap < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $capital_impaye_recap = 0;\n }\n $interet_impaye_recap = $recap['details_recap']['interet_impaye_recap'];\n if ($interet_impaye_recap < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $interet_impaye_recap = 0;\n }\n $penalite_impaye_recap = $recap['details_recap']['penalite_impaye_recap'];\n if ($penalite_impaye_recap < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y a des remboursements anticipés\n $penalite_impaye_recap = 0;\n }\n\n $ligne_recap = $details_recap->new_child(\"ligne_recap\", \"\");\n $ligne_recap->new_child(\"etat\", $entete_recap);\n $ligne_recap->new_child(\"cap_restant_recap\", afficheMontant($capital_restant_du, false, $export_csv));\n\n //ticket 720 : recap\n $ligne_recap->new_child(\"capital_attendu_recap\", afficheMontant($capital_attendu_recap, false, $export_csv));\n $ligne_recap->new_child(\"interet_attendu_recap\", afficheMontant($interet_attendu_recap, false, $export_csv));\n $ligne_recap->new_child(\"penalite_attendu_recap\", afficheMontant($penalite_attendu_recap, false, $export_csv));\n $ligne_recap->new_child(\"capital_rembourse_recap\", afficheMontant($capital_rembourse_recap, false, $export_csv));\n $ligne_recap->new_child(\"interet_rembourse_recap\", afficheMontant($interet_rembourse_recap, false, $export_csv));\n $ligne_recap->new_child(\"penalite_rembourse_recap\", afficheMontant($penalite_rembourse_recap, false, $export_csv));\n $ligne_recap->new_child(\"total_rembourse_recap\", afficheMontant($total_rembourse_recap, false, $export_csv));\n $ligne_recap->new_child(\"capital_impaye_recap\", afficheMontant($capital_impaye_recap, false, $export_csv));\n $ligne_recap->new_child(\"interet_impaye_recap\", afficheMontant($interet_impaye_recap, false, $export_csv));\n $ligne_recap->new_child(\"penalite_impaye_recap\", afficheMontant($penalite_impaye_recap, false, $export_csv));\n //ticket 720 : recap\n $ligne_recap->new_child(\"montant_recap\", afficheMontant($montant_total_retard, false, $export_csv));\n $ligne_recap->new_child(\"coeff_recap\", affichePourcentage($coeff/100, 2, true));\n }\n\n if($type_affich == 1) // affichage détaillé\n {\n $details_recouvrement = $root->new_child(\"details_recouvrement\", \"\");\n\n foreach($details_recouvrement_array as $regroupement_dossiers)//regroupement par classe credit\n {\n $recouvrements_par_classe = $details_recouvrement->new_child(\"recouvrements_par_classe\", \"\"); //groupement par classe credit\n $classe_credit = $recouvrements_par_classe->new_child(\"classe_credit\", $regroupement_dossiers[\"classe_credit\"]); //recuperation de libel classecredit\n\n foreach( $regroupement_dossiers as $regroupement_produits) //regroupement par produit credit\n {\n\n if (is_array($regroupement_produits['tot'])){\n $recouvrements_par_produits = $recouvrements_par_classe->new_child(\"recouvrements_par_produits\", \"\"); //groupement par classe credit\n $libel_prod = $recouvrements_par_produits->new_child(\"libel_prod\", $regroupement_produits['tot'][\"libel_prod\"]);\n $dossiers_recouvrement = $recouvrements_par_produits->new_child(\"dossiers_recouvrement\", \"\");\n $cap_restant_tot = $recouvrements_par_produits->new_child(\"cap_restant_tot\", afficheMontant($regroupement_produits['tot'][\"capital_restant_du_tot\"], false, $export_csv));\n $montant_retard_tot = $recouvrements_par_produits->new_child(\"montant_retard_tot\", afficheMontant($regroupement_produits['tot'][\"montant_tot_retard_tot\"], false, $export_csv));\n //ticket 720 : les montants attendus et remboursés\n $capital_attendu_tot = $recouvrements_par_produits->new_child(\"capital_attendu_tot\", afficheMontant($regroupement_produits['tot'][\"capital_attendu_tot\"], false, $export_csv));\n $interet_attendu_tot = $recouvrements_par_produits->new_child(\"interet_attendu_tot\", afficheMontant($regroupement_produits['tot'][\"interet_attendu_tot\"], false, $export_csv));\n $penalite_attendu_tot = $recouvrements_par_produits->new_child(\"penalite_attendu_tot\", afficheMontant($regroupement_produits['tot'][\"penalite_attendu_tot\"], false, $export_csv));\n $capital_rembourse_tot = $recouvrements_par_produits->new_child(\"capital_rembourse_tot\", afficheMontant($regroupement_produits['tot'][\"capital_rembourse_tot\"], false, $export_csv));\n $interet_rembourse_tot = $recouvrements_par_produits->new_child(\"interet_rembourse_tot\", afficheMontant($regroupement_produits['tot'][\"interet_rembourse_tot\"], false, $export_csv));\n $penalite_rembourse_tot = $recouvrements_par_produits->new_child(\"penalite_rembourse_tot\", afficheMontant($regroupement_produits['tot'][\"penalite_rembourse_tot\"], false, $export_csv));\n $penalite_impaye_tot = $recouvrements_par_produits->new_child(\"penalite_impaye_tot\", afficheMontant($regroupement_produits['tot'][\"penalite_impaye_tot\"], false, $export_csv));\n $total_rembourse_tot = $recouvrements_par_produits->new_child(\"total_rembourse_tot\", afficheMontant($regroupement_produits['tot'][\"total_rembourse_tot\"], false, $export_csv));\n }\n\n\n //Affichages de dossiers de credit du type produit\n if (is_array( $regroupement_produits['detail'])){\n foreach ($regroupement_produits['detail'] as $ligne ){\n if(is_array($ligne)){\n // Donnees lignes recouvrements\n $num_pret = $ligne['num_pret'];\n $num_client = $ligne['num_client'];\n $nom_client = $ligne['nom_client'];\n $libel_gestionnaire = $ligne['gestionnaire'];\n $libel_etat_credit = $ligne['etat_credit'];\n $capital_restant_du = $ligne['cap_restant'];\n $montant_total_retard = $ligne['montant_retard'];\n $coeff = $ligne['coeff'];\n //ticket 720 : les montants attendus et remboursés\n $capital_attendu = $ligne['capital_attendu'];\n $interet_attendu = $ligne['interet_attendu'];\n $penalite_attendu = $ligne['penalite_attendu'];\n $capital_rembourse = $ligne['capital_rembourse'];\n $interet_rembourse = $ligne['interet_rembourse'];\n $penalite_rembourse = $ligne['penalite_rembourse'];\n $penalite_impaye = $ligne['penalite_impaye'];\n if ($penalite_impaye < 0){ //si le montant remboursé est superieure au montant attendu alors dans ce cas il y avait des remboursements anticipé\n $penalite_impaye = 0;\n }\n $total_rembourse = $ligne['total_rembourse'];\n\n // xml lignes recouvrements\n $ligne_recouvrement = $dossiers_recouvrement->new_child(\"ligne_recouvrement\", \"\");\n $ligne_recouvrement->new_child(\"num_pret\", $num_pret);\n $ligne_recouvrement->new_child(\"num_client\", $num_client);\n $ligne_recouvrement->new_child(\"nom_client\", $nom_client);\n $ligne_recouvrement->new_child(\"gestionnaire\", $libel_gestionnaire);\n $ligne_recouvrement->new_child(\"cap_restant\", afficheMontant($capital_restant_du, false, $export_csv));\n $ligne_recouvrement->new_child(\"montant_retard\", afficheMontant($montant_total_retard, false, $export_csv));\n $ligne_recouvrement->new_child(\"coeff\", affichePourcentage($coeff/100, 2, true));\n $ligne_recouvrement->new_child(\"etat_credit\", $libel_etat_credit);\n //ticket 720 : les montants attendus et remboursés\n $ligne_recouvrement->new_child(\"capital_attendu\", afficheMontant($capital_attendu, false, $export_csv));\n $ligne_recouvrement->new_child(\"interet_attendu\", afficheMontant($interet_attendu, false, $export_csv));\n $ligne_recouvrement->new_child(\"penalite_attendu\", afficheMontant($penalite_attendu, false, $export_csv));\n $ligne_recouvrement->new_child(\"capital_rembourse\", afficheMontant($capital_rembourse, false, $export_csv));\n $ligne_recouvrement->new_child(\"interet_rembourse\", afficheMontant($interet_rembourse, false, $export_csv));\n $ligne_recouvrement->new_child(\"penalite_rembourse\", afficheMontant($penalite_rembourse, false, $export_csv));\n $ligne_recouvrement->new_child(\"penalite_impaye\", afficheMontant($penalite_impaye, false, $export_csv));\n $ligne_recouvrement->new_child(\"total_rembourse\", afficheMontant($total_rembourse, false, $export_csv));\n }\n }\n }\n }\n\n }\n\n }\n\n\n return $document->dump_mem(true);\n}", "title": "" }, { "docid": "ee866ab525d89625cb01d8d90ebc3366", "score": "0.51164424", "text": "function html_c42cb1958aee0bf9890caf7e22dbe14b($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {\n\n\n\tif (isset($Pile[0][\"doublons\"]) AND is_array($Pile[0][\"doublons\"]))\n\t\t$doublons = nettoyer_env_doublons($Pile[0][\"doublons\"]);\n\n\t$connect = '';\n\t$page = (\n'\n' .\nBOUCLE_auteurshtml_c42cb1958aee0bf9890caf7e22dbe14b($Cache, $Pile, $doublons, $Numrows, $SP));\n\n\treturn analyse_resultat_skel('html_c42cb1958aee0bf9890caf7e22dbe14b', $Cache, $page, 'squelettes-dist/modeles/lesauteurs.html');\n}", "title": "" }, { "docid": "e0572cd45bf085dadc730c88acf0ea6c", "score": "0.51142985", "text": "function Cuerpo($acceso,$desde,$hasta,$id_f)\n\t{\n\t\t$tipo_caja=verCajaPrincipal($acceso);\n\t\t//$fecha=date(\"Y-m-d\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tif($id_f!='0'){\n\t\t\t$consult=\" and id_franq='$id_f'\";\n\t\t\t$consult_g=\" and (id_franq='$id_f' or id_franq='0') \";\n\t\t\t$consult_fw=\" where id_franq='$id_f'\";\n\t\t}\n\t\telse{\n\t\t//\techo \":$id_f:\";\n\t\t\t$consult_g=\" and id_franq='0'\";\n\t\t}\n\t//\techo \"SELECT *FROM cirre_diario where fecha_cierre between '$desde' and '$hasta' and id_franq='$id_f'\";\n\t\n\t\t$desde_t=formatofecha($desde);\n\t\t$hasta_t=formatofecha($hasta);\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->MultiCell(190,7,\"$desde_t Hasta $hasta_t\",'0','C');\n\t\t\n\t\n\t\t\t\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t$right=15;\n\t\t$top=40;\n\t\t\t$this->SetXY($right,$top);\n\t\t\t\n\t\t\t$acceso->objeto->ejecutarSql(\"SELECT sum(monto_pago) as total FROM vista_pago,caja_cobrador, caja where caja_cobrador.id_caja= caja.id_caja $consult and vista_pago.id_caja_cob=caja_cobrador.id_caja_cob and fecha_pago between '$desde' and '$hasta' and status_pago='PAGADO' \");\n\t\t\t\tif($row=row($acceso)){\n\t\t\t\t\t$total=trim($row[\"total\"]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\t\t$this->Cell(40,5,\"TOTAL FACTURADO\",\"0\",0,\"L\");\n\t\t\t\t\t\n\t\t\t\t\t$this->Cell(20,5,number_format($total+0, 2, ',', '.'),\"0\",0,\"R\");\n\t\t\t\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetFont('Arial','BIU',9);\n\t\t\n\t\t\n\t\t$fech=formatofecha($desde);\n\t\t\t//$this->Ln(10);\n\t\t$this->Ln(5);\n\t\t/*\n\t\t$this->SetX($right);\n\t\t$this->Cell(40,6,strtoupper(_(\"detalles de clientes facturados $nombre_franq $fech \")),\"0\",0,\"L\");\n\t\t$this->Ln();\n\t\t*/\n\t\t\n\t\t\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(10,18,17,50,18,17,16,16,16,18);\n\t\t$header=array(strtoupper(_('nro')),strtoupper(_('nro abo.')),strtoupper(_('C.I./RIF')),strtoupper(_('Cliente')),strtoupper(_('factura')),strtoupper(_('control')),strtoupper(_('base I.')),strtoupper(_('IVA')),strtoupper(_('TOTAL')),strtoupper(_('STATUS')));\n\t\t$this->SetFont('Arial','B',7);\n\t\t$this->SetX(10);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\t\n\t\t\n\t\t$cable=conexion();\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT id_contrato,id_pago,nro_contrato,nro_factura,nro_control,cedulacli,(nombrecli || ' ' || apellidocli) as nombrecli, base_imp, desc_pago, monto_iva, monto_reten, islr, monto_pago, fecha_pago,status_pago , n_credito FROM vista_pago_cont where fecha_pago between '$desde' and '$hasta' order by nro_control\");\n\t\t\n\t\t$this->SetFont('Arial','',7);\n\t\t$cont=1;\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetTextColor(0);\n\t\t\n\t\t$ca[0]='';\n\t\t$tipo_pago[0]='';\n\t\t$y=0;\n\t\twhile ($row=row($acceso))\n\t\t{\n\t\t\t$fill=\n\t\t\t\t$this->SetX(10);\n\t\t\t\t$this->Cell($w[0],5,$cont,\"L\",0,\"C\",$fill);\n\t\t\t\t$this->Cell($w[1],5,utf8_decode(trim($row[\"nro_contrato\"])),\"1\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[2],5,utf8_decode(trim($row[\"cedulacli\"])),\"1\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[3],5,substr(utf8_decode(trim($row[\"nombrecli\"]).\" \".trim($row[\"apellidocli\"])),0,30),\"1\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[4],5,utf8_decode(trim($row[\"nro_factura\"])),\"1\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[5],5,utf8_decode(trim($row[\"nro_control\"])),\"1\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[6],5,number_format(trim($row[\"base_imp\"])+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\t\t$this->Cell($w[7],5,number_format(trim($row[\"monto_iva\"])+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\t\t$this->SetFont('Arial','B',7);\n\t\t\t\t$this->Cell($w[8],5,number_format(trim($row[\"monto_pago\"])+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\t\t$this->SetFont('Arial','',7);\n\t\t\t\t$this->Cell($w[9],5,utf8_decode(trim($row[\"status_pago\"])),\"1\",0,\"J\",$fill);\n\t\t\t\t\n\t\t\t\t$id_pago=trim($row[\"id_pago\"]);\n\t\t\t\t$cable->objeto->ejecutarSql(\"SELECT abrev_tp,numero,monto_tp,(select abrev_banco from banco where detalle_tipopago.banco=banco.banco and tipo_banco<>'EMPRESA' LIMIT 1) AS abrev_banco FROM detalle_tipopago,tipo_pago WHERE detalle_tipopago.id_tipo_pago=tipo_pago.id_tipo_pago and id_pago='$id_pago' \");\n\t\t\t\t$banco='';\n\t\t\t\twhile($row1=row($cable)){\n\t\t\t\t\t$abrev_banco=trim($row1['abrev_banco']);\n\t\t\t\t\t$ban=trim($row1['banco']);\n\t\t\t\t\t$tipo_pago=trim($row1['abrev_tp']);\n\t\t\t\t\t$numero=trim($row1['numero']);\n\t\t\t\t\t$monto_tp=trim($row1['monto_tp']);\n\t\t\t\t\tnumber_format($cargo+0, 2, ',', '.');\n\t\t\t\t\t$banco= $banco.\"$tipo_pago, $monto_tp $abrev_banco $numero ; \";\n\t\t\t\t}\n\t\t\t\t$cable->objeto->ejecutarSql(\"SELECT nombre_servicio,costo_cobro,tipo_costo,tipo_paq,fecha_inst FROM pago_servicio, contrato_servicio_pagado, servicios WHERE pago_servicio.id_cont_serv = contrato_servicio_pagado.id_cont_serv AND contrato_servicio_pagado.id_serv = servicios.id_serv and id_pago='$id_pago' \");\n\t\t\t\t \n\n\t\t\t\t\n\t\t\t\t$servicio='';\n\t\t\t\twhile($row1=row($cable)){\n\t\t\t\t\t$nombre_servicio=trim($row1['nombre_servicio']);\n\t\t\t\t\t$tipo_costo=trim($row1['tipo_costo']);\n\t\t\t\t\t$tipo_paq=trim($row1['tipo_paq']);\n\t\t\t\t\t$costo_cobro=trim($row1['costo_cobro']);\n\t\t\t\t\t$fecha_inst=trim($row1['fecha_inst']);\n\t\t\t\t\t$costo_cobro=number_format($costo_cobro+0, 2, ',', '.');\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$fechaN=explode(\"-\",$fecha_inst);\n\t\t\t\t\t$mes=formato_mes($fechaN[1]);\n\t\t\t\t\t$anio=$fechaN[0];\n\t\t\t\t\t\n\t\t\t\t\tif($tipo_costo=='COSTO MENSUAL' and $tipo_paq=='PAQUETE BASICO'){\n\t\t\t\t\t\t$nombre_servicio=\"MENS $mes $anio;\";\n\t\t\t\t\t}\n\t\t\t\t\telse if($tipo_costo=='COSTO MENSUAL'){\n\t\t\t\t\t\t$nombre_servicio=\"$nombre_servicio $mes $anio;\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$servicio= $servicio.\"$nombre_servicio $costo_cobro ;\";\n\t\t\t\t}\n\t\t\t\t$this->Ln();\n\t\t\t\t$this->SetX(10);\n\t\t\t\t$this->MultiCell(array_sum($w),4,\" Forma de Pago: $banco Detalle Servicios: $servicio\",\"LRB\",\"J\",$fill);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$fill=!$fill;\n\t\t\t\t$cont++;\n\t\t\n\t\t}\n\t\t$this->SetX(10);\n\t\t$this->Cell(array_sum($w),5,'','T');\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "dc66d90c4a49b6000136607b41998d2e", "score": "0.51129025", "text": "function docfull($query) {\n global $bx, $t, $sess, $db;\n\n $db->query($query);\n $db->next_record();\n $bx->box_begin();\n $bx->box_title(stripslashes($db->f(\"TITEL\")));\n $bx->box_body_begin();\n $timestamp = timestr(mktimestampdw($db->f(\"AENDERUNGSDATUM\")));\n $timestampER = timestr(mktimestampdw($db->f(\"ERSTELLUNGSDATUM\")));\n \n # Anleger\n $dbAn = new DB_DocsWell;\n $dbAn->query(\"SELECT * FROM auth_user WHERE username='\".$db->f(\"ANGELEGTVON\").\"'\");\n $dbAn->next_record();\n \n # Kategoriedaten\n $dbKat = new DB_DocsWell;\n $dbKat->query(\"SELECT * FROM KATEGORIE WHERE ID=\".$db->f(\"KATEGORIE\"));\n $dbKat->next_record();\n $parent = $dbKat->f(\"PARENT_ID\");\n if ($parent) {\n\t $pfad = array();\n\t while ($parent != 1) {\n\t\tarray_unshift ($pfad,$dbKat->f(\"NAME\"));\n\t\t$dbKat->query(\"SELECT * FROM KATEGORIE WHERE ID=$parent\");\n\t\t$dbKat->next_record();\n\t\t$parent = $dbKat->f(\"PARENT_ID\");\n\t }\n\t array_unshift ($pfad,$dbKat->f(\"NAME\"));\n\t $anz = count($pfad);\n\t\n\t $counter =0;\n\t foreach ($pfad as $onestep) {\n\t $counter++;\n\t if ($counter == $anz) {\n\t\t $dbKat->query(\"SELECT * FROM KATEGORIE WHERE NAME='$onestep'\");\n\t\t $dbKat->next_record();\n\t\t $cat_path .= \" :: <a href=\\\"\".$sess->url(\"docbycat.php\").$sess->add_query(array(\"category\" => $db->f(\"KATEGORIE\"))).\"\\\">\".$t->translate($onestep).\"</a>\";\n\t } else \n\t\t$cat_path .= \" :: \".$t->translate($onestep).\" \";\n\t }\n\t $cat_path = substr ($cat_path,3); \n } else $cat_path = $t->translate(\"Category does not exist\");\n \n \n //echo \"----------->\";\n \n $dbKat->query(\"SELECT * FROM KATEGORIE WHERE ID=\".$db->f(\"KATEGORIE\"));\n $dbKat->next_record();\n \n # Sprache\n $dbSpr = new DB_DocsWell;\n $dbSpr->query(\"SELECT * FROM SPRACHEDEF WHERE ID=\".$db->f(\"SPRACHE\"));\n $dbSpr->next_record();\n\n /* Off wegen neuer Tabelle (mehrere Autoren pro Dok)\n # Autorendaten\n $dbAut = new DB_DocsWell;\n $dbAut->query(\"SELECT * FROM AUTOR WHERE ID=\".$db->f(\"AUTOR\"));\n $dbAut->next_record();\n */\n\n # Typdaten\n $dbTyp = new DB_DocsWell;\n $dbTyp->query(\"SELECT * FROM TYPDEF WHERE ID=\".$db->f(\"TYP\"));\n $dbTyp->next_record();\n\n # Formatdaten\n $dbForm = new DB_DocsWell;\n $dbForm->query(\"SELECT * FROM FORMAT WHERE DOKUID=\".$db->f(\"ID\"));\n \n echo \"<b class=\\\"small\\\">\".$t->translate(\"by\").\" <a href=\\\"mailto:\".mailtoencode($dbAn->f(\"email_usr\")).\"\\\">\".$dbAn->f(\"username\").\"</a> - \".$timestamp.\"</b>\\n\";\n if (($db->f(\"BILD\")) && (file_exists(\"./images_docs/\".$db->f(\"BILD\")))) $bild = $db->f(\"BILD\");\n elseif (($db->f(\"BILD_REFERENZ\")) && (file_exists(\"./images_docs/\".$db->f(\"BILD_REFERENZ\")))) $bild = $db->f(\"BILD_REFERENZ\"); \n if ($bild) {\n echo \"<br><br>\";\n $size = GetImageSize(\"./images_docs/\".$bild);\n $width = $size[0];\n $height = $size[1];\n if ($width > $GLOBALS[\"config_maxwidth\"]) {\n $height = round($height / $width * $GLOBALS[\"config_maxwidth\"]);\n $width = $GLOBALS[\"config_maxwidth\"];\n }\n echo \"<img src=\\\"images_docs/\".$bild.\"\\\" border=\\\"0\\\" width=\\\"$width\\\" height=\\\"$height\\\" align=\\\"right\\\" hspace=\\\"5\\\" vspace=\\\"5\\\">\";\n } else echo \"<p>\";\n echo stripslashes($db->f(\"BESCHREIBUNG\")).\"\t\\n\";\n echo \"<table border=0 cellspacing=1 cellpadding=3 width=100% bgcolor=\".$GLOBALS[\"th_box_body_bgcolor\"].\">\\n\";\n echo \"<tr><td colspan=2>&nbsp;</td></tr>\";\n\n //Autoren besorgen\n $dbAut = new DB_DocsWell;\n $Sql = \"SELECT a.ID, a.VORNAME, a.NACHNAME, a.EMAIL FROM AUTOR a, AUTOR_DOKUMENT ad WHERE ad.autor_id=a.id AND ad.dokument_id=\".$db->f(\"ID\");\n //echo $Sql;\n $dbAut->query($Sql);\n $anz = $dbAut->num_rows();\n\n $Autoren = array ();\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Author\").\":</b></td><td>\";\n if ($anz > 0) { //Autoren ausgeben\n \t$counter = 0; \n \twhile ($dbAut->next_record()) {\n\t\t$counter++;\n\t\t$Autoren[] = $dbAut->f(\"ID\");\n \techo $dbAut->f(\"VORNAME\").\" \".$dbAut->f(\"NACHNAME\");\n \t\t$db_email = $dbAut->f(\"EMAIL\");\n \t\tif (!empty($db_email)) echo \" &lt;<a href=\\\"mailto:\".mailtoencode($db_email).\"\\\">\".ereg_replace(\"\\.\",\" dot \",ereg_replace(\"@\",\" at \",htmlentities($db_email))).\"</a>&gt;\";\n \t\t/* if (strlen($db3->f(\"email\")) > 0) echo \" <a href=\\\"mailto:\".mailtoencode($db3->f(\"email\")).\"\\\">\";\n\t\techo $db3->f(\"vorname\").\" \".$db3->f(\"nachname\");\n\t\tif (strlen($db3->f(\"email\")) > 0) echo \"</a>\";\n\t\t*/\n\t\tif ($counter < $anz) echo \", \";\n \t}\n } else echo \"Unknown\";\n\n echo \"</td></tr>\\n\";\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Type\").\":</b></td>\\n\";\n echo \"<td><a href=\\\"\".$sess->url(\"docbytyp.php\").$sess->add_query(array(\"typ\" => $db->f(\"TYP\"))).\"\\\">\".$t->translate($dbTyp->f(\"NAME\")).\"</a></td>\\n\";\n echo \"</tr>\\n\";\n\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Category\").\":</b></td><td>$cat_path</td></tr>\\n\";\n\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Language\").\":</b></td><td>\".$t->translate($dbSpr->f(\"SPRACHE\")).\"</td></tr>\\n\";\n\n $dbFormDef = new DB_DocsWell;\n $i = 0;\n while ($dbForm->next_record()) {\n $dbFormDef->query(\"SELECT * FROM FORMATDEF WHERE ID=\".$dbForm->f(\"FORMATID\"));\n $dbFormDef->next_record(); \n if ($i == 0) {\n echo \"<tr valign=top><td align=right valign=top><b>\".$t->translate(\"Format\").\":</b></td><td>\";\n } else {\n echo \"<br>\";\n }\n echo \"<a href=\\\"\".$sess->url(\"download.php\").$sess->add_query(array(\"id\" => $db->f(\"ID\"),\"url\" => $dbForm->f(\"LINK\"))).\"\\\" target=\\\"_new\\\">\".$dbFormDef->f(\"NAME\").\"</a>\\n\";\n $i++;\n }\n \n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Last updated\").\":</b></td><td width=75%> $timestamp</td></tr>\\n\";\n\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Created\").\":</b></td><td width=75%> $timestampER</td></tr>\\n\";\n\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Downloads\").\":</b></td><td width=75%> \".$db->f(\"COUNTER\").\"</td></tr>\\n\";\n\n echo \"<tr valign=top><td align=right><b>\".$t->translate(\"Rating\").\":</b></td><td>\".rating($db->f(\"BEWERTUNG\"), $db->f(\"BEWVONANZP\")).\"</td></tr>\\n\";;\n\n echo \"<tr valign=top><td align=right valign=top></td><td align=left>\";\n\n echo \"<FORM ACTION=\\\"rating.php\\\" METHOD=\\\"POST\\\">\\n\";\n echo \"<INPUT TYPE=\\\"HIDDEN\\\" NAME=\\\"dokuid\\\" VALUE=\\\"\".$db->f(\"ID\").\"\\\">\\n\";\n echo \"<INPUT TYPE=\\\"HIDDEN\\\" NAME=\\\"url\\\" VALUE=\\\"\".$sess->self_url().\"\\\">\\n\";\n echo \"<br><table cellpadding=0 cellspacing=0 border=0><tr>\\n<td align=center><IMG SRC=\\\"images/rateit.png\\\" HEIGHT=9 WIDTH=100></td></tr>\\n\";\n #echo \"<IMG src=\\\"images/blank.gif\\\" height=1 width=\\\"-15\\\" border=0 alt=\\\"blank.gif\\\">\t<IMG SRC=\\\"images/caret.png\\\" HEIGHT=6 WIDTH=9><BR>\\n\";\n echo \"<tr><td align=center><INPUT TYPE=\\\"RADIO\\\" NAME=\\\"bewerten\\\" VALUE=1>\\n\";\n echo \"<INPUT TYPE=\\\"RADIO\\\" NAME=\\\"bewerten\\\" VALUE=2>\\n\";\n echo \"<INPUT TYPE=\\\"RADIO\\\" NAME=\\\"bewerten\\\" VALUE=3></td></tr>\\n\";\n echo \"<tr><td align=center>\\n\";\n echo \"<INPUT TYPE=\\\"SUBMIT\\\" NAME=\\\"SUBMIT\\\" VALUE=\\\"\".$t->translate(\"Rate It\").\"\\\">\\n\";\n echo \"</td></tr></table>\\n\";\n echo \"</FORM></td></tr>\\n\";\n\n $dbaAut = new DB_DocsWell;\n $Sql = \" SELECT DISTINCT(a.ID), a.TITEL, b.SPRACHE, c.NAME \n\t\tFROM DOKUMENT a, SPRACHEDEF b, TYPDEF c, AUTOR_DOKUMENT ad \n\t\tWHERE \";\n $anzAut = count($Autoren);\n //echo \"----\".$anzAut.\"----\";\n if ($anzAut > 0) $Sql .= \" ( \";\n $counter = 0;\n if ($anzAut > 0) {\n\t while (list(, $einer) = each ($Autoren)) {\n\t\t$counter++;\n\t\t$Sql .= \" ad.AUTOR_ID=$einer \";\n \tif ($anzAut > $counter) $Sql .= \" OR \";\n\t }\t\n \n \tif ($anzAut > 0) $Sql .= \" ) \";\n \t$Sql .= \"\t AND a.ID = ad.DOKUMENT_id\n\t\t\t\tAND a.ID!=\".$db->f(\"ID\").\" \n\t\t\t\tAND a.SPRACHE=b.ID \n\t\t\t\tAND a.TYP=c.ID \n\t\t\t\tAND a.STATUS != 'D'\";\n \t$Sql .= \" ORDER BY a.AENDERUNGSDATUM DESC\";\n\t$Sql .= \" LIMIT 20\";\n \t//echo $Sql;\n \t$dbaAut->query($Sql);\n \t$i = 0;\n \twhile ($dbaAut->next_record()) {\n \t\n \t if ($i == 0) {\n \t echo \"<tr><td colspan=2>&nbsp;</td></tr>\";\n \t if ($anzAut == 1) echo \"<tr valign=top><td align=right valign=top><b>\".$t->translate(\"Others by Author\").\":</b></td><td>\";\n \t else echo \"<tr valign=top><td align=right valign=top><b>\".$t->translate(\"Others from the authors\").\":</b></td><td>\";\n \t } else {\n \t echo \"<br>\";\n \t }\n \t echo \"<a href=\\\"docbyid.php?id=\".$dbaAut->f(\"ID\").\"\\\">\".$dbaAut->f(\"TITEL\").\"</a> \".$dbaAut->f(\"SPRACHE\").\" (\".$dbaAut->f(\"NAME\").\")\\n\";\n \t $i++;\n }\n }\n echo \"</td></tr></table>\\n\";\n $bx->box_body_end();\n $bx->box_title_begin();\n echo \"<b><a href=\\\"\".$sess->url(\"update_online.php\").$sess->add_query(array(\"ID\" => $db->f(\"ID\"))).\"\\\" class=\\\"small\\\"><img src=\\\"images/recycled.png\\\" border=0>&nbsp;\".$t->translate(\"Update\").\"</a>&nbsp;&nbsp;<a href=\\\"\".$sess->url(\"cmtdoc.php\").$sess->add_query(array(\"id\" => $db->f(\"ID\"))).\"\\\" class=\\\"small\\\"><img src=\\\"images/txt.png\\\" border=0>&nbsp;\".$t->translate(\"Comment\").\"</a></b>\\n\";\n $bx->box_title_end();\n $bx->box_end();\n}", "title": "" }, { "docid": "40ddd5ec544a5cb969998514694c0cd5", "score": "0.5104173", "text": "private function emitirDespesasComEnsino() {\n\n if (!$this->exibirRelatorio(self::EMITIR_DESPESAS_MDE)) {\n return false;\n }\n\n $oDados = $this->getDadosDespesasComEnsino();\n $this->oPdf->setAutoNewLineMulticell(false);\n $this->oPdf->MultiCell(90, 6, \"DESPESAS COM MANUTENÇÃO E DESENVOLVIMENTO DO ENSINO\", 'TBR', 'C');\n $this->oPdf->MultiCell(30, 6, \"Valor Apurado até o Bimestre\", 'TBL', 'C');\n $this->oPdf->Cell(70, 3, \"Limite Constitucionais Anuais\", 'TBL', 1, 'C');\n $this->oPdf->SetX(130);\n $this->oPdf->Cell(35, 3, \"% Mínimo a Aplicar no Exercício\", 'BLR', 0, 'C');\n $this->oPdf->Cell(35, 3, \"% Aplicado Até o Bimestre\", 'BL', 1, 'C');\n\n $this->oPdf->MultiCell(90, 3, \"Mínimo Anual de 25% das Receitas de Impostos em MDE\", 'R', 'L');\n $this->oPdf->MultiCell(30, 3, db_formatar($oDados->nMinimoAtualMDEAteBimestre, 'f'), 'L', 'R');\n $this->oPdf->MultiCell(35, 3, db_formatar(25, 'f'), 'L', 'R');\n $this->oPdf->MultiCell(35, 3, db_formatar($oDados->nPercentualAplicadoComMDE, 'f'), 'L', 'R');\n $this->oPdf->Ln();\n\n $this->oPdf->MultiCell(90, 3, \"Mínimo Anual de 60% do FUNDEB na Remuneração do Magistério com Educação Infantil e Ensino Fundamental\", 'BR', 'L');\n $this->oPdf->MultiCell(30, 6, db_formatar($oDados->nMinimoAtualFUNDEBAteBimestre, 'f'), 'BL', 'R');\n $this->oPdf->MultiCell(35, 6, db_formatar(60, 'f'), 'BL', 'R');\n $this->oPdf->MultiCell(35, 6, db_formatar($oDados->nPercentualAplicadoComFUNDEB, 'f'), 'BL', 'R');\n $this->oPdf->ln();\n $this->oPdf->ln(3);\n $this->oPdf->setAutoNewLineMulticell(true);\n\n }", "title": "" }, { "docid": "363ba2c91b9fdd1284c8b1f3cf5f2000", "score": "0.5100558", "text": "private function chargeLesRessources()\r\n\t\t{\r\n\t\t$resultat=$this->maBD->chargement('ressource');\r\n\t\t$nb=0;\r\n\t\twhile ($nb<sizeof($resultat))\r\n\t\t\t{\r\n\t\t\t$this->toutesLesRessources->ajouteUneRessource($resultat[$nb][0],$resultat[$nb][1]);\r\n\t\t\t$nb++;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "4fec76f9ffcfb5154be28da6de051ef8", "score": "0.50983864", "text": "public function PagarPagSeguroDebito() : void\r\n {\r\n if (empty($this->erros)) {\r\n $pagseguro = new PagSeguro();\r\n \r\n $pagseguro->pagarDebito();\r\n }\r\n }", "title": "" }, { "docid": "aacd77063b3b3084b8394f3c97be713d", "score": "0.50960743", "text": "public function connexions(){\r\n $view = new View();\r\n $content = $view->Render(\"compte\" . DS . \"afficherconnexions\", false);\r\n }", "title": "" }, { "docid": "c51199084506b4937b62b27b3e47d43d", "score": "0.5086642", "text": "function listerTout() {\r\n echo \"Liste des paiements disponibles dans la base : <br/>\";\r\n $listePaiements = Paiement::findAll();\r\n foreach ($listePaiements as $value) {\r\n $value->afficher();\r\n }\r\n}", "title": "" }, { "docid": "5ace96a62edd94cde10a4d58df6a7e75", "score": "0.50847596", "text": "private function afficherItem() : string {\n $nom = $this->elem->nom ;\n $descr = $this->elem->descr;\n $id = $this->elem->id;\n $img = 'Pas d\\'image pour l\\'instant';\n $html = <<<END\n<div class=\"item\">\n <h3>$nom :</h3>\n <p>$descr</p>\n <p>$img</p>\n</div>\n<form class=\"formModifItem\" action=\"$id/modifier\">\n <input class=\"bouton\" type=\"submit\" name=\"modifItem\" value=\"Modifier\">\n</form>\nEND;\n return $html;\n }", "title": "" }, { "docid": "b7a5f3e527e0ea9b178c92b60ece9393", "score": "0.50847083", "text": "function detalle_nc($nro_orden,$simbolo)\r\n{global $db;\r\n//traemos los datos de las notas de credito asociadas (si es que hay)\r\n $query=\"select id_nota_credito,nota_credito.monto,nota_credito.observaciones,oc.valor_dolar,moneda.id_moneda,moneda.simbolo from (select * from n_credito_orden where nro_orden=$nro_orden) as oc join nota_credito using(id_nota_credito) join moneda using(id_moneda)\";\r\n $notas_credito=sql($query) or fin_pagina();\r\n if($notas_credito->RecordCount())\r\n {$ftotal_nc=0;\r\n ?>\r\n <table align=\"center\" width=\"100%\" border='0' cellspacing='1' bordercolor='#000000'>\r\n <tr align=\"center\" bgcolor=\"#800000\">\r\n <td colspan=\"4\">\r\n <font color=\"#FFFFFF\"><b>Notas de Crédito uitilizadas para el pago</b></font>\r\n </td>\r\n </tr>\r\n <tr id=mo>\r\n <td width=\"10%\">\r\n Nro\r\n </td>\r\n <td width=\"20%\">\r\n Monto\r\n </td>\r\n <td width=\"20%\">\r\n Valor Dolar\r\n </td>\r\n <td width=\"50%\">\r\n Observaciones\r\n </td>\r\n </tr>\r\n\r\n <?\r\n while(!$notas_credito->EOF)\r\n {?>\r\n <tr id=ma>\r\n <td align=\"center\">\r\n <?=$notas_credito->fields['id_nota_credito']?>\r\n </td>\r\n <td align=\"center\">\r\n <?=$notas_credito->fields['simbolo']?> -<?=$notas_credito->fields['monto']?>\r\n </td>\r\n <?\r\n //mostramos el valor dolar si viene cargado\r\n $valor_dolar_nc=($notas_credito->fields['valor_dolar']!=\"\")?formato_money($notas_credito->fields['valor_dolar']):\"No se aplica\";\r\n ?>\r\n <td align=\"center\">\r\n <?=$valor_dolar_nc?>\r\n </td>\r\n <td align=\"center\">\r\n <?=$notas_credito->fields['observaciones']?>\r\n </td>\r\n </tr>\r\n <?\r\n $fmonto=$notas_credito->fields['monto'];\r\n //si la orden es en pesos y la nota de credito en dolares\r\n //se multiplica el monto por el valor dolar\r\n if($simbolo==\"$\" && ($notas_credito->fields['simbolo']==\"U\\$S\"||$notas_credito->fields['simbolo']==\"u\\$s\"))\r\n $fmonto=$notas_credito->fields['monto']*$notas_credito->fields['valor_dolar'];\r\n //si la orden es en dolares y la nota de credito en pesos\r\n //se divide el monto por el valor dolar\r\n elseif(($simbolo==\"U\\$S\"||$simbolo==\"u\\$s\") && $notas_credito->fields['simbolo']==\"\\$\")\r\n $fmonto=$notas_credito->fields['monto']/$notas_credito->fields['valor_dolar'];\r\n $ftotal_nc+=$fmonto;\r\n $notas_credito->MoveNext();\r\n }?>\r\n <tr bgcolor=\"#800000\">\r\n <td colspan=\"4\">\r\n <font color=\"#FFFFFF\"><b>Monto Total de Notas de Crédito: <?=$simbolo?> -<?=formato_money($ftotal_nc)?></b></font>\r\n </td>\r\n </tr>\r\n </table>\r\n <?\r\n }//del if($notas_credito->RecordCount())\r\n return $ftotal_nc;\r\n}", "title": "" }, { "docid": "cc782f00f8b70fa08a7ca0ad13778072", "score": "0.5081006", "text": "function get_suplente_renovacion(){\n \n if ($this->dep('datos')->tabla('designacion')->esta_cargada()) {\n $datos=$this->dep('datos')->tabla('designacion')->get();\n if($datos['carac']=='S'){\n //recupero el costo de la categ del suplente en el periodo presupuestando\n $sql=\"select * from mocovi_costo_categoria c, mocovi_periodo_presupuestario p\n where c.id_periodo=p.id_periodo \n and p.anio=\".$this->s__datos_filtro['anio_presup']\n .\" and c.codigo_siu='\".$datos['cat_mapuche'].\"'\";\n $res= toba::db('designa')->consultar($sql);\n $desde = dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($this->s__datos_filtro['anio_presup']);//primer dia del anio actual\n $hasta = dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($this->s__datos_filtro['anio_presup']);//ultimo dia del anio presupuestando\n $sql=\"select * from (select a.id_designacion,a.descripcion, a.costo_basico from \"\n . \"(select distinct t_d.id_designacion,t_d.uni_acad,t_do.apellido||', '||t_do.nombre||'('||t_d.cat_estat||t_d.dedic||'-'||t_d.carac||'-'||t_d.id_designacion||')' as descripcion,sub.costo_basico\"\n . \" from designacion t_d \"\n . \" INNER JOIN docente t_do ON (t_d.id_docente=t_do.id_docente) \"\n . \" INNER JOIN novedad t_n ON (t_d.id_designacion=t_n.id_designacion and t_n.tipo_nov in (2,3,5) and t_n.desde<='\".$hasta.\"' and t_n.hasta>='\".$desde.\"') \"//licencia sin goce ,con goce o cese\n . \" INNER JOIN (select * from mocovi_costo_categoria c, mocovi_periodo_presupuestario p\n where c.id_periodo=p.id_periodo and\n p.anio=\".$this->s__datos_filtro['anio_presup'].\")sub ON (sub.codigo_siu=t_d.cat_mapuche )\"\n . \" where t_d.tipo_desig=1)a, unidad_acad b \"\n . \" where a.uni_acad=b.sigla \"\n . \" order by descripcion )sub2\"\n . \" where costo_basico<=\".$res[0]['costo_basico']; \n //var_dump($sql);exit;\n return toba::db('designa')->consultar($sql); \n }\n }\n }", "title": "" }, { "docid": "5df190fd7a61e7e6b9d9cef5f555a002", "score": "0.5079787", "text": "function reportePagoVariable(){\n\t\t$this->procedimiento='oip.ft_archivo_horas_piloto_sel';\n\t\t$this->transaccion='OIP_REPPILO_SEL';\n\t\t$this->tipo_procedimiento='SEL';\t\t\t\t\t\t\n $this->setCount(false);\n\n $this->setParametro('id_archivo_horas_piloto','id_archivo_horas_piloto','integer');\n \n //captura de datos\n $this->captura('nombre', 'varchar');\n $this->captura('gestion', 'int4');\n $this->captura('periodo', 'varchar');\n $this->captura('pago_total', 'numeric');\n $this->captura('nombre_piloto', 'varchar');\n $this->captura('escala_salarial', 'varchar');\n $this->captura('ci', 'varchar');\n $this->captura('pic_sic', 'varchar');\n $this->captura('horas_vuelo','int4');\n $this->captura('horas_simulador_full', 'int4');\n $this->captura('horas_simulador_fix', 'int4');\n $this->captura('horas_simulador_full_efectivas', 'int4');\n $this->captura('horas_simulador_fix_efectivas', 'int4');\n $this->captura('pago_variable', 'numeric');\n $this->captura('factor_esfuerzo', 'numeric');\n $this->captura('monto_horas_vuelo', 'numeric');\n $this->captura('monto_horas_simulador_full', 'numeric');\n $this->captura('monto_horas_simulador_fix', 'numeric');\n $this->captura('tipo_flota', 'varchar');\n $this->captura('pic_sic_servicio', 'varchar');\n\n\t\t//Ejecuta la instruccion\n $this->armarConsulta();\n //echo($this->consulta);exit; \n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n return $this->respuesta; \n }", "title": "" }, { "docid": "54fd8f8222bcce8290ba3f476047b720", "score": "0.5077516", "text": "public function DibujeItemsBuscadosVentas($key,$PageReturn,$Variable){\r\n $this->css=new CssIni(\"\");\r\n \r\n $Titulo=\"Crear Item En servicios\";\r\n $Nombre=\"ShowItemsBusqueda\";\r\n $RutaImage=\"\";\r\n $javascript=\"\";\r\n $VectorBim[\"f\"]=0;\r\n $target=\"#DialBusquedaItems\";\r\n $this->css->CrearBotonImagen($Titulo,$Nombre,$target,$RutaImage,\"\",0,0,\"fixed\",\"left:10px;top:100\",$VectorBim);\r\n \r\n $VectorDialogo[\"F\"]=0;\r\n $this->css->CrearCuadroDeDialogo(\"DialBusquedaItems\", \"Resultados\");\r\n $this->css->CrearDiv(\"DivBusqueda\", \"\", \"center\", 1, 1);\r\n $this->css->CrearTabla();\r\n $tab=\"productosventa\";\r\n $Condicion=\" WHERE idProductosVenta='$key' OR Nombre LIKE '%$key%' OR Referencia LIKE '%$key%'\";\r\n $consulta=$this->obCon->ConsultarTabla($tab,$Condicion);\r\n if($this->obCon->NumRows($consulta)){\r\n $this->css->FilaTabla(16);\r\n $this->css->ColTabla(\"<strong>Agregar</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>ID</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Referencia</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Nombre</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>PrecioVenta</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Mayorista</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Existencias</strong>\", 1);\r\n $this->css->CierraFilaTabla();\r\n while($DatosProducto=$this->obCon->FetchArray($consulta)){\r\n $this->css->FilaTabla(16);\r\n print(\"<td>\");\r\n //$Titulo=\"\";\r\n //$Nombre=\"Agregar\";\r\n //$RutaImage=\"../images/add.png\";\r\n //$javascript=\"\";\r\n //$VectorBim[\"f\"]=0;\r\n $target=\"$PageReturn$DatosProducto[idProductosVenta]&TxtIdCliente=$Variable&TxtTablaItem=$tab\";\r\n //$this->css->CrearLinkImagen($Titulo,$Nombre,$target,$RutaImage,\"\",50,50,\"relative\",\"\",$VectorBim);\r\n $this->css->CrearLink($target, \"_self\", \"Agregar\");\r\n print(\"</td>\");\r\n $this->css->ColTabla($DatosProducto[\"idProductosVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Referencia\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Nombre\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioMayorista\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Existencias\"], 1);\r\n \r\n $this->css->CierraFilaTabla();\r\n }\r\n }\r\n \r\n $tab=\"servicios\";\r\n $Condicion=\" WHERE idProductosVenta='$key' OR Nombre LIKE '%$key%' OR Referencia LIKE '%$key%'\";\r\n $consulta=$this->obCon->ConsultarTabla($tab,$Condicion);\r\n if($this->obCon->NumRows($consulta)){\r\n while($DatosProducto=$this->obCon->FetchArray($consulta)){\r\n $this->css->FilaTabla(16);\r\n print(\"<td>Agregar\");\r\n $Titulo=\"\";\r\n $Nombre=\"Agregar\";\r\n $RutaImage=\"../images/add.png\";\r\n $javascript=\"\";\r\n $VectorBim[\"f\"]=0;\r\n $target=\"$PageReturn$DatosProducto[idProductosVenta]&TxtIdCliente=$Variable&TxtTablaItem=$tab\";\r\n $this->css->CrearLinkImagen($Titulo,$Nombre,$target,$RutaImage,\"\",50,50,\"relative\",\"\",$VectorBim);\r\n print(\"</td>\");\r\n $this->css->ColTabla($DatosProducto[\"idProductosVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Referencia\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Nombre\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioMayorista\"], 1);\r\n $this->css->CierraFilaTabla();\r\n }\r\n }\r\n \r\n $tab=\"productosalquiler\";\r\n $Condicion=\" WHERE idProductosVenta='$key' OR Nombre LIKE '%$key%' OR Referencia LIKE '%$key%'\";\r\n $consulta=$this->obCon->ConsultarTabla($tab,$Condicion);\r\n if($this->obCon->NumRows($consulta)){\r\n while($DatosProducto=$this->obCon->FetchArray($consulta)){\r\n $this->css->FilaTabla(16);\r\n print(\"<td>Agregar\");\r\n $Titulo=\"\";\r\n $Nombre=\"Agregar\";\r\n $RutaImage=\"../images/add.png\";\r\n $javascript=\"\";\r\n $VectorBim[\"f\"]=0;\r\n $target=\"$PageReturn$DatosProducto[idProductosVenta]&TxtIdCliente=$Variable&TxtTablaItem=$tab\";\r\n $this->css->CrearLinkImagen($Titulo,$Nombre,$target,$RutaImage,\"\",50,50,\"relative\",\"\",$VectorBim);\r\n print(\"</td>\");\r\n $this->css->ColTabla($DatosProducto[\"idProductosVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Referencia\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Nombre\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioMayorista\"], 1);\r\n \r\n $this->css->CierraFilaTabla();\r\n }\r\n }\r\n \r\n $this->css->CerrarTabla();\r\n $this->css->CerrarDiv();\r\n $this->css->CerrarCuadroDeDialogo();\r\n \r\n}", "title": "" }, { "docid": "bf4e5a040ef86084d570aff06539e271", "score": "0.5076839", "text": "public function postCreePdf()\n {\n\t\tif (substr(Session::get('dossCourant'), -7)==\"Partage\")//choix d'un fichier dans le dossier \"Partage\"\n\t\t{\n\t\t\t//initialiosation du chemin\n\t\t\t$fichier=Input::get('dossier').\"/\".Input::get('fichier');\n\t\t\t//ouverture du fichier et lecture de la premiere ligne (contenant l'id)\n\t\t\t$fic=fopen($fichier, 'r');\n\t\t\t$ligne=fgets($fic);\n\t\t\tfclose($fic);\n\t\t\t//récupération de l'id du fichier\n\t\t\t$id=intval($ligne);\n\t\t\t//recuperation du chemin vers le fichier\n\t\t\t$req=DB::table('fichier')->where('fich_id', $id)->first();\n\t\t\t$dossier=$req->fich_chemin;\n\t\t\t$fichier=$dossier.\"/\".Input::get('fichier');\n\t\t}\n\t\telse//fichier non partage\n\t\t{\n\t\t\t//initialisation du chemin\n\t\t\t$fichier=Input::get('dossier').\"/\".Input::get('fichier');\n\t\t}\n\n\t\t//creation du fichier\n\t\t$pdf = new PDF();\n\t\t//pagination\n\t\t$pdf->AliasNbPages();\n\t\t// Chargement des données\n\t\t$data = $pdf->LoadData($fichier);\n\t\t// Titres des colonnes\n\t\t$header = $data[1];\n\t\t$pdf->SetFont('Arial','',14);\n\t\t$pdf->AddPage();\n\t\t$pdf->FancyTable($header,$data);\n\t\t//chemin de création du fichier provisoire\n\t\t$chemin=\"F:/LICENCE_INFO/logiciels/xampp/htdocs/SIW2014-1/app/\".Input::get('fichier').\".pdf\";\n\t\t//creation du fichier provisoire\n\t\t$pdf->Output($chemin);\n\t\t//téléchargement du fichier\n\t\treturn Response::download($chemin);\n\t\t//effacement du fichier provisoire\n\t\tunlink($chemin);\n }", "title": "" }, { "docid": "1592aa7bf395f3a09fe2616ae3e70616", "score": "0.5069463", "text": "protected function frappe() {\n \tdebug(\"on tape\",true);\n \treturn $this->resoudAttaque($this->applicqueModificateur(jetPourToucherCaC($this->_uniteAttaquante->getCac(),$this->_uniteAttaquee->getCac()),'att'));\n \t// si c'est un vehicule, pas de combat melee => charge seulement\n \t\n }", "title": "" }, { "docid": "cadf2df8de6b97cad11a28c337d7f30a", "score": "0.5068478", "text": "function listerTout() {\r\n echo \"Liste des comptes disponibles dans la base : <br/>\";\r\n $listeComptes = Compte::findAll();\r\n foreach ($listeComptes as $value) {\r\n $value->afficher();\r\n }\r\n}", "title": "" }, { "docid": "612d1ad2c3da819e8fe51c8aa89f380d", "score": "0.5062024", "text": "public function cortesia()\n {\n $this->costo = 0;\n }", "title": "" }, { "docid": "5d79c4de623a2d8aea893f2f32c9c158", "score": "0.5052499", "text": "public function Admi()\r\n {\r\n require_once(\"../modelo/m_pedido.php\");\r\n $this->modelo=new M_Pedido();\r\n require_once(\"../vista/VA_Pedidos.php\");\r\n }", "title": "" }, { "docid": "a4cd1c668a2e74b9741c5231aa085efc", "score": "0.5049635", "text": "function contenu($donnees){\n\t// Les données sont transmit via un array\n\t// Exemple :\n\t// \t$donnees = array(\n\t// \t\t\"INT ID\" => array(\"titre\" => \"STR TITRE\", \"contenu\" => \"STR MESSAGE\", \"date\" => \"STR DATE\", \"numCommentaire\" => \"INT AGE\")\n\t// \t\t);\n\tforeach($donnees as $i => $id){\n\t\techo '<h1>'. $id[\"titre\"] .'</h1>';\n\t\techo '<p>'. $id[\"contenu\"] .'</p>';\n\t\techo '<p>Écrit le :'. $id[\"date\"] .'. '. $id[\"numCommentaire\"] .' commentaires.</p>';\n\t\t}\n}", "title": "" }, { "docid": "b6fabf5d14b468318530051df78311df", "score": "0.50475097", "text": "function dossier() {\n $pathTemp = \"/home/\" . $_POST['user'];\n\n if (is_dir($pathTemp) == true) {\n /* scandir liste les fichiers et dossiers dans un dossiers */\n $tabl_dossier = scandir($pathTemp);\n $tabl_dossier = triGenerique($pathTemp, $tabl_dossier);\n $d = 0;\n\n /* count compte tout les elements d'un tableau */\n for ($i = 0; $i < count($tabl_dossier); $i++) {\n\n if ($tabl_dossier[$i] != null && $tabl_dossier[$i] != \"\" && $tabl_dossier[$i][0] != '.') {\n $pathDossier = $pathTemp . \"/\" . $tabl_dossier[$i];\n $d = $d + 0.1;\n echoGenerique($tabl_dossier, $pathDossier, $i, $d);\n }\n }\n } else {\n echo \"Nom d'utilisateur invalide\";\n }\n}", "title": "" }, { "docid": "e33cdc77f34285cacead9f39e2a636e9", "score": "0.50465465", "text": "function traitement($source_html)\n{\n\t//séparateur tokenisation\n\t$separateurs=\" \\\".',«’!?;:&-=+@#{}[]()0123456789\";\n\t\n\t//récuperation de keywords et descriptif\n\t$keywords_description = get_keywords_description($source_html);\n\n\t\n\t//récuperation de titre\n\t$titre = strtolower(get_title($source_html));\n\t\n\t//unification des chaines à traiter \n\t$texte_head =$keywords_description . \" \" . $titre;\n\t\n\t//transformation du html en ascii\n\t$texte_head= entitesHtml_toasci($texte_head);\n\t\n\t//tokenisation des données head\n\t$tab_mots_occurrences = explode_bis($texte_head,$separateurs); \n\t//print_r($tab_mots_occurrences);\n\t//passage occurrences vers poids\n\t$tab_mots_poids_body = array_count_values($tab_mots_occurrences);\t\n\t//print_r($tab_mots_poids_body);\n\t$coefficient = 1.5;\n\t$tab_mots_poids_head = occurrences2poids($tab_mots_poids_body,$coefficient);\n\t//print_r($tab_mots_poids_head);\n\t\n\n\t//2 :traitement de body\n\t\n\t$texte_body = strtolower(get_body($source_html));\n\t//transformation du html en ascii\n\t$texte_body= entitesHtml_toasci($texte_body);\n\n\t//tokenisation des données head\n\t$tab_mots = explode_bis( $texte_body,$separateurs); \n\t\n\t\n\t\n\t// liste de mots avec leurs nombres d'occurrences.\n\t$tab_mots_poids_body = array_count_values($tab_mots);\n\t//print_r($tab_mots_poids_body);\n\t\n\t\n\n\t$tab_mot_poids = fusion_deux_tableaux ($tab_mots_poids_head,$tab_mots_poids_body );\n\t//$tab_mots_poids_head = occurrences2poids($tab_mots_occurrences,$coefficient);\n\tPrint_r($tab_mot_poids);\n\tinsertionBd($tab_mot_poids,$source_html);\n\t\n}", "title": "" }, { "docid": "766f34394ef68866d9298a1fe8a457ac", "score": "0.5040908", "text": "function xmlNomina(){\n\tdate_default_timezone_set(\"Mexico/General\"); \n\trequire_once('../SAT/config.php');\n\t$datosemisor = $this->NominalibreModel->infoFactura();\n\t if($datosemisor->num_rows>0){\n\t \tif($r = $datosemisor->fetch_object()){\n\t \t\t$rfc_cliente = $r->rfc;\n\t\t\t$cer_cliente = $pathdc . '/' . $r->cer;\n\t $key_cliente = $pathdc . '/' . $r->llave;\n\t $pwd_cliente = $r->clave;\n\t \t$pac = $r->pac; \n\t $datosemisorcp = $r->cp;\n\t\t\t$razonsocial = $r->razon_social;\n\t\t\t$claveregfiscal = $r->clavereg;\n\t \t}\n\t }\n\t$idnomp = $_REQUEST['idnomp'];\n\t$configuracionNominas = $this->CatalogosModel->configuracionNominas();\n\t$empleadosdatos = $this->PrenominaModel->empleadosDeXML($_REQUEST['idnomp']);\n\twhile($empleado = $empleadosdatos->fetch_object()){\n\t\t\n\t\t$fechaXML = date('Y-m-d\\TH:i:s');\n\t\t$this->generaPemNomina($rfc_cliente, $key_cliente, $pwd_cliente, $pathdc);\n\t\t$fff = date('YmdHis').rand(100,999);\n\t\t$cer = $this->generaCertificadoNomina($rfc_cliente,$cer_cliente,$pathdc);\n\t\t$noc = $this->generaNoCertificadoNomina($rfc_cliente,$cer_cliente,$pathdc);\t \n\t\t$tipocontrato = $this->NominalibreModel->tipocontratoEdicion($empleado->idtipocontrato);\n\t\t$PeriodicidadPago = $this->NominalibreModel->PeriodicidadPago($empleado->idtipop);\n// \t\t\n\t\tif($e->origen == 0 ){\n\t\t\t$TipoNomina = \"O\";\n\t\t}else{\n\t\t\t$TipoNomina = \"E\";\n\t\t\t$PeriodicidadPago->clave = 99;\n\t\t}\n\t\t$totalpercep = $this->PrenominaModel->importePortipoConcepto($idnomp, $empleado->idEmpleado, 1);\n\t\t$totaldeducciones = $this->PrenominaModel->importePortipoConcepto($idnomp, $empleado->idEmpleado, 2);\n\t\t$totalotrospagos = $this->PrenominaModel->importePortipoConcepto($idnomp, $empleado->idEmpleado, 4);\n\t\t\n\t\t$valorUnitario = number_format($totalpercep->importe + $totalotrospagos->importe,2,'.','');\n\t\t\n\t\t$cadOri = \"\";\n\t\t$cadOri.= '3.3';//version\n\t\t$cadOri.= \"|\".$fechaXML;//fecha\n\t\t$cadOri.= \"|99\";//formaDePago\n\t\t$cadOri.= \"|\".$noc;//NoCertificado\n\t\t$cadOri.= \"|\".$valorUnitario;//subTotal\n\t\tif($totaldeducciones->importe >0){\n\t\t\t$totaldeducciones->importe = number_format($totaldeducciones->importe,2,'.','');\n\t\t\t$cadOri.= \"|\".$totaldeducciones->importe;//descuento\n\t\t}\n\t\t\n\t\t$total = $valorUnitario-$totaldeducciones->importe;\n\t\t$cadOri.= \"|MXN\";//Moneda\n\t\t$cadOri.= \"|\".$total;//total\n\t\t$cadOri.= \"|N\";//TipoDeComprobante\n\t\t$cadOri.= \"|PUE\";//MetodoPago\n\t\t$cadOri.= \"|\".$datosemisorcp;//LugarExpedicion\t\n\t\t$cadOri.= \"|\".$rfc_cliente;//rfc emisor\n\t\t$cadOri.= \"|\".$razonsocial;//nombre\n\t\t\n\t\t$cadOri.= \"|\".$claveregfiscal;//Regimen\n\t\t$cadOri.= \"|\".$empleado->rfc;//rfc receptor\n\t\t$cadOri.= \"|\".$empleado->nombre;//nombre receptor\n\t\t$cadOri.= \"|P01\";//UsoCFDI\n\t\t$cadOri.= \"|84111505\";//ClaveProdServ\n\t\t$cadOri.= \"|1\";//cantidad\n\t\t$cadOri.= \"|ACT\";//clave unidad\n\t\t$cadOri.= \"|Pago de nómina\";//descripcion\n\t\t$cadOri.= \"|\".$valorUnitario;//valorUnitario\n\t\t$cadOri.= \"|\".$valorUnitario;//importe\n\t\t//cfdi\n\t\t$datosNomina = $this->CatalogosModel->datosNomina($idnomp);\n\t\t$cadOri.= '|1.2';/*version*/\n \t\t$cadOri.= '|'.$datosNomina->TipoNomina; //TipoNomina \n\t\t$cadOri.= '|'.$_REQUEST['fechapago'];//FechaPago\n\t\t$cadOri.= '|'.$datosNomina->fechainicio;//FechaInicialPago\n\t\t$cadOri.= '|'.$datosNomina->fechafin;// FechaFinalPago\n\t\t$decimales = explode(\".\",$empleado->diaspagados);\n\t\tif($decimales[1]<=0){\n\t\t\t $empleado->diaspagados = number_format($empleado->diaspagados,0);\n\t\t}\n\t\t$cadOri.= '|'.$empleado->diaspagados;//NumDiasPagados\n// \t\t\n\t\tif($totalpercep->importe >0){\n\t\t\t$cadOri.= '|'.$totalpercep->importe;//TotalPercepciones\n\t\t}\n\t\tif($totaldeducciones->importe > 0){\n\t\t\t$cadOri.= '|'.$totaldeducciones->importe;//TotalDeducciones\n\t\t}\n\t\tif($totalotrospagos->importe >0){\n\t\t\t$cadOri.= '|'.$totalotrospagos->importe;//TotalOtrosPago\n\t\t}\n\t\t\n\t\t$regpatronal = $this->NominalibreModel->registroPatronalEdicion($configuracionNominas->idregistrop);\n\t\t$cadOri.= '|'.$regpatronal->registro;//RegistroPatronal\n\t\t\n\t\t$antiguedad = $this->generaAntiguedad($empleado->fechaActiva,$datosNomina->fechafin);\n\t\tif($empleado->curp){\n\t\t\t$cadOri.= '|'.$empleado->curp;//\t Curp\n\t\t}\n\t\tif($empleado->nss){\n\t\t\t$cadOri.= '|'.$empleado->nss;//\tNumSeguridadSocial\n\t\t}\n\t\t$cadOri.= '|'.$empleado->fechaActiva;//FechaInicioRelLaboral\n\t\t$cadOri.= '|'.$antiguedad;//Antigüedad\n\t\t$cadOri.= '|'.$tipocontrato->clave;//TipoContrato\n\t\t\n\t\t$sindicalizado = \"No\";\n\t\tif($empleado->idtipoempleado == \"1\"){//SI-Sindicalizado\n\t\t\t$sindicalizado = \"Sí\";\n\t\t}\n\t\t$cadOri.= '|'.$sindicalizado;//Sindicalizado\n\t\tif($empleado->idturno){\n\t\t\t$jornada = $this->NominalibreModel->turnoJornada($empleado->idturno);\n\t\t\t$cadOri.= '|'.$jornada->clave;//TipoJornada\n\t\t}\n\t\t$regimenContrato = $this->NominalibreModel->regimenContrato($empleado->idregimencontrato);\n\t\t$cadOri.= '|'.$regimenContrato->clave;//TipoRegimen(se refiere al regimen de contratacion)\n\t\t$cadOri.= '|'.$empleado->codigo;// NumEmpleado\n\t\t\n\t\tif($empleado->idDep){\n\t\t\t$departamento = $this->NominalibreModel->depaNombre($empleado->idDep);\n\t\t\t$cadOri.= '|'.$departamento->nombre;//Departamento\n\t\t}\n\t\tif($empleado->idPuesto){\n\t\t\t$puesto = $this->NominalibreModel->puestoNombre($empleado->idPuesto);\n\t\t\t$cadOri.= '|'.$puesto->nombre;//Puesto\n\t\t\t$cadOri.= '|'.$puesto->idclaveriesgopuesto;//RiesgoPuesto\n\t\t}\n\t\t$cadOri.= '|'.$PeriodicidadPago->clave;//PeriodicidadPago\n\t\t\n\t\tif($empleado->sbcfija){// SalarioDiarioIntegrado SDI\n\t\t\t$cadOri.= '|'.$empleado->sbcfija;\n\t\t}\n\t\t$estado = $this->NominalibreModel->estadoClave($empleado->idestado);\n\t\t$cadOri.= '|'.$estado->clave;// ClaveEntFed \n\t\t\n\t\t$xml = new DomDocument('1.0', 'UTF-8');\n\t\t$raiz = $xml->createElement('cfdi:Comprobante');\n\t\t$raiz->setAttribute(\"xmlns:cfdi\",\"http://www.sat.gob.mx/cfd/3\");\n\t\t$raiz->setAttribute(\"xmlns:xsi\",\"http://www.w3.org/2001/XMLSchema-instance\");\n\t\t$raiz->setAttribute(\"xmlns:nomina12\",\"http://www.sat.gob.mx/nomina12\");\n\t\t$raiz->setAttribute(\"xsi:schemaLocation\",\"http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd http://www.sat.gob.mx/nomina12 http://www.sat.gob.mx/sitio_internet/cfd/nomina/nomina12.xsd\");\n\t\t$raiz->setAttribute(\"Version\",\"3.3\");\n\t\t$raiz->setAttribute(\"Fecha\",$fechaXML);\n\t\t$raiz->setAttribute(\"SubTotal\",$valorUnitario);//krmn\n\t\tif($totaldeducciones->importe >0){\n\t\t\t$raiz->setAttribute(\"Descuento\",$totaldeducciones->importe);\n\t\t}\n\t\t$raiz->setAttribute(\"Total\",$valorUnitario-$totaldeducciones->importe);\n\t\t$raiz->setAttribute(\"LugarExpedicion\",$datosemisorcp);\n\t\t$raiz->setAttribute('FormaPago',\"99\");\n\t\t//$raiz->setAttribute('TipoCambio',1); 3.2\n\t\t$raiz->setAttribute('Moneda',\"MXN\");\n\t\t$raiz->setAttribute('TipoDeComprobante','N');\n\t\t$raiz->setAttribute('MetodoPago',\"PUE\");\n\t\t//fin valores default sat\n\t\t\n\t\t$raiz->setAttribute('Certificado',$cer);//certificado se genera\n\t\t$raiz->setAttribute('NoCertificado',$noc);//certificado fijo\n\t\t//EMISOR\n\t\t$datosaFacturacion \t= $this->NominalibreModel->datosaFacturacion();\n\t\t\n\t\t$Emisor = $xml->createElement('cfdi:Emisor');\n\t\t$Emisor->setAttribute('Rfc',$datosaFacturacion->rfc);\n\t\t$Emisor->setAttribute('Nombre',$datosaFacturacion->razon_social);\n\t\t$Emisor->setAttribute('RegimenFiscal',$claveregfiscal);\n\t\t$raiz->appendChild( $Emisor );\n\t\t// FIN EMISOR\n// \t\t\n// \t\t\n\t\t//RECEPTOR\n\t\t$Receptor = $xml->createElement('cfdi:Receptor');\n\t\t$Receptor->setAttribute('Rfc',$empleado->rfc);\n\t\t$Receptor->setAttribute('Nombre',$empleado->nombre);\n\t\t\n\t\t$Receptor->setAttribute('UsoCFDI',\"P01\");\n\t\t$raiz->appendChild( $Receptor );\n\t\t//FIN RECEPTOR\n\t\t//CONCEPTOS\n\t\t$Conceptos = $xml->createElement('cfdi:Conceptos');\n\t\t//default\n\t\t$Conceptosdetalle = $xml->createElement('cfdi:Concepto');\n\t\t$Conceptosdetalle->setAttribute('Cantidad','1');\n\t\t$Conceptosdetalle->setAttribute('ClaveProdServ','84111505');\n\t\t$Conceptosdetalle->setAttribute('ClaveUnidad','ACT');\n\t\t$Conceptosdetalle->setAttribute('Descripcion','Pago de nómina');\n\t\t//fin default\n\t\t$Conceptosdetalle->setAttribute('ValorUnitario',$valorUnitario);\n\t\t$Conceptosdetalle->setAttribute('Importe',$valorUnitario);\n\t\t\n\t\t$Conceptos->appendChild( $Conceptosdetalle );\n\t\t\n\t\t$raiz->appendChild( $Conceptos );\n\t\t// cfdi:Complemento\n\t\t$Complemento = $xml->createElement('cfdi:Complemento');\n\t\t$nomina12 = $xml->createElement('nomina12:Nomina');\n\t\t$nomina12->setAttribute('Version',1.2);\n\t\t$nomina12->setAttribute('TipoNomina',$TipoNomina);\n\t\t$nomina12->setAttribute('FechaPago',$_REQUEST['fechapago']);\n\t\t$nomina12->setAttribute('FechaInicialPago',$datosNomina->fechainicio);\n\t\t$nomina12->setAttribute('FechaFinalPago',$datosNomina->fechafin);\n\t\t$nomina12->setAttribute('NumDiasPagados',$empleado->diaspagados);\n\t\tif($totalpercep->importe >0){\n\t\t\t$nomina12->setAttribute('TotalPercepciones',$totalpercep->importe);\n\t\t}\n\t\tif($totaldeducciones->importe >0){\n\t\t\t$nomina12->setAttribute('TotalDeducciones',$totaldeducciones->importe); //TotalImpuestosRetenidos+TotalOtrasDeducciones\n\t\t}\n\t\tif($totalotrospagos->importe >0){\n\t\t\t$nomina12->setAttribute('TotalOtrosPagos',$totalotrospagos->importe); //\n\t\t}\n\t\t\n\t\t$nomina12emisor = $xml->createElement('nomina12:Emisor');\n\t\t$nomina12emisor->setAttribute('RegistroPatronal',$regpatronal->registro);\n\t\t$nomina12->appendChild( $nomina12emisor );\n\t\t\n\t\t$nomina12receptor = $xml->createElement('nomina12:Receptor');\n\t\t$nomina12receptor->setAttribute('Antigüedad',$antiguedad);\n\t\tif($empleado->curp){\n\t\t\t$nomina12receptor->setAttribute('Curp',$empleado->curp);\n\t\t}\n\t\tif($empleado->nss){\n\t\t\t$nomina12receptor->setAttribute('NumSeguridadSocial',$empleado->nss);\n\t\t}\n\t\t$nomina12receptor->setAttribute('FechaInicioRelLaboral',$empleado->fechaActiva);\n\t\t$nomina12receptor->setAttribute('TipoContrato',$tipocontrato->clave);\n\t\t$nomina12receptor->setAttribute('Sindicalizado',$sindicalizado);\n\t\tif($jornada->clave){\n\t\t\t$nomina12receptor->setAttribute('TipoJornada',$jornada->clave);\n\t\t}\n\t\t$nomina12receptor->setAttribute('TipoRegimen',$regimenContrato->clave);\n\t\t$nomina12receptor->setAttribute('NumEmpleado',$empleado->codigo);\n\t\tif($departamento->nombre){\n\t\t\t$nomina12receptor->setAttribute('Departamento',$departamento->nombre);\n\t\t}\n\t\tif($empleado->idPuesto){\n\t\t\t$puesto = $this->NominalibreModel->puestoNombre($empleado->idPuesto);\n\t\t\t$nomina12receptor->setAttribute('Puesto',$puesto->nombre);//Puesto\n\t\t\t$nomina12receptor->setAttribute('RiesgoPuesto',$puesto->idclaveriesgopuesto);//RiesgoPuesto\n\t\t}\n\t\t$nomina12receptor->setAttribute('PeriodicidadPago',$PeriodicidadPago->clave);\n\t\tif($empleado->sbcfija){// SalarioDiarioIntegrado SDI\n\t\t\t$nomina12receptor->setAttribute('SalarioDiarioIntegrado',$empleado->sbcfija);\n\t\t}\n\t\t$nomina12receptor->setAttribute('ClaveEntFed',$estado->clave);\n\t\t/* SubContratacion aqui iria esta parte revisar si abarcamos hasta aqui */\n\t\t$nomina12->appendChild( $nomina12receptor );\n\t\t/* FIN receptor */\n// \t\t\n\t\t/*PERCEPCIONES*/\n\t\tif($totalpercep->importe > 0){\n\t\t\t\n\t\t\t$Percepciones = $xml->createElement('nomina12:Percepciones');\n\t\t\t\t$Percepciones->setAttribute('TotalSueldos',$totalpercep->importe);\n\t\t\t\t$cadOri.= \"|\".$totalpercep->importe;\n\t\t\t$Percepciones->setAttribute('TotalGravado',$totalpercep->gravado);\n\t\t\t\t$cadOri.= \"|\".$totalpercep->gravado;\n\t\t\t$Percepciones->setAttribute('TotalExento',$totalpercep->exento);\n\t\t\t\t$cadOri.= \"|\".$totalpercep->exento;\n\t\t\t\t\n\t\t\t$Percepcioneslista = $this->PrenominaModel->conceptodeXML($idnomp, $empleado->idEmpleado, 1)\t;\n\t\t\t while($pe = $Percepcioneslista->fetch_object() ){\n// \t\t\t\t\n\t\t\t\t $this->NominalibreModel->almacenaConceptotimbrado($empleado->idEmpleado,0, 0, 1, $pe->clavesat,$pe->gravado + $pe->exento ,$pe->gravado,$pe->exento);\n\t\t\t\t$pe->concepto = str_replace(\"(\", \"\", $pe->concepto);\n\t\t\t \t$pe->concepto = str_replace(\")\", \"\", $pe->concepto);\n\n\t\t\t\t$Percepcionesdetalle = $xml->createElement('nomina12:Percepcion');\n\t\t\t\t\n\t\t\t\t\t$Percepcionesdetalle->setAttribute('TipoPercepcion',$pe->clavesat);\n\t\t\t\t\t$cadOri.= \"|\".$pe->clavesat;\n\t\t\t\t\t$Percepcionesdetalle->setAttribute('Clave',$pe->claveint);\n\t\t\t\t\t$cadOri.= \"|\".$pe->claveint;\n\t\t\t\t\t$Percepcionesdetalle->setAttribute('Concepto',$pe->concepto);\n\t\t\t\t\t$cadOri.= \"|\".$pe->concepto;\n\t\t\t\t\t$Percepcionesdetalle->setAttribute('ImporteGravado',$pe->gravado);\n\t\t\t\t\t$cadOri.= \"|\".$pe->gravado;\n\t\t\t\t\t$Percepcionesdetalle->setAttribute('ImporteExento',$pe->exento);\n\t\t\t\t\t$cadOri.= \"|\".$pe->exento;\t\n\t\t\t\t\t\n\t\t\t\t $Percepciones->appendChild( $Percepcionesdetalle );\n\t\t\t}\n\t\t\t$nomina12->appendChild( $Percepciones );\n\t\t}\t\n\t\t/*FIN PERCEPCIONES*/\n// \t\t\n\t\t/*DEDUCCIONES*/\n\t\tif($totaldeducciones->importe > 0){\n\t\t\t\n\t\t\t$Deducciones = $xml->createElement('nomina12:Deducciones');\n\t\t\t\n\t\t\t$deducciones = $this->PrenominaModel->conceptodeXML($idnomp, $empleado->idEmpleado, 2)\t;\n\t\t\twhile($de = $deducciones->fetch_object() ){\n\t\t\t\t$this->NominalibreModel->almacenaConceptotimbrado($empleado->idEmpleado,0, 0, 2, $de->clavesat,$de->importe ,0,0);\n\t\t\t\t$otrasDedu = $impuestosretenidos = 0;\n\t\t\t\t\n\t\t\t\tif($de->clavesat == \"002\"){//002 es isr\n\t\t\t\t\t$impuestosretenidos += $de->importe;\n\t\t\t\t}else{\n\t\t\t\t\t$otrasDedu += $de->importe;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$de->concepto = str_replace(\"(\", \"\", $de->concepto);\n\t\t\t\t$de->concepto = str_replace(\")\", \"\", $de->concepto);\n\t\t\t\t\t\n\t\t\t\t $Deduccionesdetalle = $xml->createElement('nomina12:Deduccion');\n\t\t\t\t\t$Deduccionesdetalle->setAttribute('TipoDeduccion',$de->clavesat);\n\t\t\t\t\t$cadOri.= \"|\".$de->clavesat;\n\t\t\t\t\t$Deduccionesdetalle->setAttribute('Clave',$de->claveint);\n\t\t\t\t\t$cadOri.= \"|\".$de->claveint;\n\t\t\t\t\t$Deduccionesdetalle->setAttribute('Concepto',$de->concepto);\n\t\t\t\t\t$cadOri.= \"|\".$de->concepto;\n\t\t\t\t\t$Deduccionesdetalle->setAttribute('Importe',$de->importe);\n\t\t\t\t\t$cadOri.= \"|\".$de->importe;\n\t\t\t\t$Deducciones->appendChild( $Deduccionesdetalle );\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif($otrasDedu >0){\n\t\t\t\t//$otrasDedu = number_format($otrasDedu,2,'.','');\n\t\t\t\t$Deducciones->setAttribute('TotalOtrasDeducciones',$otrasDedu);\n\t\t\t\t$cadOri.= \"|\".$otrasDedu;\n\t\t\t}\n\t\t\tif($impuestosretenidos>0){\n\t\t\t\t$Deducciones->setAttribute('TotalImpuestosRetenidos',$impuestosretenidos);\n\t\t\t\t$cadOri.= \"|\".$impuestosretenidos;\n\t\t\t}\n\t\t\t$nomina12->appendChild( $Deducciones );\n\t\t\t\n\t\t}//fin dedu\n\t\t/*FIND EDUCCIONES*/\n\t\t\n\t\t/*OTROS PAGOS*/\n\t\tif($totalotrospagos->importe > 0){\n\t\t\t\n\t\t\t$OtrosPagos = $xml->createElement('nomina12:OtrosPagos');\n\t\t\t$otrospagoslist = $this->PrenominaModel->conceptodeXML($idnomp, $empleado->idEmpleado, 4);\n\t\t\twhile($otr = $otrospagoslist->fetch_object() ){\n\t\t\t\t$this->NominalibreModel->almacenaConceptotimbrado($empleado->idEmpleado,0, 0, 4, $otr->clavesat,$otr->importe ,0,0);\n\t\t\t\t\n\t\t\t\t$otr->concepto = str_replace(\"(\", \"\", $otr->concepto );\n\t\t\t\t$otr->concepto = str_replace(\")\", \"\", $otr->concepto );\n\t\t\t\t\n\t\t\t\t$OtrosPagosDetalle = $xml->createElement('nomina12:OtroPago');\n\t\t\t\t$OtrosPagosDetalle->setAttribute('TipoOtroPago',$otr->clavesat );\n\t\t\t\t$cadOri.= \"|\".$otr->clavesat;\n\t\t\t\t$OtrosPagosDetalle->setAttribute('Clave',$otr->claveint );\n\t\t\t\t$cadOri.= \"|\".$otr->claveint;\n\t\t\t\t$OtrosPagosDetalle->setAttribute('Concepto',$otr->concepto);\n\t\t\t\t$cadOri.= \"|\".$otr->concepto;\n\t\t\t\t$OtrosPagosDetalle->setAttribute('Importe',$otr->importe);\n\t\t\t\t$cadOri.= \"|\".$otr->importe;\n\t\t\t\tif($otr->clavesat == \"002\"){ \n\t\t\t\t\t\t$OtrosPagosubsidio = $xml->createElement('nomina12:SubsidioAlEmpleo');\n\t\t\t\t\t\t$OtrosPagosubsidio->setAttribute('SubsidioCausado',$otr->valorneto);\n\t\t\t\t\t\t$cadOri.= \"|\".$otr->valorneto;//SubsidioCausado\n\t\t\t\t\t\t$OtrosPagosDetalle->appendChild( $OtrosPagosubsidio );\n\t\t\t\t}\n\t\t\t\t$OtrosPagos->appendChild( $OtrosPagosDetalle );\n\t\t\t}\n\t\t\t$nomina12->appendChild( $OtrosPagos );\n\t\t}\n\t\t/*FIN OTROS PAGOS*/\n\t\t\n\t\t\n\t\t$Complemento->appendChild( $nomina12 );\n\t\t$raiz->appendChild( $Complemento );\n\t\t// fin cfdi:Complemento\n\t\t\n\t\t\n\t\t///\n\t\t$cadOri= preg_replace('/&quot;/', '\"', $cadOri);\n\t\t$cadOri= preg_replace('/&apos;/', \"'\", $cadOri);\n\t\t$cadOri= preg_replace('/&amp;/', '&',$cadOri);\n\t\t\n\t\t$cadOri=preg_replace('/\\|{2,}/', '|',$cadOri);\n\t\t$cadOri=preg_replace('/ {2,}/', ' ',$cadOri);\n\t\t$cadOri=('||'.$cadOri.'||');\n\t\t\n\n\t\t$ori = $this->generaCadenaOriginalNomina($cadOri,$fff,$rfc_cliente,$pathdc);\n\t\t\n\t\t$sel = $this->generaSelloNomina($rfc_cliente,$fff,$pathdc);\n\t\n\t\t$raiz->setAttribute('Sello',$sel);\n\t\t$xml->appendChild( $raiz );\n\t\n\t\t$el_xml = $xml->saveXML();\n\t\t$XML = $el_xml;\n\t\t$xml->save('../cont/xmls/facturas/temporales/_'.$empleado->nombre.'.xml');\n\t\t$nominas=1;\n\t\trequire_once('../../modulos/wsinvoice/sealInvoice.php');\n\t\t\n\t\tif($arrInvoice['success'] == 1){\n\t\t\t\n\t\t\t$xmlfile='_'.$empleado->nombre.'_'.$arrInvoice['datos']['UUID'].'.xml';\n\t $archivo = rename('../../modulos/cont/xmls/facturas/temporales/'.$arrInvoice['datos']['UUID'].'.xml','../../modulos/cont/xmls/facturas/temporales/'.$xmlfile);\n\t\t\t$almacenatimbre = $this->NominalibreModel->almacenaTimbrado( $empleado->idEmpleado, $datosNomina->fechainicio, $datosNomina->fechafin, $_REQUEST['fechapago'], $empleado->diaspagados, $TipoNomina, $idnomp=0, $valorUnitario, $totaldeducciones->importe, $total, 1, $arrInvoice['datos']['selloSAT'], $arrInvoice['datos']['selloCFD'], $arrInvoice['datos'][FechaTimbrado] , $arrInvoice['datos']['UUID'], $xmlfile, 0,$claveregfiscal,$PeriodicidadPago->clave);\n\t\t\t\n\t\t\t\n\t\t\tif($almacenatimbre>0){\n\t\t\t\t$this->NominalibreModel->updateConceptosTimbrados($almacenatimbre,1);\n\t\t\t\t$msjFinal .= $empleado->nombre.\" Factura generada\\n\";\n\t\t\t\t/*acumulaTimbreConcepto\n\t\t\t\t * en los conceptos de calculo prenomina se cambia estado timbrado=1 \n\t\t\t\t * para ya no volver a timbrar este recibo\n\t\t\t\t * Y se le agrega el id de nominas timbradas que tiene la informacion del cfdi\n\t\t\t\t*/\n\t\t\t\t$acumular = $this->PrenominaModel->acumulaTimbreConcepto($idnomp, $empleado->idEmpleado, $almacenatimbre);\n\t\t\t\t\n\t\t\t}//window.location = 'index.php?c=Nominalibre&f=viewNomina';\n\t\t\t\n\t\t\t//exit();\n\t\t\n\t\t\t\n\t\t}else{\n\t\t\t$this->NominalibreModel->updateConceptosTimbrados(0,0);\n\t\t\t$msjrespuesta = str_replace(\"'\",\"\", $arrInvoice['mensaje']);\n\t\t\t$msjFinal .= $empleado->nombre.\" Factura No generada, Msj:\".$msjrespuesta.\"\\n\";\n\t\t\t//echo \"<script> alert('\".$msjFinal.\"\\\\nINTENTE DE NUEVO!'); \";\n\t\t}\n\t}//while empleados\n\t\necho \"<script> alert('$msjFinal'); </script>\";\t\n\n}", "title": "" }, { "docid": "ce9f23adfbdbc0141a013d2ef75e4cc7", "score": "0.50394374", "text": "public static function afficheAnnonceID($dbh, $id) {\n $query = \"SELECT * FROM `annonce` WHERE `id`=?\";\n $sth = $dbh->prepare($query);\n $sth->execute(array($id));\n \n while ($ann = $sth->fetch()) {\n //$annonce = new Annonce($ann['titre'], $ann['prix'], $ann['categorie'], $ann['adresse'], $ann['ville'], $ann['espace'], $ann['description']);\n echo\"<div class='form-group col-sm-12 col-md-12-col-lg-12'>\";\n print_r(\"<img alt = 'photo de la maison' src = 'images/\" . $ann['img'] . \"'>\");\n echo'<br>';\n print_r(\"titre :\" . htmlspecialchars($ann['titre']));\n echo'<br>';\n print_r(\"prix :\" . htmlspecialchars($ann['prix']) . \" MRU\");\n echo'<br>';\n print_r(\"adresse :\" . htmlspecialchars($ann['adresse']));\n echo'<br>';\n\n\n echo'<br>';\n $ti = $ann['titre'];\n $id = $ann['id1'];\n echo<<< CHAINE_DE_FIN\n <svg width=\"1em\" height='1em' viewBox='0 0 16 16' class='bi bi-pencil-fill' fill='currentColor' xmlns='http://www.w3.org/2000/svg'>\n <path fill-rule='evenodd' d='M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z'/>\n </svg><button class = 'btn btn-outline-success' type = 'submit' role='link' onClick = \"window.location= 'index.php?page=compte&&todo=updatePrix&&titre=$ti&&id=$id'\">Modifier annonce</button>\nCHAINE_DE_FIN;\n echo<<< CHAINE_DE_FIN\n<svg width='1em' height='1em' viewBox='0 0 16 16' class='bi bi-trash-fill' fill='currentColor' xmlns='http://www.w3.org/2000/svg'>\n <path fill-rule='evenodd' d='M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7z'/>\n</svg><button class = 'btn btn-outline-danger' type = 'submit' role='link' onClick = \"window.location='index.php?page=compte&&todo=Supann&&titre=$ti&&id=$id'\">Supprimer annonce</button>\nCHAINE_DE_FIN;\n echo \"</div>\";\n }\n \n }", "title": "" }, { "docid": "5b5488c54ece0e5417ee676be3f311ed", "score": "0.50379586", "text": "private function chargeLesEquipes()\r\n\t\t{\r\n\t\t$resultat=$this->maBD->chargement('equipe');\r\n\t\t$nb=0;\r\n\r\n\t\twhile ($nb<sizeof($resultat))\r\n\t\t\t{\r\n\t\t\t\t$this->toutesLesEquipes->ajouteUneEquipe($resultat[$nb][0],$resultat[$nb][1],$resultat[$nb][2],$resultat[$nb][3],$resultat[$nb][4],$resultat[$nb][5],$resultat[$nb][6],$resultat[$nb][7],$resultat[$nb][8],$resultat[$nb][9]);\r\n\t\t\t$nb++;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "7c5734d4d9ed14d2553a4a917a7a301d", "score": "0.5034405", "text": "function formulaires_signaler_abus_charger_dist($objet,$id_objet){\n\t$valeurs=array('commentaire'=>'');\n\treturn $valeurs;\n}", "title": "" }, { "docid": "2dab8b7ea59e3e37d056e3e8d299b33a", "score": "0.5029842", "text": "function contenidos()\n\t{\n\t\tglobal $__BD, $__LIB;\n\t\n\t\t$codigoMod = '';\n\t\t\n\t\t$lastmonth = mktime(0,0,0,date(\"m\"),date(\"d\")-42, date(\"Y\"));\n\t\t$fechaLimite = date(\"Y-m-d\", $lastmonth);\n\t\t\n\t\t$ordenSQL = \"select codigo, titulo from infogeneral where publico = true order by orden\";\n\t\t$result = $__BD->db_query($ordenSQL);\n\t\t\n\t\n\t\twhile($row = $__BD->db_fetch_array($result)) {\n\t\t\t$titulo = $__LIB->traducir(\"infogeneral\", \"titulo\", $row[\"codigo\"], $row[\"titulo\"]);\n\t\t\t$codigoMod .= '<div class=\"itemMenu\">';\n\t\t\t$codigoMod .= '<a href=\"general/infogeneral.php?cod='.$row[\"codigo\"].'\">'.$titulo.'</a>';\n\t\t\t$codigoMod .= '</div>';\n\t\t}\n\t\t\n\t\t// FAQs\n\t\tif ($__LIB->esTrue($_SESSION[\"opciones\"][\"activarfaq\"])) {\n\t\t\t$codigoMod .= '<div class=\"itemMenu\">';\n\t\t\t$codigoMod .= '<a href=\"general/faq.php\">'._FAQ.'</a>';\n\t\t\t$codigoMod .= '</div>';\n\t\t}\n\t\treturn $codigoMod;\n\t}", "title": "" }, { "docid": "175b7a5f716b08497348601d42c9b8a1", "score": "0.5024371", "text": "private function aggiungiStorico()\n {\n $v_storico = new v_storico(); // crea la view\n\t\t\n $utente = c_sessione::getUtenteDaSessione(); // ottiene l'utente della sessione\n if (get_class($utente) == e_bibliotecario::class)\n {\n $storico = $v_storico->creaStorico(); // la view restituisce una e_storico costruita a partire dalla form\n\t\t\t\n\t\t\t$idPrestito = $storico->getIdPrestito(); //id prestito\n\t\t\t$pres = f_persistance::getInstance()->carica(e_prestito::class, $idPrestito); // si caricano i dati del prestito\n\t\t\tif($pres)\n\t\t\t{\n\t\t\t$utentePrestito = $pres->getUtentePrestito();\n\t\t\t$libroPrestito = $pres->getLibroPrestito();\n\t\t\t$dataScadenza = $pres->getDataScadenza();\n\t\t\t\n\t\t\t$nuovoStorico = new e_storico();\n\t\t\t$nuovoStorico->setUtenteStorico($utentePrestito);\n\t\t\t$nuovoStorico->setLibroStorico($libroPrestito);\n\t\t\t$nuovoStorico->setDataScadenza($dataScadenza);\n\t\t\t$nuovoStorico->setIdPrestito($idPrestito);\n\t\t\tf_persistance::getInstance()->salva($nuovoStorico);\n\t\t\t\n\t\t\t$lib = f_persistance::getInstance()->carica(e_libro::class, $libroPrestito); // si caricano i dati del libro\n\t\t\t$copie = $lib->getCopieDisponibili();\n\t\t\t$copie ++;\n\t\t\t$autore= $lib->getAutore();\n\t\t\t$titolo= $lib->getTitolo();\n\t\t\t$num= $lib->getNumCopie();\n\t\t\t$durata= $lib->getDurata();\n\t\t\t$genere= $lib->getGenere();\n\t\t\t$isbn= $lib->getIsbn();\n\t\t\t$descrizione= $lib->getDescrizione();\n\t\t\t\n\t\t\tif($copie <= $num)\n\t\t\t{\n\t\t\t$libro = new e_libro();\n\t\t\t$libro->setId($lib->getId());\n\t\t\t$libro->setAutore($autore);\n\t\t\t$libro->setTitolo($titolo);\n\t\t\t$libro->setNumCopie($num);\n\t\t\t$libro->setDurata($durata);\n\t\t\t$libro->setGenere($genere);\n\t\t\t$libro->setIsbn($isbn);\n\t\t\t$libro->setDescrizione($descrizione);\n\t\t\t$libro->setCopieDisponibili($copie);\n\t\t\tf_persistance::getInstance()->aggiorna($libro);\n\t\t\t\n\t\t\t//RIMUOVI PRENOTAZIONE\n\t\t\tf_persistance::getInstance()->rimuovi(e_prestito::class, $idPrestito);\n\t\t\t$v_storico->Avviso($utente, 'PRESTITO STORICO AGGIUNTO CON SUCCESSO');\n\t\t\t}\n\t\t\telse\n\t\t\t$v_storico->Errore($utente, \"RIENTRO PRESTITO NON VALIDO\");\t\n\t\t\t}\n\t\t\telse \n\t\t\t$v_storico->Errore($utente, \"PRESTITO NON VALIDO\"); \t\n\t\t}\n else\n $v_storico->Errore($utente, 'UTENTE NON AUTORIZZATO');\n }", "title": "" }, { "docid": "5792094bd9ad2dc85a30ff49e377dafe", "score": "0.50240034", "text": "function remitirdoc($pdf, $numero, $fecha, $para, $de, $asunto, $justificacion, $ndocs, $cuenta, $tipocomp, $pag) {\n\t//\tNUEVA PAGINA CABECERA\n\t$pdf->AddPage();\n\t//\t--------------------\n\tsetLogo($pdf);\n\t//\t--------------------\n\t$pdf->SetFont('Arial', 'B', 6);\n\t$pdf->Cell(27, 17); $pdf->Cell(40, 5, '', 0, 0, 'C');\n\t$pdf->Cell(27, 17, '', 0, 0, 'C'); \n\t//\n\t$pdf->Cell(15, 5); $pdf->Cell(25, 5, '', 0, 0, 'L');\n\t$pdf->SetFont('Arial', '', 11);\n\t$pdf->Cell(35, 5, utf8_decode('Número: '), 0, 0, 'R');\n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(35, 5, $numero, 0, 1, 'L');\t\n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(15, 5); $pdf->Cell(120, 5, '', 0, 0, 'L'); \n\t$pdf->SetFont('Arial', '', 11);\n\t$pdf->Cell(34, 5, 'Fecha: ', 0, 0, 'R'); \n\t$pdf->SetFont('Arial', 'B', 11);\n\tlist($a, $m, $d)=SPLIT( '[/.-]', $fecha); $fecha=$d.\"/\".$m.\"/\".$a;\n\t$pdf->Cell(35, 5, $fecha, 0, 1, 'L');\t \n\t$pdf->SetFont('Arial', '',11);\n\t$pdf->Cell(169, 5, utf8_decode('Página: '), 0, 0, 'R'); \n\t$pdf->SetFont('Arial', 'B', 11);\n\t$pdf->Cell(35, 5, $pag, 0, 1, 'L'); \n\t/////////////////////////////\n\t$pdf->Ln(3);\n\t$pdf->SetFont('Arial', 'B', 16);\n\t$pdf->Cell(205, 16, utf8_decode('Relación de Ordenes de Pago a Generar Comprobante'), 0, 1, 'C');\n\t$pdf->Ln(2);\n\t/////////////////////////////\n\t$sql_cuenta = mysql_query(\"select * from cuentas_bancarias where idcuentas_bancarias = '\".$cuenta.\"'\");\n\t$bus_cuenta = mysql_fetch_array($sql_cuenta);\n\t$nrocuenta = $bus_cuenta[\"numero_cuenta\"];\n\t\n\t$sql_banco = mysql_query(\"select * from banco where idbanco = '\".$bus_cuenta[\"idbanco\"].\"'\");\n\t$bus_banco = mysql_fetch_array($sql_banco);\n\t$banco = $bus_banco[\"denominacion\"];\n\t/////////////////////////////\n\t$sql=\"SELECT denominacion FROM dependencias WHERE iddependencia='\".$para.\"'\";\n\t$query=mysql_query($sql) or die ($sql.mysql_error());\n\t$rows=mysql_num_rows($query);\n\tif ($rows!=0) { $field=mysql_fetch_array($query); $para=$field[0]; }\n\t$sql=\"SELECT denominacion FROM dependencias WHERE iddependencia='\".$de.\"'\";\n\t$query=mysql_query($sql) or die ($sql.mysql_error());\n\t$rows=mysql_num_rows($query);\n\tif ($rows!=0) { $field=mysql_fetch_array($query); $de=$field[0]; }\n\t/////////////////////////////\n\t$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Para:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(175, 7, utf8_decode($para), 0, 1, 'L');\n\t$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'De:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(175, 7, utf8_decode($de), 0, 1, 'L');\n\t//$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Asunto:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(175, 7, utf8_decode($asunto), 0, 1, 'L');\n\t$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Banco:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(175, 7, utf8_decode($banco).\" - Cuenta: \".utf8_decode($nrocuenta), 0, 1, 'L');\n\t//$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Nro. Cuenta:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(75, 7, utf8_decode($nrocuenta), 0, 1, 'L');\n\t//$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Nro. Doc. Anexos:', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 10); $pdf->MultiCell(175, 7, $ndocs, 0, 1, 'L');\n\t$pdf->SetFont('Arial', '', 10); $pdf->Cell(30, 7, 'Concepto:', 0, 0, 'L'); $pdf->SetFont('Arial', '', 10); $pdf->MultiCell(175, 7, utf8_decode($justificacion), 0, 1, 'L');\n\t$pdf->Ln(5);\n\t/////////////////////////////\n\t//$pdf->SetFont('Arial', 'BU', 14);\n\t//$pdf->Cell(205, 16, 'Documentos Anexos', 0, 1, 'C');\n\t/////////////////////////////\t\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\n\t$pdf->SetFont('Arial', 'B', 8);\n\t$pdf->Cell(30, 5, 'Nro. OP.', 1, 0, 'C', 1);\t\n\t$pdf->Cell(18, 5, 'Fecha', 1, 0, 'C', 1);\t\n\t$pdf->Cell(107, 5, 'Beneficiario', 1, 0, 'C', 1);\n\t$pdf->Cell(25, 5, 'Monto', 1, 0, 'C', 1);\n\t//$pdf->Cell(15, 5, '% Ret.', 1, 0, 'C', 1);\n\t$pdf->Cell(25, 5, 'Monto Ret.', 1, 0, 'C', 1);\n\t$pdf->Ln(6);\n\t\n\t\n\t/*$pdf->Cell(25, 5, 'Nro. OP.', 1, 0, 'C', 1);\n\t$pdf->Cell(15, 5, 'Fecha', 1, 0, 'C', 1);\n\t$pdf->Cell(95, 5, 'Beneficiario', 1, 0, 'C', 1);\n\t$pdf->Cell(25, 5, 'Monto', 1, 1, 'C', 1);\n\t$pdf->Cell(15, 5, '% Ret.', 1, 1, 'C', 1);\n\t$pdf->Cell(25, 5, 'Monto Ret.', 1, 1, 'C', 1);*/\n\t\n}", "title": "" }, { "docid": "56ec3413bc35a0587d1a85f514cabba7", "score": "0.50232786", "text": "protected function domNodes() {\n $this->xmlHtml = $this->dom->getElementsByTagName('html')->item(0);\n $this->xmlHead = $this->dom->getElementsByTagName('head')->item(0);\n $this->xmlBody = $this->dom->getElementsByTagName('body')->item(0);\n }", "title": "" }, { "docid": "ff04f50ee9b23da179f8e65099a82d48", "score": "0.5021641", "text": "public function DibujeItemsBuscadosVentas2($key,$PageReturn,$Variable){\r\n $this->css=new CssIni(\"\");\r\n $key= $this->obCon->normalizar($key);\r\n $idPre=$Variable[\"idPre\"];\r\n $Titulo=\"Crear Item En servicios\";\r\n $Nombre=\"ShowItemsBusqueda\";\r\n $RutaImage=\"\";\r\n $javascript=\"\";\r\n $VectorBim[\"f\"]=0;\r\n $target=\"#DialBusquedaItems\";\r\n $this->css->CrearBotonImagen($Titulo,$Nombre,$target,$RutaImage,\"\",0,0,\"fixed\",\"left:10px;top:100\",$VectorBim);\r\n \r\n $VectorDialogo[\"F\"]=0;\r\n $this->css->CrearCuadroDeDialogo(\"DialBusquedaItems\", \"Resultados\");\r\n $this->css->CrearDiv(\"DivBusqueda\", \"\", \"center\", 1, 1);\r\n $this->css->CrearTabla();\r\n $sql=\"SELECT * FROM productosventa pv INNER JOIN prod_codbarras cb ON pv.idProductosVenta=cb.ProductosVenta_idProductosVenta\"\r\n . \" WHERE cb.CodigoBarras='$key' OR pv.idProductosVenta='$key' OR pv.Nombre LIKE '%$key%' OR pv.Referencia LIKE '%$key%' LIMIT 50\";\r\n $consulta= $this->obCon->Query($sql);\r\n \r\n $tab=\"productosventa\";\r\n /*\r\n $Condicion=\" WHERE idProductosVenta='$key' OR Nombre LIKE '%$key%' OR Referencia LIKE '%$key%'\";\r\n $consulta=$this->obCon->ConsultarTabla($tab,$Condicion);\r\n * \r\n */\r\n \r\n if($this->obCon->NumRows($consulta)){\r\n $this->css->FilaTabla(16);\r\n $this->css->ColTabla(\"<strong>Agregar</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>ID</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Referencia</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Nombre</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>PrecioVenta</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Mayorista</strong>\", 1);\r\n $this->css->ColTabla(\"<strong>Existencias</strong>\", 1);\r\n $this->css->CierraFilaTabla();\r\n while($DatosProducto=$this->obCon->FetchArray($consulta)){\r\n $this->css->FilaTabla(16);\r\n print(\"<td>\");\r\n $this->css->CrearForm2(\"FrmAgregarItem$DatosProducto[idProductosVenta]\", $PageReturn, \"post\", \"_self\");\r\n $this->css->CrearInputText(\"TxtIdItem\", \"hidden\", \"\", $DatosProducto[\"idProductosVenta\"], \"\", \"\", \"\", \"\", \"\", \"\", 0, 1);\r\n $this->css->CrearInputText(\"TxtidPre\", \"hidden\", \"\", $idPre, \"\", \"\", \"\", \"\", \"\", \"\", 0, 1);\r\n $this->css->CrearInputText(\"TxtTablaItem\", \"hidden\", \"\", $tab, \"\", \"\", \"\", \"\", \"\", \"\", 0, 1);\r\n $this->css->CrearInputNumber(\"TxtCantidad\", \"number\", \"\", 1, \"Cantidad\", \"\", \"\", \"\", 80, 30, 0, 1, 1, \"\", 1);\r\n $this->css->CrearBotonNaranja(\"BtnAgregarItem\", \"Agregar\");\r\n $this->css->CerrarForm();\r\n print(\"</td>\");\r\n $this->css->ColTabla($DatosProducto[\"idProductosVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Referencia\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Nombre\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioVenta\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"PrecioMayorista\"], 1);\r\n $this->css->ColTabla($DatosProducto[\"Existencias\"], 1);\r\n \r\n $this->css->CierraFilaTabla();\r\n }\r\n }\r\n \r\n \r\n \r\n $this->css->CerrarTabla();\r\n $this->css->CerrarDiv();\r\n $this->css->CerrarCuadroDeDialogo();\r\n \r\n}", "title": "" }, { "docid": "9f3f9842d9c985cbbf6962103144aa53", "score": "0.501987", "text": "function afficherRss(){\n // déclaration variables globales\n global $vues,$cont;\n // declaration model / validation \n $rss = new ModeleRss();\n $val = new Validation();\n\n // récupération d'un tableau des flux rss\n $Trss=$rss-> getRSS();\n\n // appel du model admin\n $admin = new ModeleAdmin();\n //initialisation du nom de l'admin\n $nom = \"\";\n // test connexion adminisrateur\n if(($a=$admin->isAdmin())==null){\n $con = False;\n }\n else{\n $con = True;\n $nom = $a->get_nom();\n } \n \n // appel vue liste de flux\n require($vues['vListeFlux']);\n }", "title": "" }, { "docid": "f90f9245d2112344ef18aea6fcc96979", "score": "0.5004508", "text": "public function visiteurFicheEnCours() {\n $req = \" Select distinct(id),nom,prenom from visiteur inner join fichefrais on fichefrais.idVisiteur = visiteur.id Where fichefrais.idEtat='CR'\";\n return PdoGsb::$monPdo->query($req);\n }", "title": "" }, { "docid": "cc641b002eed8510967cfd60da457919", "score": "0.50038064", "text": "public function domicile(){\n return view('statistiques.domicile');\n }", "title": "" }, { "docid": "bc1f616edb13bcb734ad0d246ae095c9", "score": "0.49976206", "text": "function accueil(){\n //on recupère les partie qui n'ont pas commencé\n $partie=Partie::whereColumn('nbMax','>','nbJoueur')->get();\n //on definit une des variable qu'on va transmettre à la vue\n $lPartie=Array();\n $i=0;\n //on parcour les partie\n foreach ($partie as $p){\n //on place dans la case i du tableau les donné liée a la partie et a son auteur\n $lPartie[$i]=Array(\"partie\"=>$p,\"createur\"=>$p->auteur()->first( ));\n $i++;\n }\n //on recupère les c8 type de carte\n $c=Carte::take(8)->get();\n //on crée la vue\n $vue=new VueAccueil([\"partie\"=>$lPartie,\"cartes\"=>$c]);\n $html=$vue->render(0);\n //on l'affiche\n echo $html;\n }", "title": "" }, { "docid": "ebc4d87e82b5a9e13b0ef3d956a1413e", "score": "0.49936473", "text": "public function getContent()\n {\n // header(\"Cache-Control: post-check=0, pre-check=0\", false);\n // header(\"Pragma: no-cache\");\n\n $g = new GlobalItems();\n $g->getPageHead();\n $g->getNavbar();\n $statM = new StatisticsModel();\n\n $nbTraducteur = $statM->getNbTraducteur();\n $nbClient = $statM->getNbClient();\n $nbDemandeDevis = $statM->getNbDemandesDevis();\n $nbDemandeTrad =$statM->getNbDemandesTraduction();\n\n foreach($nbTraducteur as $c){\n $nbTraducteur = $c['nbTraducteur'];\n }\n\n foreach($nbClient as $c){\n $nbClient = $c['nbClient'];\n }\n\n foreach($nbDemandeDevis as $c){\n $nbDemandeDevis = $c['nbDemandeDevis'];\n }\n\n foreach($nbDemandeTrad as $c){\n $nbDemandeTrad = $c['nbDemandeTrad'];\n }\n echo '\n <nav>\n <div class=\"nav-wrapper indigo darken-2\">\n <a style=\"margin-left: 20px;\" class=\"breadcrumb\" href=\"#!\">Admin</a>\n <a class=\"breadcrumb\" href=\"#!\">Dashboard</a>\n\n <div style=\"margin-right: 20px;\" id=\"timestamp\" class=\"right\"></div>\n </div>\n </nav>\n</header>\n';\n?>\n\n <main>\n\n <div class=\"row\">\n <div class=\"col s12 m4\">\n <div class=\"card blue white-text\">\n <div class=\"card-content valign-wrapper\">\n <div class=\"card-text\">\n \n <?php\n echo'\n <h5>'.$nbTraducteur.' Traducteurs</h5>\n <h5> '.$nbClient.' Clients</h5>\n ';\n \n ?> \n \n <h6>Utilisateurs</6>\n </div>\n <div class=\"card-icon\"><i class=\"material-icons medium valign\">pie_chart</i></div>\n </div>\n <div class=\"card-action\"><a href=\"#\">Voir le rapport</a></div>\n </div>\n </div>\n <div class=\"col s12 m4\">\n <div class=\"card blue white-text\">\n <div class=\"card-content valign-wrapper\">\n <div class=\"card-text\">\n <?php\n echo '\n <h5>'.$nbDemandeDevis.'</h5>\n \n ';\n ?>\n\n <h6>Demandes De Devis</h6>\n <br>\n </div>\n <div class=\"card-icon\"><i class=\"material-icons medium valign\">check_circle</i></div>\n </div>\n <div class=\"card-action\"><a href=\"#\">Voir le rapport</a></div>\n </div>\n </div>\n <div class=\"col s12 m4\">\n <div class=\"card blue white-text\">\n <div class=\"card-content valign-wrapper\">\n <div class=\"card-text\">\n <?php\n echo '\n <h5>'.$nbDemandeTrad.'</h5>\n \n ';\n ?>\n <br>\n <p>Demandes De Traduction</p>\n </div>\n <div class=\"card-icon\"><i class=\"material-icons medium valign\">build</i></div>\n </div>\n <div class=\"card-action\"><a href=\"#\">Voir le rapport</a></div>\n </div>\n </div>\n </div>\n <div class=\"row\" style=\"margin: 5px\">\n <div class=\"col s6 m6\">\n <canvas style=\"margin: 5px\" id=\"myChart\" ></canvas>\n </div>\n <div class=\"col s6 m6\">\n <canvas style=\"margin: 5px\" id=\"myChart1\" ></canvas>\n </div>\n \n \n </div>\n \n<script>\nvar ctx = document.getElementById('myChart').getContext('2d');\ndata: [{\n x: new Date(),\n y: 1\n}, {\n t: new Date(),\n y: 10\n}]\nvar myChart = new Chart(ctx, {\n type: 'bar',\n data: {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: 'Traductions',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255, 99, 132, 1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }]\n },\n options: {\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true\n }\n }]\n }\n }\n});\n</script>\n\n<script>\nvar ctx = document.getElementById('myChart1').getContext('2d');\nvar myChart = new Chart(ctx, {\n type: 'bar',\n data: {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: 'Devis',\n data: [12, 19, 3, 5, 2, 3],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255, 99, 132, 1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }]\n },\n options: {\n scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true\n }\n }]\n }\n }\n});\n</script>\n </div>\n \n <div class=\"row\">\n <div class=\"col s6\">\n <div style=\"padding: 35px;\" align=\"center\" class=\"card\">\n <div class=\"row\">\n <div class=\"left card-title\">\n <b>Gestion Des Utilisateurs</b>\n </div>\n </div>\n\n <div class=\"row\">\n <a href=\"listTraducteurs.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">person</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Traducteurs</h5>\n </span>\n </div>\n </a>\n <div class=\"col s1\">&nbsp;</div>\n <div class=\"col s1\">&nbsp;</div>\n\n <a href=\"listClients.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">people</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Clients</h5>\n </span>\n </div>\n </a>\n </div>\n </div>\n </div>\n\n <div class=\"col s6\">\n <div style=\"padding: 35px;\" align=\"center\" class=\"card\">\n <div class=\"row\">\n <div class=\"left card-title\">\n <b>Gestion des Services</b>\n </div>\n </div>\n <div class=\"row\">\n <a href=\"traductions.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">store</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Traductions</h5>\n </span>\n </div>\n </a>\n\n <div class=\"col s1\">&nbsp;</div>\n <div class=\"col s1\">&nbsp;</div>\n\n <a href=\"devis.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">assignment</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Devis</h5>\n </span>\n </div>\n </a>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col s6\">\n <div style=\"padding: 35px;\" align=\"center\" class=\"card\">\n <div class=\"row\">\n <div class=\"left card-title\">\n <b>Gestion Des Payements</b>\n </div>\n </div>\n\n <div class=\"row\">\n <a href=\"devisPay.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">local_offer</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Devis</h5>\n </span>\n </div>\n </a>\n\n <div class=\"col s1\">&nbsp;</div>\n <div class=\"col s1\">&nbsp;</div>\n\n <a href=\"tradPay.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">loyalty</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Traductions</h5>\n </span>\n </div>\n </a>\n </div>\n </div>\n </div>\n\n <div class=\"col s6\">\n <div style=\"padding: 35px;\" align=\"center\" class=\"card\">\n <div class=\"row\">\n <div class=\"left card-title\">\n <b>Gestion Des Conflits</b>\n </div>\n </div>\n <div class=\"row\">\n <a href=\"signalement.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">view_list</i>\n <span class=\"indigo-text text-lighten-1\">\n <h5>Signalements</h5>\n </span>\n </div>\n </a>\n <div class=\"col s1\">&nbsp;</div>\n <div class=\"col s1\">&nbsp;</div>\n\n <a href=\"notes.php\">\n <div style=\"padding: 30px;\" class=\"grey lighten-3 col s5 waves-effect\">\n <i class=\"indigo-text text-lighten-1 large material-icons\">view_list</i>\n <span class=\"truncate indigo-text text-lighten-1\">\n <h5>Notes</h5>\n </span>\n </div>\n </a>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"fixed-action-btn click-to-toggle\" style=\"bottom: 45px; right: 24px;\">\n <a class=\"btn-floating btn-large pink waves-effect waves-light\">\n <i class=\"large material-icons\">add</i>\n </a>\n\n <!-- <ul>\n <li>\n <a class=\"btn-floating red\"><i class=\"material-icons\">note_add</i></a>\n <a href=\"\" class=\"btn-floating fab-tip\">Add a note</a>\n </li>\n\n <li>\n <a class=\"btn-floating yellow darken-1\"><i class=\"material-icons\">add_a_photo</i></a>\n <a href=\"\" class=\"btn-floating fab-tip\">Add a photo</a>\n </li>\n\n <li>\n <a class=\"btn-floating green\"><i class=\"material-icons\">alarm_add</i></a>\n <a href=\"\" class=\"btn-floating fab-tip\">Add an alarm</a>\n </li>\n\n <li>\n <a class=\"btn-floating blue\"><i class=\"material-icons\">vpn_key</i></a>\n <a href=\"\" class=\"btn-floating fab-tip\">Add a master password</a>\n </li>\n </ul> -->\n </div>\n </main>\n\n<?php\n $g->getFooter();\n }", "title": "" }, { "docid": "f64c4a9eb639e967bb877bf81e25761b", "score": "0.49891973", "text": "function getContenu(){\n return $this->contenu;\n }", "title": "" }, { "docid": "d252c6ca9b3162cbc8f4ee474c4dc347", "score": "0.49879605", "text": "function _mostrar(){\n $html = $this->Cabecera();\n $html .= $this->contenido();\n $html .= $this->Pata();\n echo $html;\n }", "title": "" }, { "docid": "e6c77ea17f1d36f5329868d2073b4391", "score": "0.4985118", "text": "function Elements(){\n\n// recuperation des variables\nglobal $FormVars, $Calcul, $Definition, $Script , $Config;\n\n// Initialisation du buffer de sortie\n$Donnees = \"\" ;\n$CurPage = \"Nouveau\";\n$TypeCalcul = \"Defaut\";\n$ThemeTemp = \"\";\n\n// Recherche du script special pour le type de calcul appele\nforeach ($Script[$CurPage] as $IndexScript=>$ValScript){\nif ($Script[$CurPage][$IndexScript][\"calcul\"] == $FormVars['type']):\n$TypeCalcul = $FormVars['type'];\nbreak;\nendif;\n}\n\n// Script normal code pour les differentes portions de formulaire\nforeach ($Script[$CurPage] as $IndexScript=>$ValScript){\nif ($Script[$CurPage][$IndexScript][\"calcul\"] == $TypeCalcul){\nif (ereg ($Config['TagDebut'], $Script[$CurPage][$IndexScript][\"valeur\"]) and !ereg($Config['TagDebut'].$Config['FormVars'], $Script[$CurPage][$IndexScript][\"valeur\"])){\nforeach (${$Script[$CurPage][$IndexScript][\"type\"]}[$FormVars['type']] as $Type=>$value):\nif ($ThemeTemp != ${$Script[$CurPage][$IndexScript][\"type\"]}[$FormVars['type']][$Type]['theme'] && $TypeCalcul!=$FormVars['type']){\n$Donnees .= '<tr><th colspan=\"2\" class=\"Theme\">'.${$Script[$CurPage][$IndexScript][\"type\"]}[$FormVars['type']][$Type]['theme'].'</th></tr>';\n\t$ThemeTemp = ${$Script[$CurPage][$IndexScript][\"type\"]}[$FormVars['type']][$Type]['theme'] ; \n\t}\n$Donnees .= DecodeVars ($Script[$CurPage][$IndexScript][\"valeur\"], ${$Script[$CurPage][$IndexScript][\"type\"]}[$FormVars['type']][$Type]) ;\nendforeach ;\n}\nelse\n$Donnees .= $Script[$CurPage][$IndexScript][\"valeur\"];\n}\n}\n\n\t\n// Renvoi des resultats\nreturn $Donnees ;\n}", "title": "" }, { "docid": "042516d22c27ae4bb7fc5c2c8b68716c", "score": "0.4984385", "text": "public function modifier() {\n $id = $this->requete->getParametreId('id');\n $produit = $this->produit->getProduit($id);\n $this->genererVue(['produit' => $produit]);\n }", "title": "" }, { "docid": "ace8c283171709dc8128e1c5ab189f37", "score": "0.4984048", "text": "public static function afficheAnnonceAD($dbh) {\n $query = \"SELECT * FROM `annonce`\";\n $sth = $dbh->prepare($query);\n $sth->execute();\n \n while ($ann = $sth->fetch()) {\n //$annonce = new Annonce($ann['titre'], $ann['prix'], $ann['categorie'], $ann['adresse'], $ann['ville'], $ann['espace'], $ann['description']);\n echo\"<div>\";\n print_r(\"<img alt = 'photo de la maison' src = 'images/\" . $ann['img'] . \"'>\");\n echo'<br>';\n print_r(\"titre :\" . htmlspecialchars($ann['titre']));\n echo'<br>';\n print_r(\"prix :\" . htmlspecialchars($ann['prix']) . \" MRU\");\n echo'<br>';\n print_r(\"adresse :\" . htmlspecialchars($ann['adresse']));\n echo'<br>';\n echo<<<END\n <div class=\"zoneAfficheCommentaire\">\n <span class=\"ClicComment\"></span>\n END;\n echo\"<div class='voircommentaire'>\";\n $idannonce=$ann['id1'];\n Commentaire :: afficheCommentaireAd($dbh,$idannonce);\n \n echo \"</div>\";\n echo \"</div>\";\n $ti = $ann['titre'];\n $id = $ann['id'];\n echo<<< CHAINE_DE_FIN\n <button class = 'btn btn-outline-danger' type = 'submit' role='link' onClick = \"window.location='index.php?page=compte&&todo=SupannAD&&titre=$ti&&id=$id'\">Supprimer annonce</button>\nCHAINE_DE_FIN;\n echo' <br>';\n echo' <br>';\n echo' <br>';\n echo \"</div>\";\n }\n \n }", "title": "" }, { "docid": "0c82a06f0022ec11db95213b5a5a8acb", "score": "0.49776182", "text": "function referentiel_print_entete_repartition(){\r\n// Affiche une entete repartition\r\n$s=\"\";\r\n $s.='<div align=\"center\">';\r\n\t$s.='<table class=\"activite\">'.\"\\n\";\r\n\t$s.='<tr>';\r\n\t$s.='<th width=\"10%\"><b>'.get_string('id','referentiel').'</b></th>';\r\n\t$s.='<th width=\"20%\"><b>'.get_string('code_item').'</b></th>';\r\n\t$s.='<th width=\"20%\"><b>'.get_string('teacher').'</b></th>';\r\n $s.='<th width=\"20%\"><b>'.get_string('affectation','referentiel').'</b></th>';\r\n $s.='<th width=\"30%\">&nbsp;</th>';\r\n\t$s.='</tr>'.\"\\n\";\r\n\treturn $s;\r\n}", "title": "" }, { "docid": "5d368abc369d2e9428c9508f475cdc6b", "score": "0.49772522", "text": "function produits_vendus_post_edition($flux){\n \n \n // Apres COMMANDE :\n // quand la commande passe du statut=attente a statut=paye\n if (\n $flux['args']['action'] == 'instituer'\n AND $flux['args']['table'] == 'spip_commandes'\n AND ($id_commande = intval($flux['args']['id_objet'])) > 0\n AND ($statut_nouveau = $flux['data']['statut']) == 'paye'\n AND ($statut_ancien = $flux['args']['statut_ancien']) == 'attente'\n ){\n // Informations concernant la commande\n $id_auteur= sql_getfetsel('id_auteur', 'spip_commandes', 'id_commande='.intval($id_commande));\n \n // retrouver les objets correspondants a la commande dans spip_commandes_details\n if (\n $objets = sql_allfetsel('objet,id_objet', 'spip_commandes_details', 'id_commande='.intval($id_commande))\n AND is_array($objets)\n AND count($objets)\n ){\n \n include_spip('action/editer_objet');\n \n foreach($objets as $v) {\n // Si un objet produit\n // fait partit des details la commande\n if($v['objet']=='produit'){\n \n $objet = $v['objet'];\n $id_objet = intval($v['id_objet']);\n \n \n \n objet_modifier($objet, $id_objet, array('statut'=>'vendu'));\n spip_log(' Objet: '.$objet.' ('.$id_objet.') - Commande : '.$id_commande,'produits');\n\n } \n }\n }\n }\n \n return $flux;\n}", "title": "" }, { "docid": "347dc4acdcd3f6be66c354862aeda15a", "score": "0.49757427", "text": "function testClickDossier() {\n $tabl_dossier = scandir($_POST['repertoire'] . '/' . $_POST['dossier']);\n $tabl_dossier = triGenerique($_POST['repertoire'] . '/' . $_POST['dossier'], $tabl_dossier);\n $d = 0;\n\n for ($i = 0; $i < count($tabl_dossier); $i++) {\n $pathDossier = $_POST['repertoire'] . '/' . $_POST['dossier'] . \"/\" . $tabl_dossier[$i];\n\n if ($tabl_dossier[$i][0] != '.') {\n $d = $d + 0.1;\n echoGenerique($tabl_dossier, $pathDossier, $i, $d);\n }\n }\n}", "title": "" }, { "docid": "fedd3512ae9e823576d3b946cd7a8936", "score": "0.49747136", "text": "function rendnblignes($requete) { \n /* Declaration des variables de connexion a la BDD */\n\t\nif ( $_SERVER['HTTP_HOST'] == 'localhost' ) { \n $serveur=$_SERVER['HTTP_HOST'] ;\n $loginserveur='root' ;\n $mdpserveur='' ;\n $nombdd='u128572442_myst' ;\n} \nif ( $_SERVER['HTTP_HOST'] == 'mystillus.esy.es' ){\n $serveur='mysql.hostinger.fr' ;\n $loginserveur='u128572442_myst' ;\n $mdpserveur='dragon18' ;\n $nombdd='u128572442_myst' ;\n }\n \nif ( $_SERVER['HTTP_HOST'] == 'mystillus.hol.es' ){\n $serveur='mysql.hostinger.fr' ;\n $loginserveur='u353141068_myst' ;\n $mdpserveur='dragon18' ;\n $nombdd='u353141068_myst' ;\n }\n \n /* CONNECTION serveur, definition du charset, connexion bdd, requete sql */\n $con = mysqli_connect ($serveur,$loginserveur,$mdpserveur) \n or die(\"impossible de se connecter : \" .mysqli_error()) ; /* affichage error si probleme */ \n $con->set_charset('utf8');\n mysqli_select_db($con,$nombdd) \n or die(\"impossible de selecter la base: \" .mysqli_error()) ; /* affichage error si probleme */ \n \n $resultat1 = mysqli_query($con,$requete) or die('Erreur SQL !<br>'.$requete.'<br>'.mysqli_error()); \n \n\t$resultat2=mysqli_num_rows($resultat1);\n //$resultat2=mysqli_fetch_field($resultat1);\n\n return $resultat2; \n \n //if( $resultat2[0] == 0) { echo \"vous n'avez pas de compte\"; } else { echo \"oui il y a un compte\"; }\t\n // on ferme la connexion à mysql \n mysqli_close($con); \n}", "title": "" }, { "docid": "55b9e2777206eed12759f0376235d603", "score": "0.49718937", "text": "function html_pie_cc_contenido__A(&$nodo)\r\n\t{\r\n\t\t//Llamar al procedimiento estandar\r\n\t\t$this->html_pie_cc_contenido();\t\t\r\n\t}", "title": "" }, { "docid": "7a528fd891b7d4745715f20c5cd9eee7", "score": "0.49712062", "text": "function affichageVenteClient($dataVente,$db_handle){\n\t$idVente=$dataVente['IdVente'];\n\techo <<< FOOBAR\n\t<div class=\"container\">\n\t<div class=\"row\">\n\t<div class=\"col border-right\">\n\t<img class=\"mx-auto d-block\" width=\"300\" src=\"{$dataVente['Photo']}\">\n\t</div>\n\t<aside class=\"col-sm-7 border-right border-top border-bottom\">\n\t<article class=\"card-body p-5\">\n\t<h3 class=\"title mb-3\">{$dataVente['Nom']}</h3>\n\t<hr>\n\t<dl class=\"item-property\">\n\t<dt>Description</dt>\n\t<dd><p>{$dataVente['Description']}\n\t</dl>\n\t<dl class=\"param param-feature\">\n\t<dt>Catégorie</dt>\n\t<dd>{$dataVente['Categorie']}</dd>\n\t</dl>\n\t<dl class=\"param param-feature\">\n\t<dt>Type de vente</dt>\n\t<dd>{$dataVente['TypeVente']} ou Vente directe</dd>\n\t</dl>\n\t<hr>\n\t<dl class=\"param param-feature\">\n\t<dt>Prix d'achat immédiat</dt>\n\t</dl>\n\t<p class=\"price-detail-wrap\">\n\t<span class=\"price h3 text-warning\">\n\t<span class=\"currency\">EUR €</span><span class=\"num\">{$dataVente['PrixAchatImmediat']} </span>\n\t</span>\n\t</p>\n\t<a href=\"traitementAjoutPanier.php?idvente={$dataVente['IdVente']}\" class=\"btn btn-lg btn-outline-dark text-uppercase\"> <i class=\"fas fa-shopping-cart\"></i> Ajouter au panier </a> <a href=\"paiementImmediat.php?idvente={$dataVente['IdVente']}\" class=\"btn btn-lg btn-outline-danger text-uppercase\"> <i class=\"fas fa-shopping-cart\"></i> Achat Immediat</a>\n\tFOOBAR;\n\n\tif($dataVente['TypeVente']==\"Enchere\")\n\t{\n\t\t$sql = \"SELECT * FROM enchere WHERE IdVente = $idVente;\";\n\t\t$result = mysqli_query($db_handle, $sql);\n\n\t\tif (mysqli_num_rows($result) != 0) $data = mysqli_fetch_assoc($result);\n\n\t\techo <<< FOOBAR\n\t\t<hr>\n\t\t<dl class=\"param param-feature\">\n\t\t<dt>Prix de départ</dt>\n\t\t</dl>\n\t\t<p class=\"price-detail-wrap\">\n\t\t<span class=\"price h3 text-warning\">\n\t\t<span class=\"currency\">EUR €</span><span class=\"num\">{$dataVente['PrixDepart']}</span>\n\t\t</span>\n\t\tFOOBAR;\n\n\t\tif (mysqli_num_rows($result) != 0){\n\t\t\techo <<< FOOBAR\n\t\t\t<hr>\n\t\t\t<dl class=\"param param-feature\">\n\t\t\t<dt>Prix Actuel</dt>\n\t\t\t</dl>\n\t\t\t<p class=\"price-detail-wrap\">\n\t\t\t<span class=\"price h3 text-warning\">\n\t\t\t<span class=\"currency\">EUR €</span><span class=\"num\">{$data['PrixActuel']}</span>\n\t\t\t</span>\n\t\t\t<dl class=\"param param-feature\">\n\t\t\t<dt>Date de fin d'enchere</dt>\n\t\t\t</dl>\n\t\t\t<span class=\"price h3 text-danger\">\n\t\t\t<span class=\"date\">{$dataVente['DateFin']}</span>\n\t\t\t</span>\n\t\t\tFOOBAR;\n\n\t\t}\n\t\techo <<< FOOBAR\n\t\t</p>\n\t\t<form action=\"traitementAjoutEnchere.php?idvente={$dataVente['IdVente']}\" method=\"post\">\n\t\t<div class=\"input-group mb-3\">\n\t\t<input type=\"number\" name=\"prix\" class=\"form-control input_user\" placeholder=\"Entrer ici votre prix\" >\n\t\t</div>\n\t\t<div class=\"d-flex mt-3 login_container\">\n\t\t<input type=\"submit\" class=\"btn btn-outline-dark text-uppercase\" value=\"Faire une offre d'enchere\">\n\t\t</div>\n\t\t</form>\n\t\t<hr>\n\t\t<dl class=\"param param-feature\">\n\t\t<dt>Auto-Enchère Maximale</dt>\n\t\t</dl>\n\t\t<form action=\"traitementAjoutAutoEnchere.php?idvente={$dataVente['IdVente']}\" method=\"post\">\n\t\t<div class=\"input-group mb-3\">\n\t\t<input type=\"number\" name=\"prix\" class=\"form-control input_user\" placeholder=\"Entrer ici votre prix maximal pour l'auto-enchère\" >\n\t\t</div>\n\t\t<div class=\"d-flex mt-3 login_container\">\n\t\t<input type=\"submit\" class=\"btn btn-outline-dark text-uppercase\" value=\"Faire une offre d'auto-enchere max\">\n\t\t</div>\n\t\t</form>\n\t\t</article>\n\t\t</aside>\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\t\tFOOBAR;\n\t}\n\n\tif($dataVente['TypeVente']==\"Negociation\"){\n\n\t\t$idclient=$_SESSION['Id'];\n\t\t$sqlnego = \"SELECT * FROM negociation WHERE IdVente = $idVente AND IdClient = $idclient ;\";\n\t\t$resultnego = mysqli_query($db_handle, $sqlnego);\n\n\n\n\t\techo <<< FOOBAR\n\t\t<hr>\n\t\t<dl class=\"param param-feature\">\n\t\t<dt>Prix de départ</dt>\n\t\t</dl>\n\t\t<p class=\"price-detail-wrap\">\n\t\t<span class=\"price h3 text-warning\">\n\t\t<span class=\"currency\">EUR €</span><span class=\"num\">{$dataVente['PrixDepart']}</span>\n\t\t</span>\n\t\t</p>\n\t\t<dl class=\"param param-feature\">\n\t\t<dt>Date de fin </dt>\n\t\t</dl>\n\t\t<span class=\"price h3 text-danger\">\n\t\t<span class=\"date\">{$dataVente['DateFin']}</span>\n\t\t</span>\n\t\t<hr>\n\t\t<dl class=\"param param-feature\">\n\t\t<dt>Négociation</dt>\n\t\t</dl>\n\t\tFOOBAR;\n\t\tif (mysqli_num_rows($resultnego) == 0)\n\t\t{\n\t\t\techo <<< FOOBAR\n\t\t\t<form action=\"traitementNouvelleNego.php?idvente={$dataVente['IdVente']}\" method=\"post\">\n\t\t\t<div class=\"input-group mb-3\">\n\t\t\t<input type=\"number\" name=\"prix\" class=\"form-control input_user\" placeholder=\"Entrez ici votre prix\" >\n\t\t\t</div>\n\t\t\t<div class=\"d-flex mt-3 login_container\">\n\t\t\t<input type=\"submit\" class=\"btn btn-outline-dark text-uppercase\" value=\"Proposer une négociation\">\n\t\t\t</div>\n\t\t\t</form>\n\t\t\t</article>\n\t\t\t</aside>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\tFOOBAR;\n\t\t}else {\n\t\t\techo <<< FOOBAR\n\t\t\t<dl class=\"param param-feature\">\n\t\t\t<dd>Vous avez déjà entamé une négociation pour cet objet, veuillez consulter l'onglet Achats / Négociations en cliquant <a href=\"viewachats.php\"> ici </a> </dd>\n\t\t\t</dl>\n\t\t\t</article>\n\t\t\t</aside>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\tFOOBAR;\n\t\t}\n\t}\n\n\n\n\n}", "title": "" } ]
8480952e51835876d31f278847ca4b2f
Check if "Delete leading and trailing silent blocks" is set to "No" and set the $deductedPoints and return false if it fails.
[ { "docid": "5c5dd0810a13e288e4a04bfde98731c7", "score": "0.60882944", "text": "protected function checkSilentBlockDeletion(): bool\n {\n $assertion = false;\n $result = $this->parser->data['options']['read_options']['delete_leading_trailing_silent_blocks'];\n $check = self::DELETES_SILENT_BLOCKS;\n\n return $this->scoreResult($result, $assertion, $check);\n }", "title": "" } ]
[ { "docid": "03faababd63fdc9c876ac571a9975440", "score": "0.5206235", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('video.component_block_detail_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "e2539c18f972cb08714377a9e6dfe8c9", "score": "0.5170491", "text": "protected function checkTestCopyUsed(): bool\n {\n foreach ($this->parser->data['tracks'] as $track) {\n if ($track['copy'] != 'OK') {\n $this->errors[self::TEST_COPY_NOT_USED] = true;\n $this->deductedPoints += parent::$pointDeductions[self::TEST_COPY_NOT_USED];\n }\n }\n\n if (!isset($this->errors[self::TEST_COPY_NOT_USED])) {\n $this->errors[self::TEST_COPY_NOT_USED] = false;\n }\n\n return true;\n }", "title": "" }, { "docid": "011e1c6d1e01a77a2f81a99cf642b784", "score": "0.5104793", "text": "public function hasDrop(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "846f1f5b5418dc3bd45709e747da9be1", "score": "0.50829244", "text": "public function isStartExcluded(): bool\n {\n return '(' === $this->boundaryType[0];\n }", "title": "" }, { "docid": "9ff2ef82f0553b1615905a4f5a04082a", "score": "0.5039593", "text": "public function prune() : bool\n {\n return $this->adapter->prune();\n }", "title": "" }, { "docid": "bc2d1db08d05f5a046e48c319d0b2277", "score": "0.5026892", "text": "public function canDeductPoints(string $key): bool\n {\n $rtn = false;\n \n if ($this->getPoints($key) > 0) {\n $rtn = true;\n }\n \n return $rtn;\n }", "title": "" }, { "docid": "cc93b550894a0c54122af05a625b9700", "score": "0.49887046", "text": "public function subtractPoints(): bool\n {\n // TODO: Subtract points from the user here, return true if the result is correct.\n $this->account;\n $this->price;\n return true;\n }", "title": "" }, { "docid": "dcb33e6e4c419c238cc4624e0aedb730", "score": "0.4920002", "text": "public function isCleaned(): bool {\n return ($this->metersSquaredCleaned >= $this->metersSquaredArea) ? TRUE : FALSE;\n }", "title": "" }, { "docid": "7dbcd87dc345216c63df680ab37e772b", "score": "0.4882638", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('quiz.component_block_stat_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "d35756ad0814d699ea37da918d20442a", "score": "0.4864814", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('comment.component_block_view_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "41e815c741fbc85164aa0501cad054e2", "score": "0.48112074", "text": "protected function shouldDrop(): bool\n {\n return $this->drop;\n }", "title": "" }, { "docid": "28f63ed5310123c911bcaedec8ea7dc1", "score": "0.47955924", "text": "public function valid()\n {\n return isset($this->points[$this->pointerPosition]);\n }", "title": "" }, { "docid": "9252429d136d6c1999b48d233107b023", "score": "0.4766698", "text": "public function getCanCapturePartial()\n {\n if (parent::getCanCapturePartial() && !$this->getConfigData('line_items_enabled')) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "4071cbf8d9c97f92bc31b59da3022c76", "score": "0.47616258", "text": "public function valid()\n {\n if ($this->pointer < 0) {\n $this->pointer = 0;\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "57b0a1f3f278c82e7d22b9571debacd2", "score": "0.4757113", "text": "public function drop(): bool;", "title": "" }, { "docid": "c83ef30402ee49efcb8dea741f9d3d47", "score": "0.47388205", "text": "public function checkMoveSection()\n {\n return !$this->isRoot() && $this->getPosition() != $this->getId();\n }", "title": "" }, { "docid": "62f3d0e931465b4d0e2249bd3085504f", "score": "0.4732116", "text": "public function clean()\n {\n\t(($sPlugin = Phpfox_Plugin::get('photo.component_block_featured_clean')) ? eval($sPlugin) : false);\n }", "title": "" }, { "docid": "ee649cf621fb50dc3f302d9e75918d98", "score": "0.47261146", "text": "public function isSkipped()\n {\n return (bool) $this->getOption(static::SKIP_DIFF);\n }", "title": "" }, { "docid": "0182a85a2e1b7043a680a74c9cbb65a5", "score": "0.47161832", "text": "public function valid()\n {\n $this->getLine();\n if ($this->isEnd()) {\n return false;\n }\n if ($this->skipEmpty) {\n $this->skipByCallback(function(Str $line){\n if ($line->strip()->isEmpty()) {\n return true;\n }\n return false;\n });\n }\n if ($this->skipCallback) {\n $skip = $this->skipCallback;\n $this->skipByCallback($this->skipCallback);\n }\n return (! $this->isEnd());\n }", "title": "" }, { "docid": "b3ffdaeb800955b62b6ecc292e64783a", "score": "0.4661999", "text": "public function canRevertMoveAsset(){\n /*\n * 1) Tiene que estar en el punto de partida que consigana el documento\n */\n return true;\n }", "title": "" }, { "docid": "494a6200c76a050988fd4344f706fd83", "score": "0.46270317", "text": "public function canPlaceBreakBlocks() {\n\t\treturn $this->canPlaceBreak;\n\t}", "title": "" }, { "docid": "4d8dd107643554370524ce1541f847d9", "score": "0.4616258", "text": "public function isEmpty(): bool\n {\n return $this->points->isEmpty();\n }", "title": "" }, { "docid": "e9726e955e729549903ca0a6034051b1", "score": "0.4581192", "text": "public function isOffsetPreserved(): bool\n {\n return $this->preserve_offset;\n }", "title": "" }, { "docid": "059a4dcdb6ae757a22abe25dce7282f5", "score": "0.45649898", "text": "public function isEndExcluded(): bool\n {\n return ')' === $this->boundaryType[1];\n }", "title": "" }, { "docid": "b4562e37d81803ef8f1763c219dd71db", "score": "0.456359", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('friend.component_block_suggestion_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "16114b97f731327fe722b3022a3c3b49", "score": "0.45619988", "text": "public function delete_snippets()\n {\n return (Settings::getInstance()->MODULES['REW_IDX_SNIPPETS'] &&\n ($this->is_super_admin_as_admin() ||\n ($this->auth->info('mode') == 'admin' && $this->auth->adminPermission(Auth::PERM_CMS_SNIPPETS_DELETE)))\n ) ? true : false;\n }", "title": "" }, { "docid": "ff985f638f936d511927510ae2a767f2", "score": "0.45515457", "text": "public static function shouldDeleteUnused(): bool;", "title": "" }, { "docid": "c02cb89c70dbee35767a910af7a36c95", "score": "0.45260423", "text": "public function wantsDeletion()\n\t{\n\t\treturn ! is_null($this->deleting()) && $this->deleting()->count() > 0;\n\t}", "title": "" }, { "docid": "fc219c04391010ab97003b0cfe621cea", "score": "0.45203698", "text": "public static function isAllowDisputes()\n {\n return static::isMultivendor() && (!static::isWarehouse() || static::isVendorAllowedToCommunicate());\n }", "title": "" }, { "docid": "f623e9c7c76227e58417211ecfbbda27", "score": "0.45194545", "text": "public function valid()\n {\n if (isset($this->blockChains[$this->index]))\n {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "ab14676678208dc23495ab88e4b5ace3", "score": "0.45051908", "text": "public function acceptsLines() : bool\n {\n return false;\n }", "title": "" }, { "docid": "2491a0b710be38dd01efeafd721786e6", "score": "0.45019972", "text": "public function isDraw(): bool {\n return !$this->isWin() && count($this->legalMoves()) == 0;\n }", "title": "" }, { "docid": "2491a0b710be38dd01efeafd721786e6", "score": "0.45019972", "text": "public function isDraw(): bool {\n return !$this->isWin() && count($this->legalMoves()) == 0;\n }", "title": "" }, { "docid": "3e8d90274f9fa510489b11e9e599c1b4", "score": "0.44982594", "text": "public function isProductLinksCanBePurchasedSeparately()\n {\n return (bool) $this->getProduct()->getData('links_purchased_separately');\n }", "title": "" }, { "docid": "c47de6c3ed90a1d273226fecda191f02", "score": "0.4495223", "text": "function _preprocessBlock(&$blk)\n {\n // Complex (non-scalar) blocks are not processed.\n if (is_array($blk->value) || is_object($blk->value)) return true;\n\n // Check for pragma.\n $name = strtolower($blk->name);\n if (strpos($name, $this->PRAGMA_PRE) === 0) {\n $pragma = substr($name, strlen($this->PRAGMA_PRE));\n $func = \"_pragma_\".ucfirst($pragma);\n if (method_exists($this, $func)) {\n $r = call_user_func(array(&$this, $func), &$blk);\n if (!$r) return false;\n }\n }\n\n // Run modifiers.\n if ($blk->raw) return true;\n foreach (array_reverse($this->config['modifier']) as $re=>$codes) {\n if (!preg_match(\"/^(?:$re)$/si\", $blk->name)) continue;\n foreach (array_reverse($codes) as $code) {\n list ($cls, $name) = explode(\"::\", $code);\n if (!$name) { $name = $cls; $cls = null; }\n $blk->value = call_user_func($cls? array($cls, $name) : $name, $blk->value, &$this, $blk);\n if ($blk->value === false) return false;\n }\n }\n\n // All done.\n return true;\n }", "title": "" }, { "docid": "5084ecd4e9b57e94ad5e318b645bb00f", "score": "0.4486006", "text": "public function beforeDelete()\n {\n if ($this->path && !$this->deleteFile()) {\n return false;\n }\n return parent::beforeDelete();\n }", "title": "" }, { "docid": "9ea565cdfcc5c89afb4cafd029a944a9", "score": "0.4483749", "text": "public function clean()\n {\n (($sPlugin = Phpfox_Plugin::get('feed.component_block_loadnew_clean')) ? eval($sPlugin) : false);\n }", "title": "" }, { "docid": "fa9cb0522b5227eb53b8825a88ff51ff", "score": "0.44712877", "text": "private function fixInvoiceInBalance(): bool\n {\n $outgoingStorageDepartment = $this->getOutgoingStorageDepartment();\n $incomingStorageDepartment = $this->getIncomingStorageDepartment();\n\n foreach ($this->getInvoiceProducts() as $invoiceProduct) {\n // get last incoming product price for statistics\n $lastIncomingProductPrice = $this->getLastIncomingProductPrice($outgoingStorageDepartment, $invoiceProduct);\n\n if (!($this->fixOutgoingStorageInvoiceInBalance($outgoingStorageDepartment, $invoiceProduct, $lastIncomingProductPrice) && $this->fixIncomingStorageInvoiceInBalance($incomingStorageDepartment, $invoiceProduct, $lastIncomingProductPrice))) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "ae5683ff963b772f94a7f7b1eef35e5c", "score": "0.4470964", "text": "protected function _shouldInsertSnippet()\n\t{\n\t\t// get config\n\t\t$config = Sh404sefFactory::getConfig();\n\n\t\t// check if we have a tracking code, no need to insert snippet if no tracking code\n\t\tif (empty($config->analyticsUgaId) && $config->analyticsEdition == 'uga')\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif (empty($config->analyticsGtmId) && $config->analyticsEdition == 'gtm')\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// check if we are set to include tracking code for current user\n\t\tif (!sh404sefHelperGeneral::isInGroupList(JAccess::getGroupsByUser(JFactory::getUser()->id, $recursive = true), empty($config->analyticsUserGroups) ? array(1) : $config->analyticsUserGroups))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (sh404sefHelperGeneral::isInGroupList(JAccess::getGroupsByUser(JFactory::getUser()->id, $recursive = true), $config->analyticsUserGroupsDisabled))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t// check if current IP is on exclusion list\n\t\tif (!empty($config->analyticsExcludeIP))\n\t\t{\n\t\t\t$ip = empty($_SERVER['REMOTE_ADDR']) ? '' : $_SERVER['REMOTE_ADDR'];\n\t\t\t$exclude = Sh404sefHelperGeneral::checkIPList($ip, $config->analyticsExcludeIP);\n\t\t\tif ($exclude)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a87a8b93c79c268fe92f7355cd9e49a6", "score": "0.44626456", "text": "public function isClean();", "title": "" }, { "docid": "49547bd7426fa5f61a5c26508f746d4c", "score": "0.44620848", "text": "public function proceed()\n {\n $next_token = $this->next_token();\n list($token_type, $block_name, $attrs, $start_offset, $token_length) = $next_token;\n $stack_depth = count($this->stack);\n\n // we may have some HTML soup before the next block.\n $leading_html_start = $start_offset > $this->offset ? $this->offset : null;\n\n switch ($token_type) {\n case 'no-more-tokens':\n // if not in a block then flush output.\n if (0 === $stack_depth) {\n $this->add_freeform();\n\n return false;\n }\n\n /*\n * Otherwise we have a problem\n * This is an error\n *\n * we have options\n * - treat it all as freeform text\n * - assume an implicit closer (easiest when not nesting)\n */\n\n // for the easy case we'll assume an implicit closer.\n if (1 === $stack_depth) {\n $this->add_block_from_stack();\n\n return false;\n }\n\n /*\n * for the nested case where it's more difficult we'll\n * have to assume that multiple closers are missing\n * and so we'll collapse the whole stack piecewise\n */\n while (0 < count($this->stack)) {\n $this->add_block_from_stack();\n }\n\n return false;\n\n case 'void-block':\n /*\n * easy case is if we stumbled upon a void block\n * in the top-level of the document\n */\n if (0 === $stack_depth) {\n if (isset($leading_html_start)) {\n $this->output[] = (array) $this->freeform(\n substr(\n $this->document,\n $leading_html_start,\n $start_offset - $leading_html_start\n )\n );\n }\n\n $this->output[] = (array) new WP_Block_Parser_Block($block_name, $attrs, [], '', []);\n $this->offset = $start_offset + $token_length;\n\n return true;\n }\n\n // otherwise we found an inner block.\n $this->add_inner_block(\n new WP_Block_Parser_Block($block_name, $attrs, [], '', []),\n $start_offset,\n $token_length\n );\n $this->offset = $start_offset + $token_length;\n\n return true;\n\n case 'block-opener':\n // track all newly-opened blocks on the stack.\n array_push(\n $this->stack,\n new WP_Block_Parser_Frame(\n new WP_Block_Parser_Block($block_name, $attrs, [], '', []),\n $start_offset,\n $token_length,\n $start_offset + $token_length,\n $leading_html_start\n )\n );\n $this->offset = $start_offset + $token_length;\n\n return true;\n\n case 'block-closer':\n /*\n * if we're missing an opener we're in trouble\n * This is an error\n */\n if (0 === $stack_depth) {\n /*\n * we have options\n * - assume an implicit opener\n * - assume _this_ is the opener\n * - give up and close out the document\n */\n $this->add_freeform();\n\n return false;\n }\n\n // if we're not nesting then this is easy - close the block.\n if (1 === $stack_depth) {\n $this->add_block_from_stack($start_offset);\n $this->offset = $start_offset + $token_length;\n\n return true;\n }\n\n /*\n * otherwise we're nested and we have to close out the current\n * block and add it as a new innerBlock to the parent\n */\n $stack_top = array_pop($this->stack);\n $html = substr($this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset);\n $stack_top->block->innerHTML .= $html;\n $stack_top->block->innerContent[] = $html;\n $stack_top->prev_offset = $start_offset + $token_length;\n\n $this->add_inner_block(\n $stack_top->block,\n $stack_top->token_start,\n $stack_top->token_length,\n $start_offset + $token_length\n );\n $this->offset = $start_offset + $token_length;\n\n return true;\n\n default:\n // This is an error.\n $this->add_freeform();\n\n return false;\n }\n }", "title": "" }, { "docid": "3e67eef732275554d7b9767a16730c9e", "score": "0.44616443", "text": "public function done() {\n if ($this->suppliedFragmentMeta === false) {\n return false;\n }\n\n $this->suppliedFragmentMeta = false;\n return true;\n }", "title": "" }, { "docid": "8e271e1604752b1ef6e409486b29b078", "score": "0.4459803", "text": "public function skip(): bool\n {\n return false === $this->check;\n }", "title": "" }, { "docid": "bf2a76a26723a5da53a5bc80f9037d08", "score": "0.44565383", "text": "protected function checkFillUpOffsetSamples(): bool\n {\n $assertion = true;\n $result = $this->parser->data['options']['read_options']['fill_up_missing_offset_samples_with_silence'];\n $check = self::DOES_NOT_FILL_MISSING_SAMPLES;\n\n return $this->scoreResult($result, $assertion, $check);\n }", "title": "" }, { "docid": "a3e0a295ee631245a88fed4fadc778a6", "score": "0.44508806", "text": "public function hasSlots()\n {\n return $this->isTemplate()\n ? ($this->countsfPlopSlots() > 0 ? true : false)\n : ($this->countsfPlopSlotConfigs() > 0 ? true : false)\n ;\n }", "title": "" }, { "docid": "36d45980e5b8f11eba4ca993f183a89e", "score": "0.44374943", "text": "public function sanitize() {\n\n\t\tif ( ! $this->check_required_props() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! $this->sanitize_raw_code() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5bce824100e22988c2c593a7100874ec", "score": "0.44372332", "text": "public function isWithoutCancellationPenaltiesData()\n {\n return (count($this->cancellationPenalties) == 0);\n }", "title": "" }, { "docid": "b73347011fd50ddde88881985d267f28", "score": "0.44346786", "text": "protected function checkGapHandling(): bool\n {\n $assertion = 'Appended to previous track';\n $result = $this->parser->data['options']['read_options']['gap_handling'];\n $check = self::GAP_HANDLING_NOT_DETECTED;\n\n return $this->scoreResult($result, $assertion, $check);\n }", "title": "" }, { "docid": "ac11a1eda1eefe859271e4c70e942e09", "score": "0.44308865", "text": "public function getCanRefundInvoicePartial()\n {\n return true;\n if (parent::getCanRefundInvoicePartial() && !$this->getConfigData('line_items_enabled')) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d5d15c731c4229396c2e53533f46d659", "score": "0.44186795", "text": "public function\t\t\tneedPathFinalCurrent()\n\t{\n\t\tif (!is_null($this->getPathElement())) {\n\t\t\tfor ($p = $this; ; $p = $p->getLeadChild()) {\n\t\t\t\tif (is_null($p->getLeadChild())) {\n\t\t\t\t\t$p->createNotFoundPresenter();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "36f6b89481304c3dabc2c718e8671b69", "score": "0.44166315", "text": "public function preparationNotCompleted(): bool\n {\n $this->output->error('Unable to migrate database');\n\n return false;\n }", "title": "" }, { "docid": "98dd20605db81a7cc8824a538c9ab5f1", "score": "0.4414414", "text": "private function isPrepared(){\n\n if(\n !isset($this->fullFilePath)\n || !isset($this->tags)\n ){\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "714aa4cd6a46e45c3aa3d7711b8b93b7", "score": "0.44130975", "text": "private function skip() {\n\t\treturn !$this->extensionLoaded;\n\t}", "title": "" }, { "docid": "c89d565dc6889c1c7b4aa8989ff6b14f", "score": "0.44110933", "text": "function deleteRequired(){\n\t\treturn ( $this->_relationship->getDistance( $this->_relationship->getDomainTable() ) == 1);\n\t}", "title": "" }, { "docid": "c6094bd939e379572db2f5549d335789", "score": "0.44052544", "text": "public function parse(): bool\n {\n if ($this->valid === true) {\n /**\n * Before processing through the deltas, generate new deltas by splitting\n * on all new lines, will make it much simpler to work out which\n * delta belong to headings, lists etc.\n */\n $this->quill_json = $this->splitInsertsByNewline($this->quill_json['ops']);\n\n foreach ($this->quill_json as $quill) {\n\n if ($quill['insert'] !== null) {\n if (\n array_key_exists('attributes', $quill) === true &&\n is_array($quill['attributes']) === true\n ) {\n if (count($quill['attributes']) === 1) {\n foreach ($quill['attributes'] as $attribute => $value) {\n switch ($attribute) {\n case Options::ATTRIBUTE_BOLD:\n $this->attributeBold($quill);\n break;\n\n case Options::ATTRIBUTE_COLOR:\n $this->attributeColor($quill);\n break;\n\n case Options::ATTRIBUTE_HEADER:\n $this->attributeHeader($quill);\n break;\n\n case Options::ATTRIBUTE_ITALIC:\n $this->attributeItalic($quill);\n break;\n\n case Options::ATTRIBUTE_LINK:\n $this->attributeLink($quill);\n break;\n\n case Options::ATTRIBUTE_LIST:\n $this->attributeList($quill);\n break;\n\n case Options::ATTRIBUTE_SCRIPT:\n $this->attributeScript($quill);\n break;\n\n case Options::ATTRIBUTE_STRIKE:\n $this->attributeStrike($quill);\n break;\n\n case Options::ATTRIBUTE_UNDERLINE:\n $this->attributeUnderline($quill);\n break;\n\n default:\n if (is_array($quill['insert'])) {\n $this->compoundInsert($quill);\n } else {\n $this->insert($quill);\n }\n\n break;\n }\n }\n } else {\n $this->compoundInsert($quill);\n }\n } else {\n if (is_string($quill['insert']) === true) {\n $this->insert($quill);\n } else {\n if (is_array($quill['insert']) === true) {\n if (array_key_exists('image', $quill['insert']) === true) {\n $this->image($quill);\n } else if (array_key_exists('video', $quill['insert']) === true) {\n $this->video($quill);\n }\n }\n }\n }\n }\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2b8e7a175f995cb983314923251c28f8", "score": "0.44007784", "text": "public function valid()\n {\n return is_object($this->pointed);\n }", "title": "" }, { "docid": "4b282b7554a7c2592887ecae845e90a3", "score": "0.43990627", "text": "public function isDiscarded()\n {\n return $this->check(self::DISCARDED);\n }", "title": "" }, { "docid": "decd4197bc78cb5ea9bfbe678f3601e5", "score": "0.43945682", "text": "public function isLogicalDeleting();", "title": "" }, { "docid": "31da5e35dba924f422278df5932c52a7", "score": "0.4392271", "text": "function isDepPres($decomp, $verbose = false) {\n // For each dependency...\n foreach ($this->deps as $dep) {\n list($lhs, $rhs) = $dep;\n $changed = true;\n // Build up the closure within the decomposition\n $realClosure = clone $lhs;\n while ($changed) {\n $changed = false;\n // For each relation in the composition...\n foreach ($decomp as $ri) {\n // Merge in the closure of what we already have\n $newStuff = $ri->closure($realClosure);\n if (!$realClosure->containsAll($newStuff)) {\n $realClosure->addAll($newStuff);\n $changed = true;\n }\n }\n }\n // If the closure in the decomposition doesn't contain the RHS of the dependency...\n if (!$realClosure->containsAll($rhs)) {\n // The decomposition can't be dependency preserving\n if ($verbose) {\n echo 'under this decomposition \\(' . $lhs . '^+=' . $realClosure . '\\) so \\(';\n $this->renderDep($dep, true);\n echo '\\) was lost so ';\n }\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "a1bf9a4f7e8632e66c6882354ae9727e", "score": "0.43918416", "text": "public function\t\t\tneedPathFinalParent()\n\t{\n\t\tif (!is_null($this->getPathElement())) {\n\t\t\tfor ($p = $this; ; $p = $p->getLeadChild()) {\n\t\t\t\tif (is_null($p->getLeadChild())) {\n\t\t\t\t\t$p = $p->getParentPresenter();\n\t\t\t\t\t$p->setLeadChild(null);\n\t\t\t\t\t$p->createNotFoundPresenter();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "47ce4e18230a1b66bb04ce6eea1d439f", "score": "0.43916404", "text": "public function hasInitialSplits(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "c2da35f435c3d85503f190b376a62f52", "score": "0.43890727", "text": "private function isPrevLineEmpty(int $startPosition): bool\n {\n $isPrevLineEmpty = true;\n $posPrevContentPos = $this->loadPrevDocBlockContent($startPosition);\n\n if ($posPrevContentPos !== false) {\n $isPrevLineEmpty = $this->tokens[$startPosition]['line'] - 1 > $this->tokens[$posPrevContentPos]['line'];\n }\n\n return $isPrevLineEmpty;\n }", "title": "" }, { "docid": "318e737d7e1402ae8ef172a5bdaeb8e3", "score": "0.43808094", "text": "public function beforeDelete(): bool\n {\n return true;\n }", "title": "" }, { "docid": "0a75a0d37f8bf628c155c9b499bf39d6", "score": "0.43784735", "text": "public function canSkipOrderReviewStep()\n {\n return false;\n }", "title": "" }, { "docid": "5e302bbdd3fe75102a57e061cb6a2b3f", "score": "0.43766493", "text": "private function checkDraw() {\n return $this->movesTaken == SIZE * SIZE;\n }", "title": "" }, { "docid": "f81a81248f21f01b9da2a61baa724f26", "score": "0.43750945", "text": "public final function isEmpty() : bool\n {\n\n return $this->point->isEmpty()\n && $this->size->width < 1\n && $this->size->height < 1;\n\n }", "title": "" }, { "docid": "cbdb9d27cb9d13259699a8e60d1d08f0", "score": "0.43701902", "text": "public static function cleanPositions()\n\t{\n\t\t$return = true;\n\n\t\t$sql = '\n\t\tSELECT `id_carrier`\n\t\tFROM `'._DB_PREFIX_.'carrier`\n\t\tWHERE `deleted` = 0\n\t\tORDER BY `position` ASC';\n\t\t$result = Db::getInstance()->executeS($sql);\n\n\t\t$i = 0;\n\t\tforeach ($result as $value)\n\t\t\t$return = Db::getInstance()->execute('\n\t\t\tUPDATE `'._DB_PREFIX_.'carrier`\n\t\t\tSET `position` = '.(int)$i++.'\n\t\t\tWHERE `id_carrier` = '.(int)$value['id_carrier']);\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "f65a7e91667f551b7b2884f340e4669c", "score": "0.43700606", "text": "public function isSingleEliminationType()\n {\n return $this->settings != null && $this->settings->treeType == ChampionshipSettings::SINGLE_ELIMINATION;\n }", "title": "" }, { "docid": "c6a0d5f8d472379974b7153962e148f7", "score": "0.43678924", "text": "public function isDealt(): bool\n {\n return $this->dealt;\n }", "title": "" }, { "docid": "89085adf357403c8af57ebb37872b502", "score": "0.43649542", "text": "protected function isRemoved()\n {\n return true;\n }", "title": "" }, { "docid": "89085adf357403c8af57ebb37872b502", "score": "0.43649542", "text": "protected function isRemoved()\n {\n return true;\n }", "title": "" }, { "docid": "aca5edb5d53772778d18b670008d696d", "score": "0.43582696", "text": "public function skip()\n {\n return false;\n }", "title": "" }, { "docid": "18615a3ffd9d7a694a8fa4ecd50767cb", "score": "0.4353947", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('cars.component_block_filter_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "353d42bef435bfeacd36c4e8d20f992e", "score": "0.43437877", "text": "public function deleteSegments()\n {\n try {\n // Start the transaction.\n DB::beginTransaction();\n\n // Fetch the segment IDs.\n $ids = DB::table('consumer.order_segments')->where('order_id', $this->id)->pluck('id');\n\n if ($ids) {\n // Delete the order events.\n DB::table('consumer.order_events')->whereIn('order_segment_id', $ids)->delete();\n\n // Delete the segments.\n DB::table('consumer.order_segments')->whereIn('id', $ids)->delete();\n }\n\n // Commit.\n DB::commit();\n return true;\n } catch (\\Exception $e) {\n // Rollback and return the error.\n DB::rollback();\n throw $e;\n }\n }", "title": "" }, { "docid": "23a28f3c2bef16be6aff4146db2d0d93", "score": "0.4337155", "text": "public function isUnknownPart()\n {\n return !$this->isArticle() && !$this->isNamePart()\n && !$this->isSize() && !$this->isColor()\n && !$this->isStickOrientation();\n }", "title": "" }, { "docid": "0f18cd6fb2988abe59a53b0f3ca1fa71", "score": "0.43341845", "text": "public function valid(){\n\t\treturn $this->x < $this->sizeX && $this->y < $this->sizeY && $this->z < $this->sizeZ;\n\t}", "title": "" }, { "docid": "ada5e372c2f06dbb6d81cac6bf367db0", "score": "0.4334064", "text": "public static function unblockSave(): bool\n\t{\n\t\tstatic::$holdInserting = true;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "198102ea0449a57016ce331cf5f20718", "score": "0.43311924", "text": "private function getDeleteConfirmation()\n {\n if (count($this->subjectRecord->statistics)) {\n $this->io->warning('This location has associated statistics. Deleting it is NOT recommended.');\n $response = $this->io->ask('Please type \"ok\" to acknowledge this and continue.');\n if ($response != 'ok') {\n $this->io->out('That ain\\'t ok. Aborting.');\n\n return false;\n }\n } else {\n $this->io->success('This location has no associated statistics and can probably be safely deleted.');\n }\n $response = $this->io->askChoice(\n 'Are you sure you want to delete this record and associated records?',\n ['y', 'n'],\n 'n'\n );\n\n return $response == 'y';\n }", "title": "" }, { "docid": "7b5fdc10708736e8d994ecce8080b103", "score": "0.43305874", "text": "public function valid()\n {\n return $this->pointer < count($this->data);\n }", "title": "" }, { "docid": "fb6fb07d30cf8e56aece72fca30c6864", "score": "0.4329994", "text": "public function isEmpty(): bool {\r\n\r\n switch(static::$mode) {\r\n\r\n case 'before': return static::$counter[static::$mode] === count(static::$before); break;\r\n case 'after': return static::$counter[static::$mode] === count(static::$after); break;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "8236dee2c17b9bcd6fd175a589a64b1a", "score": "0.43283626", "text": "function isDeletable() {\n global $db,$str;\n $tree=\"\";\n if (is_array($this->element)) {\n foreach ($this->element as $e) {\n if (strtolower(get_class($e))==\"syntree\") $tree=$e;\n if (strtolower(get_class($e))==\"synkey\") $id=$e->getValue();\n }\n }\n\n //the node has child nodes\n if ($tree!=\"\") {\n $qry=\"SELECT * FROM `\".$this->table.\"` WHERE \".$tree->getSQLName().\"=\".$id ;\n $res=$db->Execute($qry);\n $count=$res->RecordCount();\n if ($count>0) return $str[\"cant_delete_child_nodes\"];\n }\n\n // there's no owner field, no tree field or the node has no parent.\n if ($this->ownerField==\"\" or $tree==\"\" or $tree->getValue()==0) return true;\n\n\n $qry=\"SELECT \".$this->ownerField.\" FROM `\".$this->table.\"` WHERE id=\".$tree->getValue();\n $res=$db->Execute($qry);\n $arr=$res->FetchRow();\n if (in_array($arr[$this->ownerField], $_SESSION[\"synGroupChild\"]))\n return true;\n else\n return $str[\"cant_delete\"];\n }", "title": "" }, { "docid": "747645fb372152c08b86ed5aa65d6cf2", "score": "0.4323073", "text": "public function isFirstMoveDoubleStep($xFrom, $yFrom, $xTo, $yTo): bool\n\t{\n//Пешка должна стоять на своей линии\n\t\tif (($this->isBlack && $yFrom === 7) || (!$this->isBlack && $yFrom === 2)){\n\n//Черные делают ход на два квадрата\n\t\t\tif($this->isBlack && $yTo === 5 && $xFrom === $xTo && !$GLOBALS['desk_figures'][$xTo][6]){\n\t\t\t\treturn true;\n\t\t\t}\n\n//Белые делают ход на два квадрата\n\t\t\tif(!$this->isBlack && $yTo === 4 && $xFrom === $xTo && !$GLOBALS['desk_figures'][$xTo][3]){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bec66da7eab9d3466a4f350610a233c2", "score": "0.43223545", "text": "function allowDelete()\r\n\t{\r\n\t\tif(!$this->question_id)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$count = count($this->Answers());\r\n\t\treturn ($count > 0) ? false : true;\r\n\t}", "title": "" }, { "docid": "5224a1c2e7f23e3b379fc358b12beb80", "score": "0.43190974", "text": "public function safeUp()\n\t{\n\t\t// Get the IDs of any orphaned Matrix block rows in craft_elements\n\t\t$ids = craft()->db->createCommand()\n\t\t\t->select('e.id')\n\t\t\t->from('elements e')\n\t\t\t->leftJoin('matrixblocks m', 'm.id = e.id')\n\t\t\t->where(\n\t\t\t\tarray('and', 'e.type = :type', 'm.id is null'),\n\t\t\t\tarray(':type' => ElementType::MatrixBlock)\n\t\t\t)\n\t\t\t->queryColumn();\n\n\t\tif ($ids)\n\t\t{\n\t\t\t// Delete 'em\n\t\t\t$this->delete('elements', array('in', 'id', $ids));\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9bc1fa184730c0ab0fd994fc065a590e", "score": "0.43163067", "text": "function jetpack_post_details_should_run() {\n\t// Empty value representing falsy return value.\n\t$void = array( false, null, null, null );\n\n\t// If the theme doesn't support 'jetpack-content-options', don't continue.\n\tif ( ! current_theme_supports( 'jetpack-content-options' ) ) {\n\t\treturn $void;\n\t}\n\n\t$options = get_theme_support( 'jetpack-content-options' );\n\t$post_details = ( ! empty( $options[0]['post-details'] ) ) ? $options[0]['post-details'] : null;\n\n\t// If the theme doesn't support 'jetpack-content-options[ 'post-details' ]', don't continue.\n\tif ( empty( $post_details ) ) {\n\t\treturn $void;\n\t}\n\n\t$date = ( ! empty( $post_details['date'] ) ) ? $post_details['date'] : null;\n\t$categories = ( ! empty( $post_details['categories'] ) ) ? $post_details['categories'] : null;\n\t$tags = ( ! empty( $post_details['tags'] ) ) ? $post_details['tags'] : null;\n\t$author = ( ! empty( $post_details['author'] ) ) ? $post_details['author'] : null;\n\t$comment = ( ! empty( $post_details['comment'] ) ) ? $post_details['comment'] : null;\n\n\t// If there is no stylesheet and there are no date, categories, tags, author or comment declared, don't continue.\n\tif (\n\t\tempty( $post_details['stylesheet'] )\n\t\t&& ( empty( $date )\n\t\t\t|| empty( $categories )\n\t\t\t|| empty( $tags )\n\t\t\t|| empty( $author )\n\t\t\t|| empty( $comment ) )\n\t) {\n\t\treturn $void;\n\t}\n\n\t$date_option = get_option( 'jetpack_content_post_details_date', 1 );\n\t$categories_option = get_option( 'jetpack_content_post_details_categories', 1 );\n\t$tags_option = get_option( 'jetpack_content_post_details_tags', 1 );\n\t$author_option = get_option( 'jetpack_content_post_details_author', 1 );\n\t$comment_option = get_option( 'jetpack_content_post_details_comment', 1 );\n\n\t$options = array( $date_option, $categories_option, $tags_option, $author_option, $comment_option );\n\t$definied = array( $date, $categories, $tags, $author, $comment );\n\n\t// If all the options are ticked, don't continue.\n\tif ( array( 1, 1, 1, 1, 1 ) === $options ) {\n\t\treturn $void;\n\t}\n\n\treturn array( true, $options, $definied, $post_details );\n}", "title": "" }, { "docid": "224013f8168946b23d02c13d2092fee5", "score": "0.4316183", "text": "public function valid() {\n return $this->offset > -1 && $this->offset < $this->getSize();\n }", "title": "" }, { "docid": "94b79c63544b5ac3aa841439b6f0b31c", "score": "0.43128514", "text": "protected function hardDeleting()\n {\n return ! $this->usesSoftDelete() || $this->forceDeleting;\n }", "title": "" }, { "docid": "c751d2aa672eba7e1a84285bce539bef", "score": "0.43087947", "text": "public function beforeDelete() {\n $userHelpDesk = UserHelpDesks::model()->exists(\"helpdesk =\".$this->id.\" \");\n $visit = Visit::model()->exists(\"helpdesk=\".$this->id.\"\");\n if ($userHelpDesk || $visit) {\n return false;\n } else {\n $this->is_deleted = 1;\n $this->save();\n echo \"true\";\n return false;\n }\n }", "title": "" }, { "docid": "782b2606d0da9abeefda83d17fc36f84", "score": "0.43039322", "text": "public function isDeletable()\n {\n if($this->getPayment()){\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "5e1aa664e637edd3ee74f2fabddb3829", "score": "0.43007475", "text": "public function valid()\n {\n\n if ($this->container['aligned'] === null) {\n return false;\n }\n if ($this->container['gap'] === null) {\n return false;\n }\n if ($this->container['expert'] === null) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "421a946f51a9dddcf54de7500cf4747e", "score": "0.43006828", "text": "public function valid()\n {\n return $this->count() < $this->Pointer;\n }", "title": "" }, { "docid": "cef2817b50180fc6284fdbe50dbc7e36", "score": "0.4292574", "text": "protected function canDelete($record)\r\n {\r\n //Check if this departure step is part of a travel.\r\n if($record->step_type == 'departure' && OdysseyHelper::isInTravel($record->id)) {\r\n JFactory::getApplication()->enqueueMessage(JText::_('COM_ODYSSEY_WARNING_DEPARTURE_STEP_USED_IN_TRAVEL'), 'warning');\r\n return false;\r\n }\r\n\r\n //A link step is about to be deleted.\r\n //Check if its departure step is part of a travel.\r\n if($record->step_type == 'link' && OdysseyHelper::isInTravel($record->dpt_step_id)) {\r\n JFactory::getApplication()->enqueueMessage(JText::_('COM_ODYSSEY_WARNING_LINK_STEP_USED_IN_TRAVEL'), 'warning');\r\n return false;\r\n }\r\n\r\n return parent::canDelete($record);\r\n }", "title": "" }, { "docid": "edec722c7a1b650eaea4e7b78c79e5f5", "score": "0.4290987", "text": "public function valid()\n {\n return isset( $this->layout[$this->position] );\n }", "title": "" }, { "docid": "c8ce2cc3038b37adc43a155b5c04b247", "score": "0.4289769", "text": "public function isPlaced()\n {\n return (!is_null($this->x) && !is_null($this->y));\n }", "title": "" }, { "docid": "3bb4d9b1680e90bd4b43e132bab7830d", "score": "0.4289046", "text": "function RemoveReal() {\n\t\tif (is_writeable($this->filename)) {\n\t\t\tif ($fp_source = @fopen($this->filename, 'r+b')) {\n\nreturn false;\n\t\t\t\t//fseek($fp_source, -128, SEEK_END);\n\t\t\t\t//if (fread($fp_source, 3) == 'TAG') {\n\t\t\t\t//\tftruncate($fp_source, filesize($this->filename) - 128);\n\t\t\t\t//} else {\n\t\t\t\t//\t// no real tag to begin with - do nothing\n\t\t\t\t//}\n\t\t\t\tfclose($fp_source);\n\t\t\t\treturn true;\n\n\t\t\t} else {\n\t\t\t\t$this->errors[] = 'Could not open '.$this->filename.' mode \"r+b\"';\n\t\t\t}\n\t\t} else {\n\t\t\t$this->errors[] = $this->filename.' is not writeable';\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1eac826588f00f31759d20e4a82f36ab", "score": "0.4287388", "text": "function exportpreprocess() {\n // Initialize the format (\"constructor\")\n $this->qformat_qtex_initialize();\n\n return true;\n }", "title": "" }, { "docid": "7067c313f757b0ad25461030a4c0bd14", "score": "0.4278825", "text": "public function impliesExistingContentDeletion()\n {\n return 'w' === $this->base;\n }", "title": "" }, { "docid": "dd3cede623974209bca1034ce054b7e4", "score": "0.4278372", "text": "public function getSkipGenerateContent()\n {\n return true;\n }", "title": "" }, { "docid": "9ec83ea32f70ffae6cb4a27f4ba6fd72", "score": "0.42755952", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('pages.component_block_category_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "94f1398611bea5683ee3792d8c38e83f", "score": "0.42752227", "text": "public function isHardened()\n {\n return $this->math->cmp($this->getSequence(), $this->math->hexDec('80000000')) >= 0;\n }", "title": "" } ]
f3a30b9d3ddc0f8ae396eb253dd08624
KOMENTARAI del saugumo, kad neprikodintu i laukus
[ { "docid": "d67722ed8587de8e0728bbca7f3b2821", "score": "0.0", "text": "function createKomentaras($vardas, $komentaras) { // naujo gydytojo sukurimas\n\t$vardas = mysqli_real_escape_string(getConnection(), $vardas); // uzkoduoja spec simbolius \" ' /n /t <>\n\t$komentaras = mysqli_real_escape_string(getConnection(), $komentaras); \n\t$manoSQL = \" INSERT INTO komentarai VALUES ('', '$vardas', '$komentaras'); \"; // i msql paste'inti be $\n\t$arPavyko = mysqli_query(getConnection(), $manoSQL);\n\tif($arPavyko) {\n\t\t$taip = \"Dėkoju už Jūsų komentarą\";\n\t\tinclude('koment_resp.php');\t\t\t\n\t} else { //nepavyko\n\t\t$taip = \"Komentaro išsiųsti nepavyko <br>\" . mysqli_error($getConnection()) . \"<br>\";\n\t\tinclude('koment_resp.php');\n\t}\n}", "title": "" } ]
[ { "docid": "654f8bb59148c504a0f6f18ba999d655", "score": "0.6954442", "text": "public function syarikat() \n\t{\n\t\t$this->papar->medan = $this->tanya->paparMedan('mdt_rangka14');\n\t\t//echo '<pre>$this->papar->medan:<br>'; print_r($this->papar->medan); \n\t\t$url = dpt_url();\n\t\t$this->papar->url = $url;\n\t\t\n\t\t// set latarbelakang\n\t\t$this->papar->gambar=gambar_latarbelakang('../../');\n\t\t// Set pemboleubah utama\n\t\t$this->papar->pegawai = senarai_kakitangan();\n\t\t$this->papar->Tajuk_Muka_Surat='MDT 2014';\n\t\t// pergi papar kandungan\n\t\t$this->papar->baca('cari/index', 0);\n\t}", "title": "" }, { "docid": "47621816a9f6e043781baaa396e53828", "score": "0.6740468", "text": "function SuosikinLisaysToimetListauksessa(){\n \n /* Otetaan puuhan id:t post parametreina näkymän formilta */\n \n $puuhanid = $_POST['puuha_id'];\n $suosikki = new Suosikit();\n $suosikki->setPuuhaId($puuhanid);\n $suosikki->setPuuhaajaId(annaKirjautuneenId());\n /*Lisätään puuha suosikkeihin*/\n $suosikki->LisaaSuosikkeihin();\n $_SESSION['ilmoitus'] = \"Puuha lisätty suosikkeihin.\";\n}", "title": "" }, { "docid": "c7fd6d4086620333833e51dae6c47972", "score": "0.66558695", "text": "public function parsiRuokalista() {\n\t\t\t\t\t\t\t$ravintola_id = '108';\n\n\t\t\t\t\t\t\t$listalinkit = file_get_html('http://www.hel.fi/wps/portal/Palmia/Ruokalista');\n\t\t\t\t\t\t\twhile ($this->palmia_virhesivu($listalinkit->plaintext)) {\n\t\t\t\t\t\t\t\t$listalinkit = file_get_html('http://www.hel.fi/wps/portal/Palmia/Ruokalista');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$bulevardilinkki = $listalinkit->find('form[id=restaurantlink_28]', 0);\n\t\t\t\t\t\t\t$link = 'http://www.hel.fi' . $bulevardilinkki->action;\n\t\t\t\t\t\t\t$request = array(\n\t\t\t\t\t\t\t\t'http' => array(\n\t\t\t\t\t\t\t\t\t'method' => 'POST',\n\t\t\t\t\t\t\t\t\t'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n\t\t\t\t\t\t\t\t\t'content' => http_build_query(array(\n\t\t\t\t\t\t\t\t\t\t'id' => $ravintola_id,\n\t\t\t\t\t\t\t\t\t\t'submit' => 'Hae'\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\n\t\t\t\t\t\t\t$context = stream_context_create($request);\n\n\t\t\t\t\t\t\t$lista_sivu = file_get_html($link, false, $context);\n\t\t\t\t\t\t\twhile ($this->palmia_virhesivu($lista_sivu->plaintext)) {\n\t\t\t\t\t\t\t\t$lista_sivu = file_get_html($link, false, $context);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$menu = $lista_sivu->find('table.menu_table', 0);\n\t\t\t\t\t\t\tforeach ($menu->children() as $child) {\n\t\t\t\t\t\t\t\t$string = trim(str_replace(\"\\xA0\", \" \", html_entity_decode($child->plaintext)));\n\t\t\t\t\t\t\t\tif (!empty($string) && strtolower($string) != 'hinta') {\n\t\t\t\t\t\t\t\t\t$date_index = array_search(strtolower($string), $this->paivat);\n\t\t\t\t\t\t\t\t\tif ($date_index !== false) {\n\t\t\t\t\t\t\t\t\t\t$date = $date_index;\n\t\t\t\t\t\t\t\t\t} else if (!empty($date)) {\n\t\t\t\t\t\t\t\t\t\t$this->ruokalista[$date][] = $string;\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}", "title": "" }, { "docid": "d34b96be994f3ffd536809e7b5366716", "score": "0.6645181", "text": "function perhitunganC45($variabel, $nilai_variabel) \n{\n if (empty($variabel) AND empty($nilai_variabel)) {\n//#2# Jika variabel yg diinputkan kosong, maka lakukan perhitungan awal\n $kondisiVariabel = \"\"; // set kondisi variabel kosong\n } else if (!empty($variabel) AND !empty($nilai_variabel)) { \n // jika variabel tdk kosong, maka select kondisi variabel dari DB\n $sqlKondisiVariabel = mysql_query(\"SELECT kondisi_variabel FROM pohon_keputusan WHERE variabel = '$variabel' AND nilai_variabel = '$nilai_variabel' order by id DESC LIMIT 1\");\n $rowKondisiVariabel = mysql_fetch_array($sqlKondisiVariabel);\n $kondisiVariabel = str_replace(\"~\", \"'\", $rowKondisiVariabel['kondisi_variabel']); // replace string ~ menjadi '\n } \n \n // ambil seluruh variabel\n $sqlVariabel = mysql_query(\"SELECT distinct variabel FROM variabel\");\n while($rowGetVariabel = mysql_fetch_array($sqlVariabel)) {\n $getVariabel = $rowGetVariabel['variabel'];\n if ($getVariabel === 'kelayakan') { \n//#3# Jika variabel = kelancaran, maka hitung jumlah kasus kelancaran, jumlah kasus Ya dan jumlah kasus Tidak\n // hitung jumlah kasus kelancaran\n $sqlJumlahKasusTotal = mysql_query(\"SELECT COUNT(*) as jumlah_kelayakan FROM data_nasabah WHERE kelayakan is not null $kondisiVariabel\");\n $rowJumlahKasusTotal = mysql_fetch_array($sqlJumlahKasusTotal);\n $getJumlahKasusTotal = $rowJumlahKasusTotal['jumlah_kelayakan'];\n\n // hitung jumlah kasus Ya\n $sqlJumlahKasusYa = mysql_query(\"SELECT COUNT(*) as jumlah_ya FROM data_nasabah WHERE kelayakan = 'Ya' AND kelayakan is not null $kondisiVariabel\");\n $rowJumlahKasusYa = mysql_fetch_array($sqlJumlahKasusYa);\n $getJumlahKasusYa = $rowJumlahKasusYa['jumlah_ya'];\n\n // hitung jumlah kasus Tidak\n $sqlJumlahKasusTidak = mysql_query(\"SELECT COUNT(*) as jumlah_tidak FROM data_nasabah WHERE kelayakan = 'Tidak' AND kelayakan is not null $kondisiVariabel\");\n $rowJumlahKasusTidak = mysql_fetch_array($sqlJumlahKasusTidak);\n $getJumlahKasusTidak = $rowJumlahKasusTidak['jumlah_tidak'];\n\n//#4# Insert jumlah kasus kelancaran, jumlah kasus Ya dan jumlah kasus Tidak ke DB\n // insert ke database perhitungan_c45\n mysql_query(\"INSERT INTO perhitungan_c45 VALUES ('', 'Total', 'Total', '$getJumlahKasusTotal', '$getJumlahKasusTidak', '$getJumlahKasusYa', '', '', '')\");\n\n } else {\n//#5# Jika atribut != kelancaran (atribut lainnya), maka hitung jumlah kasus kelancaran, jumlah kasus Ya dan jumlah kasus Tidak masing2 atribut\n // ambil nilai variabel\n $sqlNilaiVariabel = mysql_query(\"SELECT nilai_variabel FROM variabel WHERE variabel = '$getVariabel' ORDER BY id\");\n while($rowNilaiVariabel = mysql_fetch_array($sqlNilaiVariabel)) {\n $getNilaiVariabel = $rowNilaiVariabel['nilai_variabel'];\n\n // set kondisi dimana nilai_variabel = berdasakan masing2 variabel dan status data = data training\n $kondisi = \"$getVariabel = '$getNilaiVariabel' AND kelayakan is not null $kondisiVariabel\";\n\n // hitung jumlah kasus per variabel\n $sqlJumlahKasusTotalVariabel = mysql_query(\"SELECT COUNT(*) as jumlah_kelayakan FROM data_nasabah WHERE $kondisi\");\n $rowJumlahKasusTotalVariabel = mysql_fetch_array($sqlJumlahKasusTotalVariabel);\n $getJumlahKasusTotalVariabel = $rowJumlahKasusTotalVariabel['jumlah_kelayakan'];\n\n // hitung jumlah kasus Ya\n $sqlJumlahKasusYaVariabel = mysql_query(\"SELECT COUNT(*) as jumlah_ya FROM data_nasabah WHERE $kondisi AND kelayakan = 'Ya'\");\n $rowJumlahKasusYaVariabel = mysql_fetch_array($sqlJumlahKasusYaVariabel);\n $getJumlahKasusYaVariabel = $rowJumlahKasusYaVariabel['jumlah_ya'];\n\n // hitung jumlah kasus Tidak\n $sqlJumlahKasusTidakVariabel = mysql_query(\"SELECT COUNT(*) as jumlah_tidak FROM data_nasabah WHERE $kondisi AND kelayakan = 'Tidak'\");\n $rowJumlahKasusTidakVariabel = mysql_fetch_array($sqlJumlahKasusTidakVariabel);\n $getJumlahKasusTidakVariabel = $rowJumlahKasusTidakVariabel['jumlah_tidak'];\n\n//#6# Insert jumlah kasus kelancaran, jumlah kasus Ya dan jumlah kasus Tidak masing2 variabel ke DB\n // insert ke database perhitungan_c45\n mysql_query(\"INSERT INTO perhitungan_c45 VALUES ('', '$getVariabel', '$getNilaiVariabel', '$getJumlahKasusTotalVariabel', '$getJumlahKasusTidakVariabel', '$getJumlahKasusYaVariabel', '', '', '')\");\n \n//#7# Lakukan perhitungan entropy\n // perhitungan entropy\n $sqlEntropy = mysql_query(\"SELECT id, jml_kasus_kelayakan, jml_kasus_ya, jml_kasus_tidak FROM perhitungan_c45\");\n while($rowEntropy = mysql_fetch_array($sqlEntropy)) {\n $getJumlahKasusTotalEntropy = $rowEntropy['jml_kasus_kelayakan'];\n $getJumlahKasusYaEntropy = $rowEntropy['jml_kasus_ya'];\n $getJumlahKasusTidakEntropy = $rowEntropy['jml_kasus_tidak'];\n $idEntropy = $rowEntropy['id'];\n\n // jika jml kasus = 0 maka entropy = 0\n if ($getJumlahKasusTotalEntropy == 0 OR $getJumlahKasusYaEntropy == 0 OR $getJumlahKasusTidakEntropy == 0) {\n $getEntropy = 0;\n // jika jml kasus Ya = jml kasus Tidak, maka entropy = 1\n } else if ($getJumlahKasusYaEntropy == $getJumlahKasusTidakEntropy) {\n $getEntropy = 1;\n } else { // jika jml kasus != 0, maka hitung rumus entropy:\n $perbandingan_ya = $getJumlahKasusYaEntropy / $getJumlahKasusTotalEntropy;\n $perbandingan_tidak = $getJumlahKasusTidakEntropy / $getJumlahKasusTotalEntropy;\n\n $rumusEntropy = (-($perbandingan_ya) * log($perbandingan_ya,2)) + (-($perbandingan_tidak) * log($perbandingan_tidak,2));\n $getEntropy = round($rumusEntropy,4); // 4 angka di belakang koma\n }\n\n//#8# Update nilai entropy\n // update nilai entropy\n mysql_query(\"UPDATE perhitungan_c45 SET entropy = $getEntropy WHERE id = $idEntropy\");\n }\n \n//#9# Lakukan perhitungan information gain\n // perhitungan information gain\n // ambil nilai entropy dari kelancaran (jumlah kasus kelayakan)\n $sqlJumlahKasusTotalInfGain = mysql_query(\"SELECT jml_kasus_kelayakan, entropy FROM perhitungan_c45 WHERE variabel = 'Total'\");\n $rowJumlahKasusTotalInfGain = mysql_fetch_array($sqlJumlahKasusTotalInfGain);\n $getJumlahKasusTotalInfGain = $rowJumlahKasusTotalInfGain['jml_kasus_kelayakan'];\n // rumus information gain\n $getInfGain = (-(($getJumlahKasusTotalEntropy / $getJumlahKasusTotalInfGain) * ($getEntropy))); \n\n//#10# Update information gain tiap nilai variabel (temporary)\n // update inf_gain_temp (utk mencari nilai masing2 variabel)\n mysql_query(\"UPDATE perhitungan_c45 SET inf_gain_temp = $getInfGain WHERE id = $idEntropy\");\n $getEntropy = $rowJumlahKasusTotalInfGain['entropy'];\n\n // jumlahkan masing2 inf_gain_temp variabel \n $sqlVariabelInfGain = mysql_query(\"SELECT SUM(inf_gain_temp) as inf_gain FROM perhitungan_c45 WHERE variabel = '$getVariabel'\");\n while ($rowVariabelInfGain = mysql_fetch_array($sqlVariabelInfGain)) {\n $getVariabelInfGain = $rowVariabelInfGain['inf_gain'];\n\n // hitung inf gain\n $getInfGainFix = round(($getEntropy + $getVariabelInfGain),4);\n\n//#11# Looping perhitungan information gain, sehingga mendapatkan information gain tiap variabel. Update information gain\n // update inf_gain (fix)\n mysql_query(\"UPDATE perhitungan_c45 SET inf_gain = $getInfGainFix WHERE variabel = '$getVariabel'\");\n }\n \n }\n \n }\n }\n}", "title": "" }, { "docid": "f22bfa12f628ec49ac30db4894afe56d", "score": "0.66187346", "text": "public function luzTechoapagar( ) {\n\n $this->techo_on = 0;\n $this->techo_presidencia_on = 0;\n $this->techo_pasillo_on = 0;\n $this->techo_alumnos_on = 0;\n $this->ActualizarNivelesTecho();\n $this->dibujarTecho();\n //$this->dibujarPantalla();\n }", "title": "" }, { "docid": "7062ea80c3518900f009a5b089aa9fdf", "score": "0.6583496", "text": "public function postaviKom(){\n \n if (empty($_POST['komentar']) || empty($_POST['ocena']) )\n return call('prvi','greska');\n \n \n Ad::postaviKomentar($_POST['komentar'], $_POST['ocena'],$_POST['idOglasa']);\n $idOglasa=$_POST['idOglasa'];\n $oglas= Ad::getAdWithId($idOglasa);\n require_once 'views/RecenzijeObican/recenzija.php';\n \n //$nizRecenzija= Recenzija::dohvatiSveKomentare($idOglasa);\n // require_once 'views/oglasi/prikaz_recenzija.php';\n }", "title": "" }, { "docid": "22665d5a08387495db3e13e8b429caf4", "score": "0.657232", "text": "function uradjeni_zad ($niz){\n $naj=0;\n $ind=\"\";\n foreach($niz as $dan=>$uspeh){\n if ($naj <=$uspeh){\n $naj=$uspeh;\n $ind=$dan;\n }\n }\n echo \"<p>Najuspesniji dan je $ind sa uspehom $naj</p>\";\n $zbir=0;\n $brojd=0;\n foreach($niz as $dan=> $uspeh){\n $zbir+=$uspeh;\n $brojd++;\n\n }\n $prosek=$zbir / $brojd;\n echo \"<p>Prosecna uspesnost je $prosek\";\n $najmanji=$niz['ponedeljak'];\n foreach($niz as $dan=> $uspeh)\n if($najmanji>$uspeh)\n $najmanji=$uspeh;\n \n \n $raz=$naj-$najmanji;\n \n \n \n echo \"<p>Razlika je $raz</p>\";\n }", "title": "" }, { "docid": "75ba1aab44f537c37a28ef1eb273edc0", "score": "0.652763", "text": "function kiekMoteru(){\n $sum = 0; // pradzioje suma = 0\n for ($i=0; $i<count($this->darbuotojai); $i++){ // imame darbuotojus po vieną iš masyvo\n if ($this->darbuotojai[$i]['lyt'] == 'mot') $sum++; // jeigu moteris, tai +1\n }\n return $sum; // gražiname personalo moteru skaiciu kaip funkcijos rezultatą\n }", "title": "" }, { "docid": "4bdf4595243d2abe75668ddbd16e94cd", "score": "0.6526606", "text": "function tukar_ke_gandaan($nombor)\n{\n\t\t\t\t//tukar ke gandaan\n\t\t\t\t//terbalikkan nombor kerana kiraan gandaan 3 digit bermula dari belakang nombor\n\t\t\t\t$no_dari_belakang=strrev($nombor);\n\t\t\t\t//echo $no_dari_belakang;\n\t\t\t\t//pecahkan kepada 3 setiap bahagian,\n\t\t\t\t$bahagian = str_split($no_dari_belakang, 3);\n\t\t\t\t$kira_bhg=1;\n\t\t\t\t//echo \"<br>\".$no_dari_belakang.\"<br>\";\n\t\t\t\t\tforeach ($bahagian as $bhg_ptr=>$nilai ) \n\t\t\t\t\t{\n\t\t\t\t \n\t\t\t\t\t\t //cek panjang setiap bahagian\n\t\t\t\t\t\t $nilai_len=strlen($nilai);\n\t\t\t\t\t\t //jika nilai ==3 convert ke gandaan3\n\t\t\t\t\t\t if($nilai_len==3)\n\t\t\t\t\t\t { \n\t\t\t\t\t\t \n\t\t\t\t\t\t $numb=gandaan3(strrev($nilai));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t }else\n\t\t\t\t\t\t if($nilai_len==2)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t $numb=belas_puluh(strrev($nilai));\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t $numb=digit(strrev($nilai));\n\t\t\t\t\t\t }\n\t\t\t\t\t\t// echo\"<br>\".$kira_bhg.\"=\".$nilai.\"<br>\";\n\t\t\t\t\t\t \n\t\t\t\t\t\t if($bhg_ptr>0 && $nilai !='000')\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t $numb.=\" \".gandaan($kira_bhg);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \tif ($numb != '') {\n\t\t\t\t\t\t\t\t$new_numb[$bhg_ptr] = $numb;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//echo \"<br>\".$cur.\"::::\".$numb.\"<br>\";\n\t\t\t\t\t\t //jika nilai==2 convert ke belas/ puluh\n\t\t\t\t\t\t //jika nilai=1 convert ke digit\n\t\t\t\t\t\t $kira_bhg++; \n\t\t\t\t\t}\n\t\t\t//setelah mendapat no dalam perkataan bagi setiap bahagian/ susun semula kedudukan nombor (terbalikkan)\n\t\t\t\t$rearange_numb = array_reverse($new_numb);\n\t\t\t\t$num_words = implode(' ', $rearange_numb);\n\t\t\t\treturn $num_words;\n}", "title": "" }, { "docid": "b8192ba651c9cef0b6da4ffbe767b17a", "score": "0.6526375", "text": "function pada($bil,$mukasurat) \n\t{\n\n\t\t$had = '0, ' . $bil;\n\t\t//echo '<pre>$url->', print_r($url, 1) . '</pre>';\n\n\t\t$kira = pecah_post(); # echo '<pre>$kira->'; print_r($kira); echo '</pre>';\n\t\t# setkan pembolehubah dulu\n\t\t$namajadual = isset($_POST['namajadual']) ? $_POST['namajadual'] : null;\n\t\t$susun = isset($_POST['susun']) ? $_POST['susun'] : 1;\n\t\t$carian = isset($_POST['cari']) ? $_POST['cari'] : null;\n\t\t$semak = isset($_POST['cari'][1]) ? $_POST['cari'][1] : null;\n\t\t$this->papar->cariNama = null;\n\n\t\tif (empty($semak))\n\t\t{\n\t\t\theader('location:' . URL . 'cari/' . $namajadual . '/1');\n\t\t\texit;\n\t\t}\n\t\telseif (!empty($namajadual) && $namajadual==$this->_jadual) \n\t\t{\n\t\t\t$myTable = $namajadual;\n\t\t\t# mula cari $cariID dalam $jadual\n\t\t\t$this->papar->cariApa[$myTable] = \n\t\t\t\t$this->tanya->cariBanyakMedan($myTable, \n\t\t\t\t'newss,nama,po'\n\t\t\t\t. ',concat_ws(\\'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\\',newss,\\'QSS2013\\',msic2008'\n\t\t\t\t. ') as `kod`,sidap'\n\t\t\t\t. ',concat_ws(\\'<br>\\',pengurus,nama,operator) as `kod2`'\n\t\t\t\t. ',concat_ws(' . \"'<br>\\n'\" . ',alamat1,alamat2,poskod,bandar,ng) as `alamat penuh`' \n\t\t\t\t. ',concat_ws(' . \"'<br>\\n'\" . ',utama,msic2008,ngdbbp) as kod3'\n\t\t\t\t. ',subsektor',$kira, $had);\n\t\t\t$this->papar->carian = $carian;\n\t\t\t$this->papar->kekunci_utama = 'newss';\n\t\t}\n\n\t\t//echo '<pre>$this->papar->cariApa:', print_r($this->papar->cariApa, 1) . '</pre>';\n\n\t\t# Set pemboleubah utama\n\t\t$this->papar->pegawai = senarai_kakitangan();\n\t\t$this->papar->Tajuk_Muka_Surat='Qss Suku 2';\n\t\t$this->papar->gambar=gambar_latarbelakang('../../');\n\n\t\t# pergi papar kandungan\n\t\t$this->papar->baca($this->_folder . 'jumpa');\n\t}", "title": "" }, { "docid": "dceaeac1de253dfa5c817e302e8b9062", "score": "0.6507541", "text": "function ubah($cariID) \n {\n \n // senaraikan tatasusunan jadual dan setkan pembolehubah\n $bulanan = bulanan('data_bulanan','14'); # papar bulan dlm tahun semasa\n $jadualRangka = 'rangka14';\n $medanRangka ='newss,nama,ssm,alamat,' \n\t\t\t//. 'concat_ws(\"&nbsp;\",alamat1_lokasi,alamat2_lokasi,poskod_lokasi,bandar_lokasi,ng_lokasi) as alamat,' . \"\\r\"\n\t\t\t. 'nota,respon,fe,tel,fax,responden,email,msic2008,' . \"\\r\" \n\t\t\t. 'concat(substring(newss,1,3),\\' \\',substring(newss,4,3),\\' \\',' \n\t\t\t. 'substring(newss,7,3),\\' \\',substring(newss,10,3),\\' | \\',' \n\t\t\t. 'msic2008) as ' . '`id U M`';\n $medanData = 'newss,fe,nama,terima,hantar,gaji,staf,hasil,respon,nota';\n $sv='mm_'; // survey apa\n $cari['medan'] = 'newss'; // cari dalam medan apa\n $id = isset($cariID) ? $cariID : null; // cari id berasaskan sidap\n $cari['id'] = $id; // benda yang dicari\n $this->papar->kesID = array();\n\n if (!empty($id)) \n {\n //echo '$id:' . $id . '<br>';\n $this->papar->carian='newss';\n \n // 1. mula semak dalam rangka \n $this->papar->rangka['kes'] = \n $this->tanya->cariSemuaMedan($sv . $jadualRangka, \n $medanRangka, $cari);\n\t\t\t\t\n\t\t\t//echo '$this->papar->rangka:<br><pre>'; print_r($this->papar->rangka) . '</pre>'; \n\t\t\t\n\t\t\t// 1.1 ambil nilai msic & msic08\n\t\t\t//$msic00 = $this->papar->rangka['kes'][0]['msic'];\n\t\t\t$msic08 = $this->papar->rangka['kes'][0]['msic2008'];\n\t\t\t$cariM6['medan'] = 'msic';\n\t\t\t$cariM6['id'] = $msic08;\n\t\t\t\n\t\t\t// 1.2 cari nilai msic & msic08 dalam jadual msic2008\n\t\t\t$jadualMSIC = dpt_senarai('msiclama');\n\t\t\t// mula cari $cariID dalam $jadual\n\t\t\tforeach ($jadualMSIC as $m6 => $msic)\n\t\t\t{// mula ulang table\n\t\t\t\t// senarai nama medan\n\t\t\t\t$medanM6 = ($msic=='msic2008') ? \n\t\t\t\t\t'seksyen S,bahagian B,kumpulan Kpl,kelas Kls,' .\n\t\t\t\t\t'msic2000,msic,keterangan,notakaki' : '*'; \n\t\t\t\t//echo \"cariMSIC($msic, $medanM6, $cariM6)<br>\";\n\t\t\t\t$this->papar->cariIndustri[$msic] = $this->tanya->\n\t\t\t\tcariIndustri($msic, $medanM6, $cariM6);\n\t\t\t}// tamat ulang table\n\n // 2. mula cari $cariID dalam $bulanan\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n $this->papar->kesID[$myTable] = \n $this->tanya->cariSemuaMedan($sv . $myTable, \n $medanData, $cari);\n }// tamat ulang table\n\t\t\t//*/\n\t\t}\n else\n {\n $this->papar->carian='[tiada id diisi]';\n }\n \n // isytihar pemboleubah\n //$tajuk2=array('bulan','nama','msic','terima','hasil','dptLain',\n //'web','stok','staf','gaji','sebab','outlet','nota');\n $tajuk2=array('bulan','nama','terima','hantar','gaji','staf','hasil','respon','nota');\n $s1 = '<th><span class=\"label\">';\n $s2 = '</span></th>';\n $this->papar->paparTajuk = null;\n\t\tforeach ($tajuk2 as $tajuk)\n {\n $this->papar->paparTajuk .= \"\\n\" . $s1 . $tajuk . $s2;\n }\n\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->lokasi = 'MM14 - Ubah';\n\t\t$this->papar->cari = $id;\n\t\t\n // semak data\n\t\t/*\n\t\techo '<pre>';\n echo '$this->papar->kesID:<br>'; print_r($this->papar->kesID); \n\t\techo '$this->papar->rangka:<br>'; print_r($this->papar->rangka); \n\t\techo '$this->papar->cari:<br>'; print_r($this->papar->cari); \n\t\techo '</pre>';\n\t\t//*/\n\t\t\n // paparkan ke fail cimej/cari.php\n $this->papar->baca('kawalan/ubah', 0);\n\n }", "title": "" }, { "docid": "d8637505e1281a95ff97f90b30db6c4a", "score": "0.6489088", "text": "public function naselja();", "title": "" }, { "docid": "c4c93fb2651d12c27a23301fdde10680", "score": "0.6474204", "text": "private function parsujDobropis() {\r\n\t\t\r\n\t\t$dobropis = $this->xmlImport->SeznamFaktVyd->FaktVyd;\r\n\t\t\r\n\t\t$this->fakturaCislo = $dobropis->Doklad;\r\n\t\t$this->ico = $dobropis->MojeFirma->ICO;\r\n\t\t$this->datum = $this->upravDatum($dobropis->PlnenoDPH);\r\n\t\t$this->dekada = \" \";\r\n\t\t$this->dodaciListCislo = \"0000000000\";\r\n\t\t\r\n\t\t$this->vypisPolozkyDobropisu($dobropis);\r\n\r\n\t\tif($this->chyba == \"\") {\r\n\t\t\t$this->stahnoutTXT();\r\n\t\t} else {\r\n\t\t\techo $this->chyba;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "db1653e38b1bf0dee246b32aede1c624", "score": "0.6469549", "text": "function pada($bil) \n\t{\n\t\n\t\t$kira = pecah_post($_POST); //echo '<pre>'; print_r($kira); echo '</pre>';\n\t\t// setkan pembolehubah dulu\n\t\t$namajadual = isset($_POST['namajadual']) ? $_POST['namajadual'] : null;\n\t\t$susun = isset($_POST['susun']) ? $_POST['susun'] : 1;\n\t\t$carian = isset($_POST['cari']) ? $_POST['cari'] : null;\n\t\t$semak = isset($_POST['cari'][1]) ? $_POST['cari'][1] : null;\n\t\t$this->papar->cariNama = null;\n\t\t\t\n\t\tif (empty($semak)) \n\t\t{\n\t\t\theader('location:' . URL . 'cari/' . $namajadual . '/1');\n\t\t\texit;\t\n\t\t}\n\t\telseif (!empty($namajadual) && $namajadual=='msic') \n\t\t{\n\t\t\t$jadual = dpt_senarai('msiclama');\n\t\t\t// mula cari $cariID dalam $jadual\n\t\t\tforeach ($jadual as $key => $myTable)\n\t\t\t{// mula ulang table\n\t\t\t\t// senarai nama medan\n\t\t\t\t$medan = ($myTable=='msic2008') ? \n\t\t\t\t\t'seksyen S,bahagian B,kumpulan Kpl,kelas Kls,' .\n\t\t\t\t\t'msic2000,msic,keterangan,notakaki' \n\t\t\t\t\t: '*'; \n\t\t\t\t$this->papar->cariNama[$myTable] = $this->tanya\n\t\t\t\t->cariSemuaMedan($myTable, $medan, $kira);\n\t\t\t}// tamat ulang table\n\t\t\t\n\t\t\t$this->papar->carian=$carian;\n\t\t}\n\t\telseif (!empty($namajadual) && $namajadual=='produk') \n\t\t{\n\t\t\t$jadual = dpt_senarai('produk');\n\t\t\t// mula cari $cariID dalam $jadual\n\t\t\tforeach ($jadual as $key => $myTable)\n\t\t\t{// mula ulang table\n\t\t\t\t// senarai nama medan\n\t\t\t\t$medan = '*'; \n\t\t\t\t$this->papar->cariNama[$myTable] = $this->tanya\n\t\t\t\t->cariSemuaMedan($myTable, $medan, $kira);\n\t\t\t}// tamat ulang table\n\t\t\t\n\t\t\t$this->papar->carian=$carian;\n\t\t\t\n\t\t\t$unit = 'kodproduk_unitkuantiti';\n\t\t\t\t$this->papar->cariNama[$unit] = $this->tanya\n\t\t\t\t\t->paparSemuaJadual($unit, '*');\n\n\t\t}\n\t\telseif (!empty($namajadual) && $namajadual=='syarikat') \n\t\t{\n\t\t\t$jadual = dpt_senarai('syarikat');\n\t\t\t// mula cari $cariID dalam $jadual\n\t\t\t$this->papar->cariNama = $this->tanya\n\t\t\t\t//->cariCantumJadual($jadual, $medan = '*', $kira);\n\t\t\t\t->cariKawalan($jadual, $kira);\n\n\t\t\t//echo '<pre>$cariNama::'; print_r($this->papar->cariNama) . '</pre>';\n\t\t\t\n\t\t\t$this->papar->carian=$carian;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->papar->carian[]='[id:0]';\n\t\t}\n\n\t\t// set latarbelakang\n\t\t$this->papar->gambar=gambar_latarbelakang('../../');\n\t\t// Set pemboleubah utama\n\t\t$this->papar->pegawai = senarai_kakitangan();\n\t\t$this->papar->Tajuk_Muka_Surat='MDT 2013';\n\t\t// paparkan ke fail cari/$namajadual.php\n\t\t$this->papar->baca('cari/' . $namajadual, 0);\t\t\n//*/\n\t}", "title": "" }, { "docid": "ead41bc644f508ade8990615ce799030", "score": "0.6465242", "text": "function pelajaran(){\n $variabel['data'] = $this->m_pelajaran->lihatdata();\n $this->layout->renderakdp('back-end/akademik/presensi_pelajaran_p/v_pelajaran',$variabel,'back-end/akademik/presensi_pelajaran_p/v_pelajaran_js');\n }", "title": "" }, { "docid": "249e0ffe3a90d26dcec3b79f3c89588e", "score": "0.6457602", "text": "function kiekVyru(){\n $sum = 0; // pradzioje suma = 0\n for ($i=0; $i<count($this->darbuotojai); $i++){ // imame darbuotojus po vieną iš masyvo\n if ($this->darbuotojai[$i]['lyt'] == 'vyr') $sum++; // jeigu vyras, tai +1\n }\n return $sum; // gražiname personalo vyru skaiciu kaip funkcijos rezultatą\n }", "title": "" }, { "docid": "dd1e1ff1ace9ffc0e1b35e3085fec431", "score": "0.64282465", "text": "public function kupovina_dalje()\n\t{\n\t\t$oglas = $this->session->get('oglas');\n\t\tif ($oglas == null){\n\t\t\treturn redirect()->to(site_url('/'));\n\t\t}\n\n\t\t$stanjeModel = new ModelStanje();\n\t\t$stanje = $stanjeModel->find($oglas->IdS);\n\n\t\tif ($stanje->Opis !== 'Okacen'){\n\t\t\treturn redirect()->to(site_url('/'));\n\t\t}\n\n\t\t$this->session->set('nacin', $this->request->getVar('a'));\n\t\tif (\"poruka\" == $this->request->getVar('a')) {\n\t\t\t//redirect na prodavca \n\t\t\t$_POST['knjiga'] = \"Zdravo, želim da kupim knjigu \\\"\" . $oglas->Naslov .\"\\\"\";\n\t\t\t$_POST['primalac'] = $oglas->IdK;\n\t\t\t$this->session->remove('oglas');\n\t\t\t$this->zapocniKonverzaciju();\n\t\t} else {\n\t\t\t$this->pozovi('kupovina/forma', [\n\t\t\t\t'oglas' => $oglas,\n\t\t\t\t'a' => $this->request->getVar('a')\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "5c836eed3134c9dd485a3e3bfc3a5bcc", "score": "0.64000005", "text": "public function nilai()\n {\n }", "title": "" }, { "docid": "b553ab101e136162284739693cb037f8", "score": "0.6399804", "text": "function set_potonggaji(){\r\n\t\t$ID_Jenis\t=$_POST['ID_Jenis'];\r\n\t\t$ID_Agt\t\t=$_POST['ID_Agt'];\r\n\t\t$ID_Simpanan=$_POST['ID_Simpanan'];\r\n\t\t$jumlah\t\t=$_POST['jumlah'];\r\n\t\t//collect data to array\r\n\t\t$data['ID_Unit']\t=rdb('perkiraan','ID_Unit','ID_Unit',\"where ID_Agt='$ID_Agt'\");\r\n\t\t$data['ID_Dept']\t=rdb('perkiraan','ID_Dept','ID_Dept',\"where ID_Agt='$ID_Agt'\");\r\n\t\t$data['ID_Klas']\t=rdb(\"jenis_simpanan\",'ID_Klasifikasi','ID_Klasifikasi',\"where ID='$ID_Simpanan'\");\r\n\t\t$data['ID_SubKlas']\t=rdb(\"jenis_simpanan\",'ID_Klasifikasi','ID_Klasifikasi',\"where ID='$ID_Simpanan'\");\r\n\t\t$data['ID_Perkiraan']=rdb('perkiraan','ID','ID',\"where ID_Agt='$ID_Agt' and ID_Simpanan='$ID_Simpanan'\");\r\n\t\t$data['Debet']\t\t=($ID_Jenis==1)?$jumlah:0;\r\n\t\t$data['Kredit']\t\t=($ID_Jenis==2)?$jumlah:0;\r\n\t\t$data['Keterangan']\t=$_POST['keterangan'];\r\n\t\t$data['ID_Stat']\t='0';\r\n\t\t$data['ID_Bulan']\t=$_POST['ID_Bulan'];\r\n\t\t$data['Tahun']\t\t=$_POST['Tahun'];\r\n\t\t$data['created_by']\t=$this->session->userdata('userid');\r\n\t\techo $this->Admin_model->replace_data('transaksi_temp',$data);\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "fe1d7b13c672e89b91ec900c8b6a301c", "score": "0.6396928", "text": "function buang($cariID) \n {\n \n // senaraikan tatasusunan jadual dan setkan pembolehubah\n $bulanan = bulanan('data_bulanan','14'); # papar bulan dlm tahun semasa\n $jadualRangka = 'rangka13';\n $medanRangka ='newss,nama,ssm,' \n\t\t\t. 'nota,respon,fe,tel,fax,responden,email,msic,msic08,' . \"\\r\" \n\t\t\t. 'concat(substring(newss,1,3),\\' \\',substring(newss,4,3),\\' \\',' \n\t\t\t. 'substring(newss,7,3),\\' \\',substring(newss,10,3),\\' | \\',' \n\t\t\t. '\\' \\',msic) as ' . '`id U M`';\n $medanData = 'newss,fe,nama,terima,hantar,catatan';\n $sv='mm_'; // survey apa\n $cari['medan'] = 'newss'; // cari dalam medan apa\n $id = isset($cariID) ? $cariID : null; // cari id berasaskan sidap\n $cari['id'] = $id; // benda yang dicari\n $this->papar->kesID = array();\n\n if (!empty($id)) \n {\n //echo '$id:' . $id . '<br>';\n $this->papar->carian='newss';\n \n // mula cari $cariID dalam $bulanan\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n $this->papar->kesID[$myTable] = \n $this->tanya->cariSemuaMedan($sv . $myTable, \n $medanData, $cari);\n }// tamat ulang table\n\n // semak dalam rangka pulak\n $this->papar->rangka['kes'] = \n $this->tanya->cariSemuaMedan($sv . $jadualRangka, \n $medanRangka, $cari);\n\t\t\t\n }\n else\n {\n $this->papar->carian='[tiada id diisi]';\n }\n \n // isytihar pemboleubah\n $tajuk2=array('bulan','nama','terima','hantar','catatan');\n $this->papar->paparTajuk = null;\n $s1 = '<span class=\"label\">';\n $s2 = '</span>';\n foreach ($tajuk2 as $tajuk)\n {\n $this->papar->paparTajuk .= \"\\n\" . '<th>' . $s1 . $tajuk . $s2 . '</th>';\n }\n\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->lokasi = 'MM13 - Buang';\n\t\t$this->papar->cari = $id;\n\t\t\n\t\n // paparkan ke fail cimej/cari.php\n $this->papar->baca('kawalan/buang', 1);\n\n }", "title": "" }, { "docid": "e8fdd54d2d3521a7ee2b83c147e3f710", "score": "0.63938135", "text": "public function pretraziEksperimente() {\n\t\t$niz_autor = array();\n\t\t$niz_naziv = array();\t\t\n\t\t$niz_pocetak = array();\n\t\t$niz_zavrsetak = array();\n $niz_ide = array();\n $niz_alat = array();\n $niz_platforma = array();\n\t\t$niz_iznosrezultata = array();\n\t\t$niz_jedinicarezultata = array();\n $niz_ispitniprimjer = array();\n\t\t\n\t\tif (!empty($_POST[\"autor\"]))\n\t\t\t$niz_autor = explode(\",\", $_POST[\"autor\"]);\n\t\tif (!empty($_POST[\"naziv\"]))\n\t\t\t$niz_naziv = explode(\",\", $_POST[\"naziv\"]);\t\n\t\tif (!empty($_POST[\"vrijemepocetka\"]))\n array_push ($niz_pocetak, $_POST[\"vrijemepocetka\"]);\n\t\tif (!empty($_POST[\"vrijemezavrsetka\"]))\n\t\t\tarray_push($niz_zavrsetak, $_POST[\"vrijemezavrsetka\"]);\n\t\tif (!empty($_POST[\"nazivide\"]))\n\t\t\t$niz_ide = explode(\",\", $_POST[\"nazivide\"]);\n if (!empty($_POST[\"nazivalat\"]))\n\t\t\t$niz_alat = explode(\",\", $_POST[\"nazivalat\"]);\n if (!empty($_POST[\"nazivplatforma\"]))\n\t\t\t$niz_platforma = explode(\",\", $_POST[\"nazivplatforma\"]); \n if (!empty($_POST[\"iznosrezultata\"]))\n\t\t\t$niz_iznosrezultata = explode(\",\", $_POST[\"iznosrezultata\"]);\t\n\t\tif (!empty($_POST[\"jedinicarez\"]))\n\t\t\t$niz_jedinicarezultata = explode(\",\", $_POST[\"jedinicarez\"]);\n if (!empty($_POST[\"ispitniprimjer\"]))\n\t\t\t$niz_ispitniprimjer = explode(\",\", $_POST[\"ispitniprimjer\"]);\n\t\t\t/* dohvaćanje podataka iz tablica */\n\t\t\n \n /* dohvaćanje podataka iz tablica */\n \n $znanstvenieksperiment = new \\model\\DBZnanstveniEksperiment();\n $rezultat = new \\model\\DBRezultat();\n $ostvario = new \\model\\DBOstvario();\n $alat = new \\model\\DBAlat();\n $ostvaren = new \\model\\DBOstvaren;\n $platforma = new \\model\\DBPlatforma();\n $koristi = new \\model\\DBKoristi();\n $ide = new \\model\\DBIde();\n $uraden = new \\model\\DBUraden(); \n $autor = new \\model\\DBAutor(); \n $autoreksperimenta = new \\model\\DBAutorEksperimenta(); \n $pripadaju = new \\model\\DBPripadaju();\n $parametar = new \\model\\DBParametar();\n $portfelj = new \\model\\DBPortfelj();\n \n\t\t//print_r($niz_pocetak);\n \n $eksperimenti = array();//tu čuvam id eksperimenata koji zadovoljavaju kriterije po kojima tražiš\n \n \n $i = 0;\n foreach ($niz_autor as $tmp) { \n $eks_autor_tmp = $autoreksperimenta->select()->innerJoin(\"autor ON autor.idAutora = autoreksperimenta.idAutora\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = autoreksperimenta.idEksperimenta\")->where(array(\"autor.prezime\" => $tmp))->fetchAll();\n \n if ($i == 0) {\n foreach ($eks_autor_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_autor_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_naziv as $tmp) {\n $eks_tmp = $znanstvenieksperiment->select()->where(array(\"znanstvenieksperiment.naziv\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_pocetak as $tmp) {\n $eks_tmp = $znanstvenieksperiment->select()->where(array(\"znanstvenieksperiment.vrijemePocetka\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n }\n \n \n $i = 0;\n foreach ($niz_zavrsetak as $tmp) {\n $eks_tmp = $znanstvenieksperiment->select()->where(array(\"znanstvenieksperiment.vrijemeZavrsetka\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_ide as $tmp) {\n $eks_ide_tmp = $uraden->select()->innerJoin(\"ide ON ide.idIDE = uraden.idIDE\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = uraden.idEksperimenta\")->where(array(\"ide.skraceniNaziv\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_ide_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_ide_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_alat as $tmp) {\n $eks_alat_tmp = $ostvaren->select()->innerJoin(\"alat ON alat.idAlata = ostvaren.idAlata\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = ostvaren.idEksperimenta\")->where(array(\"alat.skraceniNaziv\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) && !count($niz_ide) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_alat_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_alat_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n }\n \n $i = 0;\n foreach ($niz_platforma as $tmp) {\n $eks_platforma_tmp = $koristi->select()->innerJoin(\"platforma ON platforma.idPlatforme = koristi.idPlatforme\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = koristi.idEksperimenta\")->where(array(\"platforma.skraceniNaziv\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) && !count($niz_ide) && !count($niz_alat) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_platforma_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_platforma_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_iznosrezultata as $tmp) {\n $eks_rez_tmp = $ostvario->select()->innerJoin(\"rezultat ON rezultat.idRezultata = ostvario.idRezultata\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = ostvario.idEksperimenta\")->where(array(\"rezultat.iznos\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) \n && !count($niz_ide) && !count($niz_alat) && !count($niz_platforma) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($rad_rez_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($rad_rez_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_jedinicarezultata as $tmp) {\n $eks_rez_tmp = $ostvario->select()->innerJoin(\"rezultat ON rezultat.idRezultata = ostvario.idRezultata\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = ostvario.idEksperimenta\")->where(array(\"rezultat.mjernaJedinica\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) \n && !count($niz_ide) && !count($niz_alat) && !count($niz_platforma) && !count($niz_iznosrezultata) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($eks_rez_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_rez_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n $i = 0;\n foreach ($niz_ispitniprimjer as $tmp) {\n $eks_ispitprimjer_tmp = $pripadaju->select()->innerJoin(\"parametar ON parametar.idParametra = pripadaju.idParametra\"\n )->innerJoin(\"znanstvenieksperiment ON znanstvenieksperiment.idEksperimenta = pripadaju.idEksperimenta\")->where(array(\"rezultat.mjernaJedinica\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_naziv) && !count($niz_pocetak) && !count($niz_zavrsetak) \n && !count($niz_ide) && !count($niz_alat) && !count($niz_platforma) && !count($niz_iznosrezultata) && !count($niz_jedinicarezultata) &&($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi eksperimente\n foreach ($eks_ispitprimjer_tmp as $value) \n array_push($eksperimenti, $value->idEksperimenta); \n $i++;\n }\n else {\n $temp = array();\n foreach ($eks_ispitprimjer_tmp as $value)\n array_push($temp, $value->idEksperimenta);\n \n $eksperimenti = array_intersect($temp, $eksperimenti); \n \n }\n } \n \n /* zapiši podatke u niz\" */\n $eksperimenti = array_unique($eksperimenti, SORT_REGULAR);\n \n \n $data = array (\n \"id\" => array(), \n \"imeautor\" => array(), \n \"naziv\" => array(),\n \"pocetak\" => array(),\n \"zavrsetak\" => array(),\n \"ocjena\" => array() \n // ima još polje \"interan\" koje govori jel eksperiment interni ili ne\n ); \n \n //echo \"Eksperimenti : \" ;print_r($eksperimenti); echo \"<br>\";\n\t\t\n foreach($eksperimenti as $value)\n {\n //echo \"<br> <br <br> <br>\"; print_r($_SESSION['auth']);\n \n \n $jeinteran = $znanstvenieksperiment->select()->where(array(\n \"idEksperimenta\" => $value, \n \"vidljivost\" => \"I\"\n ))->fetchAll();\n \n if(count($jeinteran) && (!($portfelj->postojiZapis($_SESSION['auth'], $value, NULL)))) // to je inerni eksperiment nekog drugog korinika \n {\n //echo \"<br> <br> <br> <br> <br> TU sam\"; \n \n continue; \n \n }\n \n $znanstvenieksperimentpom = new \\model\\DBZnanstveniEksperiment();\n $znanstvenieksperimentpom->idEksperimenta = $value;\n\n //echo \"<br> <br> <br> <br> <br> TU sam\"; print_r($eks);\n array_push($data[\"ocjena\"], $znanstvenieksperimentpom->prosjecnaOcjena()); \n \n \n \n \n \n /**************************/\n \n array_push($data[\"id\"], $value); // dodaj id\n \n /******************************/ // dodaj naziv i datume\n $eks = $znanstvenieksperiment->select()->where(array(\n \"idEksperimenta\" => $value\n ))->fetchAll(); \n \n // echo \"Eksperimenti : \" ;print_r($eks); echo \"<br>\";\n \n array_push($data[\"naziv\"], $eks[0]->naziv); \n array_push($data[\"pocetak\"], $eks[0]->vrijemePocetka); \n array_push($data[\"zavrsetak\"], $eks[0]->vrijemeZavrsetka); \n \n \n /************************/ // dodaj autore\n $eks_autor_tmp = $autoreksperimenta->select()->innerJoin(\"autor ON autor.idAutora = autoreksperimenta.idAutora\")->where(array(\"autoreksperimenta.idEksperimenta\" => $value))->fetchAll();\n \n $temp = array();\n foreach ($eks_autor_tmp as $value2) \n { \n $tmp = $autor->select()->where(array(\n \"idAutora\" => $value2->idAutora\n ))->fetchAll();\n \n $temp = array_unique(array_merge($temp,$tmp), SORT_REGULAR); \n \n } \n \n $s = ''; \n if (count($temp))\n {\n \n foreach ($temp as $value3)\n {\n $s .= $value3->ime . ' ' .$value3->prezime . ', '; \n } \n }\n else\n {\n $s = '-'; \n }\n \n if (strlen($s) > 1)\n $s = substr($s, 0, -2);\n array_push($data[\"imeautor\"], $s);\n \n }\n \n \n //echo \"Eksperimenti : \" ;print_r($data[\"id\"]); echo \"<br>\";\n\t\t\n \n /*ispisivanje rezultata */\n echo new \\view\\Main(array(\n \"body\" => new \\view\\RezultatiPretrazivanjaEksperimenata(array(\n \"var\" => $data\n )),\n \"title\" => \"Rezultati pretraživanja eksperimenata\"\n ));\n\t\t \n }", "title": "" }, { "docid": "cf5662deec0888eaad0cd468e2ddb4fb", "score": "0.63927084", "text": "public function okruzi();", "title": "" }, { "docid": "f441cdc5d59141b1ae33451be086dc9e", "score": "0.6382687", "text": "public static function kayttajalistaus($page){ \n /*\n * Tämä funktio kutsuu, all-funktiota,\n * mikä hakee varastotilanteen tietokannasta\n */\n \n self::check_logged_in();\n \n // Paluttaa, montako riviä taulussa on dataa (esim. 24)\n $kayttaja_count = Kayttaja::count();\n $page_size = 5;\n \n // Leikkaa desimaalit pois ja antaa osamäärää yhtä isomman kokonaisluvun.\n $pages = ceil($kayttaja_count/$page_size);\n \n if ($page+1 < $pages) {\n $nextpage = $page +1;\n }\n else {\n $nextpage = $pages;\n }\n \n if ($page -1 < 1) {\n $prevpage = 1;\n }\n else {\n $prevpage = $page-1;\n }\n \n $Kayttajat = Kayttaja::all_with_paging($page, $page_size);\n $paakayttaja= TuoteController::check_user_rights();\n \n View::make('Kayttaja/Kayttajienlistaus.html', array('Kayttajat' => $Kayttajat, \n 'oikeudet' => $paakayttaja,\n 'curr_page' => $page, \n 'pages' => $pages, \n 'next_page' => $nextpage, \n 'prev_page' => $prevpage));\n \n }", "title": "" }, { "docid": "8ccacf707074e48c8e7d77b1e53ec8b6", "score": "0.636944", "text": "public function tampil_soal_akhir()\n {\n $this->db->order_by('id_soal','DESC');\n // Mengambil hanya 1 data dari tabel\n return $this->db->get('tb_soal',1);\n }", "title": "" }, { "docid": "5459bc633a34088481ff326fa41d67c5", "score": "0.6356589", "text": "function tampildata($view){\r\n include 'kripto.php';\r\n $kript = new Kriptografi();\r\n //melakukan filter terhadap data yang ditampilkan pada tabel\r\n if ($view == 'semua') {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan\");\r\n } elseif ($view == 'belumdiambil') {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan WHERE tglambil = '0-0`000`00``0-``'\");\r\n } else {\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan WHERE tglambil != '0-0`000`00``0-``'\");\r\n }\r\n $hasil = null;\r\n\r\n while($data = mysqli_fetch_array($query)){\r\n foreach ($data as $key => $value) {\r\n //melakukan dekripsi data\r\n if ($key != 'kodetitip' && $key != 'jlhbarang') {\r\n $kript->setWord($value, 'dekripsi');\r\n $data[$key] = $kript->getPlain();\r\n }\r\n }\r\n $hasil[] = $data;\r\n }\r\n return $hasil;\r\n \r\n }", "title": "" }, { "docid": "a725b4a6ec604c4fab57d13b1cc77ff4", "score": "0.63453275", "text": "function baru($cariID) \n {\n \n // senaraikan tatasusunan jadual dan setkan pembolehubah\n $bulanan = bulanan('data_bulanan','14'); # papar bulan dlm tahun semasa\n $jadualRangka = 'rangka14';\n $medanRangka ='newss,nama,ssm,alamat,' \n\t\t\t//. 'concat_ws(\"&nbsp;\",alamat1_lokasi,alamat2_lokasi,poskod_lokasi,bandar_lokasi,ng_lokasi) as alamat,' . \"\\r\"\n\t\t\t. 'nota,respon,fe,tel,fax,responden,email,msic2008,' . \"\\r\" \n\t\t\t. 'concat(substring(newss,1,3),\\' \\',substring(newss,4,3),\\' \\',' \n\t\t\t. 'substring(newss,7,3),\\' \\',substring(newss,10,3),\\' | \\',' \n\t\t\t. 'msic2008) as ' . '`id U M`';\n $medanData = 'newss,fe,nama,terima,hantar,gaji,staf,hasil,catatan';\n $sv='mm_'; // survey apa\n $cari['medan'] = 'newss'; // cari dalam medan apa\n $id = isset($cariID) ? $cariID : null; // cari id berasaskan sidap\n $cari['id'] = $id; // benda yang dicari\n $this->papar->kesID = array();\n\n if (!empty($id)) \n {\n //echo '$id:' . $id . '<br>';\n $this->papar->carian='newss';\n \n // 1. mula semak dalam rangka \n $this->papar->rangka['kes'] = \n $this->tanya->cariSemuaMedan($sv . $jadualRangka, \n $medanRangka, $cari);\n\t\t\t\t\n\t\t\t//echo '$this->papar->rangka:<br><pre>'; print_r($this->papar->rangka) . '</pre>'; \n\t\t\t\n\t\t\t// 1.1 ambil nilai msic & msic08\n\t\t\t//$msic00 = $this->papar->rangka['kes'][0]['msic'];\n\t\t\t$msic08 = $this->papar->rangka['kes'][0]['msic2008'];\n\t\t\t$cariM6['medan'] = 'msic';\n\t\t\t$cariM6['id'] = $msic08;\n\t\t\t\n\t\t\t// 1.2 cari nilai msic & msic08 dalam jadual msic2008\n\t\t\t$jadualMSIC = dpt_senarai('msiclama');\n\t\t\t// mula cari $cariID dalam $jadual\n\t\t\tforeach ($jadualMSIC as $m6 => $msic)\n\t\t\t{// mula ulang table\n\t\t\t\t// senarai nama medan\n\t\t\t\t$medanM6 = ($msic=='msic2008') ? \n\t\t\t\t\t'seksyen S,bahagian B,kumpulan Kpl,kelas Kls,' .\n\t\t\t\t\t'msic2000,msic,keterangan,notakaki' : '*'; \n\t\t\t\t//echo \"cariMSIC($msic, $medanM6, $cariM6)<br>\";\n\t\t\t\t$this->papar->cariIndustri[$msic] = $this->tanya->\n\t\t\t\tcariIndustri($msic, $medanM6, $cariM6);\n\t\t\t}// tamat ulang table\n\n // 2. mula cari $cariID dalam $bulanan\n\t\t\t/*\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n $this->papar->kesID[$myTable] = \n $this->tanya->cariSemuaMedan($sv . $myTable, \n $medanData, $cari);\n }// tamat ulang table\n\t\t\t//*/\n\t\t}\n else\n {\n $this->papar->carian='[tiada id diisi]';\n }\n \n // isytihar pemboleubah\n //$tajuk2=array('bulan','nama','msic','terima','hasil','dptLain',\n //'web','stok','staf','gaji','sebab','outlet','nota');\n $tajuk2=array('bulan','nama','terima','hantar','gaji','staf','hasil','catatan');\n $this->papar->paparTajuk = null;\n $s1 = '<span class=\"label\">';\n $s2 = '</span>';\n foreach ($tajuk2 as $tajuk)\n {\n $this->papar->paparTajuk .= \"\\n\" . '<th>' . $s1 . $tajuk . $s2 . '</th>';\n }\n\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->lokasi = 'MM14 - Ubah';\n\t\t$this->papar->cari = $id;\n\t\t\n // semak data\n\t\t/*\n\t\techo '<pre>';\n echo '$this->papar->kesID:<br>'; print_r($this->papar->kesID); \n\t\techo '$this->papar->rangka:<br>'; print_r($this->papar->rangka); \n\t\techo '$this->papar->cari:<br>'; print_r($this->papar->cari); \n\t\techo '</pre>';\n\t\t//*/\n\t\t\n // paparkan ke fail cimej/cari.php\n $this->papar->baca('kawalan/baru', 0);\n\n\n }", "title": "" }, { "docid": "93e49c8f14b6ed984420a26f2dc00295", "score": "0.63406867", "text": "public function postaviKomPre(){\n $idOglasa=$_POST['idOglasa'];\n $oglas= Ad::getAdWithId($idOglasa);\n require_once './views/RecenzijeObican/recenzija.php'; \n \n \n \n }", "title": "" }, { "docid": "9705527acc1bb2c5fc78ca5dcd06799b", "score": "0.63316315", "text": "public function dibujarPantalla( ) {\n $this->activarPantalla();\n try {\n usleep(1000000); // segundu bat itxaroten da Thinclient-ei ez\n // bait die pantaila marrazteko denborarik\n // ematen.\n } catch (Exception $e) {\n }\n foreach ($this->microsOn as $micro=>$estado) {\n if ($estado==1) {\n\n $this->enviarVolumenMicro($micro);\n\n }else {\n\n $this->enviarLimpiarVolumenMicro($micro);\n\n }\n $this->enviarEstadoMicrofono($micro);\n\n }\n\n $this->enviarEstadoSonido(self::$SONIDO_ENTRANTE);\n $this->enviarEstadoSonido(self::$SONIDO_SALIENTE);\n $this->enviarEstadoSonido(self::$SONIDO_GENERAL);\n if($this->isSonido(self::$SONIDO_GENERAL)==1) {\n\n $this->enviarVolumenGeneral();\n }else {\n $this->enviarLimpiarVolumenGeneral();\n }\n }", "title": "" }, { "docid": "b6a99b4282bba45a9687971c663b73b8", "score": "0.63023657", "text": "public function isplataSaKarticeSubmit()\n {\n $idKartice = $this->request->getVar(\"idKartice\");\n $rules['idKartice'] = 'required';\n $messages['idKartice']['required'] = 'UNESITE ID KARTICE.';\n $rules['iznos'] = 'required|decimal|greater_than[0.0]';\n $messages['iznos']['required'] = 'UNESITE IZNOS.';\n $messages['iznos']['decimal'] = 'NEKOREKTAN UNOS ZA IZNOS.';\n $messages['iznos']['greater_than'] = 'IZNOS MORA BITI POZITIVAN.';\n\n $poruka = \"\";\n if (!$this->validate($rules, $messages)) {\n if ($this->validator->hasError('idKartice')) $poruka = $this->validator->getError('idKartice');\n else if ($this->validator->hasError('iznos')) $poruka = $this->validator->getError('iznos');\n } else {\n //pravljenje modela za prihvatanje podataka iz baze\n $km = new KarticaModel();\n $rm = new RacunModel();\n $im = new IsplataModel();\n\n\n $karticaIsplata = $km->dohvatiKarticu($idKartice);\n $iznos = (float) $this->request->getVar('iznos');\n\n if ($karticaIsplata != null) {\n //ako je pronadjena kartica u bazi onda vrsi dalju proveru\n\n if ($karticaIsplata->stanje != null) { //u slucaju da je u pitanju kartica gosta ispisi poruku o gresci\n if ($karticaIsplata->stanje >= $iznos) {\n //promena stanja u bazi za karticu sa datim ID-em\n $km->izmeniStanje($idKartice, $karticaIsplata->stanje - $iznos);\n\n //izdavanje racuna i upis u bazu tabelu Racun\n\n $data['datum'] = date(\"Y-m-d\");\n $data['vreme'] = date(\"H:i:s\");\n $data['iznos'] = $iznos;\n $data['opis'] = \"isplata\";\n $idRacuna = $rm->dodajRacun($data);\n\n //dodavanje isplate i upis u bazu u tabelu Isplata \n $data['idKartice'] = $idKartice;\n $data['idRacuna'] = $idRacuna;\n $im->dodajIsplatu($data);\n return redirect()->to(site_url('Admin/uspehAdmin/4'));\n } else\n $poruka = \"NA KARTICI NEMA DOVOLJNO SREDSTAVA. POKUŠAJTE ISPLATU MANJE SUME.\";\n } else\n $poruka = \"KARTICA SA UNETIM ID-JEM PRIPADA GOSTU I NE MOŽE SE IZVRŠITI ISPLATA.\";\n } else\n $poruka = \"KARTICA SA UNETIM ID-JEM NE POSTOJI U BAZI.\";\n }\n $data['vrednost'] = $idKartice;\n $data['naslov'] = 'ISPLATA';\n $data['poruka'] = $poruka;\n $this->prikazi('isplata', $data);\n }", "title": "" }, { "docid": "f33fcee1a3d325f896756a34e3044994", "score": "0.6299652", "text": "public function absen_ujian(){\n\t\t$this->siak_view->config = \"Siak Widyatama - Absen Ujian\";\n\t\n\t\t$this->siak_view->judul = \"Absen Ujian\";\n\t\t\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Pembelajaran','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Persiapan Kuliah','href'=>'#'));\n\t\t$this->siak_breadcrumbs->add(array('title'=>'Absen Ujian','href'=>''. URL . 'siak_absensi_mahasiswa/absen_ujian'));\n\t\t$this->siak_view->set_breadcrumbs($this->siak_breadcrumbs->output());\n\t\t\n\t\t$this->siak_view->data_prodi =$this->siak_model->siak_data_list('prodi','prodi_id,prodi');\n\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/form_absen_ujian', false);\n\t}", "title": "" }, { "docid": "1154de70f60d5548cf8ddce569e44559", "score": "0.62984157", "text": "private function parsujDodak() {\r\n\t\t\r\n\t\tforeach ($this->xmlImport->SeznamDLVyd->DLVyd as $dodaciList) {\r\n\t\t\t\r\n\t\t\t//vytazeni cisla dodaciho listu z aktualne prochazeneho dodaku\r\n\t\t\t$this->dodaciListCislo = $this->upravDelku($dodaciList->CisloDokla,10);\r\n\t\t\t// vytazeni cisla ICO\r\n\t\t\t$this->ico = $dodaciList->MojeFirma->ICO;\r\n\t\t\t// ziskani a upraveni datumu z dodaku\r\n\t\t\t$this->datum = $this->upravDatum($dodaciList->DatSkPoh);\r\n\t\t\t$this->cisloProdejny = $this->upravDelku($dodaciList->Zakazka, 3);\r\n\t\t\t$this->vypisPolozkyDodaku($dodaciList);\r\n\t\t\t\r\n\t\t\tif($this->cisloProdejny == \"000\") {\r\n\t\t\t\t$this->chyba .= \"<span style='color:red'>CHYBA:</span>U dodaciho listu \".$this->dodaciListCislo.\" neni vyplnena prodejna! (polozka ZAKAZKA)<br/>\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif($this->chyba == \"\") {\r\n\t\t\t$this->stahnoutTXT();\r\n\t\t} else {\r\n\t\t\techo $this->chyba;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e07f8d6941fa3f323f76f96ada283e35", "score": "0.6293393", "text": "public function cumplirAnios(){\n echo \" --- no tengo idea cuando nací --- \";\n }", "title": "" }, { "docid": "6ac4b6535e963a3baf8df995d229f81a", "score": "0.6292081", "text": "public function uplataNaKarticuSubmit()\n {\n $idKartice = $this->request->getVar('idKartice');\n $rules['idKartice'] = 'required';\n $messages['idKartice']['required'] = 'UNESITE ID KARTICE.';\n $rules['iznos'] = 'required|decimal|greater_than[0.0]';\n $messages['iznos']['required'] = 'UNESITE IZNOS.';\n $messages['iznos']['decimal'] = 'NEKOREKTAN UNOS ZA IZNOS.';\n $messages['iznos']['greater_than'] = 'IZNOS MORA BITI POZITIVAN.';\n\n $poruka = \"\";\n if (!$this->validate($rules, $messages)) {\n if ($this->validator->hasError('idKartice')) $poruka = $this->validator->getError('idKartice');\n else if ($this->validator->hasError('iznos')) $poruka = $this->validator->getError('iznos');\n } else {\n //pravljenje modela za prihvatanje podataka iz baze\n $km = new KarticaModel();\n $rm = new RacunModel();\n $um = new UplataModel();\n\n $karticaUplata = $km->dohvatiKarticu($idKartice);\n $iznos = (float) $this->request->getVar('iznos');\n //azuriranje stanja na kartici\n if ($karticaUplata != null) {\n //ako je pronadjena kartica u bazi onda vrsi dalju proveru\n\n if ($karticaUplata->stanje != null) {\n // u slucaju da je u pitanju gost kolona stanje u odgovarajucoj tabeli ima vrednost null\n\n $km->izmeniStanje($idKartice, $karticaUplata->stanje + $iznos);\n //izdavanje racuna i upis u tabelu\n $data['datum'] = date(\"Y-m-d\");\n $data['vreme'] = date(\"H:i:s\");\n $data['iznos'] = $iznos;\n $data['opis'] = \"uplata\";\n $idRacuna = $rm->dodajRacun($data);\n\n //dodavanje uplate i upis u bazu u tabelu uplata \n $data['idKartice'] = $idKartice;\n $data['idRacuna'] = $idRacuna;\n $um->dodajUplatu($data);\n return redirect()->to(site_url('Admin/uspehAdmin/3'));\n } else {\n $poruka = \"KARTICA SA UNETIM ID-JEM PRIPADA GOSTU I NE MOZE SE IZVRSITI UPLATA.\";\n }\n } else {\n $poruka = \"KARTICA SA UNETIM ID-JEM NE POSTOJI U BAZI.\";\n }\n }\n $data['vrednost'] = $idKartice;\n $data['naslov'] = 'UPLATA';\n $data['poruka'] = $poruka;\n $this->prikazi('uplata', $data);\n }", "title": "" }, { "docid": "5f57d31de39f716374c3787421a2c97f", "score": "0.62911636", "text": "public function dziennaSredniaWilgotnosc($asortyment_id,$data_form,$nr_suszarni)\n {\n $data=$data_form;\n $kolejny_dzien = date('Y-m-d', strtotime($data . ' +1 day'));\n $godzina8='8:00:00';\n $godzina6='6:00:00';\n\n $Suma_Wilgotnosc1=\"\";\n $Suma_Wilgotnosc2=\"\";\n $Suma_Wilgotnosc=\"\";\n $Ilosc_pomiarow1=\"\";\n $Ilosc_pomiarow2=\"\";\n $Ilosc_pomiarow=\"\";\n $Srednia_Wilgotnosc=\"\";\n $precision=\"\";\n\n $conn = $this->getEntityManager()->getConnection();\n //Obliczamy ilosc pomiarów wilgotności pierwszego dnia raportu\n $sql = \"SELECT COUNT(Wilgotnosc) FROM dane_suszenia WHERE asortyment_id=:asortyment AND Data=:data AND NrSuszarni=:nr_suszarni AND Godzina >= :godzina8 AND Wilgotnosc > 0\";\n $stmt = $conn->prepare($sql);\n \n $stmt->execute(array('asortyment' => $asortyment_id,'data' => $data, 'nr_suszarni' => $nr_suszarni, 'godzina8' => $godzina8 ));\n \n $Ilosc_pomiarow1 = $stmt->fetchAll();\n dump($Ilosc_pomiarow1);\n\n //Obliczamy sumę wilgotności pierwszego dnia raportu\n $sql = \"SELECT SUM(Wilgotnosc) FROM dane_suszenia WHERE asortyment_id=:asortyment AND Data=:data AND NrSuszarni=:nr_suszarni AND Godzina >= :godzina8 AND Wilgotnosc > 0\";\n $stmt = $conn->prepare($sql);\n \n $stmt->execute(array('asortyment' => $asortyment_id,'data' => $data, 'nr_suszarni' => $nr_suszarni, 'godzina8' => $godzina8 ));\n\n $Suma_Wilgotnosc1 = $stmt->fetchAll();\n\n //Obliczamy ilosc pomiarów wilgotności drugiego dnia raportu\n $sql = \"SELECT COUNT(Wilgotnosc) FROM dane_suszenia WHERE asortyment_id=:asortyment AND Data=:data AND NrSuszarni=:nr_suszarni AND Godzina <= :godzina6 AND Wilgotnosc > 0\";\n $stmt = $conn->prepare($sql);\n \n $stmt->execute(array('asortyment' => $asortyment_id,'data' => $kolejny_dzien, 'nr_suszarni' => $nr_suszarni, 'godzina6' => $godzina6 ));\n\n $Ilosc_pomiarow2 = $stmt->fetchAll();\n\n\n //Obliczamy sumę pomiarów wilgotności drugiego dnia raportu\n $sql = \"SELECT SUM(Wilgotnosc) FROM dane_suszenia WHERE asortyment_id=:asortyment AND Data=:data AND NrSuszarni=:nr_suszarni AND Godzina <= :godzina6 AND Wilgotnosc > 0\";\n $stmt = $conn->prepare($sql);\n \n $stmt->execute(array('asortyment' => $asortyment_id,'data' => $kolejny_dzien, 'nr_suszarni' => $nr_suszarni, 'godzina6' => $godzina6 ));\n\n $Suma_Wilgotnosc2 = $stmt->fetchAll();\n\n //Obliczamy wilgotność końcową\n $Suma_Wilgotnosc=$Suma_Wilgotnosc1['0']['SUM(Wilgotnosc)']+$Suma_Wilgotnosc2['0']['SUM(Wilgotnosc)'];\n $Ilosc_pomiarow=$Ilosc_pomiarow1['0']['COUNT(Wilgotnosc)']+$Ilosc_pomiarow2['0']['COUNT(Wilgotnosc)'];\n \n // dump($Suma_Wilgotnosc);\n //dump($Ilosc_pomiarow);\n\n $Srednia_Wilgotnosc=($Suma_Wilgotnosc/$Ilosc_pomiarow);\n\n return round($Srednia_Wilgotnosc,$precision=2);\n ;\n // var_dump($stmt->fetchAll());die;\n //return json_encode($wynik);\n\n }", "title": "" }, { "docid": "9b5b25e747ab1c797ed3b774d0a1de39", "score": "0.6290988", "text": "public function alusta() {\n $conn = mysqli_connect('localhost', 'make', 'toppi', 'liikka', '3306');\n if (!$conn) {\n die('Could not connect to MySQL: ' . mysqli_connect_error());\n }\n\n $kysely = \"SELECT r.id AS r_id, \n r.nimi AS r_nimi, \n r.merkki AS r_merkki, \n r.kalorit AS r_kalorit, \n r.kommentti AS r_kommentti, \n rt.id AS rt_id, \n rt.nimi AS rt_nimi, \n rt.mittayksikko AS rt_mittayksikko, \n rt.gr_ml AS rt_gr_ml \n FROM ravinto AS r, ravinto_tyyppi AS rt \n WHERE r.tyyppi = rt.id\";\n $tulos = mysqli_query($conn, $kysely);\n\n if (!$tulos) {\n // TODO: tämä poistettava myöhemmin\n die(\"Kysely: <br />\" . $kysely . \"<br />ei tuottanut tuloksia. Tarkista kysely.\");\n }\n\n while ($rivi = mysqli_fetch_array($tulos)) {\n $tyyppi = Tyypit::hae($rivi['rt_id']);\n if ($tyyppi == null){\n die(\"Ei voitu hakea ravinnon tyyppiä. Tietokannassa on joku rikki. Ota yhteyttä järjestelmänvalvojaan.\");\n }\n $ravinto = new Ravinto(\n $rivi['r_id'], $rivi['r_nimi'], $tyyppi, $rivi['r_kalorit'], $rivi['r_merkki'], $rivi['r_kommentti']);\n\n array_push($this->ravinnot, $ravinto);\n }\n mysqli_close($conn);\n if (count($this->getRavinnot()) > 0) {\n usort($this->ravinnot, \"self::jarjestaNimenMukaan\");\n }\n }", "title": "" }, { "docid": "a418e42662d0b3b9be942a6be30b6ff8", "score": "0.6290199", "text": "function add_tt_pemutih_alkes() {\n//\t\tif (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal $_POST, $adodb, $ses;\n\t\t$record = $_POST;\n\t\tforeach ($record as $k => $v) $record[$k] = trim($v);\n\t\t\n\t\t$rsx = $adodb->Execute(\"SELECT * FROM tt_pemutih_alkes ORDER by no_tt DESC LIMIT 1\");\n\t\t$tahun_data = date('Y',$rsx->fields['date_insert']);\n\t\t$tahun_now = date('Y');\n\t\t\n\n\t\tif($rsx->fields['urut_no_tt'] == ''){\n\t\t\t$urut_no_tt = 1;\n\t\t}else{\n\t\t\tif($tahun_data == $tahun_now){\n\t\t\t\t$urut_no_tt = $rsx->fields['urut_no_tt'] + 1;\n\t\t\t}else{\n\t\t\t\t$urut_no_tt = 1;\n\t\t\t}\n\t\t}\n\n\t\t$sqly = \"SELECT\n\t\t\tsubdit\n\t\tFROM\n\t\t\tsubdit\n\t\tWHERE\n\t\t\tid_subdit = '\".$_POST['kode_subdit'].\"'\n\t\t\";\n\t\t//print $sqly;\n\t\t$lastno = $rsx->fields['urut_no_tt'];\n\t\t$lastno = $lastno[2].$lastno[3].$lastno[4].$lastno[5].$lastno[6];\n\t\t$lastno = intval($lastno);\n\t\t$lastno = $lastno + $urut_no_tt;\n\n\t\t$rsy = $adodb->Execute($sqly);\n\t\t$subdit = $rsy->fields['subdit'];\n\t\t$a = date('d-m/Y');\n\t\t$no = str_pad($lastno, 5, \"0\", STR_PAD_LEFT);\n\t\t$urut_no_tt = $subdit.\"/\".$no.\"/\".$a;\n\n \t\t$record['urut_no_tt'] = $urut_no_tt;\n\n\n\t\t$rs = $adodb->Execute(\"SELECT * FROM tt_pemutih_alkes WHERE no_tt = '{$record['oldpkvalue']}'\");\n\t\tif ($rs && ! $rs->EOF) {\n\t\t\t$adodb->Execute($adodb->GetUpdateSQL($rs, $record, 1));\n\t\t\t$st = \"Updated\";\n\t\t} else {\n\t\t\t$record['insert_by'] = $ses->loginid;\n\t\t\t$record['date_insert'] = time();\n\t\t\t$rs = $adodb->Execute(\"SELECT * FROM tt_pemutih_alkes WHERE no_tt = NULL\");\n\t\t\t$adodb->Execute($adodb->GetInsertSQL($rs, $record));\n\t\t\t$st = \"Added\";\n\t\t}\n\t\t//print_r($st);exit();\n\t\t$status = \"Successfull $st '<b>{$record['no_tt']}</b>'\";\n\t\t$this->log($status);\n\t\t\n\t\t$_block = new block();\n\t\t$_block->set_config('title', 'Status');\n\t\t$_block->set_config('width', \"90%\");\n\t\t$_block->parse(array(\"*\".$status));\n\t\treturn $_block->get_str();\n\t}", "title": "" }, { "docid": "ce69f2d8481bd61721bc0959902ad17b", "score": "0.6288644", "text": "public function selesai($item = 30, $ms = 1, $fe = null) \n {\n\t\t$fe = ($this->level == 'kawal') ? $fe : $this->pengguna; # set nama fe\n $bulanan = bulanan('kawalan','14'); # papar bulan dlm tahun semasa\n # semak pembolehubah $bulanan\n //echo '<pre>', print_r($bulanan, 1) . '</pre><br>';\n\n // setkan pembolehubah untuk $this->tanya\n $medanRangka = $this->medanRangka;\n\t\t\t$medanData = $this->medanData;\n $sv = $this->sv;\n\n // mula papar semua dalam $myTable\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n\t\t\t// setkan $medan\n\t\t\t$medan = ($myTable=='rangka13') ? $medanRangka : $medanData;\n // dapatkan bilangan jumlah rekod\n $bilSemua = $this->tanya->kiraKes($sv, $myTable, $medan, $fe);\n // tentukan bilangan mukasurat \n // bilangan jumlah rekod\n \t\t//echo '$bilSemua:'.$bilSemua.', $item:'.$item.', $ms:'.$ms.'<br>';\n $jum = pencamSqlLimit($bilSemua, $item, $ms);\n $this->papar->bilSemua[$myTable] = $bilSemua;\n // sql guna limit\n $this->papar->cariApa[$myTable] = $this->tanya->\n kesSelesai($sv, $myTable, $medan, $fe, $jum);\n // halaman\n $this->papar->halaman[$myTable] = halaman($jum);\n }// tamat ulang table\n \n # semak pembolehubah $this->papar->cariApa\n\t\t//echo '<pre>', print_r($this->papar->cariApa, 1) . '</pre><br>';\n \n // Set pemboleubah utama\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->carian = 'selesai';\n $this->papar->url = dpt_url();\n // pergi papar kandungan\n $this->papar->baca('kawalan/index');\n }", "title": "" }, { "docid": "f81a400e1dfc88b238f820d05299c059", "score": "0.62885135", "text": "public function semua($item = 30, $ms = 1, $fe = null) \n {\n\t\t$fe = ($this->level == 'kawal') ? $fe : $this->pengguna; # set nama fe\n $bulanan = bulanan('kawalan','14'); # papar bulan dlm tahun semasa\n # semak pembolehubah $bulanan\n //echo '<pre>', print_r($bulanan, 1) . '</pre><br>';\n\n // setkan pembolehubah untuk $this->tanya\n $medanRangka = $this->medanRangka;\n\t\t\t$medanData = $this->medanData;\n $sv = $this->sv; //$myTable='rangka14';\n\n // mula papar semua dalam $myTable\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n\t\t\t// setkan $medan \n\t\t\t$medan = ($myTable=='rangka14') ? $medanRangka : $medanData;\n // dapatkan bilangan jumlah rekod\n $bilSemua = $this->tanya->kiraKes($sv, $myTable, $medan, $fe);\n // tentukan bilangan mukasurat \n // bilangan jumlah rekod\n\t\t\t//echo '$bilSemua:'.$bilSemua.', $item:'.$item.', $ms:'.$ms.'<br>';\n $jum = pencamSqlLimit($bilSemua, $item, $ms);\n $this->papar->bilSemua[$myTable] = $bilSemua;\n // sql guna limit\n $this->papar->cariApa[$myTable] = $this->tanya->\n kesSemua($sv, $myTable, $medan, $fe, $jum);\n // halaman\n $this->papar->halaman[$myTable] = halaman($jum);\n }// tamat ulang table\n \n # semak pembolehubah $this->papar->cariApa\n //echo '<pre>', print_r($this->papar->cariApa, 1) . '</pre><br>';\n\n // Set pemboleubah utama\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->carian = 'semua';\n $this->papar->url = dpt_url();\n // pergi papar kandungan\n $this->papar->baca('kawalan/index', 0);\n }", "title": "" }, { "docid": "cc4ca9ccbd6d68d4b7ef45bb76ab86e0", "score": "0.628034", "text": "function dodajAnkiete($info){\r\n\tglobal $polaczenie;\r\n\tglobal $login;\r\n\tglobal $kingdomInfo;\r\n\tsettype($info[\"ileDni\"], \"integer\");\r\n\tif(!isset($info['akcja'])){\r\n\t\t$info['akcja']='NULL';\r\n\t}\r\n\tif($info[\"ileDni\"]<=0){\r\n\t\treturn \"Podaj prawidłową liczbe dni !!!\";\r\n\t}\r\n\tif($info[\"pytanie\"]==\"\"){\r\n\t\treturn \"Wpisz pytanie !!!\";\r\n\t}\r\n\t$info[\"pytanie\"]=strip_tags($info[\"pytanie\"]);\r\n\t$SQL=\"insert into ankiety\r\n values(NULL,'\".date(\"Y-m-d-G-i-s\",time()+$info[\"ileDni\"]*86400).\"','\".$info[\"pytanie\"].\"',\r\n '\".$info['akcja'].\"','\".$login.\"','\".$info[\"tryb\"].\"','\".$kingdomInfo['koalicja'].\"');\";\r\n\t$wynik= mysql_query($SQL)or Die(\"sondy blad przy wstawianiu nowej ankiety\");\r\n\t$forumid=mysql_insert_id();\r\n\tforeach( $info['tab'] as $item ){\r\n\t\t$item=strip_tags($item);\r\n\t\t$SQL=\"insert into opcje\r\n values(NULL,\".$forumid.\",'\".$item.\"',0);\";\r\n\t\t$wynik= mysql_query($SQL)or Die(\"sondy blad przy wstawianiu nowej opcji\");\r\n\t}\r\n\treturn \"Dodano ankiete \";\r\n}", "title": "" }, { "docid": "3358dd23270c422c8c8b9b918aa224e8", "score": "0.6274538", "text": "public function hitung_nilai_r()\n\t{\n\n\t\tforeach (KriteriaDaerahPemasaran::all() as $key => $_kriteria) {\n\t\t\t$kk = $_kriteria;\n\t\t\tif ($_kriteria->benefit > 0) {\n\t\t\t\t// max();\n\t\t\t\t$kk['min_max'] = max($this->_kriteria[$_kriteria->id]);\n\t\t\t}else{\n\t\t\t\t$kk['min_max'] = min($this->_kriteria[$_kriteria->id]);\n\t\t\t}\n\t\t\t$this->kriteria[] = $kk;\n\t\t}\n\n\t\t//penentuan nilai r\n\t\tforeach ($this->kota as $kota) {\n\t\t\t$matrix = [];\n\t\t\tforeach ($this->kriteria as $key => $kriteria) {\n\t\t\t\t$r = 0;\n\t\t\t\tif ($kriteria->benefit > 0) {\n\t\t\t\t\t//max - benefit\n\t\t\t\t\t$r = (int) $kota['kriteria'][$key]['nilai'] / (int) $kriteria->min_max;\n\t\t\t\t}else{\n\t\t\t\t\t$r = (int) $kriteria->min_max / (int) $kota['kriteria'][$key]['nilai'];\n\t\t\t\t}\n\t\t\t\t$matrix[] = $r;\n\t\t\t}\n\t\t\t$this->nilai_r[] = $matrix;\n\t\t}\n\t}", "title": "" }, { "docid": "6fe648a9f1e4513027d0945185427bf1", "score": "0.6274088", "text": "public function prosesedit_mata_kuliah()\n\t{\n\n\t\t$this->m_aka->prosesedit_mata_kuliah();\n\t\tredirect('p_jurusan/data_mata_kuliah');\n\t}", "title": "" }, { "docid": "3154c3a64f3877800fca7638b8325f19", "score": "0.6244321", "text": "public function verSALuar(Request $request, $id) {\n $dok = Persyaratan_luar_negeri::where('produk_id', $id)->first();\n $arr = [[$dok->dok_importir()->first()->more_doc()->first(), 'sa'], [$dok->dok_importir()->first(), 'dokImportir'],[$dok->dok_manufaktur()->first(), 'dokManufaktur']];\n foreach ($request->fileName as $key => $value) {\n if (explode(',', $value)[1] == 'sa') {$index = 0;}\n elseif (explode(',', $value)[1] == 'dokImportir') {$index = 1;}\n else {$index = 2;}\n array_push($arr[$index], [explode(',', $value)[0], $request->dok[$key]]);\n }\n $sni = [];\n foreach ($arr as $key => $value) {\n for($i=2;$i<count($value);$i++) {\n $field = $value[$i][0];\n // hapus dok jika tidak lengkap\n if ($value[$i][1] == 'null' && !is_null($value[0]->$field)) {\n \\Storage::delete('dok/'.$value[1].'/'.$value[0]->$field);\n $value[0]->$field = null;\n }\n }\n // cek kelengkapan dok - 1\n $jmlDok = count($arr)-2;\n $lengkap = $value[1] == 'sa' ? 'sni' : 'lengkap';\n for ($j=2; $j < count($arr); $j++) { \n if ($value[$j][1] == 'null') {\n $value[0]->$lengkap = 2;\n break;\n }\n $jmlDok-=1;\n }\n if ($jmlDok == 0) {$value[0]->$lengkap = 1;}\n array_push($sni, $value[0]->$lengkap);\n $value[0]->save();\n }\n // cek kelengkapan dok - 2\n foreach ($sni as $key => $value) {\n if ($value == 2) {$dok->sni = 2;break;}\n if ($key == 2 && $value == 1) {\n $dok->sni = 1;\n $tahap = TahapSert::where('produk_id', $id)->first();\n $tahap->apply_sa = 1;\n $tahap->save();\n }\n }\n $dok->save();\n return redirect()->back();\n }", "title": "" }, { "docid": "7620bd50f86a16a8e0a4872202400d59", "score": "0.62442046", "text": "function korisnik(){\n // PREGLED DOBIVENIH PODATAKA\n // PODACI O NARUCITELJU? ISPORUCI? PLACANJU?\n \n // DOHVATITI PODATKE O NARUDZBI I PRIPREMITI IH\n // ZA PRIJENOS NA SLJEDECI KORAK NARUDZBE\n // OPCIJE: \n // 1. UPISATI NARUDZBU U PRIVREMENU DATOTEKU?\n // 2. SPREMITI SVE PODATKE IZ POST-a U SKRIVENA POLJA \n // 3. OBLIKOVATI PODATKE U MANJI BROJ ILI JEDNO SKRIVENO POLJE\n echo '<form method=\"post\" action=\"?a=unos\">';\nforeach($_POST as $key=>$value){\necho '<input type=\"hidden\" name=\"'.$key.'\" value=\"'.$value.'\">';\n}\n echo '<p>Email: <input type=\"text\" name=\"email\"></p>';\n echo '<p>Adresa za isporuku<br>';\n echo '<textarea name=\"adresa\"></textarea></p>';\n echo '<p><input type=\"submit\" name=\"submit\" value=\"NARUCI\"></p>';\n echo '</form>';\n \n}", "title": "" }, { "docid": "e13e3a04cf7fb56692d8c47523653689", "score": "0.6237428", "text": "public function hitung_peramalan_perkecamatan($id_kecamatan,$jenis_data){\n $query_dataPerkecamatan=\"SELECT * FROM data_covid NATURAL JOIN kecamatan WHERE id_kecamatan=$id_kecamatan AND jenis_data='$jenis_data' ORDER BY tanggal_covid ASC\";\n $dataPerkecamatan=$this->db->query($query_dataPerkecamatan)->result_array();\n \n \n \n //ambil parameter beta\n $query_Beta=\"SELECT beta FROM parameter_beta\";\n $Beta=(double)$this->db->query($query_Beta)->row_array()['beta'];\n\n $index = 0;\n foreach($dataPerkecamatan as $data) {\n //ambil data perhitungan sebelumnya\n $query_dataSebelumnya=\"SELECT * FROM perhitungan NATURAL JOIN data_covid NATURAL JOIN kecamatan WHERE id_kecamatan=$id_kecamatan AND jenis_data='$jenis_data' ORDER BY tanggal_covid DESC\";\n $dataSebelumnya=$this->db->query($query_dataSebelumnya)->row_array();\n if($index==0){\n $data = array(\n 'id_perhitungan' => \"\",\n 'id_data_covid' => $dataPerkecamatan[$index]['id_data_covid'],\n 'ft' => 0,\n 'error' => null,\n 'Et' => 0,\n 'AEt' => 0,\n 'alpha' => 0,\n 'mape' => null\n );\n $this->db->insert('perhitungan', $data);\n }\n else if($index==1){\n \n $at=$dataPerkecamatan[$index]['data_covid'];\n $ft=$dataPerkecamatan[$index-1]['data_covid'];\n \n // //error\n $error=$at-$ft;\n \n // //Et\n $EtSebelumnya= $dataSebelumnya['Et'];\n $Et=($Beta*$error)+((1-$Beta)*$EtSebelumnya);\n //AEt\n $AEtSebelumnya=$dataSebelumnya['AEt'];\n $AEt=abs(($Beta*$error)+(1-$Beta)*$AEtSebelumnya);\n\n //mape\n $mape=abs($error/$at)*100;\n $data = array(\n 'id_perhitungan' => \"\",\n 'id_data_covid' => $dataPerkecamatan[$index]['id_data_covid'],\n 'ft' => $ft,\n 'error' => $error,\n 'Et' =>$Et,\n 'AEt' => $AEt,\n 'alpha' => $Beta,\n 'mape' => $mape\n );\n $this->db->insert('perhitungan', $data);\n }\n else \n if($index==2 or $index==3){\n // data at\n $at=$dataPerkecamatan[$index]['data_covid'];\n\n //data at-1 \n $atSebelumnya= $dataPerkecamatan[$index-1]['data_covid'];\n \n //data ft-1\n $ftSebelumnya= $dataSebelumnya['ft'];\n \n $alphaSebelumnya=$dataSebelumnya['alpha'];\n //alpha\n $alpha=$Beta;\n \n //ft\n $ft=($alphaSebelumnya*$atSebelumnya)+((1-$alphaSebelumnya)*$ftSebelumnya);\n \n // //error\n $error=$at-$ft;\n \n // //Et\n $EtSebelumnya= $dataSebelumnya['Et'];\n $Et=($Beta*$error)+((1-$Beta)*$EtSebelumnya);\n //AEt\n $AEtSebelumnya=$dataSebelumnya['AEt'];\n $AEt=abs(($Beta*$error)+(1-$Beta)*$AEtSebelumnya);\n\n //mape\n $mape=abs($error/$at)*100;\n $data = array(\n 'id_perhitungan' => \"\",\n 'id_data_covid' => $dataPerkecamatan[$index]['id_data_covid'],\n 'ft' => $ft,\n 'error' => $error,\n 'Et' =>$Et,\n 'AEt' => $AEt,\n 'alpha' => $alpha,\n 'mape' => $mape\n );\n $this->db->insert('perhitungan', $data);\n }\n else\n {\n //data at\n $at=$dataPerkecamatan[$index]['data_covid'];\n \n // data at-1\n $atSebelumnya= $dataSebelumnya['data_covid'];\n \n //data ft-1\n $ftSebelumnya= $dataSebelumnya['ft'];\n\n //data Et-1\n $EtSebelumnya= $dataSebelumnya['Et'];\n\n //Data AEt-1\n $AEtSebelumnya=$dataSebelumnya['AEt'];\n\n $alphaSebelumnya=$dataSebelumnya['alpha'];\n \n // data alpha jika alpha ==0 maka set alpha 0 \n // if($EtSebelumnya!=0 and $AEtSebelumnya!=0){\n // $alpha=abs($EtSebelumnya/$AEtSebelumnya);\n // }else{\n // $alpha=0;\n // }\n $alpha=abs($EtSebelumnya/$AEtSebelumnya);\n // ft\n $ft=(double)($alphaSebelumnya*$atSebelumnya)+((1-$alphaSebelumnya)*$ftSebelumnya);\n\n // //error\n $error=$at-$ft;\n \n // //Et\n $Et=($Beta*$error)+((1-$Beta)*$EtSebelumnya);\n\n //AEt\n $AEt=abs(($Beta*$error)+(1-$Beta)*$AEtSebelumnya);\n //mape\n $mape=abs($error/$at)*100;\n\n echo(\"atSebelumnya $atSebelumnya<br>\");\n echo(\"ftSebelumnya $ftSebelumnya<br>\");\n echo(\"EtSebelumnya $EtSebelumnya<br>\");\n echo(\"AEtSebelumnya $AEtSebelumnya<br>\");\n echo(\"($alphaSebelumnya x $atSebelumnya) plus ((1 min $alphaSebelumnya) x$ftSebelumnya) =$ft<br>\");\n $data = array(\n 'id_perhitungan' => \"\",\n 'id_data_covid' => $dataPerkecamatan[$index]['id_data_covid'],\n 'ft' => $ft,\n 'error' => $error,\n 'Et' =>$Et,\n 'AEt' => $AEt,\n 'alpha' => $alpha,\n 'mape' => $mape\n );\n $this->db->insert('perhitungan', $data);\n }\n $index++;\n }\n }", "title": "" }, { "docid": "add232f01067223c925a31abc2ef67a0", "score": "0.6232893", "text": "public function absensi_dosen(){\n\t\t$where = array('nip' => $_SESSION['username']);\n\t\t$this->siak_view->dosen = $this->siak_model->siak_edit($where, \"dosen\", \"*\");\n\t\t$this->siak_view->prodi = $this->siak_model->siak_data_list(\"prodi\", \"*\");\n\t\t$this->siak_view->tahun = $this->siak_model->siak_data_list(\"tahun_akademik\", \"*\");\n\t\t$this->siak_view->matakuliah = $this->siak_model->siak_data_list(\"matakuliah\", \"*\");\n\t\t$this->siak_view->siak_render('siak_absensi_mahasiswa/absen_dosen', false);\t\t\n\t}", "title": "" }, { "docid": "917edb5056b9e1483188f66377dfef60", "score": "0.62158084", "text": "private function proveriPost(){\n\n if (empty($this->kolicinaSljiva) && empty($this->kolicinaKrusaka) && empty($this->kolicinaJabuka)) {\n\n echo \"<a href='../orderform.php'>&lt; Nazad za ispravku</a><br><br>\";\n\n echo \"<img src='../slike/korpa.jpg'><br><br>\";\n\n die(\"<b>Korpa je prazna!</b>\");\n\n } \n\n if(!filter_var($this->kolicinaJabuka, FILTER_VALIDATE_INT) and (!empty($this->kolicinaJabuka))){\n\n die(\"Unesite samo numericke karaktere za jabule!\"); \n }\n\n if(!filter_var($this->kolicinaKrusaka, FILTER_VALIDATE_INT) and (!empty($this->kolicinaKrusaka))){\n\n die(\"Unesite samo numericke karaktere za kruske!\"); \n }\n\n if(!filter_var($this->kolicinaSljiva, FILTER_VALIDATE_INT) and (!empty($this->kolicinaSljiva))){\n\n die(\"Unesite samo numericke karaktere za sljive!\"); \n }\n\n if(empty($this->adresa)){\n\n echo \"<a href='../orderform.php'>&lt; Nazad za ispravku</a><br><br>\";\n die(\"<p class = 'error'>Adresa je obavezna!</p>\"); \n }\n\n\n\n }", "title": "" }, { "docid": "ac45ef89e326da72b98293a7424752c9", "score": "0.62102306", "text": "function tampil_nilai_akhir()\n {\n $this->db->order_by('id_nilai','DESC');\n // Mengambil hanya 1 data dari tabel\n return $this->db->get('tb_nilai',1);\n }", "title": "" }, { "docid": "79dfe9b013aac12a0300c116b2342570", "score": "0.6208026", "text": "public function luzSalaEncender( $luz ) {\n $this->sala_on = 1;\n $this->dibujarPantalla();\n //$this->activarPantalla();\n }", "title": "" }, { "docid": "8f2e2133c56fd5c26b94d1a0aeb11177", "score": "0.62075454", "text": "function peminjaman_aksi()\n\t{\n\t\t//menampung data dari elemen input\n\t\t$buku = $this->input->post('buku');\n\t\t$anggota = $this->input->post('anggota');\n\t\t$tanggal_mulai = $this->input->post('tanggal_mulai');\n\t\t$tanggal_sampai = $this->input->post('tanggal_sampai');\n\n\t\t//data ditampunng di array\n\t\t$data = array(\n\t\t\t'peminjaman_buku' => $buku,\n\t\t\t'peminjaman_anggota' => $anggota,\n\t\t\t'peminjaman_tanggal_mulai' => $tanggal_mulai,\n\t\t\t'peminjaman_tanggal_sampai' => $tanggal_sampai,\n\t\t\t'peminjaman_status' => 2\n\t\t);\n\n\t\t// insert data ke database\n\t\t$this->m_data->insert_data($data,'peminjaman');\n\n\t\t//# mengubah status buku menjadi di pinjam (2) sesuai id di table buku\n\t\t// X $w = array('id' => $id );\n\t\t\t\t// kesalahanya : asal ketik variable id tanpa tahu asalnya\n\t\t\t\t// penyelesaian : menelusuri -> $buku itu menangkap value dari elemnet select option name = \" buku\" di v_peminjaman_tambah. valuenya adalah id dari buku walaupunn yang muncul adalag h\n\n\t\t$w = array('id' => $buku );\n\n\t\t$d = array('status' => 2);\n\n\t\t$this->m_data->update_data($w, $d, 'buku');\n\n\t\t//mengalihkan ke halaman data peminjaman\n\t\tredirect(base_url('petugas/peminjaman'));\n\t}", "title": "" }, { "docid": "507d6c2e2564d9eba94131230b57377b", "score": "0.62037194", "text": "function ini() {\n $this->total_val = 0;\n //print_r(\"UE al inicio\");\n //print_r($this->s__ue);\n //print_r(\"tipo: \" . $this->s__tipo);\n $this->s__colapsar = ''; //para que aparezca colapsado\n $clave = array('componente' => '3021', 'proyecto' => 'ccomputos'); //form_votos\n $metadatos = toba_cargador::instancia()->get_metadatos_extendidos($clave, 'toba_ei_formulario');\n $sql=\"\";\n if (isset($this->s__tipo)) {\n if ($this->s__tipo == 'superior') {\n $sql = \"select * from lista_csuperior order by nombre\"; //recupero todas las listas del consejo superior\n } else {\n if ($this->s__tipo == 'directivo') {\n if (isset($this->s__ue)) {\n //recupero las listas del consejo directivo de la ue correspondiente\n $sql = \"select * from lista_cdirectivo where id_ue=\" . $this->s__ue . \" order by nombre\";\n }\n }\n }\n if ($sql!=\"\"){\n $resultado = toba::db('ccomputos')->consultar($sql);\n //luego genero el formulario con los efs correspondientes a las listas \n //print_r($resultado);\n $tot = count($resultado);\n $i = 0;\n $datos = array();\n $efs = array();\n foreach ($resultado as $valor) {//para cada lista del cons superior\n $nombre = utf8_decode($valor['nombre']); //obtengo nombre de la lista para colocar en la etiqueta\n $id_lista = $valor['id_nro_lista']; //obtengo id de la lista para colocar como nombre de la columna\n $ident = 'nuevo_ef' . $i;\n $nuevo_ef = array(\n 'identificador' => $ident,\n 'columnas' => $id_lista,\n 'obligatorio' => 1,\n 'elemento_formulario' => 'ef_editable',\n 'etiqueta' => $nombre,\n 'descripcion' => 'Lista del Consejo Superior',\n 'inicializacion' => '0',\n 'colapsado' => 0,\n 'oculto_relaja_obligatorio' => 0,\n );\n $efs[$i] = $nuevo_ef;\n $i = $i + 1;\n\n //me fijo si esa lista para ese acta tiene votos\n if ($this->s__tipo == \"superior\") {\n if (isset($this->s__resultados[0]['id_acta'])) {\n $consulta = \"select cant_votos from lista_csuperior t_l LEFT JOIN voto_lista_csuperior t_v ON t_l.id_nro_lista=t_v.id_lista where t_l.id_nro_lista =\" . $valor['id_nro_lista'] . \" and t_v.id_acta=\" . $this->s__resultados[0]['id_acta'];\n $res = toba::db('ccomputos')->consultar($consulta);\n if (count($res) > 0) {//si hay resultados\n $datos[$id_lista] = $res[0]['cant_votos'];\n $this->total_val+=$res[0]['cant_votos'];\n } else {\n $datos[$id_lista] = '0';\n }\n } else {\n $datos[$id_lista] = '0';\n }\n }\n if ($this->s__tipo == \"directivo\") {\n if (isset($this->s__resultados[1]['id_acta'])) {\n $consulta = \"select cant_votos from lista_cdirectivo t_l LEFT JOIN voto_lista_cdirectivo t_v ON t_l.id_nro_lista=t_v.id_lista where t_l.id_nro_lista =\" . $valor['id_nro_lista'] . \" and t_v.id_acta=\" . $this->s__resultados[1]['id_acta'];\n $res = toba::db('ccomputos')->consultar($consulta);\n if (count($res) > 0) {//si hay resultados\n $datos[$id_lista] = $res[0]['cant_votos'];\n $this->total_val+=$res[0]['cant_votos'];\n } else {\n $datos[$id_lista] = '0';\n }\n } else {\n $datos[$id_lista] = '0';\n }\n }\n }\n $metadatos['_info_formulario_ef'] = array();\n\n $i = 0;\n while ($i < $tot) {\n $metadatos['_info_formulario_ef'][$i] = $efs[$i];\n $i = $i + 1;\n }\n\n //-----------elementos de la lista del directivo\n /* print_r(\"UE al inicio\");\n print_r($this->s__ue);\n print_r($i);\n if (isset($this->s__ue)){\n //recupero las listas del consejo directivo de la ue correspondiente\n $sql=\"select * from lista_cdirectivo where id_ue=\".$this->s__ue.\" order by nombre\";\n //luego genero el formulario con los efs correspondientes a las listas\n $resultado=toba::db('ccomputos')->consultar($sql);\n $tot2=$tot+count($resultado);\n $j=$i;\n\n $efs=array();\n foreach ($resultado as $val) {//para cada lista del cons superior\n $nombre= utf8_decode($val['nombre']);//obtengo nombre de la lista para colocar en la etiqueta\n $id_lista=$val['id_nro_lista'];//obtengo id de la lista para colocar como nombre de la columna\n $colum=$id_lista.'d';\n $ident='nuevo_ef'.$j;\n $nuevo_ef = array(\n 'identificador' => $ident,\n 'columnas' => $colum ,\n 'obligatorio' => 1,\n 'elemento_formulario' => 'ef_editable',\n 'etiqueta' => $nombre,\n 'descripcion' => 'Lista del Consejo Directivo',\n 'inicializacion' => '0',\n 'colapsado' => 0,\n 'oculto_relaja_obligatorio' => 0,\n\n );\n $efs[$j]=$nuevo_ef;\n $j++;\n //me fijo si esa lista para ese acta tiene votos\n if(isset($this->s__actual_d)){\n $consulta=\"select cant_votos from lista_cdirectivo t_l LEFT JOIN voto_lista_cdirectivo t_v ON t_l.id_nro_lista=t_v.id_lista where t_l.id_nro_lista =\".$val['id_nro_lista'].\" and t_v.id_acta=\".$this->s__actual_d['id_acta'];\n $res=toba::db('ccomputos')->consultar($consulta);\n if (count($res)>0){//si hay resultados\n $datos[$colum]=$res[0]['cant_votos'];\n }else{$datos[$colum]='0';}\n }else{\n $datos[$colum]='0';\n }\n }\n\n\n $j=$i;\n while($j<$tot2){\n $metadatos['_info_formulario_ef'][$j] = $efs[$j];\n $j++;\n }\n */\n $this->datos = $datos;\n toba_cargador::instancia()->set_metadatos_extendidos($metadatos, $clave);\n }\n }\n }", "title": "" }, { "docid": "3e885564a39dbb47b911f93fb9043feb", "score": "0.61966556", "text": "public function najcastejsi_spoluhraci($kolko = 6)\n\t\t {\n\t\t $spoluhraci = DBObject::glob('Hrac', \"SELECT * FROM hraci WHERE id <> '{$this->id}'\");\n\t\t \n\t\t //polia, v ktorych si budeme pametat id spoluhraca a pocet turnajov, na ktorom spolu hrali \n $return = array();\n //naplnime nulami\n $return2 = array();\n \n foreach($spoluhraci as $s) {\n $return[$s->id] = $this->kolko_spolu_hrali($s->id);\n }\t\n \n //utriedime podla poctu odohratych turnajov\n arsort($return);\n $i = 0;\n \n //vyberieme len prvych \"kolko\"\n foreach($return as $k=>$v) {\n if($i < $kolko) {\n $return2[$k] = $v;\n $i++;\n }\n }\n \t\t \n\t\t\t return $return2; \n \t\t}", "title": "" }, { "docid": "69177621f286d2820612fe388508ee79", "score": "0.61942554", "text": "function peminjaman_selesai($id)\n\t{\n\t\t// $where = array('nama_kolom' => $id );\n\t\t$where = array('peminjaman_id' => $id );\n\n\t\t//mengambil data buku pada peminjaman ber id tersebut\n\t\t$data = $this->m_data->edit_data($where, 'peminjaman')->row();\n\t\t$buku = $data->peminjaman_buku; //ini nampung id untuk ubah status buku yang ambil dari data peminjaman\n\n\t\t//mengembalikan status buku kembali ke tersedia (1)\n\t\t$w = array('id' => $buku );\n\t\t$d = array('status' => 1 );\n\t\t$this->m_data->update_data($w, $d, 'buku');\n\n\t\t//mengubah status peminjaman menjadi selesai (1)\n\t\t$this->m_data->update_data($where, array('peminjaman_status'=>1), 'peminjaman');\n\n\t\t//mengalihkan ke halaman data buku\n\t\tredirect(base_url('petugas/peminjaman'));\n\t}", "title": "" }, { "docid": "6df1aca68823331e6fb9e27bb61419da", "score": "0.6192966", "text": "function lihatNilaiSiswa($id_jadwal, $id_mapel){\n \n //$nilai = \"SELECT * FROM tbl_nilai,tbl_komponen_nilai WHERE nisn = '$nisn' AND tbl_nilai.id_mapel = '$id_mapel' AND tbl_nilai.id_komponen=tbl_komponen_nilai.id_komponen \";\n $nisn = $_SESSION['username'];\n $nilai = \"SELECT * FROM tbl_komponen_nilai tkn, tbl_nilai tn WHERE nisn = '$nisn' AND tn.id_mapel = '$id_mapel' AND tkn.id_komponen=tn.id_komponen ORDER BY tn.id_komponen ASC\";\n $mapel = \"SELECT nama_mapel FROM tbl_mapel WHERE id_mapel = '$id_mapel'\";\n $deskripsi = \"SELECT deskripsi_pengetahuan,deskripsi_spiritual,deskripsi_keterampilan,deskripsi_sosial FROM tbl_deskripsi_nilai tdn WHERE tdn.nisn = '$nisn' AND tdn.id_mapel = '$id_mapel'\";\n \n //$result = $query->row();\n $data['nilai'] = $this->db->query($nilai)->result();\n $data['deskripsi'] = $this->db->query($deskripsi)->result();\n $data['mapel'] = $this->db->query($mapel)->result();\n \n\n $this->template->load('template','nilai/siswa_see', $data);\n }", "title": "" }, { "docid": "d7eb8b15cf8c0b9977ce0c23ec81a4d4", "score": "0.6188269", "text": "public function dar_baja() {\n $objDatos = new clsDatos();\n $sql = \"UPDATE enfemedad SET(id_enf='I')\";\n $objDatos->ejecutar($sql);\n $objDatos->crerrarconexion();\n }", "title": "" }, { "docid": "fcb0edc5717007e7ddb6b9eccdab82bb", "score": "0.61852396", "text": "public function procesar_traduccion(){\n\t\t//si existe hay que editar, sino crear nuevo\n\t\t$this->Builder->where('anuncio',$this->anuncio);\n\t\t$this->Builder->where('idioma',$this->idioma);\n\n\t\tif($salida = $this->Builder->getOne('anuncios_idiomas')){\n\t\t\t$this->id = $salida['id'];\n\t\t\t$this->actualizar_idioma();\n\t\t\t\n\t\t}else{\n\t\t\t$this->savenew_tradd();\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "ca248d714a3361842c3544789e640a71", "score": "0.61828935", "text": "public function getSemuaPendaftaran($angkatan) {\n // $admin->getAdminProfile($_SESSION['id']);\n // $juri = $admin->getEmail();\n $sql = \"select * from pendaftaran where status = '1'\";\n $result = $this->_db->Exec($sql);\n $i = 1;\n foreach ($result as $r) {\n $this->_db->Exec(\"insert into penilaian value(null,0)\");\n // $penilaian = $this->_db->Exec(\"select last_insert_id() as id from penilaian limit 1\");\n $peserta = new Peserta;\n $peserta->getProfile($r->peserta, 'D', 's');\n $email = $peserta->getEmail();\n // if ($peserta->getnra() != '') {\n // continue;\n // }\n if ($peserta->getWewenang() != 's') {\n continue;\n }\n\n if ($peserta->getAngkatan() != $angkatan) {\n continue;\n }\n //if ($peserta->getWilayah() != $_POST['wilayah']) {\n // continue;\n //}\n // switch ($_POST['jeniskelamin']) {\n // case 'L':if ($peserta->getJenisKelamin() !== 'L');\n // continue;\n // break;\n // case 'P':if ($peserta->getJenisKelamin() !== 'P');\n // continue;\n // break;\n // case 'S':if ($peserta->getJenisKelamin() !== 'L' || $peserta->getJenisKelamin() !== 'P');\n // continue;\n // break;\n // }\n // $cekStatusSeleksi = $this->_db->Exec(\"select * from seleksi where peserta = '$email' and tahap = $_POST[tahap] and idpenilaian <> null\");\n // if (!empty($cekStatusSeleksi)) {\n // continue;\n // }\n // $query = $this->_db->Exec(\"select max(nra) as maxnra from anggota where nra like 'C-$angkatan-%' \");\n // $lastid = !is_null($query) ? $query[0]->maxnra : false;\n // logs('peserta:' . $email . ' lastid:' . $lastid);\n // if (!$lastid) {\n // $idxnra = 1;\n // } else {\n // $idxnra = explode('-', $lastid)[2];\n // $idxnra++;\n // }\n // $nra = 'C-' . $angkatan . '-' . $idxnra;\n $tahapanseleksi = $this->_db->Exec(\"select * from tahapanseleksi where angkatan = $angkatan and tahap = $_POST[tahap]\");\n\n $i++;\n // $this->_db->Exec(\"update anggota set nra = '$nra' where email = '$email'\");\n foreach ($tahapanseleksi as $ts) {\n $data = [\n 'tgl' => date('Y-m-d'),\n 'angkatan' => $angkatan,\n 'idpeserta' => $nra,\n 'jeniskelamin' => $peserta->getJenisKelamin(),\n 'wilayah' => $peserta->getWilayah(),\n 'tahap' => $ts->tahap,\n 'item' => $ts->item,\n 'idjuri' => $ts->juri,\n 'idpenilaian' => (int) $penilaian[0]->id,\n ];\n $this->_db->create($data);\n }\n }\n\n }", "title": "" }, { "docid": "4637bfcb1841489857356ac1cb3eee24", "score": "0.6181275", "text": "public function naselje($postanskiBroj);", "title": "" }, { "docid": "680571b8e888464b3a33f93498545e8a", "score": "0.6173629", "text": "function controlloPunti()\n {\n $stats = $GLOBALS['PARAMETERS']['names']['stats'];\n array_pop($stats); \n \n //imposta il valore iniziale della somma dei punteggi delle statistiche\n $sum = 0;\n \n //CICLA L'ELENCO DELLE STATISTICE\n foreach($stats as $k => $v) {\n \n //esegue la somma dei valori delle statistiche\n $sum = $sum + $_REQUEST[$k];\n \n }\n \n //SE LA SOMMA DEI PUNTI DELLE STATISTICHE È DIVERSA DA QUELLA DEFINITA NELLE IMPOSTAIZONI DI GIOCO\n if ($sum != $GLOBALS['PARAMETERS']['settings']['cars_sum']){\n \n //restituisce esito negativo del controllo\n $data['ok'] = false; \n //restituisce i dati dell'errore\n $data['errors'][] = array(\n 'code' => 131,\n 'testo' => $GLOBALS['MESSAGE']['register']['fields']['stats_info'] . ' ' \n . $GLOBALS['PARAMETERS']['settings']['cars_sum']\n );\n\n //SE LA SOMMA È CORRETTA\n } else {\n \n //imposta i dati degli errori a false\n $data = false;\n \n }\n\n //restituisce i dati\n return $data;\n \n }", "title": "" }, { "docid": "1ba2118dc56b210d3679f9fdef967788", "score": "0.615924", "text": "public static function haeOmistajanTunnuksella($omistajatunnus) {\n $kysely = DB::connection()->prepare('SELECT * FROM Koira a, Omistajasuhde b WHERE a.rekisterinumero=b.koiratunnus AND omistajatunnus=:omistajatunnus');\n $kysely->execute(array('omistajatunnus' => $omistajatunnus));\n $rivit = $kysely->fetchAll();\n \n $koirat = array();\n\n foreach ($rivit as $rivi) {\n\n $pvm1 = date('d-m-Y', strtotime($rivi['syntymapv']));\n $pvm2 = date('d-m-Y', strtotime($rivi['rekisterointipv']));\n\n\n $koirat[] = new Koira(array(\n 'rekisterinumero' => $rivi['rekisterinumero'],\n 'nimi' => $rivi['nimi'],\n 'syntymapv' => $pvm1,\n 'kuolinpv' => $rivi['kuolinpv'],\n 'kuolinsyy' => $rivi['kuolinsyy'],\n 'sukupuoli' => $rivi['sukupuoli'],\n 'rekisterointipv' => $pvm2,\n 'eronnut' => $rivi['eronnut'],\n 'rotu' => $rivi['rotutunnus'],\n 'kasvattaja' => $rivi['kasvattajatunnus'],\n 'tila' => $rivi['tila']\n ));\n }\n\n return $koirat;\n }", "title": "" }, { "docid": "663943531de0941f278b08a14773bfcf", "score": "0.614971", "text": "public function luzSueloPasilloEncender( ) {\n $this->suelo_pasillo_on = 1;\n $this->ActualizarNivelesSuelo();\n$this->enviarIntensidadSueloPasillo();\n $this->enviarEstadoSueloPasillo();\n// $this->dibujarPantalla();\n }", "title": "" }, { "docid": "e41fb47dd04f79c11c00fd2ac07a9824", "score": "0.6144345", "text": "public function luzSalaApagar( $luz ) {\n $this->sala_on = 0;\n $this->dibujarPantalla();\n //$this->activarPantalla();\n }", "title": "" }, { "docid": "199e63526fa2298e6c09cbd14d863c58", "score": "0.6143297", "text": "private function Popust(){\n \n if ($this->ukupno < 10 ) {\n\n echo \"<h3>Dodajte jos u korpi za popust!</h3>\";\n\n }elseif($this->ukupno < 20){\n\n echo \"<b>Ostvarili ste 10% popusta</b>\";\n \n $this->cena -= (( 10 / 100) * $this->cena); \n\n }elseif($this->ukupno < 40){\n\n echo \"<b>Ostvarili ste 20% popusta</b>\";\n \n $this->cena -= (( 20 / 100) * $this->cena); \n\n } elseif($this->ukupno < 70){\n\n echo \"<b>Ostvarili ste 30% popusta</b>\";\n \n $this->cena -= (( 30 / 100) * $this->cena); \n\n }elseif($this->ukupno < 100){\n\n echo \"<b>Ostvarili ste 40% popusta</b>\";\n \n $this->cena -= (( 40 / 100) * $this->cena); \n\n }elseif($this->ukupno > 100){\n\n echo \"<b>Ostvarili ste 50% popusta</b>\";\n \n $this->cena -= (( 50 / 100) * $this->cena); \n }\n }", "title": "" }, { "docid": "708d5c5fb04289f6f03071dc42990565", "score": "0.6134388", "text": "function wyswietlSondeWkoalicji(){\r\n\tglobal $login;\r\n\tglobal $polaczenie;\r\n\tglobal $kingdomInfo;\r\n\t$SQL =\"select id from ankiety where koalicja='\".$kingdomInfo['koalicja'].\"'\r\n and tryb='koalicja'\";\r\n\t$wynik= mysql_query($SQL)or Die(\"sondy koalicje wyswietl\");\r\n\tif(mysql_num_rows($wynik)==1){\r\n\t\t$tmp = mysql_fetch_array($wynik);\r\n\t\t$ankieta->czyJest=true;\r\n\t\t$ankieta->ankieta = wyswietlSondeLubWynik($tmp['id']);\r\n\t\treturn $ankieta;\r\n\t}else{\r\n\t\t$ankieta->czyJest=false;\r\n\t\treturn $ankieta;\r\n\t}\r\n}", "title": "" }, { "docid": "ff53d5b22532e7618c1589adf69c2002", "score": "0.6134379", "text": "function hapusPenjualan($nodefak,$jumlah,$IdBuku)\n\t{\n\t\t$query = \"DELETE FROM detail_jual WHERE id_jual_detail = '$nodefak'\";\n\t\tmysql_query($query);\n\t\t\n\t\t$query = \"select JumlahEx FROM data_buku WHERE IdBuku = '$IdBuku'\";\n\t\t$datastok = mysql_query($query);\n\t\t$stok = mysql_fetch_array($datastok);\n\t\t\n\t\t\n\t\t$updatestok = $jumlah+$stok['JumlahEx'];\n\t\t\n\t\t$query2 = \"update data_buku set JumlahEx ='$updatestok' where IdBuku='$IdBuku'\";\n\t\t$hasil2 = mysql_query($query2);\n\t\t\n\t}", "title": "" }, { "docid": "029deb43658bd2b726145be9a2a048e5", "score": "0.61333346", "text": "function tabelkecil($P7Complete){\n\t\tinclude \"koneksi.php\"; \n\t\t\n\t\t$date_curr = date('Y/m/d 00:00:00');\n\t\t//deklarasi dinamic parameter untuk ruangan yg lain\n\t\t$ruang = substr($P7Complete,0,1);\n\t\n\t\t$queryp1 = \"SELECT COUNT(*) as Hasil FROM QP7ANTRIAN\".$ruang;\n\t\t$sqlp1 = sqlsrv_query($conn1,$queryp1);\n\t \t$isip1 = sqlsrv_fetch_array($sqlp1);\n\t\t\n\t\t$queryp2 = \"SELECT * FROM QP7ANTRIAN WHERE tgl_antrian = CONVERT(DATETIME,'\".$date_curr.\"', 102) AND nomor_antrian = '\".$P7Complete.\"' AND jam_pasien_panggil is null\";\n\t\t$sqlp2 = sqlsrv_query($conn2,$queryp2);\n\t \t$isip2 = sqlsrv_fetch_array($sqlp2);\n\t\t\n\t\t$nomor = $isip1['Hasil'] + 1;\n\t\t$idnomor = $isip2['id'];\n\t\t\n\t\t$sql3 = \"insert into QP7ANTRIAN\".$ruang.\" values('\".$nomor.\"','\".$idnomor.\"','\".$P7Complete.\"')\";\n\t\t$sql_execute3 = sqlsrv_query($conn3,$sql3);\t\n\t}", "title": "" }, { "docid": "b7b1f1517d1c53591c9d8f63d359b82b", "score": "0.61308223", "text": "function minutasalon($idsalon, $iduser, $tipominuta){\n //Recibe el codigo de salon y devuelve un array compuesto\n //donde un array es los datos de la minuta\n //y en un array dentro de esa linea los detalles de la minuta \n \n if($tipominuta==\"salon\"){\n $tablamaestra = \"MINUTASALON\";\n $tabladetalle = \"minutasalondetalle\"; \n $tablaleidos = \"minutadetallesalon_leidos\";\n $campobusqueda= \"codigosalon\";\n $tablaactulizarusuario = \"MINUTASALON_LEIDOS\";\n }\n elseif ($tipominuta==\"region\"){\n $tablamaestra = \"MINUTAREGION\";\n $tabladetalle = \"MINUTAREGIONDETALLE\"; \n $tablaleidos = \"MINUTADETALLEREGION_LEIDOS\";\n $campobusqueda= \"codigoregion\";\n $tablaactulizarusuario = \"MINUTAREGION_LEIDOS\";\n }\n elseif ($tipominuta==\"comite\"){\n $tablamaestra = \"MINUTACOMITE\";\n $tabladetalle = \"MINUTACOMITEDETALLE\"; \n $tablaleidos = \"MINUTADETALLECOMITE_LEIDOS\";\n $campobusqueda= \"\";\n $tablaactulizarusuario = \"MINUTACOMITE_LEIDOS\";\n }\n require_once \"libcon.php\";\n \n $con = Conectarfb();\n\n $sql = \"Select * from (select CODIGO, \";\n if($campobusqueda!=\"\"){ \n $sql.=$campobusqueda.\",\";\n } \n $sql .= \"DESCRIPCION, USUARIOCREADO, FECHACREADO, HORACREADO, USUARIOCERRADO, \n FECHACERRADO, USUARIOVERIFICADO, FECHAVERIFICADO, ESTATUS, PRIORIDAD, IDNOLEIDOS, COALESCE(FECHAMAXIMA, FECHACREADO) AS FECHAMAXIMA, iif(FechaCreado + HORACREADO < (Select Max(FechaHora) from \".$tablaactulizarusuario.\" where usuario = '\".$iduser.\"'\";\n if($campobusqueda!=\"\"){ \n $sql.=\"and \". $campobusqueda.\" = '\".$idsalon.\"'\";\n } \n $sql.= \"), 0, 1) as NUEVOITEM from (SELECT * from (Select * from \".$tablamaestra.\" where \";\n if($campobusqueda!=\"\"){ \n $sql .= $campobusqueda.\" = '\".$idsalon.\"' and \";\n } \n $sql .= \" estatus in (0,1) AND PRIORIDAD = 3 )ms LEFT JOIN\n\n (Select msd.codigominuta as codigoagrupado, cast(coalesce(LIST(CODIGO, ','), '') as varchar(600)) AS IDNOLEIDOS\n from \".$tabladetalle.\" msd\n where (Select count(*)\n from \".$tablaleidos.\"\n where idminutadetalle = codigo and usuario= '$iduser') = 0\n group by msd.codigominuta) NOLEIDOS\n\n ON MS.CODIGO = NOLEIDOS.CODIGOAGRUPADO) resultado left join (Select msd.codigominuta as codigoagrupado, MAX(FECHAGENERADO) AS FECHAMAXIMA \n from \".$tabladetalle.\" msd group by msd.codigominuta) FECHAMAXIMA ON RESULTADO.CODIGO = FECHAMAXIMA.CODIGOAGRUPADO) \";\n \n\n $sql .= \"UNION ALL Select * from (select CODIGO, \";\n if($campobusqueda!=\"\"){ \n $sql.=$campobusqueda.\",\";\n } \n $sql .= \"DESCRIPCION, USUARIOCREADO, FECHACREADO, HORACREADO, USUARIOCERRADO, \n FECHACERRADO, USUARIOVERIFICADO, FECHAVERIFICADO, ESTATUS, PRIORIDAD, IDNOLEIDOS, COALESCE(FECHAMAXIMA, FECHACREADO) AS FECHAMAXIMA, iif(FechaCreado + HORACREADO < (Select Max(FechaHora) from \".$tablaactulizarusuario.\" where usuario = '\".$iduser.\"'\";\n if($campobusqueda!=\"\"){ \n $sql.=\"and \". $campobusqueda.\" = '\".$idsalon.\"'\";\n } \n $sql.= \"), 0, 1) as NUEVOITEM from (SELECT * from (Select * from \".$tablamaestra.\" where \";\n if($campobusqueda!=\"\"){ \n $sql .= $campobusqueda.\" = '\".$idsalon.\"' and \";\n } \n $sql .= \" estatus in (0,1) AND PRIORIDAD <> 3 )ms LEFT JOIN\n\n (Select msd.codigominuta as codigoagrupado, cast(coalesce(LIST(CODIGO, ','), '') as varchar(600)) AS IDNOLEIDOS\n from \".$tabladetalle.\" msd\n where (Select count(*)\n from \".$tablaleidos.\"\n where idminutadetalle = codigo and usuario= '$iduser') = 0\n group by msd.codigominuta) NOLEIDOS\n\n ON MS.CODIGO = NOLEIDOS.CODIGOAGRUPADO) resultado left join (Select msd.codigominuta as codigoagrupado, MAX(FECHAGENERADO) AS FECHAMAXIMA \n from \".$tabladetalle.\" msd group by msd.codigominuta) FECHAMAXIMA ON RESULTADO.CODIGO = FECHAMAXIMA.CODIGOAGRUPADO) \";\n\n\n $result = ibase_query($con, $sql);\n if (!$result){\n die('Error ' . ibase_errmsg());\n exit;\n }\n\n\n $dataminuta = array();\n $i = 0; \n while ($datosminuta = ibase_fetch_object($result)) { \n //Ubica los detalles de la minuta\n $sql = \"SELECT * FROM \".$tabladetalle.\" WHERE CODIGOMINUTA = \".$datosminuta->CODIGO;\n $result2 = ibase_query($con, $sql);\n if (!$result){\n die('Error ' . ibase_errmsg());\n exit;\n } \n $j=0;\n $minutadetalle = array();\n while ($datosdetalle = ibase_fetch_object($result2)){\n $minutadetalle[$j] = $datosdetalle;\n $j++;\n }\n $dataminuta[$i] = json_encode($datosminuta) . json_encode($minutadetalle);\n $i++;\n } //Recorre las minutas \n \n \n echo json_encode($dataminuta);\n\n //echo json_encode($sql);\n \n //Graba el ultimo acceso del usuario\n $sql = \"INSERT INTO \".$tablaactulizarusuario.\" (USUARIO, FECHAHORA\";\n if($campobusqueda!=\"\"){ \n $sql .= \",\".$campobusqueda;\n }\n $sql .= \" ) VALUES ('\".$iduser.\"', current_timestamp\";\n if($campobusqueda!=\"\"){ \n $sql .= \",'\".$idsalon.\"'\";\n }\n $sql .= \")\";\n $result3 = ibase_query($con, $sql);\n if (!$result3){\n die('Error al registrar ultima fecha de usuario ' . ibase_errmsg());\n exit;\n } \n ibase_free_result($result);\n ibase_close($con);\n \n}", "title": "" }, { "docid": "f5bf88c51fdfce6bbbfd6b20346eec13", "score": "0.6129668", "text": "function kiekVyru(){\n $sum =0; //\n for ($i=0; $i<count($this->darbuotojai); $i++) {\n if ($this->darbuotojai[$i]['ly'] == 'vyras') $sum += 1;\n }\n return $sum;\n }", "title": "" }, { "docid": "ab351545ae4a464e9e4933148859e96a", "score": "0.6128188", "text": "public function reklamaToArch() {\n $this->nomer_id = Nomer::orderBy('nomgaz', 'desc')->first()->id;\n $this->polosa = '9' . $this->polosa;\n $this->save();\n }", "title": "" }, { "docid": "2580bd168dee5014b1da61d8364f30c4", "score": "0.61273974", "text": "private function Cena($taksa = 0.10){\n\n $this->cena = (self::JABUKE * (int)$this->kolicinaJabuka) + (self::KRUSKE * (int)$this->kolicinaKrusaka) + (self::SLJIVE * (int)$this->kolicinaSljiva) + $this->postarina;\n\n echo \"<h2>Cena:</h2>\";\n\n echo \" Bez PDV-a: <b>\".number_format($this->cena, 2).\"</b> din. ili <b>\".number_format($this->cena/$this->kursEvra, 2).\"</b> eura<br>\";\n\n $this->taksa = $taksa;\n\n $this->cena = $this->cena * (1 + $this->taksa);\n\n echo \"<br>\";\n echo \"Postarina: <b>$this->postarina </b> din. ili<b> \". number_format($this->postarina / $this->kursEvra, 2). \"</b> eura\"; \n echo \"<br><br>\";\n echo \"Ukupno sa PDV-om i postarinom:<b> \".number_format($this->cena, 2).\"</b> din. ili <b>\".number_format($this->cena/$this->kursEvra, 2).\"</b> eura<br>\";\n }", "title": "" }, { "docid": "87319a7cb0567ea74d7f3ed3d94d5555", "score": "0.6124328", "text": "private function actualiza_lg_anuncio(){\n\n\t\tif($this->success == true){\n\n\t\t\t$cols = array('idiomas','ussr');\n\t\t\t$this->Builder->where('id',$this->anuncio);\n\t\t\tif($salida = $this->Builder->getOne('anuncios',$cols)){\n\t\t\t\t$this->buyer = $salida['ussr'];\n\t\t\t\t$new_lg = $salida['idiomas'].','.$this->idioma;\n\t\t\t\t$act = array('idiomas' => $new_lg);\n\t\t\t\t$this->Builder->where('id',$this->anuncio);\n\t\t\t\tif($this->Builder->update('anuncios',$act)){\n\t\t\t\t\t$this->success = true;\n\t\t\t\t}else{\n\t\t\t\t\t$this->success = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}else{\n\t\t\t//ha habido error en la funcion anterior\n\t\t\t//die(var_dump('error anterior a actualiza_lg_anuncio'));\n\t\t}\n\t}", "title": "" }, { "docid": "dda2b77760558434fe523dbc698f33d6", "score": "0.612312", "text": "public function generate_kelompok($id_jadwal){\n $dt_peserta = Peserta::where('id_kelompok',$id_jadwal)->get();\n $dt_p =[];\n // menyimpan id peserta ke dalam array\n foreach($dt_peserta as $key){\n $dt_p[] = $key->id;\n }\n // menghitung jumlah peserta\n $peserta = Peserta::where('id_kelompok',$id_jadwal)->count();\n $mod = 4; // default peserta dalam 1 kelompok\n $div = array();\n $batas = [];\n // jika jumlah peserta diatas 4\n if ($peserta > 6) {\n for ($i=1; $i <= $peserta ; $i++) { \n $div[] = $mod * $i;\n }\n foreach($div as $key => $val){\n if($peserta >= $val){\n $batas[] = $val; // untuk looping kelompok\n $jml_klp = $val / $mod; // // untuk looping kelompok\n $sisa = $peserta - $val; // sisa peserta\n \n } // end if\n } // end foreach\n } // end if\n else if($peserta <= 6){\n return 'minimal peserta 7 Orang';\n }\n // print_r($batas);\n $i = 1;\n $kelompok = []; // untuk menampung peserta per kelompok\n $kelompok_all = []; // menampung keseluruhan peserta\n // looping batats\n $o = 0;\n // looping sebanyak jumlah kelompok batas\n for($i=1; $i<= count($batas); $i++){\n // looping untuk mengisi anggota perkelompok\n for($x=0; $x<$batas[$o];$x++){\n // jika loop pertama maka langsung isi anggota\n if($i == 1){\n $kelompok[$i][] = $dt_p[$x];\n $kelompok_all [] = $dt_p[$x];\n }\n // jika loop selanjutnya menggunakan kondisi ini\n else{\n if($x>=$batas[$o-1] && $x<=$batas[$o]){\n $kelompok[$i][] = $dt_p[$x];\n $kelompok_all [] = $dt_p[$x];\n }\n } \n \n\n }\n $o++;\n }\n\n $id_tdk_ada_klp = array_diff($dt_p, $kelompok_all); // array 2D peserta tidak ada kelompok\n $pst_not_klp = []; // menampung array $id_tdk_ada_klp agar menjadi 1D\n foreach($id_tdk_ada_klp as $key => $val){\n $pst_not_klp [] = $val;\n }\n // return $sisa;\n // handle sisa peserta yang tidak dapat kelompok\n if($sisa != 0){\n if($sisa <= 2){\n // sisa peserta di bawah 3 maka push ke kelompok lain\n $no = 0;\n $klp_baru = [];\n for($i=1; $i <= $sisa; $i++){\n // $klp_baru[] = $pst_not_klp[$no];\n array_push($kelompok[$i], $pst_not_klp[$no]); // push ke kelompok 1\n $no++;\n }\n // array_push($kelompok[2], $pst_not_klp[1]); // push ke kelompok 2\n }\n else {\n // buat kelompok baru\n $no = 0;\n $klp_baru = [];\n for($i=1; $i <= $sisa; $i++){\n $klp_baru[] = $pst_not_klp[$no];\n $no++;\n }\n array_push($kelompok, $klp_baru);\n }\n // print_r($klp_baru);\n\n }\n\n // print_r($kelompok);\n\n return $kelompok;\n // return \"jumlah kelompok : $jml_klp sisa peserta : $sisa\";\n }", "title": "" }, { "docid": "0abe4dc69d8ebb1be4024252030e98e6", "score": "0.61154264", "text": "function perskskhusus($mhsw, $khs, $bipot, $ada, $pmbmhswid=1) {\r\n // Jumlah SKS yg diambil mhsw. \r\n // Hrs diparsing krn dicek apkh mhsw jg mengambil jdwl dgn hrg yg berbeda?\r\n $TabelKRS = ($_REQUEST['DariKRS'] == 0)? \"krs\" : \"krstemp\"; // Apakah diakses dari modul KRS?\r\n $s = \"select k.TahunID, k.MhswID,\r\n j.JadwalID, j.SKSAsli, j.HargaStandar, j.Harga, j.JenisJadwalID\r\n from $TabelKRS k\r\n left outer join jadwal j on k.JadwalID=j.JadwalID\r\n where k.MhswID='$mhsw[MhswID]' and k.TahunID='$khs[TahunID]'\r\n and j.JenisJadwalID='R' \";\r\n $r = _query($s);\r\n $totharga = 0; $totsks = 0; $mk = ''; $jml = 0;\r\n while ($w = _fetch_array($r)) {\r\n $jml++;\r\n //echo \"$w[MKKode]: $w[Nama] ($w[SKS] SKS), Harga Standar? $w[HargaStandar]:$w[Harga]<br />\";\r\n $totsks += $w['SKS'];\r\n $totharga += $w['Harga'];\r\n $mk .= \"$w[MKKode] - $w[Nama]: $w[SKSAsli] SKS dgn Harga: $w[Harga] \\r\\n\";\r\n }\r\n if (empty($ada) && ($totharga > 0)) {\r\n $s0 = \"insert into bipotmhsw(MhswID, TahunID, BIPOT2ID, BIPOTNamaID,\r\n PMBMhswID, TrxID, Jumlah, Besar, Catatan,\r\n LoginBuat, TanggalBuat)\r\n values('$mhsw[MhswID]', '$khs[TahunID]', '$bipot[BIPOT2ID]', '$bipot[BIPOTNamaID]',\r\n '$pmbmhswid', '$bipot[TrxID]', $totsks, '$bipot[Jumlah]', '$mk',\r\n '$_SESSION[_Login]', now())\";\r\n $r0 = _query($s0);\r\n }\r\n else {\r\n $s0 = \"update bipotmhsw set Jumlah='$totsks', Besar='$bipot[Jumlah]',\r\n PMBMhswID='$pmbmhswid',\r\n Catatan='$mk',\r\n LoginEdit='$_SESSION[_Login]', TanggalEdit=now()\r\n where BIPOTMhswID='$ada[BIPOTMhswID]' \";\r\n $r0 = _query($s0);\r\n }\r\n}", "title": "" }, { "docid": "f58c42bb550a8771d0a5a78c3bd7b929", "score": "0.6112094", "text": "function evt__formulario__baja($datos)\n\t{\n $datos['eliminada']=TRUE;\n $datos['id_sede']=$this->s__id_sede;\n $datos['id_aula']=$this->s__id_aula;\n \n $this->dep('datos')->tabla('aula')->set($datos);\n $this->dep('datos')->tabla('aula')->sincronizar();\n\t\t$this->dep('datos')->tabla('aula')->resetear();\n \n if(isset($this->s__datos_filtro)){\n $this->s__datos_filtro=NULL;\n }\n \n $this->s__contador += 1;\n\t}", "title": "" }, { "docid": "dcae4b550de5bfd4d35db3a361c955a6", "score": "0.6096194", "text": "function insertVariabelPohonKeputusan($variabel, $nilai_variabel)\n{\n // ambil nilai inf gain tertinggi dimana hanya 1 variabel saja yg dipilih\n $sqlInfGainMaxTemp = mysql_query(\"SELECT distinct variabel, inf_gain FROM perhitungan_c45 WHERE inf_gain in (SELECT max(inf_gain) FROM `perhitungan_c45`) LIMIT 1\");\n $rowInfGainMaxTemp = mysql_fetch_array($sqlInfGainMaxTemp);\n // hanya ambil variabel dimana jumlah kasus kelancarannya tidak kosong\n if ($rowInfGainMaxTemp['inf_gain'] > 0) {\n // ambil nilai variabel yang memiliki nilai inf gain max\n $sqlInfGainMax = mysql_query(\"SELECT * FROM perhitungan_c45 WHERE variabel = '$rowInfGainMaxTemp[variabel]'\");\n while($rowInfGainMax = mysql_fetch_array($sqlInfGainMax)) {\n if ($rowInfGainMax['jml_kasus_ya'] == 0 AND $rowInfGainMax['jml_kasus_tidak'] == 0) {\n $kelayakan = 'Null'; // jika jml_kasus_ya = 0 dan jml_kasus_tidak = 0, maka kelayakan Null\n } else if ($rowInfGainMax['jml_kasus_ya'] !== 0 AND $rowInfGainMax['jml_kasus_tidak'] == 0) {\n $kelayakan = 'Ya'; // jika jml_kasus_ya != 0 dan jml_kasus_tidak = 0, maka kelayakan Ya\n } else if ($rowInfGainMax['jml_kasus_ya'] == 0 AND $rowInfGainMax['jml_kasus_tidak'] !== 0) {\n $kelayakan= 'Tidak'; // jika jml_kasus_ya = 0 dan jml_kasus_tidak != 0, maka kelayakan Tidak\n } else {\n $kelayakan = '?'; // jika jml_kasus_ya != 0 dan jml_kasus_tidak != 0, maka kelayakan ?\n }\n \n if (empty($variabel) AND empty($nilai_variabel)) {\n//#18# Jika variabel yang diinput kosong (variabel awal) maka insert ke pohon kelayakan id_parent = 0\n // set kondisi variabel = AND variabel = nilai variabel\n $kondisiVariabel = \"AND $rowInfGainMax[variabel] = ~$rowInfGainMax[nilai_variabel]~\";\n // insert ke tabel pohon kelayakan\n mysql_query(\"INSERT INTO pohon_keputusan VALUES ('', '$rowInfGainMax[variabel]', '$rowInfGainMax[nilai_variabel]', 0, '$rowInfGainMax[jml_kasus_tidak]', '$rowInfGainMax[jml_kasus_ya]', '$kelayakan', 'Belum', '$kondisiVariabel', 'Belum')\");\n }\n\n//#19# Jika variabel yang diinput tidak kosong maka insert ke pohon keputusan dimana id_parent diambil dari tabel pohon keputusan sebelumnya (where variabel = variabel yang diinput)\n else if (!empty($variabel) AND !empty($nilai_variabel)) {\n $sqlIdParent = mysql_query(\"SELECT id, variabel, nilai_variabel, jml_kasus_ya, jml_kasus_tidak FROM pohon_keputusan WHERE variabel = '$variabel' AND nilai_variabel = '$nilai_variabel' order by id DESC LIMIT 1\");\n $rowIdParent = mysql_fetch_array($sqlIdParent);\n // insert ke tabel pohon keputusan\n mysql_query(\"INSERT INTO pohon_keputusan VALUES ('', '$rowInfGainMax[variabel]', '$rowInfGainMax[nilai_variabel]', $rowIdParent[id], '$rowInfGainMax[jml_kasus_tidak]', '$rowInfGainMax[jml_kasus_ya]', '$kelayakan', 'Belum', '', 'Belum')\");\n \n //#PRE PRUNING#\n // hitung Pessimistic error rate parent dan child \n $perhitunganParentPrePruning = loopingPerhitunganPrePruning($rowIdParent['jml_kasus_ya'], $rowIdParent['jml_kasus_tidak']);\n $perhitunganChildPrePruning = loopingPerhitunganPrePruning($rowInfGainMax['jml_kasus_ya'], $rowInfGainMax['jml_kasus_tidak']);\n \n // hitung average Pessimistic error rate child \n $perhitunganPessimisticChild = (($rowInfGainMax['jml_kasus_ya'] + $rowInfGainMax['jml_kasus_tidak']) / ($rowIdParent['jml_kasus_ya'] + $rowIdParent['jml_kasus_tidak'])) * $perhitunganChildPrePruning;\n // Increment average Pessimistic error rate child\n $perhitunganPessimisticChildIncrement += $perhitunganPessimisticChild;\n $perhitunganPessimisticChildIncrement = round($perhitunganPessimisticChildIncrement, 4);\n \n // jika error rate pada child lebih besar dari error rate parent\n if ($perhitunganPessimisticChildIncrement >= $perhitunganParentPrePruning) {\n // hapus child (child tidak diinginkan)\n mysql_query(\"DELETE FROM pohon_keputusan WHERE id_parent = $rowIdParent[id]\");\n \n // jika jml kasus Ya lbh besar, maka keputusan == Ya\n if ($rowIdParent['jml_kasus_ya'] > $rowIdParent['jml_kasus_tidak']) {\n $kelayakanPrePruning = 'Ya';\n // jika jml tdk kasus Ya lbh besar, maka keputusan == Tidak\n } else if ($rowIdParent['jml_kasus_ya'] < $rowIdParent['jml_kasus_tidak']) {\n $kelayakanPrePruning = 'Tidak';\n } \n // update keputusan parent\n mysql_query(\"UPDATE pohon_keputusan SET kelayakan = '$kelayakanPrePruning' where id = $rowIdParent[id]\");\n }\n \n }\n }\n }\n loopingKondisiVariabel();\n}", "title": "" }, { "docid": "7dff939d12a4108c08b5e1146990aed2", "score": "0.608825", "text": "function Pmasukan_kiba()\n\t{\n\t\t$data['arsip']=$this->pb->get_masukan_kiba();\n\t\t//$data['skpd']=$this->pb->get_list_skpd();\n\t\t$data['aset']=$this->pb->get_list_aseta();\n\t\t//$data['all_tahun']=$this->pb->get_list_tahun_kiba();\n\n\t\t$this->load->view('pengurus_barang/header');\n\t\t$this->load->view('pengurus_barang/datamasukan/P_masukan_kib_a',$data);\n\t\t$this->load->view('pengurus_barang/footer');\n\t}", "title": "" }, { "docid": "8eb632dc880d6906dcb9a9bb9bee7dc8", "score": "0.6082583", "text": "public static function cari_seluruh_keyword(){\n //Filter dengan unique word terlebih dahulu\n $dok = Processing::$datas[0];\n// print_r($dok);\n// $katas = Processing::unique_word_array($dok->words);\n $katas = array_unique($dok->words);\n// print_r($katas);\n $hasil = $katas;\n// print_r($hasil);\n //Gabung satu persatu\n for($i=1;$i<count(Processing::$datas);$i++){\n $dok = Processing::$datas[$i];\n// $katas = Processing::unique_word_array($dok->words);\n $katas = array_unique($dok->words);\n// print_r($katas); \n $hasil = Processing::gabung($hasil, $katas);\n// print_r($hasil);\n //Filter kembali\n $hasil = array_unique($hasil);\n// print_r($hasil);\n }\n return $hasil;\n }", "title": "" }, { "docid": "e81359ae9f4f37195ea8fdb1f8b92bc2", "score": "0.607838", "text": "public function luzSueloEncender( ) {\n $this->suelo_on = 1;\n $this->suelo_pasillo_on = 1;\n $this->suelo_alumnos_on = 1;\n $this->ActualizarNivelesSuelo();\n $this->dibujarSuelo();\n //$this->dibujarPantalla();\n }", "title": "" }, { "docid": "6748075a616ec74dc6221b62197c630e", "score": "0.60759264", "text": "public function dibujarPantalla( ) {\n $this->activarPantalla();\n $this->actualizarNivelesSala();\n $this->dibujarSuelo();\n $this->dibujarTecho();\n// $this->estadoPantalla();\n }", "title": "" }, { "docid": "011a938f7c45200b0da8d7d7183ede02", "score": "0.6075901", "text": "function proses_status_sidang($kelayakan_sidang, $nim, $id_pengajuan, $id, $seminar)\n {\n $nilai_uji_program = $this->Semhas_model->get_nilai_uji_programming($nim)->result();\n \n foreach($nilai_uji_program as $nup)\n {\n $uji_program = $nup->total;\n }\n \n \n //GET NILAI SEMHAS\n $nilai_semhas = $this->Semhas_model->get_nilai_semhas($nim, $id_pengajuan)->result();\n $semhas = 0;\n \n foreach($nilai_semhas as $ns)\n {\n $semhas += $ns->total;\n }\n \n //GET NILAI SIDANG\n $nilai_sidang = $this->Semhas_model->get_nilai_sidang($nim, $id_pengajuan, $id)->result();\n $total_penguji = $this->Semhas_model->get_nilai_sidang($nim, $id_pengajuan, $id)->num_rows();\n \n $sidang = 0;\n foreach($nilai_sidang as $nsi)\n {\n $sidang += $nsi->total;\n }\n \n $nilai = $sidang / $total_penguji;\n \n \n $total_semhas_dibagi = $semhas / 4;\n $total_sidang_dibagi = $sidang / 4;\n \n $total = (($total_semhas_dibagi * 4) + ($total_sidang_dibagi * 4) + ($uji_program * 2)) / 10;\n \n var_dump($total);\n //UPDATE DATA TABEL nilai (kumpulan nilai mahasiswa dari uji program hingga sidang)\n// $total = (($semhas * 4) + ($sidang * 4) + ($uji_program * 2))/10;\n\t\t\t\n $sum = $total;\n if($sum >= 81)\n {\n $grade = 'A';\n }\n else if ($sum >= 74 && $sum <= 80)\n {\n $grade = 'B+';\n }\n else if ($sum >= 66 && $sum <= 73)\n {\n $grade = 'B';\n }\n else if ($sum >= 59 && $sum <= 65)\n {\n $grade = 'C+';\n }\n else if ($sum >= 51 && $sum <= 58)\n {\n $grade = 'C';\n }\n else if ($sum >= 41 && $sum <= 50)\n {\n $grade = 'D';\n }\n else{\n $grade = 'E';\n }\n\n\t\t\t$data = array(\n\t\t\t\t'nilai_sidang' => $nilai,\n\t\t\t\t'total' => $total,\n\t\t\t\t'grade' => $grade\n\t\t\t\t);\n\n\t\t\t$update = $this->db->where('nim',$nim)->update('nilai',$data);\n\t\t\t$cek = $this->Upload_model->cek_penilaian($nim,$seminar)->num_rows();\n\n\t\t\tvar_dump($cek);\n\t\t\t$penilaian = array(\n\t\t\t\t'kategori' => $seminar,\n\t\t\t\t'nim' => $nim,\n\t\t\t\t'pembimbing1' => $pembimbing1,\n\t\t\t\t'pembimbing2' => $pembimbing2,\n\t\t\t\t'pembanding1' => $pembanding1,\n\t\t\t\t'pembanding2' => $pembanding2\n\t\t\t\t);\n\n\t\t\tif($cek == 0)\n\t\t\t{\n\t\t\t\t$insert = $this->Upload_model->save_nilai_mhs($nim,$penilaian);\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\t$update = $this->Upload_model->update_nilai_mhs($nim,$seminar,$penilaian);\n\t\t\t}\n\n\n\t\t\tif($kelayakan_sidang == 'layak')\n\t\t\t{\n \n $seminar_p = $this->Sempro_model->get_seminar($id)->result();\n \n foreach($seminar_p as $smnr)\n {\n $jenis_smnr = $smnr->seminar;\n $jadwal_tgl = $smnr->jadwal;\n }\n \n $orderdate = explode('-', $jadwal_tgl);\n$tahun = $orderdate[0];\n$month = $orderdate[1];\n$tanggals = $orderdate[2];\n $upd_tahun = array(\n 'Tgl_lulus' => $tahun,\n 'Bulan_lulus' => $month\n );\n \n $upd_tahuns = array(\n 'tahun_lulus' => $tahun,\n 'bulan_lulus' => $month\n );\n \n \n $updt = $this->db->where('nim', $nim)->update('skripsi', $upd_tahun);\n \n $upd = $this->db->where('nim', $nim)->update('skripsi_nim', $upd_tahuns);\n \n\t\t\t\t$datum = array(\n\t\t\t\t\t'status' => 'sudah sidang'\n\t\t\t\t\t);\n\n\t\t\t\t$query = \"SELECT jadwal_seminar.jadwal FROM jadwal_seminar, mahasiswa_sidang WHERE mahasiswa_sidang.id_jadwal_seminar = jadwal_seminar.id AND mahasiswa_sidang.nim = '$nim' AND mahasiswa_sidang.id_jadwal_seminar = '$id'\";\n\n\t\t\t\t$tgl = $this->db->query($query)->result();\n\t\t\t\tforeach($tgl as $t)\n\t\t\t\t{\n\t\t\t\t\t$tgl_sidang = $t->jadwal;\n\t\t\t\t}\n\n\t\t\t\t$tanggal = array(\n\t\t\t\t\t'tanggal_sidang' => $tgl_sidang\n\t\t\t\t\t);\n\n\t\t\t\t$input_tgl = $this->db->where('nim',$nim)->update('skripsi_nim',$tanggal);\n\t\t\t\t$update_mahasiswa = $this->db->where('nim',$nim)->update('mahasiswa',$datum);\n\t\t\t\t$update_skripsi = $this->db->where('nim',$nim)->update('skripsi',$datum);\n\n\t\t\t\t//tambah data di tabel validasi_penggandaan\n\t\t\t\t//cek sudah ada dibuat atau belum , untuk menghindari update berkali kali, sehingga data ditabel tidak ditambah terus\n\t\t\t\t$check_available = $this->Semhas_model->available_penggandaan($nim)->num_rows();\n\n\t\t\t\tif($check_available == 0)\n\t\t\t\t{\n\n\t\t\t\t\t$juduls = $this->Semhas_model->get_validasi($nim)->result();\n\n\t\t\t\tforeach($juduls as $j)\n\t\t\t\t{\n\t\t\t\t\t$id_pengajuan = $j->id_pengajuan;\n\t\t\t\t\t$judul = $j->judul;\n\t\t\t\t}\n\n\t\t\t\t\t$saved_data = array(\n\t\t\t\t\t\t'id' => '',\n\t\t\t\t\t\t'id_pengajuan_judul' => $id_pengajuan,\n\t\t\t\t\t\t'nim' => $nim,\n\t\t\t\t\t\t'cd_kode_jurnal' => 'belum dikonfirmasi',\n\t\t\t\t\t\t'form_persetujuan' => 'belum dikonfirmasi',\n\t\t\t\t\t\t'fotokopi_bebas' => 'belum dikonfirmasi'\n\n\t\t\t\t\t\t);\n\n\t\t\t\t\t$this->Semhas_model->save_validasi_penggandaan($saved_data);\n\t\t\t\t}\n \n //UPDATE status_kelayakan_sidang di pengajuan_judul \n $pengajuan = array(\n 'status_kelayakan_sidang' => 'layak'\n );\n \n $this->db->where('id_pengajuan', $id_pengajuan)->update('pengajuan_judul', $pengajuan);\n \n $arrays = array(\n 'upload_sidang' => '0'\n );\n \n $this->db->where('nim',$nim)->update('mahasiswa',$arrays);\n \n //UPDATE status_kelayakan di TABEL mahasiswa_sidang\n $status_seminar = array(\n 'status_kelayakan' => 'layak'\n );\n \n $this->db->where('id_jadwal_seminar', $id)->where('nim', $nim)->where('id_pengajuan', $id_pengajuan)->update('mahasiswa_sidang', $status_seminar);\n \n \n\t\t\t}\n else\n {\n// $arrays = array(\n// 'upload_sidang' => '1'\n// );\n// \n// $this->db->where('nim',$nim)->update('mahasiswa',$arrays);\n \n //UPDATE status_kelayakan_sidang di pengajuan_judul \n $pengajuan = array(\n 'status_kelayakan_sidang' => 'tidak layak'\n );\n \n $this->db->where('id_pengajuan', $id_pengajuan)->update('pengajuan_judul', $pengajuan);\n \n //UPDATE status_kelayakan di TABEL mahasiswa_sidang\n $status_seminar = array(\n 'status_kelayakan' => 'tidak layak'\n );\n \n $this->db->where('id_jadwal_seminar', $id)->where('nim', $nim)->where('id_pengajuan', $id_pengajuan)->update('mahasiswa_sidang', $status_seminar);\n \n //UPDATE izin_seminar\n $izin_seminarss = array(\n 'pembimbing1' => '0000-00-00',\n 'pembimbing2' => '0000-00-00',\n 'penguji1' => '0000-00-00',\n 'penguji2' => '0000-00-00',\n 'rencana_tgl_seminar' => '0000-00-00'\n );\n \n $this->db->where('jenis_seminar', 'sidang')->where('nim', $nim)->where('id_pengajuan', $id_pengajuan)->update('izin_seminar', $izin_seminarss);\n \n //PINDAHKAN DATA CATATAN DARI TABEL catatan_perbaikan_sidang ke catatan_perbaikan_semhas\n \n $pindahan = $this->Skripsi_model->get_catatan_sidang_pindah($nim, $id_pengajuan, $id)->result();\n \n if($pindahan != null)\n {\n foreach($pindahan as $p)\n {\n $data_pindahan = array(\n 'dosen' => $p->dosen,\n 'status_dosen' => $p->status_dosen,\n 'nim' => $p->nim,\n 'id_pengajuan' => $p->id_pengajuan,\n 'id_jadwal_seminar' => $p->id_jadwal_seminar,\n 'catatan_perbaikan' => $p->catatan_perbaikan,\n 'status_perbaikan' => $p->status_perbaikan,\n 'keterangan_catatan' => $p->keterangan_catatan,\n 'kunci' => $p->kunci,\n 'untuk_seminar' => 'sidang'\n );\n \n $cek_dulu = $this->db->where('dosen', $p->dosen)->where('status_dosen', $p->status_dosen)->where('nim', $p->nim)->where('id_pengajuan', $p->id_pengajuan)->where('id_jadwal_seminar', $p->id_jadwal_seminar)->where('catatan_perbaikan', $p->catatan_perbaikan)->get('catatan_perbaikan_semhas')->row();\n \n if(count($cek_dulu))\n {\n $this->Skripsi_model->simpan_catatan_sidang_baru($data_pindahan);\n \n $this->db->where('nim', $nim)->where('id_pengajuan', $id_pengajuan)->where('id_jadwal_seminar', $id)->delete('catatan_perbaikan_sidang');\n \n }\n }\n }\n }\n \n redirect('Tugas/list_mahasiswa_seminar/'. $id.'/sukses_memverifikasi_mahasiswa');\n }", "title": "" }, { "docid": "147f99d8a74e5e3968afcf86daeb9ad2", "score": "0.6073439", "text": "public function daftar_rombel()\n\t{\n\t\t$row = $this->m_data->count_pemberitahuan();\n\t\t$data['pemberitahuan'] = $this->m_data->pemberitahuan();\n\t\t$data['count_pemberitahuan'] = $row->jumlah;\n\t\t\n\t\t$tahun_ajaran = $this->session->userdata('tahun_ajaran');\n\t\t$tahun = substr($tahun_ajaran,0,9); //muncul tahun_ajaran saja\n\n\t\t$semester = substr($tahun_ajaran, strrpos($tahun_ajaran, ' ' )+1); //semester\n\n\t\t$data['rombel'] = $this->m_data->tampil_rombel($tahun,$semester);\n\t\t$data['tahun_rombel'] = $this->m_data->tampil_tahun_rombel($tahun,$semester);\n\t\n\t\t$data['content'] = 'view_admin/rombongan_belajar/daftar_rombel';\n $this->load->view('templates/templates',$data); \n\t\t\n\t}", "title": "" }, { "docid": "bcb099abece128ca2af562b49e1c3c40", "score": "0.60697114", "text": "function ProvjeriPodatke() {\n $greska = \"\";\n foreach ($_POST as $kljuc => $vrijednost) { //petlja za svaki element forme\n if (empty($vrijednost)) { // ako je vrijednost elementa prazna\n $greska .= \" $kljuc vrijednost nije unesena.\" . '\\n';\n $GLOBALS['popisGresaka'] .= \"Element s greskom: \" . $kljuc . \"<br>\";\n } elseif ($kljuc == \"opisKategorije\") {\n if ($vrijednost{0} !== strtoupper($vrijednost{0}) || strlen($vrijednost) < 15) { // ako je prvo slovo malo ili ima manje od 5 znakova\n $greska .= \"Opis kategorije mora početi s velikim slovom i sadržavati minimalno 15 znakova\" . '\\n';\n $GLOBALS['popisGresaka'] .= \"Element s greskom: \" . $kljuc . \"<br>\";\n }\n }\n }\n if (!empty($greska)) {\n echo \"<script>alert('$greska');</script>\"; // ispisi sve greske (ako ih ima)\n }\n }", "title": "" }, { "docid": "e81e200f6606fcf4d3693bffcc467986", "score": "0.6069648", "text": "function tarikDataMengajar($conn,$r_periode){\n\t\t\t//data periode gaji\n\t\t\t$pg = self::getDataPeriodeGaji($conn,$r_periode);\n\t\t\t\n\t\t\t$sql = \"select a.*,p.idpegawai,sdm.f_diffmenit(a.waktumulai,a.waktuselesai) as jmljam,up.kodefakultas as fakultas\n\t\t\t\t\tfrom \".self::schema('akademik').\"ak_kuliah a\n\t\t\t\t\tleft join \".static::table('ms_pegawai').\" p on p.nik = a.nipdosen\n\t\t\t\t\tleft join \".static::table('ms_unit').\" u on u.kodeunit = a.kodeunit\n\t\t\t\t\tleft join \".static::table('ms_unit').\" up on up.idunit = u.parentunit\n\t\t\t\t\tleft join \".static::table('ga_historydatagaji').\" h on h.idpeg = p.idpegawai and h.gajiperiode = '$r_periode'\n\t\t\t\t\twhere a.tglkuliah between '\".$pg['tglawalhitung'].\"' and '\".$pg['tglakhirhitung'].\"'\";\n\t\t\t\n\t\t\t$rs = $conn->Execute($sql);\n\t\t\t\n\t\t\t$i=0;\n\t\t\twhile($row = $rs->FetchRow()){\n\t\t\t\t$i++;\n\t\t\t\t\n\t\t\t\t$record = array();\n\t\t\t\t$record['periodegaji'] = $r_periode;\n\t\t\t\t$record = $row;\n\t\t\t\t\n\t\t\t\t$isexist = $conn->GetOne(\"select 1 from \".static::table('ga_mengajarlog').\" where tglkuliah = '\".$record['tglkuliah'].\"',\n\t\t\t\t\t\t\tperkuliahanke = \".$record['perkuliahanke'].\",periode = '\".$record['periode'].\"',thnkurikulum = '\".$record['thnkurikulum'].\"',\n\t\t\t\t\t\t\tkodeunit = '\".$record['kodeunit'].\"',kodemk = '\".$record['kodemk'].\"',kelasmk = '\".$record['kelasmk'].\"'\");\n\t\t\t\tif(empty($isexist))\n\t\t\t\t\tlist($err,$msg) = self::insertRecord($conn,$record,true,'ga_mengajarlog');\n\t\t\t\telse{\n\t\t\t\t\t$key = $record['tglkuliah'].'|'.$record['perkuliahanke'].'|'.$record['periode'].'|'.$record['thnkurikulum'].'|'.$record['kodeunit'].'|'.$record['kodemk'].'|'.$record['kelasmk'];\n\t\t\t\t\t$colkey = 'tglkuliah,perkuliahanke,periode,thnkurikulum,kodeunit,kodemk,kelasmk';\n\t\t\t\t\tlist($err,$msg) = self::updateRecord($conn,$record,$key,true,'ga_mengajarlog',$colkey);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($i == 0){\n\t\t\t\t$err = 1;\n\t\t\t\t$msg = 'Tidak ada data mengajar dosen yang ditarik';\n\t\t\t}\n\t\t\t\n\t\t\treturn array($err,$msg);\n\t\t}", "title": "" }, { "docid": "b09ca3e117c2793ba1ebb56c8515c812", "score": "0.60640305", "text": "public function pretraziRadove() {\n\t\t$niz_autor = array();\n\t\t$niz_naslov = array();\n\t\t$niz_keyword = array();\n\t\t\n\t\tif (!empty($_POST[\"autor\"]))\n\t\t\t$niz_autor = explode(\",\", $_POST[\"autor\"]);\n\t\tif (!empty($_POST[\"naslov\"]))\n\t\t\t$niz_naslov = explode(\",\", $_POST[\"naslov\"]);\n\t\tif (!empty($_POST[\"keyword\"]))\n\t\t\t$niz_keyword = explode(\",\", $_POST[\"keyword\"]); \n \n\t\t$autor = new \\model\\DBAutor();\n\t\t$znanstveni_rad = new \\model\\DBZnanstveniRad();\n\t\t$kljucne_rijeci = new \\model\\DBKljucneRijeci(); \n $obiljezen = new \\model\\DBObiljezen(); \n $jeautor = new \\model\\DBJeAutor(); \n $skup = new \\model\\DBZnanstveniSkup();\n $casopis = new \\model\\DBZnanstveniCasopis();\n \n $radovi = array();\n \n // obradi unos autora\n // najveći je problem unos više autora gdje gledam presjek radova zadanih autora\n // moguć je višestruki unos istog autora\n $i = 0;\n foreach ($niz_autor as $tmp) { \n $rad_autor_tmp = $jeautor->select()->innerJoin(\"autor ON autor.idAutora = jeautor.idAutora\"\n )->innerJoin(\"znanstvenirad ON znanstvenirad.idRada = jeautor.idRada\")->where(array(\"autor.prezime\" => $tmp))->fetchAll();\n \n if ($i == 0) {\n foreach ($rad_autor_tmp as $value) \n array_push($radovi, $value->idRada); \n $i++;\n }\n else {\n $temp = array();\n foreach ($rad_autor_tmp as $value)\n array_push($temp, $value->idRada);\n \n $radovi = array_intersect($temp, $radovi); \n \n }\n } \n \n // u ovom čuvam sve parove rada i ključne riječi za koje su unesene ključne riječi\n $i = 0;\n foreach ($niz_keyword as $tmp) {\n $rad_keyword_tmp = $obiljezen->select()->innerJoin(\"kljucnerijeci ON kljucnerijeci.idTaga = obiljezen.idTaga\"\n )->innerJoin(\"znanstvenirad ON znanstvenirad.idRada = obiljezen.idRada\")->where(array(\"kljucnerijeci.tag\" => $tmp))->fetchAll();\n \n if (!count($niz_autor) && ($i == 0)) { // ako nije ništa upisao u prošlom polju i prvi je unos onda unesi radove u niz radovi\n foreach ($rad_keyword_tmp as $value) \n array_push($radovi, $value->idRada); \n $i++;\n }\n else {\n $temp = array();\n foreach ($rad_keyword_tmp as $value)\n array_push($temp, $value->idRada);\n \n $radovi = array_intersect($temp, $radovi); \n \n }\n } \n \n // u ovom čuvam sve znanstvene radove tih naslova\n $i = 0;\n foreach ($niz_naslov as $tmp) {\n $rad_znanstveni_tmp = $znanstveni_rad->select()->where(array(\n \"naslov\" => $tmp\n ))->fetchAll();\n \n if (!count($niz_autor) && !count($niz_keyword) && ($i == 0)) { // ako nije ništa upisao u prošla dva polja i prvi je unos onda unesi radove u niz radovi\n foreach ($rad_znanstveni_tmp as $value) \n array_push($radovi, $value->idRada); \n $i++;\n }\n else {\n $temp = array();\n foreach ($rad_znanstveni_tmp as $value)\n array_push($temp, $value->idRada);\n \n $radovi = array_intersect($temp, $radovi); \n \n }\n } \n \n /* zapiši podatke u niz\" */\n $radovi = array_unique($radovi, SORT_REGULAR);\n \n $data = array (\n \"id\" => array(), \n \"imeautor\" => array(),\n \"prezimeautor\" => array(),\n \"naslov\" => array(),\n \"sazetak\" => array(),\n \"kljucnerijeci\" => array(),\n \"skup\" => array(),\n \"casopis\" => array() \n ); \n \n // za svaki idrada nađi ponovo autore i ključne riječi\n foreach($radovi as $value)\n {\n $rad_keyword_tmp = $obiljezen->select()->innerJoin(\"kljucnerijeci ON kljucnerijeci.idTaga = obiljezen.idTaga\"\n )->where(array(\"obiljezen.idRada\" => $value))->fetchAll(); \n \n $rad_autor_tmp = $jeautor->select()->innerJoin(\"autor ON autor.idAutora = jeautor.idAutora\"\n )->where(array(\"jeautor.idRada\" => $value))->fetchAll();\n \n //print_r($rad_keyword_tmp); echo \"<br>\";\n //print_r($rad_autor_tmp); echo \"<br>\";\n \n /**************************/ // dodaj karakteristike znanstvenog rada\n $tmp = $znanstveni_rad->select()->where(array(\n \"idRada\" => $value\n ))->fetchAll(); \n \n /**************************/\n \n array_push($data[\"id\"], $value); // dodaj id\n \n /******************************/ // dodaj naslov i sažetak\n \n array_push($data[\"naslov\"], $tmp[0]->naslov); \n array_push($data[\"sazetak\"], $tmp[0]->sazetak); \n \n // dodaj naziv skupa\n $tmp1 = $skup->select()->where(array(\n \"idSkupa\" => $tmp[0]->idSkupa\n ))->fetchAll(); \n \n if (count($tmp1))\n array_push($data[\"skup\"], $tmp1[0]->naziv);\n else\n array_push($data[\"skup\"], '-');\n \n \n // dodaj naziv casopisa\n $tmp1 = $casopis->select()->where(array(\n \"idCasopisa\" => $tmp[0]->idCasopisa\n ))->fetchAll(); \n \n if (count($tmp1))\n array_push($data[\"casopis\"], $tmp1[0]->naziv);\n else\n array_push($data[\"casopis\"], '-'); \n \n \n \n /************************/\n $temp = array();\n foreach ($rad_autor_tmp as $value) // dodaj autore\n { \n $tmp = $autor->select()->where(array(\n \"idAutora\" => $value->idAutora\n ))->fetchAll();\n \n $temp = array_unique(array_merge($temp,$tmp), SORT_REGULAR); \n \n } \n \n $s = ''; \n if (count($temp))\n {\n \n foreach ($temp as $value)\n {\n $s .= $value->ime . ' ' .$value->prezime . ', '; \n } \n }\n else\n {\n $s = '-'; \n }\n \n if (strlen($s) > 1)\n $s = substr($s, 0, -2);\n array_push($data[\"imeautor\"], $s);\n \n \n /*********************************/\n $temp = array();\n foreach ($rad_keyword_tmp as $value) // dodaj ključne riječi\n { \n $tmp = $kljucne_rijeci->select()->where(array(\n \"idTaga\" => $value->idTaga\n ))->fetchAll();\n \n $temp = array_unique(array_merge($temp,$tmp), SORT_REGULAR); \n } \n \n $s = '';\n if(count($temp))\n {\n \n foreach ($temp as $value)\n {\n $s .= $value->tag . ', '; \n } \n }\n else \n $s = '-';\n \n if (strlen($s) > 1)\n $s = substr($s, 0, -2);\n array_push($data[\"kljucnerijeci\"], $s);\n \n \n /*********************************/ \n }\n \n \n\t\techo new \\view\\Main(array(\n \"body\" => new \\view\\RezultatiPretrazivanjaRadova(array(\n \"var\" => $data\n )),\n \"title\" => \"Rezultati pretraživanja radova\"\n ));\t\n\t\t\n }", "title": "" }, { "docid": "8a9424c17ec28899741d5b3c5f3bfb93", "score": "0.6062261", "text": "public function proses(){\n $this->initAwal();\n\n //menampilkan tabel total\n //$this->tampilTabelTotal();\n \n //memberikan data awal untuk matrix\n $this->initMatrix();\n $this->jum = 2*$this->orde;\n //menampilkan matrix gauss\n //$this->tampilMatrixAsli($this->matrix);\n\n //menjalankan rumus gauss serta menampilkannya\n $this->gauss();\n \n //pencarian nilai b dan Y topi\n $this->pencarianNilai();\n $this->jum = 12;\n //menampilkan grafik hasil\n $this->tampilGrafik();\n\n // echo \"<pre>\";\n // print_r($this->matrix);\n // echo \"</pre>\";\n\n }", "title": "" }, { "docid": "e31f709afb164d0b65417fcb0d40e064", "score": "0.605493", "text": "function giaohang()\n {\n $hoadonID = $this->uri->rsegment('3');\n \n //update hoa don\n $data = array('tinhtrang' => 2);\n $this->hoadon_model->update($hoadonID, $data);\n \n //update chitiet\n $where = array('hoadonid' => $hoadonID);\n $data = array('tinhtrang' => 3);\n $this->chitiethoadon_model->update_rule($where, $data);\n \n redirect(tieptan_url('danhsach'));\n }", "title": "" }, { "docid": "8faee566586596d3f78cf707df28d18c", "score": "0.60549104", "text": "function testo($testo){\r\n\r\n\t\t//HOW TO\r\n\t\t/* Per utilizzare questa funzione chiamarla cosi nel codice:\r\n\t\t * $this->testo(\"PAROLACHIAVE\")\r\n\t\t * e qui dentro definire per ogni lingua\r\n\t\t * $this->testi['PAROLACHIAVE']=\"Frase da far apparire\";\r\n\t\t */\r\n//\t\tprint_r($this->config_service);\r\n\t\tif(!isset($this->testi[$testo])){\r\n\t\t\tif(strtolower($this->config_service['lang'])=='en'){\r\n\t\t\t\t$this->testi['Titolo']=\"Legend\";\r\n\t\t\t\t\r\n\t\t\t\t$this->testi['Form_da_compilare']=\"Click on the blank square to fill in data\";\r\n\t\t\t\t$this->testi['Form_salvata']=\"Click on red tick to modify data\";\r\n\t\t\t\t$this->testi['Form_inviata']=\"Click on green tick to read the inserted data. You cannot modify them.\";\r\n\t\t\t\t\r\n\t\t\t\t$this->testi['Form_da_compilare_dm']=\"Form to be filled in.\";\r\n\t\t\t\t$this->testi['Form_salvata_dm']=\"Saved form. Form to be completed.\";\r\n\t\t\t\t$this->testi['Form_inviata_dm']=\"Sent form. Click on green tick to read/modify the inserted data.\";\r\n\t\t\t\t\r\n\t\t\t\t$this->testi['Da_compilare']=\"Empty forms.\";\r\n\t\t\t\t$this->testi['Da_completare']=\"Some forms to be completed.\";\r\n\t\t\t\t$this->testi['Tutte_complete']=\"Forms completed.\";\r\n\t\t\t\t$this->testi['Morte']=\"Dead patient.\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$this->testi['Form_da_compilare']=\"Form da compilare. Cliccare il riquadro per compilare la form.\";\r\n\t\t\t\t$this->testi['Form_salvata']=\"Form salvata. Cliccare sul check rosso per visualizzare/modificare i dati inseriti.\";\r\n\t\t\t\t$this->testi['Form_inviata']=\"Form inviata. Cliccare sul check verde per visualizzare i dati inseriti. Non &egrave; possibile la modifica dei dati per questo profilo.\";\r\n\t\t\t\t\r\n\t\t\t\t$this->testi['Form_da_compilare_dm']=\"Scheda non compilata.\";\r\n\t\t\t\t$this->testi['Form_salvata_dm']=\"Scheda parzialmente compilata. Cliccare sul check rosso per visualizzare i dati inseriti.\";\r\n\t\t\t\t$this->testi['Form_inviata_dm']=\"Scheda completata e inviata. Cliccare sul check verde per modificare i dati inseriti.\";\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->testi['Titolo']=\"Legenda\";\r\n\t\t\t\t$this->testi['Da_compilare']=\"Schede da compilare. Cliccare sulla freccia bianca per iniziare l'inserimento.\";\r\n\t\t\t\t$this->testi['Da_completare']=\"Alcune schede devono ancora essere inserite. Cliccare sulla freccia gialla per proseguire l'inserimento.\";\r\n\t\t\t\t$this->testi['Tutte_complete']=\"Tutte le schede sono state compilate. Cliccare sulla freccia verde per visualizzare i dati inseriti.\";\r\n\t\t\t\t$this->testi['Morte']=\"Fine Studio.\";\r\n\t\t\t}\r\n\t\t\tif($this->config_service ['Patients_list']!='')$this->testi['Registro Lista Pazienti']=$this->config_service ['Patients_list'];\r\n\r\n\t\t}\r\n\t\treturn $this->testi[$testo];\r\n\t}", "title": "" }, { "docid": "9bf8e1d6925a3afc65e5815a1faa735c", "score": "0.60444516", "text": "public function tallenna() {\n $query = DB::connection()->prepare('INSERT INTO Koira (nimi, rotutunnus, syntymapv, sukupuoli, kasvattajatunnus, rekisterointipv, tila) VALUES (:nimi, :rotu, :syntymapv, :sukupuoli, :kasvattajatunnus, :rekisterointipv, :tila) RETURNING rekisterinumero');\n $query->execute(array('rotu' => $this->rotu, 'kasvattajatunnus' => $this->kasvattaja, 'nimi' => $this->nimi, 'syntymapv' => $this->syntymapv, 'sukupuoli' => $this->sukupuoli, 'rekisterointipv' => $this->rekisterointipv, 'tila' => $this->tila));\n $row = $query->fetch();\n\n $this->rekisterinumero = $row['rekisterinumero'];\n }", "title": "" }, { "docid": "51104914c5e69710a5811ed5dc4eb383", "score": "0.6040796", "text": "function ermittleKolonien() {\n $comp_id = eigenschaften::$comp_id;\n $spiel_id = eigenschaften::$spiel_id;\n $kolonien = @mysql_query(\"SELECT id FROM skrupel_planeten \n\t\t\t\t\t\tWHERE (besitzer='$comp_id') AND (spiel='$spiel_id')\");\n while($planeten_id = @mysql_fetch_array($kolonien)) {\n eigenschaften::$kolonien_ids[] = $planeten_id['id'];\n }\n if(count(eigenschaften::$kolonien_ids) <= eigenschaften::$frachter_kolo_infos->max_kolonien_wenig_leute)\n eigenschaften::$frachter_kolo_infos->kolo_leute = eigenschaften::$frachter_kolo_infos->kolo_leute_anfangs;\n }", "title": "" }, { "docid": "fe353283fb796bcdd318d6ec20f890e4", "score": "0.60374695", "text": "public function updateSuratMasukSameData()\n {\n $pengguna = \\App\\Models\\Pengguna::find(1);\n\n $this->browse(function (Browser $browser) use($pengguna) {\n $browser\n ->loginAs($pengguna, 'pengguna')\n ->visit('/surat-masuk')\n ->assertPathIs('/surat-masuk')\n ->clickLink('Ubah')\n ->type('nomor', 'III/III/MMIX')\n ->type('asal', 'Dinas Kependudukan')\n ->select('jabatan_id', '3')\n ->type('perihal', 'Kegiatan Sensus Penduduk')\n ->click('#tanggal-terima')\n ->click('div.datepicker > div.datepicker-days > table.table-condensed > tbody > tr > td.today.day')\n ->attach('lampiran', public_path('disposisi.pdf'))\n ->press('Simpan')\n ->assertPathIs('/surat-masuk');\n });\n }", "title": "" }, { "docid": "882cd3961de6213d1227a3afb67e5f45", "score": "0.6037468", "text": "function unos(){\n // OBRADJUJEMO POSLANE PODATKE I UNOSIMO U NARUDZBE.TXT\n // ISPISUJEMO DETALJE NARUDZBE KORISNIKU (IZNOS, ITD)\n $narudzba = array();\n foreach($_POST as $key=>$value){\n if(strpos($key,'kol_')!==FALSE){\n $id = substr($key,4);\n $narudzba[$id]=array($value);\n }\n if(strpos($key,'special_')!==FALSE){\n $id = substr($key,8);\n $narudzba[$id][1]=$value;\n }\n if(strpos($key,'velicina_')!==FALSE){\n $id = substr($key,9);\n $narudzba[$id][2]=$value;\n }\n }\n $email = $_POST['email'];\n $adresa = $_POST['adresa'];\n var_dump($narudzba);\n echo 'EMAIL = '.$email.'<br>';\n echo 'ADRESA = '.$adresa.'<br>';\n}", "title": "" }, { "docid": "f1e3f1ff6d5950b7b23c4b2411b5f3df", "score": "0.60333216", "text": "public function kelola_pelanggan() {\n\t\t$this->AgenModel->delete_rfid();\n\n\t\t$this->data['namaProvinsi'] = $this->AgenModel->get_list_provinsi();\n $this->data['namaKota'] = [];\n $this->data['namaKecamatan'] = [];\n\t\t$this->data['namaKelurahan'] = [];\n\t\t$this->load->view('agen/v_masyarakat', $this->data);\n\t}", "title": "" }, { "docid": "2928d6f16334c0afb0ff409c9508bea6", "score": "0.60322714", "text": "public function tegar($item = 30, $ms = 1, $fe = null) \n {\n\t\t$fe = ($this->level == 'kawal') ? $fe : $this->pengguna; # set nama fe\n $bulanan = bulanan('kawalan','14'); # papar bulan dlm tahun semasa\n # semak pembolehubah $bulanan\n //echo '<pre>', print_r($bulanan, 1) . '</pre><br>';\n\n // setkan pembolehubah untuk $this->tanya\n $medanRangka = $this->medanRangka;\n\t\t\t$medanData = $this->medanData;\n $sv = $this->sv;\n\n\t\t// mula papar semua dalam $myTable\n foreach ($bulanan as $key => $myTable)\n {// mula ulang table\n\t\t\t// setkan $medan\n\t\t\t$medan = ($myTable=='rangka13') ? $medanRangka : $medanData;\n // dapatkan bilangan jumlah rekod\n $bilSemua = $this->tanya->kiraKes($sv, $myTable, $medan, $fe);\n // tentukan bilangan mukasurat \n // bilangan jumlah rekod\n \t\t//echo '$bilSemua:'.$bilSemua.', $item:'.$item.', $ms:'.$ms.'<br>';\n $jum = pencamSqlLimit($bilSemua, $item, $ms);\n $this->papar->bilSemua[$myTable] = $bilSemua;\n // sql guna limit\n $this->papar->cariApa[$myTable] = $this->tanya->\n kesTegar($sv, $myTable, $medan, $fe, $jum);\n // halaman\n $this->papar->halaman[$myTable] = halaman($jum);\n }// tamat ulang table\n \n # semak pembolehubah $this->papar->cariApa\n //echo '<pre>', print_r($this->papar->cariApa, 1) . '</pre><br>';\n \n // Set pemboleubah utama\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->carian = 'tegar';\n $this->papar->url = dpt_url();\n // pergi papar kandungan\n $this->papar->baca('kawalan/index');\n }", "title": "" }, { "docid": "6957ffb7e0148243ea30da702cd3c457", "score": "0.6029186", "text": "function hitung_saldo_akun($kodeAkunPenerimaan, $tahunSaldo, $bulanSaldo) {\n\tglobal $mysqli;\n\t\n\t//saldo awal\n\t$resultSaldoAwal = mysqli_query(\n\t\t$mysqli,\n\t\t\"SELECT * FROM saldo_awal WHERE id_akun='\".$kodeAkunPenerimaan.\"'\"\n\t);\n\t$rowSaldo = mysqli_fetch_array($resultSaldoAwal);\n\t$saldoAwal = ($rowSaldo==null?0:$rowSaldo['saldo']);\n\t\n\t//penerimaan Bulan Lalu\n\t$queryPenerimaan = sprintf(\n\t\t\"SELECT SUM(jumlah) as jumlah FROM penerimaan WHERE id_akun='%s' AND tanggal < '%04d-%02d-01'\",\n\t\t$kodeAkunPenerimaan, $tahunSaldo, $bulanSaldo\n\t);\n\t$resultPenerimaan = mysqli_query($mysqli, $queryPenerimaan);\n\t$tmp = mysqli_fetch_array($resultPenerimaan);\n\t$penerimaan_bln_lalu = $tmp['jumlah'];\n\t\n\t// Pengeluaran bulan lalu\n\t// => diambil dari pengeluaran yang menggunakan sumber dana $kodeAkunPenerimaan\n\t$queryPengeluaran = sprintf(\n\t\t\"SELECT SUM(jumlah) as jumlah FROM penyaluran WHERE sumber_dana='%s' AND tanggal < '%04d-%02d-01'\",\n\t\t$kodeAkunPenerimaan, $tahunSaldo, $bulanSaldo\n\t);\n\t$resultPenerimaan = mysqli_query($mysqli, \"A\");\n\t$tmp = mysqli_fetch_array($resultPenerimaan);\n\t$penerimaan_bln_lalu = $tmp['jumlah'];\n}", "title": "" }, { "docid": "013b62715669ba6f4d4e729b72e37d5a", "score": "0.6028394", "text": "public function pengajuan_unit()\n\t{\n\t\t#--------------------------------------------------------------------------\n\t\t# Persiapan pengambilan data dari model Mmember\n\t\t#--------------------------------------------------------------------------\n\t\t$this->load->model('Mmember');\n\n\t\t#--------------------------------------------------------------------------\n\t\t# Proses Pengambilan data dari 'tb_unit_keja'\n\t\t#--------------------------------------------------------------------------\n\t\t$data['data'] \t\t= $this->Mmember->get_pengajuan_unit();\n\t\t// print_r($data['data']);\n\t\t$data['revisi'] \t= $this->Mmember->get_revisi_unit();\n\t\t$data['unit_kerja']\t= $this->Mmember->get(array('tabel'=>'tb_unitkerja', 'order_by'=>'deskripsi ASC'))->result_array();\n\t\t$this->init('vmenu-daftar-pengajuan-diklat', $data);\n\t}", "title": "" }, { "docid": "1e36ad8214a4a817a27888ce74ace350", "score": "0.6026928", "text": "public function kepeg()\n {\n $id = $this->fungsi->user_login()->id_kar;\n $data = array (\n 'judul' => \"BiasHRIS | Data Kepegawaian\",\n 'rowkar' => $this->M_Aproject->getInfokar($id),//get data pegawai dari table Karyawan\n 'rownip' => $this->M_Aproject->getNip($id), //get data Nip dari table KOntrak\n 'rowdok' => $this->M_Aproject->getDocKar($id), //get data DOkumen Karyawan darii table dockar\n 'rowhispeg' => $this->M_Aproject->getHistPeg($id), //Get Data History Kepegawaian (Jabatan, sbu, dll) tabel tb_hist_kepegawaian\n 'rowhiskon' => $this->M_Aproject->getHistKon($id), //Get Data History Kontrak tabel tb_hist_kontrak\n );\n $this->template->load('template','personal/v_kepegawaian', $data);\n }", "title": "" }, { "docid": "8fc09692065415240f25d1c95c912013", "score": "0.6026843", "text": "public function dataTunggakan(){\t\t\n\t\t\n\t\t$where=[\n\t\t\t'id_kelas' =>1,\n\t\t\t'tahun_bayar'=>2021,\n\t\t\t'bulan_bayar'=>4\n\t\t];\n\n\t\t$this->bayar->join('siswa','siswa.nisn=pembayaran.nisn');\n\t\t$this->bayar->join('kelas','kelas.id_kelas=siswa.id_kelas');\n\t\t$data['listPembayaran']=$this->bayar->where('siswa.nisn',$this->request->getPost('txtNoIndukSiswaNasional'))->orderBy('tgl_bayar','asc')->findAll();\n\t\t//echo $this->request->getPost('txtIdKelas').'-'.$this->request->getPost('txtThnLaporan');\n\t}", "title": "" }, { "docid": "e34d5ef2ecfa7f52cce1ec8b213041c3", "score": "0.6023545", "text": "public function ubah()\n {\n $perwalian = InputPerwalian::where('tanggal_mulai','<=',Carbon::now())->where('status','Belum')->first();\n if($perwalian->status == 'Belum')\n {\n $perwalian->status = 'Selesai';\n $perwalian->save();\n if($perwalian->id <= 2)\n {\n DB::select('call spSeleksiMatkul('.$perwalian->id.')');\n $perwalian = InputPerwalian::where('status','Belum')->first();\n } \n $wrd = '-1';\n }\n $listperwalians = Inputperwalian::all();\n return view('Perwalian.masterperwalian',compact('perwalian','wrd','listperwalians'));\n\n }", "title": "" }, { "docid": "48e9d3de105d510d8c09b0083d381ecc", "score": "0.6020776", "text": "public function index() \n\t{\n\n\t\t# papar semua data\n\t\t$this->papar->senaraiData[$this->_jadual] = \n\t\t\t$this->tanya->paparIkutSurvey($this->_jadual);\n\t\t$this->papar->medanID ='subsektor';\n\t\t//echo '<pre>$senaraiData->', print_r($this->papar->senaraiData, 1) . '</pre>';# papar $senaraiData\n\n\t\t# Set pemboleubah utama\n\t\t$this->papar->pegawai = senarai_kakitangan();\n\t\t$this->papar->Tajuk_Muka_Surat='MM 2012';\n\t\t$this->papar->cetak='papar';\n\t\t$this->papar->gambar=gambar_latarbelakang('../../');\n\n\t\t# pergi papar kandungan fungsi papar($this->_folder) dalam KAWAL\n\t\t$fail = Kebenaran::papar($this->_folder);\n\t\t$this->papar->baca($fail);\n\t}", "title": "" }, { "docid": "ca59a4cbb53e3f14fb7cee548ea862e7", "score": "0.60196245", "text": "function reisinformatieTaal() {\n $taal = selecteerTaal();\n if ($taal == \"NLD\"){\n $labels = [\"Reisgegevens van \", \" in week \", \"Reisgegevens\", \"Begindatum\", \"Einddatum\", \"Aantal personen\", \"Vervoer van luchthaven Lissabon\", \"Ja\", \"Nee\", \"Vervoer naar luchthaven Lissabon\", \"Ja\", \"Nee\", \"Opmerkingen\", \"Status\", \"Betaling\",\n \"Persoonlijke gegevens\", \"Persoon \", \"Voornaam\", \"Achternaam\", \"Adres\", \"Postcode\", \"Woonplaats\", \"Land\", \"Geboortedatum\", \"Telefoonnummer\", \"E-mailadres\", \"Kledingmaat\", \"Schoenmaat\", \"Ziekten en allergieën\",\n \"Onjuiste vakantienaam of vakantieweek. Ga terug naar de \", \"loginpagina\"];\n } elseif ($taal == \"ENG\"){\n $labels = [\"Travel information of \", \" in week \", \"Travel information\", \"Starting date\", \"End date\", \"Number of person\", \"Transport of airport Lissabon\", \"Yes\", \"No\", \"Transport to airport Lissabon\", \"Yes\", \"No\", \"Comments\", \"Status\", \"Payment\",\n \"Personal information\", \"Person \", \"First name\", \"Surname\", \"Address\", \"ZIP code\", \"City\", \"Country\", \"Date of birth\", \"Telephone number\", \"E-mail address\", \"Size\", \"Shoe size\", \"Diseases and allergies\",\n \"Incorrect name or number of the week. Back to\", \"login page\"];\n } elseif ($taal == \"DEU\"){\n $labels = [\"Reise Details \", \" in Woche \", \"Reise\", \"Startdatum \", \"Ende\", \"Anzahl der Personen\", \"Transport Flughafen Lissabon\", \"Ja\", \"Nein\", \"Anfahrt zum Flughafen von Lissabon\", \"Ja\", \"Nein\", \"Notes\", \"Status\", \"Zahlung\",\n \"Persönliche Informationen\", \"Person\", \"Name\", \"Nachname\", \"Adresse\", \"Zip\", \"Location\", \"Land\", \"Geburt\", \"Telefon\", \"E-Mail\", \"Bekleidung Size\", \"Schuh\", \"Krankheiten und Allergien\",\n \"Falscher Name oder Urlaub Urlaub Woche. Zurück zum \", \"Login-Seite\"];\n }\n return $labels;\n}", "title": "" }, { "docid": "1fc776a54fedad09f7bbd6c965eae191", "score": "0.6016376", "text": "function realisasiKel($awalperiode, $akhirperiode, $idTahan, $idKel)\n{\n $ci = get_instance();\n $ci->db2 = $ci->load->database('akuntansi', TRUE);\n $buku_awal = $awalperiode;\n $tahunanggaran_id = $idTahan;\n $akhir_periode = $akhirperiode;\n $hasil = $ci->db2->query(\"SELECT kelompok_id AS kelompok_id, posisi AS posisi, Sum(debet) AS debet, Sum(kredit) AS kredit FROM view_realisasi WHERE tahunanggaran_id = $tahunanggaran_id AND kelompok_id=$idKel AND is_anggaran = 1 AND is_valid = 1 AND jurnal != 'SA' AND tanggal_transaksi BETWEEN '$buku_awal' AND '$akhir_periode' GROUP BY kelompok_id\")->result_array();\n $debet = 0.00;\n $kredit = 0.00;\n $jumlah = 0.00;\n if ($hasil) {\n foreach ($hasil as $dataHasil) :\n $debet = $dataHasil['debet'];\n $kredit = $dataHasil['kredit'];\n $posisi = $dataHasil['posisi'];\n if ($posisi == \"D\") {\n $jumlah = $debet - $kredit;\n } else {\n $jumlah = $kredit - $debet;\n }\n endforeach;\n return $jumlah;\n } else {\n return $jumlah;\n }\n}", "title": "" }, { "docid": "1d1120645433481cb7dcf8449e7e1718", "score": "0.60154337", "text": "function kelas(){\n $variabel['data'] = $this->m_kelas->lihatdata();\n $this->layout->renderakdp('back-end/akademik/kelas_p/v_kelas',$variabel,'back-end/akademik/kelas_p/v_kelas_js');\n }", "title": "" } ]
504b228589fa8ffb812a35cf747123bb
Purges data for the given URL.
[ { "docid": "3c19b8d3cbeb95890e3ce172adf8332d", "score": "0.645499", "text": "public function purge($url)\n {\n\n $request = Request::create($url);\n\n $this->_client->createConnection();\n\n $digest = $this->generateDigestKey($request);\n $digestKeys = $this->_client->keys($digest);\n $this->_deleteKeys($digestKeys);\n\n $metadata = $this->getMetadataKey($request);\n $metadataKeys = $this->_client->keys($metadata);\n $this->_deleteKeys($metadataKeys);\n\n $this->_client->close();\n\n return true;\n\n }", "title": "" } ]
[ { "docid": "6c551edfb0597dd27252f6cf6972f185", "score": "0.7137633", "text": "public function purgeUrl($url);", "title": "" }, { "docid": "b6766f95c33eb33de744b12428903bb4", "score": "0.7119626", "text": "public function purge($url)\n {\n }", "title": "" }, { "docid": "36c58d0055eb97f23b1ee3fbd2eb1c3e", "score": "0.647327", "text": "public function PurgeURL($url = '')\r\n\t{\t\r\n\r\n\t\tif( !$this->api_key_account)\r\n\t\t{\r\n\t\t\treturn array('status' =>'error' ,'code' =>'api_key_account' ,'msg'=> 'missing acount api key');\r\n\t\t\tdie();\r\n\t\t}\r\n\r\n\t\tif(!$url)\r\n\t\t{\r\n\t\t\treturn array('status' =>'error' ,'code' =>'url' ,'msg'=> 'missing url');\r\n\t\t\tdie();\r\n\t\t}\r\n \r\n\t\t$key = $this->api_key_account;\r\n\t\t$api_url = $this->api_url['zone'].'/purge?url='.$url ;\r\n\r\n\t\t$get_header = $this->create_header($key);\r\n\r\n\r\n\t\t//$post_data_array = array('PullZoneId' => $zone_id, 'BlockedIp' => $blocked_ip);\r\n\r\n\t\t$api_call = $this->run( array('call_method' => 'POST', 'api_url' => $api_url,'header' => $get_header , ));\r\n\t\t \r\n\t\tif($api_call['http_code'] !=200 )\r\n\t\t{\r\n\t\t\t//error message\r\n\t\t\t$request_array = json_decode(json_encode($api_call['data']));\r\n\t\t\t$result = array\r\n\t\t\t(\t\r\n\t\t\t\t\"status\" => 'error',\r\n\t\t\t\t\"http_code\"=>$api_call['http_code'],\r\n\t\t\t\t\"msg\" => json_decode($request_array) , \r\n\t\t\t);\r\n\t\t\treturn $result;\r\n\t\t\tdie();\r\n\t\t}\r\n\t\t\r\n \t\treturn array(\r\n\t\t\t'status' => 'success', \r\n\t\t\t\"msg\" => $api_call, \r\n\t\t);\r\n\t\tdie();\r\n\t}", "title": "" }, { "docid": "b8fc9cc493a16a926e1405454c51bf71", "score": "0.64618033", "text": "public function purgeInvalidUrls();", "title": "" }, { "docid": "34a5da1d34c75701cb719466f803c1c6", "score": "0.60601807", "text": "private function purge()\n {\n $promises = [];\n\n foreach ($this->queue as $page) {\n $url = $page->getStoreUrl();\n\n $sendtime = microtime(true);\n\n $request = new Request('PURGE', $url);\n\n $promises[] = $this->client->sendAsync($request)->then(\n function (Response $response) use ($page, $sendtime, $request) {\n $responsetime = microtime(true);\n $this->writeln('<info>PURGE '.$page->getPath() .'</info> <comment>'.$response->getStatusCode().', '.number_format (( $responsetime - $sendtime ), 2).'s</comment>');\n },\n function (RequestException $e) use ($page) {\n $this->writeln('<info>PURGE '.$page->getPath() .'</info> <error> FAILED </error> \n<comment>'.$e->getMessage().'</comment>');\n }\n );\n }\n\n \\GuzzleHttp\\Promise\\all($promises)->wait();\n }", "title": "" }, { "docid": "02f19d53f6a123827b8ab13fe870ca90", "score": "0.601742", "text": "protected function purge(): void\n {\n $this->purgeFailed = false;\n\n if (empty($this->entriesToPurge)) {\n return;\n }\n\n $client = GuzzleClientFactory::getClient();\n\n $requests = function () use ($client) {\n foreach ($this->entriesToPurge as $entry) {\n yield function() use ($client, $entry) {\n return $client->requestAsync('PURGE', $entry['url']);\n };\n }\n };\n\n $pool = new Pool($client, $requests(), [\n 'concurrency' => 10,\n 'fulfilled' => function ($response, $index) {\n /** @var Response $response */\n $this->entriesToPurge[$index]['purged'] = 1;\n },\n 'rejected' => function ($exception, $index) {\n /** @var \\Exception $exception */\n $this->entriesToPurge[$index]['purged'] = 0;\n $this->purgeFailed = true;\n $this->logger->error(\n sprintf('Nginx Connector: Could not purge \"%s\".', $this->entriesToPurge[$index]['url']),\n ['code' => $exception->getCode(), 'message' => $exception->getMessage()]\n );\n },\n ]);\n\n $promise = $pool->promise();\n $promise->wait();\n }", "title": "" }, { "docid": "3d73d051e9856eb6fec601155f76cffa", "score": "0.58291745", "text": "public function purgeUrl($without = 0,$cache_url = null)\n {\n $zone_id = $this->apiClient('purge'); \n $cache = $this->getCacheConnection();\n if($without==1)\n {\n if(!$cache_url == null)\n { \n $files = array($cache_url);\n $purge_cache=$cache->purge_files($zone_id,$files);\n $purge_cache = (array) $purge_cache;\n if(isset($purge_cache['error']))\n {\n return 3;\n }\n else\n {\n return 2;\n }\n \n }\n else\n {\n return 0;\n }\n }\n else\n {\n $purge_cache=$cache->purge($zone_id);\n $purge_cache = (array) $purge_cache;\n if(isset($purge_cache['error']))\n {\n return 3;\n }\n else\n {\n return 2;\n }\n return 2;\n }\n\n }", "title": "" }, { "docid": "41902ec99ce1c36d9d595fed1abeb999", "score": "0.57994103", "text": "abstract public function purge();", "title": "" }, { "docid": "5ae593b36f11f06dffc59cf4613a7a10", "score": "0.57569224", "text": "public function purge() {}", "title": "" }, { "docid": "92b2765fc2ef5e2bb92d25c148784ced", "score": "0.57093155", "text": "function cleanDBonPurge() {\n $link = new PluginRtntestalexArchive_Item();\n $link->cleanDBonItemDelete($this->getType(), $this->getID());\n }", "title": "" }, { "docid": "99340649b57488767037482455d5a96f", "score": "0.5686248", "text": "function purgeFTP($file_name_full) {\n\t$url = 'http://extras.denverpost.com/app/wildfire/combined/' . $file_name_full;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PURGE');\n\tcurl_exec($ch);\n\tcurl_close($ch);\n}", "title": "" }, { "docid": "fe090f1bf2bdebeea80d53e933d3bdcb", "score": "0.5641338", "text": "function purgeCache()\n\t\t{\n\t\t\t\tglobal $serendipity;\t\n // purge the cache\n\t\t}", "title": "" }, { "docid": "5524444482734937250b2133282a55d2", "score": "0.554163", "text": "public function purgeByUrl($pattern)\n {\n $this->_put(\n 'Purge-By-URL',\n array('pattern' => $pattern),\n true\n );\n }", "title": "" }, { "docid": "9a2df52f53b5cf1b2336c3b2967ddfbb", "score": "0.55358607", "text": "protected function freeTableURL()\n {\n $sql = \"TRUNCATE TABLE cache_api_urls\";\n $this->runRequest($sql);\n }", "title": "" }, { "docid": "672645cc1147e6136965f85e22773ff0", "score": "0.5498759", "text": "public function collectData($url) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0dfd677ba452666325781676a86ba1c7", "score": "0.546326", "text": "private function purge()\n\t{\n\t\t$counter = 0;\n\t\t$format = '%0' . strlen(self::MAXIMUM) . 's';\n\t\t$list = [];\n\t\tforeach ($this->cache as $class_name => $cache) {\n\t\t\tforeach ($cache as $identifier => $cached) {\n\t\t\t\t/** @var $cached Cached */\n\t\t\t\t$counter ++;\n\t\t\t\t$list_id = $cached->date->toISO() . '-' . sprintf($format, $counter);\n\t\t\t\t$list[$list_id] = [$class_name, $identifier];\n\t\t\t}\n\t\t}\n\t\tkrsort($list);\n\t\t$threshold = self::MAXIMUM - self::PURGE;\n\t\tfor (reset($list); $counter > $threshold; next($list)) {\n\t\t\tlist($class_name, $identifier) = current($list);\n\t\t\tunset($this->cache[$class_name][$identifier]);\n\t\t\t$this->count --;\n\t\t\t$counter --;\n\t\t}\n\t}", "title": "" }, { "docid": "c5524838a30e1e2baef3abfff5678ca7", "score": "0.5400156", "text": "public function\n\t\tpurge_page($page_name)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "ecd428f16244fde5cf4ff0a211657382", "score": "0.5331681", "text": "public static function dropRow($url){\n\t\t// Get the global config\n\t\tglobal $CrawlerConfig;\n\t\t\n\t\t// Get the PDO object\n\t\t$db = self::pdo();\n\t\t\n\t\t$here = realpath(dirname(__FILE__));\n\t\t\t\t\n\t\t// Get the filename\n\t\t$q = $db->prepare(\"SELECT * FROM {$CrawlerConfig['CRAWLER_TABLE']} WHERE url = :url\");\n\t\t$q->execute(array(\":url\"=>$url));\n\t\t$r = $q->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\tif($CrawlerConfig['DB_TYPE'] !== \"MySQL\" && file_exists(\"$here/blobs/{$r['body']}\"))\n\t\t\tunlink(\"$here/blobs/{$r['body']}\");\n\t\t\n\t\t$q = $pdo->prepare(\"DELETE FROM {$CrawlerConfig['CRAWLER_TABLE']} WHERE url = :url\");\n\t\t$q->execute(array(\":url\"=>$url));\n\t}", "title": "" }, { "docid": "03c293e3f93b4051d304ac4f388778fa", "score": "0.5279771", "text": "protected function cleanUpTrace(string $url){\n\t}", "title": "" }, { "docid": "af02c3d5928c72ce2de2a117b88e86c8", "score": "0.52497166", "text": "function _wp_personal_data_cleanup_requests()\n {\n }", "title": "" }, { "docid": "754005f2ffda04299927439faabc8ac6", "score": "0.5239109", "text": "protected static function g_expire($url)\n {\n $resource = self::getInstance();\n $result = $resource->execute($url, self::REQUEST_POST, $resource->getResourceKey());\n $resource->refresh($result, true);\n }", "title": "" }, { "docid": "86959da9c2d55b0f234df3d1373d2d90", "score": "0.52253944", "text": "public function gc()\n {\n foreach (glob(\"{$this->device}/{$this->key}-*\") as $value) {\n $data = file_get_contents($value);\n $data = json_decode($data);\n if (empty($data->ttl)) {\n continue;\n }\n if ($data->ttl >= mktime()) {\n continue;\n }\n unlink($value);\n }\n return;\n }", "title": "" }, { "docid": "eaafbc73c6bd7f2a50f3fb9236768952", "score": "0.52235603", "text": "function ccfm_godaddy_purge() {\n if ( ! class_exists( '\\WPaaS\\Cache' ) ) {\n return;\n }\n\n if ( \\WPaaS\\Cache::has_ban() ) {\n\n return;\n\n }\n remove_action( 'shutdown', [ '\\WPaaS\\Cache', 'purge' ], PHP_INT_MAX );\n add_action( 'shutdown', [ '\\WPaaS\\Cache', 'ban' ], PHP_INT_MAX );\n}", "title": "" }, { "docid": "6a02d2fde2305c192ce15917d0273f01", "score": "0.5200465", "text": "public static function purge()\n {\n Database::getInstance()->query(\"TRUNCATE tl_iso_requestcache\");\n }", "title": "" }, { "docid": "3966d552c6caae3dfefeef9c30726820", "score": "0.51962376", "text": "function arvan_total_purge_ajax(){\n \n \n if ( current_user_can( 'manage_options' ) ) {\n \n /**\n * Making Purge request URL\n */\n $arvan_url = Redux::get_option( $this->opt_name, 'arvan-cache-endpoint-url');\n $domain = Redux::get_option( $this->opt_name, 'arvan-domain');\n $full_url = $arvan_url . $domain . '/caching';\n \n if(empty($arvan_url)){\n wp_send_json_error(array(\"message\"=>\"Endpoint url is empty\"));\n return;\n }\n\n $full_url .= '?purge=all';\n \n $arvan_api_key = Redux::get_option( $this->opt_name, 'arvan-api-key');\n \n if(empty($arvan_api_key)){\n wp_send_json_error(array(\"message\"=>\"API Key is empty\"));\n return;\n }\n\n $response = wp_remote_get( $full_url, array(\n 'method' => 'DELETE',\n 'blocking' => true,\n 'headers' => array('Authorization' => $arvan_api_key),\n )\n );\n \n if ( is_wp_error( $response ) ) {\n\n $error_message = $response->get_error_message();\n return \"Something went wrong: $error_message\";\n\n }else{\n\n if(!isset($response['body']))\n return;\n \n $response_object = json_decode($response['body']);\n /**\n * Send a successful response to client JS\n */\n wp_send_json_success($response_object);\n \n }\n }\n\n }", "title": "" }, { "docid": "4f1f580eb549fcc04463b134b004f296", "score": "0.51931804", "text": "function w3tc_cdn_purge_files() {\n\t\t$title = __( 'Content Delivery Network (CDN): Purge Tool', 'w3-total-cache' );\n\t\t$results = array();\n\n\t\t$files = Util_Request::get_array( 'files' );\n\n\t\t$purge = array();\n\n\t\t$common = Dispatcher::component( 'Cdn_Core' );\n\n\t\tforeach ( $files as $file ) {\n\t\t\t$local_path = $common->docroot_filename_to_absolute_path( $file );\n\t\t\t$remote_path = $common->uri_to_cdn_uri( $common->docroot_filename_to_uri( $file ) );\n\n\t\t\t$purge[] = $common->build_file_descriptor( $local_path, $remote_path );\n\t\t}\n\n\t\tif ( count( $purge ) ) {\n\t\t\t$common->purge( $purge, false, $results );\n\t\t} else {\n\t\t\t$errors[] = __( 'Empty files list.', 'w3-total-cache' );\n\t\t}\n\n\t\t$path = str_replace( get_home_url(), '', get_stylesheet_directory_uri() );\n\t\tinclude W3TC_INC_DIR . '/popup/cdn_purge.php';\n\t}", "title": "" }, { "docid": "d3227e7e9638743f3cfe5664865dcf65", "score": "0.5169626", "text": "public function isPurged() {}", "title": "" }, { "docid": "05d3654ec05043a4e36436e5389bb5e6", "score": "0.5151265", "text": "abstract function purge($key);", "title": "" }, { "docid": "9d155f948c7c275068da9203c884da17", "score": "0.51458037", "text": "public function url_delete () {\n\t\tif ( ! $this->get(\"id\") ) {\n\t\t\t$this->response(array(\n\t\t\t\t\"status\" => false,\n\t\t\t\t\"error_code\" => 400\n\t\t\t), 400);\n\t\t}\n\n\t\t$this->db->delete(\"statistic_urls\", array(\n\t\t\t\"id\" => $this->get(\"id\")\n\t\t));\n\t}", "title": "" }, { "docid": "a3ebf2dd5c2197c1dc808ac8dceb4a86", "score": "0.511381", "text": "public function __destruct()\n {\n if ($this->uri) {\n librdf_free_uri($this->uri);\n }\n }", "title": "" }, { "docid": "eee1b664875ce0c2c33aa8972f8b965e", "score": "0.5080231", "text": "protected function addEntryToPurge(string $url, string $entryIdentifier = ''): void\n {\n $this->entriesToPurge[] = [\n 'url' => $url,\n 'identifier' => $entryIdentifier,\n 'purged' => -1\n ];\n }", "title": "" }, { "docid": "7a64cd20f8064fb7c692098533ede327", "score": "0.5079732", "text": "protected function clear_cache_data() {\n\t\t//delete minify\n\t\tBreeze_MinificationCache::clear_minification();\n\t\t//clear normal cache\n\t\tBreeze_PurgeCache::breeze_cache_flush();\n\n\t\t//Breeze_PurgeCache::factory();\n\t\t//clear varnish cache\n\t\t$varnish_cache = new Breeze_PurgeVarnish();\n\n\t\t$is_network = ( is_network_admin() || ( ! empty( $_POST['is_network'] ) && 'true' === $_POST['is_network'] ) );\n\n\t\tif ( is_multisite() && $is_network ) {\n\t\t\t$sites = get_sites();\n\t\t\tforeach ( $sites as $site ) {\n\t\t\t\tswitch_to_blog( $site->blog_id );\n\t\t\t\t$homepage = home_url() . '/?breeze';\n\t\t\t\t$varnish_cache->purge_cache( $homepage );\n\t\t\t\trestore_current_blog();\n\t\t\t}\n\t\t} else {\n\t\t\t$homepage = home_url() . '/?breeze';\n\t\t\t$varnish_cache->purge_cache( $homepage );\n\t\t}\n\t}", "title": "" }, { "docid": "5c0b10a8db4df8268d79e006e18e98ee", "score": "0.5055223", "text": "protected function doPurgeDatabase()\n {\n }", "title": "" }, { "docid": "dc00a12d44299e0feea4af0978a789da", "score": "0.50549924", "text": "public function process(): void\n {\n // Remove any URLs which have already been processed\n if ($this->ProcessedURLs) {\n $this->URLsToProcess = array_diff_key(\n $this->URLsToProcess,\n $this->ProcessedURLs\n );\n }\n\n $chunkSize = $this->getChunkSize();\n $count = 0;\n\n // Generate static cache for all live pages\n foreach ($this->URLsToProcess as $url => $priority) {\n $count += 1;\n\n if ($chunkSize > 0 && $count > $chunkSize) {\n return;\n }\n\n $this->processUrl($url, $priority);\n }\n\n if (count($this->URLsToProcess) === 0) {\n $trimSlashes = function ($value) {\n $value = trim($value, '/');\n\n // We want to trim the schema from the beginning as they map to the same place\n // anyway.\n $value = ltrim($value, 'http://');\n $value = ltrim($value, 'https://');\n\n return $value;\n };\n\n // List of all URLs which have a static cache file\n $this->publishedURLs = array_map($trimSlashes, Publisher::singleton()->getPublishedURLs());\n\n // List of all URLs which were published as a part of this job\n $this->ProcessedURLs = array_map($trimSlashes, $this->ProcessedURLs);\n\n // Determine stale URLs - those which were not published as a part of this job\n // but still have a static cache file\n $this->URLsToCleanUp = array_diff($this->publishedURLs, $this->ProcessedURLs);\n\n foreach ($this->URLsToCleanUp as $staleURL) {\n $purgeMeta = Publisher::singleton()->purgeURL($staleURL);\n $purgeMeta = is_array($purgeMeta) ? $purgeMeta : [];\n\n if (array_key_exists('success', $purgeMeta) && $purgeMeta['success']) {\n unset($this->jobData->URLsToCleanUp[$staleURL]);\n\n continue;\n }\n\n $this->handleFailedUrl($staleURL, $purgeMeta);\n }\n }\n\n $this->updateCompletedState();\n }", "title": "" }, { "docid": "28ecdc345e9b0815f23eb0dfc6e0936d", "score": "0.50494105", "text": "public function purge($name)\n\t{\n\t\t// @codingStandardsIgnoreStart\n\t\twhile ($this->purge_step($name));\n\t\t// @codingStandardsIgnoreEnd\n\t}", "title": "" }, { "docid": "02a4da030b4a54296c2fdfaf4011417f", "score": "0.5033443", "text": "public static function clean_cached_data()\n {\n }", "title": "" }, { "docid": "2bc077ada6221b8951f39e547fdc399d", "score": "0.50289243", "text": "public function free() {\n if( $this->data ) {\n @$this->getResult()->free();\n }\n\n parent::free();\n }", "title": "" }, { "docid": "3195fed16424e0610929b234fb96c068", "score": "0.5010424", "text": "public function mod_release_data(){\r\n mysqli_free_result($this->mod_daily_records);\r\n mysqli_free_result($this->mod_monthly_records);\r\n unset($this->mod_daily_records);\r\n unset($this->mod_monthly_records);\r\n }", "title": "" }, { "docid": "b58c02173b6b356529ab7bd76fe2fbff", "score": "0.50063455", "text": "private function purgeCache()\n\t{\n\t\tJLoader::import('joomla.application.helper');\n\t\tJLoader::import('joomla.cms.application.helper');\n\n\t\t// Site client\n\t\t$client = class_exists('Joomla\\\\CMS\\\\Application\\\\ApplicationHelper') ? \\Joomla\\CMS\\Application\\ApplicationHelper::getClientInfo(0) : JApplicationHelper::getClientInfo(0);\n\n\t\t$er = @error_reporting(0);\n\t\t$cache = JFactory::getCache('');\n\t\t$cache->clean('sillylongnamewhichcantexistunlessyouareacompletelyparanoiddeveloperinwhichcaseyoushouldnotbewritingsoftwareokay', 'notgroup');\n\t\t@error_reporting($er);\n\t}", "title": "" }, { "docid": "c1b0b39f7d39bfd8e86b7569b2629865", "score": "0.49816933", "text": "private function collectGarbage() {\n\t\t$query = 'DELETE FROM ' .//'DELETE LOW_PRIORITY FROM ' .\n\t\t\tShelveIt::$query_cache[ 'table' ] .\n\t\t\t' WHERE time < NOW() - ' . ShelveIt::$query_cache[ 'expire' ];\n \n\t\tif( !mysql_unbuffered_query( $query, $this->mysql ) ) {\n die( \"Garbage collect query: $query<br />\" .\n 'Invalid query: ' . mysql_error( $this->mysql ) );\n };\n\t}", "title": "" }, { "docid": "85a1e9beb80cd291daff444378b37912", "score": "0.49634063", "text": "public static function url_remove_credentials($url)\n {\n }", "title": "" }, { "docid": "dbcc6d74d535da8fb0086bf91121fec5", "score": "0.49400845", "text": "public static function purgeCaches() {}", "title": "" }, { "docid": "d63a37b651ce7466337923cba2f66a3c", "score": "0.49327755", "text": "function purge_from_cdn($email=null)\n {\n if (!$this->cfs_http->getCDNMUrl()) \n {\n throw new CDNNotEnabledException(\n \"Authentication response did not indicate CDN availability\");\n }\n $status = $this->cfs_http->purge_from_cdn($this->name, $email);\n if ($status < 199 or $status > 299) {\n throw new InvalidResponseException(\n \"Invalid response (\".$status.\"): \".$this->cfs_http->get_error());\n } \n return True;\n }", "title": "" }, { "docid": "0309c9bb92ce65e4ab21bb4cca039cfe", "score": "0.4931461", "text": "public function purgePageCache()\n\t{\n\t\t// Purge the folder\n\t\t$objFolder = new \\Folder('system/cache/html');\n\t\t$objFolder->purge();\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the page cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "54fea9bc95df3b85623c673c7a0a09db", "score": "0.49152568", "text": "function galaxy_purge_spy() {\n\tglobal $db, $server_config;\n\n\tif (!is_numeric($server_config[\"max_keepspyreport\"])) {\n\t\treturn;\n\t}\n\t$max_keepspyreport = intval($server_config[\"max_keepspyreport\"]);\n\n\t$request = \"select spy_id from \".TABLE_SPY.\" where active = '0' or datadate < \".(time()-60*60*24*$max_keepspyreport);\n\t$result = $db->sql_query($request);\n\n\twhile (list($spy_id) = $db->sql_fetch_row($result)) {\n\t\t$request = \"select * from \".TABLE_USER_SPY.\" where spy_id = \".$spy_id;\n\t\t$result2 = $db->sql_query($request);\n\t\tif ($db->sql_numrows($result2) == 0) {\n\t\t\t$request = \"delete from \".TABLE_SPY.\" where spy_id = \".$spy_id;\n\t\t\t$db->sql_query($request);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "40d1bc10ed4833eb9953bc3a9782568f", "score": "0.48943782", "text": "private function cleanURL(&$url)\n {\n $url = str_replace( \".jpg\", \".gif\", $url );\n $url = str_replace( \"https:\", \"http:\", $url );\n $url = explode( \"?\", $url );\n $url = $url[0];\n $url = str_finish( $url, '.gif' );\n }", "title": "" }, { "docid": "f3c5e8beb7aea84781e5f27db48a1904", "score": "0.48869336", "text": "public function purgeData(string $bucket = NULL): void {\n if (empty($bucket)) {\n $this->buckets = [];\n $this->stats['buckets'] = 0;\n $this->stats['bucketStats'] = [];\n return;\n }\n $this->buckets[$bucket] = [];\n $this->stats['buckets'] -= 1;\n $this->stats['bucketStats'][$bucket] = [];\n }", "title": "" }, { "docid": "dae903d47b786b9349300f162eea3185", "score": "0.4875306", "text": "public function purge($path)\n {\n // disabled because June Media’s version of Nginx does not come\n // compiled with the nginx-cache-purge module\n return true;\n\n curl_setopt($this->ch, CURLOPT_URL, $this->PURGE_BASE_URL . $path);\n curl_exec($this->ch);\n $info = curl_getinfo($this->ch);\n return @$info['http_code'] == 200;\n }", "title": "" }, { "docid": "6c2fe9edbabf5a4c46005d67bec358fe", "score": "0.48731568", "text": "public function purge($id);", "title": "" }, { "docid": "19ffa9879fbfa481a9263f61da2db246", "score": "0.48709753", "text": "public static function purge($name = null)\n {\n }", "title": "" }, { "docid": "be597439014e19994685cf82d31c3496", "score": "0.48691273", "text": "protected function expire( $url ) {\n\n \tif($this->ngx_cache->uri( $url )) {\n\n \tif( $this->ngx_cache->expire() ) {\n\n\n\t\t\t} else {\n\n\t\t\t\terror_log( \"Could not expire \" . $url );\n\n\t\t\t}\n\n \t} else {\n\n\t\t\terror_log( \"Could not expire \" . $url );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "9a732a9b3bda1654c21dd9805369d781", "score": "0.48629728", "text": "static function purgeCache()\n {\n $cache =& wfGetMainCache();\n $cache->delete('vp:surveyslist');\n }", "title": "" }, { "docid": "4dbe4358a773b3d6e185050de6514499", "score": "0.484932", "text": "public function purgeInternalCache()\n\t{\n\t\t// Check whether the cache exists\n\t\tif (is_dir(TL_ROOT . '/system/cache/dca'))\n\t\t{\n\t\t\tforeach (array('config', 'dca', 'language', 'sql') as $dir)\n\t\t\t{\n\t\t\t\t// Purge the folder\n\t\t\t\t$objFolder = new \\Folder('system/cache/' . $dir);\n\t\t\t\t$objFolder->delete();\n\t\t\t}\n\t\t}\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the internal cache', __METHOD__, TL_CRON);\n\t}", "title": "" }, { "docid": "7bbe9a883bcc0637bc63f80bf911ba48", "score": "0.48445037", "text": "private function profile_handlePurge() // removes certain saved information but not the entire character\n {\n\n return 'NYI';\n }", "title": "" }, { "docid": "31909a0489cdca3da5f256c8baa25714", "score": "0.4839185", "text": "protected function GarbageCollector() {\n\n // @TODO: walk thru all records and delete items expired by TTL\n }", "title": "" }, { "docid": "5b40a4bb2ac2db121cddfe8999922a79", "score": "0.48194125", "text": "public function processItem($data)\n {\n $this->unpublishExpiredContents();\n }", "title": "" }, { "docid": "1944ece7bfb1148c4dfe81422cebcd93", "score": "0.48070866", "text": "public function gc()\n {\n $expired = $this->find('toGc')->all();\n foreach ($expired as $block) {\n $this->unblock($block->get('id'));\n }\n }", "title": "" }, { "docid": "187048aa47601225247c976b2fda21bc", "score": "0.47772557", "text": "protected function purgeCache() {\n\t\tConfigboxCacheHelper::purgeCache();\n\t}", "title": "" }, { "docid": "9910f1e7d0e33dca6ec958681edbb225", "score": "0.47758582", "text": "public function __destruct ()\n {\n curl_close($this->cURL);\n }", "title": "" }, { "docid": "bc162989ae64d17799945f1ac3dbd0d3", "score": "0.4775609", "text": "public function unsecure($url)\n {\n if ($this->files->exists($this->certificatesPath($url, 'crt'))) {\n $this->files->unlink($this->nginxPath($url));\n\n $this->files->unlink($this->certificatesPath($url, 'conf'));\n $this->files->unlink($this->certificatesPath($url, 'key'));\n $this->files->unlink($this->certificatesPath($url, 'csr'));\n $this->files->unlink($this->certificatesPath($url, 'crt'));\n }\n }", "title": "" }, { "docid": "808f26a3d13af056176a0b3c2255a32c", "score": "0.47739702", "text": "public function __destruct() {\n curl_close($this->curlHandle);\n }", "title": "" }, { "docid": "661b6e153da303fa6d8bf72b3143bcc1", "score": "0.4770514", "text": "function __destruct() {\n $key_info = $this->getCacheKey();\n $key_feed = $this->getCacheKey(true);\n\n // Info\n if ($this->infoOk() && !$this->cache->exists($key_info)) {\n $this->cache->set($key_info, $this->info->toJson());\n }\n\n // Feed\n if ($this->feedOk() && !$this->cache->exists($key_feed) && strpos($key_info, 'trending') === false) {\n $this->cache->set($key_feed, $this->feed->toJson());\n }\n }", "title": "" }, { "docid": "c281f6e41f4000ed366c0572a99619e6", "score": "0.47689128", "text": "public function reclaim();", "title": "" }, { "docid": "2a079b6f79ec0b92bc71a92c050fee29", "score": "0.47663894", "text": "public function garbage_collect()\n\t{\n\t\t$this->_cache_dir_usable or $this->_check_cache_dir();\n\n\t\t$this->_delete_file($this->_cache_dir, TRUE, FALSE, TRUE);\n\t\treturn;\n\t}", "title": "" }, { "docid": "0a72a5dc3176797a312afcbbf3fbb949", "score": "0.47557253", "text": "function purge_from_cdn($email=null)\n {\n if (!$this->container->cfs_http->getCDNMUrl())\n {\n throw new CDNNotEnabledException(\n \"Authentication response did not indicate CDN availability\");\n }\n $status = $this->container->cfs_http->purge_from_cdn($this->container->name . \"/\" . $this->name, $email);\n if ($status < 199 or $status > 299) {\n throw new InvalidResponseException(\n \"Invalid response (\".$status.\"): \".$this->container->cfs_http->get_error());\n }\n return True;\n }", "title": "" }, { "docid": "e15d3797b467a3f623d5c1d3af43ee37", "score": "0.47428793", "text": "private function finalizeUrlCounts()\n\t{\n\t\t// batch process any remaining pages in the page cache\n\t\tif (!empty($this->page_cache)) {\n\t\t\t$sql = sprintf('INSERT INTO %s (page_id) VALUES (%s)', $this->tempTable, implode('),(', $this->page_cache));\n\t\t\tmysql_query($sql);\n\t\t}\n\n\t\t// update the counts\n\t\t$sql = sprintf('UPDATE crawl_index\n\t\t\t\t\t\tLEFT JOIN (SELECT page_id, COUNT(page_id) AS total FROM %s GROUP BY page_id) AS crawl_count\n\t\t\t\t\t\tON (crawl_index.id = crawl_count.page_id)\n\t\t\t\t\t\tSET crawl_index.count = (crawl_index.count + IFNULL(crawl_count.total, 0))',\n\t\t\t\t\t\t$this->tempTable);\n\n\t\tmysql_query($sql);\n\n\t\t// delete the temporary table\n\t\t$sql = sprintf('DROP TABLE %s', $this->tempTable);\n\t\tmysql_query($sql);\n\t}", "title": "" }, { "docid": "c4a2f7fbd4594a167bdd31d865673eff", "score": "0.47421658", "text": "public function __destruct() {\n curl_close($this->request);\n }", "title": "" }, { "docid": "f59156a795b88dbc64860ab8b11b9d47", "score": "0.47386956", "text": "public function __destruct(){\n\t\t\t@curl_close($this->curl);\n\t\t}", "title": "" }, { "docid": "afa65e920ea9e973f0946dbb7fb0a519", "score": "0.47366002", "text": "public function __destruct()\n {\n curl_close($this->curl);\n $this->curl = null;\n }", "title": "" }, { "docid": "5a47a68610e634ca180419270e6a2211", "score": "0.47359216", "text": "public function __destruct()\r\n\t{\r\n\t\tif($this->curl_handle)\r\n\t\t{\r\n\t\t\tcurl_close($this->curl_handle);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47225976", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47225976", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47225976", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47225976", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47209886", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "94fbb0c5f90cd3eb6d78189818a62822", "score": "0.47209886", "text": "public function collectGarbage() {}", "title": "" }, { "docid": "be50fa7bfc2d6d33ffafa64f2a943cce", "score": "0.4708613", "text": "Function unload(){\n\t\t$this->removeBackup();\n\t\tif($this->info && isset($this->info['im'])){\n\t\t\t@imagedestroy($this->info['im']);\n\t\t}\n\t\t$this->info = false;\n\t}", "title": "" }, { "docid": "3994bf55267fbdcb55b21f4d34f9a911", "score": "0.47058925", "text": "function clearDead404s() {\n\t\t\tsqlquery(\"DELETE FROM bigtree_404s WHERE redirect_url = ''\");\n\t\t\t$this->growl(\"404 Report\",\"Cleared 404s\");\n\t\t}", "title": "" }, { "docid": "c886e1a3cdb1e94323b8c8917b9b6496", "score": "0.47041747", "text": "function delete_import_data() {\r\n\t\tdelete_post_meta_by_key( 'sq_img_data' );\r\n\t\tdelete_post_meta_by_key( 'sq_attach' );\r\n\t\tdelete_post_meta_by_key( 'sq_vc_grids' );\r\n\t\tdelete_post_meta_by_key( 'sq_domain' );\r\n\t\tdelete_post_meta_by_key( 'sq_base' );\r\n\t\tdelete_post_meta_by_key( 'sq_import' );\r\n\t}", "title": "" }, { "docid": "55644f8fa52556f7058d71ff1d7412b8", "score": "0.4697219", "text": "public function refreshAPCCache()\n {\n $configModel = new Default_Model_Configuration();\n $server = $configModel->getKey('api_url');\n $hash = isset($server) ? hash('sha1', $server) : '';\n \n $cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER);\n\n $cache->delete($hash . '-Output.default-format');\n }", "title": "" }, { "docid": "55644f8fa52556f7058d71ff1d7412b8", "score": "0.4697219", "text": "public function refreshAPCCache()\n {\n $configModel = new Default_Model_Configuration();\n $server = $configModel->getKey('api_url');\n $hash = isset($server) ? hash('sha1', $server) : '';\n \n $cache = Frapi_Cache::getInstance(FRAPI_CACHE_ADAPTER);\n\n $cache->delete($hash . '-Output.default-format');\n }", "title": "" }, { "docid": "92d27a4e2f72621eac46ed26eb0a76f4", "score": "0.46949726", "text": "function deleteLinkByKey($url_key) {\n\t\t$search = array(\n\t\t\t'link_search_term' => $url_key\n\t\t);\n\t\t$link_data = $this->_json_decode($this->getMyLinks($search),true);\n\t\t\n\t\tif( !empty($link_data['data']) ) {\n\t\t\t$linkid = $link_data['data'][0]['prim_uid'];\n\t\t\treturn $this->deleteLink($linkid);\n\t\t} else {\n\t\t\treturn $this->_json_encode(array('Error' => array('response' => 'Invalid link')));\n\t\t}\t\n\t}", "title": "" }, { "docid": "06b2dcd47261f131ba6c939b43de4165", "score": "0.46947026", "text": "public function cleanup();", "title": "" }, { "docid": "06b2dcd47261f131ba6c939b43de4165", "score": "0.46947026", "text": "public function cleanup();", "title": "" }, { "docid": "dc2e1210d55b7f82d0c996d20e445977", "score": "0.4687182", "text": "public function purgeSync() {\n\t\tforeach (BeezupHarvestClient::getByProcessingStatus ( BeezupOMProcessingStatus::IN_PROGRESS ) as $aHarvest)\n\t\t{\n\t\t\t$oHarvestClient = new BeezupHarvestClient ( (int)$aHarvest['id_harvest_client'] );\n\t\t\t$oHarvestClient->processing_status = BeezupOMProcessingStatus::TIMEOUT;\n\t\t\t$oHarvestClient->update ();\n\t\t}\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6df3d9af089637783213bb6902f1d76d", "score": "0.46864787", "text": "private function search_purge()\n {\n $log_data['runtime_jobname'] = __FUNCTION__;\n $log_data['start'] = $this->get_date();\n\n echo \"** SEARCH PURGE\\n\";\n $this->load->model('emailque_model');\n\n // remove hisroty records older than a year\n $log_data['runtime_count'] = $this->emailque_model->remove_old_searches(date(\"Y-m-d\", strtotime(\"-1 month\")));\n\n // LOG RUNTIME DATA\n $log_data['end'] = $this->get_date();\n $this->log_runtime($log_data);\n\n echo \"Searches purge complete with \" . $log_data['runtime_count'] . \" records removed - \" . date(\"Y-m-d H:i:s\") . \"\\n\\r\";\n }", "title": "" }, { "docid": "20b00ff6a8ab8e2eb9d8cf47eb61fa7f", "score": "0.46805546", "text": "public function __destruct()\n {\n if (is_resource($this->curl)) {\n curl_close($this->curl);\n }\n }", "title": "" }, { "docid": "0a43e6cc0e45e728bd2524727fcffc18", "score": "0.46786284", "text": "public function gc()\n\t{\n\t\t$prefix = $this->options['hash'] . '-cache-';\n\n\t\tforeach ($this->data as $key => $value)\n\t\t{\n\t\t\tif (substr($key, 0, strlen($prefix)) == $prefix)\n\t\t\t{\n\t\t\t\t$value = $this->data[$key];\n\n\t\t\t\tif ($this->isDataExpired($value))\n\t\t\t\t{\n\t\t\t\t\tunset($this->data[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "62b2567dc23207caf773148ae4d9b31e", "score": "0.4674798", "text": "function clean_site_details_cache($site_id = 0)\n {\n }", "title": "" }, { "docid": "7a67b3051e1eb05cb2016dc96ff6b4bc", "score": "0.46727803", "text": "public function purge_dates_archives( $post ) {\r\n\t\tforeach ( $this->get_dates_archives( $post ) as $url ) {\r\n\t\t\t$this->purge_url( $url, true );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c3c45f683cc575800227ba1b358d4c75", "score": "0.4671802", "text": "public function __destruct() {\n\t\t\n\t\t// Unset objects in memory ready for garbage collection\n\t\tunset(\n\t\t\t$this->api_key,\n\t\t\t$this->data_source,\n\t\t\t$this->product_data_source,\n\t\t\t$this->category_data_source,\n\t\t\t$this->e_careers_products_array,\n\t\t\t$this->e_careers_categories_array,\n\t\t\t$this->diagnostics\n\t\t);\n\t}", "title": "" }, { "docid": "d0f97059a6af488ef47cca1df7461e75", "score": "0.46688098", "text": "public function purgeEntry(Entry $entry, bool $consoleDebug = false)\n {\n Craft::info(\n \"Purging entry '{$entry->slug}' ({$entry->id})\",\n __METHOD__\n );\n\n $urls = Citrus::$plugin->entryurls->get($entry);\n\n $queue = Craft::$app->getQueue();\n\n foreach ($urls as $url) {\n /*$jobId = */$queue->push(new PurgeJob([\n 'url' => $url,\n 'consoleDebug' => $consoleDebug\n ]));\n }\n\n if ($consoleDebug) {\n // Run queue immediately\n $queue->run();\n }\n }", "title": "" }, { "docid": "5d98cec5f4615aee8b7e6073d07b50c5", "score": "0.46678287", "text": "function freeTemp( $virtualUrl ) {\n\t\twfDebug(__METHOD__.\": \".print_r($virtualUrl,true).\"\\n\");\n\t\tglobal $s3;\n\t\t$s3path = $virtualUrl;\n\t\t$infoS3 = $s3->getObjectInfo($this->AWS_S3_BUCKET, $s3path); // see if on S3\n\t\twfDebug(__METHOD__.\" s3path: $s3path, infoS3:\".print_r($infoS3,true).\"\\n\");\n\t\t$success = $s3->deleteObject($this->AWS_S3_BUCKET, $s3path);\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "56dca81581909dfaca07a54c032b6933", "score": "0.4661919", "text": "function cleanDBonPurge() {\n Rule::cleanForItemAction($this, '%entities_id');\n Rule::cleanForItemCriteria($this);\n\n $this->deleteChildrenAndRelationsFromDb(\n [\n Entity_KnowbaseItem::class,\n Entity_Reminder::class,\n Entity_RSSFeed::class,\n ]\n );\n }", "title": "" }, { "docid": "e41f2baaa7975fffc19d9efba2b46185", "score": "0.46577287", "text": "public function __destruct()\n\t{\n\t\tif (isset($this->handle)) {\n\t\t\tcurl_close($this->handle);\n\t\t}\n\t}", "title": "" }, { "docid": "f35f15d1a344f04b79e3e97b4c9fb417", "score": "0.46566108", "text": "public function __destruct()\n {\n if ($this->ressource) {\n imap_expunge($this->ressource);\n imap_close($this->ressource);\n }\n }", "title": "" }, { "docid": "847a16de28c7b99a51b91835b548a0f1", "score": "0.46515608", "text": "public function queue_cleanup_personal_data() {\n\t\tself::$background_process->schedule_ended_subscription_anonymization();\n\t}", "title": "" }, { "docid": "ba28b4dadfdfa5b8e6fa54d1be323f66", "score": "0.46435815", "text": "public function cleanUpGarbage()\n\t{\n\t\t$phptalCacheFilesExpire = time() - $this->getCacheLifetime() * 3600 * 24;\n\t\t$upperLimit = $this->getPhpCodeDestination() . 'tpl_' . $phptalCacheFilesExpire . '_';\n\t\t$lowerLimit = $this->getPhpCodeDestination() . 'tpl_0_';\n\t\t$phptalCacheFiles = glob($this->getPhpCodeDestination() . 'tpl_*.' . $this->getPhpCodeExtension() . '*');\n\n\t\tif ($phptalCacheFiles)\n\t\t{\n\t\t\tforeach($phptalCacheFiles as $index => $file)\n\t {\n\t\t\t\tif ($file > $upperLimit && substr($file,0,strlen($lowerLimit)) !== $lowerLimit)\n\t\t\t\t{\n\t\t\t\t unset($phptalCacheFiles[$index]);\n\t\t\t\t}\n\t }\n\t foreach($phptalCacheFiles as $file)\n\t {\n\t $time = filemtime($file);\n\t if ($time && $time < $phptalCacheFilesExpire) @unlink($file);\t\t\t \n\t\t }\n\t }\n\t}", "title": "" }, { "docid": "18b73dd2e451837345ac58abaa01f508", "score": "0.4642902", "text": "public function view_cleanup(){\n $url = sprintf(\"%s/%s\", $this->getUrl(), self::$_urls[\"view_cleanup\"]);\n return CouchNet::POST($url);\n }", "title": "" }, { "docid": "9f87b50bca60c10aa078b8a1ee546c92", "score": "0.4642757", "text": "function remove_url_field($fields){\n unset($fields['url']);\n return $fields;\n }", "title": "" } ]
6f32a2347fbc4a75945dd625054aed97
Journal Functions save_journal() : Saves the data that the user enters get_the_journal_form : Displays the form to save a Journal Entry get_the_journal_form_popup : Displays the form to save a Journal Entry via Popup get_all_journal() : Returns all the Journals entry of the Logued in user get_some_journal() : Returns the passed amount of journals Entries for the Logued in User
[ { "docid": "3dfa2318bc7b01d66138b6e158f063c5", "score": "0.625281", "text": "function get_the_journal_form($lesson)\n{\n global $post;\n $user_id = get_current_user_id();\n $theoutput = '<form action=\"' . esc_url( $_SERVER['REQUEST_URI'] ) . '\" method=\"post\" id=\"journal_form\">'\n .'<input type=\"hidden\" name=\"lesson\" value=\"'.$lesson[0].'\" />'\n .'<input type=\"hidden\" name=\"userid\" value=\"'.$user_id.'\" />'\n .'<textarea rows=\"4\" cols=\"50\" class=\"boxed-content-scroll\" name=\"thejournal_lesson\"></textarea> '\n .'<p>&nbsp;</p>'\n .'<div class=\"button-medium\"><a href=\"#\" class=\"submit_journal\">Submit</a></div>' \n .'<div class=\"button-medium\"><a href=\"/Journal\">View All Entries...</a></div>'\n .'</form>';\n return $theoutput; \n}", "title": "" } ]
[ { "docid": "29f333b58cf7b2366d7ec944efce76c9", "score": "0.6667404", "text": "function Add()\r\n\t{\r\n\t\t$strJournalSubject = \"\";\r\n\t\t$strJournalBody = \"\";\r\n\t\t$strJournalCategory = \"\";\r\n\t\t\r\n\t\tif(isset($_POST['Subject']))\r\n\t\t{\r\n\t\t\t$strJournalSubject = $_POST['Subject'];\r\n\t\t}\r\n\r\n\t\tif(isset($_POST['Category']))\r\n\t\t{\r\n\t\t\t$strJournalCategory = $_POST['Category'];\r\n\t\t}\r\n\r\n\t\tif(isset($_POST['Body']))\r\n\t\t{\r\n\t\t\t$strJournalBody = $_POST['Body'];\r\n\t\t}\r\n\t\t\r\n\t\tglobal $g_oUserSession;\r\n\t\t$ojournalCategory=journalCategory::GetInstance();\r\n\t\t$mailer = new email();\r\n\t\t$userID = GetUserID($strJournalSubject);\r\n \r\n /*--------------------------------------------------------------------------\r\n \tMake sure the user has the right/org combination for adding this journal \r\n \tentry.\r\n ----------------------------------------------------------------------------*/\t\t\r\n\t\tif(!$g_oUserSession->HasRight($this->rights_Add))\r\n\t\t{\r\n\t\t\treturn $this->OutputFormResults('false', $g_oUserSession->results->GetMessage());\r\n\t\t}\r\n\t\t\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tMake sure the names are valid\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\t$strJournalBody = CleanupSmartQuotes($strJournalBody);\r\n\t\t$strJournalBody = trim($strJournalBody); \r\n\t\t\r\n\t\tif(!$this->IsValidBody($strJournalBody))\r\n\t\t{\r\n\t\t\t$this->OutputFormResults('false', $this->results->GetMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tA user must be selected as the subject of the journal entry\r\n\t\t----------------------------------------------------------------------------*/\t\t\r\n\t\tif($userID < 0)\r\n\t\t{\r\n\t\t\treturn $this->OutputFormResults('false', \"Invalid user.\");\r\n\t\t}\r\n\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tA category must be assigned to the journal entry\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\t$catID = $ojournalCategory->GetID($strJournalCategory);\r\n\t\t\r\n\t\tif($catID < 0)\r\n\t\t{\r\n\t\t\treturn $this->OutputFormResults('false', \"Invalid category.\");\r\n\t\t}\r\n\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tbuild the record\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\t$arInsert = array();\r\n\t\t$arInsert[$this->field_Subject] = $userID;//$strJournalSubject;\r\n\t\t$arInsert[$this->field_Body] = $strJournalBody;\r\n\t\t$arInsert[$this->field_Create_Date] = Date(\"c\");\r\n\t\t$arInsert[$this->field_Poster] = $g_oUserSession->GetUserID();\r\n\t\t$arInsert[$this->field_Category] = $catID;\r\n\t\t\t\t\r\n\t\tif(!$this->db->insert($this->table_Name, $arInsert))\r\n\t\t{\r\n\t\t\treturn $this->OutputFormResults('false', \"Unable to add your journal entry due to database error.\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tSends an email to the user telling them their journal entry was\r\n\t\t\tsubmitted. The email contains the entire entry so they have a \r\n\t\t\trecord of its submission.\r\n\t\t----------------------------------------------------------------------------*/\t\t\r\n\t\t$strDate = date(\"F j, Y\");\r\n\t\t$strJournalBody = stripslashes($strJournalBody);\r\n\t\t$strDisplayBody = nl2br($strJournalBody);\r\n\t\t$strJournalSubject = str_replace(\".\", \" \", $strJournalSubject);\t\r\n\t\t$strJournalSubject = ucwords($strJournalSubject);\r\n\t\t$strEmailSubject = \"Your journal entry has been submitted\";\r\n\t\t$strEmailBody = \"Your journal entry has been submitted. You may keep this email as \r\n\t\ta record of your journal entry, which follows in its entirety:<br><br> \r\n\t\t<b>Subject Employee:</b> $strJournalSubject<br><br>\r\n\t\t<b>Date of Journal Entry:</b> $strDate<br><br>\r\n\t\t<b>Event Description:</b> $strDisplayBody\";\r\n\t\t\t\t\r\n\t\tif($mailer->SendToOwner($strEmailSubject, \"$strEmailBody\") == 0)\r\n\t\t{\r\n\t\t\t$strResult = \"Your journal entry has been added.\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$strResult = \"Your journal entry was added, but an email was not sent [\" . $mailer->results->GetMessage().\"].\";\r\n\t\t}\r\n\r\n\t\treturn $this->OutputFormResults('true', $strResult);\r\n\t}", "title": "" }, { "docid": "560587e70fe4096fde941e62d6b9c3fd", "score": "0.65114015", "text": "public static function journal($data)\n {\n $account_receivable = JournalHelper::getAccount('point sales indirect', 'account receivable');\n $position = JournalHelper::position($account_receivable);\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $account_receivable;\n $journal->description = 'invoice indirect sales [' . $data['formulir']->form_number.']';\n $journal->$position = $data['value_of_account_receivable'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id = $data['invoice']->person_id;\n $journal->subledger_type = get_class($data['invoice']->person);\n $journal->save();\n\n // 2. Journal Income Tax Payable\n if ($data['invoice']->tax != 0) {\n $income_tax_receivable = JournalHelper::getAccount('point sales indirect', 'income tax payable');\n $position = JournalHelper::position($income_tax_receivable);\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $income_tax_receivable;\n $journal->description = 'invoice indirect sales [' . $data['formulir']->form_number.']';\n $journal->$position = $data['value_of_income_tax_payable'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id = $data['invoice']->person_id;\n $journal->subledger_type = get_class($data['invoice']->person);\n $journal->save();\n }\n\n // 3. Journal Sales Of Goods\n $sales_of_goods = JournalHelper::getAccount('point sales indirect', 'sale of goods');\n $position = JournalHelper::position($sales_of_goods);\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $sales_of_goods;\n $journal->description = 'invoice indirect sales [' . $data['formulir']->form_number.']';\n $journal->$position = $data['value_of_sale_of_goods'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id = $data['invoice']->person_id;\n $journal->subledger_type = get_class($data['invoice']->person);\n $journal->save();\n\n // 4. Journal Sales Discount\n if ($data['invoice']->discount > 0) {\n $sales_discount = JournalHelper::getAccount('point sales indirect', 'sales discount');\n $position = JournalHelper::position($sales_discount);\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $sales_discount;\n $journal->description = 'invoice indirect sales [' . $data['formulir']->form_number.']';\n $journal->$position = $data['value_of_discount'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id = $data['invoice']->person_id;\n $journal->subledger_type = get_class($data['invoice']->person);\n $journal->save();\n }\n\n // 5. Journal Expedition Cost\n if ($data['invoice']->expedition_fee > 0) {\n $cost_of_sales = JournalHelper::getAccount('point sales indirect', 'expedition income');\n $position = JournalHelper::position($cost_of_sales);\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $cost_of_sales;\n $journal->description = 'invoice indirect sales [' . $data['formulir']->form_number.']';\n $journal->$position = $data['value_of_expedition_income'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id = $data['invoice']->person_id;\n $journal->subledger_type = get_class($data['invoice']->person);\n $journal->save();\n }\n\n $cost_of_sales_account = JournalHelper::getAccount('point sales indirect', 'cost of sales');\n $journal = new Journal;\n $journal->form_date = $data['formulir']->form_date;\n $journal->coa_id = $cost_of_sales_account;\n $journal->description = 'invoice indirect sales \"' . $data['formulir']->form_number.'\"';\n $journal->debit = $data['value_of_cost_of_sales'];\n $journal->form_journal_id = $data['formulir']->id;\n $journal->form_reference_id;\n $journal->subledger_id;\n $journal->subledger_type;\n $journal->save();\n }", "title": "" }, { "docid": "5a9698ffcdadae17343b6e6107d81aa2", "score": "0.6493344", "text": "function journalist_form($journalist, $newspaper_id, $errors = array()){\n\n\t$ret = '<div id=\"one-journalist-info-box\">';\n\t$ret .= '<form action=\"../journalist\" name=\"journalist\" class=\"login\" method=\"POST\" accept-charset=\"utf-8\">';\n\t$journalist_fields = array('name', 'email', 'telephone', 'fax', 'interests' );\n $ret .= '<table>';\n\tforeach ($journalist_fields as $fieldname){\n\t\t\n\t\tif (isset($journalist)){\n\t\t\t$ret .= journalist_field($fieldname, $journalist, $errors);\n\t\t}else{\n\t\t\t$ret .= journalist_field($fieldname, $journalist, $errors);\n\t\t}\n\t}\n\t$ret .= '<tr><td colspan=2>';\n\tif (isset($journalist)){\n\t\t$newspaper_id = $journalist['newspaper_id'];\n\t\t$ret .= '<input type=\"hidden\" name=\"id\" value=\"' . $journalist['id'] . '\">';\n\t}\t\n\t$ret .= '<input type=\"hidden\" name=\"newspaper_id\" value=\"' . $newspaper_id . '\">';\n\t$ret .= '<input type=\"hidden\" name=\"update\" value=\"true\">';\n\t$ret .= '<input type=\"submit\" value=\"Update\">';\n\t$ret .= '</td></tr></table>';\n\t$ret .= '</form>';\n\t$ret .= '</div>';\n\treturn $ret;\n}", "title": "" }, { "docid": "ded672cd36c79f0f2c9d28c9e2235bf5", "score": "0.6401012", "text": "function journal_user_complete_index($course, $user, $journal, $journalopen, $heading) {\n\n if (isteacher($course->id)) {\n $entrycount = journal_count_entries($journal, get_current_group($course->id));\n $entryinfo = \"&nbsp;(<a href=\\\"report.php?id=$journal->coursemodule\\\">\".get_string(\"viewallentries\",\"journal\", $entrycount).\"</a>)\";\n } else {\n $entryinfo = \"\";\n }\n\n $journal->name = \"<a href=\\\"view.php?id=$journal->coursemodule\\\">\".format_string($journal->name,true).\"</a>\";\n\n if ($heading) {\n echo \"<h3>$heading - $journal->name$entryinfo</h3>\";\n } else {\n echo \"<h3>$journal->name$entryinfo</h3>\";\n }\n\n print_simple_box_start(\"left\", \"90%\");\n echo format_text($journal->intro, $journal->introformat);\n print_simple_box_end();\n echo \"<br clear=\\\"all\\\" />\";\n echo \"<br />\";\n \n if (isstudent($course->id) or isteacher($course->id)) {\n\n print_simple_box_start(\"right\", \"90%\");\n \n if ($journalopen) {\n echo \"<p align=\\\"right\\\"><a href=\\\"edit.php?id=$journal->coursemodule\\\">\";\n echo get_string(\"edit\").\"</a></p>\";\n } else {\n echo \"<p align=\\\"right\\\"><a href=\\\"view.php?id=$journal->coursemodule\\\">\";\n echo get_string(\"view\").\"</a></p>\";\n }\n \n if ($entry = get_record(\"journal_entries\", \"userid\", $user->id, \"journal\", $journal->id)) {\n if ($entry->modified) {\n echo \"<p align=\\\"center\\\"><font size=\\\"1\\\">\".get_string(\"lastedited\").\": \".userdate($entry->modified).\"</font></p>\";\n }\n if ($entry->text) {\n echo format_text($entry->text, $entry->format);\n }\n if ($entry->teacher) {\n $grades = make_grades_menu($journal->assessed);\n journal_print_feedback($course, $entry, $grades);\n }\n } else {\n print_string(\"noentry\", \"journal\");\n }\n \n print_simple_box_end();\n echo \"<br clear=\\\"all\\\" />\";\n echo \"<br />\";\n }\n\n}", "title": "" }, { "docid": "60f6e35bff05a3d508f2a4e35020c4bc", "score": "0.63730514", "text": "function save_form(){\n\t\n\t// create entry-object and check the data\n\t$entry_obj = new Entries(PATH_TO_DATA, 1);\n\t$entry_obj->check_new_entry($_SESSION['gbook']['new_entry']);\n\t\n\t\n\t// errors -> create error-messages and display form with errors\n\tif(0<count($entry_obj->error)){\n\t\t$errormessage = '<p class=\"gb_error\">';\n\t\tforeach($entry_obj->error as $error){\n\t\t\t$errormessage .= $error.'<br/>';\n\t\t}\n\t\t$errormessage .= '</p>';\n\t\t\n\t\treturn display_form($errormessage);\n\t}\n\t\n\t\n\t// no errors -> save entry\n\telse{\n\t\n\t\t// could save the new entry\n\t\tif($entry_obj->new_entry($_SESSION['gbook']['new_entry'])){\n\t\t\t\n\t\t\t// display info for success and admin-mail\n\t\t\tif(ENABLE_ENTRIES){\n\t\t\t\treturn display_entries('<p class=\"gb_message\">###save_successful_with_adminmail###</p>');\n\t\t\t}\n\t\t\t// display info for success\n\t\t\telse{\n\t\t\t\treturn display_entries('<p class=\"gb_message\">###save_successful###</p>');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// there was a problem when saving the entry\n\t\telse{\n\t\t\treturn display_entries('<p class=\"gb_error\">###save_problem###:<br/>'.$entry_obj->error[0].'</p>');\n\t\t}\n\t}\n}", "title": "" }, { "docid": "02ce41a56f1a68a3f8716d7c0f3cc336", "score": "0.63659185", "text": "function printJournalAndForm($targetdir,$extraHtml = ''){\n\n $orig = $targetdir . '/' . $_GET['j'];\n $journalFile = $targetdir . '/' . $_GET['j'] . '_journal.txt';\n\n $journalsAndForm = '<div class=\"journalheader\"><span class=\"fa fa-close closejournal\"/><span class=\"headertext\">Please leave a journal entry below</span><div>' . $extraHtml;\n\n if(is_file($journalFile)){\n $journalsAndForm .= \"<div class='existingjournals'>\" . nl2br(file_get_contents($journalFile)) . \"</div>\";\n }\n\n $journalsAndForm .= \"\n <form class='newjournal' onsubmit='return postNewJournal()'>\n <input type='hidden' name='targetfile' value='{$_GET['j']}'/>\n\t\t<label>Journal Date: </label><input type='date' name='journaldate'/>\n <textarea name='thejournal' placeholder='Type your journal here.'></textarea>\n <input type='submit' value='Add Journal Entry'/>\n </form>\n \";\n\n print $journalsAndForm;\n\n exit();\n}", "title": "" }, { "docid": "04a3c9708f9a19f7891c3c71a2798938", "score": "0.6350192", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = FormAnswer::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `form_answer` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`signup_entry_id`,\n\t\t\t\t\t`form_question_id`,\n\t\t\t\t\t`text_value`,\n\t\t\t\t\t`address_id`,\n\t\t\t\t\t`phone_id`,\n\t\t\t\t\t`email_id`,\n\t\t\t\t\t`integer_value`,\n\t\t\t\t\t`boolean_value`,\n\t\t\t\t\t`date_value`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intSignupEntryId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intFormQuestionId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strTextValue) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intAddressId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intPhoneId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intEmailId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intIntegerValue) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->blnBooleanValue) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->dttDateValue) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "3f565c010b0ef7a22099ac9396ebe89a", "score": "0.62395555", "text": "public function GetJournal() {\n\t\t\treturn FormAnswer::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "7e56405eb772c810ef6eb20245677f7c", "score": "0.6209183", "text": "public function journal() {\n\t\trequire_once(MODEL . \"master/company.php\");\n\t\trequire_once(MODEL . \"common/doc_type.php\");\n\t\trequire_once(MODEL . \"accounting/voucher_type.php\");\n require_once(MODEL . \"master/project.php\");\n\n\t\tif (count($this->getData) > 0) {\n\t\t\t$start = strtotime($this->GetGetValue(\"start\"));\n\t\t\t$end = strtotime($this->GetGetValue(\"end\"));\n $projectId = $this->GetGetValue(\"projectId\");\n\t\t\t$docIds = $this->GetGetValue(\"docType\", array());\n\t\t\t$status = $this->GetGetValue(\"status\");\n\t\t\t$output = $this->GetGetValue(\"output\", \"web\");\n\t\t\t$showNo = $this->GetGetValue(\"showNo\", \"0\") == \"1\";\n\t\t\t$showAdditionalColumn = $this->GetGetValue(\"showCol\", \"0\") == \"1\";\n\t\t\t$orientation = strtoupper($this->GetGetValue(\"orientation\", \"p\"));\n\t\t\tif (!in_array($orientation, array(\"P\", \"L\"))) {\n\t\t\t\t$orientation = \"P\";\n\t\t\t}\n\t\t\tif (count($docIds) == 0) {\n\t\t\t\t$this->persistence->SaveState(\"error\", \"Mohon pilih jenis dokumen terlebih dahulu. Sekurang-kurangnya pilih 1.\");\n\t\t\t\tredirect_url(\"accounting.report/journal\");\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t\t// OK bikin querynya... (Untuk Bank masuk dilihat dari jenis dokumen BM dan OR)\n\t\t\tif ($showAdditionalColumn) {\n\t\t\t\t$query =\n \"SELECT\n a.id, a.voucher_date, a.doc_no, b.note, e.entity_cd, c.acc_name AS acc_debit, c.acc_no AS acc_no_debit, b.amount, d.acc_name AS acc_credit, d.acc_no AS acc_no_credit,\n dept.dept_code, activity.act_code, project.project_name, debtor.debtor_name, creditor.creditor_name, employee.nama\n FROM ac_voucher_master AS a\n JOIN ac_voucher_detail AS b ON a.id = b.voucher_master_id\n JOIN cm_acc_detail AS c ON b.acc_debit_id = c.id\n JOIN cm_acc_detail AS d ON b.acc_credit_id = d.id\n JOIN cm_company AS e ON a.entity_id = e.entity_id\n LEFT JOIN cm_dept AS dept ON b.dept_id = dept.id\n LEFT JOIN cm_activity AS activity ON b.activity_id = activity.id\n LEFT JOIN cm_project AS project ON b.project_id = project.id\n LEFT JOIN ar_debtor_master AS debtor ON b.debtor_id = debtor.id\n LEFT JOIN ap_creditor_master AS creditor ON b.creditor_id = creditor.id\n LEFT JOIN hr_employee_master AS employee ON b.employee_id = employee.id\n WHERE a.is_deleted = 0 AND a.voucher_date BETWEEN ?start AND ?end AND a.doc_type_id IN ?docTypes %s\";\n if ($projectId > 0){\n $query.= \" And b.project_id = ?projectId\";\n }\n $query.= \" ORDER BY a.voucher_date, a.doc_no\";\n\t\t\t} else {\n\t\t\t\t$query =\n \"SELECT a.id, a.voucher_date, a.doc_no, b.note, e.entity_cd, c.acc_name AS acc_debit, c.acc_no AS acc_no_debit, b.amount, d.acc_name AS acc_credit, d.acc_no AS acc_no_credit\n FROM ac_voucher_master AS a\n JOIN ac_voucher_detail AS b ON a.id = b.voucher_master_id\n JOIN cm_acc_detail AS c ON b.acc_debit_id = c.id\n JOIN cm_acc_detail AS d ON b.acc_credit_id = d.id\n JOIN cm_company AS e ON a.entity_id = e.entity_id\n WHERE a.is_deleted = 0 AND a.voucher_date BETWEEN ?start AND ?end AND a.doc_type_id IN ?docTypes %s\";\n if ($projectId > 0){\n $query.= \" And b.project_id = ?projectId\";\n }\n $query.= \" ORDER BY a.voucher_date, a.doc_no\";\n\n\t\t\t}\n\n\t\t\t$extendedWhere = \"\";\n\t\t\tif ($this->userCompanyId != 7 && $this->userCompanyId != null) {\n\t\t\t\t$extendedWhere .= \" AND a.entity_id = ?sbu\";\n\t\t\t\t$this->connector->AddParameter(\"?sbu\", $this->userCompanyId);\n\t\t\t}\n\t\t\tif ($status != null) {\n\t\t\t\t$extendedWhere .= \" AND a.status = ?status\";\n\t\t\t\t$this->connector->AddParameter(\"?status\", $status);\n\t\t\t}\n\n\t\t\t$this->connector->CommandText = sprintf($query, $extendedWhere);\n\t\t\t$this->connector->AddParameter(\"?start\", date(SQL_DATETIME, $start));\n\t\t\t$this->connector->AddParameter(\"?end\", date(SQL_DATETIME, $end));\n\t\t\t$this->connector->AddParameter(\"?projectId\", $projectId);\n $this->connector->AddParameter(\"?docTypes\", $docIds);\n\t\t\t$report = $this->connector->ExecuteQuery();\n\t\t} else {\n\t\t\t$end = time();\n\t\t\t$start = mktime(0, 0, 0, date(\"m\"), 1, date(\"Y\"));\n $projectId = null;\n\t\t\t$docIds = array();\n\t\t\t$status = null;\n\t\t\t$showNo = true;\n\t\t\t$showAdditionalColumn = false;\n\t\t\t$report = null;\n\t\t\t$output = \"web\";\n\t\t\t$orientation = \"P\";\n\n\t\t\tif ($this->persistence->StateExists(\"error\")) {\n\t\t\t\t$this->Set(\"error\", $this->persistence->LoadState(\"error\"));\n\t\t\t\t$this->persistence->DestroyState(\"error\");\n\t\t\t}\n\t\t}\n\n\t\t$company = new \\Company();\n\t\tif ($this->userCompanyId == 7 || $this->userCompanyId == null) {\n\t\t\t$company = $company->LoadById(7);\n\t\t} else {\n\t\t\t$company = $company->LoadById($this->userCompanyId);\n\t\t}\n\n\t\t$docType = new \\DocType();\n\t\t$vocType = new \\VoucherType();\n\n $project = new \\Project();\n $this->Set(\"projectList\", $project->LoadByEntityId($this->userCompanyId));\n $this->Set(\"projectId\", $projectId);\n\t\t$this->Set(\"start\", $start);\n\t\t$this->Set(\"end\", $end);\n\t\t$this->Set(\"docTypes\", $docType->LoadHaveVoucher());\n\t\t$this->Set(\"vocTypes\", $vocType->LoadAll());\n\t\t$this->Set(\"docIds\", $docIds);\n\t\t$this->Set(\"status\", $status);\n\t\t$this->Set(\"showNo\", $showNo);\n\t\t$this->Set(\"showCol\", $showAdditionalColumn);\n\t\t$this->Set(\"report\", $report);\n\t\t$this->Set(\"output\", $output);\n\t\t$this->Set(\"orientation\", $orientation);\n\t\t$this->Set(\"company\", $company);\n\t}", "title": "" }, { "docid": "604125d9e5d72c5a0a704990d18a779b", "score": "0.62076956", "text": "function backup_journal_entries ($bf,$preferences,$journal) {\n\n global $CFG;\n\n $status = true;\n\n $journal_entries = get_records(\"journal_entries\",\"journal\",$journal,\"id\");\n //If there is entries\n if ($journal_entries) {\n //Write start tag\n $status =fwrite ($bf,start_tag(\"ENTRIES\",4,true));\n //Iterate over each entry\n foreach ($journal_entries as $jou_ent) {\n //Start entry\n $status =fwrite ($bf,start_tag(\"ENTRY\",5,true));\n //Print journal_entries contents\n fwrite ($bf,full_tag(\"ID\",6,false,$jou_ent->id));\n fwrite ($bf,full_tag(\"USERID\",6,false,$jou_ent->userid));\n fwrite ($bf,full_tag(\"MODIFIED\",6,false,$jou_ent->modified));\n fwrite ($bf,full_tag(\"TEXT\",6,false,$jou_ent->text));\n fwrite ($bf,full_tag(\"FORMAT\",6,false,$jou_ent->format));\n fwrite ($bf,full_tag(\"RATING\",6,false,$jou_ent->rating));\n fwrite ($bf,full_tag(\"COMMENT\",6,false,$jou_ent->comment));\n fwrite ($bf,full_tag(\"TEACHER\",6,false,$jou_ent->teacher));\n fwrite ($bf,full_tag(\"TIMEMARKED\",6,false,$jou_ent->timemarked));\n fwrite ($bf,full_tag(\"MAILED\",6,false,$jou_ent->mailed));\n //End entry\n $status =fwrite ($bf,end_tag(\"ENTRY\",5,true));\n }\n //Write end tag\n $status =fwrite ($bf,end_tag(\"ENTRIES\",4,true));\n }\n return $status;\n }", "title": "" }, { "docid": "ae6e64c66b27076bdcdc46123f3c74dd", "score": "0.60519075", "text": "function journal_print_user_entry($course, $user, $entry, $teachers, $grades) {\n global $USER;\n\n echo \"\\n<table border=\\\"1\\\" cellspacing=\\\"0\\\" valign=\\\"top\\\" cellpadding=\\\"10\\\">\";\n \n echo \"\\n<tr>\";\n echo \"\\n<td rowspan=\\\"2\\\" width=\\\"35\\\" valign=\\\"top\\\">\";\n print_user_picture($user->id, $course->id, $user->picture);\n echo \"</td>\";\n echo \"<td nowrap=\\\"nowrap\\\" width=\\\"100%\\\">\".fullname($user);\n if ($entry) {\n echo \"&nbsp;&nbsp;<font size=\\\"1\\\">\".get_string(\"lastedited\").\": \".userdate($entry->modified).\"</font>\";\n }\n echo \"</td></tr>\";\n\n echo \"\\n<tr><td width=\\\"100%\\\">\";\n if ($entry) {\n echo format_text($entry->text, $entry->format);\n } else {\n print_string(\"noentry\", \"journal\");\n }\n echo \"</td></tr>\";\n\n if ($entry) {\n echo \"\\n<tr>\";\n echo \"<td width=\\\"35\\\" valign=\\\"top\\\">\";\n if (!$entry->teacher) {\n $entry->teacher = $USER->id;\n }\n print_user_picture($entry->teacher, $course->id, $teachers[$entry->teacher]->picture);\n echo '</td>';\n echo \"<td>\".get_string(\"feedback\").\":\";\n choose_from_menu($grades, \"r$entry->id\", $entry->rating, get_string(\"nograde\").\"...\");\n if ($entry->timemarked) {\n echo \"&nbsp;&nbsp;<font size=\\\"1\\\">\".userdate($entry->timemarked).\"</font>\";\n }\n echo \"<br /><textarea name=\\\"c$entry->id\\\" rows=\\\"12\\\" cols=\\\"60\\\" wrap=\\\"virtual\\\">\";\n p($entry->entrycomment);\n echo \"</textarea><br />\";\n echo \"</td></tr>\";\n }\n echo \"</table><br clear=\\\"all\\\" />\\n\";\n}", "title": "" }, { "docid": "edbec4fbd13249b96204f9b8a114d2da", "score": "0.6025717", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = WikiItem::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `wiki_item` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`path`,\n\t\t\t\t\t`wiki_item_type_id`,\n\t\t\t\t\t`editor_minimum_person_type_id`,\n\t\t\t\t\t`override_navbar_index`,\n\t\t\t\t\t`override_subnav_index`,\n\t\t\t\t\t`current_wiki_version_id`,\n\t\t\t\t\t`current_name`,\n\t\t\t\t\t`current_posted_by_person_id`,\n\t\t\t\t\t`current_post_date`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strPath) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intWikiItemTypeId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intEditorMinimumPersonTypeId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intOverrideNavbarIndex) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intOverrideSubnavIndex) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intCurrentWikiVersionId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strCurrentName) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intCurrentPostedByPersonId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->dttCurrentPostDate) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "9123a1986e2a8acd1d7f2bd369313aa7", "score": "0.59928155", "text": "function createJournalOutput($journalData) {\n if (count($journalData) == 0) { return file_get_contents(\"data\\static\\\\errorCodes\\d.no_journals.html\"); }\n $key = appDecryptSessionData($_SESSION[\"username\"]);\n $journalData = appDecryptJournalEntries($journalData, $key);\n return renderJournalAccordian($journalData);\n}", "title": "" }, { "docid": "d241adafd25e65becd6d033c7eabd5ce", "score": "0.5977744", "text": "public function GetJournal() {\n\t\t\treturn ClassMeeting::GetJournalForId($this->intSignupFormId);\n\t\t}", "title": "" }, { "docid": "cd84a27d1025cb79298021cba3fa697f", "score": "0.5960412", "text": "public function run() {\n $this->write('page', isset($_REQUEST[\"page\"]) ? (int) $_REQUEST['page'] : 1);\n\n $journal_message = '';\n\n // $nick is setup above.. and then overwritten here -- lithium\n $nick = '';\n\n $userId = getSessionUserId();\n\n if ($userId > 0) {\n initUserById($userId);\n $user = new User();\n $user->findUserById($userId);\n // @TODO: this is overwritten below.. -- lithium\n $nick = $user->getNickname();\n $userbudget =$user->getBudget();\n $budget = number_format($userbudget);\n }\n\n $is_runner = !empty($_SESSION['is_runner']) ? 1 : 0;\n $is_payer = !empty($_SESSION['is_payer']) ? 1 : 0;\n $is_admin = !empty($_SESSION['is_admin']) ? 1 : 0;\n\n $workitem = new WorkItem();\n\n $filter = new Agency_Worklist_Filter();\n\n // krumch 20110418 Set to open Worklist from Journal\n $filter->initFilter();\n $filter->setName('.worklist');\n $project_id = 0;\n\n if (! empty($_REQUEST['status'])) {\n $filter->setStatus($_REQUEST['status']);\n } else {\n if (array_key_exists('status', $_REQUEST)) {\n $filter->setStatus('ALL');\n }\n }\n\n if (isset($_REQUEST['project'])) {\n $project = new Project();\n try {\n $project->loadByName($_REQUEST['project']);\n if ($project_id = $project->getProjectId()) {\n $filter->setProjectId($project_id);\n }\n } catch(Exception $e) {\n $filter->setProjectId(0);\n }\n unset($project);\n }\n\n if (! empty($_REQUEST['user'])) {\n $filter->setUser($_REQUEST['user']);\n } else {\n if (array_key_exists('user', $_REQUEST)) {\n $filter->setUser(0);\n }\n }\n\n if ($userId > 0 && isset($_POST['save_item'])) {\n $args = array(\n 'itemid',\n 'summary',\n 'project_id',\n 'status',\n 'notes',\n // @TODO: I don't think bid_fee_* fields are relevant anymore -- lithium\n 'bid_fee_desc',\n 'bid_fee_amount',\n 'bid_fee_mechanic_id',\n 'invite',\n // @TODO: Same goes for is_expense and is_rewarder.. -- lithium\n 'is_expense',\n 'is_rewarder',\n 'is_bug',\n 'bug_job_id'\n );\n\n foreach ($args as $arg) {\n // Removed mysql_real_escape_string, because we should\n // use it in sql queries, not here. Otherwise it can be applied twice sometimes\n $$arg = (! empty($_POST[$arg])) ? $_POST[$arg] : '';\n }\n\n $creator_id = $userId;\n\n if (!empty($_POST['itemid']) && ($_POST['status']) != 'Draft') {\n $workitem->loadById($_POST['itemid']);\n } else {\n $workitem->setCreatorId($creator_id);\n }\n $workitem->setSummary($summary);\n\n $workitem->setBugJobId($bug_job_id);\n // not every runner might want to be assigned to the item he created - only if he sets status to 'BIDDING'\n if ($status == 'Bidding' && $user->getIs_runner() == 1) {\n $runner_id = $userId;\n } else {\n $runner_id = 0;\n }\n\n $workitem->setRunnerId($runner_id);\n $workitem->setProjectId($project_id);\n $workitem->setStatus($status);\n $workitem->setNotes($notes);\n $workitem->is_bug = isset($is_bug) ? true : false;\n $workitem->save();\n\n $journal_message .= '**#' . $workitem->getId() . '**';\n if (!empty($_POST['itemid']) && ($_POST['status']) != 'Draft') {\n $journal_message .= \" updated \";\n } else {\n $journal_message .= \" added \";\n }\n $journal_message .= 'by @' . $nick;\n\n Notification::statusNotify($workitem);\n if (is_bug) {\n $bug_journal_message = \" (bug of job **#\".$bug_job_id.\"**)\";\n notifyOriginalUsersBug($bug_job_id, $workitem);\n }\n\n if (empty($_POST['itemid'])) {\n $bid_fee_itemid = $workitem->getId();\n $journal_message .= \"\\n\\n**\" . $summary . '**';\n if (!empty($_POST['files'])) {\n $files = explode(',', $_POST['files']);\n foreach ($files as $file) {\n $sql = 'UPDATE `' . FILES . '` SET `workitem` = ' . $bid_fee_itemid . ' WHERE `id` = ' . (int)$file;\n mysql_query($sql);\n }\n }\n } else {\n $bid_fee_itemid = $itemid;\n $journal_message .= $bug_journal_message . \"\\n\\n**\" . $summary . '**';\n }\n\n if (! empty($_POST['invite'])) {\n $people = explode(',', $_POST['invite']);\n invitePeople($people, $workitem);\n }\n\n // send journal notification is there is one\n if (! empty($journal_message)) {\n sendJournalNotification(stripslashes($journal_message));\n }\n }\n\n // Prevent reposts on refresh\n if (! empty($_POST)) {\n unset($_POST);\n $this->view = null;\n Utils::redirect('./jobs');\n exit();\n }\n\n $worklist_id = isset($_REQUEST['job_id']) ? intval($_REQUEST['job_id']) : 0;\n\n $this->write('filter', $filter);\n $this->write('req_status', isset($_GET['status']) ? $_GET['status'] : '');\n $this->write('review_only', (isset($_GET['status']) && $_GET['status'] == 'needs-review') ? 'true' : 'false');\n }", "title": "" }, { "docid": "2764e9533deeb508c9922532a567451e", "score": "0.5939002", "text": "public function createAction()\n {\n // load in the journal entry page and it's associated form\n $view = \\library\\View::fromFile(APP_PATH . '/views/new-journal-entry.tpl');\n $form = \\library\\View::fromFile(APP_PATH . '/views/forms/journal-entry.tpl');\n\n // if we've received a posted form, process it\n if(isset($_POST['formvar']) && 'journal-create' === $_POST['formvar'])\n {\n // parse the given date into a timestamp\n $valid = true;\n $timestamp = strtotime($_POST['date']);\n\n // now into a \\DateTime object that the structure requires\n if (false == $timestamp)\n {\n $valid = false;\n $message = 'Sorry, the date that you entered could not be recognised. Please use the formate d-m-y';\n }\n\n if( true === $valid )\n {\n try\n {\n $data = array (\n 'author' => $_POST['author'],\n 'date' => $date,\n 'subject' => $_POST['subject'],\n 'body' => $_POST['body'],\n 'mood' => $_POST['mood']\n );\n\n $entry = new \\models\\journal\\Entry($data);\n $entry->save();\n $view->message = 'Journal entry saved.';\n }\n catch(\\library\\datastructure\\Exception $ex)\n {\n $view->message = 'Sorry, there was a problem validating the journal entry. Please try again.';\n }\n }\n else\n {\n $view->message = $message;\n }\n }\n else\n {\n $view->form = $form;\n }\n\n $this->getLayout()->content = $view;\n $this->render();\n }", "title": "" }, { "docid": "c7ef9e0530d6ef60904af8fcad30d3bd", "score": "0.59345573", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = ClassMeeting::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `class_meeting` (\n\t\t\t\t\t`signup_form_id`,\n\t\t\t\t\t`class_term_id`,\n\t\t\t\t\t`class_course_id`,\n\t\t\t\t\t`class_instructor_id`,\n\t\t\t\t\t`date_start`,\n\t\t\t\t\t`date_end`,\n\t\t\t\t\t`location`,\n\t\t\t\t\t`meeting_day`,\n\t\t\t\t\t`meeting_start_time`,\n\t\t\t\t\t`meeting_end_time`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intSignupFormId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intClassTermId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intClassCourseId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intClassInstructorId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->dttDateStart) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->dttDateEnd) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strLocation) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intMeetingDay) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intMeetingStartTime) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intMeetingEndTime) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "d79b09bc400dfc8f23c59c3334c97c99", "score": "0.5860251", "text": "public function GetJournalEntryForm(){\n\n //======= Start Raw query =========//\n //$journals = DB::select( DB::raw(\"SELECT * from journal Order By name\") );\n //$accounts = DB::select( DB::raw(\"SELECT * from accounthead where isTransactional=1 or isTransactional is null Order By name\") );\n //$projects = DB::select( DB::raw(\"SELECT * from project Order By title\") );\n //======= End Raw query =========//\n \n $journals = DB::table('journal')->orderBy('name')->get();\n $accounts = DB::table('accounthead')->where('accounthead.isTransactional','=',1)->orwhere('accounthead.isTransactional','=',null)->orderBy('name')->get();\n $projects = DB::table('project')->orderBy('title')->get();\n\n \n \n return view('/Journal/journal_entry_add', compact('journals','accounts','projects'));\n \n }", "title": "" }, { "docid": "362b3eff8adea7bce52555e86b2f224b", "score": "0.5842376", "text": "public function getJournal()\n {\n return $this->journal;\n }", "title": "" }, { "docid": "9881d29aaab14353fd10016b66e3af4d", "score": "0.5840857", "text": "private static function addJournalOutput($inventory)\n {\n $journal = new Journal();\n $journal->form_date = $inventory->formulir->form_date;\n $journal->coa_id = $inventory->item->account_asset_id;\n $journal->description = 'Manufacture input process ' . $inventory->item->codeName;\n $journal->debit = abs($inventory->quantity * $inventory->price);\n $journal->credit = 0;\n $journal->form_journal_id = $inventory->formulir->id;\n $journal->form_reference_id;\n $journal->subledger_id = $inventory->item_id;\n $journal->subledger_type = get_class($inventory->item);\n $journal->save();\n\n // JOURNAL #2 of #2\n $work_in_process_account_id = JournalHelper::getAccount('manufacture process', 'work in process');\n\n $journal = new Journal();\n $journal->form_date = $inventory->formulir->form_date;\n $journal->coa_id = $work_in_process_account_id;\n $journal->description = 'Manufacture input process ' . $inventory->item->codeName;\n $journal->debit = 0;\n $journal->credit = abs($inventory->quantity * $inventory->price);\n $journal->form_journal_id = $inventory->formulir->id;\n $journal->form_reference_id;\n $journal->subledger_id;\n $journal->subledger_type;\n $journal->save();\n }", "title": "" }, { "docid": "162e55eb7e6ef280f85e4ade6d8e6dca", "score": "0.5799762", "text": "public function GetJournalForm(){\n\n return view('/Journal/journal_add');\n \n }", "title": "" }, { "docid": "3b82841b71091924f8ba7ef9d3f745fa", "score": "0.57897055", "text": "function journal_add_instance($journal) {\n// (defined by the form in mod.html) this function \n// will create a new instance and return the id number \n// of the new instance.\n\n $journal->timemodified = time();\n\n return insert_record(\"journal\", $journal);\n}", "title": "" }, { "docid": "0852ae62ff478788c6cdbaf2d0e7f38e", "score": "0.57833636", "text": "function index() {\n\t\t$this->validate();\n\t\t$journal = Request::getJournal();\n\t\t$user = Request::getUser();\n\t\tif ($journal) {\n\t\t\t$rtDao =& DAORegistry::getDAO('RTDAO');\n\t\t\t$rt = $rtDao->getJournalRTByJournal($journal);\n\t\t\tif (isset($rt)) {\n\t\t\t\t$version = $rtDao->getVersion($rt->getVersion(), $journal->getId());\n\t\t\t}\n\n\t\t\t// Display the administration menu for this journal.\n\n\t\t\t$this->setupTemplate();\n\t\t\t$templateMgr =& TemplateManager::getManager();\n\t\t\t$templateMgr->assign('helpTopicId', 'journal.managementPages.readingTools');\n\t\t\t$templateMgr->assign('versionTitle', isset($version)?$version->getTitle():null);\n\t\t\t$templateMgr->assign('enabled', $rt->getEnabled());\n\n\t\t\t$templateMgr->display('rtadmin/index.tpl');\n\t\t} elseif ($user) {\n\t\t\t// Display a list of journals.\n\t\t\t$journalDao =& DAORegistry::getDAO('JournalDAO');\n\t\t\t$roleDao =& DAORegistry::getDAO('RoleDAO');\n\n\t\t\t$journals = array();\n\n\t\t\t$allJournals =& $journalDao->getJournals();\n\t\t\t$allJournals =& $allJournals->toArray();\n\n\t\t\tforeach ($allJournals as $journal) {\n\t\t\t\tif ($roleDao->userHasRole($journal->getId(), $user->getId(), ROLE_ID_JOURNAL_MANAGER)) {\n\t\t\t\t\t$journals[] = $journal;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->setupTemplate();\n\t\t\t$templateMgr =& TemplateManager::getManager();\n\t\t\t$templateMgr->assign_by_ref('journals', $journals);\n\t\t\t$templateMgr->assign('helpTopicId', 'journal.managementPages.readingTools');\n\t\t\t$templateMgr->display('rtadmin/journals.tpl');\n\t\t} else {\n\t\t\t// Not logged in.\n\t\t\tValidation::redirectLogin();\n\t\t}\n\t}", "title": "" }, { "docid": "805594cbada35460d069cc7890f2d460", "score": "0.5776316", "text": "private static function addJournalInput($inventory)\n {\n $journal = new Journal();\n $journal->form_date = $inventory->formulir->form_date;\n $journal->coa_id = $inventory->item->account_asset_id;\n $journal->description = 'Manufacture input process ' . $inventory->item->codeName;\n $journal->debit = 0;\n $journal->credit = abs($inventory->quantity * $inventory->price);\n $journal->form_journal_id = $inventory->formulir->id;\n $journal->form_reference_id;\n $journal->subledger_id = $inventory->item_id;\n $journal->subledger_type = get_class($inventory->item);\n $journal->save();\n\n // JOURNAL #2 of #2\n $work_in_process_account_id = JournalHelper::getAccount('manufacture process', 'work in process');\n\n $journal = new Journal();\n $journal->form_date = $inventory->formulir->form_date;\n $journal->coa_id = $work_in_process_account_id;\n $journal->description = 'Manufacture input process ' . $inventory->item->codeName;\n $journal->debit = abs($inventory->quantity * $inventory->price);\n $journal->credit = 0;\n $journal->form_journal_id = $inventory->formulir->id;\n $journal->form_reference_id;\n $journal->subledger_id;\n $journal->subledger_type;\n $journal->save();\n }", "title": "" }, { "docid": "3f14597e00ec1b4b1febcaf4a8580eb8", "score": "0.5755201", "text": "function execute()\n\t{\n\n\t\t// basic\n\t\t$this->obj_journal\t\t= New journal_display;\n\t\t$this->obj_journal->journalname\t= \"customers\";\n\t\t\n\t\t// set the pages to use for forms or file downloads\n\t\t$this->obj_journal->prepare_set_form_process_page(\"customers/journal-edit.php\");\n\t\t$this->obj_journal->prepare_set_download_page(\"customers/journal-download-process.php\");\n\t\t\n\t\t// configure options form\n\t\t$this->obj_journal->prepare_predefined_optionform();\n\t\t$this->obj_journal->add_fixed_option(\"id\", $this->id);\n\n\t\t// load options form\n\t\t$this->obj_journal->load_options_form();\n\n\t\t// define SQL structure\n\t\t$this->obj_journal->sql_obj->prepare_sql_addwhere(\"customid='\". $this->id .\"'\");\t\t// we only want journal entries for this ticket!\n\n\t\t// process SQL\t\t\t\n\t\t$this->obj_journal->generate_sql();\n\t\t$this->obj_journal->load_data();\n\t}", "title": "" }, { "docid": "edc39a02c4f167600a2b1538c425dd53", "score": "0.5720789", "text": "function journal_update_instance($journal) {\n// (defined by the form in mod.html) this function \n// will update an existing instance with new data.\n\n $journal->timemodified = time();\n $journal->id = $journal->instance;\n\n return update_record(\"journal\", $journal);\n}", "title": "" }, { "docid": "d24a266db98956f05bb80aa1e0c72954", "score": "0.5715033", "text": "function journalist_display($journalist){\n $ret = '<div id=\"one-journalist-info-box\">';\n\t$ret .= '<h3 id=\"small-heading\">Updated!</h3>';\t\n\t$ret .= '<b>Name:</b> ' . $journalist['name'] . '<br />';\n\t$ret .= '<b>Email:</b> ' . $journalist['email'] . '<br />';\n\t$ret .= '<b>Telephone:</b> ' . $journalist['telephone'] . '<br />';\n\t$ret .= '<b>Fax:</b> ' . $journalist['fax'] . '<br />';\n\t$ret .= '<b>Interests:</b> ' . $journalist['interests'] . '<br />';\t\n\t$ret .= '</div>';\n\treturn $ret;\n}", "title": "" }, { "docid": "3cdf691e80a2579831df9587c671c2f7", "score": "0.56496847", "text": "function getJournalEntryData($user_id, $project_id, $entry_id, $db) {\n\t// Verify that the user is a member of the project and then retrieve journal if memeber\n\tif (isMember($user_id, $project_id, $db)) {\n\t\t$journal_entry = $db->prepare('SELECT entry_id, username as poster_username, user_id AS posting_user_id, title, \n\t\t\t\t\t\t\t\t\t\t\t\t\tbody, entry_time\n\t\t\t\t\t\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\t\t\t\t\t\t(SELECT entry_id, posting_user_id as user_id, title, entry_time, body\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM project_journal WHERE project_id = :project_id AND entry_id = :entry_id) AS t1\n\t\t\t\t\t\t\t\t\t\t\t\tNATURAL JOIN \n\t\t\t\t\t\t\t\t\t\t\t\t\t(SELECT user_id, username FROM users) AS t2');\n\t\t$journal_entry->bindParam(':project_id', $project_id);\n\t\t$journal_entry->bindParam(':entry_id', $entry_id);\n\t\t$journal_entry->execute();\n\t\t$journal_entry = $journal_entry->fetch(PDO::FETCH_ASSOC);\n\n\t\tif (count($journal_entry) > 0) { return $journal_entry; }\n\t\telse { return null; }\n\t}\n\telse { return null; }\n}", "title": "" }, { "docid": "8298fe735a02dd2578b32daec65ed3fa", "score": "0.56471527", "text": "function add_b_journal ($what)\r\n {\r\n return 1;\r\n global $p;\r\n global $LOGIN;\r\n $what = strip_tags ( mysql_real_escape_string ( trim ( $what)));\r\n // dlja togo, chtob i avtoru dobavili, (sohranen takoj in_battle nebudet)\r\n $c = count ($p['in_battle']);\r\n for ($i = 0; $i < $c; $i++)\r\n {\r\n if (!$p['in_battle'][$i]) continue;\r\n if (substr ($p['in_battle'][$i], 0, 2) == 'n.') continue;\r\n // ostaetsja igrok, emu dobavim\r\n $q = do_mysql (\"SELECT journal FROM players WHERE login = '\".$p['in_battle'][$i].\"';\");\r\n $j = mysql_result ($q, 0);\r\n $j .= '<br/>'.$what;\r\n do_mysql (\"UPDATE players SET journal = '\".$j.\"' WHERE login = '\".$p['in_battle'][$i].\"';\");\r\n }\r\n $q = do_mysql (\"SELECT journal FROM players WHERE id_player = '\".$p['id_player'].\"' AND in_battle > 0;\");\r\n $j = mysql_fetch_assoc ($q);\r\n if ($j['journal'])\r\n {\r\n $j['journal'] .= $what.'<br/>';\r\n do_mysql (\"UPDATE players SET journal = '\".$j['journal'].\"' WHERE id_player = '\".$p['id_player'].\"';\");\r\n }\r\n }", "title": "" }, { "docid": "6fcc85b97bc7fdc3eb7f5eb623588719", "score": "0.5622534", "text": "function save($data) {\n $insert = \"\";\n $insert2 = \"\";\n $update = \"\";\n $values = array();\n //Goes through all values of $data and puts them in variables insert, insert2, update and values, with which the sql can be build\n //This way on adding more info to the form, only the js and the database have to be edited, the rest will adapt automatically\n foreach($data as $key => $value) {\n if ($key != 'AuthorID' && $key != 'type' && $key != 'password1' && $key != 'password2') { //AuthorID, type and passwords can not be changed, therefor filtered away\n $insert .= '`'.$key.'`,';\n $insert2 .= '?,';\n $update .= '`'.$key.'`= ?,';\n $values[] = $value;\n }\n }\n $insert = substr($insert, 0, -1);\n $insert2 = substr($insert2, 0, -1);\n $update = substr($update, 0, -1);\n\n if ($data['type'] == 'new') {\n if ($data['password1'] == $data['password2']) { //Check if the passwords are the same, add the password to $insert(2), $values and execute the sql\n $insert .= ',`password`';\n $insert2 .= ',?';\n $values[] = md5($data['password1']);\n $sql = \"INSERT INTO `authors` ($insert) VALUES ($insert2)\";\n $this->app['db']->executeUpdate($sql, $values);\n return 'Congratulations! You can now login and post much as you want.';\n }\n else {\n return 'The passwords didn\\'t match.';\n }\n }\n elseif ($data['type'] == 'edit') { //Add AuthorID to $values and execute the sql\n $values[] = $data['AuthorID'];\n $sql = \"UPDATE `authors` SET $update WHERE `AuthorID`= ?\";\n $this->app['db']->executeUpdate($sql, $values);\n return 'Save succesful!';\n }\n else {\n return 'Something has gone wrong, plz refresh your page';\n }\n }", "title": "" }, { "docid": "05f76cc4e05aed8564fbb9723e25b787", "score": "0.56188846", "text": "function journal_user_outline($course, $user, $mod, $journal) {\n if ($entry = get_record(\"journal_entries\", \"userid\", $user->id, \"journal\", $journal->id)) {\n\n $numwords = count(preg_split(\"/\\w\\b/\", $entry->text)) - 1;\n\n $result->info = get_string(\"numwords\", \"\", $numwords);\n $result->time = $entry->modified;\n return $result;\n }\n return NULL;\n}", "title": "" }, { "docid": "17496de9f82526c0aaf93fdb409accf9", "score": "0.5597167", "text": "public function GetJournal() {\n\t\t\treturn WikiItem::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "095805926bed9933d3ff5ab91e1d68ae", "score": "0.5579098", "text": "public function run()\n {\n $approvalStatusID = DB::table('status')->where('state', 'Pending')->value('id');\n $unadjustedID = DB::table('journal_entry_types')->where('type', 'Regular')->value('id');\n $adjustedID = DB::table('journal_entry_types')->where('type', 'Adjusting')->value('id');\n //Journal Entry 1\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 2\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 3\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 4\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 5\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 6\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 7\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 8\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 9\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 10\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 11\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 12\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 13\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 14\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 15\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 16\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 17\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 18\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 19\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 20\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 4,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n //Journal Entry 21\n JournalEntry::create([\n 'status_id' => $approvalStatusID,\n 'created_user_id' => 5,\n 'document_reference_id' => 0,\n 'reference' => rand(10000, 999999),\n 'approval_user_id' => 0,\n 'description' => ' ',\n 'journal_entry_type_id' => $unadjustedID,\n 'comments' => ' '\n ]);\n }", "title": "" }, { "docid": "84e09aa4c99025deb45b239aeb7eee26", "score": "0.5577084", "text": "function updateJournalEntry($user_id, $entry_id, $title, $body, $db) {\n\t// Verify that the user is a member of the project before updating the post\n\t$project_id = getEntryProjectID($entry_id, $db);\n\tif ($project_id != null) {\n\t\tif (isMember($user_id, $project_id, $db)) {\n\n\t\t\t// Attempt to update the post\n\t\t\t$insert = $db->prepare('UPDATE project_journal SET title=:title, body=:body WHERE\n\t\t\t\t\t\t\t\t\t\tentry_id=:entry_id AND posting_user_id=:user_id');\n\t\t\t$insert->bindParam(':user_id', $user_id);\n\t\t\t$insert->bindParam(':entry_id', $entry_id);\n\t\t\t$insert->bindParam(':title', $title);\n\t\t\t$insert->bindParam(':body', $body);\n\t\t\t$insert->execute();\n\n\t\t\tif ($insert->rowCount() > 0) { return true; }\n\t\t\telse { return false; }\t\n\t\t}\n\t\telse { return false; }\t\n\t}\n}", "title": "" }, { "docid": "67dd0ffa07b4e04ecca8f4d5f651d609", "score": "0.5565862", "text": "public function edit(Journal $journal)\n {\n //\n }", "title": "" }, { "docid": "67dd0ffa07b4e04ecca8f4d5f651d609", "score": "0.5565862", "text": "public function edit(Journal $journal)\n {\n //\n }", "title": "" }, { "docid": "a2a57087d3d5052085378c8db494109e", "score": "0.5516939", "text": "function displayJournalEntries()\n{\n\t$username = $_SESSION['SESS_USERNAME'];\n\t$nameResult = mysql_query(\"SELECT * FROM Journal WHERE usersname = '$username' ORDER BY entryID DESC\");\n\t$num=mysql_num_rows($nameResult);\n\t\n\techo \"<ul class='entry'>\";\n\t\twhile($info = mysql_fetch_array( $nameResult )) \n\t\t{\n\t\techo \"<li><a href='single_post.php?id=\".$num.\"'>\";\n\t\t\techo \"<span class='entry_count'>\".$num.\"</span>\";\n \t\t\techo \"<h3 class='entry_title'>\".$info['entry_title'].\"</h3>\";\n\t\t\techo \"<img src='imgs/trash.png' class='delete_post' />\";\n\t\t\techo \"<p class='entry_timestamp'>\".$info['entry_timestamp'].'</p>';\n\t\t\techo \"<p class='entry_content'>\".$info['entry_content'].\"</p><br/>\";\n\t\techo \"</a></li>\";\n\t\t$num = $num -1;\n\t\t}\n\techo \"</ul>\";\n}", "title": "" }, { "docid": "8f80107e836626e04b0d2fccaa16b04f", "score": "0.55167", "text": "public static function GetJournalForId($intSignupFormId) {\n\t\t\t$objDatabase = ClassMeeting::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objResult = $objDatabase->Query('SELECT * FROM class_meeting WHERE signup_form_id = ' .\n\t\t\t\t$objDatabase->SqlVariable($intSignupFormId) . ' ORDER BY __sys_date');\n\n\t\t\treturn ClassMeeting::InstantiateDbResult($objResult);\n\t\t}", "title": "" }, { "docid": "46613be1a1b1b4aaf519cfd5b1cae4f7", "score": "0.55139816", "text": "function journal_cron () {\n// Finds all journal notifications that have yet to be mailed out, and mails them\n\n global $CFG, $USER;\n\n $cutofftime = time() - $CFG->maxeditingtime;\n\n if ($entries = journal_get_unmailed_graded($cutofftime)) {\n $timenow = time();\n\n foreach ($entries as $entry) {\n\n echo \"Processing journal entry $entry->id\\n\";\n\n if (! $user = get_record(\"user\", \"id\", \"$entry->userid\")) {\n echo \"Could not find user $entry->userid\\n\";\n continue;\n }\n\n $USER->lang = $user->lang;\n\n if (! $course = get_record(\"course\", \"id\", \"$entry->course\")) {\n echo \"Could not find course $entry->course\\n\";\n continue;\n }\n\n if (! isstudent($course->id, $user->id) and !isteacher($course->id, $user->id)) {\n continue; // Not an active participant\n }\n\n if (! $teacher = get_record(\"user\", \"id\", \"$entry->teacher\")) {\n echo \"Could not find teacher $entry->teacher\\n\";\n continue;\n }\n\n\n if (! $mod = get_coursemodule_from_instance(\"journal\", $entry->journal, $course->id)) {\n echo \"Could not find course module for journal id $entry->journal\\n\";\n continue;\n }\n\n unset($journalinfo);\n $journalinfo->teacher = fullname($teacher);\n $journalinfo->journal = format_string($entry->name,true);\n $journalinfo->url = \"$CFG->wwwroot/mod/journal/view.php?id=$mod->id\";\n $modnamepl = get_string( 'modulenameplural','journal' );\n $msubject = get_string( 'mailsubject','journal' );\n\n $postsubject = \"$course->shortname: $msubject: \".format_string($entry->name,true);\n $posttext = \"$course->shortname -> $modnamepl -> \".format_string($entry->name,true).\"\\n\";\n $posttext .= \"---------------------------------------------------------------------\\n\";\n $posttext .= get_string(\"journalmail\", \"journal\", $journalinfo).\"\\n\";\n $posttext .= \"---------------------------------------------------------------------\\n\";\n if ($user->mailformat == 1) { // HTML\n $posthtml = \"<p><font face=\\\"sans-serif\\\">\".\n \"<a href=\\\"$CFG->wwwroot/course/view.php?id=$course->id\\\">$course->shortname</a> ->\".\n \"<a href=\\\"$CFG->wwwroot/mod/journal/index.php?id=$course->id\\\">journals</a> ->\".\n \"<a href=\\\"$CFG->wwwroot/mod/journal/view.php?id=$mod->id\\\">\".format_string($entry->name,true).\"</a></font></p>\";\n $posthtml .= \"<hr /><font face=\\\"sans-serif\\\">\";\n $posthtml .= \"<p>\".get_string(\"journalmailhtml\", \"journal\", $journalinfo).\"</p>\";\n $posthtml .= \"</font><hr />\";\n } else {\n $posthtml = \"\";\n }\n\n if (! email_to_user($user, $teacher, $postsubject, $posttext, $posthtml)) {\n echo \"Error: Journal cron: Could not send out mail for id $entry->id to user $user->id ($user->email)\\n\";\n }\n if (! set_field(\"journal_entries\", \"mailed\", \"1\", \"id\", \"$entry->id\")) {\n echo \"Could not update the mailed field for id $entry->id\\n\";\n }\n }\n }\n\n return true;\n}", "title": "" }, { "docid": "8758bce0449554b1656b901840540e3a", "score": "0.5501948", "text": "function addJournalEntry($user_id, $project_id, $title, $body, $db) {\n\t// Verify that the user is a member of the project before adding the post\n\tif (isMember($user_id, $project_id, $db)) {\n\t\t$insert = $db->prepare('INSERT INTO project_journal(posting_user_id, project_id, title, body)\n\t\t \tvalues (:posting_user_id, :project_id, :title, :body)');\n\t\t$insert->bindParam(':posting_user_id', $user_id);\n\t\t$insert->bindParam(':project_id', $project_id);\n\t\t$insert->bindParam(':title', $title);\n\t\t$insert->bindParam(':body', $body);\n\t\t$insert->execute();\n\n\t\tif ($insert->rowCount() > 0) { return true; }\n\t\telse { return false; }\t\n\t}\n\telse { return false; }\t\n}", "title": "" }, { "docid": "c5173d711689b82a0176edc82b5fab6d", "score": "0.547612", "text": "function getInsertJournalId() {\n\t\treturn $this->getInsertId('journals', 'journal_id');\n\t}", "title": "" }, { "docid": "c5173d711689b82a0176edc82b5fab6d", "score": "0.547612", "text": "function getInsertJournalId() {\n\t\treturn $this->getInsertId('journals', 'journal_id');\n\t}", "title": "" }, { "docid": "6ffb53b8c708173497bd1d4030df2f16", "score": "0.54662013", "text": "function SaveJournal() {\n $today = \"lists/\" . date(\"m-d-Y\") . \"-Journal.txt\";\n $result = file_put_contents($today,$_POST[\"journal\"]);\n if (!$result) {\n echo '{\"request\":\"NAK\",\"msg\":\"Could not save file:' .$today.'\"}';\n } else {\n echo '{\"request\":\"ACK\"}';\n }\n}", "title": "" }, { "docid": "e5c2c3430354bd5a787e9ff7bfac4616", "score": "0.546398", "text": "function &getJournal($journalId) {\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT * FROM journals WHERE journal_id = ?', $journalId\n\t\t);\n\n\t\t$returner = null;\n\t\tif ($result->RecordCount() != 0) {\n\t\t\t$returner =& $this->_returnJournalFromRow($result->GetRowAssoc(false));\n\t\t}\n\t\t$result->Close();\n\t\tunset($result);\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "47e4ffffba5150c4ac57dfb03ecfc8f2", "score": "0.5460669", "text": "public function save_notes(){\n\n\t\t// first check if data is being sent and that it is the data we want\n\t\tif (\n\t\t\t!isset($_POST['wp_az_3d_notes_nonce'])\n\t\t || !isset($_POST['wp_az_note_object'])\n\t\t || !isset($_POST['wp_az_post_id'])\n\t\t || !check_ajax_referer('wp_az_3d_notes_nonce', 'wp_az_3d_notes_nonce', false)\n\t\t\t|| !wp_az_user_can_edit_notes()) {\n\n\t\t\t$errorDesc = \"\";\n\t\t\tif (!isset($_POST['wp_az_3d_notes_nonce'])) {\n\t\t\t\t$errorDesc .= \"Nonce not set. \";\n\t\t\t}\n\t\t\tif (!isset($_POST['wp_az_note_object'])) {\n\t\t\t\t$errorDesc .= \"No notes object recieved. \";\n\t\t\t}\n\t\t\tif (!isset($_POST['wp_az_post_id'])) {\n\t\t\t\t$errorDesc .= \"Post id not set. \";\n\t\t\t}\n\t\t\tif (!check_ajax_referer('wp_az_3d_notes_nonce', 'wp_az_3d_notes_nonce', false)) {\n\t\t\t\t$errorDesc .= \"Invalid ajax referrer. \";\n\t\t\t}\n\t\t\tif (!wp_az_user_can_edit_notes()){\n\t\t\t\t$errorDesc .= \"Incorrect access level. \";\n\t\t\t}\n\n\t\t\twp_send_json (array(\n\t\t\t\t'status' => 'error',\n\t\t\t\t'message' => 'Saving notes failed, did not pass security check: ' . $errorDesc,\n\t\t\t));\n\n\t\t\twp_die('Your request failed permission check.');\n\t\t}\n\n\t\t$post_id = intval($_POST['wp_az_post_id']);\n\t\t$notes = $_POST['wp_az_note_object'];\n\t\t$actions = $_POST['wp_az_actions'];\n\t\t$actions_changed = $_POST['wp_az_actions_changed'];\n\n\t\t// write to database\n\t\tglobal $wpdb;\n\n\t\t$notes_table = $wpdb->prefix . 'az_notes';\n\t\t$actions_table = $wpdb->prefix . 'az_actions';\n\n\t\t$notes_data = array (\n\t\t\t'post_id' => $post_id,\n\t\t\t'uid' => $notes['uid'],\n\t\t\t'last_modified' => current_time('mysql'),\n\t\t\t'title' => $notes['title'],\n\t\t\t'note_content' => stripslashes_deep($notes['note_content']),\n\t\t\t'sequence' => $notes['sequence'],\n\t\t\t'scene_state' => $notes['scene_state']\n\t\t);\n\n\t\t// delete all actions data first\n\t\t$wpdb->delete(\n\t\t\t$actions_table,\n\t\t\tarray( note_id => $notes[uid] )\n\t\t);\n\n\t\tif ($actions && $actions_changed) {\n\t\t\terror_log(\"num actions: \" . sizeof($actions));\n\t\t\tforeach ($actions as $action) {\n\n\t\t\t\t$action_data = array (\n\t\t\t\t\t'uid' => $action['uid'],\n\t\t\t\t\t'note_id' => $action['note_id'],\n\t\t\t\t\t'post_id' => $post_id,\n\t\t\t\t\t'action_type' => $action['action_type'],\n\t\t\t\t\t'scene_state' => $action['scene_state'],\n\t\t\t\t\t'action_data' => json_encode($action['action_data']),\n\t\t\t\t\t'action_title' => $action['action_title']\n\t\t\t\t);\n\n\n\t\t\t\terror_log(\"action_data: \" . print_r($action_data, TRUE));\n\n\t\t\t\t$update = $wpdb->update(\n\t\t\t\t\t$actions_table,\n\t\t\t\t\t$action_data,\n\t\t\t\t\tarray (\n\t\t\t\t\t\tpost_id => $post_id,\n\t\t\t\t\t\tuid => $action->uid\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\tif (!$update) {\n\t\t\t\t\t$insert = $wpdb->insert(\n\t\t\t\t\t\t$actions_table,\n\t\t\t\t\t\t$action_data\n\t\t\t\t\t);\n\n\t\t\t\t\terror_log(\"updated: \" . $update . \" inserted: \" . $insert);\n\t\t\t\t}\n\n\t\t\t\t$actions_db_updated = true;\n\t\t\t}\n\n\n\t\t}\n\n\t\t// try to update notes if available\n\t\t$update = $wpdb->update(\n\t\t\t$notes_table,\n\t\t\t$notes_data,\n\t\t\tarray (\n\t\t\t\tpost_id => $post_id,\n\t\t\t\tuid => $notes['uid']\n\t\t\t)\n\t\t);\n\n\t\t// insert new notes if no record exists\n\t\tif (!$update) {\n\t\t\t$notes_data['created'] = current_time('mysql');\n\t\t\t$wpdb->insert(\n\t\t\t\t$notes_table,\n\t\t\t\t$notes_data\n\t\t\t);\n\t\t}\n\n\n\t\t// success\n\t\twp_send_json (array(\n\t\t\t'status' => 'success',\n\t\t\t'message' => 'Notes saved',\n\t\t\t'post_id' => $post_id,\n\t\t\t'uid' => $notes['uid'],\n\t\t\t'title' => $notes['title'],\n\t\t\t'note_content' => $notes['note_content'],\n\t\t\t'sequence' => $notes['sequence'],\n\t\t\t'actions' => $actions_db_updated,\n\t\t));\n\n\n\t}", "title": "" }, { "docid": "83415b3ceb8e7f6a32a810c2fd12bb4f", "score": "0.54568714", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = Company::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `company` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`name`,\n\t\t\t\t\t`address_id`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strName) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intAddressId) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "f298f85025744bdbc628cb83ad1ab99f", "score": "0.5435256", "text": "public function getJournal(): string {\n return $this->data['journal'];\n }", "title": "" }, { "docid": "77fd996a3d20c375c150e50446d733fe", "score": "0.54262036", "text": "function &getJournalByPath($path) {\n\t\t$returner = null;\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT * FROM journals WHERE path = ?', $path\n\t\t);\n\n\t\tif ($result->RecordCount() != 0) {\n\t\t\t$returner =& $this->_returnJournalFromRow($result->GetRowAssoc(false));\n\t\t}\n\t\t$result->Close();\n\t\tunset($result);\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "77fd996a3d20c375c150e50446d733fe", "score": "0.54262036", "text": "function &getJournalByPath($path) {\n\t\t$returner = null;\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT * FROM journals WHERE path = ?', $path\n\t\t);\n\n\t\tif ($result->RecordCount() != 0) {\n\t\t\t$returner =& $this->_returnJournalFromRow($result->GetRowAssoc(false));\n\t\t}\n\t\t$result->Close();\n\t\tunset($result);\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "a75720d6a8ea076af4ececca836043cb", "score": "0.54187334", "text": "public function GetJournal() {\n\t\t\treturn Company::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "7f08229de167c3672df68279710e08e2", "score": "0.54146487", "text": "function fnRecetaFoodJournalAgregar(){\n\t//es decir, si tengo mi receta de 3 alimentos, y quiero agregarla al journal del desayuno de hoy, se me van agregar esos 3 alimentos a ese journal para el tiempo del desayuno\n\t$result;\n\n\t$strUsuario = $_GET['strUsuario']; //obligatorio\n\t$decDiario = $_GET['decDiario']; //obligatorio\n\t$intTiempo = $_GET['intTiempo']; //obligatorio\n\t$intReceta = $_GET['intReceta']; //obligatorio\n\n\tfnDBResult(\"\n\t INSERT INTO wp_vivemov_users_diario_detalle(intDiario,strUsuario,intTiempo,intAlimentoPorcion,devCantidad,strDescripcion,intProteinas,intCarbohidratos,intGrasas,intVegetales,intLibres,datModificado)\n\t SELECT $decDiario\n\t ,'$strUsuario'\n\t ,$intTiempo\n\t ,RD.decAlimento\n\t ,(RD.decCantidad / AP.decPorcion)\n\t ,'...'\n\t ,(RD.decCantidad / AP.decPorcion) * AP.decProteina\n\t ,(RD.decCantidad / AP.decPorcion) * AP.decCarbohidratos\n\t ,(RD.decCantidad / AP.decPorcion) * AP.decGrasa\n\t ,(RD.decCantidad / AP.decPorcion) * AP.decVegetales\n\t ,(RD.decCantidad / AP.decPorcion) * AP.decLibre\n\t ,now()\n\t FROM wp_vivemov_recetas_detalle AS RD\n\t INNER JOIN wp_vivemov_alimentos_porciones AS AP on AP.intId = RD.decAlimento\n\t WHERE RD.intReceta = $intReceta AND RD.bitActivo = 1 AND AP.bitActivo = 1\n\t\");\n\n\tfnFoodJournalActualizar_P_CH_G_V($strUsuario,$decDiario);\n\t$result['strTipo'] = 'success';\n\t$result['strMensaje'] = 'Guardado!';\n\n \tfnEndCallback($result);\n}", "title": "" }, { "docid": "9405ee6507135b4e1c699c354f60c90f", "score": "0.5412271", "text": "function setJournal($journal) {\n\t\t$this->journal = $journal;\n\t}", "title": "" }, { "docid": "dd444d79714565c27d45dbba18dd4b6d", "score": "0.5396297", "text": "function Modify($strJournalCategory, $id)\r\n\t{\r\n\t\tglobal $g_oUserSession;\r\n\t\t$rights = rights::GetInstance();\r\n\t\t$ojournalCategory=journalCategory::GetInstance();\r\n \r\n /*--------------------------------------------------------------------------\r\n\t\t\tMakes sure the user has the Journal Admin Right before\r\n\t\t\tallowing the user to Modify journal entries. \r\n\t\t----------------------------------------------------------------------------*/\r\n\t\tif(!$g_oUserSession->HasRight($this->rights_Modify))\r\n\t\t{\r\n\t\t\treturn $this->results->Set('false', $g_oUserSession->results->GetMessage());\r\n\t\t}\r\n \r\n /*--------------------------------------------------------------------------\r\n\t\t\tThe passed in journal ID must exist in the database and must be numeric\r\n\t\t\tto modify a journal entry.\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\tif(!$this->Exists($id))\r\n\t\t{\r\n\t\t\treturn $this->results->Set('false', \"Invalid journal id.\");\r\n\t\t}\r\n\t\t\r\n\t\t$arJrnRecord = $this->Get($id);\r\n\t\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tA category must be assigned to the journal entry\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\t$catID = $ojournalCategory->GetID($strJournalCategory);\r\n\t\t\r\n\t\tif($catID < 0)\r\n\t\t{\r\n\t\t\treturn $this->results->Set('false', \"Invalid category.\");\r\n\t\t}\r\n\t\r\n\t\t/*--------------------------------------------------------------------------\r\n\t\t\tBuild the record\r\n\t\t----------------------------------------------------------------------------*/\r\n\t\t$arUpdate = array();\r\n\t\t$arUpdate[$this->field_Category] = $catID;\r\n\t\t\r\n\t\t$arWhere = array();\r\n\t\t$arWhere[$this->field_Id] = $id;\r\n\t\t\r\n\t\t$retCode = $this->db->update($this->table_Name, $arUpdate, $arWhere);\r\n\t\t\r\n\t\tswitch($retCode)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\treturn $this->results->Set('true', \"No changes were made to the journal entry\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\treturn $this->results->Set('true', \"Your changes have been applied to the journal entry\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase -1:\r\n\t\t\t\treturn $this->results->Set('false', $this->db->results->GetMessage());\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->results->Set('false', \"Unable to update the journal entry due to database error.\");\r\n\t}", "title": "" }, { "docid": "2b940a4fd936cc594c8285fca8379860", "score": "0.53898627", "text": "function journal_add()\n{\nif($this->RequestHandler->isAjax()){\n$this->layout='blank';\n}else{\n$this->layout='session';\n}\n\t\n$this->ath();\n$this->check_user_privilages();\n$s_role_id=$this->Session->read('role_id');\n$s_society_id = (int)$this->Session->read('society_id');\n$s_user_id=$this->Session->read('user_id');\n\n$this->set('s_role_id',$s_role_id);\n\n$this->loadmodel('financial_year');\n$conditions=array(\"society_id\" => $s_society_id, \"status\"=>1);\n$cursor=$this->financial_year->find('all',array('conditions'=>$conditions));\nforeach($cursor as $collection)\n{\n$date_from = @$collection['financial_year']['from'];\n$date_to = @$collection['financial_year']['to'];\n\n$date_from1 = date('Y-m-d',$date_from->sec);\n$date_to1 = date('Y-m-d',$date_to->sec);\n\n$datef[] = $date_from1;\n$datet[] = $date_to1;\n}\nif(!empty($datef))\n{\n$datef1 = implode(',',$datef);\n$datet1 = implode(',',$datet);\n}\n$count = sizeof(@$datef);\n$this->set('datef1',@$datef1);\n$this->set('datet1',@$datet1);\n$this->set('count',$count);\n\n\n$this->loadmodel('journal');\n$conditions=array(\"society_id\" => $s_society_id);\n$order=array('journal.receipt_id'=> 'DESC');\n$cursor=$this->journal->find('all',array('conditions'=>$conditions,'order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$last=$collection['journal']['receipt_id'];\n}\nif(empty($last))\n{\n$zz= 0;\n}\t\nelse\n{\t\n$zz=$last;\n}\n$this->set('zz',$zz); \n\n$this->loadmodel('amount_category');\n$cursor1=$this->amount_category->find('all');\n$this->set('cursor1',$cursor1);\n\n\n$m = new MongoClient();\n$collection = $m->selectCollection('accounts', 'ledger_account');\n$cursor = $collection->find();\n\n$this->loadmodel('ledger_account');\n$cursor2=$this->ledger_account->find('all');\n$this->set('cursor2',$cursor2);\n\nif(isset($this->request->data['journal_add']))\n{\ndate_default_timezone_set('Asia/Calcutta');\t\n$time = date('h-i-s A', time());\t\n$date = $this->request->data['date'];\t\n$date = date(\"Y-m-d\", strtotime($date));\n$date = new MongoDate(strtotime($date));\t\n\n\n\n$this->loadmodel('journal');\n$conditions=array(\"society_id\" => $s_society_id);\n$order=array('journal.receipt_id'=>'DESC');\n$cursor=$this->journal->find('all',array('conditions'=>$conditions,'order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$receipt_no = $collection['journal']['receipt_id']; \n}\nif(!empty($receipt_no))\n{\n$receipt_no++;\n}\t\nelse\n{\t\n$receipt_no = 1001;\n}\n\n$xyz = $this->request->data['xyz'];\t\t\n\nfor($i=1; $i<=$xyz; $i++)\n{\n$remark=$this->request->data['remark'.$i];\t\n$l_type_id=(int)$this->request->data['l_type_id'.$i];\t\n$l_type_name_id=(int)@$this->request->data['l_type_name'.$i];\t\n//$amount_category_id=(int)$this->request->data['amount_cat_id'.$i];\n$debit = $this->request->data['debit'.$i];\n$credit = $this->request->data['credit'.$i];\n$current_date = date(\"d-m-Y\");\nif(empty($debit) && !empty($credit))\n{ \n$amount_category_id = 2;\n$amount = $credit;\n}\nif(empty($credit) && !empty($debit))\n{\n$amount_category_id = 1;\n$amount = $debit;\t\n}\n\n\n\n\n$current_date = date(\"Y-m-d\", strtotime($current_date));\n$current_date = new MongoDate(strtotime($current_date));\n\nif($l_type_id == 34 || $l_type_id == 15 || $l_type_id == 33 || $l_type_id == 35)\n{ \n$this->loadmodel('journal');\n$order=array('journal.auto_id'=> 'DESC');\n$cursor=$this->journal->find('all',array('order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$last=$collection['journal'][\"auto_id\"];\n}\nif(empty($last))\n{\n$ii=0;\n}\t\nelse\n{\t\n$ii=$last;\n}\n$ii++;\n$this->loadmodel('journal');\n$multipleRowData = Array( Array(\"auto_id\" => $ii, \"receipt_id\" => $receipt_no, \"account_type\" => 1, \n\"ledger_type_id\" => $l_type_name_id,\"user_id\" => $l_type_name_id, \"transaction_date\" => $date, \n\"current_date\" => $current_date, \"amount\" => $amount, \"amount_category_id\" => $amount_category_id, \"remark\" => $remark ,\n\"society_id\" => $s_society_id,\"approver\" => $s_user_id, \"time\" =>$time));\n$this->journal->saveAll($multipleRowData);\n}\nelse\n{\n$this->loadmodel('journal');\n$order=array('journal.auto_id'=> 'DESC');\n$cursor=$this->journal->find('all',array('order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$last=$collection['journal'][\"auto_id\"];\n}\nif(empty($last))\n{\n$ii=0;\n}\t\nelse\n{\t\n$ii=$last;\n}\n$ii++;\n$this->loadmodel('journal');\n$multipleRowData = Array( Array(\"auto_id\" => $ii, \"receipt_id\" => $receipt_no, \"account_type\" => 2, \"ledger_type_id\" => $l_type_id,\n\"user_id\" => $l_type_id, \"transaction_date\" => $date, \"current_date\" => $current_date, \"amount\" => $amount, \n\"amount_category_id\" => $amount_category_id, \"remark\" => $remark , \"society_id\" => $s_society_id,\"approver\" => $s_user_id,\"time\" => $time));\n$this->journal->saveAll($multipleRowData);\n\n}\nif($l_type_id == 34 || $l_type_id == 15 || $l_type_id == 33 || $l_type_id == 35)\n{\n\n$this->loadmodel('ledger');\n$order=array('ledger.auto_id'=> 'DESC');\n$cursor=$this->ledger->find('all',array('order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$last=$collection['ledger'][\"auto_id\"];\n}\nif(empty($last))\n{\n$k=0;\n}\t\nelse\n{\t\n$k=$last;\n}\n$k++;\n$this->loadmodel('ledger');\n$multipleRowData = Array( Array(\"auto_id\" => $k, \"receipt_id\" => $receipt_no, \n\"amount\" => $amount, \"amount_category_id\" => $amount_category_id, \"table_name\" => \"journal\", \"account_type\" => 1, \"account_id\" => $l_type_name_id,\n\"current_date\" => $current_date, \"society_id\" => $s_society_id,\"module_name\"=>\"Journal\"));\n$this->ledger->saveAll($multipleRowData);\t\t\t\t\t\n}\nelse\n{\n\n$this->loadmodel('ledger');\n$order=array('ledger.auto_id'=> 'DESC');\n$cursor=$this->ledger->find('all',array('order' =>$order,'limit'=>1));\nforeach ($cursor as $collection) \n{\n$last=$collection['ledger'][\"auto_id\"];\n}\nif(empty($last))\n{\n$k=0;\n}\t\nelse\n{\t\n$k=$last;\n}\n$k++;\n$this->loadmodel('ledger');\n$multipleRowData = Array( Array(\"auto_id\" => $k, \"receipt_id\" => $receipt_no, \n\"amount\" => $amount, \"amount_category_id\" => $amount_category_id, \"table_name\" => \"journal\", \"account_type\" => 2, \n\"account_id\" => $l_type_id, \"current_date\" => $current_date, \"society_id\" => $s_society_id,\"module_name\"=>\"Journal\"));\n$this->ledger->saveAll($multipleRowData);\t\n}\n\n}\n\n?>\n<div class=\"modal-backdrop fade in\"></div>\n<div class=\"modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel1\" aria-hidden=\"true\">\n<div class=\"modal-header\">\n<center>\n<h3 id=\"myModalLabel3\" style=\"color:#999;\"><b>Journal</b></h3>\n</center>\n</div>\n<div class=\"modal-body\">\n<center>\n<h5><b>Journal No. #<?php echo $receipt_no; ?> is generated successfully</b></h5>\n</center>\n</div>\n<div class=\"modal-footer\">\n<a href=\"journal_view\" class=\"btn blue\">OK</a>\n</div>\n</div>\n\n\n<?php\n}\n}", "title": "" }, { "docid": "07bf59d8db374898816a6a987d642e01", "score": "0.53727156", "text": "function getJournalId() {\n\t\treturn $this->journalId;\n\t}", "title": "" }, { "docid": "c45610240d83eb6f1f8e7bf1452b05b5", "score": "0.5358817", "text": "public function actionCreate() {\n $model = new \\backend\\models\\Journal();\n\n if (isset($_POST['Journal'])) {\n try {\n\n $journal = new \\backend\\models\\Journal();\n $journal->journal_category_id = 1;\n $journal->journal_author_id = $_POST['Journal']['journal_author_id'];\n $journal->journal_created_date = date(\"Y-m-d H:i:S\");\n $journal->journal_modified_date = \"0000-00-00 00:00:00\";\n $journal->journal_status = 1;\n $journal->save();\n\n $journal_detail = new \\backend\\models\\JournalDetail();\n $journal_detail->journal_id = $journal->journal_id;\n $journal_detail->journal_detail_title = $_POST['JournalDetail']['journal_detail_title'];\n $journal_detail->journal_detail_description = $_POST['JournalDetail']['journal_detail_description'];\n $journal_detail->journal_detail_content1 = $_POST['JournalDetail']['journal_detail_content1'];\n $journal_detail->journal_detail_content2 = \"-\";\n $journal_detail->link_rewrite = str_replace(\" \", \"-\", $_POST['JournalDetail']['journal_detail_title']);\n $journal_detail->save();\n\n for ($i = 0; $i < count($_POST['Journal']['journal_category_id']); $i++) {\n $checkavailable = \\backend\\models\\JournalDetailCategory::find()->where(['journal_category_id' => $_POST['Journal']['journal_category_id'][$i], 'journal_detail_id' => $journal_detail->journal_detail_id])->one();\n if (empty($checkavailable)) {\n $journal_detail_category = new \\backend\\models\\JournalDetailCategory();\n $journal_detail_category->journal_category_id = $_POST['Journal']['journal_category_id'][$i];\n $journal_detail_category->journal_detail_id = $journal_detail->journal_detail_id;\n $journal_detail_category->save();\n }\n }\n\n $journal_image_big_cover = new \\backend\\models\\JournalImage();\n $journal_image_big_cover->journal_id = $journal->journal_id;\n $journal_image_big_cover->orientation = 'L';\n $journal_image_big_cover->position = 0;\n $journal_image_big_cover->small_cover = null;\n $journal_image_big_cover->big_cover = 1;\n $journal_image_big_cover->save();\n\n $image_big_cover = $_FILES['JournalImageBigCover']['tmp_name'];\n $extension = explode(\".\", $_FILES[\"JournalImageBigCover\"][\"name\"]);\n $filename = 'big_cover_' . $journal_image_big_cover->journal_image_id . '.' . 'jpg';\n $imagePath = \\Yii::getAlias(\"@frontend\" . '/web/img/journal/' . $journal->journal_id);\n mkdir($imagePath);\n move_uploaded_file($image_big_cover, $imagePath . '/' . $filename);\n\n $journal_image_small_cover = new \\backend\\models\\JournalImage();\n $journal_image_small_cover->journal_id = $journal->journal_id;\n $journal_image_small_cover->orientation = 'L';\n $journal_image_small_cover->position = 0;\n $journal_image_small_cover->small_cover = 1;\n $journal_image_small_cover->big_cover = 0;\n $journal_image_small_cover->save();\n\n $image_small_cover = $_FILES['JournalImageSmallCover']['tmp_name'];\n $extension = explode(\".\", $_FILES[\"JournalImageSmallCover\"][\"name\"]);\n $filename = 'small_cover_' . $journal_image_big_cover->journal_image_id . '.' . 'jpg';\n move_uploaded_file($image_small_cover, $imagePath . '/' . $filename);\n\n if (!empty($_FILES['JournalImageLandscapeImage']['name'][0])) {\n for ($i = 0; $i < count($_FILES['JournalImageLandscapeImage']['name']); $i++) {\n $journal_image_landscape = new \\backend\\models\\JournalImage();\n $journal_image_landscape->journal_id = $journal->journal_id;\n $journal_image_landscape->orientation = 'L';\n $journal_image_landscape->position = $i + 1;\n $journal_image_landscape->small_cover = null;\n $journal_image_landscape->big_cover = 0;\n $journal_image_landscape->save();\n\n $image_landscape = $_FILES['JournalImageLandscapeImage']['tmp_name'][$i];\n $extension = explode(\".\", $_FILES[\"JournalImageLandscapeImage\"][\"name\"][$i]);\n $filename = $journal_image_landscape->journal_image_id . '.' . 'jpg';\n move_uploaded_file($image_landscape, $imagePath . '/' . $filename);\n }\n }\n\n if (!empty($_FILES['JournalImagePortraitImage']['name'][0])) {\n for ($i = 0; $i < count($_FILES['JournalImagePortraitImage']['name']); $i++) {\n $journal_image_landscape = new \\backend\\models\\JournalImage();\n $journal_image_landscape->journal_id = $journal->journal_id;\n $journal_image_landscape->orientation = 'P';\n $journal_image_landscape->position = $i + 1;\n $journal_image_landscape->small_cover = null;\n $journal_image_landscape->big_cover = 0;\n $journal_image_landscape->save();\n\n $image_landscape = $_FILES['JournalImagePortraitImage']['tmp_name'][$i];\n $extension = explode(\".\", $_FILES[\"JournalImagePortraitImage\"][\"name\"][$i]);\n $filename = $journal_image_landscape->journal_image_id . '.' . 'jpg';\n move_uploaded_file($image_landscape, $imagePath . '/' . $filename);\n }\n }\n\n return $this->redirect('index');\n } catch (Exception $ex) {\n print_r($model->getErrors());\n die();\n }\n } else {\n\n $module = \\backend\\models\\Module::find()->where(['module_controller' => Yii::$app->controller->id])->one();\n $permissions = \\backend\\models\\Permissions::find()->where(['group_id' => Yii::$app->session->get('userInfo')['group_id'], 'module_id' => $module->id])->one();\n\n if ($permissions['add_access'] != '1') {\n return $this->redirect('../permissionscheck');\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fb06255a14cdff77058dc1c1cfbb5433", "score": "0.53537154", "text": "public static function saveJournalDetails($name, $description, $status, $userid)\n {\n $journal = new self();\n $journal->name = $name;\n $journal->description = $description;\n $journal->status = $status;\n $journal->user_id = $userid;\n $journal->save();\n return back();\n }", "title": "" }, { "docid": "789c71317cfedf7bef3cefb12f10a0b2", "score": "0.5330109", "text": "function index()\n {\n $patientId = $this->authd_user_id;\n \n $patientJournalEntries =\n $this->JournalEntry->displayedFor($patientId);\n $this->set('journalEntries', $patientJournalEntries);\n /**\n $this->DhairLogging->logArrayContents($patientJournalEntries, \n \"patientJournalEntries for patientId \" . $patientId);\n */\n }", "title": "" }, { "docid": "5ecb41aa64c50cdfb13c9d5497459756", "score": "0.5329403", "text": "public function GetJournal() {\n\t\t\treturn Group::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "57f4911a525a596dbc0b2351fe6b5255", "score": "0.5316973", "text": "public function getJournalData(){\n return $this->getParameter('journal_data');\n }", "title": "" }, { "docid": "e390ff9085fe481eeb51869ab69de007", "score": "0.5301559", "text": "public function extractJournalData(): void\n {\n $this->resourceOutput['journal'] = [\n 'title' => get_string($this->searchTree, 'MedlineCitation.Article.Journal.Title'),\n 'issn' => $this->getIssns(),\n ];\n }", "title": "" }, { "docid": "0b94bd2ef227e67107243b51fcfd9883", "score": "0.5298573", "text": "public function show(Journal $journal)\n {\n //\n }", "title": "" }, { "docid": "0b94bd2ef227e67107243b51fcfd9883", "score": "0.5298573", "text": "public function show(Journal $journal)\n {\n //\n }", "title": "" }, { "docid": "91b6fa74bdd6ee2516645ea592cc7208", "score": "0.5282044", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = StewardshipPost::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `stewardship_post` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`stewardship_batch_id`,\n\t\t\t\t\t`post_number`,\n\t\t\t\t\t`date_posted`,\n\t\t\t\t\t`total_amount`,\n\t\t\t\t\t`created_by_login_id`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intStewardshipBatchId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intPostNumber) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->dttDatePosted) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->fltTotalAmount) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intCreatedByLoginId) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "4440187af4daba591d10df12b30c7f5e", "score": "0.52613854", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = Group::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `group` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`group_type_id`,\n\t\t\t\t\t`ministry_id`,\n\t\t\t\t\t`name`,\n\t\t\t\t\t`description`,\n\t\t\t\t\t`parent_group_id`,\n\t\t\t\t\t`hierarchy_level`,\n\t\t\t\t\t`hierarchy_order_number`,\n\t\t\t\t\t`confidential_flag`,\n\t\t\t\t\t`email_broadcast_type_id`,\n\t\t\t\t\t`token`,\n\t\t\t\t\t`active_flag`,\n\t\t\t\t\t`status`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intGroupTypeId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intMinistryId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strName) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strDescription) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intParentGroupId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intHierarchyLevel) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intHierarchyOrderNumber) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->blnConfidentialFlag) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intEmailBroadcastTypeId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->strToken) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->blnActiveFlag) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intStatus) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "e30310620dc91fceb48c96ca62637902", "score": "0.52579767", "text": "function _newEntry() {\n if (isset($_POST['save'])) {\n if ($this->checkInput()) {\n $this->saveEntry();\n } else {\n $this->_showForm();\n }\n } else {\n $this->_showForm();\n }\n }", "title": "" }, { "docid": "296f30ccaaf6b887e9fae86870a56229", "score": "0.5237902", "text": "public function GetJournal() {\n\t\t\treturn OrdemProducaoGrade::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "f8d97741cc30d19e1c0488a5eef88bf2", "score": "0.52351785", "text": "function journal_backup_mods($bf,$preferences) {\n\n global $CFG;\n\n $status = true;\n\n //Iterate over journal table\n $journals = get_records (\"journal\",\"course\",$preferences->backup_course,\"id\");\n if ($journals) {\n foreach ($journals as $journal) {\n //Start mod\n fwrite ($bf,start_tag(\"MOD\",3,true));\n //Print journal data\n fwrite ($bf,full_tag(\"ID\",4,false,$journal->id));\n fwrite ($bf,full_tag(\"MODTYPE\",4,false,\"journal\"));\n fwrite ($bf,full_tag(\"NAME\",4,false,$journal->name));\n fwrite ($bf,full_tag(\"INTRO\",4,false,$journal->intro));\n fwrite ($bf,full_tag(\"INTROFORMAT\",4,false,$journal->introformat));\n fwrite ($bf,full_tag(\"DAYS\",4,false,$journal->days));\n fwrite ($bf,full_tag(\"ASSESSED\",4,false,$journal->assessed));\n fwrite ($bf,full_tag(\"TIMEMODIFIED\",4,false,$journal->timemodified));\n\n //if we've selected to backup users info, then execute backup_journal_entries\n if ($preferences->mods[\"journal\"]->userinfo) {\n $status = backup_journal_entries($bf,$preferences,$journal->id);\n }\n //End mod\n $status =fwrite ($bf,end_tag(\"MOD\",3,true));\n }\n }\n return $status;\n }", "title": "" }, { "docid": "f49d450a6c62e92643e317154217ca77", "score": "0.5234595", "text": "public function Journal($strJournalCommand) {\n\t\t\t$objDatabase = OrdemProducaoGrade::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tINSERT INTO `ordem_producao_grade` (\n\t\t\t\t\t`id`,\n\t\t\t\t\t`cor_id`,\n\t\t\t\t\t`tamanho_id`,\n\t\t\t\t\t`quantidade`,\n\t\t\t\t\t`ordem_producao_id`,\n\t\t\t\t\t__sys_login_id,\n\t\t\t\t\t__sys_action,\n\t\t\t\t\t__sys_date\n\t\t\t\t) VALUES (\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intCorId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intTamanhoId) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intQuantidade) . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($this->intOrdemProducaoId) . ',\n\t\t\t\t\t' . (($objDatabase->JournaledById) ? $objDatabase->JournaledById : 'NULL') . ',\n\t\t\t\t\t' . $objDatabase->SqlVariable($strJournalCommand) . ',\n\t\t\t\t\tNOW()\n\t\t\t\t);\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "14351616f6c4b0e1ffba9bb213cdd26d", "score": "0.52333677", "text": "function create_general_ledger_entry($journal_entry_array, $description = null){\n\n\t//Check to insure $journal_entry_array has all necessary information\n\tforeach($journal_entry_array as $key => $entry){\n\t\tif(!isset($entry['account_number'])) return -2;\n\t\tif(!(isset($entry['credit']) || isset($entry['debit']))) return -2;\n\t}\n\t\t\n\t//Create new General Ledger Entry\n\t$gl_record = new Dataface_Record('general_ledger', array());\n\t$gl_record->setValues(array(\n\t\t'ledger_date'=>date(\"Y-m-d\"),\n\t\t'ledger_description'=>$description\n\t));\n\n\t//Save Record\n\t$res = $gl_record->save(null, true); //Save w/ permission check\n\t\n\t//Check for errors.\n\tif ( PEAR::isError($res) ){\n\t\t// An error occurred\n\t\treturn -1;\n\t}\n\n\t//Parse through all journal entries and save\n\tforeach($journal_entry_array as $key => $entry){\n\t\t$glj_record = new Dataface_Record('general_ledger_journal', array());\n\t\t$glj_record->setValues(array(\n\t\t\t'ledger_id'=>$gl_record->val('ledger_id'),\n\t\t\t'date'=>date(\"Y-m-d\"),\n\t\t\t'account_id'=>$entry['account_number'],\n\t\t\t'debit'=>isset($entry['debit']) ? $entry['debit'] : null,\n\t\t\t'credit'=>isset($entry['credit']) ? $entry['credit'] : null\n\t\t));\n\n\t\t//Save Record\n\t\t$res = $glj_record->save(); //Save w/o permission check - presumably if the first check passed, the user has permission to post payroll\n\t}\n\n\nreturn 1;\n\n}", "title": "" }, { "docid": "080fe2b14fd42a6f857fe93abe30d960", "score": "0.52056444", "text": "public function save_journals_editors($data){\n\t\t$this->db->insert('journal_editors', $data);\n\t\treturn $insert_id = $this->db->insert_id();\n\t}", "title": "" }, { "docid": "f74ca9ef084584b4a497c6708c917d54", "score": "0.5175397", "text": "function deleteJournalById($journalId) {\n\t\t$journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');\n\t\t$journalSettingsDao->deleteSettingsByJournal($journalId);\n\n\t\t$sectionDao =& DAORegistry::getDAO('SectionDAO');\n\t\t$sectionDao->deleteSectionsByJournal($journalId);\n\n\t\t$issueDao =& DAORegistry::getDAO('IssueDAO');\n\t\t$issueDao->deleteIssuesByJournal($journalId);\n\n\t\t$emailTemplateDao =& DAORegistry::getDAO('EmailTemplateDAO');\n\t\t$emailTemplateDao->deleteEmailTemplatesByJournal($journalId);\n\n\t\t$rtDao =& DAORegistry::getDAO('RTDAO');\n\t\t$rtDao->deleteVersionsByJournal($journalId);\n\n\t\t$subscriptionDao =& DAORegistry::getDAO('IndividualSubscriptionDAO');\n\t\t$subscriptionDao->deleteSubscriptionsByJournal($journalId);\n\t\t$subscriptionDao =& DAORegistry::getDAO('InstitutionalSubscriptionDAO');\n\t\t$subscriptionDao->deleteSubscriptionsByJournal($journalId);\n\n\t\t$subscriptionTypeDao =& DAORegistry::getDAO('SubscriptionTypeDAO');\n\t\t$subscriptionTypeDao->deleteSubscriptionTypesByJournal($journalId);\n\n\t\t$announcementDao =& DAORegistry::getDAO('AnnouncementDAO');\n\t\t$announcementDao->deleteAnnouncementsByAssocId(ASSOC_TYPE_JOURNAL, $journalId);\n\n\t\t$announcementTypeDao =& DAORegistry::getDAO('AnnouncementTypeDAO');\n\t\t$announcementTypeDao->deleteAnnouncementTypesByAssocId(ASSOC_TYPE_JOURNAL, $journalId);\n\n\t\t$articleDao =& DAORegistry::getDAO('ArticleDAO');\n\t\t$articleDao->deleteArticlesByJournalId($journalId);\n\n\t\t$roleDao =& DAORegistry::getDAO('RoleDAO');\n\t\t$roleDao->deleteRoleByJournalId($journalId);\n\n\t\t$groupDao =& DAORegistry::getDAO('GroupDAO');\n\t\t$groupDao->deleteGroupsByAssocId(ASSOC_TYPE_JOURNAL, $journalId);\n\n\t\t$pluginSettingsDao =& DAORegistry::getDAO('PluginSettingsDAO');\n\t\t$pluginSettingsDao->deleteSettingsByJournalId($journalId);\n\n\t\t$reviewFormDao =& DAORegistry::getDAO('ReviewFormDAO');\n\t\t$reviewFormDao->deleteByAssocId(ASSOC_TYPE_JOURNAL, $journalId);\n\n\t\treturn $this->update(\n\t\t\t'DELETE FROM journals WHERE journal_id = ?', $journalId\n\t\t);\n\t}", "title": "" }, { "docid": "0ab1a1840b43e5eb66e98ce038a82da9", "score": "0.5169215", "text": "function createEntry($entryTitle, $entryCategoryOne,$entryCategoryTwo, $entryText, $entryDate){\n $db = journalConnect();\n // The SQL statement\n $sql = 'INSERT INTO entries (\n userId\n ,entryTitle\n ,entryText \n ,entryDate\n ,entryCategoryOne \n ,entryCategoryTwo)\n VALUES (\n 1,\n :entryTitle\n ,:entryText \n ,:entryDate\n ,:entryCategoryOne \n ,:entryCategoryTwo )';\n // Create the prepared statement using the phpmotors connection\n $stmt = $db->prepare($sql);\n // The next four lines replace the placeholders in the SQL\n // statement with the actual values in the variables\n // and tells the database the type of data it is\n $stmt->bindValue(':entryTitle', $entryTitle, PDO::PARAM_STR);\n $stmt->bindValue(':entryText', $entryText, PDO::PARAM_STR);\n $stmt->bindValue(':entryDate', $entryDate, PDO::PARAM_STR);\n $stmt->bindValue(':entryCategoryOne', $entryCategoryOne, PDO::PARAM_STR);\n $stmt->bindValue(':entryCategoryTwo', $entryCategoryTwo, PDO::PARAM_STR);\n // Insert the data\n $stmt->execute();\n // Ask how many rows changed as a result of our insert\n $rowsChanged = $stmt->rowCount();\n // Close the database interaction\n $stmt->closeCursor();\n // Return the indication of success (rows changed)\n return $rowsChanged;\n }", "title": "" }, { "docid": "b7f0dd870b85d056c3a005f9e8652052", "score": "0.51614356", "text": "public static function GetJournalForId($intId) {\n\t\t\t$objDatabase = FormAnswer::GetDatabase()->JournalingDatabase;\n\n\t\t\t$objResult = $objDatabase->Query('SELECT * FROM form_answer WHERE id = ' .\n\t\t\t\t$objDatabase->SqlVariable($intId) . ' ORDER BY __sys_date');\n\n\t\t\treturn FormAnswer::InstantiateDbResult($objResult);\n\t\t}", "title": "" }, { "docid": "b0c302fd240255c292e501c293a9a5fa", "score": "0.51613164", "text": "public function store(Request $request)\n {\n\n $journal = new Journal();\n\n $journal->title = $request->title;\n $journal->publish_date = $request->publish_date;\n $journal->category = $request->category;\n $journal->journal_category = $request->journal_cat;\n $journal->issn_isbn_no = $request->issn_isbn_no;\n $journal->impact_factor = $request->impact_factor;\n $journal->fac_id = Auth::user()->fac_id;\n\n $journal->save();\n\n for($i=0; $i <count($request->author); $i++) {\n if($request->author[$i]){\n $author = new Author();\n $author->category = \"journal\";\n $author->name = $request->author[$i];\n $author->work_id = $journal->id;\n $author->save();\n }\n }\n\n $bibliography = new Bibliography();\n if($request->vol){$bibliography->vol = $request->vol;}\n if($request->issue){$bibliography->issue = $request->issue;}\n if($request->page){$bibliography->page = $request->page;}\n $bibliography->category = \"journal\";\n $bibliography->work_id = $journal->id;\n $bibliography->save();\n\n\n // $file = $request->file('upload');\n // dd($file->getRealPath());\n\n $upload = new Upload();\n if($request->url){$upload->url = $request->url;}\n\n if(Input::hasFile('upload')){\n \n $file = Input::file('upload');\n $info = pathinfo(storage_path().$file->getClientOriginalName());\n $ext = $info['extension'];\n // return $ext;\n \n $file->move(public_path().'/uploads//',date('m-d-Y_H-i-s').'_'.$request->title.'.'.$ext);\n $domain = $_SERVER['SERVER_NAME'];\n\n $upload->filename = 'uploads/'.date('m-d-Y_H-i-s').'_'.$request->title.'.'.$ext; \n\n }\n $upload->category = \"journal\";\n $upload->work_id = $journal->id;\n $upload->save();\n\n return redirect('/home');\n }", "title": "" }, { "docid": "db22e9d2be18c2568a5ea4a9453ba8ce", "score": "0.5159175", "text": "function action_spiplistes_journal () {\n\t\n\tglobal $connect_toutes_rubriques, $connect_login, $connect_statut, $spip_lang_rtl;\n\t\n\t// spiplistes_log(\"controle appel action\");\n\t\n\tif (!$connect_statut) {\n\t\t$auth = charger_fonction('auth', 'inc');\n\t\t$auth = $auth();\n\t}\n\n\t$securiser_action = charger_fonction('securiser_action', 'inc');\n\t$args = $securiser_action();\n\n\t$autoriser_lire = (autoriser('webmestre','','',$connect_id_auteur));\n\t\n\tif($autoriser_lire) {\n\n\t\t$result = spiplistes_journal_lire(_SPIPLISTES_PREFIX);\n\t\n\t\techo($result);\n\t\t\n\t\texit(0);\n\t}\n}", "title": "" }, { "docid": "4015b08fc9ec33f6f6cc6ffce1b55473", "score": "0.5148059", "text": "function getJournalSummariesFollowing($user_id, $project_id, $timestamp, $db) {\n\t// Verify that the user is a member of the project and then retrieve journal if memeber\n\tif (isMember($user_id, $project_id, $db)) {\n\t\t$journal_summary = $db->prepare('SELECT entry_id, username as poster_username, title, entry_time, user_id as posting_user_id\n\t\t\t\t\t\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\t\t\t\t(SELECT entry_id, posting_user_id as user_id, title,\n\t\t\t\t\t\t\t\t\t\t\tentry_time FROM project_journal WHERE project_id = :project_id AND entry_time > :entry_time) as t1 \n\t\t\t\t\t\t\t\t\t\t\t\tNATURAL JOIN \n\t\t\t\t\t\t\t\t\t\t\t(SELECT user_id, username FROM users) as t2 ORDER BY entry_time DESC;');\n\t\t$journal_summary->bindParam(':project_id', $project_id);\n\t\t$journal_summary->bindParam(':entry_time', $timestamp);\n\t\t$journal_summary->execute();\n\t\t$journal_summary = $journal_summary->fetchAll(PDO::FETCH_ASSOC);\n\n\t\tif (count($journal_summary) > 0) { return $journal_summary; }\n\t\telse { return null; }\n\t}\n\telse { return null; }\n}", "title": "" }, { "docid": "13558ad8daeccbaf8b4b5fcf4dd43bab", "score": "0.5139742", "text": "function updateJournal(&$journal) {\n\t\treturn $this->update(\n\t\t\t'UPDATE journals\n\t\t\t\tSET\n\t\t\t\t\tpath = ?,\n\t\t\t\t\tseq = ?,\n\t\t\t\t\tenabled = ?,\n\t\t\t\t\tprimary_locale = ?\n\t\t\t\tWHERE journal_id = ?',\n\t\t\tarray(\n\t\t\t\t$journal->getPath(),\n\t\t\t\t$journal->getSequence(),\n\t\t\t\t$journal->getEnabled() ? 1 : 0,\n\t\t\t\t$journal->getPrimaryLocale(),\n\t\t\t\t$journal->getId()\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "13558ad8daeccbaf8b4b5fcf4dd43bab", "score": "0.5139742", "text": "function updateJournal(&$journal) {\n\t\treturn $this->update(\n\t\t\t'UPDATE journals\n\t\t\t\tSET\n\t\t\t\t\tpath = ?,\n\t\t\t\t\tseq = ?,\n\t\t\t\t\tenabled = ?,\n\t\t\t\t\tprimary_locale = ?\n\t\t\t\tWHERE journal_id = ?',\n\t\t\tarray(\n\t\t\t\t$journal->getPath(),\n\t\t\t\t$journal->getSequence(),\n\t\t\t\t$journal->getEnabled() ? 1 : 0,\n\t\t\t\t$journal->getPrimaryLocale(),\n\t\t\t\t$journal->getId()\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "04a0ad0720f61a5394d14826f303c5b4", "score": "0.51258504", "text": "function journal($ar){\n XShell::changeTemplate('epasslibre/modepltrtcmd/journal-order.html');\n return parent::journal($ar);\n }", "title": "" }, { "docid": "c0acbd6e1611e7858241bd225ca47f6f", "score": "0.5116243", "text": "public function GetJournalById($id){\n \n $record=Journal::find($id);\n\n return view('/Journal/journal_add', compact('record'));\n \n }", "title": "" }, { "docid": "f103a9f9db67ea25eb8af714c9366e4a", "score": "0.5115106", "text": "function book_form($self) {\n // Initialize $authors\n $first_author = array();\n if ( !key_exists('authors', $_SESSION) ) {\n $authors = array();\n $authors[0][0] = \"\";\n $authors[0][1] = \"\";\n $_SESSION['authors'] = $authors;\n }\n else {\n $authors = $_SESSION['authors'];\n }\n $nr_of_authors = count($authors);\n\n $first_author[0] = $authors[0][0];\n $first_author[1] = $authors[0][1];\n\n\n // Initialize $editors\n $first_editor = array();\n if ( !key_exists('editors', $_SESSION) ) {\n $editors = array();\n $editors[0][0] = \"\";\n $editors[0][1] = \"\";\n $_SESSION['editors'] = $editors;\n }\n else {\n $editors = $_SESSION['editors'];\n }\n $nr_of_editors = count($editors);\n\n $first_editor[0] = $editors[0][0];\n $first_editor[1] = $editors[0][1];\n\n // Initialize remaining input\n if ( !key_exists('title', $_SESSION) ) {\n $_SESSION['title'] = \"\" ;\n }\n $title = $_SESSION['title'];\n\n if ( !key_exists('publisher', $_SESSION) ) {\n $_SESSION['publisher'] = \"\" ;\n }\n $publisher = $_SESSION['publisher'];\n\n if ( !key_exists('year', $_SESSION) ) {\n $_SESSION['year'] = 1;\n }\n $year = $_SESSION['year'];\n\n if ( !key_exists('isbn', $_SESSION) ) {\n $_SESSION['isbn'] = \"\" ;\n }\n $isbn = $_SESSION['isbn'];\n\n if ( !key_exists('url', $_SESSION) ) {\n $_SESSION['url'] = \"\" ;\n }\n $url = $_SESSION['url'];\n\n if ( !key_exists('project', $_SESSION) ) {\n $_SESSION['project'] = \"\" ;\n }\n $project = $_SESSION['project'];\n\n if ( !key_exists('book_note', $_SESSION) ) {\n $_SESSION['book_note'] = \"\" ;\n }\n $book_note = trim($_SESSION['book_note']);\n ?>\n <div class = \"menu\">\n <h4>Enter properties of publication type 'book'</h4>\n\n <form id = \"formBook\" action = \"<?= $self ?>\" method = \"POST\">\n <div id = \"authorDivs\">\n <div id = 'authorDiv1'>\n <label>Author&nbsp;1&nbsp;</label> <br>\n <label>First name:</label>&nbsp;\n <input name = 'author10' value = \"<?=$first_author[0]?>\" size = \"19\" maxlength = \"50\" />\n &nbsp;&nbsp; &nbsp;&nbsp;\n <label>Last name:</label>\n <input name = 'author11' value = \"<?=$first_author[1]?>\" size = \"34\" maxlength = \"100\"/>\n </div>\n <?php //>\n for ($i = 2; $i <= $nr_of_authors; $i++) {\n $val[0] = $authors[$i - 1][0];\n $val[1] = $authors[$i - 1][1];\n echo \"\n <br>\n <div id = 'authorDiv{$i}'>\n <label>Author&nbsp;{$i}&nbsp;</label> <br>\n <label>First name:</label>&nbsp;&nbsp;\n <input name = 'author{$i}0' value = '{$val[0]}'\n size = '19' maxlength = '50' />\n &nbsp;&nbsp; &nbsp;&nbsp;\n <label>Last name:</label>\n <input name = 'author{$i}1' value = '{$val[1]}'\n size = '34' maxlength = '100'/>\n <br>\n <br>\n </div>\n \";\n }\n ?>\n <!-- New author input fields are put just before here. Note\n that the last part of the id contains the publication type (Book) -->\n <div id = \"lastDivAuthorBook\">\n </div>\n </div>\n <!-- Help info -->\n <div class = \"book_inp_info\">\n <img src = \"../../shared/info.jpg\" class = \"info\" />\n <div class = \"tooltip_book_inp subhelp\">\n </div>\n </div>\n <br>\n <!-- End Help info -->\n\n <br>\n <div id = \"editorDivs\">\n <div id = 'editorDiv1'>\n <label>Editor&nbsp;1&nbsp;</label> <br>\n <label>First name:</label>&nbsp;\n <input name = 'editor10' value = \"<?=$first_editor[0]?>\" size = \"19\" maxlength = \"50\" />\n &nbsp;&nbsp; &nbsp;&nbsp;\n <label>Last name:</label>\n <input name = 'editor11' value = \"<?=$first_editor[1]?>\" size = \"34\" maxlength = \"100\"/>\n </div>\n\n <?php //>\n for ($i = 2; $i <= $nr_of_editors; $i++) {\n $val[0] = $editors[$i - 1][0];\n $val[1] = $editors[$i - 1][1];\n echo \"\n <br>\n <div id = 'editorDiv{$i}'>\n <label>Editor&nbsp;{$i}&nbsp;</label> <br>\n <label>First name:</label>&nbsp;&nbsp;\n <input name = 'editor{$i}0' value = '{$val[0]}'\n size = '19' maxlength = '50' />\n &nbsp;&nbsp; &nbsp;&nbsp;\n <label>Last name:</label>\n <input name = 'editor{$i}1' value = '{$val[1]}'\n size = '34' maxlength = '100'/>\n <br>\n <br>\n </div>\n \";\n }\n ?>\n <!-- New editor input fields are put just before here. Note that the last\n part of the id contains publication type (Book) -->\n <div id = \"lastDivEditorBook\">\n </div>\n </div> <!-- editorDivs -->\n <br><br><br>\n\n <label>Title:</label>&nbsp;\n <input name = \"title\" value = \"<?=$title?>\" size = \"80\" maxlength = \"512\" >\n <br><br>\n\n <label>Publisher:</label>&nbsp;\n <input name = \"publisher\" value = \"<?=$publisher?>\" size = \"60\" maxlength = \"255\" >\n &nbsp;&nbsp;&nbsp;&nbsp;\n <label>Year:</label>&nbsp;\n <input name = \"year\" value = \"<?=$year?>\" size = \"4\" maxlength = \"4\" class = \"year\" >\n <br><br>\n\n <label>ISBN:</label>&nbsp;\n <input name = \"isbn\" value = \"<?=$isbn?>\" size = \"15\" maxlength = \"20\">\n <br><br>\n\n <label>URL:</label>&nbsp;\n <input name = \"url\" value = \"<?=$url?>\" size = \"60\" maxlength = \"255\" value = \"\"/>\n &nbsp;&nbsp; (Web address)\n <br><br>\n\n <label>Project:</label>&nbsp;\n <input name = \"project\" value = \"<?=$project?>\" size = \"25\" maxlength = \"70\" value = \"\"/>\n <br><br>\n\n <label>Note (maximum 1024 characters):</label><br>\n <textarea class =\"book_textAreaInp\" name = \"book_note\" rows = \"5\" ><?=$book_note?></textarea>\n\n <button class = \"goBtn\" name = \"type\" value = \"review_book\" type = \"submit\">\n Review input\n </button>\n </form>\n\n <button onclick = \"window.location.href = '<?=$self?>?q=restart'\"\n class = \"restartBtn\" >\n Restart\n </button>\n\n </div>\n <?php //>\n exit();\n }", "title": "" }, { "docid": "6032d515d3e85525cd115bd6b1222474", "score": "0.51126873", "text": "function remove_journal(){\n\tif(isset($_REQUEST)){\n\t\t/*Update post*/\n\t\t$journal=array();\n\t\t$journal['ID']=$_REQUEST['id'];\n\t\t$journal['post_status']='draft';\n\t\t\n\t\t// Update the post into the db\n\t\t$wpupdate=wp_update_post($journal);\n\t\techo trim($wpupdate);\n\t}\n\tdie();\n}", "title": "" }, { "docid": "c9390fb48b015926efae540444144478", "score": "0.5110209", "text": "public function getJournalNumber() {\n return $this->journalNumber;\n }", "title": "" }, { "docid": "c9390fb48b015926efae540444144478", "score": "0.5110209", "text": "public function getJournalNumber() {\n return $this->journalNumber;\n }", "title": "" }, { "docid": "72397aaadce168e0fd4a321df5efe858", "score": "0.5109282", "text": "static function save($w)\r\n\t{\r\n\t\t//If the workout is already saved in the database...\r\n\t\tif (is_int($w->id))\r\n\t\t{\r\n\t\t\t//update the row in the workouts table.\r\n\t\t\tqueryMysql(\"UPDATE workouts SET date = '$w->date', title = '$w->title' WHERE id = $w->id\");\r\n\t\t\t$workout_id = $w->id;\r\n\t\t\t\r\n\t\t\t//...and clear out the existing rows from the activity table\r\n\t\t\tActivity::delete_all_by_workout_id($w->id);\r\n\t\t}\r\n\t\telse //If the workout isnt already in the table, then it was created in an environment that has access to $_SESSION['user'].\r\n\t\t{\r\n\t\t\tqueryMysql(\"INSERT INTO workouts (title, date, user_id) VALUES ('$w->title', '$w->date', '$w->user_id' )\");\r\n\t\t\t$workout_id = $_SESSION['workout_last_insert']= mysql_insert_id();\r\n\t\t\t\r\n\t\t\t//get the id value created for the newly saved workout.\r\n\t\t}\r\n\t\t\r\n\t\tforeach($w->activities as $a)\r\n\t\t{\r\n\t\t\tActivity::save($a, $workout_id);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "80cdf58ed5d9ba5c8e780488af0efe4a", "score": "0.5109128", "text": "public function Journal()\n\t{\n\t\treturn $this->belongsTo('App\\Entities\\Journal');\n\t}", "title": "" }, { "docid": "53268ca0fc7249a934434f0f795f20fe", "score": "0.51023257", "text": "public function saveUserNotes() {\n $ret = $this->validateRequest(array('userNotes','userId'));\n\n $authorId = getSessionUserId();\n $reqUser = new User();\n if ($authorId > 0) {\n $reqUser->findUserById($authorId);\n } else {\n $this->respond(false, \"You have to be logged in to access user info!\",''); \n }\n\n $userNotes = $_REQUEST['userNotes'];\n $userId = (int) $_REQUEST['userId'];\n $note = new Note();\n if ($note->loadById($authorId,$userId) ){\n if ($userNotes == \"\") {\n $userNotes = \" \";\n }\n $note->note = $userNotes;\n if ($note->save('id')) {\n $this->respond(true, \"Note saved.\",'');\n } else {\n $this->respond(false, \"Cannot update note! Please retry later.\",''); \n } \n } else {\n if ($userNotes != \"\") {\n $values = array(\n 'author_id' => $authorId,\n 'user_id' => $userId,\n 'note' => $userNotes\n );\n \n if ($note->insertNew($values)) { \n $this->respond(true, \"Note saved.\",'');\n } else {\n $this->respond(false, \"Cannot create new note! Please retry later.\",''); \n }\n } else {\n $this->respond(true, \"New empty note is not saved.\",'');\n }\n }\n }", "title": "" }, { "docid": "99587bcda76cec48bfc45a2a0752ec67", "score": "0.5101157", "text": "function save_user_action() {\n\t\t$this->layout = false;\n\t\t$this->autoRender = false;\n\t\t$this->loadAllModel(array('LoanLog','Notification','EscrowDocApproval','Loan'));\n\t\t$newLoans = $this->getLoanLifeCyclePhase();\n\t\tif(isset($this->request->data) && !empty($this->request->data)) { \n\t\t\t$status = isset($this->request->data['status']) ? $this->request->data['status'] : '';\n\t\t\t$loanId = isset($this->request->data['loanID']) ? base64_decode($this->request->data['loanID']) : '';\n\t\t\t$approvalID = isset($this->request->data['approvalID']) ? base64_decode($this->request->data['approvalID']) : '';\n\t\t\t$this->EscrowDocApproval->updateAll(array('status' =>$status), array('id' => $approvalID));\n\t\t\t$deniedCount = $this->EscrowDocApproval->find('count', array('conditions'=>array('EscrowDocApproval.loan_id' => $loanId,'EscrowDocApproval.status IN' =>array(0,2))));\n\t\t\tif($deniedCount == 0) {\n\t\t\t\t$accountingUserId = '227';\n\t\t\t\t$loanNumber = $this->Common->getLoanNumber($loanId);\n\t\t\t\t//funder approve escrow uploaded loan document\n\t\t\t\t$loanCyclephase = '21';\n\t\t\t\t$this->Loan->id = $loanId;\n\t\t\t\t$this->Loan->saveField('loan_life_cycle_phase', $loanCyclephase);\n\t\t\t\t//save notification for all members\n\t\t\t\t$action = $loanNumber . ' - '. $newLoans['21'];\n\t\t\t\t$this->Common->saveNotifications($action, $this->Session->read('userInfo.id'), $loanId);\n\t\t\t\t//save notification to escrow\n\t\t\t\t$accountNotification['Notification']['receiver_id'] = $accountingUserId;\n\t\t\t\t$accountNotification['Notification']['sender_id'] = $this->Session->read('userInfo.id');\n\t\t\t\t$accountNotification['Notification']['action'] = $newLoans['21']. 'Click to <a href=\"'.BASE_URL.'accounts/\"> calculate commission</a>';\n\t\t\t\t$accountNotification['Notification']['action_id'] = $loanId;\n\t\t\t\t$accountNotification['Notification']['type'] = 2;\n\t\t\t\t$accountNotification['Notification']['created'] = CURRENT_DATE_TIME_DB;\n\t\t\t\t$this->Notification->create();\n\t\t\t\t$this->Notification->save($accountNotification);\n\t\t\t\t$this->Common->saveNotifications($action, $userData['id'], $loanId);\n\t\t\t\n\t\t\t\t//save loan log\n\t\t\t\t$shortAppID = $this->getShortAppID($loanId);\n\t\t\t\t$logData['LoanLog']['user_id']= $this->Session->read('userInfo.id');;\n\t\t\t\t$logData['LoanLog']['short_application_ID']= $shortAppID;\n\t\t\t\t$logData['LoanLog']['action']= 21;\n\t\t\t\t$logData['LoanLog']['description'] = 21;\n\t\t\t\t$logData['LoanLog']['created'] = CURRENT_DATE_TIME_DB;\n\t\t\t\t$this->LoanLog->create();\n\t\t\t\t$this->LoanLog->save($logData);\n\t\t\t\t//calculate commission function\n\t\t\t\t$this->calculateCommissionForLoan(base64_encode($loanId));\n\t\t\t\t$this->Session->setFlash($newLoans['21'], 'default', array('class'=>'alert alert-success'));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f085ac4f81750b15a8ac62c480b1cc27", "score": "0.5100627", "text": "function &getById($journalId) {\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT * FROM journals WHERE journal_id = ?',\n\t\t\t(int) $journalId\n\t\t);\n\n\t\t$returner = null;\n\t\tif ($result->RecordCount() != 0) {\n\t\t\t$returner =& $this->_returnJournalFromRow($result->GetRowAssoc(false));\n\t\t}\n\t\t$result->Close();\n\t\tunset($result);\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "44bb3222adc74279deca6249b70d5f0f", "score": "0.50852454", "text": "function index($args, &$request) {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$router =& $request->getRouter();\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$journalDao =& DAORegistry::getDAO('JournalDAO');\n\t\t$journalPath = $router->getRequestedContextPath($request);\n\t\t$templateMgr->assign('helpTopicId', 'user.oldJournal');\n\t\t$journal =& $router->getContext($request);\n\t\t$site =& Request::getSite();\n\n\t\tif ($site->getRedirect() && ($journal = $journalDao->getById($site->getRedirect())) != null) {\n\t\t\t$request->redirect($journal->getPath());\n\t\t}\n\n\t\t$templateMgr->assign('intro', $site->getLocalizedIntro());\n\t\t$templateMgr->assign('journalFilesPath', $request->getBaseUrl() . '/' . Config::getVar('files', 'public_files_dir') . '/journals/');\n\n\t\t// If we're using paging, fetch the parameters\n\t\t$usePaging = $site->getSetting('usePaging');\n\t\tif ($usePaging) $rangeInfo =& $this->getRangeInfo('journals');\n\t\telse $rangeInfo = null;\n\t\t$templateMgr->assign('usePaging', $usePaging);\n\n\t\t// Fetch the alpha list parameters\n\t\t$searchInitial = Request::getUserVar('searchInitial');\n\t\t$templateMgr->assign('searchInitial', $searchInitial);\n\t\t$templateMgr->assign('useAlphalist', $site->getSetting('useAlphalist'));\n\n\t\t$journals =& $journalDao->getOldJournals(\n\t\t\t$rangeInfo,\n\t\t\t$searchInitial?JOURNAL_FIELD_TITLE:JOURNAL_FIELD_SEQUENCE,\n\t\t\t$searchInitial?JOURNAL_FIELD_TITLE:null,\n\t\t\t$searchInitial?'startsWith':null,\n\t\t\t$searchInitial\n\t\t);\n\t\t$templateMgr->assign_by_ref('journals', $journals);\n\t\t$templateMgr->assign_by_ref('site', $site);\n\n\t\t$templateMgr->assign('alphaList', explode(' ', __('common.alphaList')));\n\n\t\t$templateMgr->setCacheability(CACHEABILITY_PUBLIC);\n\t\t$templateMgr->display('oldJournal/oldJournal.tpl');\n\t}", "title": "" }, { "docid": "62635b877d56fbd4bc3e7d3a85553030", "score": "0.5081278", "text": "function saveContent()\n\t{\n\t\tglobal $mainframe, $Itemid;\n\n\t\t/*\n\t\t * Initialize variables\n\t\t */\n\t\t$db\t\t\t= & $mainframe->getDBO();\n\t\t$user\t\t= & $mainframe->getUser();\n\t\t$nullDate\t= $db->getNullDate();\n\t\t$task\t\t= JRequest::getVar('task');\n\n\t\t/*\n\t\t * Create a user access object for the user\n\t\t */\n\t\t$access\t\t\t\t\t\t\t= new stdClass();\n\t\t$access->canEdit\t\t\t= $user->authorize('action', 'edit', 'content', 'all');\n\t\t$access->canEditOwn\t\t= $user->authorize('action', 'edit', 'content', 'own');\n\t\t$access->canPublish\t\t= $user->authorize('action', 'publish', 'content', 'all');\n\n\t\t$row = & JModel::getInstance('content', $db);\n\t\tif (!$row->bind($_POST))\n\t\t{\n\t\t\tJError::raiseError( 500, $row->getError());\n\t\t}\n\n\t\t$isNew = ($row->id < 1);\n\t\tif ($isNew)\n\t\t{\n\t\t\t// new record\n\t\t\tif (!($access->canEdit || $access->canEditOwn))\n\t\t\t{\n\t\t\t\tJError::raiseError( 403, JText::_(\"Access Forbidden\") );\n\t\t\t}\n\t\t\t$row->created = date('Y-m-d H:i:s');\n\t\t\t$row->created_by = $user->get('id');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// existing record\n\t\t\tif (!($access->canEdit || ($access->canEditOwn && $row->created_by == $user->get('id'))))\n\t\t\t{\n\t\t\t\tJError::raiseError( 403, JText::_(\"Access Forbidden\") );\n\t\t\t}\n\t\t\t$row->modified = date('Y-m-d H:i:s');\n\t\t\t$row->modified_by = $user->get('id');\n\t\t}\n\t\tif (trim($row->publish_down) == 'Never')\n\t\t{\n\t\t\t$row->publish_down = $nullDate;\n\t\t}\n\n\t\t// code cleaner for xhtml transitional compliance\n\t\t$row->introtext = str_replace('<br>', '<br />', $row->introtext);\n\t\t$row->fulltext = str_replace('<br>', '<br />', $row->fulltext);\n\n\t\t// remove <br /> take being automatically added to empty fulltext\n\t\t$length = strlen($row->fulltext) < 9;\n\t\t$search = strstr($row->fulltext, '<br />');\n\t\tif ($length && $search)\n\t\t{\n\t\t\t$row->fulltext = NULL;\n\t\t}\n\n\t\t$row->title = ampReplace($row->title);\n\n\t\t// Publishing state hardening for Authors\n\t\tif (!$access->canPublish)\n\t\t{\n\t\t\tif ($isNew)\n\t\t\t{\n\t\t\t\t// For new items - author is not allowed to publish - prevent them from doing so\n\t\t\t\t$row->state = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// For existing items keep existing state - author is not allowed to change status\n\t\t\t\t$query = \"SELECT state\" .\n\t\t\t\t\t\t\"\\n FROM #__content\" .\n\t\t\t\t\t\t\"\\n WHERE id = $row->id\";\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$state = $db->loadResult();\n\n\t\t\t\tif ($state)\n\t\t\t\t{\n\t\t\t\t\t$row->state = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$row->state = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!$row->check())\n\t\t{\n\t\t\tJError::raiseError( 500, $row->getError());\n\t\t}\n\t\t$row->version++;\n\t\tif (!$row->store())\n\t\t{\n\t\t\tJError::raiseError( 500, $row->getError());\n\t\t}\n\n\t\t// manage frontpage items\n\t\trequire_once (JApplicationHelper::getPath('class', 'com_frontpage'));\n\t\t$fp = new JModelFrontPage($db);\n\n\t\tif (JRequest::getVar('frontpage', false, '', 'boolean'))\n\t\t{\n\n\t\t\t// toggles go to first place\n\t\t\tif (!$fp->load($row->id))\n\t\t\t{\n\t\t\t\t// new entry\n\t\t\t\t$query = \"INSERT INTO #__content_frontpage\" .\n\t\t\t\t\t\t\"\\n VALUES ( $row->id, 1 )\";\n\t\t\t\t$db->setQuery($query);\n\t\t\t\tif (!$db->query())\n\t\t\t\t{\n\t\t\t\t\tJError::raiseError( 500, $db->stderror());\n\t\t\t\t}\n\t\t\t\t$fp->ordering = 1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// no frontpage mask\n\t\t\tif (!$fp->delete($row->id))\n\t\t\t{\n\t\t\t\t$msg .= $fp->stderr();\n\t\t\t}\n\t\t\t$fp->ordering = 0;\n\t\t}\n\t\t$fp->updateOrder();\n\n\t\t$row->checkin();\n\t\t$row->updateOrder(\"catid = $row->catid\");\n\n\t\t// gets section name of item\n\t\t$query = \"SELECT s.title\" .\n\t\t\t\t\"\\n FROM #__sections AS s\" .\n\t\t\t\t\"\\n WHERE s.scope = 'content'\" .\n\t\t\t\t\"\\n AND s.id = $row->sectionid\";\n\t\t$db->setQuery($query);\n\t\t// gets category name of item\n\t\t$section = $db->loadResult();\n\n\t\t$query = \"SELECT c.title\" .\n\t\t\t\t\"\\n FROM #__categories AS c\" .\n\t\t\t\t\"\\n WHERE c.id = $row->catid\";\n\t\t$db->setQuery($query);\n\t\t$category = $db->loadResult();\n\n\t\tif ($isNew)\n\t\t{\n\t\t\t// messaging for new items\n\t\t\trequire_once (JApplicationHelper::getPath('class', 'com_messages'));\n\t\t\t$query = \"SELECT id\" .\n\t\t\t\t\t\"\\n FROM #__users\" .\n\t\t\t\t\t\"\\n WHERE sendEmail = 1\";\n\t\t\t$db->setQuery($query);\n\t\t\t$users = $db->loadResultArray();\n\t\t\tforeach ($users as $user_id)\n\t\t\t{\n\t\t\t\t$msg = new mosMessage($db);\n\t\t\t\t$msg->send($user->get('id'), $user_id, \"New Item\", sprintf(JText::_('ON_NEW_CONTENT'), $user->get('username'), $row->title, $section, $category));\n\t\t\t}\n\t\t}\n\n\t\t$msg = $isNew ? JText::_('THANK_SUB') : JText::_('Item successfully saved.');\n\t\t$msg = $user->get('usertype') == 'Publisher' ? JText::_('THANK_SUB') : $msg;\n\t\tswitch ($task)\n\t\t{\n\t\t\tcase 'apply' :\n\t\t\t\t$link = $_SERVER['HTTP_REFERER'];\n\t\t\t\tbreak;\n\n\t\t\tcase 'apply_new' :\n\t\t\t\t$Itemid = JRequest::getVar('Returnid', $Itemid, 'post');\n\t\t\t\t$link = 'index.php?option=com_content&task=edit&id='.$row->id.'&Itemid='.$Itemid;\n\t\t\t\tbreak;\n\n\t\t\tcase 'save' :\n\t\t\tdefault :\n\t\t\t\t$Itemid = JRequest::getVar('Returnid', '', 'post');\n\t\t\t\tif ($Itemid)\n\t\t\t\t{\n\t\t\t\t\t$link = 'index.php?option=com_content&task=view&id='.$row->id.'&Itemid='.$Itemid;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$link = JRequest::getVar('referer', '', 'post');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tjosRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "598ed460636b2606f4c03d0eb8c893e5", "score": "0.5073505", "text": "public function store()\n\t{\n\t\t$entry = $this->staff->currentEntry();\n\n\t\t$fields = array_except($entry->getAttributes(), ['_token', 'id', 'staff_id', 'initials', 'date', 'submitted', Entry::CREATED_AT, Entry::UPDATED_AT]);\n\t\t$fields = array_keys($fields);\n\n\t\t// Jury and panel discussions have been consolidated\n\t\tforeach (range(1,3) as $counter)\n\t\t{\n\t\t\tunset($fields['panel'.$counter]);\n\t\t\tunset($fields['jury'.$counter]);\n\t\t}\n\n\t\t$rules = array(\n\t\t\t'first_name' => 'required',\n\t\t\t'last_name' => 'required',\n\t\t\t'rank' => 'required',\n\t\t\t'period' => sprintf('required|unique:entries,period,%d,id,staff_id,%d', $entry->id, $this->staff->id),\n\t\t);\n\n\t\t$messages = array(\n\t\t\t'period.unique' => sprintf('You have already made a submission for the %s period.', Input::get('period')),\n\t\t\t'rank.required' => sprintf('You have to input your rank'),\n\t\t);\n\n\t\tif (Input::get('confirm'))\n\t\t{\n\t\t\t$rules['initials'] = 'required|min:2';\n\t\t\t$rules['date'] = 'required|date';\n\t\t\t$fields = array_merge($fields, ['initials', 'date']);\n\t\t\t\n\t\t\t$entry->submitted = true;\n\t\t}\n\n\t\t$validation = Validator::make(Input::all(), $rules, $messages);\n\n\t\tif ($validation->fails())\n\t\t{\n\t\t\treturn $this->errorResponse($validation->errors()->all());\n\t\t}\n\n\t\tEntry::unguard();\n\n\t\t$this->staff->update(Input::only(['first_name', 'last_name']));\n\n\t\t$entry->fill(Input::only($fields));\n\n\t\t$entry->save();\n\t\t\n\t\tif (Input::get('confirm'))\n\t\t{\n\t\t \n\t\t return Response::json([\n\t\t\t\t'message' => 'Your entry has been submitted. You will be redirected shortly.',\n\t\t\t\t'redirect' => route('form.print', $entry->id)\n\t\t\t]);\n\t\t}\n\t\t\n\t\treturn $this->successResponse('Your entry has been saved.');\n\t}", "title": "" }, { "docid": "1c943b7377d7c13b0c1557eb3dbae393", "score": "0.50621486", "text": "function role_lease_form($form, &$form_state, $role_lease, $op = 'edit') {\n if ($op == 'clone') {\n $role_lease->label .= ' (cloned)';\n $role_lease->type = '';\n }\n\n $role_lease_user = $role_lease->user();\n\n //TODO: should not be able to change user!! Implement properly, lock all values!\n\n $form['uid'] = array(\n '#title' => t('User'),\n '#type' => 'textfield',\n '#autocomplete_path' => 'user/autocomplete',\n '#default_value' => isset($role_lease_user) ? $role_lease_user->name : NULL,\n '#description' => t('TODO.'),\n '#required' => TRUE,\n );\n\n if(isset($role_lease_user)) {\n $form['uid']['#attributes'] = array('readonly' => 'readonly');\n //will reflect in form state?\n $form['uid']['#value'] = $role_lease_user->name;\n }\n\n $form['type'] = array(\n '#title' => t('Type'),\n '#type' => 'select',\n '#options' => role_lease_type_options_list(),\n '#default_value' => $role_lease->type,\n '#description' => t('TODO.'),\n '#required' => TRUE,\n );\n\n /*\n $form['expires'] = array(\n '#title' => t('Expiry date'),\n '#type' => 'textfield', //TODO: change to date type, date module needed? \n '#default_value' => $role_lease->expires,\n '#description' => t('Expiry date for the role lease.'),\n '#required' => TRUE,\n );\n */\n\n $form['actions'] = array('#type' => 'actions');\n $form['actions']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save role lease'), //TODO: add bundle label\n '#weight' => 40,\n );\n /*\n if (!$role_lease->isLocked() && $op != 'add' && $op != 'clone') {\n $form['actions']['delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete role lease'), //TODO: see above\n '#weight' => 45,\n '#limit_validation_errors' => array(),\n '#submit' => array('role_lease_form_submit_delete')\n );\n }\n */\n return $form;\n}", "title": "" }, { "docid": "dce6cf2516b27db07019f02b538254f8", "score": "0.5058757", "text": "function insertJournal(&$journal) {\n\t\t$this->update(\n\t\t\t'INSERT INTO journals\n\t\t\t\t(path, seq, enabled, primary_locale)\n\t\t\t\tVALUES\n\t\t\t\t(?, ?, ?, ?)',\n\t\t\tarray(\n\t\t\t\t$journal->getPath(),\n\t\t\t\t$journal->getSequence() == null ? 0 : $journal->getSequence(),\n\t\t\t\t$journal->getEnabled() ? 1 : 0,\n\t\t\t\t$journal->getPrimaryLocale()\n\t\t\t)\n\t\t);\n\n\t\t$journal->setId($this->getInsertJournalId());\n\t\treturn $journal->getId();\n\t}", "title": "" }, { "docid": "dce6cf2516b27db07019f02b538254f8", "score": "0.5058757", "text": "function insertJournal(&$journal) {\n\t\t$this->update(\n\t\t\t'INSERT INTO journals\n\t\t\t\t(path, seq, enabled, primary_locale)\n\t\t\t\tVALUES\n\t\t\t\t(?, ?, ?, ?)',\n\t\t\tarray(\n\t\t\t\t$journal->getPath(),\n\t\t\t\t$journal->getSequence() == null ? 0 : $journal->getSequence(),\n\t\t\t\t$journal->getEnabled() ? 1 : 0,\n\t\t\t\t$journal->getPrimaryLocale()\n\t\t\t)\n\t\t);\n\n\t\t$journal->setId($this->getInsertJournalId());\n\t\treturn $journal->getId();\n\t}", "title": "" }, { "docid": "e88fcdd6423834f2fe9bfac151b66ba5", "score": "0.5055894", "text": "public function GetJournal() {\n\t\t\treturn StewardshipPost::GetJournalForId($this->intId);\n\t\t}", "title": "" }, { "docid": "28a4a52c95dbecd0b34b80c1669a9018", "score": "0.50547826", "text": "public function actionIndex() {\n $data = \\backend\\models\\Journal::find()->all();\n $module = \\backend\\models\\Module::find()->where(['module_controller' => Yii::$app->controller->id])->one();\n $permissions = \\backend\\models\\Permissions::find()->where(['group_id' => Yii::$app->session->get('userInfo')['group_id'], 'module_id' => $module->id])->one();\n return $this->render('index', [\n 'data' => $data, 'add_access' => $permissions['add_access'], 'update_access' => $permissions['update_access'], 'delete_access' => $permissions['delete_access']\n ]);\n }", "title": "" }, { "docid": "a1fec833664c17413e529341e42d115f", "score": "0.5054115", "text": "public static function getAllJournal($userId)\n {\n $arrJournal = self::select('journals.id', 'journals.name', 'journals.description', 'journals.user_id as owner','journals.user_id as uid')\n ->where('journals.user_id', '=', $userId)\n ->where('journals.status', '<>', '2')\n ->orderBy('journals.created_at', 'desc')\n ->get()\n ->toArray(); \n \n $arrSharedJournals = SharedResources::getSharedJournalsByUserId($userId);\n $arrAllJournals = array_merge($arrJournal, $arrSharedJournals);\n $arrNetworkUsers = UserNetwork::getNetwokUsersByUserId(Auth::id());\n \n return $arrAllJournals;\n\n \n }", "title": "" }, { "docid": "9276c9f660de824896040d11caec107c", "score": "0.5052211", "text": "public function GetJournal() {\n\t\t\treturn FlowchartOp::GetJournalForId($this->intId);\n\t\t}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "952e1f5e7fa5f11996cf979a35a2e529", "score": "0.0", "text": "public function index(Request $request)\n {\n $rules = ['id' => 'required|integer'];\n $messages = ['id.required' => 'The id parameter is required'];\n $request->validate($rules, $messages);\n\n $restaurant = Restaurant::where('id', $request->input('id'))->first();\n $waiters = $restaurant->waiters()->paginate();\n return new WaiterCollection($waiters);\n }", "title": "" } ]
[ { "docid": "5861cea867a044b99c733c7fc0cf842d", "score": "0.7446777", "text": "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 }", "title": "" }, { "docid": "79ad7ebbde0cad2af3c2becbd440dc9d", "score": "0.736227", "text": "public function listing();", "title": "" }, { "docid": "7a5b125a32b352dacaa7e8c3af43240f", "score": "0.73005503", "text": "function index() {\n\t\t$this->show_list();\n\t}", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "67b6a083832b5635058184478e56e362", "score": "0.71631265", "text": "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 }", "title": "" }, { "docid": "0c1c05b10bf815899517dfe1749b5cf3", "score": "0.71489686", "text": "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "title": "" }, { "docid": "b6a5ca1df2d5a43bd0318ff90e9ff1ed", "score": "0.7131636", "text": "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "title": "" }, { "docid": "574374ad86f6e7e0d25edb82d6f43e27", "score": "0.7105969", "text": "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "title": "" }, { "docid": "87788fdf7ded1829388fd3b6863292b3", "score": "0.71029514", "text": "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 }", "title": "" }, { "docid": "ffa7427801c492f4d9132e00a5317999", "score": "0.7101372", "text": "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "title": "" }, { "docid": "3176cd2a3f20702c7789c284381b46cc", "score": "0.70508176", "text": "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}", "title": "" }, { "docid": "7558f18901b7c5821f0cd55c8e28aa45", "score": "0.6995128", "text": "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}", "title": "" }, { "docid": "11a6b2ed27bf6f792f2f1d9d4fde52d5", "score": "0.69890636", "text": "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 }", "title": "" }, { "docid": "d7b682e2a6278385910e3a975bd46866", "score": "0.6934895", "text": "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}", "title": "" }, { "docid": "ba32632e29f18b2bf877cc90eaa90971", "score": "0.6900203", "text": "public function actionRestList() {\n\t $this->doRestList();\n\t}", "title": "" }, { "docid": "36955fa3c60d113825196d271e89779e", "score": "0.6899281", "text": "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}", "title": "" }, { "docid": "4df8e01a674464bb5c8a362c1435333f", "score": "0.6891734", "text": "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 }", "title": "" }, { "docid": "caf564f7eb2baa738794be4dab8bfc1a", "score": "0.6887235", "text": "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 }", "title": "" }, { "docid": "638df6519c658b92ec12faad7c6bfe27", "score": "0.68670005", "text": "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}", "title": "" }, { "docid": "5d644b7cefd46539deb2daa4d92b4eeb", "score": "0.6849741", "text": "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}", "title": "" }, { "docid": "13cf03f3d35306a196b20d98fb7dd73f", "score": "0.6830523", "text": "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 }", "title": "" }, { "docid": "dbb1400cabaa16bba845c69fe3250595", "score": "0.6802689", "text": "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 }", "title": "" }, { "docid": "19d0fc2ce4a5afeb9eeff5c770208b5a", "score": "0.6797", "text": "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 }", "title": "" }, { "docid": "6d9e9884f0172b86d37a90b3aed99107", "score": "0.67957735", "text": "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "c20114ab29ed59985c206dac3ce8bd35", "score": "0.67871135", "text": "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}", "title": "" }, { "docid": "e2151b2161126a5b12c1ea8433f5c361", "score": "0.6760129", "text": "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 }", "title": "" }, { "docid": "13fada7c45059bcdf0cc54b68e5eee96", "score": "0.67427456", "text": "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}", "title": "" }, { "docid": "1c820cfe822082fa17bdac70b0c8069b", "score": "0.6730486", "text": "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "title": "" }, { "docid": "17f3cd4988f20f8325c593af544287ff", "score": "0.67272323", "text": "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "df66698172beb3c9fa618e7cc289491a", "score": "0.67177945", "text": "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 }", "title": "" }, { "docid": "ec8af10af41ea85fb114b36e622e73a2", "score": "0.6707866", "text": "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 }", "title": "" }, { "docid": "6074016c2f84d6492878d055fdaf5f90", "score": "0.6706713", "text": "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}", "title": "" }, { "docid": "21f9fb871a5fce67ff07d2b0391b84fe", "score": "0.6704375", "text": "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "title": "" }, { "docid": "4109cfb1ab66ca22734b6c4c872a2fb6", "score": "0.6664782", "text": "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "title": "" }, { "docid": "2ff5e05b9167e7eb31dff21e1b6c78dd", "score": "0.6662871", "text": "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 }", "title": "" }, { "docid": "57e718eb022c42e18c8c49846db00693", "score": "0.6660302", "text": "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "title": "" }, { "docid": "e3aa1fe6e467382c3a3c7d6d210fa6ba", "score": "0.6659404", "text": "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "title": "" }, { "docid": "50f00ab8e31c26165779f77d407ba147", "score": "0.6656656", "text": "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "8100e29714cb8e4ea7243502a0ece1f7", "score": "0.6653517", "text": "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 }", "title": "" }, { "docid": "000f2ee3d1d0301ad0f55ae8c891f813", "score": "0.6647965", "text": "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "title": "" }, { "docid": "7885a77a55d758fc7c3ca4d9b8082284", "score": "0.6620322", "text": "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 }", "title": "" }, { "docid": "58b5055aa7766919560eac36f68c1db2", "score": "0.66185474", "text": "public function view(){\n\t\t$this->buildListing();\n\t}", "title": "" }, { "docid": "b05cc0d66396241682eb08ef65ab2c83", "score": "0.6618499", "text": "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "d18bdb26d4ca96262bddb7c917a8349b", "score": "0.6606105", "text": "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "title": "" }, { "docid": "86fc68841118f2cf8cc05e234fa0777e", "score": "0.6600617", "text": "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 }", "title": "" }, { "docid": "2b66066335dec8de726c5a77ff0aee12", "score": "0.65996987", "text": "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "title": "" }, { "docid": "f0de39e2f347b3e2ae997d130b38e941", "score": "0.6594775", "text": "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 }", "title": "" }, { "docid": "1e6bd4eb78a78252539afb3a131fd8fb", "score": "0.6587389", "text": "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 }", "title": "" }, { "docid": "e6490ecf73cb2144fca83c8ba66147f3", "score": "0.6585109", "text": "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 }", "title": "" }, { "docid": "28feefe5ffbb1aaa6752c720a0532bfe", "score": "0.6581641", "text": "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 }", "title": "" }, { "docid": "2d2ee69019284a5d658f50fdd6d094d6", "score": "0.6581017", "text": "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "title": "" }, { "docid": "13c5bf63a24813d5b4b83687cbbe5c75", "score": "0.6577157", "text": "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}", "title": "" }, { "docid": "c657f4f8a8c3a68d1efb77bb48bb64ed", "score": "0.65747666", "text": "public function listAction() {}", "title": "" }, { "docid": "dee2f760bddd1756c7c035069232f79c", "score": "0.6572513", "text": "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "title": "" }, { "docid": "34c7660459cd4da39347c5a18236bb4d", "score": "0.65721947", "text": "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "title": "" }, { "docid": "c42f5844e4a2228e3900c1fabf832026", "score": "0.6570553", "text": "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 }", "title": "" }, { "docid": "8fcbc5a1a568f3e7c3f7e2f8dff9b148", "score": "0.65646994", "text": "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "title": "" }, { "docid": "0a7c70145a3a4b784ed96d9c25cb4b07", "score": "0.6563556", "text": "public function executeList()\n {\n $this->setTemplate('list');\n }", "title": "" }, { "docid": "bbbb0ff02d6a4b7c9ecfe4d2ea56337f", "score": "0.6554194", "text": "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "title": "" }, { "docid": "4d26affb174c19221ce588c9eebafab3", "score": "0.65529937", "text": "function listing() {\r\n\r\n }", "title": "" }, { "docid": "82c1353d3030493815167d5f81d640bb", "score": "0.65460825", "text": "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "title": "" }, { "docid": "ea43a79fd12bd5dff2bffb4510a5d10e", "score": "0.65368485", "text": "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "title": "" }, { "docid": "0400ea13e166c07ef25151bbef4b455f", "score": "0.653429", "text": "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}", "title": "" }, { "docid": "d751539cc41f307fad1b6804f8318415", "score": "0.65328294", "text": "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "title": "" }, { "docid": "d4e79a968a98f6ac1906664a59aac8bf", "score": "0.6526759", "text": "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "title": "" }, { "docid": "de74480294a1123dacaf091a018a43f7", "score": "0.6526695", "text": "public function _index(){\n\t $this->_list();\n\t}", "title": "" }, { "docid": "3e4f12e8ec15d668a9be175ae09737ae", "score": "0.6526284", "text": "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}", "title": "" }, { "docid": "dca89a9dfe98ef98f23e8c405126e084", "score": "0.65191334", "text": "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}", "title": "" }, { "docid": "4ccce2fe8b1368a03cf58d18c7d7489f", "score": "0.65183175", "text": "public function index()\n {\n $this->booklist();\n }", "title": "" }, { "docid": "ac8a4e8f7ba673f80eb0d433d63e55e7", "score": "0.65174305", "text": "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 }", "title": "" }, { "docid": "9b0f4da09bdec99e98ebafb70ab32ae2", "score": "0.651703", "text": "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "title": "" }, { "docid": "c2efd7be4e56aeffcdb13e0bcd214fdf", "score": "0.65141153", "text": "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 }", "title": "" }, { "docid": "389b8dbccde4696cda724a5bc36302af", "score": "0.6507088", "text": "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "9859640cc99b3c304bcffd904377446a", "score": "0.65061647", "text": "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "title": "" }, { "docid": "9574404dd05ce3c2611ce508bd896204", "score": "0.6504046", "text": "public function indexAction() {\n $this->_forward('list');\n }", "title": "" }, { "docid": "12d301af5c77c20befb614f7dc1143ad", "score": "0.64942145", "text": "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "title": "" }, { "docid": "88f1d549be2c21237f0ceb3975891048", "score": "0.6491893", "text": "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "8b1eaa504a92ec88744afddafd38af54", "score": "0.64883405", "text": "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}", "title": "" }, { "docid": "d21f403300504c3fe4d608bcd0692bd0", "score": "0.6486392", "text": "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 }", "title": "" }, { "docid": "3289098065a34b6f7ce3c9789ae4fe35", "score": "0.6485077", "text": "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "title": "" }, { "docid": "977ac32679a930999aa3047f122aa680", "score": "0.64846045", "text": "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 }", "title": "" }, { "docid": "c08ee608c2e0638276a9f92f4369b57e", "score": "0.6478858", "text": "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 }", "title": "" }, { "docid": "9e4aa3765a088d74ea20e0e8231d81d1", "score": "0.64756656", "text": "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "title": "" }, { "docid": "52e2958485295df97c1b52d92263155e", "score": "0.64726377", "text": "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "title": "" }, { "docid": "f92be88dba29fa2e07ab2719b0d8b3c1", "score": "0.6471126", "text": "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 }", "title": "" }, { "docid": "7a72ff5bace6f47eb0aa5efd43bfec8d", "score": "0.64701074", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "a2ab746e766f19e19b849e6fdc6dd489", "score": "0.6467418", "text": "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}", "title": "" }, { "docid": "0888788ae9bfefbe43a82d618a4801ab", "score": "0.6462195", "text": "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 }", "title": "" }, { "docid": "c9263437c87a3a569eaa41be90ebfe87", "score": "0.64618355", "text": "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 }", "title": "" }, { "docid": "f6c08ea1bf7865950b0d75c97e152a10", "score": "0.6459199", "text": "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "title": "" }, { "docid": "0c331d2d959fb3db9664261b09b54d68", "score": "0.6457831", "text": "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}", "title": "" }, { "docid": "2558c9dd9d7c48dd7ad44ce29a4584b1", "score": "0.6454631", "text": "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "title": "" }, { "docid": "ebe144d3d7dd86c5e8756c4723cb0a2d", "score": "0.64533997", "text": "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "title": "" }, { "docid": "bd921fac31bc2191c13c4934a18090d9", "score": "0.6451915", "text": "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "title": "" }, { "docid": "5656290f08d28002070b34971a1cddf4", "score": "0.6450861", "text": "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 }", "title": "" }, { "docid": "f1b298fd55a647ede89404377208efd0", "score": "0.6449301", "text": "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "title": "" }, { "docid": "4a8f7c258acef1c4df84deb3efaeb563", "score": "0.64492667", "text": "public function index()\n {\n return view('admin.resources.index');\n }", "title": "" }, { "docid": "59ee4cb529855c5d8a5a8d23e6455dd0", "score": "0.64469045", "text": "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}", "title": "" } ]